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AE,KAAc,EAAK,CAAC,cADvF,GAAW,GAAI,IAAM,sBAGzB,0BAKc,mBAAkB,EAAC,KAAK,2BACnB,mBAAkB,EAAC,OAAO,6BACxB,mBAAkB,EAAC,MAAM,gBACtC,mBAAkB,EAAC,MAAM,GAPjC,UAAS,CAAE,SAAkB,EAAC,SAA9B,SAAS,GAAE,SAAkB,EAAC,QAAO,IAA1B,CAAkB,cACG,6BAAE,GAAkB,UAAS,CAAG,EAC9B,+BAAE,GAAkB,SAAQ,CAAG,EACjD,WAAE,GAAkB,SAAQ,CAAG,8DAMrC,qBAAkB,EAAC,OAAO,6BAEhC,uBAAkB,EAAC,OAAO,qBAHxB,YAAkB,EAAC,IAAI,2EAM7B,GAAiB,sBAAE,UAAW,qBAAG,SAAW,qBAAe,UAAW,GAAE,qBAAoB,eAApB,oBAAoB,gDAG1F,GAAU,kBAAE,WAAQ,eAAS,UAAe,eAD1C,GAAU,WAGd,OAAI,eAAJ,WAAI,4BAAJ,IAAI,EAAJ,MAAI,KAA6F,GAAW,SAAX,EAAW,UAnO5G,MAAM,qDAA4D,gBAAmB,QAAY,EAAmB,YAAY,IAwB9H,KAAC,UAAQ,IAAI,OAIX,MAAI,0DAA8B,EAAc,IAAmB,OAAO,GA+F9E,mCAC8B,2BAChB,QAAY,EACb,QAAW,GAAE,kBAqG1B,QAAI,iEAAsE,GAAU,4CAxOpD,UAAW,KAAM,EAAW,KAAM,KAAI,EAAO,SAC7E,KAAG,MAAM,GAAS,qBATb","names":["clone","get","set","debounce","int","defaultOptions","English","parse","pick"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191],"sources":["../../../../../../../node_modules/txstate-utils/lib-esm/array/findindex.js","../../../../../../../node_modules/txstate-utils/lib-esm/object/clone.js","../../../../../../../node_modules/txstate-utils/lib-esm/object/deleteEmpty.js","../../../../../../../node_modules/txstate-utils/lib-esm/array/groupby.js","../../../../../../../node_modules/txstate-utils/lib-esm/array/keyby.js","../../../../../../../node_modules/txstate-utils/lib-esm/array/mapgroupby.js","../../../../../../../node_modules/txstate-utils/lib-esm/plural.js","../../../../../../../node_modules/@txstate-mws/svelte-components/dist/util/repositioned.js","../../../../../../../node_modules/@txstate-mws/svelte-components/dist/util/util.js","../../../../../../../node_modules/@txstate-mws/svelte-components/dist/actions/glue.js","../../../../../../../node_modules/@txstate-mws/svelte-store/dist/safestore.js","../../../../../../../node_modules/@txstate-mws/svelte-store/dist/derivedstore.js","../../../../../../../node_modules/@txstate-mws/svelte-store/dist/substore.js","../../../../../../../node_modules/@txstate-mws/svelte-components/dist/actions/resize.js","../../../../../../../node_modules/carbon-components-svelte/src/icons/CheckmarkFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/ErrorFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Loading/Loading.svelte","../../../../../../../node_modules/carbon-components-svelte/src/InlineLoading/InlineLoading.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Close.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/focus.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/outsideDismiss.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/scrollIntoViewWithinMenu.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/trapFocus.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/uniqueId.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/bodyScrollLock.js","../../../../../../../node_modules/carbon-components-svelte/src/Modal/modalStore.js","../../../../../../../node_modules/carbon-components-svelte/src/Modal/Modal.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/stores/warnunsaved.js","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/FormStore.js","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/SubForm.svelte","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/util.js","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/Field.svelte","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/Form.svelte","../../../../../../../node_modules/@txstate-mws/svelte-forms/dist/SubArray.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/timeoutDismiss.js","../../../../../../../node_modules/carbon-components-svelte/src/Notification/NotificationButton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/InformationFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/InformationSquareFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/WarningAltFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/WarningFilled.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Notification/NotificationIcon.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Notification/InlineNotification.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/util.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FormInlineNotification.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/LoadingIcon.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/util.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/Form.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Checkmark.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBox.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBoxField.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/highlightCursor.js","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBoxMenu.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/ChevronDown.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBoxMenuIcon.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/overflowTitle.js","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBoxMenuItem.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/ListBoxSelection.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/HighlightSlot.svelte","../../../../../../../node_modules/carbon-components-svelte/src/ListBox/list-box-utils.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/debounce.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/dismiss.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/isOutsideClick.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/isScrollNearEnd.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/moveIndex.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/typeahead.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/virtualize.js","../../../../../../../node_modules/carbon-components-svelte/src/Dropdown/Dropdown.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/storage.js","../../../../../../../node_modules/carbon-components-svelte/src/LocalStorage/LocalStorage.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Select/Select.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Select/SelectItem.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Toggle/Toggle.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Theme/Theme.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Notification/ToastNotification.svelte","../../../../../../../node_modules/svelte/src/easing/index.js","../../../../../../../node_modules/svelte/src/transition/index.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/Toasts.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/LayoutBase.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/PanelDialog.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/PanelFormDialog.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/ActionSet.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/delayedSetter.js","../../../../../../../node_modules/carbon-components-svelte/src/TooltipDefinition/TooltipDefinition.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Tag/TagSkeleton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Tag/Tag.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/TagSet.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/imageutil.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/Card.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/CardGrid.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldStatusText.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Checkbox/CheckboxSkeleton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Checkbox/Checkbox.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldCheckboxList.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/FilterUIQuickSlotContext.svelte","../../../../../../../node_modules/flatpickr/dist/esm/types/options.js","../../../../../../../node_modules/flatpickr/dist/esm/l10n/default.js","../../../../../../../node_modules/flatpickr/dist/esm/utils/index.js","../../../../../../../node_modules/flatpickr/dist/esm/utils/dom.js","../../../../../../../node_modules/flatpickr/dist/esm/utils/formatting.js","../../../../../../../node_modules/flatpickr/dist/esm/utils/dates.js","../../../../../../../node_modules/flatpickr/dist/esm/utils/polyfills.js","../../../../../../../node_modules/flatpickr/dist/esm/index.js","../../../../../../../node_modules/carbon-components-svelte/src/DatePicker/createCalendar.js","../../../../../../../node_modules/carbon-components-svelte/src/DatePicker/datePickerTopLayer.js","../../../../../../../node_modules/carbon-components-svelte/src/DatePicker/DatePicker.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Calendar.svelte","../../../../../../../node_modules/carbon-components-svelte/src/DatePicker/DatePickerInput.svelte","../../../../../../../node_modules/luxon/build/es6/luxon.mjs","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/luxon.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldDate.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldHidden.svelte","../../../../../../../node_modules/carbon-components-svelte/src/MultiSelect/MultiSelect.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldMultiselect.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Add.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/EditOff.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Subtract.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/numericFormat.js","../../../../../../../node_modules/carbon-components-svelte/src/NumberInput/NumberInput.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldNumber.svelte","../../../../../../../node_modules/carbon-components-svelte/src/RadioButton/RadioButtonRegistry.js","../../../../../../../node_modules/carbon-components-svelte/src/RadioButton/RadioButton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/RadioButtonGroup/RadioButtonGroup.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldRadio.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Select/SelectItemGroup.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldSelect.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/graphemeCount.js","../../../../../../../node_modules/carbon-components-svelte/src/TextArea/TextArea.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldTextArea.svelte","../../../../../../../node_modules/carbon-components-svelte/src/TextInput/TextInput.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FieldTextInput.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/form/FormSection.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/stores/layout.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/stores/confirmation.js","../../../../../../../node_modules/carbon-components-svelte/src/icons/ChevronRight.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/BackToTop.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/BadgeNumber.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/IconSearch.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Search/SearchSkeleton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Search/Search.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/ExpandCollapseAll.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/OptionalLink.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/ColumnList.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/ScrollOverflow.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/TabRadio.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/FilterUI.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Link/Link.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/PageActions.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/CaretLeft.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/CaretRight.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Pagination/Pagination.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/Pagination.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Tabs/Tab.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Tabs/TabContent.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/ChevronLeft.svelte","../../../../../../../node_modules/carbon-components-svelte/src/utils/batchStoreUpdates.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/clampIndex.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/keyBy.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/rovingFocus.js","../../../../../../../node_modules/carbon-components-svelte/src/utils/syncDomOrder.js","../../../../../../../node_modules/carbon-components-svelte/src/Tabs/Tabs.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/PanelGroup.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/Panel.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/SiteMap.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/TabLinks.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Switcher.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/HeaderAction.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/HeaderPanelDivider.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/HeaderPanelLink.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/HeaderPanelLinks.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/HeaderUtilities.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Notification/NotificationActionButton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/nav-store.js","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SideNav.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SideNavItems.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SideNavLink.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SideNavMenu.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SideNavMenuItem.svelte","../../../../../../../node_modules/carbon-components-svelte/src/UIShell/SkipToContent.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/Information.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Tooltip/Tooltip.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Breadcrumb/BreadcrumbSkeleton.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Breadcrumb/Breadcrumb.svelte","../../../../../../../node_modules/carbon-components-svelte/src/Breadcrumb/BreadcrumbItem.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/OverflowMenuHorizontal.svelte","../../../../../../../node_modules/carbon-components-svelte/src/icons/OverflowMenuVertical.svelte","../../../../../../../node_modules/carbon-components-svelte/src/OverflowMenu/OverflowMenu.svelte","../../../../../../../node_modules/carbon-components-svelte/src/OverflowMenu/OverflowMenuItem.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/BreadcrumbNav.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/LoadingBar.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/txst-logo.js","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/UserImpersonation.svelte","../../../../../../../node_modules/@txstate-mws/carbon-svelte/dist/UIShell.svelte"],"sourcesContent":["/**\n * I frequently find myself making a mistake with Array.prototype.findIndex() - it\n * returns -1 when not found and I expect undefined, like I get with Array.prototype.find()\n *\n * This function returns undefined by default, or you can specify the number to return\n * when not found.\n */\nexport function findIndex(haystack, cb, def) {\n    const idx = haystack.findIndex(cb);\n    return idx < 0 ? def : idx;\n}\n","function copyBuffer(cur) {\n    if (cur instanceof Buffer) {\n        return Buffer.from(cur);\n    }\n    return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);\n}\nfunction isArguments(value) {\n    return !!value && typeof value === 'object' && Object.prototype.hasOwnProperty.call(value, 'callee') && !Object.prototype.propertyIsEnumerable.call(value, 'callee');\n}\nconst refs = [];\nconst refsNew = [];\nfunction cloneArray(a, fn) {\n    const keys = Object.keys(a);\n    const a2 = new Array(keys.length);\n    for (let i = 0; i < keys.length; i++) {\n        const k = keys[i];\n        const cur = a[k];\n        if (typeof cur !== 'object' || cur === null || cur.isLuxonDateTime) {\n            a2[k] = cur;\n        }\n        else if (cur instanceof Date) {\n            a2[k] = new Date(cur);\n        }\n        else if (ArrayBuffer.isView(cur)) {\n            a2[k] = copyBuffer(cur);\n        }\n        else {\n            const index = refs.indexOf(cur);\n            if (index !== -1) {\n                a2[k] = refsNew[index];\n            }\n            else {\n                a2[k] = fn(cur);\n            }\n        }\n    }\n    return a2;\n}\nexport function clone(o) {\n    if (typeof o !== 'object' || o === null)\n        return o;\n    if (o instanceof Date)\n        return new Date(o);\n    if (Array.isArray(o))\n        return cloneArray(o, clone);\n    if (o instanceof Map)\n        return new Map(cloneArray(Array.from(o), clone));\n    if (o instanceof Set)\n        return new Set(cloneArray(Array.from(o), clone));\n    if (isArguments(o))\n        return cloneArray(Array.from(o), clone);\n    const o2 = {};\n    refs.push(o);\n    refsNew.push(o2);\n    for (const k in o) {\n        if (!Object.hasOwnProperty.call(o, k))\n            continue;\n        const cur = o[k];\n        if (typeof cur !== 'object' || cur === null || cur.isLuxonDateTime) {\n            o2[k] = cur;\n        }\n        else if (cur instanceof Date) {\n            o2[k] = new Date(cur);\n        }\n        else if (cur instanceof Map) {\n            o2[k] = new Map(cloneArray(Array.from(cur), clone));\n        }\n        else if (cur instanceof Set) {\n            o2[k] = new Set(cloneArray(Array.from(cur), clone));\n        }\n        else if (ArrayBuffer.isView(cur)) {\n            o2[k] = copyBuffer(cur);\n        }\n        else {\n            const i = refs.indexOf(cur);\n            if (i !== -1) {\n                o2[k] = refsNew[i];\n            }\n            else {\n                o2[k] = clone(cur);\n            }\n        }\n    }\n    refs.pop();\n    refsNew.pop();\n    return o2;\n}\n","import { isNotEmpty } from './empty.js';\nexport function deleteEmpty(payload) {\n    if (payload != null && typeof payload === 'object' && !(payload instanceof Date)) {\n        if (Array.isArray(payload)) {\n            return payload.map(deleteEmpty).filter(isNotEmpty);\n        }\n        else if (payload.toJSON && typeof payload.toJSON === 'function') {\n            // If the object has a toJSON method, use it to get a clean representation\n            const json = payload.toJSON();\n            return deleteEmpty(json);\n        }\n        else {\n            return Object.fromEntries(Object.entries(payload).map(([key, val]) => [key, deleteEmpty(val)]).filter(([key, val]) => isNotEmpty(val)));\n        }\n    }\n    return payload;\n}\n","import { extractors } from './extractors.js';\nexport function groupby(objArray, keyOrExtractor) {\n    const hash = {};\n    if (!Array.isArray(objArray))\n        return hash;\n    const extractor = extractors[typeof keyOrExtractor](keyOrExtractor);\n    for (const obj of objArray) {\n        const key = extractor(obj);\n        const keytype = typeof key;\n        if (key != null && (keytype === 'string' || keytype === 'number')) {\n            hash[key] ??= [];\n            hash[key].push(obj);\n        }\n    }\n    return hash;\n}\n","import { extractors } from './extractors.js';\nexport function keyby(objArray, keyOrExtractor) {\n    const hash = {};\n    if (!Array.isArray(objArray))\n        return hash;\n    const extractor = extractors[typeof keyOrExtractor](keyOrExtractor);\n    for (const obj of objArray) {\n        const potentialkey = extractor(obj);\n        if (potentialkey != null\n            && (typeof potentialkey === 'string'\n                || typeof potentialkey === 'number'))\n            hash[potentialkey] = keyOrExtractor == null ? true : obj;\n    }\n    return hash;\n}\n/**\n * @deprecated use keyby()\n */\nexport const hashify = keyby;\n","import { extractors } from './extractors.js';\nexport function mapgroupby(objArray, keyOrExtractor) {\n    const map = new Map();\n    if (!Array.isArray(objArray))\n        return map;\n    const extractor = extractors[typeof keyOrExtractor](keyOrExtractor);\n    for (const obj of objArray) {\n        const key = extractor(obj);\n        if (key != null) {\n            if (!map.has(key))\n                map.set(key, []);\n            map.get(key).push(obj);\n        }\n    }\n    return map;\n}\n","// This code was adapted from https://github.com/plurals/pluralize on 6/7/2024\n// Copyright (c) 2013 Blake Embrey (hello@blakeembrey.com)\nconst pluralRules = [];\nconst singularRules = [];\nconst uncountables = new Set();\nconst irregularPlurals = new Map();\nconst irregularSingles = new Map();\nfunction sanitizeRule(rule) {\n    if (typeof rule === 'string') {\n        return new RegExp('^' + rule + '$', 'i');\n    }\n    return rule;\n}\nfunction restoreCase(word, token) {\n    // Tokens are an exact match.\n    if (word === token)\n        return token;\n    // Lower cased words. E.g. \"hello\".\n    if (word === word.toLowerCase())\n        return token.toLowerCase();\n    // Upper cased words. E.g. \"WHISKY\".\n    if (word === word.toUpperCase())\n        return token.toUpperCase();\n    // Title cased words. E.g. \"Title\".\n    if (word[0] === word[0].toUpperCase()) {\n        return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();\n    }\n    // Lower cased words. E.g. \"test\".\n    return token.toLowerCase();\n}\nfunction interpolate(str, args) {\n    return str.replace(/\\$(\\d{1,2})/g, function (match, index) {\n        return args[index] || '';\n    });\n}\n/**\n   * Replace a word using a rule.\n   *\n   * @param  {string} word\n   * @param  {Array}  rule\n   * @return {string}\n   */\nfunction replace(word, rule) {\n    return word.replace(rule[0], function (match, index) {\n        const result = interpolate(rule[1], arguments);\n        if (match === '') {\n            return restoreCase(word[index - 1], result);\n        }\n        return restoreCase(match, result);\n    });\n}\n/**\n   * Sanitize a word by passing in the word and sanitization rules.\n   *\n   * @param  {string}   token\n   * @param  {string}   word\n   * @param  {Array}    rules\n   * @return {string}\n   */\nfunction sanitizeWord(token, word, rules) {\n    // Empty string or doesn't need fixing.\n    if (!token.length || uncountables.has(token)) {\n        return word;\n    }\n    let len = rules.length;\n    // Iterate over the sanitization rules and use the first one to match.\n    while (len--) {\n        const rule = rules[len];\n        if (rule[0].test(word))\n            return replace(word, rule);\n    }\n    return word;\n}\n/**\n * Replace a word with the updated word.\n */\nfunction replaceWord(replaceMap, keepMap, rules) {\n    return function (word) {\n        // Get the correct token and case restoration functions.\n        const token = word.toLowerCase();\n        // Check against the keep object map.\n        if (keepMap.has(token)) {\n            return restoreCase(word, token);\n        }\n        // Check against the replacement map for a direct word replacement.\n        if (replaceMap.has(token)) {\n            return restoreCase(word, replaceMap.get(token));\n        }\n        // Run all the rules against the word.\n        return sanitizeWord(token, word, rules);\n    };\n}\n/**\n   * Check if a word is part of the map.\n   */\nfunction checkWord(replaceMap, keepMap, rules) {\n    return function (word) {\n        const token = word.toLowerCase();\n        if (keepMap.has(token))\n            return true;\n        if (replaceMap.has(token))\n            return false;\n        return sanitizeWord(token, token, rules) === token;\n    };\n}\n/**\n * Pluralize or singularize a word based on the passed in count.\n *\n * @param word      The word to pluralize\n * @param count     How many of that word exist in this instance\n * @param inclusive Whether to prefix the return string with the count (e.g. '3 ducks' vs 'ducks')\n */\nexport function pluralize(word, count, inclusive) {\n    const pluralized = count === 1\n        ? singular(word)\n        : plural(word);\n    return (inclusive ? count + ' ' : '') + pluralized;\n}\n/**\n * Pluralize a word.\n */\nexport const plural = replaceWord(irregularSingles, irregularPlurals, pluralRules);\n/**\n * Check if a word is plural.\n */\nexport const isPlural = checkWord(irregularSingles, irregularPlurals, pluralRules);\n/**\n * Singularize a word.\n */\nexport const singular = replaceWord(irregularPlurals, irregularSingles, singularRules);\n/**\n * Check if a word is singular.\n */\nexport const isSingular = checkWord(irregularPlurals, irregularSingles, singularRules);\nfunction addPluralRule(rule, replacement) {\n    pluralRules.push([sanitizeRule(rule), replacement]);\n}\nfunction addSingularRule(rule, replacement) {\n    singularRules.push([sanitizeRule(rule), replacement]);\n}\nfunction addUncountableRule(word) {\n    if (typeof word === 'string') {\n        uncountables.add(word.toLowerCase());\n        return;\n    }\n    // Set singular and plural references for the word.\n    addPluralRule(word, '$0');\n    addSingularRule(word, '$0');\n}\n/**\n * Add an irregular word definition.\n */\nfunction addIrregularRule(single, plural) {\n    plural = plural.toLowerCase();\n    single = single.toLowerCase();\n    irregularSingles.set(single, plural);\n    irregularPlurals.set(plural, single);\n}\n;\n/**\n * Irregular rules.\n */\n[\n    // Pronouns.\n    ['I', 'we'],\n    ['me', 'us'],\n    ['he', 'they'],\n    ['she', 'they'],\n    ['them', 'them'],\n    ['myself', 'ourselves'],\n    ['yourself', 'yourselves'],\n    ['itself', 'themselves'],\n    ['herself', 'themselves'],\n    ['himself', 'themselves'],\n    ['themself', 'themselves'],\n    ['is', 'are'],\n    ['was', 'were'],\n    ['has', 'have'],\n    ['this', 'these'],\n    ['that', 'those'],\n    ['my', 'our'],\n    ['its', 'their'],\n    ['his', 'their'],\n    ['her', 'their'],\n    // Words ending in with a consonant and `o`.\n    ['echo', 'echoes'],\n    ['dingo', 'dingoes'],\n    ['volcano', 'volcanoes'],\n    ['tornado', 'tornadoes'],\n    ['torpedo', 'torpedoes'],\n    // Ends with `us`.\n    ['genus', 'genera'],\n    ['viscus', 'viscera'],\n    // Ends with `ma`.\n    ['stigma', 'stigmata'],\n    ['stoma', 'stomata'],\n    ['dogma', 'dogmata'],\n    ['lemma', 'lemmata'],\n    ['schema', 'schemata'],\n    ['anathema', 'anathemata'],\n    // Other irregular rules.\n    ['ox', 'oxen'],\n    ['axe', 'axes'],\n    ['die', 'dice'],\n    ['yes', 'yeses'],\n    ['foot', 'feet'],\n    ['eave', 'eaves'],\n    ['goose', 'geese'],\n    ['tooth', 'teeth'],\n    ['quiz', 'quizzes'],\n    ['human', 'humans'],\n    ['proof', 'proofs'],\n    ['carve', 'carves'],\n    ['valve', 'valves'],\n    ['looey', 'looies'],\n    ['thief', 'thieves'],\n    ['groove', 'grooves'],\n    ['pickaxe', 'pickaxes'],\n    ['passerby', 'passersby'],\n    ['canvas', 'canvases']\n].forEach(function (rule) {\n    addIrregularRule(rule[0], rule[1]);\n});\n[\n    [/s?$/i, 's'],\n    [/[^\\u0000-\\u007F]$/i, '$0'],\n    [/([^aeiou]ese)$/i, '$1'],\n    [/(ax|test)is$/i, '$1es'],\n    [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, '$1es'],\n    [/(e[mn]u)s?$/i, '$1s'],\n    [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, '$1'],\n    [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1i'],\n    [/(alumn|alg|vertebr)(?:a|ae)$/i, '$1ae'],\n    [/(seraph|cherub)(?:im)?$/i, '$1im'],\n    [/(her|at|gr)o$/i, '$1oes'],\n    [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, '$1a'],\n    [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, '$1a'],\n    [/sis$/i, 'ses'],\n    [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, '$1$2ves'],\n    [/([^aeiouy]|qu)y$/i, '$1ies'],\n    [/([^ch][ieo][ln])ey$/i, '$1ies'],\n    [/(x|ch|ss|sh|zz)$/i, '$1es'],\n    [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, '$1ices'],\n    [/\\b((?:tit)?m|l)(?:ice|ouse)$/i, '$1ice'],\n    [/(pe)(?:rson|ople)$/i, '$1ople'],\n    [/(child)(?:ren)?$/i, '$1ren'],\n    [/eau$/i, '$0s'],\n    [/m[ae]n$/i, 'men'],\n    ['thou', 'you']\n].forEach(function (rule) {\n    addPluralRule(rule[0], rule[1]);\n});\n[\n    [/s$/i, ''],\n    [/(ss)$/i, '$1'],\n    [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\\w]|^)li)ves$/i, '$1fe'],\n    [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'],\n    [/ies$/i, 'y'],\n    [/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i, '$1ie'],\n    [/\\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i, '$1ie'],\n    [/\\b(mon|smil)ies$/i, '$1ey'],\n    [/\\b((?:tit)?m|l)ice$/i, '$1ouse'],\n    [/(seraph|cherub)im$/i, '$1'],\n    [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, '$1'],\n    [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, '$1sis'],\n    [/(movie|twelve|abuse|e[mn]u)s$/i, '$1'],\n    [/(test)(?:is|es)$/i, '$1is'],\n    [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1us'],\n    [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, '$1um'],\n    [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, '$1on'],\n    [/(alumn|alg|vertebr)ae$/i, '$1a'],\n    [/(cod|mur|sil|vert|ind)ices$/i, '$1ex'],\n    [/(matr|append)ices$/i, '$1ix'],\n    [/(pe)(rson|ople)$/i, '$1rson'],\n    [/(child)ren$/i, '$1'],\n    [/(eau)(x|s)?$/i, '$1'],\n    [/men$/i, 'man']\n].forEach(function (rule) {\n    addSingularRule(rule[0], rule[1]);\n});\n/**\n   * Uncountable rules.\n   */\n[\n    // Singular words with no plurals.\n    'adulthood',\n    'advice',\n    'agenda',\n    'aid',\n    'aircraft',\n    'alcohol',\n    'ammo',\n    'analytics',\n    'anime',\n    'athletics',\n    'audio',\n    'bison',\n    'blood',\n    'bream',\n    'buffalo',\n    'butter',\n    'carp',\n    'cash',\n    'chassis',\n    'chess',\n    'clothing',\n    'cod',\n    'commerce',\n    'cooperation',\n    'corps',\n    'debris',\n    'diabetes',\n    'digestion',\n    'elk',\n    'energy',\n    'equipment',\n    'excretion',\n    'expertise',\n    'firmware',\n    'flounder',\n    'fun',\n    'gallows',\n    'garbage',\n    'graffiti',\n    'hardware',\n    'headquarters',\n    'health',\n    'herpes',\n    'highjinks',\n    'homework',\n    'housework',\n    'information',\n    'jeans',\n    'justice',\n    'kudos',\n    'labour',\n    'literature',\n    'machinery',\n    'mackerel',\n    'mail',\n    'media',\n    'mews',\n    'moose',\n    'music',\n    'mud',\n    'manga',\n    'news',\n    'only',\n    'personnel',\n    'pike',\n    'plankton',\n    'pliers',\n    'police',\n    'pollution',\n    'premises',\n    'rain',\n    'research',\n    'rice',\n    'salmon',\n    'scissors',\n    'series',\n    'sewage',\n    'shambles',\n    'shrimp',\n    'software',\n    'staff',\n    'swine',\n    'tennis',\n    'traffic',\n    'transportation',\n    'trout',\n    'tuna',\n    'wealth',\n    'welfare',\n    'whiting',\n    'wildebeest',\n    'wildlife',\n    'you',\n    /pok[eé]mon$/i,\n    // Regexes.\n    /[^aeiou]ese$/i, // \"chinese\", \"japanese\"\n    /deer$/i, // \"deer\", \"reindeer\"\n    /fish$/i, // \"fish\", \"blowfish\", \"angelfish\"\n    /measles$/i,\n    /o[iu]s$/i, // \"carnivorous\"\n    /pox$/i, // \"chickpox\", \"smallpox\"\n    /sheep$/i\n].forEach(addUncountableRule);\n","import { equal, isNotNull, randomid, toArray } from 'txstate-utils';\nimport { bodyOffset, targetOffset } from './bodyoffset.js';\nconst observers = new Map();\nlet mutationobserver;\nexport function watchForMutations(cb) {\n    function watch() {\n        for (const cb of observers.values())\n            cb();\n    }\n    if (observers.size === 0) {\n        mutationobserver ??= new MutationObserver(watch);\n        window.addEventListener('resize', watch, { passive: true });\n        mutationobserver.observe(document.body, {\n            subtree: true,\n            childList: true,\n            attributes: true,\n            characterData: true\n        });\n    }\n    const id = randomid();\n    observers.set(id, cb);\n    cb();\n    return {\n        destroy: () => {\n            observers.delete(id);\n            if (observers.size === 0) {\n                window.removeEventListener('resize', watch);\n                mutationobserver.disconnect();\n            }\n        }\n    };\n}\nexport function watchForPositionChange(el, cb) {\n    let lastoffsets = [];\n    let els = toArray(el).filter(isNotNull);\n    function watch() {\n        const offsets = els.map(bodyOffset);\n        if (offsets.some((offset, i) => !equal(offset, lastoffsets[i]))) {\n            lastoffsets = offsets;\n            Array.isArray(el) ? cb(offsets) : cb(offsets[0]);\n        }\n    }\n    const { destroy } = watchForMutations(watch);\n    return {\n        update: (newEl, newCb) => {\n            const changed = newEl !== el || newCb !== cb;\n            if (changed) {\n                el = newEl;\n                els = toArray(el).filter(isNotNull);\n                cb = newCb;\n                watch();\n            }\n        },\n        destroy\n    };\n}\nexport function watchForPositionChangeInContainer(el, container, cb) {\n    let lastoffset;\n    function watch() {\n        if (!el || !container)\n            return;\n        const offset = targetOffset(el, container);\n        if (!equal(offset, lastoffset)) {\n            lastoffset = offset;\n            cb(offset);\n        }\n    }\n    const { destroy } = watchForMutations(watch);\n    return {\n        update: (newEl, newContainer, newCb) => {\n            const changed = newEl !== el || newContainer !== container || newCb !== cb;\n            if (changed) {\n                el = newEl;\n                container = newContainer;\n                cb = newCb;\n                watch();\n            }\n        },\n        destroy\n    };\n}\n","export function classes(...classNames) {\n    return classNames.filter(Boolean).join(' ');\n}\nexport function debounced(fn, timeout) {\n    let timer;\n    return (...args) => {\n        clearTimeout(timer);\n        timer = setTimeout(() => fn(...args), timeout);\n    };\n}\nexport function modifierKey(e) {\n    return e.ctrlKey || e.altKey || e.metaKey || e.key === 'Insert';\n}\nexport function selectionIsLeft(ele) {\n    return ele.selectionStart === 0 && ele.selectionEnd === 0;\n}\nexport function getScrollParents(element) {\n    let style = getComputedStyle(element);\n    const excludeStaticParent = style.position === 'absolute';\n    if (style.position === 'fixed')\n        return [document.body];\n    for (let parent = element; (parent = parent.parentElement);) {\n        style = getComputedStyle(parent);\n        if (excludeStaticParent && style.position === 'static') {\n            continue;\n        }\n        if (/(auto|scroll|hidden)/v.test(style.overflow + style.overflowY + style.overflowX))\n            return [parent, ...getScrollParents(parent)];\n    }\n    return [document.body];\n}\n","import { watchForMutations } from '../util/index.js';\nimport { equal } from 'txstate-utils';\n/**\n * All active glue instances share one scroll listener and one requestAnimationFrame\n * per frame. Each frame runs every registered measure() (the layout reads) and only\n * then runs the write thunks they return, so for a page with thousands of glued\n * elements the browser reads layout once per frame and never interleaves reads with\n * writes. Multiple scroll events that arrive before a frame paints coalesce into a\n * single measure pass.\n */\nconst glueInstances = new Set();\nlet frameRequested = false;\nlet scrollBound = false;\nfunction runGlueFrame() {\n    frameRequested = false;\n    const writes = [];\n    for (const measure of glueInstances) {\n        const write = measure();\n        if (write)\n            writes.push(write);\n    }\n    for (const write of writes)\n        write();\n}\nfunction scheduleGlueFrame() {\n    if (frameRequested)\n        return;\n    frameRequested = true;\n    requestAnimationFrame(runGlueFrame);\n}\nfunction onGlueScroll() {\n    scheduleGlueFrame();\n}\nfunction registerGlue(measure) {\n    glueInstances.add(measure);\n    if (!scrollBound) {\n        document.addEventListener('scroll', onGlueScroll, { capture: true, passive: true });\n        scrollBound = true;\n    }\n}\nfunction unregisterGlue(measure) {\n    glueInstances.delete(measure);\n    if (glueInstances.size === 0 && scrollBound) {\n        document.removeEventListener('scroll', onGlueScroll, { capture: true });\n        scrollBound = false;\n    }\n}\n/**\n * Make this element `position: fixed` and move it around to align with the target element.\n */\nexport function glue(el, { target, align = 'auto', cover = false, gap = 0, adjustparentheight = false, store }) {\n    let halign;\n    let valign;\n    const parent = el.offsetParent instanceof HTMLElement ? el.offsetParent : undefined;\n    const formerMinHeight = parent?.style.minHeight;\n    if (target)\n        el.style.position = 'fixed';\n    function adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY) {\n        if (!adjustparentheight)\n            return;\n        if (parentOverflowY === 'auto')\n            return;\n        const minHeight = elOffsetTop + elOffsetHeight;\n        if (minHeight > parentClientHeight) {\n            parent.style.minHeight = String(minHeight) + 'px';\n        }\n    }\n    let lastrect;\n    // The containing block (nearest ancestor that establishes a containing block for\n    // position: fixed) is determined by the ancestors' computed styles. Scrolling can\n    // never change it, but it CAN change when an ancestor gains/loses a transform,\n    // filter, will-change, contain, etc. Walking the ancestor chain and calling\n    // getComputedStyle on each node is expensive, so cache it across the high-frequency\n    // scroll events and recompute only when something might have changed: a DOM/style\n    // mutation, a resize, or a target change (see invalidateAndSchedule / update).\n    let fixedParent;\n    let fixedParentComputed = false;\n    // Read-only pass: gather geometry and build the write thunk. Runs inside the shared\n    // frame's measure phase, so it must not write to the DOM.\n    function measure() {\n        if (!fixedParentComputed) {\n            fixedParent = fixedContainingBlock(el);\n            fixedParentComputed = true;\n        }\n        let fixedRect = { left: 0, top: 0, right: 0, bottom: 0 };\n        if (fixedParent) {\n            const tmpRect = fixedParent.getBoundingClientRect();\n            fixedRect = { left: tmpRect.left, right: document.documentElement.clientWidth - tmpRect.right, top: tmpRect.top, bottom: document.documentElement.clientHeight - tmpRect.bottom };\n        }\n        if (!target)\n            return undefined;\n        const tmpRect = target.getBoundingClientRect();\n        const rect = { left: tmpRect.left - fixedRect.left, right: document.documentElement.clientWidth - tmpRect.right - fixedRect.right, top: tmpRect.top - fixedRect.top, bottom: document.documentElement.clientHeight - tmpRect.bottom - fixedRect.bottom, width: tmpRect.width, height: tmpRect.height };\n        if (equal(rect, lastrect))\n            return undefined;\n        lastrect = rect;\n        let autoalign = align;\n        const leftright = rect.right > rect.left ? 'left' : 'right';\n        const topbottom = rect.bottom > rect.top ? 'bottom' : 'top';\n        if (align === 'auto') {\n            autoalign = topbottom + leftright;\n        }\n        else if (align === 'autoleft') {\n            autoalign = topbottom + 'left';\n        }\n        else if (align === 'autoright') {\n            autoalign = topbottom + 'right';\n        }\n        else if (align === 'topauto') {\n            autoalign = 'top' + leftright;\n        }\n        else if (align === 'bottomauto') {\n            autoalign = 'bottom' + leftright;\n        }\n        else if (align === 'automiddle') {\n            autoalign = topbottom;\n        }\n        else if (align === 'middleauto') {\n            autoalign = leftright;\n        }\n        else if (align === 'middle') {\n            if (cover) {\n                autoalign = 'middle';\n            }\n            else {\n                const maxSpace = Math.max(rect.top, rect.bottom, rect.left, rect.right);\n                if (maxSpace === rect.bottom)\n                    autoalign = 'bottom';\n                else if (maxSpace === rect.top)\n                    autoalign = 'top';\n                else if (maxSpace === rect.right)\n                    autoalign = 'right';\n                else\n                    autoalign = 'left';\n            }\n        }\n        const targetHeight = rect.height;\n        const elRect = el.getBoundingClientRect();\n        const elWidth = elRect.width;\n        const elHeight = elRect.height;\n        const elOffsetTop = el.offsetTop;\n        const elOffsetHeight = el.offsetHeight;\n        const parentClientHeight = parent?.clientHeight ?? 0;\n        const parentOverflowY = parent?.style.overflowY;\n        let position;\n        if (autoalign === 'bottomleft') {\n            position = () => {\n                el.style.top = `${rect.top + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.left = `${rect.left}px`;\n                el.style.removeProperty('bottom');\n                el.style.removeProperty('right');\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'bottom';\n            halign = 'left';\n        }\n        else if (autoalign === 'bottomright') {\n            position = () => {\n                el.style.top = `${rect.top + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.removeProperty('left');\n                el.style.removeProperty('bottom');\n                el.style.right = `${rect.right}px`;\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'bottom';\n            halign = 'right';\n        }\n        else if (autoalign === 'topleft') {\n            position = () => {\n                el.style.removeProperty('top');\n                el.style.left = `${rect.left}px`;\n                el.style.bottom = `${rect.bottom + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.removeProperty('right');\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'top';\n            halign = 'left';\n        }\n        else if (autoalign === 'topright') {\n            position = () => {\n                el.style.removeProperty('top');\n                el.style.removeProperty('left');\n                el.style.bottom = `${rect.bottom + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.right = `${rect.right}px`;\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'top';\n            halign = 'right';\n        }\n        else if (autoalign === 'top') {\n            position = () => {\n                el.style.removeProperty('top');\n                el.style.left = `${rect.left + rect.width / 2 - elWidth / 2}px`;\n                el.style.bottom = `${rect.bottom + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.removeProperty('right');\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'top';\n            halign = 'center';\n        }\n        else if (autoalign === 'bottom') {\n            position = () => {\n                el.style.top = `${rect.top + (cover ? 0 : targetHeight) + gap}px`;\n                el.style.left = `${rect.left + rect.width / 2 - elWidth / 2}px`;\n                el.style.removeProperty('bottom');\n                el.style.removeProperty('right');\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'bottom';\n            halign = 'center';\n        }\n        else if (autoalign === 'left') {\n            position = () => {\n                el.style.top = `${rect.top + rect.height / 2 - elHeight / 2}px`;\n                el.style.removeProperty('bottom');\n                if (cover) {\n                    el.style.left = `${rect.left + gap}px`;\n                    el.style.removeProperty('right');\n                }\n                else {\n                    el.style.removeProperty('left');\n                    el.style.right = `${rect.right + rect.width + gap}px`;\n                }\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'center';\n            halign = 'left';\n        }\n        else if (autoalign === 'right') {\n            position = () => {\n                el.style.top = `${rect.top + rect.height / 2 - elHeight / 2}px`;\n                el.style.removeProperty('bottom');\n                if (cover) {\n                    el.style.removeProperty('left');\n                    el.style.right = `${rect.right + gap}px`;\n                }\n                else {\n                    el.style.left = `${rect.left + rect.width + gap}px`;\n                    el.style.removeProperty('right');\n                }\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'center';\n            halign = 'right';\n        }\n        else if (autoalign === 'middle') {\n            position = () => {\n                el.style.top = `${rect.top + rect.height / 2 - elHeight / 2}px`;\n                el.style.left = `${rect.left + rect.width / 2 - elWidth / 2}px`;\n                el.style.removeProperty('bottom');\n                el.style.removeProperty('right');\n                adjustParentHeight(elOffsetTop, elOffsetHeight, parentClientHeight, parentOverflowY);\n            };\n            valign = 'center';\n            halign = 'center';\n        }\n        const fvalign = valign;\n        const fhalign = halign;\n        return () => {\n            position?.();\n            store?.update(v => ({ ...v, valign: fvalign, halign: fhalign }));\n        };\n    }\n    function invalidateAndSchedule() {\n        // A mutation or resize may have changed which ancestor is the containing block.\n        fixedParentComputed = false;\n        scheduleGlueFrame();\n    }\n    const { destroy: watchDestroy } = watchForMutations(invalidateAndSchedule);\n    registerGlue(measure);\n    return {\n        update({ target: utarget, align: ualign = 'auto', cover: ucover = false, gap: ugap = 0, store: ustore }) {\n            align = ualign;\n            cover = ucover;\n            gap = ugap;\n            if (ustore && ustore !== store) {\n                ustore.update(v => ({ ...v, valign, halign }));\n                store = ustore;\n            }\n            if (target !== utarget) {\n                target = utarget;\n                if (!target)\n                    el.style.removeProperty('position');\n                else {\n                    el.style.position = 'fixed';\n                    fixedParentComputed = false;\n                }\n                scheduleGlueFrame();\n            }\n        },\n        destroy() {\n            unregisterGlue(measure);\n            watchDestroy();\n            if (adjustparentheight && parent) {\n                if (formerMinHeight)\n                    parent.style.minHeight = formerMinHeight;\n                parent.style.removeProperty('min-height');\n            }\n        }\n    };\n}\nconst isHTMLElement = (e) => !!e && 'offsetParent' in e;\nfunction isFixedContainer(el) {\n    const css = getComputedStyle(el);\n    if (css.getPropertyValue('transform') !== 'none' || css.getPropertyValue('perspective') !== 'none')\n        return true; // A transform or perspective value other than none\n    if (['transform', 'perspective', 'filter'].includes(css.getPropertyValue('will-change')))\n        return true; // A will-change value of transform, filter, or perspective\n    if (css.getPropertyValue('filter') !== 'none')\n        return true; // A filter value other than none\n    if (['layout', 'paint', 'strict', 'content'].includes(css.getPropertyValue('contain')))\n        return true; // A contain value of layout, paint, strict or content (e.g. contain: paint;)\n    if ('container-type' in css && css.getPropertyValue('container-type') !== 'normal')\n        return true; // A container-type value other than normal\n    if ('backdrop-filter' in css && css.getPropertyValue('backdrop-filter') !== 'none')\n        return true; // A backdrop-filter other than none (e.g. backdrop-filter: blur(10px);)\n    return false;\n}\nfunction fixedContainingBlock(el) {\n    let parent = el.parentElement;\n    while (isHTMLElement(parent) && !isFixedContainer(parent))\n        parent = parent.parentElement;\n    return parent;\n}\n","import { clone } from 'txstate-utils';\nimport { Store } from './store.js';\nexport class SafeStore extends Store {\n    clone(value) {\n        return clone(value);\n    }\n}\n","import { get } from 'txstate-utils';\nimport { SafeStore } from './safestore.js';\nimport { Store } from './store.js';\n/**\n * Watch one or more parent stores for changes. Each time, run a function to derive\n * a new state from the parent state(s). Subscribers will only be notified if the\n * derived state has changed (checks deep equality).\n *\n * If only one parent store, it's possible to use a dot-prop string as the getter.\n */\nexport class DerivedStore extends Store {\n    constructor(store, getter, options) {\n        if (typeof getter === 'string') {\n            const accessor = getter;\n            getter = (parentValue) => get(parentValue, accessor);\n        }\n        super({});\n        this.sourcesInitialized = 0;\n        if (Array.isArray(store)) {\n            if (!store.every(s => s instanceof SafeStore))\n                this.clone = SafeStore.prototype.clone;\n            const values = [];\n            let timer;\n            const superSet = () => { super.set(getter(values)); };\n            const superSetDebounced = (options === null || options === void 0 ? void 0 : options.debounce) == null || (options === null || options === void 0 ? void 0 : options.debounce) === false || (options === null || options === void 0 ? void 0 : options.debounce) < 0\n                ? superSet\n                : () => {\n                    clearTimeout(timer);\n                    timer = setTimeout(superSet, options.debounce === true ? 0 : options.debounce);\n                };\n            for (let i = 0; i < store.length; i++) {\n                const idx = i;\n                const st = store[i];\n                this.registerSource(() => st.subscribe(v => {\n                    values[idx] = v;\n                    if (this.sourcesInitialized === store.length)\n                        superSetDebounced();\n                }));\n            }\n        }\n        else {\n            if (!(store instanceof SafeStore))\n                this.clone = SafeStore.prototype.clone;\n            let timer;\n            const superSet = (v) => { super.set(getter(v)); };\n            const superSetDebounced = (options === null || options === void 0 ? void 0 : options.debounce) == null || (options === null || options === void 0 ? void 0 : options.debounce) === false || (options === null || options === void 0 ? void 0 : options.debounce) < 0\n                ? superSet\n                : (v) => {\n                    clearTimeout(timer);\n                    timer = setTimeout(() => { superSet(v); }, options.debounce === true ? 0 : options.debounce);\n                };\n            this.registerSource(() => store.subscribe(superSetDebounced));\n        }\n    }\n}\nexport function derivedStore(store, getter, options) {\n    return new DerivedStore(store, getter, options);\n}\n","import { clone, get, set } from 'txstate-utils';\nimport { Store } from './store.js';\nimport { SafeStore } from './safestore.js';\n/**\n * Create a store that represents a part of a larger store. Updates to the parent store will propagate\n * down to the SubStore as appropriate, and updates to the SubStore will propagate\n * back up to the parent store. This requires both a getter and setter function to handle each\n * direction. The setter is given the new SubStore state and the existing parent store state and\n * should return a new state for the parent store.\n *\n * Alternatively, a dot-prop string can be provided and both the getter and setter will be automatically\n * generated. For example, a parent store containing state { deep: { value: 'here' }, hello: 'world' }\n * could be used with the getter string \"deep.value\". The SubStore's initial state would be \"here\", and\n * updating it to \"there\" would update the parent store state to { deep: { value: 'there' }, hello: 'world' }\n */\nexport class SubStore extends Store {\n    constructor(store, getter, setter) {\n        super({});\n        if (!(store instanceof SafeStore))\n            this.clone = clone;\n        if (typeof getter === 'string') {\n            const accessor = getter;\n            getter = parentValue => get(parentValue, accessor);\n            setter = (newValue, parentValue) => set(parentValue, accessor, newValue);\n        }\n        this.parentStore = store;\n        this.setter = setter;\n        this.registerSource(() => store.subscribe(v => {\n            super.set(getter(v));\n        }));\n    }\n    set(value) {\n        this.parentStore.update(parentValue => { return this.setter(value, parentValue); });\n    }\n}\nexport function subStore(store, getter, setter) {\n    return new SubStore(store, getter, setter);\n}\n","import { equal } from 'txstate-utils';\nimport { Store } from '@txstate-mws/svelte-store';\nimport { debounced } from '../util/index.js';\nexport class ResizeStore extends Store {\n    constructor(initialState) {\n        super(initialState ?? typeof window === 'undefined'\n            ? {\n                clientWidth: 1024,\n                clientHeight: 1024,\n                offsetWidth: 1024,\n                offsetHeight: 1024\n            }\n            : {\n                clientWidth: window.innerWidth,\n                clientHeight: window.innerHeight,\n                offsetWidth: window.innerWidth,\n                offsetHeight: window.innerHeight\n            });\n    }\n}\nexport function resize(el, config) {\n    if (config?.debounce === true)\n        config.debounce = 100;\n    let lastSize = {};\n    function watch() {\n        const current = { clientWidth: el.clientWidth, clientHeight: el.clientHeight, offsetWidth: el.offsetWidth, offsetHeight: el.offsetHeight };\n        if (!equal(lastSize, current)) {\n            lastSize = current;\n            if (config?.store)\n                config.store.update(v => ({ ...v, ...current }));\n            el.dispatchEvent(new CustomEvent('resize', { detail: current }));\n        }\n    }\n    if (typeof ResizeObserver === 'undefined') {\n        watch();\n        return;\n    } // support SSR\n    let observer = new ResizeObserver(config?.debounce ? debounced(watch, config.debounce) : watch);\n    observer.observe(el);\n    watch();\n    return {\n        update(newConfig) {\n            if (newConfig?.debounce === true)\n                newConfig.debounce = 100;\n            if (newConfig?.store !== config?.store) {\n                newConfig?.store?.update(v => ({ ...v, ...lastSize }));\n            }\n            if (!!newConfig?.debounce !== !!config?.debounce) {\n                observer.disconnect();\n                observer = new ResizeObserver(newConfig?.debounce ? debounced(watch, newConfig.debounce) : watch);\n                observer.observe(el);\n            }\n            config = newConfig;\n        },\n        destroy() {\n            observer.disconnect();\n        }\n    };\n}\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z\"\n  ></path>\n  <path\n    fill=\"none\"\n    d=\"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z\"\n    data-icon-path=\"inner-path\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    fill=\"none\"\n    d=\"M14.9 7.2H17.1V24.799H14.9z\"\n    data-icon-path=\"inner-path\"\n    transform=\"rotate(-45 16 16)\"\n  ></path>\n  <path\n    d=\"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z\"\n  ></path>\n</svg>\n","<script>\n  /** Set to `true` to use the small variant */\n  export let small = false;\n\n  /** Set to `false` to disable the active state */\n  export let active = true;\n\n  /** Set to `false` to disable the overlay */\n  export let withOverlay = true;\n\n  /** Specify the description to describe the loading state */\n  export let description = \"loading\";\n\n  $: spinnerRadius = small ? \"42\" : \"44\";\n</script>\n\n{#if withOverlay}\n  <div\n    class:bx--loading-overlay={true}\n    class:bx--loading-overlay--stop={!active}\n    {...$$restProps}\n  >\n    <div\n      aria-atomic=\"true\"\n      aria-live={active ? \"assertive\" : \"off\"}\n      class:bx--loading={true}\n      class:bx--loading--small={small}\n      class:bx--loading--stop={!active}\n    >\n      <svg class:bx--loading__svg={true} viewBox=\"0 0 100 100\">\n        <title>{description}</title>\n        {#if small}\n          <circle\n            class:bx--loading__background={true}\n            cx=\"50%\"\n            cy=\"50%\"\n            r={spinnerRadius}\n          ></circle>\n        {/if}\n        <circle\n          class:bx--loading__stroke={true}\n          cx=\"50%\"\n          cy=\"50%\"\n          r={spinnerRadius}\n        ></circle>\n      </svg>\n    </div>\n  </div>\n{:else}\n  <div\n    aria-atomic=\"true\"\n    aria-live={active ? \"assertive\" : \"off\"}\n    class:bx--loading={true}\n    class:bx--loading--small={small}\n    class:bx--loading--stop={!active}\n    {...$$restProps}\n  >\n    <svg class:bx--loading__svg={true} viewBox=\"0 0 100 100\">\n      <title>{description}</title>\n      {#if small}\n        <circle\n          class:bx--loading__background={true}\n          cx=\"50%\"\n          cy=\"50%\"\n          r={spinnerRadius}\n        ></circle>\n      {/if}\n      <circle\n        class:bx--loading__stroke={true}\n        cx=\"50%\"\n        cy=\"50%\"\n        r={spinnerRadius}\n      ></circle>\n    </svg>\n  </div>\n{/if}\n","<script>\n  /**\n   * Set the loading status.\n   * @type {\"active\" | \"inactive\" | \"finished\" | \"error\"}\n   */\n  export let status = \"active\";\n\n  /**\n   * Set the loading description.\n   * @type {string}\n   */\n  export let description = undefined;\n\n  /**\n   * Specify a description for the loading icon.\n   * Defaults to the `status` prop for the \"error\" and \"finished\" states.\n   * @type {string}\n   */\n  export let iconDescription = undefined;\n\n  /** Specify the timeout delay (ms) before the `success` event fires after `status` is set to \"finished\" */\n  export let successDelay = 1500;\n\n  import { createEventDispatcher, onMount } from \"svelte\";\n  import CheckmarkFilled from \"../icons/CheckmarkFilled.svelte\";\n  import ErrorFilled from \"../icons/ErrorFilled.svelte\";\n  import Loading from \"../Loading/Loading.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  let timeout = undefined;\n\n  onMount(() => {\n    return () => {\n      clearTimeout(timeout);\n    };\n  });\n\n  $: if (status === \"finished\") {\n    clearTimeout(timeout);\n    timeout = setTimeout(() => {\n      dispatch(\"success\");\n    }, successDelay);\n  }\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--inline-loading={true}\n  aria-live=\"assertive\"\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <div class:bx--inline-loading__animation={true}>\n    {#if status === \"error\"}\n      <ErrorFilled\n        class=\"bx--inline-loading--error\"\n        title={iconDescription || status}\n      />\n    {:else if status === \"finished\"}\n      <CheckmarkFilled\n        class=\"bx--inline-loading__checkmark-container\"\n        title={iconDescription || status}\n      />\n    {:else if status === \"inactive\" || status === \"active\"}\n      <Loading\n        small\n        description={iconDescription}\n        withOverlay={false}\n        active={status === \"active\"}\n      />\n    {/if}\n  </div>\n  {#if description}\n    <div class:bx--inline-loading__text={true}>{description}</div>\n  {/if}\n</div>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"\n  ></path>\n</svg>\n","// @ts-check\n\nconst selectorFirstInput =\n  'input:not([type=\"hidden\"]):not([disabled]):not([tabindex=\"-1\"]), textarea:not([disabled]):not([tabindex=\"-1\"]), select:not([disabled]):not([tabindex=\"-1\"])';\n\n/**\n * Resolve initial dialog focus: `selectorPrimaryFocus`, then the first form\n * input, then the first truthy `fallbacks` entry. Returns `null` when\n * `selectorPrimaryFocus` is null or no target is found.\n *\n * @param {Object} options\n * @param {Element | null | undefined} options.container - Dialog container to search within.\n * @param {string | null} [options.selectorPrimaryFocus] - Preferred focus target selector; `null` to focus nothing.\n * @param {Array<Element | null | undefined>} [options.fallbacks] - Fallback elements if no selector or input matches.\n * @returns {HTMLElement | null}\n */\nexport function initialFocus({\n  container,\n  selectorPrimaryFocus = \"[data-modal-primary-focus]\",\n  fallbacks = [],\n}) {\n  if (selectorPrimaryFocus == null || container == null) return null;\n  const node =\n    container.querySelector(selectorPrimaryFocus) ||\n    container.querySelector(selectorFirstInput) ||\n    fallbacks.find(Boolean) ||\n    null;\n  return /** @type {HTMLElement | null} */ (node);\n}\n\n/**\n * Save focus before an overlay opens and restore it on close when the element\n * is still connected.\n *\n * @returns {{ save: () => void; restore: () => void }}\n */\nexport function restoreFocus() {\n  /** @type {HTMLElement | null} */\n  let previouslyFocusedElement = null;\n  return {\n    save() {\n      previouslyFocusedElement =\n        document.activeElement instanceof HTMLElement\n          ? document.activeElement\n          : null;\n    },\n    restore() {\n      if (previouslyFocusedElement?.isConnected) {\n        previouslyFocusedElement.focus();\n        previouslyFocusedElement = null;\n      }\n    },\n  };\n}\n","// @ts-check\n\n/**\n * Drag-aware outside-click dismissal for dialog surfaces (Modal, ComposedModal).\n *\n * A plain `click` handler on the backdrop dismisses the dialog even when a text\n * selection that *began inside* the dialog is released outside it. To avoid that,\n * track whether the pointer was pressed inside the dialog on `mousedown` and only\n * dismiss on `mouseup` when it was not.\n *\n * A native `<select>` inside the dialog fires an unpaired `mouseup` on its host\n * element when its (browser-native, not in the DOM) options popup is dismissed,\n * with no corresponding `mousedown`. `pressedInside` is therefore only cleared by\n * an explicit outside `mousedown` (`pressOutside`), not by every `release`, so\n * that orphaned `mouseup` doesn't read as an outside click.\n *\n * @param {() => void} onDismiss Called on a press-and-release that began outside the dialog.\n * @returns {{ pressInside: () => void, pressOutside: () => void, release: () => void }}\n */\nexport function createOutsideDismiss(onDismiss) {\n  let pressedInside = false;\n\n  return {\n    /** Wire to the dialog container's `on:mousedown`. */\n    pressInside() {\n      pressedInside = true;\n    },\n    /** Wire to the backdrop's `on:mousedown`, guarded to `event.target === event.currentTarget`. */\n    pressOutside() {\n      pressedInside = false;\n    },\n    /** Wire to the surface's `on:mouseup`; dismisses only if the press began outside. */\n    release() {\n      if (!pressedInside) onDismiss();\n    },\n  };\n}\n","// @ts-check\n// Scroll a highlighted option into view without scrolling the document.\n//\n// `Element.scrollIntoView` scrolls every scrollable ancestor up to the\n// viewport. When the list box menu is portaled to `document.body` (or has no\n// internal scroll container), the nearest scrollable ancestor is the document\n// itself, so calling it on highlight would jump the whole page. This scopes the\n// adjustment to the menu's own scroll container and is a no-op when the menu is\n// not scrollable.\n\n/**\n * Scroll `el` into view within its nearest scroll container matching\n * `containerSelector` using `block: \"nearest\"` semantics. Never scrolls the\n * document.\n *\n * @param {HTMLElement} el\n * @param {string} [containerSelector] defaults to `[role=\"listbox\"]`\n * @returns {void}\n */\nexport function scrollIntoViewWithinMenu(\n  el,\n  containerSelector = '[role=\"listbox\"]',\n) {\n  const container = el.closest(containerSelector);\n  if (!(container instanceof HTMLElement)) return;\n  if (container.scrollHeight <= container.clientHeight) return;\n\n  const itemRect = el.getBoundingClientRect();\n  const containerRect = container.getBoundingClientRect();\n\n  if (itemRect.top < containerRect.top) {\n    container.scrollTop -= containerRect.top - itemRect.top;\n  } else if (itemRect.bottom > containerRect.bottom) {\n    container.scrollTop += itemRect.bottom - containerRect.bottom;\n  }\n}\n","// @ts-check\n\n// taken from github.com/carbon-design-system/carbon/packages/react/src/internal/keyboard/navigation.js\nconst selectorTabbable = `\n  a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n  button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n  textarea:not([disabled]):not([tabindex='-1']),\n  iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n`;\n\n/**\n * Trap Tab/Shift+Tab focus within `container`. Call on Tab keydown; always\n * calls `event.preventDefault()`.\n *\n * @param {Object} options\n * @param {Element} options.container - Element whose tabbable descendants form the focus loop.\n * @param {KeyboardEvent} options.event - The Tab keydown event.\n * @returns {void}\n */\nexport function trapFocus({ container, event }) {\n  const tabbable = /** @type {HTMLElement[]} */ (\n    Array.from(container.querySelectorAll(selectorTabbable))\n  ).filter((el) => {\n    // Cheap geometry check first, so the (layout/style-recalc-forcing)\n    // `getComputedStyle` call below is only reached for elements not\n    // already excluded by it. `offsetParent` is `null` both when the\n    // browser hasn't computed real layout for the element (not attached,\n    // inside a `display: none` ancestor) and for visible `position: fixed`\n    // elements — and, in test environments like jsdom that don't compute\n    // layout at all, for every element unconditionally. Requiring\n    // `offsetParent !== null` before trusting zero dimensions avoids\n    // treating \"no layout information\" as \"hidden\".\n    if (\n      el.offsetParent !== null &&\n      el.offsetWidth === 0 &&\n      el.offsetHeight === 0\n    ) {\n      return false;\n    }\n\n    // `visibility: hidden` elements keep their layout box, so this can only\n    // be detected via computed style, not geometry.\n    const style = getComputedStyle(el);\n    return style.visibility !== \"hidden\" && style.display !== \"none\";\n  });\n\n  if (tabbable.length === 0) {\n    event.preventDefault();\n    return;\n  }\n\n  let index = tabbable.indexOf(\n    /** @type {HTMLElement} */ (document.activeElement),\n  );\n  if (index === -1) {\n    index = event.shiftKey ? tabbable.length : -1;\n  }\n\n  index += event.shiftKey ? -1 : 1;\n  index = (index + tabbable.length) % tabbable.length;\n\n  tabbable[index].focus();\n  event.preventDefault();\n}\n","// @ts-check\n\n/**\n * Generate a random id string, e.g. `ccs-4f2k9x1z`.\n * Not cryptographically secure; intended for DOM ids (aria-* pairing, label `for`, etc.).\n * @param {string} [prefix]\n * @returns {string}\n */\nexport function uniqueId(prefix = \"ccs\") {\n  return `${prefix}-${Math.random().toString(36).slice(2)}`;\n}\n","// @ts-check\nlet lockCount = 0;\n\n/** Acquire the body scroll lock, adding the class on the first holder. */\nexport function acquireBodyScrollLock() {\n  lockCount += 1;\n  if (typeof document !== \"undefined\" && lockCount === 1) {\n    document.body.classList.add(\"bx--body--with-modal-open\");\n  }\n}\n\n/** Release the body scroll lock, removing the class when the last holder releases. */\nexport function releaseBodyScrollLock() {\n  if (lockCount === 0) return;\n  lockCount -= 1;\n  if (typeof document !== \"undefined\" && lockCount === 0) {\n    document.body.classList.remove(\"bx--body--with-modal-open\");\n  }\n}\n","import { onMount } from \"svelte\";\nimport { get, writable } from \"svelte/store\";\nimport {\n  acquireBodyScrollLock,\n  releaseBodyScrollLock,\n} from \"../utils/bodyScrollLock.js\";\n\n/** A set of stores indicating whether a modal is open. */\nconst stores = new Set();\n\n/** Store for the number of open modals. */\nconst modalsOpen = writable(0);\n\nfunction updateModalsOpen() {\n  modalsOpen.set([...stores].filter((open) => get(open)).length);\n}\n\n/**\n * Adds a modal's store to the open modal tracking.\n * Has to be called during component initialization.\n * Modal is automatically removed on destroy.\n * @param {import('svelte/store').Readable<boolean>} openStore\n *   Store that indicates whether the modal is opened.\n */\nexport function trackModal(openStore) {\n  return onMount(() => {\n    stores.add(openStore);\n    const unsubscribe = openStore.subscribe(updateModalsOpen);\n\n    return () => {\n      unsubscribe();\n      stores.delete(openStore);\n\n      updateModalsOpen();\n    };\n  });\n}\n\nlet modalsHoldLock = false;\nmodalsOpen.subscribe((openCount) => {\n  if (openCount > 0 && !modalsHoldLock) {\n    modalsHoldLock = true;\n    acquireBodyScrollLock();\n  } else if (openCount === 0 && modalsHoldLock) {\n    modalsHoldLock = false;\n    releaseBodyScrollLock();\n  }\n});\n","<script>\n  /**\n   * @template [Icon=any]\n   * @event close\n   * @type {object}\n   * @property {\"escape-key\" | \"outside-click\" | \"close-button\" | \"programmatic\"} trigger\n   * @event transitionend\n   * @type {object}\n   * @property {boolean} open\n   * @event click:button--secondary\n   * @type {object}\n   * @property {string} text\n   */\n\n  /**\n   * Set the size of the modal.\n   * @type {\"xs\" | \"sm\" | \"lg\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Set to `true` to open the modal.\n   * @bindable writable\n   */\n  export let open = false;\n\n  /** Set to `true` to use the danger variant */\n  export let danger = false;\n\n  /** Set to `true` to enable alert mode */\n  export let alert = false;\n\n  /** Set to `true` to use the passive variant */\n  export let passiveModal = false;\n\n  /** Set to `true` to remove the modal body padding so content spans edge to edge */\n  export let fullWidth = false;\n\n  /**\n   * Specify the modal heading.\n   * @type {string}\n   */\n  export let modalHeading = undefined;\n\n  /**\n   * Specify the modal label.\n   * @type {string}\n   */\n  export let modalLabel = undefined;\n\n  /**\n   * Specify the ARIA label for the modal.\n   * @type {string}\n   */\n  export let modalAriaLabel = undefined;\n\n  /** Specify the ARIA label for the close icon */\n  export let iconDescription = \"Close the modal\";\n\n  /** Set to `true` if the modal contains form elements */\n  export let hasForm = false;\n\n  /**\n   * Specify the ID of a form element to associate with the primary button.\n   * This enables the primary button to submit the form from outside the form element.\n   * @type {string}\n   */\n  export let formId = undefined;\n\n  /** Set to `true` if the modal contains scrolling content */\n  export let hasScrollingContent = false;\n\n  /** Specify the primary button text */\n  export let primaryButtonText = \"\";\n\n  /** Set to `true` to disable the primary button */\n  export let primaryButtonDisabled = false;\n\n  /**\n   * Set to `true` to show a loading state on the primary button.\n   * While loading, the button is non-interactive and submit is suppressed.\n   */\n  export let primaryButtonLoading = false;\n\n  /**\n   * Specify the description for the primary button loading state.\n   * Passed to `InlineLoading` as `description`.\n   */\n  export let primaryButtonLoadingDescription = \"Loading\";\n\n  /**\n   * Specify the primary button icon.\n   * @type {Icon}\n   */\n  export let primaryButtonIcon = /** @type {Icon} */ (undefined);\n\n  /**\n   * Set to `true` for the \"submit\" and \"click:button--primary\" events\n   * to be dispatched when pressing \"Enter\".\n   */\n  export let shouldSubmitOnEnter = true;\n\n  /** Specify the secondary button text */\n  export let secondaryButtonText = \"\";\n\n  /**\n   * One or two secondary buttons for the modal footer.\n   * Supersedes `secondaryButtonText`. Each entry needs `text`; optional\n   * `kind` (defaults to `\"secondary\"`) and `disabled` pass through to Button.\n   * With two entries plus a primary button, the footer uses the three-button layout.\n   * @type {ReadonlyArray<{ text: string; kind?: string; disabled?: boolean }>}\n   */\n  export let secondaryButtons = [];\n\n  /** Specify a selector to be focused when opening the modal */\n  export let selectorPrimaryFocus = \"[data-modal-primary-focus]\";\n\n  /** Set to `true` to prevent the modal from closing when clicking outside */\n  export let preventCloseOnClickOutside = false;\n\n  /**\n   * Set to `true` to hide the header close button.\n   * Provide an alternative dismiss path (footer actions or Escape).\n   */\n  export let hideCloseButton = false;\n\n  /** Set an id for the top-level element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the top-level HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, onMount, setContext, tick } from \"svelte\";\n  import { writable } from \"svelte/store\";\n  import Button from \"../Button/Button.svelte\";\n  import InlineLoading from \"../InlineLoading/InlineLoading.svelte\";\n  import Close from \"../icons/Close.svelte\";\n  import { initialFocus, restoreFocus } from \"../utils/focus.js\";\n  import { createOutsideDismiss } from \"../utils/outsideDismiss.js\";\n  import { scrollIntoViewWithinMenu } from \"../utils/scrollIntoViewWithinMenu.js\";\n  import { trapFocus } from \"../utils/trapFocus.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import { trackModal } from \"./modalStore\";\n\n  const dispatch = createEventDispatcher();\n  const focusReturn = restoreFocus();\n\n  let buttonRef = null;\n  let primaryButtonRef = null;\n  let innerModal = null;\n  let opened = false;\n  let closeDispatched = false;\n  let mounted = false;\n\n  function focus(element) {\n    const container = element || innerModal;\n    const node = initialFocus({\n      container,\n      selectorPrimaryFocus,\n      fallbacks: [\n        danger ? container.querySelector(\".bx--btn--secondary\") : null,\n        primaryButtonRef,\n        buttonRef,\n      ],\n    });\n    node?.focus();\n  }\n\n  function close(trigger) {\n    closeDispatched = true;\n    const shouldContinue = dispatch(\"close\", { trigger }, { cancelable: true });\n    if (shouldContinue) {\n      open = false;\n    } else {\n      closeDispatched = false;\n    }\n  }\n\n  const outsideDismiss = createOutsideDismiss(() => {\n    if (!preventCloseOnClickOutside) close(\"outside-click\");\n  });\n\n  const openStore = writable(open);\n  $: $openStore = open;\n  trackModal(openStore);\n\n  setContext(\"carbon:Modal\", {});\n\n  // Initial mount already runs the reactive block below, which handles\n  // dispatching \"open\" and the `opened`/`focusReturn.save()` bookkeeping.\n  // What it can't do is focus the modal: reactive statements run *before*\n  // the DOM is committed, so `innerModal` isn't attached yet. `onMount`\n  // runs after mount, so the DOM is already in place — no `tick()` needed.\n  onMount(() => {\n    mounted = true;\n    if (open) {\n      focus();\n    }\n  });\n\n  $: {\n    if (opened) {\n      if (!open) {\n        opened = false;\n        if (!closeDispatched) {\n          tick().then(() => {\n            dispatch(\"close\", { trigger: \"programmatic\" });\n          });\n        }\n        closeDispatched = false;\n      }\n    } else if (open) {\n      opened = true;\n      // Reading `document.activeElement` doesn't depend on this modal's own\n      // DOM, so it's safe (and race-free) to capture it synchronously here.\n      focusReturn.save();\n      dispatch(\"open\");\n      // Skip on the initial-mount run: `onMount` above already handles\n      // focusing an already-open modal. This only covers later open\n      // transitions, where `focus()` needs the committed DOM (`tick()`).\n      if (mounted) {\n        tick().then(() => {\n          if (open) focus();\n        });\n      }\n    }\n  }\n\n  $: modalLabelId = `bx--modal-header__label--modal-${id}`;\n  $: modalHeadingId = `bx--modal-header__heading--modal-${id}`;\n  $: modalBodyId = `bx--modal-body--${id}`;\n  $: ariaLabel =\n    modalLabel ?? $$props[\"aria-label\"] ?? modalAriaLabel ?? modalHeading;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<div\n  bind:this={ref}\n  role=\"presentation\"\n  {id}\n  class:bx--modal={true}\n  class:bx--modal-tall={!passiveModal}\n  class:is-visible={open}\n  class:bx--modal--danger={danger}\n  inert={open ? undefined : true}\n  {...$$restProps}\n  on:keydown\n  on:keydown={(event) => {\n    if (open) {\n      if (event.key === \"Escape\") {\n        // Stop stacked (DOM-nested) modals from also closing: this\n        // handler is on each modal's own root and Escape bubbles from\n        // the focused (innermost, topmost) modal up through ancestors.\n        event.stopPropagation();\n        close(\"escape-key\");\n      } else if (event.key === \"Tab\") {\n        trapFocus({ container: ref, event });\n      } else if (\n        shouldSubmitOnEnter &&\n        event.key === \"Enter\" &&\n        !primaryButtonDisabled &&\n        !primaryButtonLoading\n      ) {\n        const target = event.target;\n        const tag = target?.tagName;\n        if (\n          tag === \"BUTTON\" ||\n          tag === \"TEXTAREA\" ||\n          tag === \"SELECT\" ||\n          target?.isContentEditable\n        ) {\n          return;\n        }\n        if (formId && primaryButtonRef) {\n          primaryButtonRef.click();\n        } else {\n          dispatch(\"submit\");\n          dispatch(\"click:button--primary\");\n        }\n      }\n    }\n  }}\n  on:click\n  on:mousedown={(event) => {\n    if (event.target === event.currentTarget) outsideDismiss.pressOutside();\n  }}\n  on:mouseup={outsideDismiss.release}\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n  on:transitionend={(event) => {\n    if (event.propertyName === \"transform\") {\n      dispatch(\"transitionend\", { open });\n      if (!open) focusReturn.restore();\n    }\n  }}\n>\n  <div\n    bind:this={innerModal}\n    tabindex=\"-1\"\n    role={alert ? (passiveModal ? \"alert\" : \"alertdialog\") : \"dialog\"}\n    aria-describedby={alert && !passiveModal ? modalBodyId : undefined}\n    aria-modal=\"true\"\n    aria-label={ariaLabel}\n    class:bx--modal-container={true}\n    class:bx--modal-container--xs={size === \"xs\"}\n    class:bx--modal-container--sm={size === \"sm\"}\n    class:bx--modal-container--lg={size === \"lg\"}\n    class:bx--modal-container--full-width={fullWidth}\n    on:mousedown={outsideDismiss.pressInside}\n  >\n    <div class:bx--modal-header={true}>\n      {#if passiveModal && !hideCloseButton}\n        <button\n          bind:this={buttonRef}\n          type=\"button\"\n          aria-label={iconDescription}\n          class:bx--modal-close={true}\n          on:click={() => {\n            close(\"close-button\");\n          }}\n        >\n          <Close size={20} class=\"bx--modal-close__icon\" aria-hidden=\"true\" />\n        </button>\n      {/if}\n      {#if modalLabel}\n        <h2 id={modalLabelId} class:bx--modal-header__label={true}>\n          <slot name=\"label\">{modalLabel}</slot>\n        </h2>\n      {/if}\n      <h3 id={modalHeadingId} class:bx--modal-header__heading={true}>\n        <slot name=\"heading\">{modalHeading}</slot>\n      </h3>\n      {#if !passiveModal && !hideCloseButton}\n        <button\n          bind:this={buttonRef}\n          type=\"button\"\n          aria-label={iconDescription}\n          class:bx--modal-close={true}\n          on:click={() => {\n            close(\"close-button\");\n          }}\n        >\n          <Close size={20} class=\"bx--modal-close__icon\" aria-hidden=\"true\" />\n        </button>\n      {/if}\n    </div>\n    <!-- svelte-ignore a11y-no-noninteractive-tabindex -->\n    <div\n      id={modalBodyId}\n      class:bx--modal-content={true}\n      class:bx--modal-content--with-form={hasForm}\n      class:bx--modal-scroll-content={hasScrollingContent}\n      tabindex={hasScrollingContent ? \"0\" : undefined}\n      role={hasScrollingContent ? \"region\" : undefined}\n      aria-label={hasScrollingContent ? ariaLabel : undefined}\n      aria-labelledby={modalLabel ? modalLabelId : modalHeadingId}\n      on:focusin={(event) => {\n        // Keep a newly-focused element (e.g. via Tab) from being hidden\n        // under the scroll gradient at the bottom of the content area.\n        if (event.target instanceof HTMLElement) {\n          scrollIntoViewWithinMenu(event.target, \".bx--modal-content\");\n        }\n      }}\n    >\n      <slot />\n    </div>\n    {#if hasScrollingContent}\n      <div class:bx--modal-content--overflow-indicator={true}></div>\n    {/if}\n    {#if !passiveModal}\n      <div\n        class:bx--modal-footer={true}\n        class:bx--modal-footer--three-button={secondaryButtons.length === 2}\n      >\n        {#if secondaryButtons.length > 0}\n          {#each secondaryButtons as button (button.text)}\n            <Button\n              kind={button.kind ?? \"secondary\"}\n              disabled={button.disabled}\n              on:click={() => {\n                dispatch(\"click:button--secondary\", { text: button.text });\n              }}\n            >\n              {button.text}\n            </Button>\n          {/each}\n        {:else if secondaryButtonText}\n          <Button\n            kind=\"secondary\"\n            on:click={() => {\n              dispatch(\"click:button--secondary\", {\n                text: secondaryButtonText,\n              });\n            }}\n          >\n            {secondaryButtonText}\n          </Button>\n        {/if}\n        <Button\n          bind:ref={primaryButtonRef}\n          kind={danger ? \"danger\" : \"primary\"}\n          disabled={primaryButtonDisabled || primaryButtonLoading}\n          icon={primaryButtonLoading ? undefined : primaryButtonIcon}\n          type={formId ? \"submit\" : \"button\"}\n          form={formId}\n          on:click={() => {\n            if (primaryButtonLoading) return;\n            dispatch(\"submit\");\n            dispatch(\"click:button--primary\");\n          }}\n        >\n          {#if primaryButtonLoading}\n            <InlineLoading\n              status=\"active\"\n              description={primaryButtonLoadingDescription}\n            />\n          {:else}\n            {primaryButtonText}\n          {/if}\n        </Button>\n      </div>\n    {/if}\n  </div>\n</div>\n","import { goto } from '$app/navigation';\nimport { writable } from 'svelte/store';\nclass WarnUnsaved {\n    #allowNavigate = false;\n    #pendingNavigate;\n    get allowNavigate() {\n        return this.#allowNavigate;\n    }\n    set allowNavigate(val) {\n        this.#allowNavigate = val;\n        if (val)\n            setTimeout(() => { this.#allowNavigate = false; }, 100);\n    }\n    /**\n     * Remember the navigation an unsaved changes guard stops so that it can be resumed if the user confirms they want to leave.\n     */\n    setPendingNavigate(to, willUnload) {\n        this.#pendingNavigate = { to, willUnload };\n    }\n    clearPendingNavigate() {\n        this.#pendingNavigate = undefined;\n    }\n    /**\n     * Resume the navigation a guard cancelled.\n     */\n    resumePendingNavigate() {\n        const pending = this.#pendingNavigate;\n        if (pending == null)\n            return false;\n        this.#pendingNavigate = undefined;\n        this.allowNavigate = true;\n        // goto() only handles in-app navigations; anything that unloads the document has to go through the browser\n        if (pending.willUnload)\n            location.href = pending.to.url.href;\n        else\n            void goto(pending.to.url);\n        return true;\n    }\n}\nexport const warnunsaved = new WarnUnsaved();\nexport const unsavedDialogOpen = writable(false);\n","import { derivedStore, Store, subStore } from '@txstate-mws/svelte-store';\nimport { equal, get, isPracticallyEmpty, set } from 'txstate-utils';\nexport var MessageType;\n(function (MessageType) {\n    MessageType[\"ERROR\"] = \"error\";\n    MessageType[\"WARNING\"] = \"warning\";\n    MessageType[\"SUCCESS\"] = \"success\";\n    MessageType[\"SYSTEM\"] = \"system\";\n    MessageType[\"INFO\"] = \"info\";\n})(MessageType || (MessageType = {}));\nconst errorTypes = { [MessageType.ERROR]: true, [MessageType.SYSTEM]: true };\nfunction messageIsError(m) { return !!errorTypes[m.type]; }\n/**\n * Equality for deciding whether a field's value represents user activity, i.e.\n * differs from the field's registered defaultValue. All the empty states (null,\n * undefined, '', [], {}) are mutually equivalent so a field with no default isn't\n * considered touched just for holding an empty value. Boolean `false` joins them\n * because it's the untouched state of a checkbox that never declared a default.\n * Deliberately NOT the store's own `equal` method, which subclasses may override.\n */\nfunction isUnset(v) { return v === false || isPracticallyEmpty(v); }\nfunction equivalentToDefault(val, defaultValue) { return equal(val, defaultValue) || (isUnset(val) && isUnset(defaultValue)); }\nfunction setPathValid(validField, path) {\n    validField[path] = 'valid';\n    return validField;\n}\nconst initialState = { data: {}, conditionalData: {}, messages: { all: [], global: [], fields: {} }, validField: {}, valid: true, invalid: false, showingInlineErrors: false, initializing: false, validating: false, submitting: false, saved: false, dirty: undefined, width: 800, hasUnsavedChanges: false };\nexport class FormStore extends Store {\n    submitFn;\n    validateFn;\n    validationTimer;\n    validateVersion;\n    preloadTimer;\n    submitVersion;\n    fields;\n    arrayFields = new Map();\n    defaultValues = new Map();\n    /**\n     * Fields that opt in to owning their subpath messages. When a message has a path\n     * like `myupload.0` and `myupload` is in this set, the message is not considered\n     * global — the owning field is responsible for surfacing it. Used by leaf fields\n     * whose value is itself an array (e.g. multi-file upload) and that already render\n     * per-item feedback. This is deliberately opt-in: AddMore arrays do *not* register\n     * here, because an unregistered subpath under them (e.g. `balloons.0.colour` with\n     * no Field for `colour`) should still surface globally rather than silently\n     * vanish.\n     */\n    ownsSubpathFields = new Set();\n    initialized;\n    initializes;\n    finalizes;\n    dirtyFields;\n    dirtyFieldsNextTick;\n    dirtyForm = false;\n    preloaded = false;\n    submitPromise;\n    trailingSubmit;\n    changedSinceSubmit = false;\n    /**\n     * A successful autosave that landed while the form held newer input holds its\n     * `autosaved` announcement here instead of dispatching. Usually the follow-up save\n     * dispatches its own event and this is simply discarded; if the burst ends without\n     * one (the trailing resubmit skipped, or a later attempt failed), we flush it so\n     * every committed save is eventually announced.\n     */\n    pendingAutosavedDispatch;\n    mounted;\n    needsValidation;\n    isEmptyMap = new Map();\n    beforeUserChanges;\n    autoSave;\n    preloadAsDraft;\n    dispatch;\n    constructor(submitFn, validateFn) {\n        super(structuredClone(initialState));\n        this.submitFn = submitFn;\n        this.validateFn = validateFn;\n        this.validateVersion = 0;\n        this.submitVersion = 0;\n        this.fields = new Map();\n        this.initialized = new Set();\n        this.initializes = new Map();\n        this.finalizes = new Map();\n        this.reset();\n    }\n    set(state) {\n        const statechanges = {};\n        statechanges.invalid = state.messages.all.some(messageIsError);\n        const validField = Array.from(this.fields.keys()).reduce(setPathValid, {});\n        for (const m of state.messages.all) {\n            if (m.path && messageIsError(m))\n                validField[m.path] = 'invalid';\n        }\n        statechanges.messages = { ...state.messages };\n        statechanges.messages.fields = state.messages.all.filter(m => m.path).reduce((acc, curr) => {\n            if (curr.path && (this.dirtyForm || this.dirtyFields.has(curr.path))) {\n                acc[curr.path] ??= [];\n                acc[curr.path].push(curr);\n            }\n            return acc;\n        }, {});\n        statechanges.messages.global = state.messages.all.filter(m => {\n            if (!m.path)\n                return true;\n            if (this.fields.has(m.path) || this.arrayFields.has(m.path))\n                return false;\n            for (const owner of this.ownsSubpathFields) {\n                if (m.path.startsWith(owner + '.'))\n                    return false;\n            }\n            return true;\n        });\n        statechanges.validField = validField;\n        statechanges.valid = !statechanges.invalid;\n        statechanges.showingInlineErrors = statechanges.messages.global.some(messageIsError) || Object.values(statechanges.messages.fields).some(msgs => msgs.some(messageIsError));\n        statechanges.hasUnsavedChanges = !!this.mounted && !equal(state.data ?? {}, this.beforeUserChanges ?? {});\n        super.set({ ...state, ...statechanges });\n    }\n    updateDirtyOnBlur() {\n        // if we are already validating, we can just wait for that because it will\n        // trigger dirtyNextTick and update the state\n        if (!this.value.validating) {\n            // if we are not validating, we want to show errors on fields immediately as they lose focus\n            this.dirtyNextTick();\n            this.set({ ...this.value });\n        }\n    }\n    reset(data) {\n        this.dirtyForm = false;\n        this.preloaded = false;\n        this.submitVersion = 0;\n        this.validateVersion = 0;\n        this.dirtyFields = new Set();\n        this.dirtyFieldsNextTick = new Set();\n        this.beforeUserChanges = undefined;\n        this.changedSinceSubmit = false;\n        this.trailingSubmit = undefined;\n        this.pendingAutosavedDispatch = undefined;\n        clearTimeout(this.validationTimer);\n        clearTimeout(this.preloadTimer);\n        this.set(structuredClone(initialState));\n        if (data != null)\n            void this.preload(data);\n    }\n    registerPromises = [];\n    async preload(data) {\n        if (equal(data, this.value.data))\n            return;\n        this.initialized.clear();\n        this.registerPromises = [];\n        await this.setData(data ?? {}, false, data == null);\n        this.preloadTimer = setTimeout(async () => {\n            await Promise.all(this.registerPromises);\n            this.beforeUserChanges = structuredClone(this.value.data);\n            this.set({ ...this.value }); // .set() will evaluate hasUnsavedChanges\n            if (data != null)\n                this.setDirtyForm(); // on autosave forms, we need to do this again after fields are registered\n        }, 0);\n    }\n    /**\n     * skipInitialize is meant for when the data was extracted from state instead\n     * of coming from the database/API\n     */\n    async setData(data, skipInitialize, skipDirtyForm) {\n        this.preloaded = true;\n        this.update(v => ({ ...v, initializing: !skipInitialize, data, conditionalData: { ...Object.keys(v.conditionalData).reduce((acc, key) => ({ ...acc, [key]: { value: get(data, key) } }), {}) } }));\n        const dataToSet = skipInitialize ? data : await this.initialize(data);\n        if (!skipDirtyForm)\n            this.setDirtyForm(dataToSet);\n        this.update(v => ({ ...v, initializing: false, data: dataToSet, conditionalData: { ...Object.keys(v.conditionalData).reduce((acc, key) => ({ ...acc, [key]: { value: get(dataToSet, key) ?? v.conditionalData[key]?.value } }), {}) } }));\n        this.triggerValidation(!skipInitialize);\n    }\n    setDirtyForm(data = this.value.data) {\n        if (this.autoSave || this.preloadAsDraft) {\n            // normally when we preload or save a form, we assume we are editing an\n            // existing object, so we set the whole form dirty and show all errors\n            // but when a user preloads an auto-saving form (or a form whose preload\n            // data is a partial draft), it's possible that they never progressed to\n            // the end of the form\n            // we only want to show errors up to the point where they probably stopped\n            // working\n            // our best guess is going to be that they stopped working at the last field\n            // whose value differs from its registered defaultValue - a field still\n            // holding its default (including the empty/false states, see\n            // equivalentToDefault) is not evidence the user got that far\n            let lastDirtyOrder = -1;\n            let lastDirtyKey;\n            for (const [key, order] of this.fields.entries()) {\n                const val = get(data, key);\n                if (!equivalentToDefault(val, this.defaultValues.get(key)) && order > lastDirtyOrder) {\n                    lastDirtyOrder = order;\n                    lastDirtyKey = key;\n                }\n            }\n            if (lastDirtyOrder > -1) {\n                this.dirtyField(lastDirtyKey);\n            }\n        }\n        else {\n            this.dirtyForm = true;\n        }\n    }\n    async setField(path, val, opts) {\n        if (opts?.initialize && this.initializes.has(path) && !this.initialized.has(path)) {\n            this.initialized.add(path);\n            val = await this.initializes.get(path)(val);\n        }\n        let wasDifferent = false;\n        this.update(v => {\n            const curr = get(v.data, path);\n            wasDifferent = !this.equal(curr, val);\n            return { ...v, data: set(v.data, path, val) };\n        });\n        if (wasDifferent) {\n            if (!opts?.notDirty) {\n                this.dirtyField(path);\n                this.changedSinceSubmit = true;\n            }\n            this.triggerValidation();\n        }\n        return wasDifferent;\n    }\n    /**\n     * We make fields dirty when they blur or start getting data, but if we are\n     * naive about it we end up with this scenario:\n     * 1. user fills in field #1\n     * 2. validation is sent to server and says field #2 is required\n     * 3. we do not show the error on field #2 because user hasn't gotten there yet\n     * 4. user starts typing in field #2\n     * 5. we mark field #2 dirty and show the required error\n     * 6. validation is sent to server and server reponds that field #2 is fine because the user just put a character in it\n     * 7. we hide the required error after a brief flash\n     *\n     * We'd rather avoid that flash, so we have a \"dirty on next tick\" concept where\n     * the field will be dirty after the next validation completes or there is a\n     * major screen redraw.\n     */\n    dirtyField(path) {\n        if (this.fields.has(path)) {\n            const dirtyIndex = this.fields.get(path);\n            if (dirtyIndex == null)\n                return;\n            for (const [key, idx] of this.fields) {\n                if (idx <= dirtyIndex)\n                    this.dirtyFieldsNextTick.add(key);\n            }\n            for (const [key, idx] of this.arrayFields) {\n                if (idx <= dirtyIndex)\n                    this.dirtyFieldsNextTick.add(key);\n            }\n        }\n    }\n    dirtyNextTick(path) {\n        for (const [key, val] of this.dirtyFieldsNextTick.entries()) {\n            if (path !== key) {\n                this.dirtyFields.add(key);\n                this.dirtyFieldsNextTick.delete(key);\n            }\n        }\n    }\n    push(path, initialState) {\n        this.update(v => {\n            const arr = get(v.data, path);\n            return { ...v, data: set(v.data, path, [...(Array.isArray(arr) ? arr : []), initialState]) };\n        });\n        this.changedSinceSubmit = true;\n        this.triggerValidation();\n    }\n    deleteFromArray(path, idx) {\n        this.update(v => {\n            const arr = get(v.data, path);\n            if (idx < 0 || idx > arr.length - 1)\n                return v;\n            const newArr = [...arr];\n            newArr.splice(idx, 1);\n            return { ...v, data: set(v.data, path, newArr) };\n        });\n        this.changedSinceSubmit = true;\n        this.triggerValidation();\n    }\n    moveUp(path, idx) {\n        if (idx === 0)\n            return;\n        this.update(v => {\n            const arr = [...get(v.data, path)];\n            const swap = arr[idx - 1];\n            arr[idx - 1] = arr[idx];\n            arr[idx] = swap;\n            return { ...v, data: set(v.data, path, arr) };\n        });\n        this.changedSinceSubmit = true;\n        this.triggerValidation();\n    }\n    /**\n     * Returns a store representing the field's value\n     */\n    getField(path) {\n        return subStore(this, ['data', path].join('.'));\n    }\n    getFeedback(path) {\n        return derivedStore(this, state => (state.messages.fields[path] ?? []));\n    }\n    getFieldValid(path) {\n        return derivedStore(this, state => (this.dirtyFields.has(path) || this.dirtyForm) ? state.validField[path] : undefined);\n    }\n    async registerField(path, initialValue, initialize, finalize, ownsSubpaths) {\n        // push the entire registration onto registerPromises so preload's timer waits for\n        // registrations to fully settle, initialized defaults included, before setDirtyForm\n        const registerPromise = this.registerFieldInternal(path, initialValue, initialize, finalize, ownsSubpaths);\n        this.registerPromises.push(registerPromise);\n        await registerPromise;\n    }\n    async registerFieldInternal(path, initialValue, initialize, finalize, ownsSubpaths) {\n        this.fields.set(path, this.fields.size + this.arrayFields.size);\n        if (initialize)\n            this.initializes.set(path, initialize);\n        if (finalize)\n            this.finalizes.set(path, finalize);\n        if (ownsSubpaths)\n            this.ownsSubpathFields.add(path);\n        // record the default in the same shape `data` holds values - through `initialize`\n        // when one is provided - so setDirtyForm compares like with like\n        const initializedDefault = initialize && initialValue != null ? await initialize(initialValue) ?? initialValue : initialValue;\n        this.defaultValues.set(path, initializedDefault);\n        if (initialValue != null && !this.preloaded && get(this.value.data, path) == null) {\n            this.update(v => {\n                if (initializedDefault != null && !this.preloaded && get(v.data, path) == null) {\n                    this.initialized.add(path);\n                    return { ...v, data: set(v.data, path, initializedDefault) };\n                }\n                return v;\n            });\n        }\n        else if (this.preloaded && initialize && !this.initialized.has(path)) {\n            await this.setField(path, get(this.value.data, path), { initialize: true, notDirty: true });\n        }\n        this.update(v => ({ ...v, conditionalData: { ...v.conditionalData, [path]: { value: get(v.data, path) ?? initializedDefault } } }));\n    }\n    unregisterField(path) {\n        const deletedidx = this.fields.get(path);\n        if (deletedidx == null)\n            return;\n        this.fields.delete(path);\n        this.defaultValues.delete(path);\n        this.dirtyFields.delete(path);\n        this.dirtyFieldsNextTick.delete(path);\n        this.initialized.delete(path);\n        this.finalizes.delete(path);\n        this.initializes.delete(path);\n        this.ownsSubpathFields.delete(path);\n        for (const [key, idx] of this.fields) {\n            if (idx > deletedidx)\n                this.fields.set(key, idx - 1);\n        }\n    }\n    registerArray(path, initialState, minLength, startingLength, isEmpty) {\n        this.isEmptyMap.set(path, isEmpty);\n        this.arrayFields.set(path, this.arrayFields.size + this.fields.size);\n        const resolvedMinLength = Math.max(minLength, !this.preloaded ? startingLength : 0);\n        this.enforceArrayMin(path, resolvedMinLength, initialState);\n    }\n    unregisterArray(path) {\n        this.arrayFields.delete(path);\n        this.isEmptyMap.delete(path);\n        this.dirtyFields.delete(path);\n        this.dirtyFieldsNextTick.delete(path);\n    }\n    enforceArrayMin(path, minLength, initialState) {\n        this.update(v => {\n            const val = [...(get(v.data, path) ?? [])];\n            for (let i = val.length; i < minLength; i++) {\n                val.push(typeof initialState === 'function' ? initialState(i) : structuredClone(initialState));\n            }\n            return { ...v, data: set(v.data, path, val) };\n        });\n    }\n    reorderFields(form) {\n        const nodeIterator = document.createNodeIterator(form, NodeFilter.SHOW_COMMENT);\n        this.fields = new Map();\n        while (nodeIterator.nextNode()) {\n            const comment = nodeIterator.referenceNode.nodeValue;\n            let m = comment?.match(/svelte-forms\\((.*?)\\)/i);\n            if (m?.[1]) {\n                const path = m[1];\n                this.fields.set(path, this.fields.size + this.arrayFields.size);\n            }\n            m = comment?.match(/svelte-forms-array\\((.*?)\\)/i);\n            if (m?.[1]) {\n                const path = m[1];\n                this.arrayFields.set(path, this.arrayFields.size + this.fields.size);\n            }\n        }\n        const maxDirty = Math.max(...[...this.fields.entries(), ...this.arrayFields.entries()].map(([key, order]) => this.dirtyFields.has(key) || this.dirtyFieldsNextTick.has(key) ? order : -1));\n        for (const [key, order] of this.arrayFields) {\n            if (order <= maxDirty)\n                this.dirtyFieldsNextTick.add(key);\n        }\n        for (const [key, order] of this.fields) {\n            if (order <= maxDirty)\n                this.dirtyFieldsNextTick.add(key);\n        }\n        if (!this.value.validating)\n            this.dirtyNextTick();\n    }\n    unmount() {\n        this.reset();\n        this.fields.clear();\n        this.arrayFields.clear();\n        this.ownsSubpathFields.clear();\n        this.initializes.clear();\n        this.finalizes.clear();\n        this.isEmptyMap.clear();\n        this.mounted = false;\n    }\n    mount() {\n        this.mounted = true;\n        if (this.needsValidation)\n            this.triggerValidation();\n    }\n    triggerValidation(skipAutoSave) {\n        if (!this.mounted) {\n            this.needsValidation = true;\n            return;\n        }\n        this.update(v => ({ ...v, saved: false, validating: !this.autoSave, submitting: (this.autoSave && !skipAutoSave) || v.submitting }));\n        clearTimeout(this.validationTimer);\n        this.validationTimer = setTimeout(() => {\n            if (this.autoSave && !skipAutoSave)\n                this.submit({ autoSave: true }).catch(console.error);\n            else\n                this.validate().catch(console.error);\n        }, 300);\n    }\n    prepForSubmit(data) {\n        for (const [path, isEmpty] of this.isEmptyMap.entries()) {\n            const v = get(data, path);\n            data = set(data, path, Array.isArray(v) ? v.filter(itm => !isEmpty(itm)) : v);\n        }\n        return data;\n    }\n    async validate() {\n        if (!this.validateFn)\n            return;\n        this.validateVersion += 1;\n        const saveVersion = this.validateVersion;\n        const data = await this.finalize(this.value.data, false);\n        const newMessages = await this.validateFn(this.prepForSubmit(data));\n        if (this.validateVersion === saveVersion) {\n            this.dirtyNextTick();\n            this.update(v => ({ ...v, validating: false, messages: { ...v.messages, all: newMessages } }));\n        }\n    }\n    async initialize(data) {\n        this.initialized.clear();\n        for (const [path] of Array.from(this.initializes.keys()))\n            this.initialized.add(path);\n        await Promise.all(Array.from(this.initializes.entries()).map(async ([path, cb]) => {\n            data = set(data, path, await cb(get(data, path)));\n        }));\n        return data;\n    }\n    async finalize(data, isSubmit) {\n        await Promise.all(Array.from(this.finalizes.entries()).map(async ([path, cb]) => {\n            data = set(data, path, await cb(get(data, path), isSubmit));\n        }));\n        return data;\n    }\n    async submit(opts) {\n        // If a submit is already in flight, we do not want two mutations racing, but we\n        // also must not pretend the caller's data was saved - the form may have changed\n        // since the in-flight request captured its payload. So we queue exactly one\n        // trailing resubmit that runs as soon as the in-flight submit settles, capturing\n        // whatever the form state is at that moment. Any number of submit calls arriving\n        // during the same in-flight submit share that single trailing resubmit.\n        if (this.submitPromise != null) {\n            if (this.trailingSubmit != null) {\n                // a manual submission takes precedence over autosave for the trailing run\n                this.trailingSubmit.autoSave &&= opts?.autoSave ?? false;\n                return await this.trailingSubmit.promise;\n            }\n            const trailing = {\n                autoSave: opts?.autoSave ?? false,\n                promise: this.submitPromise.then(async (resp) => {\n                    if (this.trailingSubmit !== trailing)\n                        return resp; // reset() cancelled us\n                    this.trailingSubmit = undefined;\n                    // only resubmit if the user altered the form while the last request was in\n                    // flight and those changes remain unsaved - a double-fired submit with\n                    // nothing new to say should not repeat the mutation\n                    if (!this.changedSinceSubmit || !this.value.hasUnsavedChanges) {\n                        this.update(v => ({ ...v, submitting: false }));\n                        // the skipped resubmit will not dispatch anything, so the in-flight save's\n                        // suppressed announcement must fire now or it never would\n                        this.flushPendingAutosavedDispatch();\n                        return resp;\n                    }\n                    return await this.submit({ autoSave: trailing.autoSave });\n                })\n            };\n            this.trailingSubmit = trailing;\n            return await trailing.promise;\n        }\n        this.submitPromise = this.performSubmit(opts);\n        try {\n            return await this.submitPromise;\n        }\n        finally {\n            this.submitPromise = undefined;\n        }\n    }\n    flushPendingAutosavedDispatch() {\n        if (this.pendingAutosavedDispatch == null)\n            return;\n        const { data } = this.pendingAutosavedDispatch;\n        this.pendingAutosavedDispatch = undefined;\n        this.dispatch?.('autosaved', data);\n    }\n    async performSubmit(opts) {\n        try {\n            clearTimeout(this.validationTimer);\n            this.submitVersion += 1;\n            const saveVersion = this.submitVersion;\n            this.validateVersion += 1;\n            this.update(v => ({ ...v, submitting: true }));\n            const saveData = this.value.data;\n            this.changedSinceSubmit = false;\n            const data = await this.finalize(saveData, true);\n            const dataToSubmit = this.prepForSubmit(data);\n            const resp = await this.submitFn(dataToSubmit);\n            if (saveVersion === this.submitVersion) {\n                // if this is a regular submission -> dirty the whole form, even if it's an autoSave form\n                if (!opts?.autoSave)\n                    this.dirtyForm = true;\n                else\n                    this.dirtyNextTick();\n                if (resp.success)\n                    this.beforeUserChanges = saveData;\n                this.update(v => ({ ...v, saved: resp.success, messages: { global: [], fields: {}, all: resp.messages } }));\n                if (resp.success) {\n                    if (!opts?.autoSave) {\n                        if (resp.data != null)\n                            await this.preload(resp.data);\n                        clearTimeout(this.validationTimer);\n                        this.pendingAutosavedDispatch = undefined;\n                        this.dispatch?.('saved', resp.data ?? dataToSubmit);\n                    }\n                    else if (this.trailingSubmit == null && !this.changedSinceSubmit) {\n                        this.pendingAutosavedDispatch = undefined;\n                        this.dispatch?.('autosaved', resp.data ?? dataToSubmit);\n                    }\n                    else {\n                        // this save succeeded but the form already holds newer input. Announcing now\n                        // would claim the user's work is saved while keystrokes are still unsaved, and a\n                        // consumer that refreshes server data on the event would fetch a snapshot this\n                        // burst is about to supersede - if that snapshot arrives after the follow-up save\n                        // lands, it can revert the form to stale data. Hold the announcement instead;\n                        // the follow-up save dispatches its own event or flushes this one.\n                        this.pendingAutosavedDispatch = { data: resp.data ?? dataToSubmit };\n                    }\n                }\n                else if (!opts?.autoSave)\n                    this.dispatch?.('validationfail', resp.messages);\n                // an earlier save in this burst did commit; announce it even though the latest attempt failed\n                else\n                    this.flushPendingAutosavedDispatch();\n            }\n            return { ...resp, data: resp.data ?? dataToSubmit };\n        }\n        catch (e) {\n            const messages = [{\n                    type: MessageType.SYSTEM,\n                    message: e.message\n                }];\n            this.update(v => ({ ...v, messages: { ...v.messages, all: messages } }));\n            return {\n                success: false,\n                data: this.value.data,\n                messages\n            };\n        }\n        finally {\n            // keep `submitting` true when a trailing resubmit is queued so the UI does not flicker\n            this.update(v => ({ ...v, submitting: this.trailingSubmit != null }));\n        }\n    }\n}\nexport const FORM_CONTEXT = {};\nexport const FORM_INHERITED_PATH = {};\n","<script lang=\"ts\" generics=\"T = any\">\n  import { getContext, setContext } from 'svelte'\n  import { isNotBlank, set } from 'txstate-utils'\n  import { FORM_CONTEXT, FORM_INHERITED_PATH } from './FormStore'\n  import type { FormStore } from './FormStore'\n\n  interface $$Slots {\n    default: {\n      path: string\n      value: Partial<T>\n    }\n  }\n\n  export let path: string\n  export let conditional: boolean | undefined = true\n\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const obj = store.getField<T>(finalPath)\n\n  setContext(FORM_INHERITED_PATH, finalPath)\n  let lastConditional: boolean | undefined = true\n  function handleConditionalData (..._: any) {\n    if (!conditional && lastConditional) {\n      store.update(v => ({ ...v, data: set(v.data, finalPath, undefined), conditionalData: { ...v.conditionalData, [finalPath]: { value: $obj } } }))\n    } else if (conditional && !lastConditional) {\n      store.update(v => ({ ...v, data: set(v.data, finalPath, v.conditionalData[finalPath]?.value), conditionalData: { ...v.conditionalData, [finalPath]: undefined } }))\n    }\n    lastConditional = conditional\n  }\n\n  $: handleConditionalData(conditional)\n</script>\n{#if conditional}\n  <slot value={$obj} path={finalPath} />\n{/if}\n","import { dateToISOWithTZ, isBlank, stringify } from 'txstate-utils';\nfunction dtToJSON() {\n    return dateToISOWithTZ(this);\n}\nexport function dateSerialize(dt) {\n    if (typeof dt === 'string' && dt)\n        dt = new Date(dt);\n    return dt instanceof Date ? `${String(dt.getFullYear()).padStart(4, '0')}-${String(dt.getMonth() + 1).padStart(2, '0')}-${String(dt.getDate()).padStart(2, '0')}` : '';\n}\nexport function dateDeserialize(v) {\n    if (!v)\n        return undefined;\n    const [year, month, day] = v.split('-').map(Number);\n    const dt = new Date(year, month - 1, day, 12, 0, 0, 0);\n    dt.setFullYear(year);\n    dt.toJSON = dtToJSON;\n    return dt;\n}\nexport function datetimeSerialize(dt) {\n    if (typeof dt === 'string' && dt)\n        dt = new Date(dt);\n    return dt instanceof Date ? `${String(dt.getFullYear()).padStart(4, '0')}-${String(dt.getMonth() + 1).padStart(2, '0')}-${String(dt.getDate()).padStart(2, '0')}T${String(dt.getHours()).padStart(2, '0')}:${String(dt.getMinutes()).padStart(2, '0')}` : '';\n}\nexport function datetimeDeserialize(v) {\n    if (!v)\n        return undefined;\n    const [year, month, day, hour, minute] = v.split(/[T:-]/).map(Number);\n    const dt = new Date(year, month - 1, day, hour, minute, 0, 0);\n    dt.setFullYear(year);\n    dt.toJSON = dtToJSON;\n    return dt;\n}\nexport function defaultSerialize(v) {\n    return v;\n}\nexport function defaultDeserialize(v) {\n    return v;\n}\nexport function nullableSerialize(v) {\n    return v ?? '';\n}\nexport function nullableDeserialize(v) {\n    return v === '' ? undefined : v;\n}\nexport function numberSerialize(n) {\n    return n == null ? '' : String(n);\n}\nexport function numberDeserialize(v) {\n    if (v === '')\n        return 0;\n    const n = Number(v);\n    return isNaN(n) ? 0 : n;\n}\nexport function numberNullableDeserialize(v) {\n    if (isBlank(v))\n        return undefined;\n    const n = Number(v);\n    return isNaN(n) ? undefined : n;\n}\nexport function booleanSerialize(b) {\n    return String(!!b);\n}\nexport function booleanNullableSerialize(b) {\n    return b == null ? '' : String(b);\n}\nexport function booleanDeserialize(b) {\n    return b === 'true';\n}\nexport function booleanNullableDeserialize(b) {\n    if (isBlank(b))\n        return undefined;\n    return b === 'true';\n}\nexport function arraySerialize(v) {\n    return v ?? [];\n}\nexport function jsonSerialize(v) {\n    if (v == null)\n        return '';\n    return stringify(v);\n}\nexport function jsonDeserialize(v) {\n    if (!v?.length)\n        return undefined;\n    try {\n        return JSON.parse(v);\n    }\n    catch (e) {\n        console.error(e);\n        return undefined;\n    }\n}\n","<script lang=\"ts\" generics=\"T = object | string | number | boolean | Date | undefined\">\n  import { getContext, onDestroy } from 'svelte'\n  import { equal, isNotBlank, set } from 'txstate-utils'\n  import { FORM_CONTEXT, FORM_INHERITED_PATH } from './FormStore'\n  import type { Feedback, FormStore } from './FormStore'\n  import { booleanDeserialize, booleanNullableDeserialize, booleanNullableSerialize, booleanSerialize, dateDeserialize, dateSerialize, datetimeDeserialize, datetimeSerialize, defaultDeserialize, defaultSerialize, jsonDeserialize, jsonSerialize, nullableDeserialize, nullableSerialize, numberDeserialize, numberNullableDeserialize, numberSerialize } from './util'\n\n  interface $$Slots {\n    default: {\n      path: string\n      finalPath: string\n      value: any\n      rawValue: any\n      messages: Feedback[]\n      valid: boolean\n      invalid: boolean\n      setVal: (val: T, notDirty?: boolean) => void\n      onChange: (e?: any) => void\n      onBlur: () => void\n      serialize: (value: any) => string\n      deserialize: (value: string) => any\n    }\n  }\n\n  export let path: string\n  export let defaultValue: any = undefined\n  export let notNull = false\n  export let number = false\n  export let date = false\n  export let datetime = false\n  export let boolean = false\n  export let json = false\n  export let serialize: ((value: any) => string) | undefined = undefined\n  export let deserialize: ((value: string) => any) | undefined = undefined\n  export let initialize: ((value: any) => any) | undefined = undefined\n  export let finalize: ((value: any, isSubmit: boolean | undefined) => any) | undefined = undefined\n  export let conditional = true\n  export let allowedValues: any[] | undefined = undefined\n  export let allowedValuesMultiple = false\n  /**\n   * When true, this Field claims responsibility for any feedback message whose\n   * path is a subpath of its own (e.g. `myfield.0`, `myfield.0.extra`). Such\n   * messages will not appear in the form's global error list. Use this for leaf\n   * fields whose value is an array and that render per-item feedback themselves\n   * (e.g. a multi-file upload). Do not use this for container arrays like\n   * AddMore, where unhandled subpath messages should still surface globally.\n   */\n  export let ownsSubpaths = false\n  /** Only provided for binding, useful for components that wrap Field */\n  export let finalSerialize: ((v: any) => string) = () => ''\n  /** Only provided for binding, useful for components that wrap Field */\n  export let finalDeserialize: ((v: string) => any) = () => undefined\n\n  $: finalSerialize = (serialize ?? (number\n    ? numberSerialize\n    : json\n      ? jsonSerialize\n      : datetime\n        ? datetimeSerialize\n        : date\n          ? dateSerialize\n          : boolean\n            ? (notNull ? booleanSerialize : booleanNullableSerialize)\n            : (notNull ? defaultSerialize : nullableSerialize))) as ((v: any) => string)\n  $: finalDeserialize = (deserialize ?? (number\n    ? (notNull ? numberDeserialize : numberNullableDeserialize)\n    : json\n      ? jsonDeserialize\n      : datetime\n        ? datetimeDeserialize\n        : date\n          ? dateDeserialize\n          : boolean\n            ? (notNull ? booleanDeserialize : booleanNullableDeserialize)\n            : (notNull ? defaultDeserialize : nullableDeserialize))) as ((v: string) => any)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  let registered = false\n  const registerFieldPromise = store.registerField(finalPath, defaultValue, initialize, finalize, ownsSubpaths).then(() => { registered = true })\n\n  const val = store.getField<T>(finalPath)\n  const messages = store.getFeedback(finalPath)\n\n  const fieldValid = store.getFieldValid(finalPath)\n  $: invalid = $fieldValid === 'invalid'\n  $: valid = $fieldValid === 'valid'\n\n  function setVal (v: T | ((v: T) => T)) {\n    if (typeof v === 'function') v = (v as (v: T) => T)($val)\n    store.setField(finalPath, v).catch(console.error)\n  }\n\n  function onChange (this: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | undefined, e: any) {\n    if (this instanceof HTMLInputElement && this.type === 'checkbox') {\n      // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion -- certainly does need a type assertion\n      setVal(this.checked as T)\n      return\n    }\n    const resolvedVal = this?.value ?? e.detail\n    const val = finalDeserialize(resolvedVal)\n    setVal(val)\n    if (this instanceof HTMLInputElement) {\n      const serialized = finalSerialize(val)\n      // the serialize/deserialize process can convert multiple distinct input values into undefined in the store\n      // this means that if the user goes from one \"undefined\" state to another, the store state will not change,\n      // as it's just undefined -> undefined. So the input's value is not reactively overwritten to the cleaned up value.\n      // we need this line here so that the input value stays in sync with the store\n      if (this.value !== serialized) this.value = serialized\n    }\n  }\n\n  function onBlur () {\n    store.dirtyField(finalPath)\n    store.updateDirtyOnBlur()\n  }\n\n  onDestroy(() => {\n    store.unregisterField(finalPath)\n  })\n\n  let lastConditional: boolean | undefined = true\n  async function handleConditionalData (..._: any) {\n    await registerFieldPromise\n    if (!conditional && lastConditional) {\n      store.update(v => {\n        const newData = set(v.data, finalPath, undefined)\n        return { ...v, data: newData, conditionalData: { ...v.conditionalData, [finalPath]: { value: $val ?? v.conditionalData[finalPath]?.value } } }\n      })\n    } else if (conditional && !lastConditional) {\n      store.update(v => {\n        const newData = set(v.data, finalPath, v.conditionalData[finalPath]?.value)\n        return { ...v, data: newData, conditionalData: { ...v.conditionalData, [finalPath]: undefined } }\n      })\n    }\n    lastConditional = conditional\n  }\n\n  $: handleConditionalData(conditional).catch(console.error)\n\n  async function reactToAllowedValues (..._: any[]) {\n    if (allowedValues == null) return\n    if (allowedValuesMultiple) {\n      if (conditional) {\n        if (!Array.isArray($val)) return\n        const filtered = $val.filter(v => allowedValues!.some(av => equal(av, v)))\n        if (!equal(filtered, $val)) await store.setField(finalPath, filtered, { notDirty: true })\n      } else {\n        const current = $store.conditionalData[finalPath]?.value\n        if (!Array.isArray(current)) return\n        const filtered = current.filter(v => allowedValues!.some(av => equal(av, v)))\n        if (!equal(filtered, current)) {\n          store.update(v => ({ ...v, conditionalData: { ...v.conditionalData, [finalPath]: { value: filtered } } }))\n        }\n      }\n      return\n    }\n    if (!allowedValues.length) {\n      return await store.setField(finalPath, finalDeserialize(''), { notDirty: true })\n    }\n    const resolvedDefault = notNull\n      ? defaultValue != null && allowedValues.some(av => equal(av, defaultValue)) ? defaultValue : allowedValues[0]\n      : finalDeserialize('')\n    if (conditional) {\n      if (!allowedValues.some(av => equal(av, $val))) {\n        await store.setField(finalPath, resolvedDefault, { notDirty: true })\n      }\n    } else if ($store.conditionalData[finalPath] && !allowedValues.some(av => equal(av, $store.conditionalData[finalPath]!.value))) {\n      store.update(v => ({ ...v, conditionalData: { ...v.conditionalData, [finalPath]: { value: resolvedDefault } } }))\n    }\n  }\n  $: reactToAllowedValues(allowedValues).catch(console.error)\n</script>\n\n{@html '<!-- svelte-forms(' + finalPath + ') -->'}\n{#if ((!$store.initializing && registered) || initialize == null) && conditional}\n  <slot path={finalPath} finalPath={finalPath} value={finalSerialize($val)} rawValue={$val} messages={$messages} {valid} {invalid} {setVal} {onChange} {onBlur} serialize={finalSerialize} deserialize={finalDeserialize} />\n{/if}\n","<script lang=\"ts\" generics=\"T = Record<string, any>\">\n  import { eq } from '@txstate-mws/svelte-components'\n  import { createEventDispatcher, onMount, setContext } from 'svelte'\n  import type { HTMLFormAttributes } from 'svelte/elements'\n  import { FormStore, FORM_CONTEXT } from './FormStore'\n  import type { Feedback, FormStoreEvents, SubmitResponse } from './FormStore'\n\n  type $$Events = FormStoreEvents<T>\n\n  interface $$Props extends HTMLFormAttributes {\n    submit?: (state: T) => Promise<SubmitResponse<T>>\n    validate?: (state: T) => Promise<Feedback[]>\n    autoSave?: boolean\n    preloadAsDraft?: boolean\n    preload?: T\n    store?: FormStore<T>\n    formelement?: HTMLFormElement\n  }\n\n  interface $$Slots {\n    default: {\n      messages: Feedback[]\n      allMessages: Feedback[]\n      saved: boolean\n      validating: boolean\n      submitting: boolean\n      valid: boolean\n      invalid: boolean\n      showingInlineErrors: boolean\n      data: Partial<T>\n      hasUnsavedChanges: boolean\n    }\n  }\n\n  export let submit: $$Props['submit'] = undefined\n  export let validate: $$Props['validate'] = undefined\n  export let autoSave = false\n  export let preloadAsDraft = false\n  export let preload: T | undefined = undefined\n  export let store = new FormStore<T>(submit!, validate)\n  export let formelement: HTMLFormElement | undefined = undefined\n\n  const dispatch = createEventDispatcher()\n  function reactToSubmitAndValidate (..._: any[]) {\n    if (submit) (store as any).submitFn = submit\n    if (validate) (store as any).validateFn = validate\n    if (dispatch) (store as any).dispatch = dispatch\n    store.autoSave = autoSave\n    store.preloadAsDraft = preloadAsDraft\n  }\n  $: reactToSubmitAndValidate(submit, validate, autoSave, preloadAsDraft, dispatch)\n\n  let firstrun = true\n  function reactToPreload (..._: any[]) {\n    if (firstrun) {\n      firstrun = false\n      if (preload == null) return\n    }\n    if (!$store.hasUnsavedChanges) {\n      store.preload(preload).catch(console.error)\n    }\n  }\n  $: reactToPreload(preload)\n  setContext(FORM_CONTEXT, store)\n\n  onMount(() => {\n    store.mount()\n    const mutationobserver = new MutationObserver(() => { store.reorderFields(formelement!) })\n    mutationobserver.observe(formelement!, {\n      subtree: true,\n      childList: true,\n      attributes: false,\n      characterData: false\n    })\n    return () => {\n      store.unmount()\n      mutationobserver.disconnect()\n    }\n  })\n</script>\n\n<form bind:this={formelement} {...$$restProps} on:submit|preventDefault={async () => await store.submit()} use:eq={{ store }}>\n  <slot messages={$store.messages.global} allMessages={$store.messages.all} saved={$store.saved} validating={$store.validating} submitting={$store.submitting} valid={$store.valid} invalid={$store.invalid} showingInlineErrors={$store.showingInlineErrors} data={$store.data} hasUnsavedChanges={$store.hasUnsavedChanges} />\n</form>\n","<script lang=\"ts\">\n  import { getContext } from 'svelte'\n  import { isNotBlank } from 'txstate-utils'\n  import { FORM_CONTEXT, FORM_INHERITED_PATH } from './FormStore'\n  import type { FormStore } from './FormStore'\n  import SubForm from './SubForm.svelte'\n\n  export let path: string\n  export let conditional: boolean | undefined = undefined\n\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const pathToArray = [inheritedPath, path].filter(isNotBlank).join('.')\n\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const arr = store.getField<any[]>(pathToArray)\n  const reactToArr = (..._: any) => {\n    if ($arr == null) store.setField(pathToArray, [], { notDirty: true }).catch(console.error)\n  }\n  $: reactToArr($arr)\n</script>\n\n<SubForm {path} {conditional}>\n  <slot />\n</SubForm>\n","// @ts-check\n\n/**\n * Auto-close timer for notifications with a `timeout` prop.\n * `sync()` clears any pending timer and calls `setTimeout` when `open` and `timeout` > 0.\n * Skips `setTimeout` when `window` is undefined (SSR).\n * `pause()` / `resume()` track remaining time so hover can suspend auto-dismiss.\n *\n * @returns {{\n *   get timeoutId(): ReturnType<typeof setTimeout> | undefined,\n *   sync: (open: boolean, timeout: number, onTimeout: () => void) => void,\n *   pause: () => void,\n *   resume: () => void,\n *   clear: () => void,\n * }}\n */\nexport function createTimeoutDismiss() {\n  /** @type {ReturnType<typeof setTimeout> | undefined} */\n  let timeoutId;\n  /** @type {() => void} */\n  let onTimeout = () => {};\n  let remaining = 0;\n  let startedAt = 0;\n  let active = false;\n  let paused = false;\n\n  function schedule(ms) {\n    clearTimeout(timeoutId);\n    timeoutId = undefined;\n    remaining = ms;\n    startedAt = Date.now();\n    timeoutId = setTimeout(() => {\n      timeoutId = undefined;\n      active = false;\n      remaining = 0;\n      paused = false;\n      onTimeout();\n    }, ms);\n  }\n\n  return {\n    get timeoutId() {\n      return timeoutId;\n    },\n    /**\n     * @param {boolean} open\n     * @param {number} timeout\n     * @param {() => void} onTimeoutCb\n     */\n    sync(open, timeout, onTimeoutCb) {\n      clearTimeout(timeoutId);\n      timeoutId = undefined;\n      paused = false;\n      onTimeout = onTimeoutCb;\n      active = typeof window !== \"undefined\" && open && timeout > 0;\n      if (active) {\n        schedule(timeout);\n      } else {\n        remaining = 0;\n      }\n    },\n    pause() {\n      if (!active || paused || timeoutId === undefined) return;\n      clearTimeout(timeoutId);\n      timeoutId = undefined;\n      remaining = Math.max(0, remaining - (Date.now() - startedAt));\n      paused = true;\n    },\n    resume() {\n      if (!paused || !active) return;\n      paused = false;\n      if (typeof window === \"undefined\") return;\n      if (remaining <= 0) {\n        active = false;\n        remaining = 0;\n        onTimeout();\n        return;\n      }\n      schedule(remaining);\n    },\n    clear() {\n      clearTimeout(timeoutId);\n      timeoutId = undefined;\n      remaining = 0;\n      active = false;\n      paused = false;\n    },\n  };\n}\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * Set the type of notification.\n   * @type {\"toast\" | \"inline\"}\n   */\n  export let notificationType = \"toast\";\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (Close);\n\n  /**\n   * Specify the title of the icon.\n   * @type {string}\n   */\n  export let title = undefined;\n\n  /** Specify the ARIA label for the icon */\n  export let iconDescription = \"Close icon\";\n\n  import Close from \"../icons/Close.svelte\";\n\n  $: iconClass = [\n    notificationType === \"toast\" && \"bx--toast-notification__close-icon\",\n    notificationType === \"inline\" && \"bx--inline-notification__close-icon\",\n  ]\n    .filter(Boolean)\n    .join(\" \");\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<button\n  type=\"button\"\n  aria-label={iconDescription}\n  title={iconDescription}\n  class:bx--toast-notification__close-button={notificationType === \"toast\"}\n  class:bx--inline-notification__close-button={notificationType === \"inline\"}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <svelte:component this={icon} size={20} {title} class={iconClass} />\n</button>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    fill=\"none\"\n    d=\"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z\"\n    data-icon-path=\"inner-path\"\n  ></path>\n  <path\n    d=\"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    fill=\"none\"\n    d=\"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z\"\n    data-icon-path=\"inner-path\"\n  ></path>\n  <path\n    d=\"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    fill=\"none\"\n    d=\"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z\"\n    data-icon-path=\"inner-path\"\n  ></path>\n  <path\n    d=\"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z\"\n  ></path>\n  <path\n    d=\"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25\tc-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z\"\n  ></path>\n  <path\n    fill=\"none\"\n    d=\"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22\tC16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z\"\n    data-icon-path=\"inner-path\"\n    opacity=\"0\"\n  ></path>\n</svg>\n","<script>\n  /**\n   * Specify the kind of notification icon.\n   * @type {\"error\" | \"info\" | \"info-square\" | \"success\" | \"warning\" | \"warning-alt\"}\n   */\n  export let kind = \"error\";\n\n  /**\n   * Set the type of notification.\n   * @type {\"toast\" | \"inline\"}\n   */\n  export let notificationType = \"toast\";\n\n  import CheckmarkFilled from \"../icons/CheckmarkFilled.svelte\";\n  import ErrorFilled from \"../icons/ErrorFilled.svelte\";\n  import InformationFilled from \"../icons/InformationFilled.svelte\";\n  import InformationSquareFilled from \"../icons/InformationSquareFilled.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n\n  const icons = {\n    error: ErrorFilled,\n    \"info-square\": InformationSquareFilled,\n    info: InformationFilled,\n    success: CheckmarkFilled,\n    warning: WarningFilled,\n    \"warning-alt\": WarningAltFilled,\n  };\n\n  $: iconClass = [\n    notificationType === \"toast\" && \"bx--toast-notification__icon\",\n    notificationType === \"inline\" && \"bx--inline-notification__icon\",\n  ]\n    .filter(Boolean)\n    .join(\" \");\n</script>\n\n<svelte:component this={icons[kind]} size={20} class={iconClass} />\n","<script>\n  /**\n   * @event close\n   * @property {boolean} timeout\n   */\n\n  /**\n   * Specify the kind of notification.\n   * @type {\"error\" | \"info\" | \"info-square\" | \"success\" | \"warning\" | \"warning-alt\"}\n   */\n  export let kind = \"error\";\n\n  /** Set to `true` to use the low contrast variant */\n  export let lowContrast = false;\n\n  /** Set the timeout duration (ms) to hide the notification after opening it */\n  export let timeout = 0;\n\n  /** Set to `true` to pause the auto-dismiss timeout while the pointer is over the notification. */\n  export let pauseOnHover = false;\n\n  /**\n   * Specify the ARIA `role` for the notification container.\n   * @type {\"alert\" | \"log\" | \"status\"}\n   */\n  export let role = \"alert\";\n\n  /** Specify the title text */\n  export let title = \"\";\n\n  /** Specify the subtitle text */\n  export let subtitle = \"\";\n\n  /** Set to `true` to hide the close button */\n  export let hideCloseButton = false;\n\n  /** Specify the ARIA label for the close button */\n  export let closeButtonDescription = \"Close notification\";\n\n  /**\n   * Set to `true` to show the notification, `false` to hide it.\n   * @bindable writable\n   */\n  export let open = true;\n\n  import { createEventDispatcher, onMount } from \"svelte\";\n  import { createTimeoutDismiss } from \"../utils/timeoutDismiss.js\";\n  import NotificationButton from \"./NotificationButton.svelte\";\n  import NotificationIcon from \"./NotificationIcon.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  const dismiss = createTimeoutDismiss();\n\n  function close(closeFromTimeout) {\n    dismiss.clear();\n\n    const shouldContinue = dispatch(\n      \"close\",\n      { timeout: closeFromTimeout === true },\n      { cancelable: true },\n    );\n    if (shouldContinue) {\n      open = false;\n    }\n  }\n\n  function onMouseEnter() {\n    if (pauseOnHover) dismiss.pause();\n  }\n\n  function onMouseLeave() {\n    if (pauseOnHover) dismiss.resume();\n  }\n\n  $: dismiss.sync(open, timeout, () => close(true));\n\n  onMount(() => () => dismiss.clear());\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n{#if open}\n  <div\n    {role}\n    class:bx--inline-notification={true}\n    class:bx--inline-notification--low-contrast={lowContrast}\n    class:bx--inline-notification--hide-close-button={hideCloseButton}\n    class:bx--inline-notification--error={kind === \"error\"}\n    class:bx--inline-notification--info={kind === \"info\"}\n    class:bx--inline-notification--info-square={kind === \"info-square\"}\n    class:bx--inline-notification--success={kind === \"success\"}\n    class:bx--inline-notification--warning={kind === \"warning\"}\n    class:bx--inline-notification--warning-alt={kind === \"warning-alt\"}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseenter={onMouseEnter}\n    on:mouseleave\n    on:mouseleave={onMouseLeave}\n  >\n    <div class:bx--inline-notification__details={true}>\n      <NotificationIcon notificationType=\"inline\" {kind} />\n      <div class:bx--inline-notification__text-wrapper={true}>\n        {#if title || $$slots.titleChildren}\n          <p class:bx--inline-notification__title={true}>\n            <strong><slot name=\"titleChildren\">{title}</slot></strong>\n          </p>\n        {/if}\n        {#if subtitle || $$slots.subtitleChildren}\n          <div class:bx--inline-notification__subtitle={true}>\n            <slot name=\"subtitleChildren\">{subtitle}</slot>\n          </div>\n        {/if}\n        <slot />\n      </div>\n    </div>\n    <slot name=\"actions\" />\n    {#if !hideCloseButton}\n      <NotificationButton\n        iconDescription={closeButtonDescription}\n        notificationType=\"inline\"\n        on:click={close}\n      />\n    {/if}\n  </div>\n{/if}\n","import { isBlank, isNotBlank } from 'txstate-utils';\n/**\n * Parse a date string in either separator-free format (MMDDYYYY) or with\n * separators (MM/DD/YYYY or MM-DD-YYYY). Returns undefined if parsing fails.\n */\nexport function parseDateString(input) {\n    const trimmed = input.trim();\n    const digits = trimmed.replace(/\\D/g, '');\n    if (digits.length === 8 && !trimmed.includes('/') && !trimmed.includes('-')) {\n        // Separator-free format: MMDDYYYY\n        return {\n            month: digits.substring(0, 2),\n            day: digits.substring(2, 4),\n            year: digits.substring(4, 8)\n        };\n    }\n    // Standard format with separators\n    const parts = trimmed.split(/[/-]/);\n    if (parts.length === 3) {\n        return { month: parts[0], day: parts[1], year: parts[2] };\n    }\n    return undefined;\n}\n/**\n * Reformat a separator-free date input (MMDDYYYY) to MM/DD/YYYY for display.\n * Returns the original value if not in separator-free format.\n */\nexport function reformatDateInput(value) {\n    const digits = value.replace(/\\D/g, '');\n    if (digits.length === 8 && !value.includes('/') && !value.includes('-')) {\n        return `${digits.substring(0, 2)}/${digits.substring(2, 4)}/${digits.substring(4, 8)}`;\n    }\n    return value;\n}\nexport function feedbackTypeToKind(type) {\n    return {\n        error: 'error',\n        warning: 'warning',\n        success: 'success',\n        system: 'error',\n        info: 'info'\n    }[type] ?? 'error';\n}\nexport function to24Hour(time, ampm) {\n    if (isBlank(time))\n        return undefined;\n    const timeFormat = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/;\n    if (!timeFormat.test(time) && !time.includes(':') && time.length === 4) {\n        time = time.slice(0, 2) + ':' + time.slice(2);\n    }\n    const m = time.match(/^(\\d{1,2}):(\\d{2})$/);\n    if (!m)\n        return undefined;\n    let hour = Number(m[1]);\n    const minute = Number(m[2]);\n    if (hour < 1 || hour > 12 || minute < 0 || minute > 59)\n        return undefined;\n    if (hour === 12 && ampm === 'am')\n        hour = 0;\n    else if (ampm === 'pm' && hour < 12)\n        hour += 12;\n    if (hour > 23)\n        return undefined;\n    return `${String(hour).padStart(2, '0')}:${minute}`;\n}\n/**\n * For convenience, this is a replacer function for JSON.stringify that will\n * print information about `File` objects in the object being stringified.\n *\n * Using the FieldUpload component will result in `File` objects being stored\n * in the form state.\n */\nexport function fileStringifyReplacer(key, value) {\n    if (value instanceof File)\n        return `File: ${value.name} (${value.size} bytes, ${value.type})`;\n    return value;\n}\nexport function getDescribedBy(ids) {\n    const descby = ids.filter(isNotBlank).join(' ');\n    return isNotBlank(descby) ? descby : undefined;\n}\n/** Default `shouldFilterItem`/`filterItem`: always keep the injected loading row visible; else substring match. */\nexport function filterItemWithLoading(item, value) {\n    return !!item.loading || item.text.toLocaleLowerCase().includes(value.trim().toLocaleLowerCase());\n}\n/** Stable id for a field's injected loading row (FieldSelect uses it as that `<option>`'s value). */\nexport function loadingItemId(finalPath) {\n    return 'cs-loading-' + finalPath;\n}\n/** Injected loading row for Field{Combobox,Multiselect}: `loading` keeps it past filters, `disabled` keeps it unselectable. */\nexport function loadingMenuItem(finalPath, loadingText) {\n    return { id: loadingItemId(finalPath), text: loadingText, disabled: true, loading: true };\n}\n","<script lang=\"ts\">\n  import InlineNotification from \"carbon-components-svelte/src/Notification/InlineNotification.svelte\";\n  import type { Feedback } from '@txstate-mws/svelte-forms'\n  import { feedbackTypeToKind } from './util.js'\n  /**\n   * API response that can be used to display notifications.\n   * @type {Feedback}\n   */\n  export let message: Feedback\n</script>\n\n<InlineNotification\n  lowContrast={message?.extra?.lowContrast ?? true}\n  kind={feedbackTypeToKind(message?.type)}\n  title={message?.extra?.title ?? ''}\n  subtitle={message?.message ?? ''}\n  hideCloseButton={message?.extra?.hideCloseButton ?? true} />\n","<script lang=\"ts\">\n  import Loading from \"carbon-components-svelte/src/Loading/Loading.svelte\";\n</script>\n<svg style:display=\"none\"></svg>\n<Loading small withOverlay={false} {...$$restProps} class=\"{$$restProps.class} bx--btn__icon\" />\n","import { deleteEmpty, fromQuery, isNotBlank, toQuery } from 'txstate-utils';\nimport { page } from '$app/stores';\nimport { replaceState as replaceStateSuper } from '$app/navigation';\nimport { get } from 'svelte/store';\nexport const UISHELL_STICKY_CONTEXT = {};\nexport const FORM_PROPS_CONTEXT = {};\nexport function extractFilters(url, { urlKey } = {}) {\n    const parsed = fromQuery(url.search.substring(1));\n    return (urlKey ? parsed[urlKey] ?? {} : parsed);\n}\nexport function extractMergedFilters(url, { urlKey } = {}) {\n    const params = extractFilters(url, { urlKey });\n    return { ...params.f, ...params.q, ...(typeof params.t === 'object' ? params.t : { t: params.t }), search: params.search };\n}\nexport function addFilters(url, filters, { preserveTabs = false, urlKey } = {}) {\n    const ret = new URL(url);\n    const cleaned = deleteEmpty(filters);\n    const str = toQuery(urlKey ? { [urlKey]: cleaned } : cleaned);\n    const p = urlKey ? `${urlKey}.` : '';\n    const restofquery = url.search\n        .substring(1)\n        .split('&')\n        .filter((entry) => isNotBlank(entry) &&\n        !entry.startsWith(`${p}f.`) &&\n        !entry.startsWith(`${p}q.`) &&\n        !(preserveTabs ? false : (entry.startsWith(`${p}t=`) || entry.startsWith(`${p}t.`))) &&\n        !entry.startsWith(`${p}search=`));\n    ret.search = [str, ...restofquery].join('&');\n    return ret;\n}\nexport function extractPaginationParams(url) {\n    return fromQuery(url.search.substring(1));\n}\nexport function addPaginationParams(url, params) {\n    const ret = new URL(url);\n    const str = toQuery(deleteEmpty(params));\n    const restofquery = url.search\n        .substring(1)\n        .split('&')\n        .filter((entry) => isNotBlank(entry) &&\n        !entry.startsWith('page=') &&\n        !entry.startsWith('pagesize='));\n    ret.search = [str, ...restofquery].join('&');\n    return ret;\n}\nexport function getUrl(pageStore) {\n    if (pageStore === undefined)\n        pageStore = get(page);\n    const state = pageStore.state;\n    if (state.search === undefined || state.hash === undefined) {\n        state.search = pageStore.url.search;\n        state.hash = pageStore.url.hash;\n    }\n    const currentUrl = new URL(pageStore.url);\n    currentUrl.search = state.search;\n    currentUrl.hash = state.hash;\n    return currentUrl;\n}\nexport function replaceState(url) {\n    const pageStore = get(page);\n    const state = pageStore.state;\n    const newUrl = getUrl(pageStore);\n    newUrl.search = state.search = url.search;\n    newUrl.hash = state.hash = url.hash;\n    replaceStateSuper(newUrl, state);\n    return newUrl;\n}\nexport function urlEqual(a, b) {\n    if (a.origin !== b.origin)\n        return false;\n    if (a.pathname !== b.pathname)\n        return false;\n    if (a.hash !== b.hash)\n        return false;\n    const aSearch = new URLSearchParams(a.searchParams);\n    const bSearch = new URLSearchParams(b.searchParams);\n    aSearch.sort();\n    bSearch.sort();\n    return aSearch.toString() === bSearch.toString();\n}\n/**\n * Determine whether a link href points to an external (outbound) origin so a LinkSet can render it as\n * an outbound link (Launch icon, opens in a new tab, security rel attributes).\n *\n * Pass the current page URL (`$page.url` from `$app/stores`) as `currentUrl`.\n *\n * A link is external when, resolved against `currentUrl`, it is an http(s) URL on a different origin.\n * Relative and protocol-relative hrefs resolve against `currentUrl` (same origin => internal).\n */\nexport function isExternalLink(href, currentUrl) {\n    if (!isNotBlank(href))\n        return false;\n    try {\n        const url = new URL(href, currentUrl);\n        return (url.protocol === 'http:' || url.protocol === 'https:') && url.origin !== currentUrl.origin;\n    }\n    catch {\n        return false;\n    }\n}\n","<script lang=\"ts\" generics=\"T extends Record<string, any> = Record<string, any>\">\n  import { setContext } from 'svelte'\n  import { writable } from 'svelte/store'\n  import { beforeNavigate } from '$app/navigation'\n  import { Form, type Feedback, type FormStore, type SubmitResponse } from '@txstate-mws/svelte-forms'\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\nimport InlineNotification from \"carbon-components-svelte/src/Notification/InlineNotification.svelte\";\nimport Modal from \"carbon-components-svelte/src/Modal/Modal.svelte\";\n  import Save from \"carbon-icons-svelte/lib/Save.svelte\";\n  import { tick, type Component, type ComponentEvents, type ComponentProps, type SvelteComponent } from 'svelte'\n  import { unsavedDialogOpen, warnunsaved } from '../stores/warnunsaved.js'\n  import FormInlineNotification from './FormInlineNotification.svelte'\n  import LoadingIcon from '../LoadingIcon.svelte'\n  import { FORM_PROPS_CONTEXT } from '../util'\n\n  interface $$Props extends ComponentProps<Form<T>> {\n    submitText?: string\n    hideFallbackMessage?: boolean\n    submitIcon?: typeof SvelteComponent\n    unsavedWarning?: boolean | string | { heading?: string, message?: string }\n    disableSaveUntilChanged?: boolean\n    disabled?: boolean\n  }\n  interface $$Events extends ComponentEvents<Form<T>> {}\n  interface $$Slots {\n    default: {\n      messages: Feedback[]\n      allMessages: Feedback[]\n      saved: boolean\n      validating: boolean\n      submitting: boolean\n      valid: boolean\n      invalid: boolean\n      showingInlineErrors: boolean\n      data: Partial<T>\n      hasUnsavedChanges: boolean\n    }\n    submit: {\n      saved: boolean\n      validating: boolean\n      submitting: boolean\n      allMessages: Feedback[]\n      valid: boolean\n      invalid: boolean\n      showingInlineErrors: boolean\n      hasUnsavedChanges: boolean\n      saveDisabled: boolean\n    }\n  }\n\n  /**\n   * Form store instance that manages form state\n   * @type {FormStore<T>}\n   */\n  export let store: FormStore<T> = undefined as any\n\n  /**\n   * Function called when form is submitted. Should return a Promise that resolves with submission results\n   * @type {((state: T) => Promise<SubmitResponse<T>>) | undefined}\n   */\n  export let submit: ((state: T) => Promise<SubmitResponse<T>>) | undefined = undefined\n\n  /**\n   * Function called to validate form data. Should return a Promise that resolves with array of validation messages\n   * @type {((state: T) => Promise<Feedback[]>) | undefined}\n   */\n  export let validate: ((state: T) => Promise<Feedback[]>) | undefined = undefined\n\n  /**\n   * Initial form data to preload\n   * @type {T | undefined}\n   */\n  export let preload: T | undefined = undefined\n\n  /**\n   * Text to display on the submit button\n   * @type {string}\n   * @default \"Submit\"\n   */\n  export let submitText = 'Submit'\n\n  /**\n   * Whether to hide the fallback validation error message\n   * @type {boolean}\n   */\n  export let hideFallbackMessage = false\n\n  /**\n   * Icon component to display on submit button\n   * @type {typeof SvelteComponent}\n   */\n  export let submitIcon: typeof SvelteComponent | Component = Save\n\n  /**\n   * Show a warning when navigating away with unsaved changes. Pass `true` to enable with the\n   * default heading and message, a string to customize just the message, or an object to customize\n   * the `heading` and/or `message`. Browser tab close / quit / hard reload triggers the native browser\n   * prompt instead, whose text cannot be customized.\n   * @type {boolean | string | { heading?: string, message?: string }}\n   */\n  export let unsavedWarning: boolean | string | { heading?: string, message?: string } = false\n\n  /**\n   * Whether to disable the save button until form values have changed\n   * @type {boolean}\n   */\n  export let disableSaveUntilChanged = false\n\n  /**\n   * Whether to disable all inputs inside the form\n   * @type {boolean}\n   */\n  export let disabled = false\n\n  $: unsavedHeading = typeof unsavedWarning === 'object' && unsavedWarning.heading ? unsavedWarning.heading : 'Unsaved Changes'\n  $: unsavedMessage = typeof unsavedWarning === 'string' && unsavedWarning\n    ? unsavedWarning\n    : typeof unsavedWarning === 'object' && unsavedWarning.message\n      ? unsavedWarning.message\n      : 'You have unsaved changes. Are you sure you want to leave?'\n\n  let formelement: HTMLFormElement\n  async function validationFail () {\n    // the validationfail event fires as soon as the store has the new messages, but the\n    // fields haven't re-rendered with aria-invalid yet, so wait for the DOM to update\n    await tick()\n    formelement.querySelector<HTMLElement>('[aria-invalid=\"true\"]')?.focus()\n  }\n\n  function onConfirmUnsaved () {\n    $unsavedDialogOpen = false\n    warnunsaved.resumePendingNavigate()\n  }\n\n  function cancelUnsaved () {\n    $unsavedDialogOpen = false\n    warnunsaved.clearPendingNavigate()\n  }\n\n  beforeNavigate(({ cancel, to, willUnload }) => {\n    if (!unsavedWarning || !$store.hasUnsavedChanges || warnunsaved.allowNavigate) return\n    // `to` is only null when the browser itself is unloading and we then trigger the native prompt. Otherwise we can use `to` in order to resume the pending navigate.\n    if (to != null) {\n      warnunsaved.setPendingNavigate(to, willUnload)\n      $unsavedDialogOpen = true\n    }\n    cancel()\n  })\n\n  const formProps = writable({ disabled })\n  $: $formProps.disabled = disabled\n  setContext(FORM_PROPS_CONTEXT, formProps)\n</script>\n\n<Form {...$$restProps} bind:store bind:formelement class=\"{$$restProps.class} flow\" {submit} {validate} {preload} on:saved on:autosaved on:validationfail on:validationfail={validationFail} let:messages let:allMessages let:showingInlineErrors let:saved let:valid let:invalid let:validating let:submitting let:data let:hasUnsavedChanges>\n  <slot {messages} {saved} {validating} {submitting} {valid} {invalid} {data} {allMessages} {showingInlineErrors} {hasUnsavedChanges} />\n  {@const errorMessages = messages.filter(m => m.type === 'error' || m.type === 'system')}\n  {#each messages as message}\n    <FormInlineNotification {message} />\n  {/each}\n  {#if !hideFallbackMessage && !errorMessages.length && showingInlineErrors}\n    <InlineNotification lowContrast kind=\"error\" subtitle=\"This form contains errors. See inline messages for details.\" hideCloseButton />\n  {/if}\n  <slot name=\"submit\" {saved} {validating} {submitting} {valid} {invalid} {allMessages} {showingInlineErrors} {hasUnsavedChanges} saveDisabled={disableSaveUntilChanged && !hasUnsavedChanges}>\n    <div class='form-submit'>\n      <Button icon={submitting ? LoadingIcon : submitIcon} type=\"submit\" disabled={submitting || (disableSaveUntilChanged && !hasUnsavedChanges) || disabled}>{submitText}</Button>\n    </div>\n  </slot>\n</Form>\n<Modal bind:open={$unsavedDialogOpen} on:click:button--primary={onConfirmUnsaved} on:click:button--secondary={cancelUnsaved} on:close={cancelUnsaved} modalHeading={unsavedHeading} primaryButtonText=\"Leave\" secondaryButtonText=\"Stay\">\n  {unsavedMessage}\n</Modal>\n\n<style>\n  .form-submit {\n    text-align: right;\n  }\n</style>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"></path>\n</svg>\n","<script>\n  /**\n   * Set the size of the list box.\n   * @type {\"xs\" | \"sm\" | \"lg\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Set the type of the list box.\n   * @type {\"default\" | \"inline\"}\n   */\n  export let type = \"default\";\n\n  /** Set to `true` to open the list box */\n  export let open = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the list box */\n  export let disabled = false;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /**\n   * Specify an id for the invalid state text\n   * @type {string}\n   */\n  export let invalidId = undefined;\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /**\n   * Specify an id for the warning state text\n   * @type {string}\n   */\n  export let warnId = undefined;\n</script>\n\n<div\n  tabindex=\"-1\"\n  data-invalid={invalid || undefined}\n  class:bx--list-box={true}\n  class:bx--list-box--xs={size === \"xs\"}\n  class:bx--list-box--sm={size === \"sm\"}\n  class:bx--list-box--lg={size === \"lg\"}\n  class:bx--list-box--xl={size === \"xl\"}\n  class:bx--list-box--inline={type === \"inline\"}\n  class:bx--list-box--disabled={disabled}\n  class:bx--list-box--expanded={open}\n  class:bx--list-box--light={light}\n  class:bx--list-box--warning={!invalid && warn}\n  {...$$restProps}\n  on:keydown\n  on:keydown={(event) => {\n    if (event.key === \"Escape\") {\n      event.stopPropagation();\n    }\n  }}\n  on:click|preventDefault\n>\n  <slot />\n</div>\n{#if invalid && invalidText}\n  <div id={invalidId} class:bx--form-requirement={true}>{invalidText}</div>\n{/if}\n{#if !invalid && warn && warnText}\n  <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n{/if}\n","<script>\n  /** Set to `true` to disable the list box field */\n  export let disabled = false;\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /** Specify the role attribute */\n  export let role = \"combobox\";\n\n  /**\n   * Specify the tabindex\n   * @type {number | string | undefined}\n   */\n  export let tabindex = \"-1\";\n\n  /** Set an id for the top-level element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the top-level HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { getContext } from \"svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const ctx = getContext(\"carbon:MultiSelect\");\n\n  $: if (ctx && ref) {\n    ctx.declareRef({ key: \"field\", ref });\n  }\n\n  $: ariaExpanded = $$props[\"aria-expanded\"];\n  $: menuId = `menu-${id}`;\n</script>\n\n<button\n  bind:this={ref}\n  type=\"button\"\n  {id}\n  {role}\n  aria-expanded={ariaExpanded}\n  aria-controls={(ariaExpanded && menuId) || undefined}\n  aria-disabled={disabled}\n  aria-readonly={readonly || undefined}\n  tabindex={disabled ? \"-1\" : tabindex}\n  class:bx--list-box__field={true}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n  on:keydown|stopPropagation\n  on:focus\n  on:blur\n>\n  <slot />\n</button>\n","// @ts-check\nimport { writable } from \"svelte/store\";\nimport { scrollIntoViewWithinMenu } from \"../utils/scrollIntoViewWithinMenu.js\";\n\nexport const HIGHLIGHT_CURSOR_KEY = \"carbon:ListBoxHighlight\";\n\nconst HIGHLIGHT_CLASS = \"bx--list-box__menu-item--highlighted\";\nconst ACTIVE_CLASS = \"bx--list-box__menu-item--active\";\n\n/**\n * Two-node highlight cursor for listbox options.\n *\n * Arrow/hover changes write a class on the previous and next option nodes\n * instead of passing `highlighted` through the `{#each}` so Svelte does not\n * invalidate every `ListBoxMenuItem` (and re-run `overflowTitle`) per key.\n *\n * Selected options keep the highlight class via `ListBoxMenuItem`'s `active`\n * class directive; this cursor will not strip it from an `--active` node.\n *\n * @returns {{\n *   register: (id: string, node: HTMLElement) => () => void;\n *   set: (id: string | null | undefined, options?: { scroll?: boolean }) => void;\n *   highlightedId: { subscribe: import(\"svelte/store\").Readable<string | null>[\"subscribe\"] };\n * }}\n */\nexport function createHighlightCursor() {\n  /** @type {Map<string, HTMLElement>} */\n  const nodes = new Map();\n  /** @type {string | null} */\n  let currentId = null;\n  const highlightedId = writable(/** @type {string | null} */ (null));\n\n  /**\n   * @param {HTMLElement} node\n   * @param {boolean} on\n   */\n  function applyClass(node, on) {\n    if (on || node.classList.contains(ACTIVE_CLASS)) {\n      node.classList.add(HIGHLIGHT_CLASS);\n      return;\n    }\n    node.classList.remove(HIGHLIGHT_CLASS);\n  }\n\n  /**\n   * @param {string} id\n   * @param {HTMLElement} node\n   * @returns {() => void}\n   */\n  function register(id, node) {\n    if (!id) return () => {};\n    nodes.set(id, node);\n    applyClass(node, currentId === id);\n    return () => {\n      if (nodes.get(id) === node) nodes.delete(id);\n    };\n  }\n\n  /**\n   * @param {string | null | undefined} id\n   * @param {{ scroll?: boolean }} [options]\n   */\n  function set(id, { scroll = true } = {}) {\n    const nextId = id || null;\n    if (nextId === currentId) return;\n\n    const prev = currentId ? nodes.get(currentId) : undefined;\n    const next = nextId ? nodes.get(nextId) : undefined;\n    if (prev) applyClass(prev, false);\n    if (next) {\n      applyClass(next, true);\n      if (scroll && !next.matches(\":hover\")) {\n        const inner = next.querySelector(\".bx--list-box__menu-item__option\");\n        scrollIntoViewWithinMenu(inner instanceof HTMLElement ? inner : next);\n      }\n    }\n\n    currentId = nextId;\n    highlightedId.set(nextId);\n  }\n\n  return {\n    register,\n    set,\n    highlightedId: { subscribe: highlightedId.subscribe },\n  };\n}\n","<script>\n  /** Set an id for the top-level element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Set to `true` to render the menu in a portal,\n   * allowing it to escape containers with `overflow: hidden`.\n   * @type {boolean}\n   */\n  export let portal = false;\n\n  /**\n   * Set to `true` to open the floating portal.\n   * Only used when `portal` is `true`.\n   * @type {boolean}\n   */\n  export let open = false;\n\n  /**\n   * Specify the anchor element to position the portal relative to.\n   * Only used when `portal` is `true`.\n   * @type {null | HTMLElement}\n   */\n  export let anchor = null;\n\n  /**\n   * Specify the direction of the menu.\n   * Only used when `portal` is `true`.\n   * @type {\"bottom\" | \"top\"}\n   */\n  export let direction = \"bottom\";\n\n  /**\n   * Class applied to a wrapper element inside the portal.\n   * Only used when `portal` is `true`.\n   * @type {string}\n   */\n  export let portalHostClass = undefined;\n\n  /**\n   * DOM id of the highlighted option (`{instanceId}-{item.id}`).\n   * Applied as a two-node class change so `{#each}` does not re-run\n   * every `ListBoxMenuItem` on ArrowDown.\n   * @type {undefined | null | string}\n   */\n  export let highlightedId = undefined;\n\n  /**\n   * When `false`, skip scrolling the highlighted option into view\n   * (pointer hover already has the item on screen).\n   * @type {boolean}\n   */\n  export let highlightScroll = true;\n\n  import { setContext } from \"svelte\";\n  import FloatingPortal from \"../Portal/FloatingPortal.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import {\n    createHighlightCursor,\n    HIGHLIGHT_CURSOR_KEY,\n  } from \"./highlightCursor.js\";\n\n  const highlightCursor = createHighlightCursor();\n  setContext(HIGHLIGHT_CURSOR_KEY, highlightCursor);\n\n  $: highlightCursor.set(highlightedId, { scroll: highlightScroll });\n</script>\n\n{#if portal}\n  <FloatingPortal {anchor} {direction} {open}>\n    <div class={portalHostClass}>\n      <div\n        bind:this={ref}\n        role=\"listbox\"\n        id=\"menu-{id}\"\n        class:bx--list-box__menu={true}\n        style=\"position: static; {$$restProps.style || ''}\"\n        {...$$restProps}\n        on:scroll\n        on:mouseleave\n      >\n        <slot />\n      </div>\n    </div>\n  </FloatingPortal>\n{:else}\n  <div\n    bind:this={ref}\n    role=\"listbox\"\n    id=\"menu-{id}\"\n    class:bx--list-box__menu={true}\n    {...$$restProps}\n    on:scroll\n    on:mouseleave\n  >\n    <slot />\n  </div>\n{/if}\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"></path>\n</svg>\n","<script>\n  /**\n   * @typedef {\"close\" | \"open\"} ListBoxMenuIconTranslationId\n   */\n\n  /** Set to `true` to open the list box menu icon */\n  export let open = false;\n\n  /** Default translation ids */\n  export const translationIds = { close: \"close\", open: \"open\" };\n\n  /**\n   * Override the default translation ids.\n   * @type {(id: ListBoxMenuIconTranslationId) => string}\n   */\n  export let translateWithId = (id) => defaultTranslations[id];\n\n  import ChevronDown from \"../icons/ChevronDown.svelte\";\n\n  const defaultTranslations = {\n    [translationIds.close]: \"Close menu\",\n    [translationIds.open]: \"Open menu\",\n  };\n\n  $: translationId = open ? translationIds.close : translationIds.open;\n  $: description =\n    translateWithId?.(translationId) ?? defaultTranslations[translationId];\n</script>\n\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--list-box__menu-icon={true}\n  class:bx--list-box__menu-icon--open={open}\n  {...$$restProps}\n  on:click|preventDefault\n>\n  <ChevronDown aria-label={description} title={description} />\n</div>\n","// @ts-check\n\n/**\n * Svelte action: set `title` while text overflows horizontally.\n * `params.title` wins over auto-detection, including `\"\"`.\n * `params.measure` checks a descendant instead of `node`.\n *\n * @param {HTMLElement} node Element that gets the `title` attribute.\n * @param {import(\"./overflowTitle.js\").OverflowTitleParams} [params]\n * @returns {{ update: (params?: import(\"./overflowTitle.js\").OverflowTitleParams) => void }}\n * @example\n * <div use:overflowTitle>{text}</div>\n * <label use:overflowTitle={{ title, measure: labelText }}>...</label>\n */\nexport function overflowTitle(node, params = {}) {\n  function update(next = {}) {\n    if (next.title != null) {\n      node.setAttribute(\"title\", next.title);\n      return;\n    }\n\n    const measured = next.measure ?? node;\n    if (measured.offsetWidth < measured.scrollWidth) {\n      node.setAttribute(\"title\", measured.innerText);\n    } else {\n      node.removeAttribute(\"title\");\n    }\n  }\n\n  update(params);\n\n  return { update };\n}\n\nexport default overflowTitle;\n","<script>\n  import { getContext, onMount } from \"svelte\";\n  import { overflowTitle } from \"../utils/overflowTitle.js\";\n  import { scrollIntoViewWithinMenu } from \"../utils/scrollIntoViewWithinMenu.js\";\n  import { HIGHLIGHT_CURSOR_KEY } from \"./highlightCursor.js\";\n\n  /** Set to `true` to enable the active state */\n  export let active = false;\n\n  /** Set to `true` to enable the highlighted state */\n  export let highlighted = false;\n\n  /** Set to `true` to disable the menu item */\n  export let disabled = false;\n\n  /** Set to `true` to add inline padding for a left-aligned icon */\n  export let hasLeftIcon = false;\n\n  /**\n   * Option element id. Used by the listbox highlight cursor.\n   * @type {string}\n   */\n  export let id = undefined;\n\n  /**\n   * Hide the option without unmounting it (`filterMode=\"hide\"`).\n   * Omit or pass `true`; a boolean `false` must not reach the DOM.\n   * @type {boolean}\n   */\n  export let hidden = false;\n\n  const HIGHLIGHT_CLASS = \"bx--list-box__menu-item--highlighted\";\n  const highlightCursor = getContext(HIGHLIGHT_CURSOR_KEY);\n\n  let optionEl = null;\n  let ref = null;\n  let unregisterHighlight = () => {};\n\n  $: if (!highlightCursor && highlighted && ref && !ref.matches(\":hover\")) {\n    // Scroll highlighted item into view if using keyboard navigation.\n    // Scoped to the menu's own scroll container so a portaled menu (whose\n    // nearest scrollable ancestor is the document) does not scroll the page.\n    scrollIntoViewWithinMenu(ref);\n  }\n\n  // Do not put `--highlighted` on a `class:` directive when the listbox owns\n  // a cursor. Svelte 3 removes that class on every update if the expression\n  // is false, which undoes the cursor's classList write.\n  $: bindCursor(optionEl, id, active, highlighted);\n\n  /**\n   * @param {HTMLElement | null} node\n   * @param {string | undefined} optionId\n   * @param {boolean} isActive\n   * @param {boolean} isHighlighted\n   */\n  function bindCursor(node, optionId, isActive, isHighlighted) {\n    unregisterHighlight();\n    unregisterHighlight = () => {};\n    if (!node) return;\n    if (highlightCursor) {\n      if (optionId) {\n        unregisterHighlight = highlightCursor.register(optionId, node);\n      }\n      return;\n    }\n    node.classList.toggle(HIGHLIGHT_CLASS, Boolean(isActive || isHighlighted));\n  }\n\n  onMount(() => () => unregisterHighlight());\n</script>\n\n<div\n  bind:this={optionEl}\n  {id}\n  hidden={hidden ? true : undefined}\n  role=\"option\"\n  tabindex=\"-1\"\n  class:bx--list-box__menu-item={true}\n  class:bx--list-box__menu-item--active={active}\n  aria-selected={active}\n  aria-disabled={disabled ? true : undefined}\n  disabled={disabled ? true : undefined}\n  {...$$restProps}\n  on:click\n  on:mousedown\n  on:mouseenter\n  on:mouseleave\n>\n  <div\n    bind:this={ref}\n    use:overflowTitle\n    class:bx--list-box__menu-item__option={true}\n    class:bx--list-box__menu-item__option--icon-left={hasLeftIcon}\n  >\n    <slot />\n  </div>\n</div>\n","<script>\n  /**\n   * @event {KeyboardEvent | MouseEvent} clear\n   */\n\n  /**\n   * @typedef {\"clearAll\" | \"clearSelection\"} ListBoxSelectionTranslationId\n   */\n\n  /**\n   * Specify the number of selected items.\n   * @type {number}\n   */\n  export let selectionCount = undefined;\n\n  /** Set to `true` to disable the list box selection */\n  export let disabled = false;\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /** Default translation ids */\n  export const translationIds = {\n    clearAll: \"clearAll\",\n    clearSelection: \"clearSelection\",\n  };\n\n  /**\n   * Override the default translation ids.\n   * @type {(id: ListBoxSelectionTranslationId) => string}\n   */\n  export let translateWithId = (id) => defaultTranslations[id];\n\n  /**\n   * Obtain a reference to the top-level HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, getContext } from \"svelte\";\n  import Close from \"../icons/Close.svelte\";\n\n  const defaultTranslations = {\n    [translationIds.clearAll]: \"Clear all selected items\",\n    [translationIds.clearSelection]: \"Clear selected item\",\n  };\n  const dispatch = createEventDispatcher();\n  const ctx = getContext(\"carbon:MultiSelect\");\n\n  $: if (ctx && ref) {\n    ctx.declareRef({ key: \"selection\", ref });\n  }\n  $: translationId =\n    selectionCount !== undefined && selectionCount > 1\n      ? translationIds.clearAll\n      : translationIds.clearSelection;\n  $: buttonLabel =\n    translateWithId?.(translationId) ?? defaultTranslations[translationId];\n  $: description =\n    translateWithId?.(translationId) ?? defaultTranslations[translationId];\n</script>\n\n{#if selectionCount !== undefined}\n  <div\n    class:bx--tag={true}\n    class:bx--tag--filter={true}\n    class:bx--tag--high-contrast={true}\n    class:bx--tag--disabled={disabled}\n    aria-hidden={readonly || undefined}\n  >\n    <span\n      class:bx--tag__label={true}\n      title={selectionCount}\n      aria-hidden={readonly || undefined}\n    >\n      {selectionCount}\n    </span>\n    <div\n      bind:this={ref}\n      role=\"button\"\n      tabindex=\"-1\"\n      class:bx--tag__close-icon={true}\n      on:click|preventDefault|stopPropagation={(event) => {\n        if (!disabled && !readonly) {\n          dispatch(\"clear\", event);\n        }\n      }}\n      on:keydown|stopPropagation={(event) => {\n        if (!disabled && !readonly && (event.key === \"Enter\" || event.key === \" \")) {\n          dispatch(\"clear\", event);\n        }\n      }}\n      {disabled}\n      aria-disabled={readonly || undefined}\n      aria-label={buttonLabel}\n      aria-hidden={readonly || undefined}\n      title={description}\n    >\n      <Close />\n    </div>\n  </div>\n{:else}\n  <div\n    bind:this={ref}\n    role=\"button\"\n    aria-label={description}\n    title={description}\n    tabindex=\"-1\"\n    class:bx--list-box__selection={true}\n    class:bx--tag--filter={selectionCount}\n    class:bx--list-box__selection--multi={selectionCount}\n    aria-disabled={readonly || undefined}\n    {...$$restProps}\n    on:click|preventDefault|stopPropagation={(event) => {\n      if (!disabled && !readonly) {\n        dispatch(\"clear\", event);\n      }\n    }}\n    on:keydown|stopPropagation={(event) => {\n      if (!disabled && !readonly && (event.key === \"Enter\" || event.key === \" \")) {\n        dispatch(\"clear\", event);\n      }\n    }}\n  >\n    {#if selectionCount !== undefined}\n      {selectionCount}\n    {/if}\n    <Close />\n  </div>\n{/if}\n","<script>\n  import { getContext } from \"svelte\";\n  import { readable } from \"svelte/store\";\n  import { HIGHLIGHT_CURSOR_KEY } from \"./highlightCursor.js\";\n\n  /** DOM id of the option this slot belongs to (`{instanceId}-{item.id}`) */\n  export let optionId;\n\n  const cursor = getContext(HIGHLIGHT_CURSOR_KEY);\n  const highlightedIdStore = cursor?.highlightedId ?? readable(null);\n\n  $: highlighted = $highlightedIdStore === optionId;\n</script>\n\n<slot {highlighted} />\n","/**\n * Max height values for listbox/dropdown menus by size.\n * @type {Readonly<{ xs: string; sm: string; md: string; lg: string; xl: string }>}\n */\nexport const MENU_MAX_HEIGHT = Object.freeze({\n  xs: \"8.25rem\",\n  sm: \"11rem\",\n  md: \"13.75rem\",\n  lg: \"16.5rem\",\n  xl: \"16.5rem\",\n});\n\n/**\n * Get the max height for a listbox/dropdown menu based on size.\n * @param {\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"} [size] - The size variant\n * @returns {string} The max height in rem units\n */\nexport function getMenuMaxHeight(size = \"md\") {\n  return MENU_MAX_HEIGHT[size];\n}\n\n/**\n * Menu item heights (px) by size. Matches `.bx--list-box__menu-item` in\n * carbon-components (xs 1.5rem, sm 2rem, md 2.5rem, lg/xl 3rem).\n * @type {Readonly<{ xs: number; sm: number; md: number; lg: number; xl: number }>}\n */\nexport const MENU_ITEM_HEIGHT = Object.freeze({\n  xs: 24,\n  sm: 32,\n  md: 40,\n  lg: 48,\n  xl: 48,\n});\n\n/**\n * Fluid menu item height (px). Matches `$spacing-10` (4rem) on\n * `.bx--list-box__menu-item` in css/_fluid-list-box.scss. Same height for every\n * size; condensed fluid uses the size-based heights in MENU_ITEM_HEIGHT.\n */\nexport const FLUID_MENU_ITEM_HEIGHT = 64;\n\n/**\n * Get the menu item height in pixels for a listbox/dropdown.\n * @param {\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"} [size] - The size variant\n * @param {{ fluid?: boolean }} [options] - Pass `fluid: true` for FLUID_MENU_ITEM_HEIGHT\n * @returns {number} The item height in pixels\n */\nexport function getMenuItemHeight(size = \"md\", { fluid = false } = {}) {\n  if (fluid) return FLUID_MENU_ITEM_HEIGHT;\n  return MENU_ITEM_HEIGHT[size] ?? MENU_ITEM_HEIGHT.md;\n}\n","// @ts-check\n/**\n * Debounce `fn` until `delay` ms after the last call. Exposes `cancel()` and\n * `flush()` on the returned function.\n *\n * @template {(...args: any[]) => void} Fn\n * @param {Fn} fn - Function to debounce.\n * @param {number} delay - Quiet period in milliseconds before `fn` runs.\n * @returns {((...args: Parameters<Fn>) => void) & { cancel: () => void; flush: () => void }}\n */\nexport function debounce(fn, delay) {\n  /** @type {ReturnType<typeof setTimeout> | undefined} */\n  let timeoutId;\n  /** @type {Parameters<Fn> | undefined} */\n  let pendingArgs;\n\n  /** @param {Parameters<Fn>} args */\n  function debounced(...args) {\n    pendingArgs = args;\n    clearTimeout(timeoutId);\n    timeoutId = setTimeout(() => {\n      timeoutId = undefined;\n      const args = pendingArgs;\n      pendingArgs = undefined;\n      if (args) fn(...args);\n    }, delay);\n  }\n\n  debounced.cancel = () => {\n    clearTimeout(timeoutId);\n    timeoutId = undefined;\n    pendingArgs = undefined;\n  };\n\n  debounced.flush = () => {\n    if (timeoutId === undefined) return;\n    clearTimeout(timeoutId);\n    timeoutId = undefined;\n    const args = pendingArgs;\n    pendingArgs = undefined;\n    if (args) fn(...args);\n  };\n\n  return debounced;\n}\n","// @ts-check\n\nimport {\n  poolKey,\n  registerConsumer,\n  unregisterConsumer,\n} from \"./windowListenerPool.js\";\n\n/**\n * @typedef {{ handler: (event: Event) => void }} Consumer\n * @typedef {import(\"./windowListenerPool.js\").Pool} Pool\n */\n\n/**\n * Svelte action: `window` listeners while `enabled` is true.\n * Controls with the same `(type, options)` share one listener.\n * Handler updates in place without re-registering. SSR-safe.\n *\n * @param {unknown} _node Host element (unused; listeners attach to `window`).\n * @param {import(\"./dismiss.js\").DismissParams} params\n * @returns {{ update: (params: import(\"./dismiss.js\").DismissParams) => void, destroy: () => void }}\n */\nexport function dismiss(_node, params) {\n  let specs = normalize(params);\n  let enabled = !!params.enabled;\n  let destroyed = false;\n  let addScheduled = false;\n\n  /**\n   * @type {Array<{ key: string, pool: Pool, consumer: Consumer }>}\n   */\n  let registered = [];\n\n  function add() {\n    if (typeof window === \"undefined\" || addScheduled) return;\n    addScheduled = true;\n    // Defer registration to the next task (not just a microtask). Enabling\n    // synchronously within a click (e.g. a button outside the anchor setting\n    // `open` to true) would otherwise register the window listener while\n    // that SAME click is still bubbling — heavy synchronous DOM work in the\n    // handler (mounting a portal, positioning it) can delay the event's\n    // arrival at `window` past any microtask flush, so only a macrotask\n    // defer reliably waits for the current dispatch to finish. Re-checks\n    // `enabled`/`destroyed` since either may have changed by the time this\n    // runs.\n    setTimeout(() => {\n      addScheduled = false;\n      if (destroyed || !enabled) return;\n      registered = specs.map((spec) => registerConsumer(spec));\n    });\n  }\n\n  function remove() {\n    for (const entry of registered) unregisterConsumer(entry);\n    registered = [];\n  }\n\n  if (enabled) add();\n\n  return {\n    /** @param {import(\"./dismiss.js\").DismissParams} next */\n    update(next) {\n      const nextSpecs = normalize(next);\n      const nextEnabled = !!next.enabled;\n      const sameShape =\n        registered.length === nextSpecs.length &&\n        nextSpecs.every(\n          (s, i) =>\n            registered[i] && registered[i].key === poolKey(s.type, s.options),\n        );\n\n      if (enabled && nextEnabled && sameShape) {\n        nextSpecs.forEach((s, i) => {\n          registered[i].consumer.handler = s.handler;\n        });\n        specs = nextSpecs;\n        return;\n      }\n\n      remove();\n      specs = nextSpecs;\n      enabled = nextEnabled;\n      if (enabled) add();\n    },\n    destroy() {\n      destroyed = true;\n      remove();\n    },\n  };\n}\n\n/**\n * @param {import(\"./dismiss.js\").DismissParams} params\n * @returns {Array<{ type: string, handler: (event: Event) => void, options: boolean | AddEventListenerOptions | undefined }>}\n */\nfunction normalize(params) {\n  if (params.listeners) {\n    return params.listeners.map((l) => ({\n      type: l.type,\n      handler: l.handler,\n      options: l.options,\n    }));\n  }\n  const types = Array.isArray(params.type)\n    ? params.type\n    : params.type == null\n      ? []\n      : [params.type];\n  return types.map((type) => ({\n    type,\n    handler: /** @type {(event: Event) => void} */ (params.handler),\n    options: params.options,\n  }));\n}\n","// @ts-check\n\n/**\n * True when `event.target` is outside every element in `elements`.\n * Skips falsy entries. Pass `portalMenu && listRef` inline.\n * Returns false when `event.target` is not a Node.\n *\n * Listeners outside a shadow root see `event.target` as the shadow host,\n * not the clicked node. Also check `event.composedPath()` so a click\n * inside a shadow descendant is not treated as outside.\n *\n * @param {Event} event\n * @param {Element | null | undefined | false | Array<Element | null | undefined | false>} elements\n * @returns {boolean}\n */\nexport function isOutsideClick(event, elements) {\n  const { target } = event;\n  const path =\n    typeof event.composedPath === \"function\" ? event.composedPath() : [];\n  if (!(target instanceof Node) && !path.length) return false;\n  const list = Array.isArray(elements) ? elements : [elements];\n  return list.every((el) => {\n    if (!el) return true;\n    if (target instanceof Node && el.contains(target)) return false;\n    return !path.some((node) => node instanceof Node && el.contains(node));\n  });\n}\n","// @ts-check\n\n/** Default distance from the bottom (px) that counts as near end. */\nexport const DEFAULT_SCROLL_END_THRESHOLD = 32;\n\n/**\n * True when the scroll position is within `threshold` px of the bottom.\n * Returns false when the content does not overflow.\n *\n * @param {Object} options\n * @param {number} options.scrollTop\n * @param {number} options.scrollHeight\n * @param {number} options.clientHeight\n * @param {number} [options.threshold=DEFAULT_SCROLL_END_THRESHOLD]\n * @returns {boolean}\n */\nexport function isScrollNearEnd({\n  scrollTop,\n  scrollHeight,\n  clientHeight,\n  threshold = DEFAULT_SCROLL_END_THRESHOLD,\n}) {\n  if (scrollHeight <= clientHeight) return false;\n  return scrollTop + clientHeight >= scrollHeight - threshold;\n}\n\n/**\n * @typedef {Object} ScrollEndDetail\n * @property {number} scrollTop\n * @property {number} scrollHeight\n * @property {number} clientHeight\n */\n\n/**\n * Fire-once-per-approach tracker for listbox near-bottom `scrollend`.\n * Re-arms after the user scrolls away from the bottom, and when the item\n * count grows so another page can be requested.\n *\n * @param {Object} [options]\n * @param {number} [options.threshold=DEFAULT_SCROLL_END_THRESHOLD]\n * @returns {{\n *   noteItemCount: (itemCount: number) => void,\n *   observe: (metrics: ScrollEndDetail & { itemCount?: number }) => ScrollEndDetail | null,\n *   reset: () => void,\n * }}\n */\nexport function createScrollEndTracker({\n  threshold = DEFAULT_SCROLL_END_THRESHOLD,\n} = {}) {\n  let armed = true;\n  /** @type {number | undefined} */\n  let lastItemCount;\n\n  /**\n   * Re-arm when the rendered list grows.\n   * @param {number} itemCount\n   */\n  function noteItemCount(itemCount) {\n    if (lastItemCount !== undefined && itemCount > lastItemCount) {\n      armed = true;\n    }\n    lastItemCount = itemCount;\n  }\n\n  return {\n    noteItemCount,\n\n    /**\n     * @param {ScrollEndDetail & { itemCount?: number }} metrics\n     * @returns {ScrollEndDetail | null}\n     */\n    observe(metrics) {\n      if (typeof metrics.itemCount === \"number\") {\n        noteItemCount(metrics.itemCount);\n      }\n\n      const nearEnd = isScrollNearEnd({\n        scrollTop: metrics.scrollTop,\n        scrollHeight: metrics.scrollHeight,\n        clientHeight: metrics.clientHeight,\n        threshold,\n      });\n\n      if (!nearEnd) {\n        if (metrics.scrollHeight > metrics.clientHeight) {\n          armed = true;\n        }\n        return null;\n      }\n\n      if (!armed) return null;\n      armed = false;\n      return {\n        scrollTop: metrics.scrollTop,\n        scrollHeight: metrics.scrollHeight,\n        clientHeight: metrics.clientHeight,\n      };\n    },\n\n    reset() {\n      armed = true;\n      lastItemCount = undefined;\n    },\n  };\n}\n","// @ts-check\n\n/**\n * Move `index` by `step` and wrap once at either end. Returns -1 for an empty\n * range. For single-step moves (`step` ±1), stepping from -1 lands on the\n * last item (step +1) or first item (step -1).\n *\n * @param {number} index - Current index (may be -1 when nothing is selected).\n * @param {number} step - Amount/direction to move (e.g. 1 or -1).\n * @param {number} length - Number of items.\n * @returns {number}\n */\nexport function moveIndex(index, step, length) {\n  if (length <= 0) return -1;\n  const next = index + step;\n  if (next < 0) return length - 1;\n  if (next >= length) return 0;\n  return next;\n}\n\n/**\n * Cyclically move from `index` by `step` to the first enabled item. Returns\n * `index` when no enabled item exists. `index` may be -1.\n *\n * @template T\n * @param {object} options\n * @param {ReadonlyArray<T>} options.items\n * @param {number} options.index - Current index (may be -1).\n * @param {number} options.step - Direction/magnitude to move (e.g. 1 or -1).\n * @param {(item: T) => boolean} [options.isDisabled] - Defaults to `item.disabled`.\n * @returns {number}\n */\nexport function nextEnabledIndex({ items, index, step, isDisabled }) {\n  const length = items.length;\n  if (length === 0) return index;\n  const disabled = isDisabled ?? ((item) => Boolean(item?.disabled));\n  let candidate = moveIndex(index, step, length);\n  let attempts = 0;\n  while (disabled(items[candidate]) && attempts < length) {\n    candidate = moveIndex(candidate, step, length);\n    attempts++;\n  }\n  return disabled(items[candidate]) ? index : candidate;\n}\n","// @ts-check\n\n/**\n * Next enabled item whose text starts with `query`, searching forward from\n * `index` and wrapping once. Returns `index` if nothing matches.\n *\n * @template T\n * @param {object} options\n * @param {ReadonlyArray<T>} options.items\n * @param {string} options.query\n * @param {(item: T) => string} options.itemToString\n * @param {number} options.index - May be -1 when nothing is highlighted.\n * @param {(item: T) => boolean} [options.isDisabled] - Defaults to `item.disabled`.\n * @returns {number}\n */\nexport function typeaheadIndex({\n  items,\n  query,\n  itemToString,\n  index,\n  isDisabled,\n}) {\n  if (items.length === 0 || query === \"\") return index;\n  const disabled = isDisabled ?? ((item) => Boolean(item?.disabled));\n  const needle = query.toLowerCase();\n  const start = index >= 0 ? index + 1 : 0;\n  for (let offset = 0; offset < items.length; offset++) {\n    const i = (start + offset) % items.length;\n    if (\n      !disabled(items[i]) &&\n      itemToString(items[i]).toLowerCase().startsWith(needle)\n    ) {\n      return i;\n    }\n  }\n  return index;\n}\n","/**\n * Compute the `[startIndex, endIndex)` slice of items to render for a given\n * scroll position, including `overscan` padding and an optional `maxItems` cap.\n *\n * @param {Object} options\n * @param {number} options.scrollTop\n * @param {number} options.itemHeight\n * @param {number} options.containerHeight\n * @param {number} options.itemCount\n * @param {number} [options.overscan=3]\n * @param {number} [options.maxItems]\n * @returns {{ startIndex: number, endIndex: number }}\n */\nexport function getVisibleRange({\n  scrollTop,\n  itemHeight,\n  containerHeight,\n  itemCount,\n  overscan = 3,\n  maxItems = undefined,\n}) {\n  // A non-positive (or NaN) itemHeight can't be virtualized; the math below\n  // divides by it and yields NaN indices, so fall back to the full range.\n  if (!(itemHeight > 0)) {\n    return { startIndex: 0, endIndex: itemCount };\n  }\n\n  const startIndex = Math.max(0, Math.floor(scrollTop / itemHeight) - overscan);\n  let endIndex = Math.min(\n    itemCount,\n    Math.ceil((scrollTop + containerHeight) / itemHeight) + overscan,\n  );\n\n  if (maxItems && endIndex - startIndex > maxItems) {\n    endIndex = startIndex + maxItems;\n  }\n\n  return { startIndex, endIndex };\n}\n\n/**\n * Render only the visible slice of a fixed-height list.\n *\n * @template {Record<string, unknown>} Item\n * @param {Object} config\n * @param {Item[]} config.items\n * @param {number} config.itemHeight\n * @param {number} config.containerHeight\n * @param {number} config.scrollTop\n * @param {number} [config.overscan=3]\n * @param {number} [config.maxItems]\n * @param {number} [config.threshold=100]\n * @returns {{\n *   visibleItems: Item[],\n *   startIndex: number,\n *   endIndex: number,\n *   offsetY: number,\n *   totalHeight: number,\n *   isVirtualized: boolean\n * }}\n */\nexport function virtualize({\n  items,\n  itemHeight,\n  containerHeight,\n  scrollTop,\n  overscan = 3,\n  maxItems = undefined,\n  threshold = 100,\n}) {\n  // A non-positive itemHeight can't be virtualized (the math divides by it and\n  // yields NaN indices), so render the full list unvirtualized.\n  if (items.length < threshold || itemHeight <= 0) {\n    return {\n      visibleItems: items,\n      startIndex: 0,\n      endIndex: items.length,\n      offsetY: 0,\n      totalHeight: itemHeight > 0 ? items.length * itemHeight : 0,\n      isVirtualized: false,\n    };\n  }\n\n  const totalHeight = items.length * itemHeight;\n\n  // Clamp scrollTop to the scrollable range. A stale scrollTop (e.g. left over\n  // from a longer list after the filter narrows it) would otherwise push\n  // startIndex past the end and slice to an empty array, rendering a blank menu\n  // until the browser fires a corrective scroll event.\n  const maxScroll = Math.max(0, totalHeight - containerHeight);\n  const clampedScrollTop = Math.min(Math.max(0, scrollTop), maxScroll);\n\n  const { startIndex, endIndex } = getVisibleRange({\n    scrollTop: clampedScrollTop,\n    itemHeight,\n    containerHeight,\n    itemCount: items.length,\n    overscan,\n    maxItems,\n  });\n\n  const offsetY = startIndex * itemHeight;\n\n  return {\n    visibleItems: items.slice(startIndex, endIndex),\n    startIndex,\n    endIndex,\n    offsetY,\n    totalHeight,\n    isVirtualized: true,\n  };\n}\n\n/** Default virtualization config for listbox-like components. */\nexport const DEFAULT_VIRTUAL_LIST_CONFIG = {\n  itemHeight: 40,\n  containerHeight: 300,\n  overscan: 3,\n  threshold: 100,\n  maxItems: undefined,\n};\n\n/**\n * Resolve config, virtualize result, and items to render for a listbox menu.\n * When disabled, `config` and `data` are `null` and `itemsToRender` is all `items`.\n *\n * @template {Record<string, unknown>} Item\n * @param {Object} options\n * @param {Item[]} options.items\n * @param {number} options.scrollTop\n * @param {boolean} options.shouldVirtualize\n * @param {boolean | object | undefined} options.virtualize\n * @param {Partial<typeof DEFAULT_VIRTUAL_LIST_CONFIG>} [options.defaults]\n * @returns {{\n *   config: (typeof DEFAULT_VIRTUAL_LIST_CONFIG & Record<string, unknown>) | null,\n *   data: ReturnType<typeof virtualize<Item>> | null,\n *   itemsToRender: Item[]\n * }}\n */\nexport function virtualListState({\n  items,\n  scrollTop,\n  shouldVirtualize,\n  virtualize: virtualizeProp,\n  defaults = {},\n}) {\n  const config = shouldVirtualize\n    ? {\n        ...DEFAULT_VIRTUAL_LIST_CONFIG,\n        ...defaults,\n        ...(typeof virtualizeProp === \"object\" ? virtualizeProp : {}),\n      }\n    : null;\n\n  const data = config ? virtualize({ items, scrollTop, ...config }) : null;\n\n  const itemsToRender = data?.isVirtualized ? data.visibleItems : items;\n\n  return { config, data, itemsToRender };\n}\n\n/**\n * `scrollTop` to place the item at `index` at the top of the viewport, clamped\n * to the scrollable range.\n *\n * @param {Object} options\n * @param {number} options.index\n * @param {number} options.itemHeight\n * @param {number} options.containerHeight\n * @param {number} options.itemCount\n * @returns {number}\n */\nexport function getBoundedScrollTop({\n  index,\n  itemHeight,\n  containerHeight,\n  itemCount,\n}) {\n  const maxScroll = Math.max(0, itemCount * itemHeight - containerHeight);\n  return Math.max(0, Math.min(index * itemHeight, maxScroll));\n}\n\n/**\n * `scrollTop` to bring a keyboard-highlighted item into view, or `null` if it\n * is already within the visible range (including overscan).\n *\n * @param {Object} options\n * @param {number} options.highlightedIndex\n * @param {number} options.currentScrollTop\n * @param {number} options.itemCount\n * @param {number} options.itemHeight\n * @param {number} options.containerHeight\n * @param {number} [options.overscan=3]\n * @param {number} [options.maxItems]\n * @returns {number | null}\n */\nexport function scrollHighlightedIntoView({\n  highlightedIndex,\n  currentScrollTop,\n  itemCount,\n  itemHeight,\n  containerHeight,\n  overscan = 3,\n  maxItems = undefined,\n}) {\n  const { startIndex: visibleStartIndex, endIndex: visibleEndIndex } =\n    getVisibleRange({\n      scrollTop: currentScrollTop,\n      itemHeight,\n      containerHeight,\n      itemCount,\n      overscan,\n      maxItems,\n    });\n\n  if (\n    highlightedIndex < visibleStartIndex ||\n    highlightedIndex >= visibleEndIndex\n  ) {\n    return getBoundedScrollTop({\n      index: highlightedIndex,\n      itemHeight,\n      containerHeight,\n      itemCount,\n    });\n  }\n\n  return null;\n}\n\n/**\n * `scrollTop` for the selected item on open, or `0` when `selectedIndex < 0`.\n *\n * @param {Object} options\n * @param {number} options.selectedIndex\n * @param {number} options.itemCount\n * @param {number} options.itemHeight\n * @param {number} options.containerHeight\n * @returns {number}\n */\nexport function scrollSelectedIntoView({\n  selectedIndex,\n  itemCount,\n  itemHeight,\n  containerHeight,\n}) {\n  if (selectedIndex < 0) return 0;\n\n  return getBoundedScrollTop({\n    index: selectedIndex,\n    itemHeight,\n    containerHeight,\n    itemCount,\n  });\n}\n\n/**\n * Scroll position to reset when a virtualized menu closes.\n *\n * @returns {number}\n */\nexport function resetVirtualScrollOnClose() {\n  return 0;\n}\n","<script>\n  /**\n   * @template {DropdownItem<any>} [Item=DropdownItem<any>]\n   */\n\n  /**\n   * @typedef {object} DropdownItem<Id=any>\n   * @property {Id} id\n   * @property {string} text\n   * @property {boolean} [disabled] - Whether the item is disabled\n   * @property {any} [icon] - Icon component shown left of the item text\n   * @event select\n   * @type {object}\n   * @property {Item[\"id\"]} selectedId\n   * @property {Item} selectedItem\n   * @event {KeyboardEvent | MouseEvent} clear\n   * @slot {{ item: Item; index: number; selected: boolean; highlighted: boolean; }}\n   * @slot {{ item: Item; index: number; selected: boolean; highlighted: boolean; }} icon\n   * @slot {{ item: Item; index: number; selected: boolean; highlighted: boolean; }} iconRight\n   */\n\n  /**\n   * @event close\n   * @type {object}\n   * @property {\"escape-key\" | \"outside-click\" | \"select\"} trigger\n   */\n\n  /**\n   * Dispatched when the menu is scrolled near the bottom (load-more signal).\n   * Not the browser's native `scrollend` (scroll stopped).\n   * @event {{ scrollTop: number; scrollHeight: number; clientHeight: number }} scrollend\n   */\n\n  /**\n   * Set the dropdown items.\n   * @type {ReadonlyArray<Item>}\n   */\n  export let items = [];\n\n  /**\n   * Override the display of a dropdown item.\n   * @type {(item: Item) => string}\n   */\n  export let itemToString = (item) => item.text ?? item.id;\n\n  /**\n   * Specify the selected item id.\n   * @type {Item[\"id\"] | undefined}\n   * @bindable writable\n   */\n  export let selectedId = undefined;\n\n  /**\n   * Specify the type of dropdown.\n   * @type {\"default\" | \"inline\"}\n   */\n  export let type = \"default\";\n\n  /**\n   * Specify the direction of the dropdown menu.\n   * @type {\"bottom\" | \"top\"}\n   */\n  export let direction = \"bottom\";\n\n  /**\n   * Specify the size of the dropdown field.\n   * @type {\"xs\" | \"sm\" | \"lg\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Set to `true` to open the dropdown.\n   * @bindable writable\n   */\n  export let open = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the dropdown */\n  export let disabled = false;\n\n  /** Specify the title text */\n  export let labelText = \"\";\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /**\n   * Set to `true` to show a clear button when an item is selected.\n   * Clears `selectedId` and dispatches a `clear` event.\n   * Also enables clearing the selection with Delete/Backspace.\n   */\n  export let clearable = false;\n\n  /**\n   * Specify the assistive text advertising the keyboard shortcut that clears\n   * the selection. Appended to the field's description whenever there is a\n   * selection to clear. Only used when `clearable` is `true`.\n   */\n  export let clearSelectionText =\n    \"To clear the selection, press Delete or Backspace\";\n\n  /**\n   * Specify the assistive text announced through the status live region when\n   * the selection is cleared via the keyboard or the clear button. Only used\n   * when `clearable` is `true`.\n   */\n  export let selectionClearedText = \"Selection cleared\";\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   * Cannot be combined with the inline variant.\n   */\n  export let fluid = false;\n\n  /**\n   * Set to `true` to render condensed menu items in the fluid variant.\n   * Menu items use the default height instead of the taller fluid height.\n   * Only applies when the fluid variant is active.\n   */\n  export let condensed = false;\n\n  /**\n   * Specify the list box label.\n   * @type {string}\n   */\n  export let label = undefined;\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /**\n   * Override the chevron icon label based on the open state.\n   * Defaults to \"Open menu\" when closed and \"Close menu\" when open.\n   * @type {(id: import(\"../ListBox/ListBoxMenuIcon.svelte\").ListBoxMenuIconTranslationId) => string}\n   */\n  export let translateWithId = undefined;\n\n  /**\n   * Override the label of the clear button when a selection is present.\n   * Defaults to \"Clear selected item\" since a dropdown can only have one selection.\n   * @type {(id: \"clearSelection\") => string}\n   */\n  export let translateWithIdSelection = undefined;\n\n  /**\n   * Enable virtualization for large lists. Virtualization renders only the items currently visible in the viewport, improving performance for large lists.\n   *\n   * By default, virtualization is automatically enabled for lists with more than 100 items.\n   *\n   * Set `virtualize={false}` to explicitly disable virtualization, even for large lists.\n   *\n   * Set `virtualize={true}` to explicitly enable virtualization with default settings.\n   *\n   * Provide an object to customize virtualization behavior:\n   * - `itemHeight` (default: size-based, or 64px for fluid unless `condensed`): Height of each item in pixels. Override when custom slots change row height.\n   * - `containerHeight` (default: 300): The maximum height in pixels of the dropdown container.\n   * - `overscan` (default: 3): The number of extra items to render above and below the viewport for smoother scrolling. Higher values may cause more flickering during very fast scrolling.\n   * - `threshold` (default: 100): The minimum number of items required before virtualization activates. Lists with fewer items will render all items normally without virtualization.\n   * - `maxItems` (default: undefined): The maximum number of items to render. When undefined, all visible items are rendered.\n   * @type {undefined | boolean | { itemHeight?: number, containerHeight?: number, overscan?: number, threshold?: number, maxItems?: number }}\n   */\n  export let virtualize = undefined;\n\n  /**\n   * Set to `true` to render the dropdown menu in a portal,\n   * allowing it to escape containers with `overflow: hidden`.\n   * When inside a Modal, defaults to `true` unless explicitly set to `false`.\n   * @type {boolean | undefined}\n   */\n  export let portalMenu = undefined;\n\n  /** Set an id for the list box component */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for native form submission.\n   * Mounts a hidden input whose value mirrors `selectedId`\n   * (empty string when nothing is selected, or when the\n   * selected item is disabled).\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the button HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Obtain a reference to the list HTML element.\n   * @type {null | HTMLDivElement}\n   * @bindable readonly\n   */\n  export let listRef = null;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    onMount,\n    tick,\n  } from \"svelte\";\n  import Checkmark from \"../icons/Checkmark.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import {\n    ListBox,\n    ListBoxMenu,\n    ListBoxMenuIcon,\n    ListBoxMenuItem,\n    ListBoxSelection,\n  } from \"../ListBox\";\n  import HighlightSlot from \"../ListBox/HighlightSlot.svelte\";\n  import {\n    getMenuItemHeight,\n    getMenuMaxHeight,\n  } from \"../ListBox/list-box-utils.js\";\n  import { debounce } from \"../utils/debounce.js\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { isOutsideClick } from \"../utils/isOutsideClick.js\";\n  import { createScrollEndTracker } from \"../utils/isScrollNearEnd.js\";\n  import { moveIndex } from \"../utils/moveIndex.js\";\n  import { typeaheadIndex } from \"../utils/typeahead.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import {\n    resetVirtualScrollOnClose,\n    scrollHighlightedIntoView,\n    scrollSelectedIntoView,\n    virtualListState,\n  } from \"../utils/virtualize.js\";\n\n  const dispatch = createEventDispatcher();\n  const scrollEndTracker = createScrollEndTracker();\n  const insideModal = getContext(\"carbon:Modal\");\n  const formContext = getContext(\"carbon:Form\");\n\n  $: effectivePortalMenu =\n    portalMenu === undefined ? !!insideModal : portalMenu;\n\n  $: menuAriaLabel = $$props[\"aria-label\"] ?? (labelText || \"Choose an item\");\n\n  let highlightedIndex = -1;\n  let highlightOrigin = /** @type {\"keyboard\" | \"pointer\" | null} */ (null);\n  let prevHighlightedIndex = -1;\n  let prevItemsLength = items.length;\n  let typeaheadBuffer = \"\";\n  let listScrollTop = 0;\n  let prevOpen = false;\n  let fieldFocused = false;\n  let itemsById = new Map();\n  /** Text content of the visually-hidden status live region. */\n  let statusText = \"\";\n\n  const TYPEAHEAD_DELAY = 500;\n\n  // Clear the typeahead buffer once the user stops typing for TYPEAHEAD_DELAY ms.\n  const resetTypeaheadBuffer = debounce(() => {\n    typeaheadBuffer = \"\";\n  }, TYPEAHEAD_DELAY);\n\n  onMount(() => {\n    return () => {\n      resetTypeaheadBuffer.cancel();\n    };\n  });\n\n  $: inline = type === \"inline\";\n  $: {\n    itemsById = new Map();\n    for (let index = 0; index < items.length; index++) {\n      itemsById.set(items[index].id, items[index]);\n    }\n  }\n  $: menuId = `menu-${id}`;\n  $: helperId = `helper-${id}`;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: selectionId = `selection-${id}`;\n  // Invalid/warn states are suppressed when the dropdown is disabled or read-only.\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: hasSelectionDescription =\n    clearable && !readonly && selectedId !== undefined;\n  $: statusDescribedById =\n    showInvalid && invalidText\n      ? errorId\n      : showWarn && warnText\n        ? warnId\n        : !inline && !isFluid && !showInvalid && !showWarn && helperText\n          ? helperId\n          : undefined;\n  $: fieldDescribedById =\n    [hasSelectionDescription ? selectionId : null, statusDescribedById]\n      .filter(Boolean)\n      .join(\" \") || undefined;\n  $: isFluid = !inline && (fluid || !!formContext?.isFluid);\n  $: showFieldFocus = isFluid && (fieldFocused || open);\n  // Scope the option id with the instance `id` so multiple Dropdowns on a\n  // page do not produce duplicate DOM ids. `aria-activedescendant` references\n  // this same scoped value (see the `ListBoxMenuItem` ids below).\n  $: highlightedId =\n    highlightedIndex > -1 && items[highlightedIndex]\n      ? `${id}-${items[highlightedIndex].id}`\n      : undefined;\n  $: selectedItem = itemsById.get(selectedId);\n  // Mirrors native `<select><option value>`: a disabled selection is not a\n  // successful control, so it serializes as empty like nothing being selected.\n  $: hiddenInputValue =\n    selectedId === undefined || selectedItem?.disabled ? \"\" : selectedId;\n  $: if (!open) {\n    highlightedIndex = -1;\n    highlightOrigin = null;\n    prevHighlightedIndex = -1;\n    typeaheadBuffer = \"\";\n    resetTypeaheadBuffer.cancel();\n  }\n\n  // Clamp a stale highlight when `items` shrinks while the menu is open, so a\n  // keyboard-driven Enter/Space cannot dereference an index past the end.\n  $: if (items.length !== prevItemsLength) {\n    prevItemsLength = items.length;\n    if (highlightedIndex >= items.length) {\n      highlightedIndex = -1;\n      highlightOrigin = null;\n      prevHighlightedIndex = -1;\n    }\n  }\n\n  $: shouldVirtualize =\n    virtualize === false\n      ? false\n      : virtualize !== undefined || items.length > 100;\n\n  $: menuMaxHeight = getMenuMaxHeight(size);\n\n  // Fluid (non-condensed) menu items are 64px tall (see css/_fluid-list-box.scss).\n  // Portaled menus render outside the fluid wrapper, so they keep default heights.\n  $: hasFluidMenuItems = isFluid && !condensed && !effectivePortalMenu;\n\n  $: virtualState = virtualListState({\n    items,\n    scrollTop: listScrollTop,\n    shouldVirtualize,\n    virtualize,\n    defaults: {\n      itemHeight: getMenuItemHeight(size, { fluid: hasFluidMenuItems }),\n    },\n  });\n  $: virtualConfig = virtualState.config;\n  $: virtualData = virtualState.data;\n  $: itemsToRender = virtualState.itemsToRender;\n  $: scrollEndTracker.noteItemCount(items.length);\n\n  afterUpdate(() => {\n    // Scroll to highlighted item when it changes via keyboard navigation\n    // Only scroll if the item is outside the visible viewport\n    if (\n      open &&\n      shouldVirtualize &&\n      virtualConfig &&\n      highlightedIndex !== prevHighlightedIndex &&\n      highlightedIndex >= 0 &&\n      listRef\n    ) {\n      tick().then(() => {\n        if (listRef && virtualConfig && highlightedIndex >= 0) {\n          const nextScrollTop = scrollHighlightedIntoView({\n            highlightedIndex,\n            currentScrollTop: listRef.scrollTop ?? listScrollTop,\n            itemCount: items.length,\n            itemHeight: virtualConfig.itemHeight,\n            containerHeight: virtualConfig.containerHeight,\n            overscan: virtualConfig.overscan ?? 3,\n            maxItems: virtualConfig.maxItems,\n          });\n          if (nextScrollTop !== null) {\n            listScrollTop = nextScrollTop;\n            listRef.scrollTop = nextScrollTop;\n          }\n        }\n      });\n      prevHighlightedIndex = highlightedIndex;\n    }\n\n    // Set highlighted index to selected item when menu opens\n    const wasJustOpened = open && !prevOpen;\n    const selectedIndex =\n      wasJustOpened && selectedId !== undefined && selectedItem\n        ? items.findIndex((item) => item.id === selectedId)\n        : -1;\n    if (wasJustOpened && selectedIndex >= 0) {\n      // Set highlighted index to selected item so keyboard nav starts there\n      highlightedIndex = selectedIndex;\n      highlightOrigin = \"keyboard\";\n      prevHighlightedIndex = selectedIndex;\n    }\n\n    // Scroll to selected item when menu opens without virtualization.\n    // The list may overflow its max-height even below the virtualization threshold.\n    if (\n      wasJustOpened &&\n      !shouldVirtualize &&\n      listRef &&\n      selectedId !== undefined &&\n      selectedItem\n    ) {\n      tick().then(() => {\n        if (!listRef) return;\n        const selectedEl = listRef.querySelector('[aria-selected=\"true\"]');\n        if (!selectedEl) return;\n        // Adjust the menu's own scrollTop instead of scrollIntoView,\n        // which would also scroll the document.\n        listRef.scrollTop +=\n          selectedEl.getBoundingClientRect().top -\n          listRef.getBoundingClientRect().top;\n      });\n    }\n\n    // Scroll to selected item when menu opens with virtualization\n    if (wasJustOpened && shouldVirtualize && listRef) {\n      tick().then(() => {\n        if (listRef && virtualConfig) {\n          const nextScrollTop = scrollSelectedIntoView({\n            selectedIndex,\n            itemCount: items.length,\n            itemHeight: virtualConfig.itemHeight,\n            containerHeight: virtualConfig.containerHeight,\n          });\n          listScrollTop = nextScrollTop;\n          listRef.scrollTop = nextScrollTop;\n        }\n      });\n    }\n    prevOpen = open;\n\n    // Reset scroll position when menu closes\n    if (!open && shouldVirtualize) {\n      listScrollTop = resetVirtualScrollOnClose();\n    }\n    if (!open) {\n      scrollEndTracker.reset();\n    }\n  });\n\n  /**\n   * @param {Event} event\n   */\n  function handleMenuScroll(event) {\n    const target = /** @type {HTMLElement} */ (event.target);\n    listScrollTop = target.scrollTop;\n    const detail = scrollEndTracker.observe({\n      scrollTop: target.scrollTop,\n      scrollHeight: target.scrollHeight,\n      clientHeight: target.clientHeight,\n      itemCount: items.length,\n    });\n    if (detail) {\n      dispatch(\"scrollend\", detail);\n    }\n  }\n\n  function change(step) {\n    // Disabled options stay in the keyboard navigation sequence (APG:\n    // \"Focusability of disabled controls\") so assistive-tech users can\n    // discover them; selectHighlighted and the option click handlers refuse\n    // the actual selection.\n    highlightedIndex = moveIndex(highlightedIndex, step, items.length);\n    highlightOrigin = \"keyboard\";\n  }\n\n  function typeaheadSearch(character) {\n    if (items.length === 0) return;\n\n    typeaheadBuffer += character.toLowerCase();\n    resetTypeaheadBuffer();\n\n    highlightedIndex = typeaheadIndex({\n      items,\n      query: typeaheadBuffer,\n      itemToString,\n      index: highlightedIndex,\n    });\n    highlightOrigin = \"keyboard\";\n  }\n\n  function dispatchSelect() {\n    dispatch(\"select\", {\n      selectedId,\n      selectedItem: itemsById.get(selectedId),\n    });\n  }\n\n  /**\n   * Announce a message through the visually-hidden status region. The text is\n   * reset first so announcing the same message twice still mutates the DOM —\n   * live regions only fire on an actual text change.\n   * @param {string} text\n   */\n  async function announceStatus(text) {\n    statusText = \"\";\n    await tick();\n    statusText = text;\n  }\n\n  function clearSelection() {\n    if (readonly || selectedId === undefined) return;\n    selectedId = undefined;\n    open = false;\n    announceStatus(selectionClearedText);\n  }\n\n  /**\n   * Close the menu and notify consumers of the dismissal cause.\n   * Only dispatches when transitioning from open to closed so redundant\n   * `open = false` assignments do not double-fire.\n   * @param {\"escape-key\" | \"outside-click\" | \"select\"} trigger\n   */\n  function close(trigger) {\n    if (open) {\n      open = false;\n      dispatch(\"close\", { trigger });\n    }\n  }\n\n  function selectHighlighted() {\n    if (!open) {\n      open = true;\n      return;\n    }\n    const highlighted =\n      highlightOrigin === \"keyboard\" && highlightedIndex > -1\n        ? items[highlightedIndex]\n        : undefined;\n    // Enter/Space on a highlighted disabled option -> the menu stays open.\n    if (highlighted?.disabled) {\n      return;\n    }\n    if (highlighted && highlighted.id !== selectedId) {\n      selectedId = highlighted.id;\n      dispatchSelect();\n      close(\"select\");\n    } else {\n      // Toggling closed via Enter/Space without picking a (new) item is not a\n      // meaningful dismissal trigger, so close silently.\n      open = false;\n    }\n  }\n\n  $: dropdownListBoxClass = [\n    \"bx--dropdown\",\n    direction === \"top\" && \"bx--list-box--up\",\n    showInvalid && \"bx--dropdown--invalid\",\n    showWarn && \"bx--dropdown--warning\",\n    open && \"bx--dropdown--open\",\n    size === \"xs\" && \"bx--dropdown--xs\",\n    size === \"sm\" && \"bx--dropdown--sm\",\n    size === \"xl\" && \"bx--dropdown--xl\",\n    inline && \"bx--dropdown--inline\",\n    disabled && \"bx--dropdown--disabled\",\n    light && \"bx--dropdown--light\",\n    readonly && \"bx--dropdown--readonly\",\n  ]\n    .filter(Boolean)\n    .join(\" \");\n\n  function handleOutsideClick(event) {\n    if (open && isOutsideClick(event, [ref, effectivePortalMenu && listRef])) {\n      close(\"outside-click\");\n    }\n  }\n</script>\n\n<div\n  class:bx--dropdown__wrapper={true}\n  class:bx--list-box__wrapper={true}\n  class:bx--dropdown__wrapper--inline={inline}\n  class:bx--list-box__wrapper--inline={inline}\n  class:bx--dropdown__wrapper--inline--invalid={inline && showInvalid}\n  class:bx--list-box__wrapper--fluid={isFluid}\n  class:bx--list-box__wrapper--fluid--invalid={isFluid && showInvalid}\n  class:bx--list-box__wrapper--fluid--warning={isFluid && showWarn}\n  class:bx--list-box__wrapper--fluid--disabled={isFluid && disabled}\n  class:bx--list-box__wrapper--fluid--readonly={isFluid && readonly}\n  class:bx--list-box__wrapper--fluid--condensed={isFluid && condensed}\n  use:dismiss={{ enabled: open, type: \"click\", handler: handleOutsideClick }}\n  {...$$restProps}\n>\n  {#if labelText || $$slots.labelChildren}\n    <label\n      for={id}\n      class:bx--label={true}\n      class:bx--label--disabled={disabled}\n      class:bx--visually-hidden={hideLabel}\n      class:bx--label--slotted={isFluid && $$slots.labelChildren}\n    >\n      <slot name=\"labelChildren\"> {labelText} </slot>\n    </label>\n  {/if}\n  {#if name}\n    <input type=\"hidden\" {name} value={hiddenInputValue}>\n  {/if}\n  <ListBox\n    {type}\n    {size}\n    aria-label={$$props[\"aria-label\"]}\n    class={dropdownListBoxClass}\n    on:click={(event) => {\n      if (disabled || readonly) return;\n      open = ref.contains(event.target) ? !open : false;\n    }}\n    {disabled}\n    {open}\n    invalid={showInvalid}\n    {light}\n    warn={showWarn}\n  >\n    {#if showInvalid}\n      <WarningFilled class=\"bx--list-box__invalid-icon\" />\n    {/if}\n    {#if showWarn}\n      <WarningAltFilled\n        class=\"bx--list-box__invalid-icon bx--list-box__invalid-icon--warning\"\n      />\n    {/if}\n    <div\n      style={isFluid ? undefined : \"display: contents\"}\n      class:bx--list-box__field--wrapper={isFluid}\n      class:bx--list-box__field--wrapper--input-focused={showFieldFocus}\n    >\n      <button\n        bind:this={ref}\n        type=\"button\"\n        role=\"combobox\"\n        class:bx--list-box__field={true}\n        tabindex=\"0\"\n        aria-expanded={open}\n        aria-disabled={readonly || undefined}\n        aria-readonly={readonly || undefined}\n        aria-haspopup=\"listbox\"\n        aria-activedescendant={highlightedId ?? \"\"}\n        aria-controls={open ? menuId : undefined}\n        aria-describedby={fieldDescribedById}\n        on:focus={() => {\n          if (isFluid) fieldFocused = true;\n        }}\n        on:blur={() => {\n          if (isFluid) fieldFocused = false;\n        }}\n        on:keydown={(event) => {\n        if (\n          event.key === \" \" ||\n          event.key === \"Enter\" ||\n          event.key === \"ArrowDown\" ||\n          event.key === \"ArrowUp\"\n        ) {\n          event.preventDefault();\n        }\n\n        if (readonly) return;\n\n        if (event.key === \"Enter\") {\n          selectHighlighted();\n        } else if (event.key === \"Tab\") {\n          open = false;\n        } else if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n          const step = event.key === \"ArrowDown\" ? 1 : -1;\n          if (event.altKey) {\n            // APG combobox pattern: Alt+ArrowDown opens a closed menu without\n            // moving the highlight; Alt+ArrowUp closes an open one.\n            if (event.key === \"ArrowDown\" && !open) {\n              open = true;\n            } else if (event.key === \"ArrowUp\" && open) {\n              // APG combobox: Alt+ArrowUp dismisses an open menu without\n              // selecting, so it shares the keyboard-dismissal trigger.\n              close(\"escape-key\");\n            }\n          } else if (open) {\n            change(step);\n          } else {\n            open = true;\n            // `afterUpdate` highlights any selected item only after the open\n            // state flushes; if nothing is highlighted by then, start at the\n            // first (ArrowDown) or last (ArrowUp) enabled item.\n            tick().then(() => {\n              if (highlightedIndex === -1) change(step);\n            });\n          }\n        } else if (event.key === \"Home\" || event.key === \"End\") {\n          // APG select-only combobox: Home/End open a closed listbox, then\n          // move the highlight to the first/last option, mirroring the\n          // open-and-move convention already used for the plain arrow keys.\n          event.preventDefault();\n          if (!open) open = true;\n          highlightedIndex = event.key === \"Home\" ? 0 : items.length - 1;\n          highlightOrigin = \"keyboard\";\n        } else if (event.key === \"Escape\") {\n          close(\"escape-key\");\n        } else if (\n          clearable &&\n          selectedId !== undefined &&\n          (event.key === \"Delete\" || event.key === \"Backspace\")\n        ) {\n          // Clear the selection from the keyboard, menu open or closed,\n          // matching the click-to-clear button. Only wired when `clearable`\n          // is set, since that is what makes clearing possible at all.\n          event.preventDefault();\n          clearSelection();\n        } else if (\n          open &&\n          event.key.length === 1 &&\n          event.key !== \" \" &&\n          !event.ctrlKey &&\n          !event.metaKey &&\n          !event.altKey\n        ) {\n          event.preventDefault();\n          typeaheadSearch(event.key);\n        }\n      }}\n        on:keyup={(event) => {\n        if (event.key === \" \") {\n          event.preventDefault();\n        } else {\n          return;\n        }\n        selectHighlighted();\n      }}\n        {disabled}\n        {id}\n      >\n        <span class:bx--list-box__label={true}>\n          {#if selectedItem}\n            {itemToString(selectedItem)}\n          {:else}\n            {label}\n          {/if}\n        </span>\n        {#if clearable && selectedId !== undefined}\n          <ListBoxSelection\n            on:clear\n            on:clear={clearSelection}\n            translateWithId={translateWithIdSelection}\n            {disabled}\n            {readonly}\n          />\n        {/if}\n        <ListBoxMenuIcon\n          on:click={(event) => {\n          event.stopPropagation();\n          if (disabled || readonly) return;\n          open = !open;\n        }}\n          {translateWithId}\n          {open}\n        />\n      </button>\n    </div>\n    {#if open}\n      <ListBoxMenu\n        aria-label={menuAriaLabel}\n        {id}\n        portal={effectivePortalMenu}\n        {open}\n        anchor={ref}\n        {direction}\n        {highlightedId}\n        highlightScroll={highlightOrigin !== \"pointer\"}\n        on:scroll\n        on:scroll={handleMenuScroll}\n        on:mouseleave={() => {\n          // Clear the hover highlight when the cursor leaves the menu so the\n          // highlighted state does not linger on the last hovered item.\n          highlightedIndex = -1;\n          highlightOrigin = null;\n        }}\n        bind:ref={listRef}\n        style={effectivePortalMenu\n          ? `max-height: ${virtualConfig\n              ? `${virtualConfig.containerHeight}px; overflow-y: auto`\n              : menuMaxHeight};`\n          : virtualConfig\n            ? `max-height: ${virtualConfig.containerHeight}px; overflow-y: auto;`\n            : undefined}\n      >\n        {#if virtualData?.isVirtualized}\n          <div style=\"height: {virtualData.totalHeight}px; position: relative;\">\n            <div style=\"transform: translateY({virtualData.offsetY}px);\">\n              {#each itemsToRender as item, index (item.id)}\n                {@const actualIndex = virtualData.startIndex + index}\n                {@const selected = selectedId === item.id}\n                {@const optionId = `${id}-${item.id}`}\n                <ListBoxMenuItem\n                  id={optionId}\n                  active={selectedId === item.id}\n                  disabled={item.disabled}\n                  hasLeftIcon={Boolean($$slots.icon || item.icon)}\n                  aria-setsize={items.length}\n                  aria-posinset={actualIndex + 1}\n                  on:click={(event) => {\n                    if (item.disabled) {\n                      event.stopPropagation();\n                      return;\n                    }\n                    selectedId = item.id;\n                    dispatchSelect();\n                    close(\"select\");\n                  }}\n                  on:mousedown={(event) => {\n                    // Keep focus on the field so screen readers don't\n                    // re-announce it on every option click.\n                    event.preventDefault();\n                  }}\n                  on:mouseenter={() => {\n                    if (item.disabled) return;\n                    highlightedIndex = actualIndex;\n                    highlightOrigin = \"pointer\";\n                  }}\n                >\n                  {#if $$slots.icon}\n                    <span\n                      class:bx--list-box__menu-item__icon={true}\n                      class:bx--list-box__menu-item__icon--left={true}\n                    >\n                      <HighlightSlot {optionId} let:highlighted>\n                        <slot\n                          name=\"icon\"\n                          {item}\n                          index={actualIndex}\n                          {selected}\n                          {highlighted}\n                        />\n                      </HighlightSlot>\n                    </span>\n                  {:else if item.icon}\n                    <span\n                      class:bx--list-box__menu-item__icon={true}\n                      class:bx--list-box__menu-item__icon--left={true}\n                    >\n                      <svelte:component this={item.icon} />\n                    </span>\n                  {/if}\n                  {#if $$slots.default}\n                    <HighlightSlot {optionId} let:highlighted>\n                      <slot\n                        {item}\n                        index={actualIndex}\n                        {selected}\n                        {highlighted}\n                      />\n                    </HighlightSlot>\n                  {:else}\n                    {itemToString(item)}\n                  {/if}\n                  {#if $$slots.iconRight}\n                    <span\n                      class:bx--list-box__menu-item__icon={true}\n                      class:bx--list-box__menu-item__icon--right={true}\n                    >\n                      <HighlightSlot {optionId} let:highlighted>\n                        <slot\n                          name=\"iconRight\"\n                          {item}\n                          index={actualIndex}\n                          {selected}\n                          {highlighted}\n                        />\n                      </HighlightSlot>\n                    </span>\n                  {:else if selected}\n                    <Checkmark class=\"bx--list-box__menu-item__selected-icon\" />\n                  {/if}\n                </ListBoxMenuItem>\n              {/each}\n            </div>\n          </div>\n        {:else}\n          {#each itemsToRender as item, index (item.id)}\n            {@const selected = selectedId === item.id}\n            {@const optionId = `${id}-${item.id}`}\n            <ListBoxMenuItem\n              id={optionId}\n              active={selectedId === item.id}\n              disabled={item.disabled}\n              hasLeftIcon={Boolean($$slots.icon || item.icon)}\n              on:click={(event) => {\n                if (item.disabled) {\n                  event.stopPropagation();\n                  return;\n                }\n                selectedId = item.id;\n                dispatchSelect();\n                close(\"select\");\n              }}\n              on:mousedown={(event) => {\n                // Keep focus on the field so screen readers don't\n                // re-announce it on every option click.\n                event.preventDefault();\n              }}\n              on:mouseenter={() => {\n                if (item.disabled) return;\n                highlightedIndex = index;\n                highlightOrigin = \"pointer\";\n              }}\n            >\n              {#if $$slots.icon}\n                <span\n                  class:bx--list-box__menu-item__icon={true}\n                  class:bx--list-box__menu-item__icon--left={true}\n                >\n                  <HighlightSlot {optionId} let:highlighted>\n                    <slot name=\"icon\" {item} {index} {selected} {highlighted} />\n                  </HighlightSlot>\n                </span>\n              {:else if item.icon}\n                <span\n                  class:bx--list-box__menu-item__icon={true}\n                  class:bx--list-box__menu-item__icon--left={true}\n                >\n                  <svelte:component this={item.icon} />\n                </span>\n              {/if}\n              {#if $$slots.default}\n                <HighlightSlot {optionId} let:highlighted>\n                  <slot {item} {index} {selected} {highlighted} />\n                </HighlightSlot>\n              {:else}\n                {itemToString(item)}\n              {/if}\n              {#if $$slots.iconRight}\n                <span\n                  class:bx--list-box__menu-item__icon={true}\n                  class:bx--list-box__menu-item__icon--right={true}\n                >\n                  <HighlightSlot {optionId} let:highlighted>\n                    <slot\n                      name=\"iconRight\"\n                      {item}\n                      {index}\n                      {selected}\n                      {highlighted}\n                    />\n                  </HighlightSlot>\n                </span>\n              {:else if selected}\n                <Checkmark class=\"bx--list-box__menu-item__selected-icon\" />\n              {/if}\n            </ListBoxMenuItem>\n          {/each}\n        {/if}\n      </ListBoxMenu>\n    {/if}\n  </ListBox>\n  {#if isFluid}\n    <hr class:bx--list-box__divider={true}>\n  {/if}\n  {#if showInvalid && invalidText}\n    <div id={errorId} class:bx--form-requirement={true}>{invalidText}</div>\n  {/if}\n  {#if showWarn && warnText}\n    <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n  {/if}\n  {#if !inline && !isFluid && !showInvalid && !showWarn && helperText}\n    <div\n      id={helperId}\n      class:bx--form__helper-text={true}\n      class:bx--form__helper-text--disabled={disabled}\n    >\n      {helperText}\n    </div>\n  {/if}\n  {#if hasSelectionDescription}\n    <span id={selectionId} class:bx--visually-hidden={true}\n      >{clearSelectionText}</span\n    >\n  {/if}\n  <!-- Live region for selection announcements. Always rendered (even while\n       empty) so assistive tech registers the region before its text changes. -->\n  <span role=\"status\" aria-live=\"polite\" class:bx--visually-hidden={true}\n    >{statusText}</span\n  >\n</div>\n","// @ts-check\n\n/**\n * JSON.parse the string; return it unchanged if parse fails.\n * @param {string} raw\n * @returns {any}\n */\nexport function parseStoredValue(raw) {\n  try {\n    return JSON.parse(raw);\n  } catch {\n    return raw;\n  }\n}\n\n/**\n * JSON.stringify objects (null included); String() for other values.\n * Same rules LocalStorage and SessionStorage used before this helper.\n * @param {any} value\n * @returns {string}\n */\nexport function serializeStoredValue(value) {\n  return typeof value === \"object\" ? JSON.stringify(value) : String(value);\n}\n\n/**\n * Use localStorage or sessionStorage without throwing. getItem is null when\n * there is no window, storage is blocked, or the read throws. setItem is\n * false when the write throws. removeItem and clear ignore errors.\n * @param {\"localStorage\" | \"sessionStorage\"} type\n */\nexport function safeBrowserStorage(type) {\n  function store() {\n    try {\n      if (typeof window === \"undefined\") return null;\n      return window[type] ?? null;\n    } catch {\n      return null; // reading window[type] can throw when storage is off\n    }\n  }\n\n  return {\n    /**\n     * @param {string} key\n     * @returns {string | null}\n     */\n    getItem(key) {\n      const s = store();\n      if (!s) return null;\n      try {\n        return s.getItem(key);\n      } catch {\n        return null;\n      }\n    },\n    /**\n     * @param {string} key\n     * @param {string} value\n     * @param {(error: unknown) => void} [onError]\n     * @returns {boolean}\n     */\n    setItem(key, value, onError) {\n      const s = store();\n      if (!s) return false;\n      try {\n        s.setItem(key, value);\n        return true;\n      } catch (error) {\n        onError?.(error);\n        return false;\n      }\n    },\n    /** @param {string} key */\n    removeItem(key) {\n      const s = store();\n      try {\n        s?.removeItem(key);\n      } catch {}\n    },\n    clear() {\n      const s = store();\n      try {\n        s?.clear();\n      } catch {}\n    },\n  };\n}\n","<script>\n  /**\n   * @template [T=any]\n   * @event {null} save\n   * @event update - Fires when the stored value changes, either from a bound value update or when localStorage is modified from another tab or window. Set `sync` to `\"off\"` to ignore updates from other tabs.\n   * @property {T} prevValue\n   * @property {T} value\n   * @event {{ error: unknown }} error - Fires when a write to localStorage fails (e.g. quota exceeded or access denied).\n   */\n\n  /**\n   * Specify the local storage key.\n   */\n  export let key = \"local-storage-key\";\n\n  /**\n   * Provide a value to persist.\n   * @type {T}\n   * @bindable writable\n   */\n  export let value = /** @type {T} */ (\"\");\n\n  /**\n   * `\"off\"` ignores storage events from other tabs or windows on the same\n   * origin. `\"on\"` (default) keeps the previous behavior.\n   * @type {\"on\" | \"off\"}\n   */\n  export let sync = \"on\";\n\n  /**\n   * Remove the persisted key value from the browser's local storage.\n   * Note: this only clears storage; the bound `value` is left untouched.\n   * If `value` mutates afterwards, it will be re-persisted. Reset `value`\n   * yourself if you want it cleared as well.\n   * @type {() => void}\n   * @example\n   * ```svelte\n   * <LocalStorage bind:this={storage} key=\"my-key\" bind:value={data} />\n   * <button on:click={() => { storage.clearItem(); data = \"\"; }}>Clear Item</button>\n   * ```\n   */\n  export function clearItem() {\n    storage.removeItem(key);\n  }\n\n  /**\n   * Clear all key values from the browser's local storage.\n   * Note: this only clears storage; the bound `value` is left untouched.\n   * If `value` mutates afterwards, it will be re-persisted. Reset `value`\n   * yourself if you want it cleared as well.\n   * @type {() => void}\n   * @example\n   * ```svelte\n   * <LocalStorage bind:this={storage} key=\"my-key\" bind:value={data} />\n   * <button on:click={() => { storage.clearAll(); data = \"\"; }}>Clear All Storage</button>\n   * ```\n   */\n  export function clearAll() {\n    storage.clear();\n  }\n\n  import { createEventDispatcher, onMount, tick } from \"svelte\";\n  import {\n    parseStoredValue,\n    safeBrowserStorage,\n    serializeStoredValue,\n  } from \"../utils/storage.js\";\n\n  const dispatch = createEventDispatcher();\n  const storage = safeBrowserStorage(\"localStorage\");\n\n  // Change detection compares the serialized form (what actually lands in\n  // storage) rather than the raw `value` reference. This persists in-place\n  // mutations signalled via the Svelte `value = value` idiom — a referential\n  // `prevValue !== value` check cannot, since `prevValue` would alias `value` —\n  // and skips redundant writes when a new reference serializes identically.\n  let prevSerialized = serializeStoredValue(value);\n  let prevKey = key;\n  let mounted = false;\n\n  /** @param {string} [serialized] */\n  function setItem(serialized = serializeStoredValue(value)) {\n    storage.setItem(key, serialized, (error) => {\n      dispatch(\"error\", { error });\n    });\n  }\n\n  function handleStorageChange(event) {\n    if (event.key !== key) return;\n\n    const prevValue = parseStoredValue(prevSerialized);\n\n    if (event.newValue === null) {\n      // Another tab removed the key (or called clear()).\n      // Reset so the next local mutation does not re-persist stale state.\n      value = /** @type {T} */ (undefined);\n      prevSerialized = serializeStoredValue(value);\n    } else {\n      value = parseStoredValue(event.newValue);\n      prevSerialized = event.newValue;\n    }\n\n    dispatch(\"update\", { prevValue, value });\n  }\n\n  onMount(() => {\n    const item = storage.getItem(key);\n\n    if (item == null) {\n      setItem();\n      dispatch(\"save\");\n    } else {\n      value = parseStoredValue(item);\n    }\n\n    prevSerialized = serializeStoredValue(value);\n    mounted = true;\n\n    return () => {\n      window.removeEventListener(\"storage\", handleStorageChange);\n    };\n  });\n\n  // Attach storage listener when sync is on. Re-run when sync changes.\n  $: if (mounted) {\n    window.removeEventListener(\"storage\", handleStorageChange);\n\n    if (sync === \"on\") {\n      window.addEventListener(\"storage\", handleStorageChange);\n    }\n  }\n\n  $: if (mounted && key !== prevKey) {\n    const item = storage.getItem(key);\n\n    if (item == null) {\n      setItem();\n    } else {\n      value = parseStoredValue(item);\n    }\n\n    prevKey = key;\n    prevSerialized = serializeStoredValue(value);\n  }\n\n  $: if (mounted) {\n    const serialized = serializeStoredValue(value);\n\n    if (serialized !== prevSerialized) {\n      const prevValue = parseStoredValue(prevSerialized);\n      const nextValue = value;\n      // Write storage and prevSerialized first. Defer update with tick(); a\n      // synchronous dispatch that throws can abort the flush and block later writes.\n      setItem(serialized);\n      prevSerialized = serialized;\n      tick().then(() => dispatch(\"update\", { prevValue, value: nextValue }));\n    }\n  }\n</script>\n","<script>\n  /**\n   * @template {string | number} [Value=string | number]\n   * @event {Value} update The selected value.\n   */\n\n  /**\n   * Specify the selected item value.\n   * @type {Value | undefined}\n   * @bindable writable\n   */\n  export let selected = undefined;\n\n  /**\n   * Set the size of the select input.\n   * @type {\"xs\" | \"sm\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /** Set to `true` to use the inline variant */\n  export let inline = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the select element */\n  export let disabled = false;\n\n  /** Set an id for the select element */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for the select element.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Set to `true` to not render a label */\n  export let noLabel = false;\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /**\n   * Obtain a reference to the select HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /** Set to `true` to mark the field as required */\n  export let required = false;\n\n  /** Set to `true` for the select to be read-only */\n  export let readonly = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   * Cannot be combined with the inline variant.\n   */\n  export let fluid = false;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    setContext,\n    tick,\n  } from \"svelte\";\n  import { writable } from \"svelte/store\";\n  import ChevronDown from \"../icons/ChevronDown.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n  const formContext = getContext(\"carbon:Form\");\n  /**\n   * @type {import(\"svelte/store\").Writable<string | number | undefined>}\n   */\n  const selectedValue = writable(selected);\n  const defaultSelectId = writable(null);\n  const defaultValue = writable(null);\n  const itemTypesByValue = writable({});\n\n  /**\n   * Use the first `SelectItem` value as the\n   * default value if `selected` is `undefined`.\n   * @type {(id: string, value: string | number) => void}\n   */\n  function setDefaultValue(id, value) {\n    if ($defaultValue === null) {\n      defaultSelectId.set(id);\n      defaultValue.set(value);\n    } else {\n      if ($defaultSelectId === id) {\n        selectedValue.set(value);\n      }\n    }\n\n    itemTypesByValue.update((types) => ({\n      ...types,\n      [value]: typeof value,\n    }));\n  }\n\n  setContext(\"carbon:Select\", {\n    selectedValue,\n    setDefaultValue,\n    syncNativeSelectValue,\n  });\n\n  function handleChange(event) {\n    let value = event.target.value;\n\n    if ($itemTypesByValue[value] === \"number\") {\n      value = Number(value);\n    }\n\n    selectedValue.set(value);\n  }\n\n  const selectReadOnlyKeys = [\"ArrowDown\", \"ArrowUp\", \" \"];\n\n  /** @type {(e: MouseEvent) => void} */\n  function onMouseDown(event) {\n    if (readonly) {\n      event.preventDefault();\n      event.currentTarget.focus();\n    }\n  }\n\n  /** @type {(e: KeyboardEvent) => void} */\n  function onKeyDown(event) {\n    if (readonly && selectReadOnlyKeys.includes(event.key)) {\n      event.preventDefault();\n    }\n  }\n\n  let prevSelected = null;\n\n  afterUpdate(() => {\n    if (selected !== $selectedValue) {\n      const isInitialRender = prevSelected === null;\n      selected = $selectedValue;\n      if (!isInitialRender) {\n        dispatch(\"update\", $selectedValue);\n      }\n    }\n\n    prevSelected = selected;\n  });\n\n  // Options mounted after selected is set do not update the native value.\n  // selectedIndex -1 comes back as value \"\", indistinguishable from an\n  // empty-valued option being selected, so it must be re-asserted explicitly.\n  function syncNativeSelectValue() {\n    tick().then(() => {\n      if (!ref) return;\n      const nextValue = $selectedValue == null ? \"\" : String($selectedValue);\n      if (ref.selectedIndex === -1 || ref.value !== nextValue) {\n        ref.value = nextValue;\n      }\n    });\n  }\n\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: helperId = `helper-${id}`;\n  $: {\n    selectedValue.set(selected ?? $defaultValue);\n    syncNativeSelectValue();\n  }\n  // Invalid/warn states are suppressed when the select is disabled or read-only.\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: isFluid = !inline && (fluid || !!formContext?.isFluid);\n</script>\n\n<div class:bx--form-item={true} class:bx--select--fluid={isFluid}>\n  <div\n    class:bx--select={true}\n    class:bx--select--inline={inline}\n    class:bx--select--light={light}\n    class:bx--select--invalid={showInvalid}\n    class:bx--select--disabled={disabled}\n    class:bx--select--warning={showWarn}\n    class:bx--select--readonly={readonly}\n  >\n    {#if !noLabel && (labelText || $$slots.labelChildren)}\n      <label\n        for={id}\n        class:bx--label={true}\n        class:bx--visually-hidden={hideLabel}\n        class:bx--label--disabled={disabled}\n        class:bx--label--slotted={isFluid && $$slots.labelChildren}\n      >\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </label>\n    {/if}\n    {#if inline}\n      <div class:bx--select-input--inline__wrapper={true}>\n        <div\n          class:bx--select-input__wrapper={true}\n          data-invalid={showInvalid || undefined}\n        >\n          <select\n            bind:this={ref}\n            aria-describedby={showInvalid\n              ? errorId\n              : showWarn\n                ? warnId\n                : helperText\n                  ? helperId\n                  : undefined}\n            aria-invalid={showInvalid || undefined}\n            aria-readonly={readonly || undefined}\n            disabled={disabled || undefined}\n            required={required || undefined}\n            {id}\n            {name}\n            class:bx--select-input={true}\n            class:bx--select-input--xs={size === \"xs\"}\n            class:bx--select-input--sm={size === \"sm\"}\n            class:bx--select-input--xl={size === \"xl\"}\n            {...$$restProps}\n            on:change={handleChange}\n            on:change\n            on:input\n            on:focus\n            on:blur\n            on:mousedown={onMouseDown}\n            on:keydown={onKeyDown}\n          >\n            <slot />\n          </select>\n          <ChevronDown class=\"bx--select__arrow\" />\n          {#if showInvalid}\n            <WarningFilled class=\"bx--select__invalid-icon\" />\n          {/if}\n          {#if showWarn}\n            <WarningAltFilled\n              class=\"bx--select__invalid-icon bx--select__invalid-icon--warning\"\n            />\n          {/if}\n        </div>\n        {#if showInvalid}\n          <div class:bx--form-requirement={true} id={errorId}>\n            {invalidText}\n          </div>\n        {/if}\n        {#if showWarn}\n          <div class:bx--form-requirement={true} id={warnId}>\n            {warnText}\n          </div>\n        {/if}\n      </div>\n      {#if helperText && !showInvalid && !showWarn}\n        <div\n          id={helperId}\n          class:bx--form__helper-text={true}\n          class:bx--form__helper-text--disabled={disabled}\n        >\n          {helperText}\n        </div>\n      {/if}\n    {/if}\n    {#if !inline}\n      <div\n        class:bx--select-input__wrapper={true}\n        data-invalid={showInvalid || undefined}\n      >\n        <select\n          bind:this={ref}\n          {id}\n          {name}\n          aria-describedby={showInvalid\n            ? errorId\n            : showWarn\n              ? warnId\n              : helperText && !isFluid\n                ? helperId\n                : undefined}\n          disabled={disabled || undefined}\n          required={required || undefined}\n          aria-invalid={showInvalid || undefined}\n          aria-readonly={readonly || undefined}\n          class:bx--select-input={true}\n          class:bx--select-input--xs={size === \"xs\"}\n          class:bx--select-input--sm={size === \"sm\"}\n          class:bx--select-input--xl={size === \"xl\"}\n          {...$$restProps}\n          on:change={handleChange}\n          on:change\n          on:input\n          on:focus\n          on:blur\n          on:mousedown={onMouseDown}\n          on:keydown={onKeyDown}\n        >\n          <slot />\n        </select>\n        <ChevronDown class=\"bx--select__arrow\" />\n        {#if showInvalid}\n          <WarningFilled class=\"bx--select__invalid-icon\" />\n        {/if}\n        {#if showWarn}\n          <WarningAltFilled\n            class=\"bx--select__invalid-icon bx--select__invalid-icon--warning\"\n          />\n        {/if}\n        {#if isFluid}\n          <hr class:bx--select__divider={true}>\n          {#if showInvalid}\n            <div id={errorId} class:bx--form-requirement={true}>\n              {invalidText}\n            </div>\n          {/if}\n          {#if showWarn}\n            <div id={warnId} class:bx--form-requirement={true}>\n              {warnText}\n            </div>\n          {/if}\n        {/if}\n      </div>\n      {#if !isFluid && helperText && !showInvalid && !showWarn}\n        <div\n          id={helperId}\n          class:bx--form__helper-text={true}\n          class:bx--form__helper-text--disabled={disabled}\n        >\n          {helperText}\n        </div>\n      {/if}\n      {#if !isFluid && showInvalid}\n        <div id={errorId} class:bx--form-requirement={true}>{invalidText}</div>\n      {/if}\n      {#if !isFluid && showWarn}\n        <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n      {/if}\n    {/if}\n  </div>\n</div>\n","<script>\n  /**\n   * @template {string | number} [Value=string | number]\n   */\n\n  /**\n   * Specify the option value.\n   * @type {Value}\n   */\n  export let value = \"\";\n\n  /**\n   * Specify the option text.\n   * If not specified, the value will be used as the text.\n   * @type {string}\n   */\n  export let text = undefined;\n\n  /** Set to `true` to hide the option */\n  export let hidden = false;\n\n  /** Set to `true` to disable the option */\n  export let disabled = false;\n\n  let className = undefined;\n\n  /**\n   * Specify the class of the `option` element.\n   * @type {string}\n   */\n  export { className as class };\n\n  /**\n   * Specify the style of the `option` element.\n   * @type {string}\n   */\n  export let style = undefined;\n\n  import { getContext, onMount } from \"svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const id = uniqueId();\n  const ctx =\n    getContext(\"carbon:Select\") || getContext(\"carbon:TimePickerSelect\");\n\n  $: {\n    ctx?.setDefaultValue?.(id, value);\n    ctx?.syncNativeSelectValue?.();\n  }\n\n  let selected = false;\n\n  const unsubscribe = ctx.selectedValue.subscribe((currentValue) => {\n    selected = currentValue === value;\n  });\n\n  onMount(() => {\n    return () => {\n      unsubscribe();\n      ctx?.syncNativeSelectValue?.();\n    };\n  });\n</script>\n\n<option\n  {value}\n  {disabled}\n  {hidden}\n  {selected}\n  class:bx--select-option={true}\n  class={className}\n  {style}\n>\n  {text ?? value}\n</option>\n","<script>\n  /**\n   * @event {{ toggled: boolean; }} toggle\n   */\n\n  /**\n   * Specify the toggle size.\n   * @type {\"default\" | \"sm\"}\n   */\n  export let size = \"default\";\n\n  /**\n   * Set to `true` to toggle the checkbox input.\n   * @bindable writable\n   */\n  export let toggled = false;\n\n  /** Set to `true` to disable checkbox input */\n  export let disabled = false;\n\n  /** Specify the label for the untoggled state */\n  export let labelA = \"Off\";\n\n  /** Specify the label for the toggled state */\n  export let labelB = \"On\";\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /**\n   * Specify a name attribute for the checkbox input.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher } from \"svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--form-item={true}\n  class:bx--toggle--readonly={readonly}\n  style:user-select=\"none\"\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <!-- svelte-ignore a11y-role-has-required-aria-props -->\n  <input\n    bind:this={ref}\n    role=\"switch\"\n    type=\"checkbox\"\n    class:bx--toggle-input={true}\n    class:bx--toggle-input--small={size === \"sm\"}\n    checked={toggled}\n    aria-disabled={readonly || undefined}\n    aria-readonly={readonly || undefined}\n    on:click={(event) => {\n      if (readonly) event.preventDefault();\n    }}\n    on:change={() => {\n      if (readonly) return;\n      toggled = !toggled;\n      dispatch(\"toggle\", { toggled });\n    }}\n    on:change\n    on:keydown={(event) => {\n      if (event.key === \"Enter\") {\n        event.preventDefault();\n        if (!readonly) ref?.click();\n      }\n    }}\n    on:keyup\n    on:focus\n    on:blur\n    {disabled}\n    {id}\n    {name}\n  >\n  <label\n    aria-label={labelText ? undefined : $$props[\"aria-label\"] ?? \"Toggle\"}\n    for={id}\n    class:bx--toggle-input__label={true}\n  >\n    {#if labelText || $$slots.labelChildren}\n      <span class:bx--visually-hidden={hideLabel}>\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </span>\n    {/if}\n    <span\n      class:bx--toggle__switch={true}\n      style:margin-top={hideLabel ? 0 : undefined}\n    >\n      <span aria-hidden=\"true\" class:bx--toggle__text--off={true}>\n        <slot name=\"labelA\"> {labelA} </slot>\n      </span>\n      <span aria-hidden=\"true\" class:bx--toggle__text--on={true}>\n        <slot name=\"labelB\"> {labelB} </slot>\n      </span>\n    </span>\n  </label>\n</div>\n","<script context=\"module\">\n  /** @type {Record<CarbonTheme, string>} */\n  export const themes = {\n    white: \"White\",\n    g10: \"Gray 10\",\n    g80: \"Gray 80\",\n    g90: \"Gray 90\",\n    g100: \"Gray 100\",\n  };\n</script>\n\n<script>\n  /**\n   * Dynamic, client-side theming using CSS variables.\n   * Only works with `carbon-components-svelte/css/all.css`.\n   */\n\n  /**\n   * @template [Tokens=Record<string, any>]\n   */\n\n  /**\n   * @typedef {\"white\" | \"g10\" | \"g80\" | \"g90\" | \"g100\"} CarbonTheme\n   * @event update\n   * @type {object}\n   * @property {CarbonTheme} theme\n   * @slot {{ theme: CarbonTheme; }}\n   */\n\n  /**\n   * Set the current Carbon theme.\n   * @type {CarbonTheme}\n   * @bindable writable\n   */\n  export let theme = \"white\";\n\n  /**\n   * Customize a theme with your own tokens.\n   * @see https://carbondesignsystem.com/elements/themes/overview/#customizing-a-theme\n   * @type {Tokens}\n   */\n  export let tokens = /** @type {Tokens} */ ({});\n\n  /** Set to `true` to persist the theme using window.localStorage */\n  export let persist = false;\n\n  /** Specify the local storage key */\n  export let persistKey = \"theme\";\n\n  /**\n   * Render a toggle, select, or dropdown to control the theme.\n   * @type {\"toggle\" | \"select\" | \"dropdown\"}\n   */\n  export let render = undefined;\n\n  /**\n   * Override the default toggle props.\n   * @type {import(\"../Toggle/Toggle.svelte\").ToggleProps & { themes?: [labelA: CarbonTheme, labelB: CarbonTheme]; }}\n   */\n  export let toggle = {\n    themes: [\"white\", \"g100\"],\n    labelA: \"\",\n    labelB: \"\",\n    labelText: \"Dark mode\",\n    hideLabel: false,\n  };\n\n  /** @type {CarbonTheme} */\n  const themeKeys = Object.keys(themes);\n\n  /**\n   * Override the default select props.\n   * @type {import(\"../Select/Select.svelte\").SelectProps<CarbonTheme> & { themes?: CarbonTheme[]; }}\n   */\n  export let select = {\n    themes: themeKeys,\n    labelText: \"Themes\",\n    hideLabel: false,\n  };\n\n  /**\n   * Override the default dropdown props.\n   * @type {Omit<import(\"../Dropdown/Dropdown.svelte\").DropdownProps, \"items\" | \"selectedId\"> & { themes?: CarbonTheme[]; }}\n   */\n  export let dropdown = {\n    themes: themeKeys,\n    labelText: \"Themes\",\n    hideLabel: false,\n  };\n\n  import { createEventDispatcher, onMount } from \"svelte\";\n  import Dropdown from \"../Dropdown/Dropdown.svelte\";\n  import LocalStorage from \"../LocalStorage/LocalStorage.svelte\";\n  import Select from \"../Select/Select.svelte\";\n  import SelectItem from \"../Select/SelectItem.svelte\";\n  import Toggle from \"../Toggle/Toggle.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  let prevTheme = theme;\n  let mounted = false;\n\n  onMount(() => {\n    prevTheme = theme;\n    mounted = true;\n  });\n\n  // Apply theme before dispatching update. Reactive blocks run in source order,\n  // and a throwing on:update handler aborts the rest of the flush.\n  $: if (typeof window !== \"undefined\") {\n    for (const [token, value] of Object.entries(tokens)) {\n      document.documentElement.style.setProperty(`--cds-${token}`, value);\n    }\n\n    if (theme in themes) {\n      document.documentElement.setAttribute(\"theme\", theme);\n      document.documentElement.style.setProperty(\n        \"color-scheme\",\n        theme === \"white\" || theme === \"g10\" ? \"light\" : \"dark\",\n      );\n    } else {\n      console.warn(\n        `[Theme.svelte] invalid theme \"${theme}\". Value must be one of: ${JSON.stringify(\n          Object.keys(themes),\n        )}`,\n      );\n    }\n  }\n\n  $: if (mounted && theme !== prevTheme) {\n    prevTheme = theme;\n    dispatch(\"update\", { theme });\n  }\n</script>\n\n{#if persist}\n  <LocalStorage bind:value={theme} key={persistKey} />\n{/if}\n\n{#if render === \"toggle\"}\n  {@const { themes: toggleThemes, ...toggleProps } = toggle}\n  <Toggle\n    {...toggleProps}\n    toggled={theme === toggleThemes[1]}\n    on:toggle={(event) => {\n      theme = event.detail.toggled ? toggleThemes[1] : toggleThemes[0];\n    }}\n  />\n{:else if render === \"select\"}\n  {@const { themes: selectThemes, ...selectProps } = select}\n  <Select {...selectProps} bind:selected={theme}>\n    {#each selectThemes as theme (theme)}\n      <SelectItem value={theme} text={themes[theme]} />\n    {/each}\n  </Select>\n{:else if render === \"dropdown\"}\n  {@const { themes: dropdownThemes, ...dropdownProps } = dropdown}\n  <Dropdown\n    {...dropdownProps}\n    items={dropdownThemes.map((t) => ({ id: t, text: themes[t] }))}\n    selectedId={theme}\n    on:select={(event) => {\n      theme = event.detail.selectedId;\n    }}\n  />\n{/if}\n\n<slot {theme} />\n","<script>\n  /**\n   * @event close\n   * @property {boolean} timeout\n   */\n\n  /**\n   * Specify the kind of notification.\n   * @type {\"error\" | \"info\" | \"info-square\" | \"success\" | \"warning\" | \"warning-alt\"}\n   */\n  export let kind = \"error\";\n\n  /** Set to `true` to use the low contrast variant */\n  export let lowContrast = false;\n\n  /** Set the timeout duration (ms) to hide the notification after opening it */\n  export let timeout = 0;\n\n  /** Set to `true` to pause the auto-dismiss timeout while the pointer is over the notification. */\n  export let pauseOnHover = false;\n\n  /**\n   * Specify the ARIA `role` for the notification container.\n   * @type {\"alert\" | \"log\" | \"status\"}\n   */\n  export let role = \"alert\";\n\n  /** Specify the title text */\n  export let title = \"\";\n\n  /** Specify the subtitle text */\n  export let subtitle = \"\";\n\n  /** Specify the caption text */\n  export let caption = \"\";\n\n  /** Specify the ARIA label for the close button */\n  export let closeButtonDescription = \"Close notification\";\n\n  /** Set to `true` to hide the close button */\n  export let hideCloseButton = false;\n\n  /**\n   * Set to `true` for the notification to span\n   * the full width of its containing element.\n   */\n  export let fullWidth = false;\n\n  /**\n   * Set to `true` to show the notification, `false` to hide it.\n   * @bindable writable\n   */\n  export let open = true;\n\n  import { createEventDispatcher, onMount } from \"svelte\";\n  import { createTimeoutDismiss } from \"../utils/timeoutDismiss.js\";\n  import NotificationButton from \"./NotificationButton.svelte\";\n  import NotificationIcon from \"./NotificationIcon.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  const dismiss = createTimeoutDismiss();\n\n  function close(closeFromTimeout) {\n    dismiss.clear();\n\n    const shouldContinue = dispatch(\n      \"close\",\n      { timeout: closeFromTimeout === true },\n      { cancelable: true },\n    );\n    if (shouldContinue) {\n      open = false;\n    }\n  }\n\n  function onMouseEnter() {\n    if (pauseOnHover) dismiss.pause();\n  }\n\n  function onMouseLeave() {\n    if (pauseOnHover) dismiss.resume();\n  }\n\n  $: dismiss.sync(open, timeout, () => close(true));\n\n  onMount(() => () => dismiss.clear());\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n{#if open}\n  <div\n    {role}\n    class:bx--toast-notification={true}\n    class:bx--toast-notification--low-contrast={lowContrast}\n    class:bx--toast-notification--error={kind === \"error\"}\n    class:bx--toast-notification--info={kind === \"info\"}\n    class:bx--toast-notification--info-square={kind === \"info-square\"}\n    class:bx--toast-notification--success={kind === \"success\"}\n    class:bx--toast-notification--warning={kind === \"warning\"}\n    class:bx--toast-notification--warning-alt={kind === \"warning-alt\"}\n    style:width={fullWidth ? \"100%\" : undefined}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseenter={onMouseEnter}\n    on:mouseleave\n    on:mouseleave={onMouseLeave}\n  >\n    <NotificationIcon {kind} />\n    <div class:bx--toast-notification__details={true}>\n      <h3 class:bx--toast-notification__title={true}>\n        <slot name=\"titleChildren\">{title}</slot>\n      </h3>\n      {#if subtitle || $$slots.subtitleChildren}\n        <div class:bx--toast-notification__subtitle={true}>\n          <slot name=\"subtitleChildren\">{subtitle}</slot>\n        </div>\n      {/if}\n      {#if caption || $$slots.captionChildren}\n        <div class:bx--toast-notification__caption={true}>\n          <slot name=\"captionChildren\">{caption}</slot>\n        </div>\n      {/if}\n      <slot />\n    </div>\n    {#if !hideCloseButton}\n      <NotificationButton\n        iconDescription={closeButtonDescription}\n        on:click={close}\n      />\n    {/if}\n  </div>\n{/if}\n","/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\n\n/**\n * Returns value as is.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function linear(t) {\n\treturn t;\n}\n\n/**\n * Rebound effect on start and end of value range.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function backInOut(t) {\n\tconst s = 1.70158 * 1.525;\n\tif ((t *= 2) < 1) return 0.5 * (t * t * ((s + 1) * t - s));\n\treturn 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\n\n/**\n * Rebound effect on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function backIn(t) {\n\tconst s = 1.70158;\n\treturn t * t * ((s + 1) * t - s);\n}\n\n/**\n * Rebound effect on end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function backOut(t) {\n\tconst s = 1.70158;\n\treturn --t * t * ((s + 1) * t + s) + 1;\n}\n\n/**\n * Bounce effect on end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function bounceOut(t) {\n\tconst a = 4.0 / 11.0;\n\tconst b = 8.0 / 11.0;\n\tconst c = 9.0 / 10.0;\n\tconst ca = 4356.0 / 361.0;\n\tconst cb = 35442.0 / 1805.0;\n\tconst cc = 16061.0 / 1805.0;\n\tconst t2 = t * t;\n\treturn t < a\n\t\t? 7.5625 * t2\n\t\t: t < b\n\t\t\t? 9.075 * t2 - 9.9 * t + 3.4\n\t\t\t: t < c\n\t\t\t\t? ca * t2 - cb * t + cc\n\t\t\t\t: 10.8 * t * t - 20.52 * t + 10.72;\n}\n\n/**\n * Bounce effect on start and end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function bounceInOut(t) {\n\treturn t < 0.5 ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0)) : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\n\n/**\n * Bounce effect on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function bounceIn(t) {\n\treturn 1.0 - bounceOut(1.0 - t);\n}\n\n/**\n * Circular effect, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function circInOut(t) {\n\tif ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1);\n\treturn 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\n\n/**\n * Circular effect, accelerate on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function circIn(t) {\n\treturn 1.0 - Math.sqrt(1.0 - t * t);\n}\n\n/**\n * Circular effect, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function circOut(t) {\n\treturn Math.sqrt(1 - --t * t);\n}\n\n/**\n * Cubic scaling, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function cubicInOut(t) {\n\treturn t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\n\n/**\n * Cubic scaling, accelerate on start\n *\n * @param {number} t\n * @returns {number}\n */\nexport function cubicIn(t) {\n\treturn t * t * t;\n}\n\n/**\n * Cubic scaling, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function cubicOut(t) {\n\tconst f = t - 1.0;\n\treturn f * f * f + 1.0;\n}\n\n/**\n * Elastic effect on start and end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function elasticInOut(t) {\n\treturn t < 0.5\n\t\t? 0.5 * Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) * Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n\t\t: 0.5 *\n\t\t\t\tMath.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n\t\t\t\tMath.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n\t\t\t\t1.0;\n}\n\n/**\n * Elastic effect on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function elasticIn(t) {\n\treturn Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\n\n/**\n * Elastic effect on end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function elasticOut(t) {\n\treturn Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0;\n}\n\n/**\n * Exponential effect on start and end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function expoInOut(t) {\n\treturn t === 0.0 || t === 1.0\n\t\t? t\n\t\t: t < 0.5\n\t\t\t? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n\t\t\t: -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\n\n/**\n * Exponential effect on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function expoIn(t) {\n\treturn t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\n\n/**\n * Exponential effect on end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function expoOut(t) {\n\treturn t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\n\n/**\n * Quadratic scaling, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quadInOut(t) {\n\tt /= 0.5;\n\tif (t < 1) return 0.5 * t * t;\n\tt--;\n\treturn -0.5 * (t * (t - 2) - 1);\n}\n\n/**\n * Quadratic scaling, accelerate on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quadIn(t) {\n\treturn t * t;\n}\n\n/**\n * Quadratic scaling, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quadOut(t) {\n\treturn -t * (t - 2.0);\n}\n\n/**\n * Quartic scaling, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quartInOut(t) {\n\treturn t < 0.5 ? +8.0 * Math.pow(t, 4.0) : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\n\n/**\n * Quartic scaling, accelerate on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quartIn(t) {\n\treturn Math.pow(t, 4.0);\n}\n\n/**\n * Quartic scaling, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quartOut(t) {\n\treturn Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\n\n/**\n * Quintic scaling, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quintInOut(t) {\n\tif ((t *= 2) < 1) return 0.5 * t * t * t * t * t;\n\treturn 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\n\n/**\n * Quintic scaling, accelerate on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quintIn(t) {\n\treturn t * t * t * t * t;\n}\n\n/**\n * Quintic scaling, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function quintOut(t) {\n\treturn --t * t * t * t * t + 1;\n}\n\n/**\n * Sinusoidal effect, accelerate on start, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function sineInOut(t) {\n\treturn -0.5 * (Math.cos(Math.PI * t) - 1);\n}\n\n/**\n * Sinusoidal effect, accelerate on start.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function sineIn(t) {\n\tconst v = Math.cos(t * Math.PI * 0.5);\n\tif (Math.abs(v) < 1e-14) return 1;\n\telse return 1 - v;\n}\n\n/**\n * Sinusoidal effect, decelerate towards end.\n *\n * @param {number} t\n * @returns {number}\n */\nexport function sineOut(t) {\n\treturn Math.sin((t * Math.PI) / 2);\n}\n","/** @import { BlurParams, CrossfadeParams, DrawParams, FadeParams, FlyParams, ScaleParams, SlideParams, TransitionConfig } from './public' */\n\nimport { DEV } from 'esm-env';\nimport * as w from '../internal/client/warnings.js';\n\n/** @param {number} x */\nconst linear = (x) => x;\n\n/** @param {number} t */\nfunction cubic_out(t) {\n\tconst f = t - 1.0;\n\treturn f * f * f + 1.0;\n}\n\n/**\n * @param {number} t\n * @returns {number}\n */\nfunction cubic_in_out(t) {\n\treturn t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\n\n/** @param {number | string} value\n * @returns {[number, string]}\n */\nfunction split_css_unit(value) {\n\tconst split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n\treturn split ? [parseFloat(split[1]), split[2] || 'px'] : [/** @type {number} */ (value), 'px'];\n}\n\n/**\n * Omits unresolved dimensions rather than passing invalid values to Web Animations.\n *\n * @param {string} property\n * @param {number} value\n * @param {number} t\n */\nfunction css_dimension(property, value, t) {\n\treturn Number.isNaN(value) ? '' : `${property}: ${t * value}px;`;\n}\n\n/**\n * Animates a `blur` filter alongside an element's opacity.\n *\n * @param {Element} node\n * @param {BlurParams} [params]\n * @returns {TransitionConfig}\n */\nexport function blur(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_in_out, amount = 5, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst f = style.filter === 'none' ? '' : style.filter;\n\tconst od = target_opacity * (1 - opacity);\n\tconst [value, unit] = split_css_unit(amount);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_t, u) => `opacity: ${target_opacity - od * u}; filter: ${f} blur(${u * value}${unit});`\n\t};\n}\n\n/**\n * Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions.\n *\n * @param {Element} node\n * @param {FadeParams} [params]\n * @returns {TransitionConfig}\n */\nexport function fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n\tconst o = +getComputedStyle(node).opacity;\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t) => `opacity: ${t * o}`\n\t};\n}\n\n/**\n * Animates the x and y positions and the opacity of an element. `in` transitions animate from the provided values, passed as parameters to the element's default values. `out` transitions animate from the element's default values to the provided values.\n *\n * @param {Element} node\n * @param {FlyParams} [params]\n * @returns {TransitionConfig}\n */\nexport function fly(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_out, x = 0, y = 0, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst transform = style.transform === 'none' ? '' : style.transform;\n\tconst od = target_opacity * (1 - opacity);\n\tconst [x_value, x_unit] = split_css_unit(x);\n\tconst [y_value, y_unit] = split_css_unit(y);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});\n\t\t\topacity: ${target_opacity - od * u}`\n\t};\n}\n\nvar slide_warning = false;\n\n/**\n * Slides an element in and out.\n *\n * @param {Element} node\n * @param {SlideParams} [params]\n * @returns {TransitionConfig}\n */\nexport function slide(node, { delay = 0, duration = 400, easing = cubic_out, axis = 'y' } = {}) {\n\tconst style = getComputedStyle(node);\n\n\tif (DEV && !slide_warning && /(contents|inline|table)/.test(style.display)) {\n\t\tslide_warning = true;\n\t\tPromise.resolve().then(() => (slide_warning = false));\n\t\tw.transition_slide_display(style.display);\n\t}\n\n\tconst opacity = +style.opacity;\n\tconst primary_property = axis === 'y' ? 'height' : 'width';\n\tconst primary_property_value = parseFloat(style[primary_property]);\n\tconst secondary_properties = axis === 'y' ? ['top', 'bottom'] : ['left', 'right'];\n\tconst capitalized_secondary_properties = secondary_properties.map(\n\t\t(e) => /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */ (`${e[0].toUpperCase()}${e.slice(1)}`)\n\t);\n\tconst padding_start_value = parseFloat(style[`padding${capitalized_secondary_properties[0]}`]);\n\tconst padding_end_value = parseFloat(style[`padding${capitalized_secondary_properties[1]}`]);\n\tconst margin_start_value = parseFloat(style[`margin${capitalized_secondary_properties[0]}`]);\n\tconst margin_end_value = parseFloat(style[`margin${capitalized_secondary_properties[1]}`]);\n\tconst border_width_start_value = parseFloat(\n\t\tstyle[`border${capitalized_secondary_properties[0]}Width`]\n\t);\n\tconst border_width_end_value = parseFloat(\n\t\tstyle[`border${capitalized_secondary_properties[1]}Width`]\n\t);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (t) =>\n\t\t\t'overflow: hidden;' +\n\t\t\t`opacity: ${Math.min(t * 20, 1) * opacity};` +\n\t\t\tcss_dimension(primary_property, primary_property_value, t) +\n\t\t\tcss_dimension(`padding-${secondary_properties[0]}`, padding_start_value, t) +\n\t\t\tcss_dimension(`padding-${secondary_properties[1]}`, padding_end_value, t) +\n\t\t\tcss_dimension(`margin-${secondary_properties[0]}`, margin_start_value, t) +\n\t\t\tcss_dimension(`margin-${secondary_properties[1]}`, margin_end_value, t) +\n\t\t\tcss_dimension(`border-${secondary_properties[0]}-width`, border_width_start_value, t) +\n\t\t\tcss_dimension(`border-${secondary_properties[1]}-width`, border_width_end_value, t) +\n\t\t\t`min-${primary_property}: 0`\n\t};\n}\n\n/**\n * Animates the opacity and scale of an element. `in` transitions animate from the provided values, passed as parameters, to an element's current (default) values. `out` transitions animate from an element's default values to the provided values.\n *\n * @param {Element} node\n * @param {ScaleParams} [params]\n * @returns {TransitionConfig}\n */\nexport function scale(\n\tnode,\n\t{ delay = 0, duration = 400, easing = cubic_out, start = 0, opacity = 0 } = {}\n) {\n\tconst style = getComputedStyle(node);\n\tconst target_opacity = +style.opacity;\n\tconst transform = style.transform === 'none' ? '' : style.transform;\n\tconst sd = 1 - start;\n\tconst od = target_opacity * (1 - opacity);\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - sd * u});\n\t\t\topacity: ${target_opacity - od * u}\n\t\t`\n\t};\n}\n\n/**\n * Animates the stroke of an SVG element, like a snake in a tube. `in` transitions begin with the path invisible and draw the path to the screen over time. `out` transitions start in a visible state and gradually erase the path. `draw` only works with elements that have a `getTotalLength` method, like `<path>` and `<polyline>`.\n *\n * @param {SVGElement & { getTotalLength(): number }} node\n * @param {DrawParams} [params]\n * @returns {TransitionConfig}\n */\nexport function draw(node, { delay = 0, speed, duration, easing = cubic_in_out } = {}) {\n\tlet len = node.getTotalLength();\n\tconst style = getComputedStyle(node);\n\tif (style.strokeLinecap !== 'butt') {\n\t\tlen += parseInt(style.strokeWidth);\n\t}\n\tif (duration === undefined) {\n\t\tif (speed === undefined) {\n\t\t\tduration = 800;\n\t\t} else {\n\t\t\tduration = len / speed;\n\t\t}\n\t} else if (typeof duration === 'function') {\n\t\tduration = duration(len);\n\t}\n\treturn {\n\t\tdelay,\n\t\tduration,\n\t\teasing,\n\t\tcss: (_, u) => `\n\t\t\tstroke-dasharray: ${len};\n\t\t\tstroke-dashoffset: ${u * len};\n\t\t`\n\t};\n}\n\n/**\n * @template T\n * @template S\n * @param {T} tar\n * @param {S} src\n * @returns {T & S}\n */\nfunction assign(tar, src) {\n\t// @ts-ignore\n\tfor (const k in src) tar[k] = src[k];\n\treturn /** @type {T & S} */ (tar);\n}\n\n/**\n * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs/svelte/transition) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.\n *\n * @param {CrossfadeParams & {\n * \tfallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;\n * }} params\n * @returns {[(node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig, (node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig]}\n */\nexport function crossfade({ fallback, ...defaults }) {\n\t/** @type {Map<any, Element>} */\n\tconst to_receive = new Map();\n\t/** @type {Map<any, Element>} */\n\tconst to_send = new Map();\n\n\t/**\n\t * @param {Element} from_node\n\t * @param {Element} node\n\t * @param {CrossfadeParams} params\n\t * @returns {TransitionConfig}\n\t */\n\tfunction crossfade(from_node, node, params) {\n\t\tconst {\n\t\t\tdelay = 0,\n\t\t\tduration = /** @param {number} d */ (d) => Math.sqrt(d) * 30,\n\t\t\teasing = cubic_out\n\t\t} = assign(assign({}, defaults), params);\n\t\tconst from = from_node.getBoundingClientRect();\n\t\tconst to = node.getBoundingClientRect();\n\t\tconst dx = from.left - to.left;\n\t\tconst dy = from.top - to.top;\n\t\tconst dw = from.width / to.width;\n\t\tconst dh = from.height / to.height;\n\t\tconst d = Math.sqrt(dx * dx + dy * dy);\n\t\tconst style = getComputedStyle(node);\n\t\tconst transform = style.transform === 'none' ? '' : style.transform;\n\t\tconst opacity = +style.opacity;\n\t\treturn {\n\t\t\tdelay,\n\t\t\tduration: typeof duration === 'function' ? duration(d) : duration,\n\t\t\teasing,\n\t\t\tcss: (t, u) => `\n\t\t\t   opacity: ${t * opacity};\n\t\t\t   transform-origin: top left;\n\t\t\t   transform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${\n\t\t\t\t\t\tt + (1 - t) * dh\n\t\t\t\t\t});\n\t\t   `\n\t\t};\n\t}\n\n\t/**\n\t * @param {Map<any, Element>} items\n\t * @param {Map<any, Element>} counterparts\n\t * @param {boolean} intro\n\t * @returns {(node: any, params: CrossfadeParams & { key: any; }) => () => TransitionConfig}\n\t */\n\tfunction transition(items, counterparts, intro) {\n\t\t// @ts-expect-error TODO improve typings (are the public types wrong?)\n\t\treturn (node, params) => {\n\t\t\titems.set(params.key, node);\n\t\t\treturn () => {\n\t\t\t\tif (counterparts.has(params.key)) {\n\t\t\t\t\tconst other_node = counterparts.get(params.key);\n\t\t\t\t\tcounterparts.delete(params.key);\n\t\t\t\t\treturn crossfade(/** @type {Element} */ (other_node), node, params);\n\t\t\t\t}\n\t\t\t\t// if the node is disappearing altogether\n\t\t\t\t// (i.e. wasn't claimed by the other list)\n\t\t\t\t// then we need to supply an outro\n\t\t\t\titems.delete(params.key);\n\t\t\t\treturn fallback && fallback(node, params, intro);\n\t\t\t};\n\t\t};\n\t}\n\treturn [transition(to_send, to_receive, false), transition(to_receive, to_send, true)];\n}\n","<script lang=\"ts\">\n  import { page } from '$app/stores'\n  import { toasts } from '@txstate-mws/svelte-components'\n  import ToastNotification from \"carbon-components-svelte/src/Notification/ToastNotification.svelte\";\n  import { cubicOut } from 'svelte/easing'\n  import { fly } from 'svelte/transition'\n  export let lowContrast = true\n</script>\n\n{#if !$page.error}\n  <div class=\"toast-container\">\n    {#each [...$toasts].reverse() as toast (toast.id)}\n      <div in:fly={{ x: 100, duration: 200, easing: cubicOut }}\n           out:fly={{ x: 100, duration: 125, easing: cubicOut }}>\n        <ToastNotification {lowContrast} title={toast.title ?? ''} subtitle={toast.message} kind={toast.type ?? 'error'} on:close={() => { toasts.close(toast.id) }} on:mouseenter={() => { toasts.suspend(toast.id) }} on:mouseleave={() => { toasts.resume(toast.id) }} />\n      </div>\n    {/each}\n  </div>\n{/if}\n\n<style>\n  .toast-container {\n    position: fixed;\n    top: 120px;\n    right: 40px;\n    /* ensure toast is above nav just in case */\n    z-index: 20000;\n  }\n</style>\n","<script lang=\"ts\" context=\"module\">\n  export const RECORD_INTERACTION_CONTEXT = {}\n\n  /**\n   * InteractionEvent defines the shape of the data we will send to an /analytics\n   * endpoint when we want to record a user interaction in our UI.\n   *\n   * The /analytics endpoint will append more information based on the useragent, ip\n   * address, and authentication. Then it will send the result to our analytics database.\n   */\n  export interface InteractionEvent {\n    /**\n     * This serves as an identifier for the code that generated the event. For\n     * example, a react or svelte component that logs presses of a specific button\n     * might name the eventType after the component's name.\n     *\n     * It should be easily readable but also help us identify the line of code that\n     * generated the event.\n     */\n    eventType: string\n    /**\n     * The specific action the user took. Typically the label for the button that\n     * the user interacted with, but could also be other types of interactions like\n     * swipes. Human readable and easily grouped.\n     *\n     * Examples: 'Add Page', 'Edit Page', 'Preview', 'Cancel Preview', 'Download', 'Swipe Photo Preview'\n     */\n    action: string\n    /**\n     * If applicable, the target of the action.\n     *\n     * With this property, we are interested in tracking which objects in the system are getting\n     * attention, so it should be as specific as possible.\n     *\n     * For example, if you are tracking a page navigation, the `screen` is where the user was\n     * and the `target` is where the user went, but the `target` would be '/pages/12' instead\n     * of 'pages/[id]'.\n     *\n     * When possible, a full path or GUID is preferred, e.g. '/pages/12' instead of '12'. This way you\n     * could easily group different actions and eventTypes on a given target, without worrying\n     * that you are accidently grouping in the asset or site or user with an id of 12.\n     *\n     * You can also include even more hierarchical context for ease of reporting. For instance,\n     * '/sites/5/pages/12' could be used instead of '/pages/12', which would allow a report to\n     * group across targets that begin with '/sites/5'.\n     */\n    target?: string\n    /**\n     * Additional data points specific to a particular eventType context. Use this sparingly\n     * when the existing properties above are insufficient for a report that needs to be built.\n     *\n     * This is NOT a catch-all property. Everything added here expands the index in elasticsearch\n     * and has performance and disk usage implications.\n     */\n    additionalProperties?: Record<string, string | undefined>\n  }\n</script>\n<script lang=\"ts\">\n  import Theme from \"carbon-components-svelte/src/Theme/Theme.svelte\";\n  import 'carbon-components-svelte/css/all.css'\n  import { setContext } from 'svelte'\n  import '@fontsource/roboto/300.css'\n  import '@fontsource/roboto/400.css'\n  import '@fontsource/roboto/500.css'\n  import '@fontsource/roboto/700.css'\n  import '@fontsource/roboto/300-italic.css'\n  import '@fontsource/roboto/400-italic.css'\n  import '@fontsource/roboto/500-italic.css'\n  import '@fontsource/roboto/700-italic.css'\n  import '@fontsource/roboto-mono/400.css'\n  import '@fontsource/roboto-mono/600.css'\n  import '@fontsource/roboto-mono/400-italic.css'\n  import '@fontsource/roboto-mono/600-italic.css'\n  import '@fontsource/roboto-serif/400.css'\n  import '@fontsource/roboto-serif/500.css'\n  import '@fontsource/roboto-serif/600.css'\n  import '@fontsource/roboto-serif/400-italic.css'\n  import '@fontsource/roboto-serif/500-italic.css'\n  import '@fontsource/roboto-serif/600-italic.css'\n  import Toasts from './Toasts.svelte'\n  import './layoutbase.css'\n\n  /**\n   * Function to record user interactions for analytics.\n   * If you provide this (if you use our sveltekit-utils library, it should be an easy passthrough),\n   * this component library will call it to record certain user interactions like\n   * opening and closing modals.\n   */\n  export let recordInteraction: ((evt: InteractionEvent) => Promise<void>) | undefined = undefined\n\n  setContext(RECORD_INTERACTION_CONTEXT, recordInteraction)\n</script>\n\n<Theme tokens={{\n  'code-01-font-family': '\"Roboto Mono\", monospace',\n  'code-02-font-family': '\"Roboto Mono\", monospace',\n  'quotation-01-font-family': '\"Roboto Serif\", serif',\n  'quotation-02-font-family': '\"Roboto Serif\", serif',\n  'fluid-quotation-01-font-family': '\"Roboto Serif\", serif',\n  'fluid-quotation-02-font-family': '\"Roboto Serif\", serif',\n  'interactive-01': '#501214',\n  'hover-primary': '#622a2c',\n  'interactive-03': '#501214',\n  'hover-tertiary': '#501214',\n  'interactive-02': '#ffffff',\n  'hover-secondary': '#501214',\n  'interactive-04': '#922125',\n  'tag-background-green': '#acddc1',\n  'tag-hover-green': '#84CCA3',\n  'tag-background-teal': '#c4d9d4',\n  'tag-hover-teal': '#A9C6C0'\n}}/>\n<Toasts />\n<slot/>\n","<script lang=\"ts\">\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\nimport InlineNotification from \"carbon-components-svelte/src/Notification/InlineNotification.svelte\";\n  import Close from 'carbon-icons-svelte/lib/Close.svelte'\n  import { createEventDispatcher, getContext, setContext } from 'svelte'\n  import { writable } from 'svelte/store'\n  import { isNotBlank, randomid } from 'txstate-utils'\n  import { LoadingIcon } from './'\n  import { RECORD_INTERACTION_CONTEXT, type InteractionEvent } from './LayoutBase.svelte'\n  import Toasts from './Toasts.svelte'\n  import { UISHELL_STICKY_CONTEXT, type UIShellStickyStore } from './util.js'\n\n  /**\n   * The title displayed at the top of the panel dialog.\n   * @required\n   * @type {string}\n   */\n  export let title: string\n  /**\n   * Controls whether the panel dialog is visible.\n   * @type {boolean}\n   */\n  export let open = false\n  /**\n   * Text for the cancel button. Set to empty string to hide.\n   * @type {string}\n   */\n  export let cancelText = 'Cancel'\n  /**\n   * Text for the submit button. Set to empty string to hide.\n   * @type {string}\n   */\n  export let submitText = 'Submit'\n  /**\n   * Error message to display at the bottom of the panel dialog.\n   * @type {string}\n   */\n  export let errorText = ''\n  export let dialogelement: HTMLDialogElement | undefined = undefined\n  /**\n   * If true, displays the dialog in the center of the screen instead of as a side panel.\n   * @type {boolean}\n   */\n  export let centered = false\n  /**\n   * Disables the submit button when true.\n   * @type {boolean}\n   */\n  export let disableSubmit = false\n  /**\n   * Show a loading spinner on the submit button and disable it when true.\n   * @type {boolean}\n   */\n  export let loadingSubmit = false\n\n  /**\n   * Size of the dialog. 'small' is 32rem wide, 'large' is 64rem wide and centered.\n   * @type {'small' | 'large'}\n   */\n  export let size: 'small' | 'large' = 'small'\n\n  let closebutton: HTMLButtonElement | undefined\n  const dispatch = createEventDispatcher()\n  const recordInteraction = getContext<((event: InteractionEvent) => Promise<void>) | undefined>(RECORD_INTERACTION_CONTEXT)\n\n  // The dialog's content area renders over the app's sticky header, we don't need an offset for it\n  setContext<UIShellStickyStore>(UISHELL_STICKY_CONTEXT, writable({ height: 0 }))\n\n  function cancel () {\n    dispatch('cancel')\n  }\n  function submit () {\n    dispatch('submit')\n  }\n  function onKeyDown (e: KeyboardEvent) {\n    if (e.key === 'Escape') {\n      e.preventDefault()\n      cancel()\n    }\n  }\n\n  function openModal () {\n    if (!dialogelement!.open) {\n      recordInteraction?.({ eventType: 'PanelDialog', action: 'Open Modal', target: title }).catch(console.error)\n      dialogelement!.showModal()\n    }\n  }\n\n  function closeModal () {\n    if (!dialogelement?.open) return\n    recordInteraction?.({ eventType: 'PanelDialog', action: 'Close Modal', target: title }).catch(console.error)\n    dialogelement.close()\n  }\n\n  const titleId = randomid()\n  const errorId = randomid()\n  $: if (dialogelement) open ? openModal() : closeModal()\n\n  /**\n   * @event submit Fired when the submit button is clicked.\n  */\n\n  /**\n   * @event cancel Fired when the cancel button is clicked or when the panel dialog is closed via the escape key.\n  */\n</script>\n\n<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n<dialog bind:this={dialogelement} class:centered class={`tcbs-dialog shadow bg-neutral-200-background fixed m-0 ml-auto top-0 right-0 h-full ${size}`}\n  on:keydown={onKeyDown}\n>\n  {#if open}\n    <section aria-labelledby={titleId}>\n      <header class=\"[ flex items-center justify-between py-[8px] px-[16px] ]\">\n        <div id={titleId} class=\"[ font-bold mr-auto ]\">{title}</div>\n        <Button bind:ref={closebutton} on:click={cancel} kind=\"secondary\" iconDescription=\"Close Dialog\" icon={Close} tooltipPosition=\"left\" aria-describedby={titleId} size=\"small\" />\n      </header>\n      <div class=\"content [ p-[16px] flow ]\" class:has-error={!!errorText}>\n        <slot />\n      </div>\n      {#if errorText}\n        <div id={errorId} class=\"error-text [ p-[8px] ]\"><InlineNotification subtitle={errorText} lowContrast hideCloseButton /></div>\n      {/if}\n      {#if isNotBlank(cancelText) || isNotBlank(submitText) || $$slots.buttons}\n        <footer class=\"[ flex flex-wrap justify-end items-center ]\">\n          <slot name=\"buttons\" {disableSubmit}>\n            {#if isNotBlank(cancelText)}\n              <Button kind=\"secondary\" size=\"small\" class=\"ml-[8px]\" on:click={cancel} aria-describedby={titleId} disabled={loadingSubmit}>{cancelText}</Button>\n            {/if}\n            {#if isNotBlank(submitText)}\n              <Button size=\"small\" class=\"ml-[8px]\" on:click={submit} disabled={disableSubmit || loadingSubmit} icon={loadingSubmit ? LoadingIcon : undefined} aria-describedby=\"{errorId} {titleId}\">{submitText}</Button>\n            {/if}\n          </slot>\n        </footer>\n      {/if}\n    </section>\n    <Toasts />\n  {/if}\n</dialog>\n\n<style>\n  dialog {\n    width: min(32rem, 100%);\n    height: 100%;\n    max-height: 100%;\n    display: flex;\n    flex-direction: column;\n    opacity: 0;\n    transform: translateX(100%);\n    transition:\n      opacity 150ms ease-in-out,\n      transform 150ms ease-in-out,\n      overlay 150ms allow-discrete,\n      display 150ms allow-discrete;\n  }\n  dialog.large {\n    width: min(64rem, 100%);\n  }\n  dialog.tcbs-dialog.centered {\n    margin-right: auto;\n    width: min(40rem, 100%);\n    height: auto;\n    bottom: auto;\n    max-height: 90vh;\n    overflow: visible;\n    transform: none;\n    transition:\n      opacity 150ms ease-in-out,\n      overlay 150ms allow-discrete,\n      display 150ms allow-discrete;\n  }\n  dialog[open] {\n    opacity: 1;\n    transform: none;\n  }\n  @starting-style {\n    dialog[open] {\n      opacity: 0;\n      transform: translateX(100%);\n    }\n    dialog[open].centered {\n      transform: none;\n    }\n  }\n  section {\n    display: flex;\n    flex-direction: column;\n    flex: 1 1 auto;\n    min-height: 0;\n  }\n  section .content {\n    overflow-y: auto;\n    flex-grow: 1;\n    min-height: 0;\n  }\n  section .content.has-error {\n    padding-bottom: calc(2.5rem + 1.5 * var(--cds-body-short-01-font-size, 0.875rem));\n  }\n  dialog::backdrop {\n    background: rgba(0, 0, 0, 0);\n    transition:\n      background 150ms ease-in-out,\n      overlay 150ms allow-discrete,\n      display 150ms allow-discrete;\n  }\n  dialog[open]::backdrop {\n    background: rgba(0, 0, 0, 0.5);\n  }\n  @starting-style {\n    dialog[open]::backdrop {\n      background: rgba(0, 0, 0, 0);\n    }\n  }\n\n  header, footer {\n    background-color: var(--cds-ui-01);\n  }\n  .error-text {\n    position: absolute;\n    right: 0;\n    bottom: calc(2rem + 16px);\n    color: var(--cds-text-error);\n    opacity: 0.8;\n  }\n  .error-text :global(.bx--inline-notification) {\n    margin: 0;\n    max-width: 100%;\n  }\n\n  footer {\n    padding: 8px;\n  }\n\n  :global(body:has(dialog.tcbs-dialog[open])) {\n    overflow: hidden;\n  }\n</style>\n","<script lang=\"ts\" generics=\"T extends Record<string, any> = Record<string, any>\">\n  import { type Feedback, type FormStore, type SubmitResponse } from '@txstate-mws/svelte-forms'\n  import Modal from \"carbon-components-svelte/src/Modal/Modal.svelte\";\n  import { createEventDispatcher, tick, type ComponentEvents, type ComponentProps } from 'svelte'\n  import { beforeNavigate } from '$app/navigation'\n  import { unsavedDialogOpen, warnunsaved } from '../stores/warnunsaved.js'\n  import Form from './Form.svelte'\n  import PanelDialog from '../PanelDialog.svelte'\n  import { randomid } from 'txstate-utils'\n\n  interface $$Events extends ComponentEvents<Form<T>> {\n    cancel: CustomEvent<void>\n  }\n  interface $$Slots {\n    default: {\n      messages: Feedback[]\n      allMessages: Feedback[]\n      saved: boolean\n      validating: boolean\n      submitting: boolean\n      valid: boolean\n      invalid: boolean\n      showingInlineErrors: boolean\n      data: Partial<T>\n    }\n    submit: {\n      saved: boolean\n      validating: boolean\n      submitting: boolean\n      allMessages: Feedback[]\n      valid: boolean\n      invalid: boolean\n      showingInlineErrors: boolean\n    }\n    beforeform: Record<string, never>\n    afterform: Record<string, never>\n  }\n\n  interface $$Props extends ComponentProps<Form<T>> {\n    id?: string\n    title: string\n    open?: boolean\n    unsavedWarning?: boolean | string | { heading?: string, message?: string }\n    centered?: boolean\n    disableSaveUntilChanged?: boolean\n    submitText?: string\n    cancelText?: string\n    size?: 'small' | 'large'\n  }\n\n  export let store: FormStore<T> | undefined = undefined\n  /**\n   * Function to handle form submission\n   * @type {((state: T) => Promise<SubmitResponse<T>>) | undefined}\n   */\n   export let submit: ((state: T) => Promise<SubmitResponse<T>>) | undefined = undefined\n  /**\n   * Function to handle form validation\n   * @type {((state: T) => Promise<Feedback[]>) | undefined}\n   */\n  export let validate: ((state: T) => Promise<Feedback[]>) | undefined = undefined\n  /**\n   * Initial form data\n   * @type {T | undefined}\n   */\n  export let preload: T | undefined = undefined\n  /**\n   * Text for the submit button\n   * @type {string}\n   */\n  export let submitText = 'Submit'\n  /**\n   * Text for the cancel button\n   * @type {string}\n   */\n  export let cancelText = 'Cancel'\n  /**\n   * Dialog title text\n   * @type {string}\n   */\n  export let title: string\n  /**\n   * Controls dialog visibility\n   * @type {boolean}\n   */\n  export let open = false\n  /**\n   * Show a warning when navigating away with unsaved changes. Pass `true` to enable with the\n   * default heading and message, a string to customize just the message, or an object to customize\n   * the `heading` and/or `message`. Browser tab close / quit / hard reload triggers the native browser\n   * prompt instead, whose text cannot be customized.\n   * @type {boolean | string | { heading?: string, message?: string }}\n   */\n  export let unsavedWarning: boolean | string | { heading?: string, message?: string } = false\n  /**\n   * Center the dialog on screen\n   * @type {boolean}\n   */\n  export let centered = false\n  /**\n   * Disable save button until form values change\n   * @type {boolean}\n   */\n  export let disableSaveUntilChanged = false\n    /**\n   * Size of the dialog. 'small' is 32rem wide, 'large' is 64rem wide and centered.\n   * @type {'small' | 'large'}\n   */\n  export let size: 'small' | 'large' = 'small'\n  /**\n   * The ID for the form\n   * @type {string}\n   */\n  export let id = randomid()\n\n  let dialogelement: HTMLDialogElement\n\n  $: unsavedHeading = typeof unsavedWarning === 'object' && unsavedWarning.heading ? unsavedWarning.heading : 'Unsaved Changes'\n  $: unsavedMessage = typeof unsavedWarning === 'string' && unsavedWarning\n    ? unsavedWarning\n    : typeof unsavedWarning === 'object' && unsavedWarning.message\n      ? unsavedWarning.message\n      : 'You have unsaved changes. Are you sure you want to leave?'\n\n  let errorText: string | undefined\n  function setErrorText (showingInlineErrors: boolean) {\n    if (showingInlineErrors) errorText = 'At least one field is missing or incorrect.'\n    else errorText = ''\n    return ''\n  }\n\n  $: resolvedValidate = async (state: T) => open ? await validate?.(state) ?? [] : []\n\n  const dispatch = createEventDispatcher()\n\n  async function onSubmit () {\n    await store?.submit()\n  }\n\n  async function resetStore () {\n    await tick()\n    store?.reset()\n  }\n\n  function onCancel () {\n    if (unsavedWarning && $store?.hasUnsavedChanges) $unsavedDialogOpen = true\n    else dispatch('cancel')\n  }\n\n  function onConfirmUnsaved () {\n    $unsavedDialogOpen = false\n    if (!warnunsaved.resumePendingNavigate()) dispatch('cancel')\n  }\n\n  function cancelUnsaved () {\n    $unsavedDialogOpen = false\n    warnunsaved.clearPendingNavigate()\n  }\n\n  beforeNavigate(({ cancel, to, willUnload }) => {\n    if (!open || !unsavedWarning || !$store?.hasUnsavedChanges || warnunsaved.allowNavigate) return\n\n    if (to != null) {\n      warnunsaved.setPendingNavigate(to, willUnload)\n      $unsavedDialogOpen = true\n    }\n    cancel()\n  })\n  $: if (!open) void resetStore()\n\n  $: if (open) void focusElement()\n\n  // mutation observer on container\n\n   async function focusElement () {\n     await tick()\n\n     const form = document.getElementById(id)\n     const children = Array.from(form?.children ?? [])\n\n     const autofocus = children.find(c => {\n       const input = c.querySelector<HTMLElement>('[autofocus]')\n       input?.focus()\n       return input\n     })\n     if (autofocus) return\n\n     const firstChild = children.find(c => c.classList.contains('cs-field') || c.classList.contains('ck-wrapper') || c.classList.contains('bx--form-item'))\n\n     if (firstChild) {\n       const input = Array.from(firstChild.getElementsByTagName('input'))[0]\n       const ckEditor = Array.from(firstChild.getElementsByClassName('ck-editor__main'))[0]\n\n       if (input) input.focus()\n       else if (ckEditor) (ckEditor as HTMLElement)?.focus()\n     }\n   }\n\n\n</script>\n\n<PanelDialog bind:dialogelement {open} {title} {cancelText} {submitText} {errorText} {centered} {size} disableSubmit={disableSaveUntilChanged && !$store?.hasUnsavedChanges} loadingSubmit={$store?.submitting} on:cancel={onCancel} on:submit={onSubmit}>\n  <slot name=\"beforeform\" />\n  <Form {...$$restProps} {id} bind:store {submit} validate={resolvedValidate} {preload} hideFallbackMessage on:validationfail on:saved on:autosaved let:messages let:allMessages let:showingInlineErrors let:saved let:valid let:invalid let:validating let:submitting let:data>\n    {@const _ = setErrorText(showingInlineErrors)}\n    <slot {messages} {saved} {validating} {submitting} {valid} {invalid} {data} {allMessages} {showingInlineErrors} />\n    <svelte:fragment slot=\"submit\">&nbsp;</svelte:fragment>\n  </Form>\n  <slot name=\"afterform\" />\n  <Modal bind:open={$unsavedDialogOpen} on:click:button--primary={onConfirmUnsaved} on:click:button--secondary={cancelUnsaved} on:close={cancelUnsaved} modalHeading={unsavedHeading} primaryButtonText=\"Leave\" secondaryButtonText=\"Stay\">\n    {unsavedMessage}\n  </Modal>\n</PanelDialog>\n","<script lang=\"ts\">\n  import { ScreenReaderOnly, glue, modifierKey } from '@txstate-mws/svelte-components'\n  import { page } from '$app/stores'\n  import { isExternalLink } from './util.js'\n  import { Store } from '@txstate-mws/svelte-store'\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\n  import OverflowMenuVertical from \"carbon-icons-svelte/lib/OverflowMenuVertical.svelte\";\nimport Launch from \"carbon-icons-svelte/lib/Launch.svelte\";\n  import { afterUpdate, tick } from 'svelte'\n  import type { ActionItem } from './index.js'\n  import LoadingIcon from './LoadingIcon.svelte'\n\n  /**\n  * Array of Action Item's included in the set.\n  * @required\n  * @type {ActionItem[]}\n  */\n  export let actions: ActionItem[]\n\n  /**\n  * Prevent first action from having primary button styling\n  * @type {boolean}\n  */\n  export let noPrimaryAction = false\n\n  /**\n  * Force all actions into overflow menu\n  * @type {boolean}\n  */\n  export let forceOverflow = false\n\n  /**\n  * Maximum number of buttons to show before using overflow menu\n  * @type {number}\n  */\n  export let maxButtons = 2\n\n  /**\n  * Use light theme variant\n  * @type {boolean}\n  */\n  export let light = false\n\n  /**\n  * Show text labels alongside icons\n  * @type {boolean}\n  */\n  export let includeLabels = false\n\n  /**\n  * Use small button size variant\n  * @type {boolean}\n  */\n  export let small = false\n\n  /**\n  * Use large button size variant\n  * @type {boolean}\n  */\n  export let large = false\n\n  /**\n  * ID of element that describes these actions\n  * @type {string}\n  */\n  export let describedById = ''\n\n  /**\n   * Alignment of the overflow menu compared to the overflow button\n   * 'auto' will align based on placement of the button in the viewport\n   * 'topright' will align the menu above the button with the right edges lined up\n   * 'bottomright' will align the menu below the button with the right edges lined up\n   * 'bottomleft' will align the menu below the button with the left edges lined up\n   * 'topleft' will align the menu above the button with the left edges lined up\n   * @type {'auto' | 'topright' | 'bottomright' | 'bottomleft' | 'topleft'}\n   */\n  export let menuAlign: 'auto' | 'topright' | 'bottomright' | 'bottomleft' | 'topleft' = 'bottomright'\n\n  /**\n   * Set this to true to reverse the order of the buttons and put the overflow menu on the right\n   */\n  export let reverse = false\n\n  const hasOutside = new Store(false)\n\n  $: buttonSize = (small ? 'small' : (large ? undefined : 'field')) as 'small' | 'field' | undefined\n  $: indexedActions = actions.map((a, i) => ({ ...a, idx: i }))\n  $: outsideActions = forceOverflow ? [] : (actions.length > maxButtons ? indexedActions.filter(a => !a.disabled && !a.forceToOverflow).slice(0, maxButtons - 1) : indexedActions.filter(a => !a.forceToOverflow))\n  $: $hasOutside = outsideActions.length > 0\n  $: outsideIndexes = new Set(outsideActions.map(a => a.idx))\n  $: overflowActions = indexedActions.filter(a => !outsideIndexes.has(a.idx))\n  $: activeAction = $hasOutside ? 0 : -1\n\n  const icon = OverflowMenuVertical\n  let overflowOpen = false\n  const actionelements: (HTMLButtonElement | HTMLAnchorElement)[] = []\n  let overflowButton: HTMLButtonElement\n\n  function activate (idx: number, skipFocusUnlessNoFocus = false) {\n    activeAction = idx\n    overflowOpen = idx >= 0 && !outsideIndexes.has(idx)\n    void tick().then(() => {\n      if (!skipFocusUnlessNoFocus || document.activeElement == null) {\n        if (idx < 0) overflowButton?.focus()\n        else actionelements[idx]?.focus()\n      }\n    })\n  }\n\n  function up () {\n    const nextIdx = activeAction - 1\n    if ((nextIdx >= 0 || (outsideActions.length === 0 && nextIdx === -1)) && nextIdx !== activeAction) activate(nextIdx)\n  }\n\n  function down () {\n    const nextIdx = activeAction + 1\n    if (nextIdx < actions.length && nextIdx !== activeAction) activate(nextIdx)\n  }\n\n  function closeMenu (skipFocusUnlessNoFocus = false) {\n    if (outsideActions[0]) activate(outsideActions[0].idx, skipFocusUnlessNoFocus)\n    else activate(-1, skipFocusUnlessNoFocus)\n  }\n\n  function keyDown (e: KeyboardEvent) {\n    if (modifierKey(e)) return\n    if (e.key.startsWith('Arrow')) {\n      e.preventDefault()\n      e.stopPropagation()\n    }\n    if (e.key === 'ArrowRight' || e.key === 'ArrowUp') up()\n    else if (e.key === 'ArrowLeft' || e.key === 'ArrowDown') down()\n    else if (e.key === 'Escape') {\n      e.preventDefault()\n      e.stopPropagation()\n      closeMenu()\n    }\n  }\n\n  function overflowClick (e: MouseEvent) {\n    e.preventDefault()\n    e.stopPropagation()\n    if (overflowOpen) closeMenu()\n    else activate(overflowActions[0].idx)\n  }\n\n\n  function focusOut (e: any) {\n    if (!e.currentTarget?.contains(e.relatedTarget)) {\n      if (overflowOpen) {\n        activeAction = outsideActions[0]?.idx ?? -1\n        overflowOpen = false\n      }\n    }\n  }\n\n  let loading: number | undefined\n  function actionClick (action: ActionItem & { idx: number }) {\n    return async (e: MouseEvent) => {\n      if (loading != null) return\n      e.stopPropagation()\n      if (action.disabled) e.preventDefault()\n      else {\n        if (action.showLoading) loading = action.idx\n        try {\n          await action.onClick?.()\n        } finally {\n          loading = undefined\n        }\n        closeMenu(true)\n      }\n    }\n  }\n\n  afterUpdate(() => {\n    for (const btn of actionelements) {\n      btn?.removeEventListener('keydown', keyDown as any)\n      btn?.addEventListener('keydown', keyDown as any)\n    }\n  })\n\n</script>\n{#if actions.length}\n  <div role=\"menu\" class:flex-row-reverse={!reverse} class:justify-end={reverse} class=\"[ relative flex gap-0.5 align-center flex-shrink-0 ]\" on:focusout={focusOut}>\n    {#each outsideActions as action}\n      {@const disabled = action.disabled || loading != null}\n      {@const external = action.external ?? isExternalLink(action.href, $page.url)}\n      {#if action.icon && !includeLabels}\n        <Button size={buttonSize} tabindex={activeAction === action.idx ? 0 : -1} aria-disabled={disabled} class={disabled ? 'bx--btn--disabled' : ''} bind:ref={actionelements[action.idx]} role=\"menuitem\" aria-posinset={action.idx + 1} aria-setsize={actions.length} iconDescription={external ? `${action.label} (opens in a new tab)` : action.label} icon={action.icon} kind={action.idx === 0 && !noPrimaryAction ? 'primary' : 'secondary'} href={action.href} target={external ? '_blank' : undefined} on:click={actionClick(action)} aria-describedby={describedById} />\n      {:else}\n        <Button size={buttonSize} tabindex={activeAction === action.idx ? 0 : -1} aria-disabled={disabled} class=\"{action.icon ? '' : 'pr-4'} {disabled ? 'bx--btn--disabled' : ''}\" bind:ref={actionelements[action.idx]} role=\"menuitem\" aria-posinset={action.idx + 1} aria-setsize={actions.length} icon={action.icon ?? (external ? Launch : undefined)} kind={action.idx === 0 && !noPrimaryAction ? 'primary' : 'secondary'} href={action.href} target={external ? '_blank' : undefined} on:click={actionClick(action)} aria-describedby={describedById}>\n          {action.label}\n          {#if external}\n            <ScreenReaderOnly>(opens in a new tab)</ScreenReaderOnly>\n          {/if}\n        </Button>\n      {/if}\n    {/each}\n    {#if overflowActions.length}\n      <button type=\"button\" tabindex={$hasOutside ? -1 : activeAction === -1 ? 0 : -1} bind:this={overflowButton} class:bx--overflow-menu={true}\n        class:bx--overflow-menu--sm={small} class:bx--overflow-menu--xl={large}\n        class:bx--overflow-menu--light={light} class:bx--overflow-menu--open={overflowOpen}\n        role=\"menuitem\"\n        aria-expanded={overflowOpen} aria-haspopup=\"menu\"\n        on:click={overflowClick} on:keydown={keyDown} aria-describedby={describedById}\n      >\n        <svelte:component this={icon} aria-hidden=\"true\" class=\"bx--overflow-menu__icon\" />\n        <ScreenReaderOnly>Show Actions</ScreenReaderOnly>\n      </button>\n      {#if overflowOpen}\n        <div\n          class:bx--overflow-menu-options={true}\n          class:bx--overflow-menu-options--light={light}\n          class:bx--overflow-menu-options--open={true}\n          use:glue={{ target: overflowButton, align: menuAlign }}\n        >\n          {#each overflowActions as action, i}\n            {@const disabled = action.disabled || loading != null}\n            {@const external = action.external ?? isExternalLink(action.href, $page.url)}\n            <div class:bx--overflow-menu-options__option={true} class:bx--overflow-menu-options__option--disabled={disabled}>\n              <svelte:element this={action.href ? 'a' : 'button'}\n                bind:this={actionelements[action.idx]}\n                class:bx--overflow-menu-options__btn={true}\n                href={action.href}\n                target={external ? '_blank' : undefined}\n                rel={external ? 'noopener noreferrer' : undefined}\n                role=\"menuitem\" aria-posinset={action.idx + 1} aria-setsize={actions.length}\n                aria-disabled={disabled} aria-describedby={describedById}\n                tabindex={activeAction === action.idx ? 0 : -1}\n                on:click={actionClick(action)}\n              >\n                <div class:bx--overflow-menu-options__option-content={true}>\n                  {#if loading === action.idx}\n                    <LoadingIcon class=\"inline-block align-text-bottom mr-1 !fill-transparent\" />\n                  {:else if action.icon}\n                    <svelte:component this={action.icon} class=\"inline align-text-bottom mr-1\" />\n                  {:else if external}\n                    <svelte:component this={Launch} class=\"inline align-text-bottom mr-1\" />\n                  {/if}\n                  {action.label}\n                  {#if external}\n                    <ScreenReaderOnly>(opens in a new tab)</ScreenReaderOnly>\n                  {/if}\n                </div>\n              </svelte:element>\n            </div>\n          {/each}\n        </div>\n      {/if}\n    {/if}\n  </div>\n{/if}\n\n<style>\n  .bx--overflow-menu {\n    flex-basis:2.5rem;\n  }\n  .bx--overflow-menu-options {\n    left: unset;\n    right: unset;\n    top: unset;\n    bottom: unset;\n  }\n</style>\n","// @ts-check\n\n/**\n * Create a canceling delayed-call scheduler for hover-intent style UI (e.g.\n * opening/closing a tooltip after a delay). Each call clears any pending\n * invocation before scheduling the next one; a non-positive `delay` runs\n * `fn` synchronously instead of queuing a timer.\n * @returns {((delay: number, fn: () => void) => void) & { cancel: () => void }}\n */\nexport function createDelayedSetter() {\n  /** @type {ReturnType<typeof setTimeout> | undefined} */\n  let timeoutId;\n\n  /**\n   * @param {number} delay\n   * @param {() => void} fn\n   */\n  function schedule(delay, fn) {\n    clearTimeout(timeoutId);\n    if (delay > 0) {\n      timeoutId = setTimeout(fn, delay);\n    } else {\n      fn();\n    }\n  }\n\n  schedule.cancel = () => {\n    clearTimeout(timeoutId);\n  };\n\n  return schedule;\n}\n","<script>\n  /**\n   * @event {null} open\n   * @event {null} close\n   */\n\n  /** Specify the tooltip text */\n  export let tooltipText = \"\";\n\n  /**\n   * Set to `true` to open the tooltip.\n   * @bindable writable\n   */\n  export let open = false;\n\n  /**\n   * Set the alignment of the tooltip relative to the icon.\n   * @type {\"start\" | \"center\" | \"end\"}\n   */\n  export let align = \"center\";\n\n  /**\n   * Set the direction of the tooltip relative to the icon.\n   * @type {\"top\" | \"bottom\"}\n   */\n  export let direction = \"bottom\";\n\n  /** Set an id for the tooltip div element */\n  export let id = uniqueId();\n\n  /**\n   * By default, the tooltip is opened on hover or focus.\n   * Set to `true` to open the tooltip on click/focus instead of on hover.\n   * Unhovering or blurring the tooltip will close it.\n   */\n  export let clickToOpen = false;\n\n  /**\n   * Specify the duration in milliseconds to delay before displaying the tooltip.\n   * @type {number}\n   */\n  export let enterDelayMs = 100;\n\n  /**\n   * Specify the duration in milliseconds to delay before hiding the tooltip.\n   * @type {number}\n   */\n  export let leaveDelayMs = 300;\n\n  /**\n   * Obtain a reference to the button HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Set to `true` to render the tooltip in a portal,\n   * preventing it from being clipped by `overflow: hidden` containers.\n   * By default, the tooltip is portalled when inside a `Modal`.\n   * @type {boolean | undefined}\n   */\n  export let portalTooltip = undefined;\n\n  import { createEventDispatcher, getContext, onMount } from \"svelte\";\n  import FloatingPortal from \"../Portal/FloatingPortal.svelte\";\n  import { createDelayedSetter } from \"../utils/delayedSetter.js\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const insideModal = getContext(\"carbon:Modal\");\n\n  $: effectivePortalTooltip =\n    portalTooltip === undefined ? !!insideModal : portalTooltip;\n\n  const PORTAL_VERTICAL_GAP_TOP_PX = -2;\n  const PORTAL_VERTICAL_GAP_BOTTOM_PX = -3;\n\n  const dispatch = createEventDispatcher();\n\n  const scheduleOpen = createDelayedSetter();\n\n  function setOpenDelayed(value, delay = 0) {\n    scheduleOpen(delay, () => {\n      open = value;\n    });\n  }\n\n  function hide() {\n    open = false;\n  }\n\n  function show() {\n    open = true;\n  }\n\n  function toggle() {\n    open = !open;\n  }\n\n  let isInitialRender = true;\n\n  $: {\n    const shouldDispatch = !isInitialRender;\n    const nextOpen = open;\n    isInitialRender = false;\n    if (shouldDispatch) {\n      dispatch(nextOpen ? \"open\" : \"close\");\n    }\n  }\n\n  onMount(() => {\n    return () => {\n      scheduleOpen.cancel();\n    };\n  });\n  function handleEscape(event) {\n    if (event.key === \"Escape\") hide();\n  }\n</script>\n\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<span\n  use:dismiss={{ enabled: open, type: \"keydown\", handler: handleEscape }}\n  class:bx--tooltip--definition={true}\n  class:bx--tooltip--a11y={true}\n  {...$$restProps}\n  on:mouseenter={clickToOpen ? undefined : () => setOpenDelayed(true, enterDelayMs)}\n  on:mouseleave={() => setOpenDelayed(false, leaveDelayMs)}\n>\n  <button\n    bind:this={ref}\n    type=\"button\"\n    aria-describedby={id}\n    class:bx--tooltip--portal-active={effectivePortalTooltip}\n    class:bx--tooltip--a11y={!effectivePortalTooltip}\n    class:bx--tooltip__trigger={true}\n    class:bx--tooltip__trigger--definition={true}\n    class:bx--tooltip--hidden={!effectivePortalTooltip && !open}\n    class:bx--tooltip--visible={!effectivePortalTooltip && open}\n    class:bx--tooltip--top={!effectivePortalTooltip && direction === \"top\"}\n    class:bx--tooltip--bottom={!effectivePortalTooltip &&\n      direction === \"bottom\"}\n    class:bx--tooltip--align-start={!effectivePortalTooltip &&\n      align === \"start\"}\n    class:bx--tooltip--align-center={!effectivePortalTooltip &&\n      align === \"center\"}\n    class:bx--tooltip--align-end={!effectivePortalTooltip && align === \"end\"}\n    on:click={clickToOpen ? toggle : undefined}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n    on:focus\n    on:focus={clickToOpen ? undefined : show}\n    on:blur={hide}\n  >\n    <slot />\n  </button>\n  {#if !effectivePortalTooltip}\n    <div role=\"tooltip\" {id} class:bx--assistive-text={true}>\n      <slot name=\"tooltip\">{tooltipText}</slot>\n    </div>\n  {/if}\n</span>\n\n{#if effectivePortalTooltip}\n  <FloatingPortal\n    anchor={ref}\n    {direction}\n    {open}\n    gapTop={direction === \"top\" ? PORTAL_VERTICAL_GAP_TOP_PX : 0}\n    gapBottom={direction === \"bottom\" ? PORTAL_VERTICAL_GAP_BOTTOM_PX : 0}\n    intrinsicAlign={align}\n    intrinsicWidth={true}\n    let:direction={actualDirection}\n  >\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <div\n      class:bx--tooltip-portal={true}\n      data-direction={actualDirection ?? direction}\n      data-tooltip-type=\"definition\"\n      on:mouseenter={clickToOpen ? undefined : () => setOpenDelayed(true, 0)}\n      on:mouseleave={clickToOpen\n        ? undefined\n        : () => setOpenDelayed(false, leaveDelayMs)}\n    >\n      <span class:bx--tooltip-portal__caret={true}></span>\n      <span\n        {id}\n        role=\"tooltip\"\n        class:bx--tooltip-portal__content={true}\n        class:bx--assistive-text={true}\n      >\n        <slot name=\"tooltip\">{tooltipText}</slot>\n      </span>\n    </div>\n  </FloatingPortal>\n{/if}\n","<script>\n  /** @type {\"sm\" | \"default\" | \"lg\"} */\n  export let size = \"default\";\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<span\n  class:bx--tag={true}\n  class:bx--tag--sm={size === \"sm\"}\n  class:bx--tag--lg={size === \"lg\"}\n  class:bx--skeleton={true}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n></span>\n","<script>\n  /**\n   * @template [Icon=any]\n   * @restProps {div | button | a}\n   */\n\n  /**\n   * Specify the type of tag.\n   * @type {\"red\" | \"magenta\" | \"purple\" | \"blue\" | \"cyan\" | \"teal\" | \"green\" | \"gray\" | \"cool-gray\" | \"warm-gray\" | \"high-contrast\" | \"outline\"}\n   */\n  export let type = undefined;\n\n  /**\n   * Specify the size of the tag.\n   * Defaults to `\"default\"`, or to the `size` of a parent `TagSet`.\n   * @type {\"sm\" | \"default\" | \"lg\"}\n   */\n  export let size = undefined;\n\n  /** Set to `true` to use filterable variant */\n  export let filter = false;\n\n  /** Set to `true` to disable a filterable tag */\n  export let disabled = false;\n\n  /** Set to `true` to render a `button` element instead of a `div` */\n  export let interactive = false;\n\n  /**\n   * Specify the `href` attribute to render the tag as an anchor.\n   * Mutually exclusive with `filter`; when both are set, `filter` takes precedence.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /** Set to `true` to display the skeleton state */\n  export let skeleton = false;\n\n  /** Set to `true` to omit the default outer margin */\n  export let inline = false;\n\n  /** Set the title for the close button in a filterable tag */\n  export let title = \"Clear filter\";\n\n  /**\n   * Cap the tag width. When the label overflows, a tooltip shows the full text.\n   * Accepts any CSS length (for example `\"8rem\"`, `\"120px\"`).\n   * @type {string | undefined}\n   */\n  export let maxWidth = undefined;\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /** Set an id for the filterable tag */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the outer HTML element.\n   * @bindable readonly\n   * @type {null | HTMLElement}\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, getContext, onMount, tick } from \"svelte\";\n  import { readable } from \"svelte/store\";\n  import Close from \"../icons/Close.svelte\";\n  import TooltipDefinition from \"../TooltipDefinition/TooltipDefinition.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import TagSkeleton from \"./TagSkeleton.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  // When rendered inside a `TagSet`, register so the group can measure this\n  // tag's natural width and mark it as overflow once it no longer fits. The\n  // group context is absent for a standalone tag, in which case none of this\n  // applies.\n  const tagSet = getContext(\"carbon:TagSet\");\n  const groupItemId = tagSet ? uniqueId(\"ctag\") : undefined;\n  const groupOverflowIds = tagSet?.overflowIds ?? readable(new Set());\n  const groupSize = tagSet?.size ?? readable(undefined);\n\n  let labelRef = null;\n  let isTruncated = false;\n  let truncationLabel = \"\";\n  let measureToken = 0;\n\n  // Fall back to the group's size, then to \"default\".\n  $: resolvedSize = size ?? $groupSize ?? \"default\";\n\n  // Interactive tags are already buttons — wrapping the label in\n  // `TooltipDefinition` would nest buttons. Use the native `title` instead.\n  $: showTruncationTooltip = isTruncated && !interactive;\n  $: interactiveTitle =\n    isTruncated && interactive ? truncationLabel : undefined;\n\n  async function measureTruncation() {\n    const token = ++measureToken;\n    await tick();\n    if (token !== measureToken) return;\n\n    if (!maxWidth || !labelRef) {\n      isTruncated = false;\n      truncationLabel = \"\";\n      return;\n    }\n\n    const text = labelRef.textContent?.trim() ?? \"\";\n    const truncated = labelRef.scrollWidth > labelRef.clientWidth;\n    isTruncated = truncated;\n    truncationLabel = truncated ? text : \"\";\n  }\n\n  $: if (maxWidth != null && !skeleton) {\n    void maxWidth;\n    void filter;\n    void interactive;\n    void type;\n    void resolvedSize;\n    measureTruncation();\n  } else if (maxWidth == null) {\n    isTruncated = false;\n    truncationLabel = \"\";\n  }\n\n  if (tagSet) {\n    onMount(() => {\n      tagSet.register({\n        id: groupItemId,\n        node: ref,\n        label: labelRef?.textContent?.trim() ?? \"\",\n        type,\n        size: resolvedSize,\n        disabled,\n        filter,\n      });\n      return () => tagSet.unregister(groupItemId);\n    });\n  }\n\n  $: if (tagSet) {\n    tagSet.update(groupItemId, {\n      type,\n      size: resolvedSize,\n      disabled,\n      filter,\n    });\n  }\n  $: groupOverflow = !!tagSet && $groupOverflowIds.has(groupItemId);\n\n  function handleClose() {\n    dispatch(\"close\");\n    if (tagSet) tagSet.notifyClose(groupItemId);\n  }\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n{#if skeleton}\n  <TagSkeleton\n    size={resolvedSize}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  />\n{:else if filter}\n  <!-- svelte-ignore a11y-no-static-element-interactions -->\n  <div\n    bind:this={ref}\n    aria-label={title}\n    {id}\n    data-overflow={groupOverflow ? \"true\" : undefined}\n    class:bx--tag={true}\n    class:bx--tag--inline={inline}\n    class:bx--tag--disabled={disabled}\n    class:bx--tag--filter={filter}\n    class:bx--tag--truncate={maxWidth != null}\n    class:bx--tag--sm={resolvedSize === \"sm\"}\n    class:bx--tag--lg={resolvedSize === \"lg\"}\n    class:bx--tag--red={type === \"red\"}\n    class:bx--tag--magenta={type === \"magenta\"}\n    class:bx--tag--purple={type === \"purple\"}\n    class:bx--tag--blue={type === \"blue\"}\n    class:bx--tag--cyan={type === \"cyan\"}\n    class:bx--tag--teal={type === \"teal\"}\n    class:bx--tag--green={type === \"green\"}\n    class:bx--tag--gray={type === \"gray\"}\n    class:bx--tag--cool-gray={type === \"cool-gray\"}\n    class:bx--tag--warm-gray={type === \"warm-gray\"}\n    class:bx--tag--high-contrast={type === \"high-contrast\"}\n    class:bx--tag--outline={type === \"outline\"}\n    {...$$restProps}\n    style:max-width={maxWidth}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    {#if showTruncationTooltip}\n      <TooltipDefinition\n        class=\"bx--tag__label-tooltip\"\n        tooltipText={truncationLabel}\n        portalTooltip\n      >\n        <span bind:this={labelRef} class:bx--tag__label={true}>\n          <slot props={{ class: \"bx--tag__label\" }}>\n            {type}\n          </slot>\n        </span>\n      </TooltipDefinition>\n    {:else}\n      <span bind:this={labelRef} class:bx--tag__label={true}>\n        <slot props={{ class: \"bx--tag__label\" }}>\n          {type}\n        </slot>\n      </span>\n    {/if}\n    <button\n      type=\"button\"\n      aria-labelledby={id}\n      class:bx--tag__close-icon={true}\n      {disabled}\n      {title}\n      on:click|stopPropagation={handleClose}\n    >\n      <Close />\n    </button>\n  </div>\n{:else if href}\n  <!-- svelte-ignore a11y-missing-attribute -->\n  <!-- svelte-ignore a11y-no-redundant-roles -->\n  <a\n    bind:this={ref}\n    href={disabled ? undefined : href}\n    role={disabled ? \"link\" : undefined}\n    {id}\n    aria-disabled={disabled || undefined}\n    rel={$$restProps.target === \"_blank\" ? \"noopener noreferrer\" : undefined}\n    data-overflow={groupOverflow ? \"true\" : undefined}\n    class:bx--tag={true}\n    class:bx--tag--inline={inline}\n    class:bx--tag--interactive={true}\n    class:bx--tag--disabled={disabled}\n    class:bx--tag--sm={resolvedSize === \"sm\"}\n    class:bx--tag--lg={resolvedSize === \"lg\"}\n    class:bx--tag--red={type === \"red\"}\n    class:bx--tag--magenta={type === \"magenta\"}\n    class:bx--tag--purple={type === \"purple\"}\n    class:bx--tag--blue={type === \"blue\"}\n    class:bx--tag--cyan={type === \"cyan\"}\n    class:bx--tag--teal={type === \"teal\"}\n    class:bx--tag--green={type === \"green\"}\n    class:bx--tag--gray={type === \"gray\"}\n    class:bx--tag--cool-gray={type === \"cool-gray\"}\n    class:bx--tag--warm-gray={type === \"warm-gray\"}\n    class:bx--tag--high-contrast={type === \"high-contrast\"}\n    class:bx--tag--outline={type === \"outline\"}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    {#if $$slots.icon || icon}\n      <div class:bx--tag__custom-icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </div>\n    {/if}\n    <span bind:this={labelRef} class:bx--tag__label={true}> <slot /> </span>\n  </a>\n{:else if interactive}\n  <button\n    bind:this={ref}\n    type=\"button\"\n    {id}\n    {disabled}\n    aria-disabled={disabled}\n    tabindex={disabled ? \"-1\" : undefined}\n    title={interactiveTitle}\n    data-overflow={groupOverflow ? \"true\" : undefined}\n    class:bx--tag={true}\n    class:bx--tag--inline={inline}\n    class:bx--tag--interactive={true}\n    class:bx--tag--disabled={disabled}\n    class:bx--tag--truncate={maxWidth != null}\n    class:bx--tag--sm={resolvedSize === \"sm\"}\n    class:bx--tag--lg={resolvedSize === \"lg\"}\n    class:bx--tag--red={type === \"red\"}\n    class:bx--tag--magenta={type === \"magenta\"}\n    class:bx--tag--purple={type === \"purple\"}\n    class:bx--tag--blue={type === \"blue\"}\n    class:bx--tag--cyan={type === \"cyan\"}\n    class:bx--tag--teal={type === \"teal\"}\n    class:bx--tag--green={type === \"green\"}\n    class:bx--tag--gray={type === \"gray\"}\n    class:bx--tag--cool-gray={type === \"cool-gray\"}\n    class:bx--tag--warm-gray={type === \"warm-gray\"}\n    class:bx--tag--high-contrast={type === \"high-contrast\"}\n    class:bx--tag--outline={type === \"outline\"}\n    {...$$restProps}\n    style:max-width={maxWidth}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    {#if $$slots.icon || icon}\n      <div class:bx--tag__custom-icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </div>\n    {/if}\n    <span bind:this={labelRef} class:bx--tag__label={true}> <slot /> </span>\n  </button>\n{:else}\n  <!-- svelte-ignore a11y-no-static-element-interactions -->\n  <div\n    bind:this={ref}\n    {id}\n    data-overflow={groupOverflow ? \"true\" : undefined}\n    class:bx--tag={true}\n    class:bx--tag--inline={inline}\n    class:bx--tag--disabled={disabled}\n    class:bx--tag--truncate={maxWidth != null}\n    class:bx--tag--sm={resolvedSize === \"sm\"}\n    class:bx--tag--lg={resolvedSize === \"lg\"}\n    class:bx--tag--red={type === \"red\"}\n    class:bx--tag--magenta={type === \"magenta\"}\n    class:bx--tag--purple={type === \"purple\"}\n    class:bx--tag--blue={type === \"blue\"}\n    class:bx--tag--cyan={type === \"cyan\"}\n    class:bx--tag--teal={type === \"teal\"}\n    class:bx--tag--green={type === \"green\"}\n    class:bx--tag--gray={type === \"gray\"}\n    class:bx--tag--cool-gray={type === \"cool-gray\"}\n    class:bx--tag--warm-gray={type === \"warm-gray\"}\n    class:bx--tag--high-contrast={type === \"high-contrast\"}\n    class:bx--tag--outline={type === \"outline\"}\n    {...$$restProps}\n    style:max-width={maxWidth}\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    {#if $$slots.icon || icon}\n      <div class:bx--tag__custom-icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </div>\n    {/if}\n    {#if showTruncationTooltip}\n      <TooltipDefinition\n        class=\"bx--tag__label-tooltip\"\n        tooltipText={truncationLabel}\n        portalTooltip\n      >\n        <span bind:this={labelRef} class:bx--tag__label={true}> <slot /> </span>\n      </TooltipDefinition>\n    {:else}\n      <span bind:this={labelRef} class:bx--tag__label={true}> <slot /> </span>\n    {/if}\n  </div>\n{/if}\n","<script lang=\"ts\">\n  import { modifierKey } from '@txstate-mws/svelte-components'\n  import Tag from \"carbon-components-svelte/src/Tag/Tag.svelte\";\n  import { afterUpdate } from 'svelte'\n  import type { TagItem } from './util.js'\n\n  /**\n  * Array of Tag item's included in the set.\n  * @type {TagItem[]}\n  */\n  export let tags: TagItem[] | undefined\n  /**\n  * Aria label describing the set\n  * @type {string}\n  */\n  export let describedById: string | undefined = undefined\n  export let small = false\n\n  interface TagItemWithIdx extends TagItem {\n    idx?: number\n  }\n  $: dTags = tags ?? []\n  $: tagsWithIdx = dTags as TagItemWithIdx[]\n  $: {\n    let idx = 0\n    for (let i = 0; i < dTags.length; i++) {\n      if (dTags[i].onClick) (dTags[i] as any).idx = idx++\n    }\n  }\n\n  let activeTag = 0\n  let tagcontainer: HTMLDivElement\n  let tagelements: HTMLElement[] = []\n  function tagActivate (idx: number) {\n    activeTag = idx\n    tagelements[idx].focus()\n  }\n\n  function tagUp () {\n    const nextIdx = activeTag - 1\n    if (nextIdx >= 0 && nextIdx !== activeTag) tagActivate(nextIdx)\n  }\n\n  function tagDown () {\n    const nextIdx = activeTag + 1\n    if (nextIdx < tagelements.length && nextIdx !== activeTag) tagActivate(nextIdx)\n  }\n\n  function tagClick (tag: TagItem) {\n    return (e: MouseEvent) => {\n      e.preventDefault()\n      void tag.onClick?.()\n    }\n  }\n\n  function tagKeyDown (e: KeyboardEvent) {\n    if (modifierKey(e)) return\n    if (e.key.startsWith('Arrow')) {\n      e.stopPropagation()\n      e.preventDefault()\n    }\n    if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') tagUp()\n    else if (e.key === 'ArrowRight' || e.key === 'ArrowDown') tagDown()\n  }\n\n  afterUpdate(() => {\n    tagelements = Array.from(tagcontainer?.querySelectorAll('.bx--tag--interactive') ?? [])\n    for (const tag of tagelements) {\n      tag?.removeEventListener('keydown', tagKeyDown)\n      tag?.addEventListener('keydown', tagKeyDown)\n    }\n  })\n</script>\n{#if dTags?.length}\n  <div bind:this={tagcontainer} class=\"tag-set {$$restProps.class ?? ''}\" class:small role=\"list\" aria-label=\"tags\">\n    {#each tagsWithIdx as tag}\n      <Tag type={tag.type === 'yellow' || tag.type === 'maroon' ? 'cyan' : tag.type ?? 'cyan'} icon={tag.icon} role=\"listitem\" interactive={tag.onClick != null} size={small ? 'sm' : undefined}\n        tabindex={tag.idx === activeTag ? 0 : -1} on:click={tagClick(tag)}\n         aria-describedby={describedById} class={`${tag.type === 'yellow' ? 'bg-tagyellow-200 text-tagyellow-900' : ''} ${tag.type === 'maroon' ? 'bg-tagmaroon-80 text-white' : ''} ${tag.emphasize ? 'emphasize_tag' : ''} ${tag.type === 'yellow' && tag.onClick != null ? 'border-tagyellow-900' : ''} ${tag.type === 'maroon' && tag.onClick != null ? 'tagmaroon-interactive' : ''}`}\n      >{tag.label}</Tag>\n    {/each}\n  </div>\n{/if}\n\n<style>\n  .tag-set {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 6px 4px;\n    align-items: flex-start;\n  }\n  .tag-set.small {\n    gap: 6px 4px;\n  }\n  .tag-set :global(.bx--tag) {\n    margin: 0;\n  }\n  .tag-set :global(.emphasize_tag) {\n    font-weight: bold;\n  }\n</style>\n","const ANCHOR_POSITIONS = {\n    'object-left-top': 'left top',\n    'object-top': 'center top',\n    'object-right-top': 'right top',\n    'object-left': 'left center',\n    'object-center': 'center center',\n    'object-right': 'right center',\n    'object-left-bottom': 'left bottom',\n    'object-bottom': 'center bottom',\n    'object-right-bottom': 'right bottom'\n};\n/** Map an ImageAnchor to a CSS object-position value. */\nexport function anchorToObjectPosition(anchor) {\n    if (anchor == null)\n        return undefined;\n    return typeof anchor === 'string' ? ANCHOR_POSITIONS[anchor] : `${anchor.x}% ${anchor.y}%`;\n}\n/** Convert the named aspect ratios to CSS aspect-ratio values, passing custom ratios through. */\nexport function aspectRatioValue(aspect) {\n    switch (aspect) {\n        case undefined: return undefined;\n        case 'square': return '1/1';\n        case 'widescreen': return '16/9';\n        case 'standard': return '4/3';\n        default: return aspect;\n    }\n}\n/**\n * Default `sizes` for a rendered img: a lazy image with a srcset and no consumer-supplied\n * sizes gets 'auto'. The spec only defines 'auto' for lazy images, so eager images\n * get no default; an explicit consumer sizes always wins.\n */\nexport function effectiveSizes(sizes, srcset, loading) {\n    if (sizes != null)\n        return sizes;\n    return srcset != null && loading === 'lazy' ? 'auto' : undefined;\n}\n","<script lang=\"ts\">\n  import { eq, ScreenReaderOnly } from '@txstate-mws/svelte-components'\n  import { Store } from '@txstate-mws/svelte-store'\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\n  import ChevronRight from \"carbon-icons-svelte/lib/ChevronRight.svelte\";\nimport Launch from \"carbon-icons-svelte/lib/Launch.svelte\";\n  import { getContext } from 'svelte'\n  import { randomid } from 'txstate-utils'\n  import { page } from '$app/stores'\n  import { isExternalLink } from './util'\n  import type { ActionItem, NavigationItem, TagItem, CardImage } from './util'\n  import ActionSet from './ActionSet.svelte'\n  import TagSet from './TagSet.svelte'\n  import { anchorToObjectPosition, aspectRatioValue, effectiveSizes } from './imageutil.js'\n\n  /**\n   * The title of the component.\n   * @type {string}\n   */\n  export let title: string\n\n  /**\n   * The subheading for the component, which is optional.\n   * @type {string | undefined}\n   */\n  export let subhead: string | undefined = undefined\n\n  /**\n   * Adds visual emphasis to Card title\n   * @type {boolean}\n   */\n  export let emphasizeTitle = false\n\n  /**\n   * Array of action items displayed in the card header (or merged with navigations at >=800px width).\n   * Actions represent operations on the card itself (edit, download, delete), in contrast to\n   * `navigations` which take the user elsewhere.\n   * @type {ActionItem[]}\n   * @example\n   * ```ts\n   * actions={[\n   *   { label: 'Edit', icon: Edit, onClick: () => editItem(id) },\n   *   { label: 'Download', icon: Download, href: '/export' },\n   *   { label: 'Delete', icon: TrashCan, onClick: () => remove(id), showLoading: true }\n   * ]}\n   * ```\n   */\n  export let actions: ActionItem[] = []\n\n  /**\n   * Removes visual emphasis from primary action.\n   * @type {boolean}\n   */\n  export let noPrimaryAction = false\n\n  /**\n   * Forces the action set to overflow if there are too many actions.\n   * @type {boolean}\n   */\n  export let forceOverflow = false\n\n  /**\n   * Array of tags displayed in the tag area. By default tags sit in the header background; set\n   * `tagsInBody` to move them into the content area. Tags can be informational or interactive\n   * (via `onClick`).\n   * @type {TagItem[]}\n   * @example\n   * ```ts\n   * tags={[\n   *   { label: 'In Progress', type: 'blue' },\n   *   { label: 'High Priority', type: 'red', emphasize: true },\n   *   { label: 'View team', type: 'gray', onClick: () => showTeam() }\n   * ]}\n   * ```\n   */\n  export let tags: TagItem[] = []\n\n  /**\n   * Determines whether the tags should be displayed in the body of the card.\n   * @type {boolean}\n   */\n  export let tagsInBody = false\n\n  /**\n   * Array of navigation items rendered as buttons at the bottom of the card, or merged into the\n   * header action area at >=800px width. Use navigations to send the user to related screens\n   * (cf. `actions`, which operate on the card itself). Items render in reverse order, so the\n   * first item appears rightmost and is styled as the primary action unless\n   * `noPrimaryNavigation` is set.\n   * @type {NavigationItem[]}\n   * @example\n   * ```ts\n   * navigations={[\n   *   { label: 'View Details', href: '/items/42' },\n   *   { label: 'Git Repository', href: 'https://github.com/...', icon: LogoGithub, external: true },\n   *   { label: 'API Docs', href: '/docs', disabled: true }\n   * ]}\n   * ```\n   */\n  export let navigations: NavigationItem[] = []\n\n  /**\n   * Determines whether the primary navigation should not have visual emphasis.\n   * @type {boolean}\n   */\n  export let noPrimaryNavigation = false\n  /**\n   * The ARIA role for the card. Defaults to \"listitem\" when within a CardGrid.\n   * @type {string | undefined}\n   */\n  export let role: string | undefined = undefined\n\n  /**\n   * Optional image for the card. Three sizing modes:\n   *  - **Locked** (`lockedAspect`): fixed aspect ratio, image crops to fit. Best for grids that\n   *    need uniform image proportions.\n   *  - **Unlocked with height**: fixed pixel height, flexible cropping. Best for grids that need\n   *    uniform card heights regardless of source image proportions.\n   *  - **Unlocked**: image fills available space. Best for hero-style single cards.\n   *\n   * `anchor` picks what stays in view under cropping, either a named position or an `{ x, y }`\n   * focal point in percentages. `srcset`, `sizes` and `loading` pass through to the img element;\n   * images load lazily unless `loading: 'eager'` is set.\n   *\n   * @type {CardImage | undefined}\n   * @example\n   * ```ts\n   * // Locked square thumbnail\n   * image={{ src: '/photo.jpg', alt: 'Team photo', lockedAspect: 'square' }}\n   *\n   * // Fixed-height banner anchored to the top of the photo\n   * image={{ src: '/banner.jpg', alt: '', height: '180px', anchor: 'object-top' }}\n   *\n   * // Custom aspect ratio at the bottom of the card, cropped around a focal point\n   * image={{ src: '/wide.jpg', alt: 'Sunset', lockedAspect: '21/9', position: 'bottom', anchor: { x: 30, y: 20 } }}\n   *\n   * // Responsive sources, loaded eagerly because the card is above the fold\n   * image={{ src: '/hero.jpg', alt: '', srcset: '/hero-400.jpg 400w, /hero-800.jpg 800w', sizes: '(min-width: 40rem) 20rem, 100vw', loading: 'eager' }}\n   * ```\n   */\n  export let image: CardImage | undefined = undefined\n\n  /**\n   * HTML heading level (h1-h6) for the card title.\n   * @type {number}\n   */\n  export let headerLevel = 3\n\n  const isInCardGrid = getContext('card-grid') || false\n\n  const store = new Store({ width: 500 })\n\n  $: navToActions = $store.width >= 800\n  $: resolvedActions = navToActions\n    ? actions.concat(\n      navigations.map((nav) => ({ ...nav, forceToOverflow: true }))\n    )\n    : actions\n  $: maxButtons = Math.min(3, Math.ceil($store.width / 400.0))\n  $: {\n    let idx = 0\n    for (let i = 0; i < tags.length; i++) {\n      if (tags[i].onClick) (tags[i] as any).idx = idx++\n    }\n  }\n  $: ariaRole = role ?? (isInCardGrid ? 'listitem' : undefined)\n  $: headerTag = 'h' + headerLevel\n\n  // Image defaults\n  $: imagePosition = image?.position ?? 'top'\n  // All four positions render the same img, so its attributes are derived once and spread.\n  $: imageAttrs = image ? imageAttributes(image) : undefined\n\n  function imageAttributes (img: CardImage) {\n    const locked = !!img.lockedAspect\n    // height only applies to unlocked images: a locked aspect ratio already determines height\n    const heightOverride = locked ? undefined : img.height\n    const objectPosition = anchorToObjectPosition(img.anchor ?? 'object-center')\n    const loading = img.loading ?? 'lazy'\n    return {\n      class: locked\n        ? 'card-image-locked'\n        : heightOverride\n          ? 'card-image-unlocked-height'\n          : 'card-image-unlocked',\n      src: img.src,\n      alt: img.alt ?? '',\n      srcset: img.srcset,\n      sizes: effectiveSizes(img.sizes, img.srcset, loading),\n      loading,\n      decoding: 'async' as const,\n      style: [\n        locked ? `aspect-ratio: ${aspectRatioValue(img.lockedAspect)}` : undefined,\n        heightOverride ? `height: ${heightOverride}` : undefined,\n        objectPosition ? `object-position: ${objectPosition}` : undefined\n      ].filter(Boolean).join('; ')\n    }\n  }\n\n  function navClick (nav: NavigationItem) {\n    return (e: MouseEvent) => {\n      if (nav.disabled) e.preventDefault()\n    }\n  }\n\n  const titleId = randomid()\n</script>\n\n<!--\n  @component\n  A container that organizes content with a consistent layout: title, optional subhead, actions,\n  tags, body content (via the default slot), and navigation buttons. Adapts responsively — at\n  widths >=800px, `navigations` collapse into the header's action area. For laying out multiple\n  cards, wrap them in `<CardGrid>`.\n\n  @example\n  ```svelte\n  <script lang=\"ts\">\n    import { Card } from '@txstate-mws/carbon-svelte'\n    import { Edit, Download } from 'carbon-icons-svelte'\n  </script>\n\n  <Card\n    title=\"Project Overview\"\n    subhead=\"Current status\"\n    actions={[\n      { label: 'Edit', icon: Edit, onClick: () => {} },\n      { label: 'Download', icon: Download, href: '/export' }\n    ]}\n    tags={[{ label: 'In Progress' }, { label: 'High Priority' }]}\n    navigations={[{ label: 'View Details', href: '/items/42' }]}\n  >\n    <p>Card body content goes here.</p>\n  </Card>\n  ```\n-->\n<div\n  role={ariaRole}\n  use:eq={{ store }}\n  class=\"card shadow [ flex flex-col ]\"\n  aria-labelledby={titleId}\n>\n  <div class=\"card-top-wrapper\">\n    <header class=\"card-header [ flex items-start justify-between p-[8px] ]\">\n      <div class=\"card-header-left [ flex-grow flex-shrink ]\">\n        <svelte:element\n          this={headerTag}\n          id={titleId}\n          class=\"card-title [ text-lg font-bold ]\"\n          class:emphasizeTitle\n        >\n          {title}\n        </svelte:element>\n        {#if subhead}<div class=\"card-subhead\">{subhead}</div>{/if}\n      </div>\n      <ActionSet\n        actions={resolvedActions}\n        {noPrimaryAction}\n        {maxButtons}\n        {forceOverflow}\n        describedById={titleId}\n      />\n    </header>\n    <!-- Image at top position -->\n    {#if imageAttrs && imagePosition === 'top'}\n      <img {...imageAttrs} />\n    {/if}\n  </div>\n  <!-- Image specifically above tags when tags exist -->\n  {#if imageAttrs && imagePosition === 'above-tags'}\n    <img {...imageAttrs} />\n  {/if}\n\n  {#if tags.length}\n    <TagSet {tags} class={tagsInBody ? '' : 'hasbg'} />\n  {/if}\n\n  <!-- Image below tags -->\n  {#if imageAttrs && imagePosition === 'below-tags'}\n    <img {...imageAttrs} />\n  {/if}\n\n  <div\n    class=\"card-content [ p-[8px] ]\"\n  >\n    <slot />\n  </div>\n\n  <!-- Image at bottom position, below content -->\n  {#if imageAttrs && imagePosition === 'bottom'}\n    <img {...imageAttrs} />\n  {/if}\n\n  {#if !navToActions}\n    <div\n      class=\"card-footer [ flex flex-wrap flex-row-reverse ]\"\n      class:singular={navigations.length === 1}\n    >\n      {#each navigations as nav, i}\n        {@const outbound = nav.external ?? isExternalLink(nav.href, $page.url)}\n        <Button\n          href={nav.href}\n          target={outbound ? '_blank' : undefined}\n          size=\"field\"\n          aria-disabled={nav.disabled}\n          aria-describedby={titleId}\n          icon={nav.icon ?? (outbound ? Launch : ChevronRight)}\n          kind={noPrimaryNavigation || i > 0 ? 'secondary' : 'primary'}\n          class=\"navigation [ w-full ] {nav.disabled\n            ? 'bx--btn--disabled'\n            : ''}\"\n          on:click={navClick(nav)}>\n          {nav.label}\n          {#if outbound}\n            <ScreenReaderOnly>(opens in a new tab)</ScreenReaderOnly>\n          {/if}\n        </Button>\n      {/each}\n    </div>\n  {/if}\n</div>\n\n<style>\n  .card {\n    border: 2px solid #e7e5e4;\n  }\n  .card-top-wrapper {\n    display: flex;\n    flex-direction: column;\n    min-height: 0;\n  }\n  .card-top-wrapper:has(img) {\n    flex-direction: column-reverse;\n  }\n  .card-top-wrapper:has(.card-image-unlocked) {\n    flex: 1 1 auto;\n  }\n  .card-header {\n    background-color: #e7e5e4;\n  }\n  .card-title {\n    margin-block-start: 0;\n    width: -moz-fit-content;\n    width: fit-content;\n  }\n  .card-title.emphasizeTitle {\n    background-color: #d8d0cf;\n    padding: 0 8px;\n  }\n  .card :global(.tag-set) {\n    padding: 8px;\n  }\n  .card :global(.tag-set > *) {\n    max-width: calc(50% - 2px);\n  }\n  .card :global(.tag-set.hasbg) {\n    padding-top: 0;\n    background-color: #e7e5e4;\n  }\n  .card:has(img) :global(.tag-set.hasbg),\n  .card:has(img) :global(.tag-set) {\n    padding-top: 8px;\n  }\n  .card-footer {\n    margin-block-start:auto;\n  }\n  .card .card-footer > :global(*) {\n    flex-grow: 1;\n    flex-basis: calc((300px - 100%) * 999);\n    min-width: 100px;\n    max-width: 100%;\n  }\n\n  .card .card-footer.singular > :global(*) {\n    width: 100%;\n  }\n\n  /* 3 items get a higher threshold so they stack earlier */\n  .card .card-footer > :global(:nth-last-child(n + 3)),\n  .card .card-footer > :global(:nth-last-child(n + 3) ~ *) {\n    flex-basis: calc((400px - 100%) * 999);\n  }\n\n  .card .card-footer > :global(:nth-last-child(n + 4)),\n  .card .card-footer > :global(:nth-last-child(n + 4) ~ *) {\n    flex-basis: 100%;\n  }\n\n  /* Locked images: fixed aspect ratio with cropping */\n  .card-image-locked {\n    width: 100%;\n    height: auto;\n    display: block;\n    -o-object-fit: cover;\n       object-fit: cover;\n    /* object-position comes from the image's anchor, set inline */\n  }\n\n  /* Unlocked images fill available space */\n  .card-image-unlocked {\n    width: 100%;\n    flex: 2 0 auto;\n    -o-object-fit: cover;\n       object-fit: cover;\n    display: block;\n  }\n\n  /* Unlocked images with explicit height */\n  .card-image-unlocked-height {\n    width: 100%;\n    -o-object-fit: cover;\n       object-fit: cover;\n    display: block;\n  }\n</style>\n","<script lang=\"ts\">\n  import { setContext } from 'svelte'\n  /**\n   * Defines the minimum size of each card before breaking to fewer columns. This is ignored once a single column is reached.\n   * @type {string}\n   */\n  export let cardSize: string | undefined = undefined\n  /**\n   * The space between the cards both horizontally and vertically.\n   * @type {string}\n   */\n  export let gap: string | undefined = undefined\n\n  setContext('card-grid', true)\n</script>\n\n<div {...$$restProps} role=\"list\" aria-label=\"cards\" class={`card-list ${$$restProps.class || ''}`} style:--grid-min-item-size={cardSize} style:--grid-gap={gap}>\n    <slot />\n</div>\n\n<style>\n.card-list {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min-item-size, 20rem)), 1fr));\n  gap: var(--grid-gap, 16px);\n}\n</style>\n","<script lang=\"ts\">\n  import type { Feedback } from '@txstate-mws/svelte-forms'\n  import WarningFilled from 'carbon-icons-svelte/lib/WarningFilled.svelte'\n  import { isNotBlank, randomid } from 'txstate-utils'\n  import FormInlineNotification from './FormInlineNotification.svelte'\n\n  /**\n   * Helper text shown below the field when it has no errors to display.\n   * @type {string | undefined}\n   */\n  export let helperText: string | undefined = undefined\n\n  /**\n   * Validation feedback for the field. Error/system messages render inline\n   * when `invalid` is true. Other types (warning, success, info) render as\n   * Carbon InlineNotification cards.\n   * @type {Feedback[]}\n   */\n  export let messages: Feedback[] = []\n\n  /**\n   * Whether the field is currently in an invalid state. Required for error\n   * messages to render.\n   * @type {boolean}\n   */\n  export let invalid = false\n\n  /**\n   * DOM id for the wrapper, suitable for use in the parent's `aria-describedby`.\n   * @type {string}\n   */\n  export let id: string = randomid()\n\n  $: errors = invalid ? messages.filter(m => m.type === 'error' || m.type === 'system') : []\n  $: notices = messages.filter(m => m.type !== 'error' && m.type !== 'system')\n  $: showError = errors.length > 0\n  $: showHelper = !showError && isNotBlank(helperText)\n</script>\n\n<div {id} class=\"field-status-text\" class:has-content={showError || showHelper}>\n  {#if showError}\n    <div class=\"field-status-text-error\">\n      <WarningFilled />\n      <span class=\"field-status-text-message\">{errors.map(e => e.message).join('\\n')}</span>\n    </div>\n  {/if}\n  {#if showHelper}\n    <div class=\"bx--form__helper-text\">{helperText}</div>\n  {/if}\n</div>\n{#each notices as message}\n  <FormInlineNotification {message} />\n{/each}\n\n<style>\n  .field-status-text.has-content {\n    margin-block-start: 0.25rem;\n  }\n  .field-status-text-error {\n    display: flex;\n    align-items: flex-start;\n    gap: 0.25rem;\n    margin-block-start: 0.125rem;\n    font-size: 0.75rem;\n    line-height: var(--cds-caption-01-line-height, 1.33333);\n    font-weight: 400;\n    color: var(--cds-support-01, #da1e28);\n  }\n  .field-status-text-error :global(svg) {\n    flex-shrink: 0;\n    fill: currentColor;\n    transform: translateY(-0.15ch);\n  }\n  .field-status-text-message {\n    white-space: pre-line;\n    flex: 1;\n  }\n  :global(:has(.bx--form-requirement) + .field-status-text.has-content) {\n    margin-block-start: 0;\n  }\n</style>\n","<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--form-item={true}\n  class:bx--checkbox-wrapper={true}\n  class:bx--checkbox-label={true}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <span class:bx--checkbox-label-text={true} class:bx--skeleton={true}></span>\n</div>\n","<script>\n  /**\n   * @template [T=any]\n   * @restProps {div}\n   * @event {boolean} check\n   */\n\n  /**\n   * Specify the value of the checkbox.\n   * @type {T}\n   */\n  export let value = /** @type {T} */ (\"\");\n\n  /**\n   * Specify whether the checkbox is checked.\n   * @bindable writable\n   */\n  export let checked = false;\n\n  /**\n   * Specify the bound group.\n   * @type {ReadonlyArray<T> | undefined}\n   * @bindable writable\n   */\n  export let group = undefined;\n\n  /**\n   * Specify whether the checkbox is indeterminate.\n   * @bindable writable\n   */\n  export let indeterminate = false;\n\n  /** Set to `true` to display the skeleton state */\n  export let skeleton = false;\n\n  /** Set to `true` to mark the field as required */\n  export let required = false;\n\n  /** Set to `true` for the checkbox to be read-only */\n  export let readonly = false;\n\n  /** Set to `true` to disable the checkbox */\n  export let disabled = false;\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /** Set a name for the input element */\n  export let name = \"\";\n\n  /**\n   * Specify the title attribute for the label element.\n   * @type {string}\n   * @bindable readonly\n   */\n  export let title = undefined;\n\n  /** Set an id for the input label */\n  export let id = uniqueId();\n\n  /**\n   * Set the tabindex for the input element.\n   * @type {number | string | undefined}\n   */\n  export let tabindex = undefined;\n\n  /**\n   * Set to `true` to hide the input from the accessibility tree via CSS\n   * (not just tabindex/aria-hidden, which axe-core's nested-interactive\n   * check does not treat as sufficient). Use when this Checkbox is\n   * nested inside another interactive/widget-role element that already\n   * owns the checked-state semantics (e.g. a listbox option) and the\n   * checkbox itself is purely decorative.\n   */\n  export let decorative = false;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, getContext } from \"svelte\";\n  import { readable } from \"svelte/store\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import { overflowTitle } from \"../utils/overflowTitle.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import CheckboxSkeleton from \"./CheckboxSkeleton.svelte\";\n\n  const dispatch = createEventDispatcher();\n\n  const ctx = getContext(\"carbon:CheckboxGroup\");\n\n  const {\n    selectedValues,\n    groupName,\n    groupRequired,\n    readonly: groupReadonly,\n    invalid: groupInvalid,\n    warn: groupWarn,\n    update: ctxUpdate,\n  } = ctx ?? {\n    selectedValues: readable([]),\n    groupName: readable(undefined),\n    groupRequired: readable(undefined),\n    readonly: readable(false),\n    invalid: readable(false),\n    warn: readable(false),\n  };\n\n  $: useGroup = !ctx && Array.isArray(group);\n  $: if (ctx) checked = $selectedValues.includes(value);\n  $: if (useGroup) checked = group.includes(value);\n\n  $: effectiveName = ctx ? ($groupName ?? name) : name;\n  $: effectiveRequired = ctx ? ($groupRequired ?? required) : required;\n  $: effectiveReadonly = $groupReadonly || readonly;\n  $: effectiveInvalid = $groupInvalid || invalid;\n  $: effectiveWarn = $groupWarn || warn;\n  $: showInvalid = effectiveInvalid && !disabled && !effectiveReadonly;\n  $: showWarn =\n    effectiveWarn && !effectiveInvalid && !disabled && !effectiveReadonly;\n\n  // Track previous checked value to avoid duplicate dispatches in Svelte 5\n  // The reactive statement will only dispatch when checked changes externally (e.g., via bind:checked)\n  let previousChecked = checked;\n  $: {\n    const hasChanged = previousChecked !== checked;\n    if (hasChanged) {\n      previousChecked = checked;\n      dispatch(\"check\", checked);\n    }\n  }\n\n  let refLabel = null;\n\n  $: helperId = `helper-${id}`;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n{#if skeleton}\n  <CheckboxSkeleton\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  />\n{:else}\n  <!-- svelte-ignore a11y-no-static-element-interactions -->\n  <div\n    class:bx--form-item={true}\n    class:bx--checkbox-wrapper={true}\n    class:bx--checkbox-wrapper--readonly={effectiveReadonly}\n    class:bx--checkbox-wrapper--invalid={showInvalid}\n    class:bx--checkbox-wrapper--warning={showWarn}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    <input\n      bind:this={ref}\n      type=\"checkbox\"\n      {value}\n      {checked}\n      {disabled}\n      {id}\n      {tabindex}\n      style:display={decorative ? \"none\" : undefined}\n      bind:indeterminate\n      name={effectiveName}\n      required={effectiveRequired}\n      aria-readonly={effectiveReadonly || undefined}\n      aria-invalid={showInvalid || undefined}\n      data-invalid={showInvalid || undefined}\n      aria-describedby={showInvalid\n        ? errorId\n        : showWarn\n          ? warnId\n          : helperText\n            ? helperId\n            : undefined}\n      class:bx--checkbox={true}\n      on:click={(event) => {\n        if (effectiveReadonly) {\n          event.preventDefault();\n        }\n      }}\n      on:change={(event) => {\n        if (effectiveReadonly) {\n          event.stopImmediatePropagation();\n          return;\n        }\n        if (ctxUpdate) {\n          ctxUpdate(value, !checked);\n        } else if (useGroup) {\n          group = group.includes(value)\n            ? group.filter((_value) => _value !== value)\n            : [...group, value];\n        } else {\n          const newChecked = !checked;\n          previousChecked = newChecked;\n          checked = newChecked;\n          // Dispatch directly for user-initiated changes to avoid duplicate events in Svelte 5\n          dispatch(\"check\", newChecked);\n        }\n      }}\n      on:change\n      on:focus\n      on:blur\n    >\n    <label\n      for={id}\n      use:overflowTitle={{ title, measure: refLabel }}\n      class:bx--checkbox-label={true}\n    >\n      <span\n        bind:this={refLabel}\n        class:bx--checkbox-label-text={true}\n        class:bx--visually-hidden={hideLabel}\n      >\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </span>\n    </label>\n    <div class:bx--checkbox__validation-msg={true}>\n      {#if showInvalid}\n        <WarningFilled class=\"bx--checkbox__invalid-icon\" />\n        <div id={errorId} class:bx--form-requirement={true}>{invalidText}</div>\n      {:else if showWarn}\n        <WarningAltFilled\n          class=\"bx--checkbox__invalid-icon bx--checkbox__invalid-icon--warning\"\n        />\n        <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n      {/if}\n    </div>\n    {#if helperText && !showInvalid && !showWarn}\n      <div\n        id={helperId}\n        class:bx--form__helper-text={true}\n        class:bx--form__helper-text--disabled={disabled}\n      >\n        {helperText}\n      </div>\n    {/if}\n  </div>\n{/if}\n","<script lang=\"ts\">\n  import { modifierKey } from '@txstate-mws/svelte-components'\n  import { FORM_CONTEXT, FORM_INHERITED_PATH, Field, type FormStore } from '@txstate-mws/svelte-forms'\n  import { Store } from '@txstate-mws/svelte-store'\n  import Information from 'carbon-icons-svelte/lib/Information.svelte'\n  import { createEventDispatcher, getContext } from 'svelte'\n  import { findIndex, groupby, isNotBlank, randomid } from 'txstate-utils'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import type { CheckboxListItem } from './util'\n  import { getDescribedBy } from './util.js'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  const dispatch = createEventDispatcher()\n  const defaultGroup = 'checkbox_group_' + randomid()\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props {\n    path: string\n    items: CheckboxListItem[]\n    number?: boolean\n    json?: boolean\n    conditional?: boolean\n    defaultValue?: any\n    required?: boolean\n    readonly?: boolean\n    legendText?: string\n    ariaLabelledBy?: string\n    helperText?: string\n    orientation?: 'horizontal' | 'vertical'\n    selectAll?: boolean\n    groupSelect?: boolean\n    /**\n     * This field returns an array, but each checkbox has its own value, which needs\n     * to be serialized/deserialized independently.\n     */\n    serialize?: ((value: any) => string)\n    /**\n     * This field returns an array, but each checkbox has its own value, which needs\n     * to be serialized/deserialized independently.\n     */\n    deserialize?: ((value: string) => any)\n  }\n\n  /** The path of the field in the form data. Supports dot notation for nested objects.\n   * @type {string}\n  */\n  export let path: string\n\n  /**\n   * An array of objects, each representing a checkbox item. Each item must have a 'value' property, and may optionally have 'label', 'disabled', 'group', and 'helperText' properties.\n   * @type {CheckboxListItem[]}\n   */\n  export let items: CheckboxListItem[] | undefined\n\n  /** If true, values will be treated as numbers when serializing and deserializing. */\n  export let number = false\n  /** If true, values will be serialized and deserialized as JSON strings. This is useful for storing complex objects as the value of each checkbox. */\n  export let json = false\n  /** If true, the field will only be displayed if its dependencies are met. This is typically used to show or hide a field based on the value of another field. */\n  export let conditional = true\n  /** The default value of the field. An array of the values of the checkbox items that should be checked by default. */\n  export let defaultValue: string[] = []\n  /** If true, the field will be required. At least one checkbox must be selected. */\n  export let required = false\n  /** If true, the field will be read-only. */\n  export let readonly = false\n  /** Optional text for the legend of the fieldset.\n   * @type {string | undefined}\n   */\n  export let legendText: string | undefined = undefined\n  /** Optional helper text to display below the legend.\n   * @type {string | undefined}\n   */\n  export let helperText: string | undefined = undefined\n  /** The orientation of the checkboxes. Can be 'horizontal' or 'vertical'. Defaults to 'vertical'. */\n  export let orientation = 'vertical'\n  /** If true, a \"Select All\" checkbox will be displayed. */\n  export let selectAll = false\n  /** If true, checkbox group titles become checkboxes with select-all functionality for the group. */\n  export let groupSelect = false\n  /** If true, the helperText for each checkbox will be hidden until the checkbox is focused or the tooltip button is clicked. */\n  export let helperTooltip = false\n  /**\n   * ID of an element that labels the field group\n   * using aria-labelledby will override the legend/labelText for screen readers.\n   * This is useful when appropriate label text exists outside of the component itself.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let ariaLabelledBy: string | undefined = undefined\n  /**\n   * This field returns an array, but each checkbox has its own value, which needs\n   * to be serialized/deserialized independently. This function should take the\n   * checkbox item's value and return a string representation of it.\n   * @type {((value: any) => string) | undefined}\n   */\n  export let serialize: ((value: any) => string) | undefined = undefined\n  /**\n   * This field returns an array, but each checkbox has its own value, which needs\n   * to be serialized/deserialized independently. This function should take the\n   * string representation of a checkbox item's value (as returned by `serialize`) and\n   * return the original value.\n   * @type {((value: string) => any) | undefined}\n   */\n  export let deserialize: ((value: string) => any) | undefined = undefined\n\n  export let disabled: boolean | undefined = undefined\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n  const valStore = store.getField<any[]>(finalPath)\n  let finalDeserialize: ((value: string) => any) | undefined\n  let finalSerialize: ((value: any) => string) | undefined\n\n  let selectallelement: HTMLInputElement | undefined\n  const selectallid = randomid()\n\n  const legendId = randomid()\n  const statusId = randomid()\n  $: resolvedLegendId = isNotBlank(legendText) ? legendId : undefined\n  $: fieldsetAriaLabelledBy = ariaLabelledBy ?? resolvedLegendId\n  let selected = new Set<string>()\n  let tooltip: string | undefined = undefined\n  let activeCheckbox: string\n  const checkboxelements: Record<string, HTMLInputElement> = {}\n  let fieldsetelement: HTMLFieldSetElement\n\n  const itemStore = new Store(items)\n  $: itemStore.set(items)\n  $: grouped = groupby($itemStore, item => item.group ?? defaultGroup)\n  $: itemToIndex = new Map($itemStore?.map((item, index) => [item, index]))\n  $: focusableItems = Object.entries(grouped).flatMap(([groupname, groupitems]) => {\n    if (groupitems.every(itm => itm.disabled)) return []\n    return [...(groupSelect ? [{ type: 'group', value: groupname }] : []), ...groupitems.map(item => ({ type: 'item', value: item.value }))].filter(itm => !itm.value.disabled)\n  })\n\n  function focusableItemToActiveCheckbox (itm: { type: string, value: any }) {\n    if (itm.type === 'group') return '__group-' + itm.value\n    return finalSerialize ? finalSerialize(itm.value) : itm.value\n  }\n\n  function onChange () {\n    return (e: Event & { currentTarget: HTMLInputElement }) => {\n      const value = e.currentTarget?.value\n      if (value == null) return\n      const checked = e.currentTarget.checked\n      if (checked) selected.add(value)\n      else selected.delete(value)\n      activeCheckbox = value\n      const newVal = Array.from(selected).map(v => finalDeserialize!(v))\n      void store.setField(finalPath, newVal)\n      dispatch('update', newVal)\n    }\n  }\n\n  function onKeydown (e: KeyboardEvent) {\n    if (modifierKey(e)) return\n    if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {\n      e.preventDefault()\n      e.stopPropagation()\n      const i = findIndex(focusableItems, itm => focusableItemToActiveCheckbox(itm) === activeCheckbox) ?? -1\n      if (i > 0) {\n        const newFocusedItem = focusableItems[i - 1]\n        activeCheckbox = focusableItemToActiveCheckbox(newFocusedItem)\n        if (newFocusedItem.type === 'item') {\n          checkboxelements[activeCheckbox]?.focus()\n        } else if (newFocusedItem.type === 'group') {\n          groupelements[activeCheckbox]?.focus()\n        }\n      } else if (selectallelement) {\n        activeCheckbox = '__selectall'\n        selectallelement.focus()\n      }\n    } else if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {\n      e.preventDefault()\n      e.stopPropagation()\n      const i = focusableItems.findIndex(itm => focusableItemToActiveCheckbox(itm) === activeCheckbox)\n      if (i < (focusableItems.length - 1)) {\n        const newFocusedItem = focusableItems[i + 1]\n        activeCheckbox = focusableItemToActiveCheckbox(newFocusedItem)\n        if (newFocusedItem.type === 'item') {\n          checkboxelements[activeCheckbox]?.focus()\n        } else if (newFocusedItem.type === 'group') {\n          groupelements[activeCheckbox]?.focus()\n        }\n      }\n    }\n  }\n\n  function activateTooltip (value: string) {\n    return () => {\n      tooltip = value\n    }\n  }\n  let tooltipTimer: ReturnType<typeof setTimeout> | undefined\n  function clearTooltip () {\n    tooltipTimer = setTimeout(() => { tooltip = undefined }, 10)\n  }\n  function keepTooltip () {\n    clearTimeout(tooltipTimer)\n  }\n\n  const checkboxIds: string[] = []\n  function getCheckboxId (idx: number) {\n    checkboxIds[idx] ??= randomid()\n    return checkboxIds[idx]\n  }\n\n  $: selected = new Set(finalSerialize != null && $valStore ? $valStore.map(finalSerialize) : [])\n\n  function resetActiveCheckbox (focusable: typeof focusableItems, selectAllEl: HTMLInputElement | undefined) {\n    if (!activeCheckbox || (!focusable.some(itm => focusableItemToActiveCheckbox(itm) === activeCheckbox) && (activeCheckbox !== '__selectall' || !selectAllEl))) {\n      activeCheckbox = focusable.length ? focusableItemToActiveCheckbox(focusable[0]) : '__selectall'\n    }\n  }\n  $: resetActiveCheckbox(focusableItems, selectallelement)\n\n  $: selectallchecked = finalSerialize ? !!items?.every(itm => itm.disabled || selected.has(finalSerialize!(itm.value))) : false\n  $: selectallindeterminate = selected.size > 0 && !selectallchecked\n\n  function selectAllChanged () {\n    activeCheckbox = '__selectall'\n    void store.setField(finalPath, selectallchecked ? [] : items?.filter(itm => !itm.disabled).map(itm => itm.value) ?? [])\n  }\n\n  const groupelements: Record<string, HTMLInputElement | undefined> = {}\n  $: groupchecked = Object.fromEntries(\n    Object.entries(grouped).map(([groupname, groupitems]) => {\n      if (!finalSerialize) return [groupname, false]\n      const allItems = groupitems.filter(itm => !itm.disabled).map(itm => finalSerialize!(itm.value))\n      return [groupname, allItems.every(v => selected.has(v))]\n    })\n  )\n  $: groupindeterminate = Object.fromEntries(\n    Object.entries(grouped).map(([groupname, groupitems]) => {\n      if (!finalSerialize) return [groupname, false]\n      const allItems = groupitems.filter(itm => !itm.disabled).map(itm => finalSerialize!(itm.value))\n      return [groupname, allItems.some(v => !selected.has(v)) && allItems.some(v => selected.has(v))]\n    })\n  )\n  function groupSelectChanged (groupname: string) {\n    return () => {\n      const subtracting = groupchecked[groupname]\n      const allItems = grouped[groupname].filter(itm => !itm.disabled).map(itm => finalSerialize!(itm.value))\n      const newSelected = new Set(selected)\n      for (const item of allItems) {\n        if (subtracting) newSelected.delete(item)\n        else newSelected.add(item)\n      }\n      activeCheckbox = '__group-' + groupname\n      void store.setField(finalPath, Array.from(newSelected).map(v => finalDeserialize!(v)))\n    }\n  }\n</script>\n<!--\n  @component\n\n  By default this component expects values to be strings. If you wish to use other types of values, you\n  must provide a `serialize` and `deserialize` function. If you set the `number` prop, an appropriate\n  serializer and deserializer will be provided by default. However, mixing numbers and strings would not work.\n  For that you should provide your own serialize and deserialize functions.\n-->\n<!-- Filter item-level disabled so pre-selected disabled values are stripped from the form value (item-level disabled = \"not selectable\"). -->\n<Field {path} {conditional} {defaultValue} {number} {json} {serialize} {deserialize} allowedValues={items?.filter(i => !i.disabled).map(i => i.value)} allowedValuesMultiple={true} bind:finalSerialize bind:finalDeserialize let:serialize={fSerialize} let:invalid let:messages let:onBlur let:setVal let:path={fullpath}>\n  <fieldset\n    bind:this={fieldsetelement}\n    data-invalid={invalid}\n    class:cs-field={true} class:bx--fieldset={true} class:bx--fieldset--no-margin={true}\n    aria-labelledby={fieldsetAriaLabelledBy}\n  >\n    {#if legendText}\n      <legend class:bx--label={true} id={legendId}>{legendText}{#if required}<span aria-hidden=\"true\">{' '}*</span>{/if}</legend>\n    {/if}\n    <div role=\"listbox\" class:horizontal={orientation === 'horizontal'}\n      aria-multiselectable={true}\n      on:focusout={() => { clearTooltip(); onBlur(); dispatch('blur') }} on:focusin={() => { keepTooltip(); dispatch('focus') }}>\n      {#if selectAll && !readonly}\n        <div class:bx--form-item={true} class:bx--checkbox-wrapper={true}>\n          <input id={selectallid} bind:this={selectallelement} type=\"checkbox\"\n            class:bx--checkbox={true}\n            bind:indeterminate={selectallindeterminate} checked={selectallchecked}\n            on:change={selectAllChanged} on:keydown={onKeydown}\n            tabindex={activeCheckbox === '__selectall' ? 0 : -1} aria-describedby={getDescribedBy([resolvedLegendId, statusId])}\n          >\n          <label for={selectallid} class:bx--checkbox-label={true}><span class:bx--checkbox-label-text={true}>Select All</span></label>\n        </div>\n      {/if}\n      {#each Object.entries(grouped) as [groupname, groupitems] (groupname)}\n        {#if groupname !== defaultGroup}\n          {#if groupSelect}\n            <div class:bx--checkbox-wrapper={true} class:bx--form-item={true}>\n              <input type=\"checkbox\"\n                id=\"{selectallid}-{groupname}\"\n                class:bx--checkbox={true}\n                bind:this={groupelements['__group-' + groupname]}\n                bind:indeterminate={groupindeterminate[groupname]}\n                checked={groupchecked[groupname]}\n                on:keydown={onKeydown}\n                tabindex={activeCheckbox === '__group-' + groupname ? 0 : -1}\n                aria-describedby={getDescribedBy([resolvedLegendId, statusId])}\n                on:change={groupSelectChanged(groupname)}\n              >\n              <label for=\"{selectallid}-{groupname}\" class:bx--checkbox-label={true}>\n                <span class:bx--checkbox-label-text={true}>{groupname}</span>\n              </label>\n            </div>\n          {:else}\n            <div class:bx--label={true}>{groupname}</div>\n          {/if}\n        {/if}\n        {#each groupitems as item}\n          {@const val = fSerialize(item.value)}\n          {@const index = itemToIndex.get(item) ?? 0}\n          {@const ckId = getCheckboxId(index)}\n          <div class:bx--form-item={true} class:bx--checkbox-wrapper={true} class:field-checkboxlist-indent={groupname !== defaultGroup && groupSelect && orientation !== 'horizontal'}>\n            <input\n              bind:this={checkboxelements[val]}\n              type=\"checkbox\"\n              value={val}\n              checked={selected.has(val)}\n              tabindex={activeCheckbox === val ? 0 : -1}\n              disabled={item.disabled || isDisabled}\n              id={ckId}\n              name={fullpath}\n              readonly={readonly}\n              aria-required={required}\n              class:bx--checkbox={true}\n              aria-describedby={getDescribedBy([resolvedLegendId, statusId, item.helperText ? `${ckId}-tooltip` : undefined])}\n              aria-invalid={invalid}\n              on:change={onChange()}\n              on:keydown={onKeydown}\n              on:focus={activateTooltip(item.value)}\n            />\n            <label for={ckId} class:bx--checkbox-label={true}>\n              <span class:bx--checkbox-label-text={true}>\n                <slot name=\"labelText\" {item}>\n                  {item.label ?? item.value}\n                </slot>\n              </span>\n            </label>\n            {#if item.helperText}\n              <button type=\"button\" tabindex=\"-1\" style:display={helperTooltip ? 'inline' : 'none'} class=\"field-checkboxlist-tooltip-button\" on:click={activateTooltip(item.value)} aria-label=\"shows help text, but help text already included in checkbox description\"><Information/></button>\n              <div id={`${ckId}-tooltip`} aria-hidden={helperTooltip} class=\"tooltip\" class:tooltip-shown={!helperTooltip || item.value === tooltip}>\n                {item.helperText}\n              </div>\n            {/if}\n          </div>\n        {/each}\n      {/each}\n    </div>\n    <FieldStatusText id={statusId} {helperText} {messages} {invalid} />\n  </fieldset>\n</Field>\n\n<style>\n  .field-checkboxlist-indent {\n    margin-left: 1.5rem;\n  }\n  .horizontal {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: flex-start;\n  }\n  .horizontal > * {\n    width: min(max(10em, 25%), 50%)\n  }\n  div.bx--form-item {\n    flex-direction: row;\n    align-items: center;\n    flex-wrap: wrap;\n    gap: 0 0.5em;\n  }\n  .tooltip {\n    display: none;\n    font-size: 0.875rem;\n  }\n  :not(.horizontal) .tooltip {\n    margin-left: 1.625rem;\n  }\n  .tooltip.tooltip-shown {\n    display: block;\n    width: 100%;\n  }\n</style>\n","<script lang=\"ts\" context=\"module\">\n  export const FILTER_UI_CONTEXT = {}\n</script>\n<script lang=\"ts\">\n  import { setContext } from 'svelte'\n  setContext(FILTER_UI_CONTEXT, { quickslot: true })\n</script>\n\n<slot />\n","export const HOOKS = [\n    \"onChange\",\n    \"onClose\",\n    \"onDayCreate\",\n    \"onDestroy\",\n    \"onKeyDown\",\n    \"onMonthChange\",\n    \"onOpen\",\n    \"onParseConfig\",\n    \"onReady\",\n    \"onValueUpdate\",\n    \"onYearChange\",\n    \"onPreCalendarPosition\",\n];\nexport const defaults = {\n    _disable: [],\n    allowInput: false,\n    allowInvalidPreload: false,\n    altFormat: \"F j, Y\",\n    altInput: false,\n    altInputClass: \"form-control input\",\n    animate: typeof window === \"object\" &&\n        window.navigator.userAgent.indexOf(\"MSIE\") === -1,\n    ariaDateFormat: \"F j, Y\",\n    autoFillDefaultTime: true,\n    clickOpens: true,\n    closeOnSelect: true,\n    conjunction: \", \",\n    dateFormat: \"Y-m-d\",\n    defaultHour: 12,\n    defaultMinute: 0,\n    defaultSeconds: 0,\n    disable: [],\n    disableMobile: false,\n    enableSeconds: false,\n    enableTime: false,\n    errorHandler: (err) => typeof console !== \"undefined\" && console.warn(err),\n    getWeek: (givenDate) => {\n        const date = new Date(givenDate.getTime());\n        date.setHours(0, 0, 0, 0);\n        date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));\n        var week1 = new Date(date.getFullYear(), 0, 4);\n        return (1 +\n            Math.round(((date.getTime() - week1.getTime()) / 86400000 -\n                3 +\n                ((week1.getDay() + 6) % 7)) /\n                7));\n    },\n    hourIncrement: 1,\n    ignoredFocusElements: [],\n    inline: false,\n    locale: \"default\",\n    minuteIncrement: 5,\n    mode: \"single\",\n    monthSelectorType: \"dropdown\",\n    nextArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>\",\n    noCalendar: false,\n    now: new Date(),\n    onChange: [],\n    onClose: [],\n    onDayCreate: [],\n    onDestroy: [],\n    onKeyDown: [],\n    onMonthChange: [],\n    onOpen: [],\n    onParseConfig: [],\n    onReady: [],\n    onValueUpdate: [],\n    onYearChange: [],\n    onPreCalendarPosition: [],\n    plugins: [],\n    position: \"auto\",\n    positionElement: undefined,\n    prevArrow: \"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>\",\n    shorthandCurrentMonth: false,\n    showMonths: 1,\n    static: false,\n    time_24hr: false,\n    weekNumbers: false,\n    wrap: false,\n};\n","export const english = {\n    weekdays: {\n        shorthand: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n        longhand: [\n            \"Sunday\",\n            \"Monday\",\n            \"Tuesday\",\n            \"Wednesday\",\n            \"Thursday\",\n            \"Friday\",\n            \"Saturday\",\n        ],\n    },\n    months: {\n        shorthand: [\n            \"Jan\",\n            \"Feb\",\n            \"Mar\",\n            \"Apr\",\n            \"May\",\n            \"Jun\",\n            \"Jul\",\n            \"Aug\",\n            \"Sep\",\n            \"Oct\",\n            \"Nov\",\n            \"Dec\",\n        ],\n        longhand: [\n            \"January\",\n            \"February\",\n            \"March\",\n            \"April\",\n            \"May\",\n            \"June\",\n            \"July\",\n            \"August\",\n            \"September\",\n            \"October\",\n            \"November\",\n            \"December\",\n        ],\n    },\n    daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n    firstDayOfWeek: 0,\n    ordinal: (nth) => {\n        const s = nth % 100;\n        if (s > 3 && s < 21)\n            return \"th\";\n        switch (s % 10) {\n            case 1:\n                return \"st\";\n            case 2:\n                return \"nd\";\n            case 3:\n                return \"rd\";\n            default:\n                return \"th\";\n        }\n    },\n    rangeSeparator: \" to \",\n    weekAbbreviation: \"Wk\",\n    scrollTitle: \"Scroll to increment\",\n    toggleTitle: \"Click to toggle\",\n    amPM: [\"AM\", \"PM\"],\n    yearAriaLabel: \"Year\",\n    monthAriaLabel: \"Month\",\n    hourAriaLabel: \"Hour\",\n    minuteAriaLabel: \"Minute\",\n    time_24hr: false,\n};\nexport default english;\n","export const pad = (number, length = 2) => `000${number}`.slice(length * -1);\nexport const int = (bool) => (bool === true ? 1 : 0);\nexport function debounce(fn, wait) {\n    let t;\n    return function () {\n        clearTimeout(t);\n        t = setTimeout(() => fn.apply(this, arguments), wait);\n    };\n}\nexport const arrayify = (obj) => obj instanceof Array ? obj : [obj];\n","export function toggleClass(elem, className, bool) {\n    if (bool === true)\n        return elem.classList.add(className);\n    elem.classList.remove(className);\n}\nexport function createElement(tag, className, content) {\n    const e = window.document.createElement(tag);\n    className = className || \"\";\n    content = content || \"\";\n    e.className = className;\n    if (content !== undefined)\n        e.textContent = content;\n    return e;\n}\nexport function clearNode(node) {\n    while (node.firstChild)\n        node.removeChild(node.firstChild);\n}\nexport function findParent(node, condition) {\n    if (condition(node))\n        return node;\n    else if (node.parentNode)\n        return findParent(node.parentNode, condition);\n    return undefined;\n}\nexport function createNumberInput(inputClassName, opts) {\n    const wrapper = createElement(\"div\", \"numInputWrapper\"), numInput = createElement(\"input\", \"numInput \" + inputClassName), arrowUp = createElement(\"span\", \"arrowUp\"), arrowDown = createElement(\"span\", \"arrowDown\");\n    if (navigator.userAgent.indexOf(\"MSIE 9.0\") === -1) {\n        numInput.type = \"number\";\n    }\n    else {\n        numInput.type = \"text\";\n        numInput.pattern = \"\\\\d*\";\n    }\n    if (opts !== undefined)\n        for (const key in opts)\n            numInput.setAttribute(key, opts[key]);\n    wrapper.appendChild(numInput);\n    wrapper.appendChild(arrowUp);\n    wrapper.appendChild(arrowDown);\n    return wrapper;\n}\nexport function getEventTarget(event) {\n    try {\n        if (typeof event.composedPath === \"function\") {\n            const path = event.composedPath();\n            return path[0];\n        }\n        return event.target;\n    }\n    catch (error) {\n        return event.target;\n    }\n}\n","import { int, pad } from \"../utils\";\nconst doNothing = () => undefined;\nexport const monthToStr = (monthNumber, shorthand, locale) => locale.months[shorthand ? \"shorthand\" : \"longhand\"][monthNumber];\nexport const revFormat = {\n    D: doNothing,\n    F: function (dateObj, monthName, locale) {\n        dateObj.setMonth(locale.months.longhand.indexOf(monthName));\n    },\n    G: (dateObj, hour) => {\n        dateObj.setHours(parseFloat(hour));\n    },\n    H: (dateObj, hour) => {\n        dateObj.setHours(parseFloat(hour));\n    },\n    J: (dateObj, day) => {\n        dateObj.setDate(parseFloat(day));\n    },\n    K: (dateObj, amPM, locale) => {\n        dateObj.setHours((dateObj.getHours() % 12) +\n            12 * int(new RegExp(locale.amPM[1], \"i\").test(amPM)));\n    },\n    M: function (dateObj, shortMonth, locale) {\n        dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));\n    },\n    S: (dateObj, seconds) => {\n        dateObj.setSeconds(parseFloat(seconds));\n    },\n    U: (_, unixSeconds) => new Date(parseFloat(unixSeconds) * 1000),\n    W: function (dateObj, weekNum, locale) {\n        const weekNumber = parseInt(weekNum);\n        const date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);\n        date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);\n        return date;\n    },\n    Y: (dateObj, year) => {\n        dateObj.setFullYear(parseFloat(year));\n    },\n    Z: (_, ISODate) => new Date(ISODate),\n    d: (dateObj, day) => {\n        dateObj.setDate(parseFloat(day));\n    },\n    h: (dateObj, hour) => {\n        dateObj.setHours(parseFloat(hour));\n    },\n    i: (dateObj, minutes) => {\n        dateObj.setMinutes(parseFloat(minutes));\n    },\n    j: (dateObj, day) => {\n        dateObj.setDate(parseFloat(day));\n    },\n    l: doNothing,\n    m: (dateObj, month) => {\n        dateObj.setMonth(parseFloat(month) - 1);\n    },\n    n: (dateObj, month) => {\n        dateObj.setMonth(parseFloat(month) - 1);\n    },\n    s: (dateObj, seconds) => {\n        dateObj.setSeconds(parseFloat(seconds));\n    },\n    u: (_, unixMillSeconds) => new Date(parseFloat(unixMillSeconds)),\n    w: doNothing,\n    y: (dateObj, year) => {\n        dateObj.setFullYear(2000 + parseFloat(year));\n    },\n};\nexport const tokenRegex = {\n    D: \"(\\\\w+)\",\n    F: \"(\\\\w+)\",\n    G: \"(\\\\d\\\\d|\\\\d)\",\n    H: \"(\\\\d\\\\d|\\\\d)\",\n    J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n    K: \"\",\n    M: \"(\\\\w+)\",\n    S: \"(\\\\d\\\\d|\\\\d)\",\n    U: \"(.+)\",\n    W: \"(\\\\d\\\\d|\\\\d)\",\n    Y: \"(\\\\d{4})\",\n    Z: \"(.+)\",\n    d: \"(\\\\d\\\\d|\\\\d)\",\n    h: \"(\\\\d\\\\d|\\\\d)\",\n    i: \"(\\\\d\\\\d|\\\\d)\",\n    j: \"(\\\\d\\\\d|\\\\d)\",\n    l: \"(\\\\w+)\",\n    m: \"(\\\\d\\\\d|\\\\d)\",\n    n: \"(\\\\d\\\\d|\\\\d)\",\n    s: \"(\\\\d\\\\d|\\\\d)\",\n    u: \"(.+)\",\n    w: \"(\\\\d\\\\d|\\\\d)\",\n    y: \"(\\\\d{2})\",\n};\nexport const formats = {\n    Z: (date) => date.toISOString(),\n    D: function (date, locale, options) {\n        return locale.weekdays.shorthand[formats.w(date, locale, options)];\n    },\n    F: function (date, locale, options) {\n        return monthToStr(formats.n(date, locale, options) - 1, false, locale);\n    },\n    G: function (date, locale, options) {\n        return pad(formats.h(date, locale, options));\n    },\n    H: (date) => pad(date.getHours()),\n    J: function (date, locale) {\n        return locale.ordinal !== undefined\n            ? date.getDate() + locale.ordinal(date.getDate())\n            : date.getDate();\n    },\n    K: (date, locale) => locale.amPM[int(date.getHours() > 11)],\n    M: function (date, locale) {\n        return monthToStr(date.getMonth(), true, locale);\n    },\n    S: (date) => pad(date.getSeconds()),\n    U: (date) => date.getTime() / 1000,\n    W: function (date, _, options) {\n        return options.getWeek(date);\n    },\n    Y: (date) => pad(date.getFullYear(), 4),\n    d: (date) => pad(date.getDate()),\n    h: (date) => (date.getHours() % 12 ? date.getHours() % 12 : 12),\n    i: (date) => pad(date.getMinutes()),\n    j: (date) => date.getDate(),\n    l: function (date, locale) {\n        return locale.weekdays.longhand[date.getDay()];\n    },\n    m: (date) => pad(date.getMonth() + 1),\n    n: (date) => date.getMonth() + 1,\n    s: (date) => date.getSeconds(),\n    u: (date) => date.getTime(),\n    w: (date) => date.getDay(),\n    y: (date) => String(date.getFullYear()).substring(2),\n};\n","import { tokenRegex, revFormat, formats, } from \"./formatting\";\nimport { defaults } from \"../types/options\";\nimport { english } from \"../l10n/default\";\nexport const createDateFormatter = ({ config = defaults, l10n = english, isMobile = false, }) => (dateObj, frmt, overrideLocale) => {\n    const locale = overrideLocale || l10n;\n    if (config.formatDate !== undefined && !isMobile) {\n        return config.formatDate(dateObj, frmt, locale);\n    }\n    return frmt\n        .split(\"\")\n        .map((c, i, arr) => formats[c] && arr[i - 1] !== \"\\\\\"\n        ? formats[c](dateObj, locale, config)\n        : c !== \"\\\\\"\n            ? c\n            : \"\")\n        .join(\"\");\n};\nexport const createDateParser = ({ config = defaults, l10n = english }) => (date, givenFormat, timeless, customLocale) => {\n    if (date !== 0 && !date)\n        return undefined;\n    const locale = customLocale || l10n;\n    let parsedDate;\n    const dateOrig = date;\n    if (date instanceof Date)\n        parsedDate = new Date(date.getTime());\n    else if (typeof date !== \"string\" &&\n        date.toFixed !== undefined)\n        parsedDate = new Date(date);\n    else if (typeof date === \"string\") {\n        const format = givenFormat || (config || defaults).dateFormat;\n        const datestr = String(date).trim();\n        if (datestr === \"today\") {\n            parsedDate = new Date();\n            timeless = true;\n        }\n        else if (/Z$/.test(datestr) ||\n            /GMT$/.test(datestr))\n            parsedDate = new Date(date);\n        else if (config && config.parseDate)\n            parsedDate = config.parseDate(date, format);\n        else {\n            parsedDate =\n                !config || !config.noCalendar\n                    ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)\n                    : new Date(new Date().setHours(0, 0, 0, 0));\n            let matched, ops = [];\n            for (let i = 0, matchIndex = 0, regexStr = \"\"; i < format.length; i++) {\n                const token = format[i];\n                const isBackSlash = token === \"\\\\\";\n                const escaped = format[i - 1] === \"\\\\\" || isBackSlash;\n                if (tokenRegex[token] && !escaped) {\n                    regexStr += tokenRegex[token];\n                    const match = new RegExp(regexStr).exec(date);\n                    if (match && (matched = true)) {\n                        ops[token !== \"Y\" ? \"push\" : \"unshift\"]({\n                            fn: revFormat[token],\n                            val: match[++matchIndex],\n                        });\n                    }\n                }\n                else if (!isBackSlash)\n                    regexStr += \".\";\n                ops.forEach(({ fn, val }) => (parsedDate = fn(parsedDate, val, locale) || parsedDate));\n            }\n            parsedDate = matched ? parsedDate : undefined;\n        }\n    }\n    if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {\n        config.errorHandler(new Error(`Invalid date provided: ${dateOrig}`));\n        return undefined;\n    }\n    if (timeless === true)\n        parsedDate.setHours(0, 0, 0, 0);\n    return parsedDate;\n};\nexport function compareDates(date1, date2, timeless = true) {\n    if (timeless !== false) {\n        return (new Date(date1.getTime()).setHours(0, 0, 0, 0) -\n            new Date(date2.getTime()).setHours(0, 0, 0, 0));\n    }\n    return date1.getTime() - date2.getTime();\n}\nexport function compareTimes(date1, date2) {\n    return (3600 * (date1.getHours() - date2.getHours()) +\n        60 * (date1.getMinutes() - date2.getMinutes()) +\n        date1.getSeconds() -\n        date2.getSeconds());\n}\nexport const isBetween = (ts, ts1, ts2) => {\n    return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);\n};\nexport const duration = {\n    DAY: 86400000,\n};\nexport function getDefaultHours(config) {\n    let hours = config.defaultHour;\n    let minutes = config.defaultMinute;\n    let seconds = config.defaultSeconds;\n    if (config.minDate !== undefined) {\n        const minHour = config.minDate.getHours();\n        const minMinutes = config.minDate.getMinutes();\n        const minSeconds = config.minDate.getSeconds();\n        if (hours < minHour) {\n            hours = minHour;\n        }\n        if (hours === minHour && minutes < minMinutes) {\n            minutes = minMinutes;\n        }\n        if (hours === minHour && minutes === minMinutes && seconds < minSeconds)\n            seconds = config.minDate.getSeconds();\n    }\n    if (config.maxDate !== undefined) {\n        const maxHr = config.maxDate.getHours();\n        const maxMinutes = config.maxDate.getMinutes();\n        hours = Math.min(hours, maxHr);\n        if (hours === maxHr)\n            minutes = Math.min(maxMinutes, minutes);\n        if (hours === maxHr && minutes === maxMinutes)\n            seconds = config.maxDate.getSeconds();\n    }\n    return { hours, minutes, seconds };\n}\n","\"use strict\";\nif (typeof Object.assign !== \"function\") {\n    Object.assign = function (target, ...args) {\n        if (!target) {\n            throw TypeError(\"Cannot convert undefined or null to object\");\n        }\n        for (const source of args) {\n            if (source) {\n                Object.keys(source).forEach((key) => (target[key] = source[key]));\n            }\n        }\n        return target;\n    };\n}\n","import { defaults as defaultOptions, HOOKS, } from \"./types/options\";\nimport English from \"./l10n/default\";\nimport { arrayify, debounce, int, pad } from \"./utils\";\nimport { clearNode, createElement, createNumberInput, findParent, toggleClass, getEventTarget, } from \"./utils/dom\";\nimport { compareDates, createDateParser, createDateFormatter, duration, isBetween, getDefaultHours, } from \"./utils/dates\";\nimport { tokenRegex, monthToStr } from \"./utils/formatting\";\nimport \"./utils/polyfills\";\nconst DEBOUNCED_CHANGE_MS = 300;\nfunction FlatpickrInstance(element, instanceConfig) {\n    const self = {\n        config: Object.assign(Object.assign({}, defaultOptions), flatpickr.defaultConfig),\n        l10n: English,\n    };\n    self.parseDate = createDateParser({ config: self.config, l10n: self.l10n });\n    self._handlers = [];\n    self.pluginElements = [];\n    self.loadedPlugins = [];\n    self._bind = bind;\n    self._setHoursFromDate = setHoursFromDate;\n    self._positionCalendar = positionCalendar;\n    self.changeMonth = changeMonth;\n    self.changeYear = changeYear;\n    self.clear = clear;\n    self.close = close;\n    self._createElement = createElement;\n    self.destroy = destroy;\n    self.isEnabled = isEnabled;\n    self.jumpToDate = jumpToDate;\n    self.open = open;\n    self.redraw = redraw;\n    self.set = set;\n    self.setDate = setDate;\n    self.toggle = toggle;\n    function setupHelperFunctions() {\n        self.utils = {\n            getDaysInMonth(month = self.currentMonth, yr = self.currentYear) {\n                if (month === 1 && ((yr % 4 === 0 && yr % 100 !== 0) || yr % 400 === 0))\n                    return 29;\n                return self.l10n.daysInMonth[month];\n            },\n        };\n    }\n    function init() {\n        self.element = self.input = element;\n        self.isOpen = false;\n        parseConfig();\n        setupLocale();\n        setupInputs();\n        setupDates();\n        setupHelperFunctions();\n        if (!self.isMobile)\n            build();\n        bindEvents();\n        if (self.selectedDates.length || self.config.noCalendar) {\n            if (self.config.enableTime) {\n                setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj : undefined);\n            }\n            updateValue(false);\n        }\n        setCalendarWidth();\n        const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n        if (!self.isMobile && isSafari) {\n            positionCalendar();\n        }\n        triggerEvent(\"onReady\");\n    }\n    function bindToInstance(fn) {\n        return fn.bind(self);\n    }\n    function setCalendarWidth() {\n        const config = self.config;\n        if (config.weekNumbers === false && config.showMonths === 1) {\n            return;\n        }\n        else if (config.noCalendar !== true) {\n            window.requestAnimationFrame(function () {\n                if (self.calendarContainer !== undefined) {\n                    self.calendarContainer.style.visibility = \"hidden\";\n                    self.calendarContainer.style.display = \"block\";\n                }\n                if (self.daysContainer !== undefined) {\n                    const daysWidth = (self.days.offsetWidth + 1) * config.showMonths;\n                    self.daysContainer.style.width = daysWidth + \"px\";\n                    self.calendarContainer.style.width =\n                        daysWidth +\n                            (self.weekWrapper !== undefined\n                                ? self.weekWrapper.offsetWidth\n                                : 0) +\n                            \"px\";\n                    self.calendarContainer.style.removeProperty(\"visibility\");\n                    self.calendarContainer.style.removeProperty(\"display\");\n                }\n            });\n        }\n    }\n    function updateTime(e) {\n        if (self.selectedDates.length === 0) {\n            const defaultDate = self.config.minDate === undefined ||\n                compareDates(new Date(), self.config.minDate) >= 0\n                ? new Date()\n                : new Date(self.config.minDate.getTime());\n            const defaults = getDefaultHours(self.config);\n            defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());\n            self.selectedDates = [defaultDate];\n            self.latestSelectedDateObj = defaultDate;\n        }\n        if (e !== undefined && e.type !== \"blur\") {\n            timeWrapper(e);\n        }\n        const prevValue = self._input.value;\n        setHoursFromInputs();\n        updateValue();\n        if (self._input.value !== prevValue) {\n            self._debouncedChange();\n        }\n    }\n    function ampm2military(hour, amPM) {\n        return (hour % 12) + 12 * int(amPM === self.l10n.amPM[1]);\n    }\n    function military2ampm(hour) {\n        switch (hour % 24) {\n            case 0:\n            case 12:\n                return 12;\n            default:\n                return hour % 12;\n        }\n    }\n    function setHoursFromInputs() {\n        if (self.hourElement === undefined || self.minuteElement === undefined)\n            return;\n        let hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24, minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60, seconds = self.secondElement !== undefined\n            ? (parseInt(self.secondElement.value, 10) || 0) % 60\n            : 0;\n        if (self.amPM !== undefined) {\n            hours = ampm2military(hours, self.amPM.textContent);\n        }\n        const limitMinHours = self.config.minTime !== undefined ||\n            (self.config.minDate &&\n                self.minDateHasTime &&\n                self.latestSelectedDateObj &&\n                compareDates(self.latestSelectedDateObj, self.config.minDate, true) ===\n                    0);\n        const limitMaxHours = self.config.maxTime !== undefined ||\n            (self.config.maxDate &&\n                self.maxDateHasTime &&\n                self.latestSelectedDateObj &&\n                compareDates(self.latestSelectedDateObj, self.config.maxDate, true) ===\n                    0);\n        if (limitMaxHours) {\n            const maxTime = self.config.maxTime !== undefined\n                ? self.config.maxTime\n                : self.config.maxDate;\n            hours = Math.min(hours, maxTime.getHours());\n            if (hours === maxTime.getHours())\n                minutes = Math.min(minutes, maxTime.getMinutes());\n            if (minutes === maxTime.getMinutes())\n                seconds = Math.min(seconds, maxTime.getSeconds());\n        }\n        if (limitMinHours) {\n            const minTime = self.config.minTime !== undefined\n                ? self.config.minTime\n                : self.config.minDate;\n            hours = Math.max(hours, minTime.getHours());\n            if (hours === minTime.getHours() && minutes < minTime.getMinutes())\n                minutes = minTime.getMinutes();\n            if (minutes === minTime.getMinutes())\n                seconds = Math.max(seconds, minTime.getSeconds());\n        }\n        setHours(hours, minutes, seconds);\n    }\n    function setHoursFromDate(dateObj) {\n        const date = dateObj || self.latestSelectedDateObj;\n        if (date) {\n            setHours(date.getHours(), date.getMinutes(), date.getSeconds());\n        }\n    }\n    function setHours(hours, minutes, seconds) {\n        if (self.latestSelectedDateObj !== undefined) {\n            self.latestSelectedDateObj.setHours(hours % 24, minutes, seconds || 0, 0);\n        }\n        if (!self.hourElement || !self.minuteElement || self.isMobile)\n            return;\n        self.hourElement.value = pad(!self.config.time_24hr\n            ? ((12 + hours) % 12) + 12 * int(hours % 12 === 0)\n            : hours);\n        self.minuteElement.value = pad(minutes);\n        if (self.amPM !== undefined)\n            self.amPM.textContent = self.l10n.amPM[int(hours >= 12)];\n        if (self.secondElement !== undefined)\n            self.secondElement.value = pad(seconds);\n    }\n    function onYearInput(event) {\n        const eventTarget = getEventTarget(event);\n        const year = parseInt(eventTarget.value) + (event.delta || 0);\n        if (year / 1000 > 1 ||\n            (event.key === \"Enter\" && !/[^\\d]/.test(year.toString()))) {\n            changeYear(year);\n        }\n    }\n    function bind(element, event, handler, options) {\n        if (event instanceof Array)\n            return event.forEach((ev) => bind(element, ev, handler, options));\n        if (element instanceof Array)\n            return element.forEach((el) => bind(el, event, handler, options));\n        element.addEventListener(event, handler, options);\n        self._handlers.push({\n            remove: () => element.removeEventListener(event, handler),\n        });\n    }\n    function triggerChange() {\n        triggerEvent(\"onChange\");\n    }\n    function bindEvents() {\n        if (self.config.wrap) {\n            [\"open\", \"close\", \"toggle\", \"clear\"].forEach((evt) => {\n                Array.prototype.forEach.call(self.element.querySelectorAll(`[data-${evt}]`), (el) => bind(el, \"click\", self[evt]));\n            });\n        }\n        if (self.isMobile) {\n            setupMobile();\n            return;\n        }\n        const debouncedResize = debounce(onResize, 50);\n        self._debouncedChange = debounce(triggerChange, DEBOUNCED_CHANGE_MS);\n        if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent))\n            bind(self.daysContainer, \"mouseover\", (e) => {\n                if (self.config.mode === \"range\")\n                    onMouseOver(getEventTarget(e));\n            });\n        bind(window.document.body, \"keydown\", onKeyDown);\n        if (!self.config.inline && !self.config.static)\n            bind(window, \"resize\", debouncedResize);\n        if (window.ontouchstart !== undefined)\n            bind(window.document, \"touchstart\", documentClick);\n        else\n            bind(window.document, \"mousedown\", documentClick);\n        bind(window.document, \"focus\", documentClick, { capture: true });\n        if (self.config.clickOpens === true) {\n            bind(self._input, \"focus\", self.open);\n            bind(self._input, \"click\", self.open);\n        }\n        if (self.daysContainer !== undefined) {\n            bind(self.monthNav, \"click\", onMonthNavClick);\n            bind(self.monthNav, [\"keyup\", \"increment\"], onYearInput);\n            bind(self.daysContainer, \"click\", selectDate);\n        }\n        if (self.timeContainer !== undefined &&\n            self.minuteElement !== undefined &&\n            self.hourElement !== undefined) {\n            const selText = (e) => getEventTarget(e).select();\n            bind(self.timeContainer, [\"increment\"], updateTime);\n            bind(self.timeContainer, \"blur\", updateTime, { capture: true });\n            bind(self.timeContainer, \"click\", timeIncrement);\n            bind([self.hourElement, self.minuteElement], [\"focus\", \"click\"], selText);\n            if (self.secondElement !== undefined)\n                bind(self.secondElement, \"focus\", () => self.secondElement && self.secondElement.select());\n            if (self.amPM !== undefined) {\n                bind(self.amPM, \"click\", (e) => {\n                    updateTime(e);\n                    triggerChange();\n                });\n            }\n        }\n        if (self.config.allowInput) {\n            bind(self._input, \"blur\", onBlur);\n        }\n    }\n    function jumpToDate(jumpDate, triggerChange) {\n        const jumpTo = jumpDate !== undefined\n            ? self.parseDate(jumpDate)\n            : self.latestSelectedDateObj ||\n                (self.config.minDate && self.config.minDate > self.now\n                    ? self.config.minDate\n                    : self.config.maxDate && self.config.maxDate < self.now\n                        ? self.config.maxDate\n                        : self.now);\n        const oldYear = self.currentYear;\n        const oldMonth = self.currentMonth;\n        try {\n            if (jumpTo !== undefined) {\n                self.currentYear = jumpTo.getFullYear();\n                self.currentMonth = jumpTo.getMonth();\n            }\n        }\n        catch (e) {\n            e.message = \"Invalid date supplied: \" + jumpTo;\n            self.config.errorHandler(e);\n        }\n        if (triggerChange && self.currentYear !== oldYear) {\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n        if (triggerChange &&\n            (self.currentYear !== oldYear || self.currentMonth !== oldMonth)) {\n            triggerEvent(\"onMonthChange\");\n        }\n        self.redraw();\n    }\n    function timeIncrement(e) {\n        const eventTarget = getEventTarget(e);\n        if (~eventTarget.className.indexOf(\"arrow\"))\n            incrementNumInput(e, eventTarget.classList.contains(\"arrowUp\") ? 1 : -1);\n    }\n    function incrementNumInput(e, delta, inputElem) {\n        const target = e && getEventTarget(e);\n        const input = inputElem ||\n            (target && target.parentNode && target.parentNode.firstChild);\n        const event = createEvent(\"increment\");\n        event.delta = delta;\n        input && input.dispatchEvent(event);\n    }\n    function build() {\n        const fragment = window.document.createDocumentFragment();\n        self.calendarContainer = createElement(\"div\", \"flatpickr-calendar\");\n        self.calendarContainer.tabIndex = -1;\n        if (!self.config.noCalendar) {\n            fragment.appendChild(buildMonthNav());\n            self.innerContainer = createElement(\"div\", \"flatpickr-innerContainer\");\n            if (self.config.weekNumbers) {\n                const { weekWrapper, weekNumbers } = buildWeeks();\n                self.innerContainer.appendChild(weekWrapper);\n                self.weekNumbers = weekNumbers;\n                self.weekWrapper = weekWrapper;\n            }\n            self.rContainer = createElement(\"div\", \"flatpickr-rContainer\");\n            self.rContainer.appendChild(buildWeekdays());\n            if (!self.daysContainer) {\n                self.daysContainer = createElement(\"div\", \"flatpickr-days\");\n                self.daysContainer.tabIndex = -1;\n            }\n            buildDays();\n            self.rContainer.appendChild(self.daysContainer);\n            self.innerContainer.appendChild(self.rContainer);\n            fragment.appendChild(self.innerContainer);\n        }\n        if (self.config.enableTime) {\n            fragment.appendChild(buildTime());\n        }\n        toggleClass(self.calendarContainer, \"rangeMode\", self.config.mode === \"range\");\n        toggleClass(self.calendarContainer, \"animate\", self.config.animate === true);\n        toggleClass(self.calendarContainer, \"multiMonth\", self.config.showMonths > 1);\n        self.calendarContainer.appendChild(fragment);\n        const customAppend = self.config.appendTo !== undefined &&\n            self.config.appendTo.nodeType !== undefined;\n        if (self.config.inline || self.config.static) {\n            self.calendarContainer.classList.add(self.config.inline ? \"inline\" : \"static\");\n            if (self.config.inline) {\n                if (!customAppend && self.element.parentNode)\n                    self.element.parentNode.insertBefore(self.calendarContainer, self._input.nextSibling);\n                else if (self.config.appendTo !== undefined)\n                    self.config.appendTo.appendChild(self.calendarContainer);\n            }\n            if (self.config.static) {\n                const wrapper = createElement(\"div\", \"flatpickr-wrapper\");\n                if (self.element.parentNode)\n                    self.element.parentNode.insertBefore(wrapper, self.element);\n                wrapper.appendChild(self.element);\n                if (self.altInput)\n                    wrapper.appendChild(self.altInput);\n                wrapper.appendChild(self.calendarContainer);\n            }\n        }\n        if (!self.config.static && !self.config.inline)\n            (self.config.appendTo !== undefined\n                ? self.config.appendTo\n                : window.document.body).appendChild(self.calendarContainer);\n    }\n    function createDay(className, date, dayNumber, i) {\n        const dateIsEnabled = isEnabled(date, true), dayElement = createElement(\"span\", \"flatpickr-day \" + className, date.getDate().toString());\n        dayElement.dateObj = date;\n        dayElement.$i = i;\n        dayElement.setAttribute(\"aria-label\", self.formatDate(date, self.config.ariaDateFormat));\n        if (className.indexOf(\"hidden\") === -1 &&\n            compareDates(date, self.now) === 0) {\n            self.todayDateElem = dayElement;\n            dayElement.classList.add(\"today\");\n            dayElement.setAttribute(\"aria-current\", \"date\");\n        }\n        if (dateIsEnabled) {\n            dayElement.tabIndex = -1;\n            if (isDateSelected(date)) {\n                dayElement.classList.add(\"selected\");\n                self.selectedDateElem = dayElement;\n                if (self.config.mode === \"range\") {\n                    toggleClass(dayElement, \"startRange\", self.selectedDates[0] &&\n                        compareDates(date, self.selectedDates[0], true) === 0);\n                    toggleClass(dayElement, \"endRange\", self.selectedDates[1] &&\n                        compareDates(date, self.selectedDates[1], true) === 0);\n                    if (className === \"nextMonthDay\")\n                        dayElement.classList.add(\"inRange\");\n                }\n            }\n        }\n        else {\n            dayElement.classList.add(\"flatpickr-disabled\");\n        }\n        if (self.config.mode === \"range\") {\n            if (isDateInRange(date) && !isDateSelected(date))\n                dayElement.classList.add(\"inRange\");\n        }\n        if (self.weekNumbers &&\n            self.config.showMonths === 1 &&\n            className !== \"prevMonthDay\" &&\n            dayNumber % 7 === 1) {\n            self.weekNumbers.insertAdjacentHTML(\"beforeend\", \"<span class='flatpickr-day'>\" + self.config.getWeek(date) + \"</span>\");\n        }\n        triggerEvent(\"onDayCreate\", dayElement);\n        return dayElement;\n    }\n    function focusOnDayElem(targetNode) {\n        targetNode.focus();\n        if (self.config.mode === \"range\")\n            onMouseOver(targetNode);\n    }\n    function getFirstAvailableDay(delta) {\n        const startMonth = delta > 0 ? 0 : self.config.showMonths - 1;\n        const endMonth = delta > 0 ? self.config.showMonths : -1;\n        for (let m = startMonth; m != endMonth; m += delta) {\n            const month = self.daysContainer.children[m];\n            const startIndex = delta > 0 ? 0 : month.children.length - 1;\n            const endIndex = delta > 0 ? month.children.length : -1;\n            for (let i = startIndex; i != endIndex; i += delta) {\n                const c = month.children[i];\n                if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj))\n                    return c;\n            }\n        }\n        return undefined;\n    }\n    function getNextAvailableDay(current, delta) {\n        const givenMonth = current.className.indexOf(\"Month\") === -1\n            ? current.dateObj.getMonth()\n            : self.currentMonth;\n        const endMonth = delta > 0 ? self.config.showMonths : -1;\n        const loopDelta = delta > 0 ? 1 : -1;\n        for (let m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {\n            const month = self.daysContainer.children[m];\n            const startIndex = givenMonth - self.currentMonth === m\n                ? current.$i + delta\n                : delta < 0\n                    ? month.children.length - 1\n                    : 0;\n            const numMonthDays = month.children.length;\n            for (let i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {\n                const c = month.children[i];\n                if (c.className.indexOf(\"hidden\") === -1 &&\n                    isEnabled(c.dateObj) &&\n                    Math.abs(current.$i - i) >= Math.abs(delta))\n                    return focusOnDayElem(c);\n            }\n        }\n        self.changeMonth(loopDelta);\n        focusOnDay(getFirstAvailableDay(loopDelta), 0);\n        return undefined;\n    }\n    function focusOnDay(current, offset) {\n        const dayFocused = isInView(document.activeElement || document.body);\n        const startElem = current !== undefined\n            ? current\n            : dayFocused\n                ? document.activeElement\n                : self.selectedDateElem !== undefined && isInView(self.selectedDateElem)\n                    ? self.selectedDateElem\n                    : self.todayDateElem !== undefined && isInView(self.todayDateElem)\n                        ? self.todayDateElem\n                        : getFirstAvailableDay(offset > 0 ? 1 : -1);\n        if (startElem === undefined) {\n            self._input.focus();\n        }\n        else if (!dayFocused) {\n            focusOnDayElem(startElem);\n        }\n        else {\n            getNextAvailableDay(startElem, offset);\n        }\n    }\n    function buildMonthDays(year, month) {\n        const firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;\n        const prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);\n        const daysInMonth = self.utils.getDaysInMonth(month, year), days = window.document.createDocumentFragment(), isMultiMonth = self.config.showMonths > 1, prevMonthDayClass = isMultiMonth ? \"prevMonthDay hidden\" : \"prevMonthDay\", nextMonthDayClass = isMultiMonth ? \"nextMonthDay hidden\" : \"nextMonthDay\";\n        let dayNumber = prevMonthDays + 1 - firstOfMonth, dayIndex = 0;\n        for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {\n            days.appendChild(createDay(prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));\n        }\n        for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {\n            days.appendChild(createDay(\"\", new Date(year, month, dayNumber), dayNumber, dayIndex));\n        }\n        for (let dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth &&\n            (self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {\n            days.appendChild(createDay(nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));\n        }\n        const dayContainer = createElement(\"div\", \"dayContainer\");\n        dayContainer.appendChild(days);\n        return dayContainer;\n    }\n    function buildDays() {\n        if (self.daysContainer === undefined) {\n            return;\n        }\n        clearNode(self.daysContainer);\n        if (self.weekNumbers)\n            clearNode(self.weekNumbers);\n        const frag = document.createDocumentFragment();\n        for (let i = 0; i < self.config.showMonths; i++) {\n            const d = new Date(self.currentYear, self.currentMonth, 1);\n            d.setMonth(self.currentMonth + i);\n            frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));\n        }\n        self.daysContainer.appendChild(frag);\n        self.days = self.daysContainer.firstChild;\n        if (self.config.mode === \"range\" && self.selectedDates.length === 1) {\n            onMouseOver();\n        }\n    }\n    function buildMonthSwitch() {\n        if (self.config.showMonths > 1 ||\n            self.config.monthSelectorType !== \"dropdown\")\n            return;\n        const shouldBuildMonth = function (month) {\n            if (self.config.minDate !== undefined &&\n                self.currentYear === self.config.minDate.getFullYear() &&\n                month < self.config.minDate.getMonth()) {\n                return false;\n            }\n            return !(self.config.maxDate !== undefined &&\n                self.currentYear === self.config.maxDate.getFullYear() &&\n                month > self.config.maxDate.getMonth());\n        };\n        self.monthsDropdownContainer.tabIndex = -1;\n        self.monthsDropdownContainer.innerHTML = \"\";\n        for (let i = 0; i < 12; i++) {\n            if (!shouldBuildMonth(i))\n                continue;\n            const month = createElement(\"option\", \"flatpickr-monthDropdown-month\");\n            month.value = new Date(self.currentYear, i).getMonth().toString();\n            month.textContent = monthToStr(i, self.config.shorthandCurrentMonth, self.l10n);\n            month.tabIndex = -1;\n            if (self.currentMonth === i) {\n                month.selected = true;\n            }\n            self.monthsDropdownContainer.appendChild(month);\n        }\n    }\n    function buildMonth() {\n        const container = createElement(\"div\", \"flatpickr-month\");\n        const monthNavFragment = window.document.createDocumentFragment();\n        let monthElement;\n        if (self.config.showMonths > 1 ||\n            self.config.monthSelectorType === \"static\") {\n            monthElement = createElement(\"span\", \"cur-month\");\n        }\n        else {\n            self.monthsDropdownContainer = createElement(\"select\", \"flatpickr-monthDropdown-months\");\n            self.monthsDropdownContainer.setAttribute(\"aria-label\", self.l10n.monthAriaLabel);\n            bind(self.monthsDropdownContainer, \"change\", (e) => {\n                const target = getEventTarget(e);\n                const selectedMonth = parseInt(target.value, 10);\n                self.changeMonth(selectedMonth - self.currentMonth);\n                triggerEvent(\"onMonthChange\");\n            });\n            buildMonthSwitch();\n            monthElement = self.monthsDropdownContainer;\n        }\n        const yearInput = createNumberInput(\"cur-year\", { tabindex: \"-1\" });\n        const yearElement = yearInput.getElementsByTagName(\"input\")[0];\n        yearElement.setAttribute(\"aria-label\", self.l10n.yearAriaLabel);\n        if (self.config.minDate) {\n            yearElement.setAttribute(\"min\", self.config.minDate.getFullYear().toString());\n        }\n        if (self.config.maxDate) {\n            yearElement.setAttribute(\"max\", self.config.maxDate.getFullYear().toString());\n            yearElement.disabled =\n                !!self.config.minDate &&\n                    self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();\n        }\n        const currentMonth = createElement(\"div\", \"flatpickr-current-month\");\n        currentMonth.appendChild(monthElement);\n        currentMonth.appendChild(yearInput);\n        monthNavFragment.appendChild(currentMonth);\n        container.appendChild(monthNavFragment);\n        return {\n            container,\n            yearElement,\n            monthElement,\n        };\n    }\n    function buildMonths() {\n        clearNode(self.monthNav);\n        self.monthNav.appendChild(self.prevMonthNav);\n        if (self.config.showMonths) {\n            self.yearElements = [];\n            self.monthElements = [];\n        }\n        for (let m = self.config.showMonths; m--;) {\n            const month = buildMonth();\n            self.yearElements.push(month.yearElement);\n            self.monthElements.push(month.monthElement);\n            self.monthNav.appendChild(month.container);\n        }\n        self.monthNav.appendChild(self.nextMonthNav);\n    }\n    function buildMonthNav() {\n        self.monthNav = createElement(\"div\", \"flatpickr-months\");\n        self.yearElements = [];\n        self.monthElements = [];\n        self.prevMonthNav = createElement(\"span\", \"flatpickr-prev-month\");\n        self.prevMonthNav.innerHTML = self.config.prevArrow;\n        self.nextMonthNav = createElement(\"span\", \"flatpickr-next-month\");\n        self.nextMonthNav.innerHTML = self.config.nextArrow;\n        buildMonths();\n        Object.defineProperty(self, \"_hidePrevMonthArrow\", {\n            get: () => self.__hidePrevMonthArrow,\n            set(bool) {\n                if (self.__hidePrevMonthArrow !== bool) {\n                    toggleClass(self.prevMonthNav, \"flatpickr-disabled\", bool);\n                    self.__hidePrevMonthArrow = bool;\n                }\n            },\n        });\n        Object.defineProperty(self, \"_hideNextMonthArrow\", {\n            get: () => self.__hideNextMonthArrow,\n            set(bool) {\n                if (self.__hideNextMonthArrow !== bool) {\n                    toggleClass(self.nextMonthNav, \"flatpickr-disabled\", bool);\n                    self.__hideNextMonthArrow = bool;\n                }\n            },\n        });\n        self.currentYearElement = self.yearElements[0];\n        updateNavigationCurrentMonth();\n        return self.monthNav;\n    }\n    function buildTime() {\n        self.calendarContainer.classList.add(\"hasTime\");\n        if (self.config.noCalendar)\n            self.calendarContainer.classList.add(\"noCalendar\");\n        const defaults = getDefaultHours(self.config);\n        self.timeContainer = createElement(\"div\", \"flatpickr-time\");\n        self.timeContainer.tabIndex = -1;\n        const separator = createElement(\"span\", \"flatpickr-time-separator\", \":\");\n        const hourInput = createNumberInput(\"flatpickr-hour\", {\n            \"aria-label\": self.l10n.hourAriaLabel,\n        });\n        self.hourElement = hourInput.getElementsByTagName(\"input\")[0];\n        const minuteInput = createNumberInput(\"flatpickr-minute\", {\n            \"aria-label\": self.l10n.minuteAriaLabel,\n        });\n        self.minuteElement = minuteInput.getElementsByTagName(\"input\")[0];\n        self.hourElement.tabIndex = self.minuteElement.tabIndex = -1;\n        self.hourElement.value = pad(self.latestSelectedDateObj\n            ? self.latestSelectedDateObj.getHours()\n            : self.config.time_24hr\n                ? defaults.hours\n                : military2ampm(defaults.hours));\n        self.minuteElement.value = pad(self.latestSelectedDateObj\n            ? self.latestSelectedDateObj.getMinutes()\n            : defaults.minutes);\n        self.hourElement.setAttribute(\"step\", self.config.hourIncrement.toString());\n        self.minuteElement.setAttribute(\"step\", self.config.minuteIncrement.toString());\n        self.hourElement.setAttribute(\"min\", self.config.time_24hr ? \"0\" : \"1\");\n        self.hourElement.setAttribute(\"max\", self.config.time_24hr ? \"23\" : \"12\");\n        self.hourElement.setAttribute(\"maxlength\", \"2\");\n        self.minuteElement.setAttribute(\"min\", \"0\");\n        self.minuteElement.setAttribute(\"max\", \"59\");\n        self.minuteElement.setAttribute(\"maxlength\", \"2\");\n        self.timeContainer.appendChild(hourInput);\n        self.timeContainer.appendChild(separator);\n        self.timeContainer.appendChild(minuteInput);\n        if (self.config.time_24hr)\n            self.timeContainer.classList.add(\"time24hr\");\n        if (self.config.enableSeconds) {\n            self.timeContainer.classList.add(\"hasSeconds\");\n            const secondInput = createNumberInput(\"flatpickr-second\");\n            self.secondElement = secondInput.getElementsByTagName(\"input\")[0];\n            self.secondElement.value = pad(self.latestSelectedDateObj\n                ? self.latestSelectedDateObj.getSeconds()\n                : defaults.seconds);\n            self.secondElement.setAttribute(\"step\", self.minuteElement.getAttribute(\"step\"));\n            self.secondElement.setAttribute(\"min\", \"0\");\n            self.secondElement.setAttribute(\"max\", \"59\");\n            self.secondElement.setAttribute(\"maxlength\", \"2\");\n            self.timeContainer.appendChild(createElement(\"span\", \"flatpickr-time-separator\", \":\"));\n            self.timeContainer.appendChild(secondInput);\n        }\n        if (!self.config.time_24hr) {\n            self.amPM = createElement(\"span\", \"flatpickr-am-pm\", self.l10n.amPM[int((self.latestSelectedDateObj\n                ? self.hourElement.value\n                : self.config.defaultHour) > 11)]);\n            self.amPM.title = self.l10n.toggleTitle;\n            self.amPM.tabIndex = -1;\n            self.timeContainer.appendChild(self.amPM);\n        }\n        return self.timeContainer;\n    }\n    function buildWeekdays() {\n        if (!self.weekdayContainer)\n            self.weekdayContainer = createElement(\"div\", \"flatpickr-weekdays\");\n        else\n            clearNode(self.weekdayContainer);\n        for (let i = self.config.showMonths; i--;) {\n            const container = createElement(\"div\", \"flatpickr-weekdaycontainer\");\n            self.weekdayContainer.appendChild(container);\n        }\n        updateWeekdays();\n        return self.weekdayContainer;\n    }\n    function updateWeekdays() {\n        if (!self.weekdayContainer) {\n            return;\n        }\n        const firstDayOfWeek = self.l10n.firstDayOfWeek;\n        let weekdays = [...self.l10n.weekdays.shorthand];\n        if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {\n            weekdays = [\n                ...weekdays.splice(firstDayOfWeek, weekdays.length),\n                ...weekdays.splice(0, firstDayOfWeek),\n            ];\n        }\n        for (let i = self.config.showMonths; i--;) {\n            self.weekdayContainer.children[i].innerHTML = `\n      <span class='flatpickr-weekday'>\n        ${weekdays.join(\"</span><span class='flatpickr-weekday'>\")}\n      </span>\n      `;\n        }\n    }\n    function buildWeeks() {\n        self.calendarContainer.classList.add(\"hasWeeks\");\n        const weekWrapper = createElement(\"div\", \"flatpickr-weekwrapper\");\n        weekWrapper.appendChild(createElement(\"span\", \"flatpickr-weekday\", self.l10n.weekAbbreviation));\n        const weekNumbers = createElement(\"div\", \"flatpickr-weeks\");\n        weekWrapper.appendChild(weekNumbers);\n        return {\n            weekWrapper,\n            weekNumbers,\n        };\n    }\n    function changeMonth(value, isOffset = true) {\n        const delta = isOffset ? value : value - self.currentMonth;\n        if ((delta < 0 && self._hidePrevMonthArrow === true) ||\n            (delta > 0 && self._hideNextMonthArrow === true))\n            return;\n        self.currentMonth += delta;\n        if (self.currentMonth < 0 || self.currentMonth > 11) {\n            self.currentYear += self.currentMonth > 11 ? 1 : -1;\n            self.currentMonth = (self.currentMonth + 12) % 12;\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n        buildDays();\n        triggerEvent(\"onMonthChange\");\n        updateNavigationCurrentMonth();\n    }\n    function clear(triggerChangeEvent = true, toInitial = true) {\n        self.input.value = \"\";\n        if (self.altInput !== undefined)\n            self.altInput.value = \"\";\n        if (self.mobileInput !== undefined)\n            self.mobileInput.value = \"\";\n        self.selectedDates = [];\n        self.latestSelectedDateObj = undefined;\n        if (toInitial === true) {\n            self.currentYear = self._initialDate.getFullYear();\n            self.currentMonth = self._initialDate.getMonth();\n        }\n        if (self.config.enableTime === true) {\n            const { hours, minutes, seconds } = getDefaultHours(self.config);\n            setHours(hours, minutes, seconds);\n        }\n        self.redraw();\n        if (triggerChangeEvent)\n            triggerEvent(\"onChange\");\n    }\n    function close() {\n        self.isOpen = false;\n        if (!self.isMobile) {\n            if (self.calendarContainer !== undefined) {\n                self.calendarContainer.classList.remove(\"open\");\n            }\n            if (self._input !== undefined) {\n                self._input.classList.remove(\"active\");\n            }\n        }\n        triggerEvent(\"onClose\");\n    }\n    function destroy() {\n        if (self.config !== undefined)\n            triggerEvent(\"onDestroy\");\n        for (let i = self._handlers.length; i--;) {\n            self._handlers[i].remove();\n        }\n        self._handlers = [];\n        if (self.mobileInput) {\n            if (self.mobileInput.parentNode)\n                self.mobileInput.parentNode.removeChild(self.mobileInput);\n            self.mobileInput = undefined;\n        }\n        else if (self.calendarContainer && self.calendarContainer.parentNode) {\n            if (self.config.static && self.calendarContainer.parentNode) {\n                const wrapper = self.calendarContainer.parentNode;\n                wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);\n                if (wrapper.parentNode) {\n                    while (wrapper.firstChild)\n                        wrapper.parentNode.insertBefore(wrapper.firstChild, wrapper);\n                    wrapper.parentNode.removeChild(wrapper);\n                }\n            }\n            else\n                self.calendarContainer.parentNode.removeChild(self.calendarContainer);\n        }\n        if (self.altInput) {\n            self.input.type = \"text\";\n            if (self.altInput.parentNode)\n                self.altInput.parentNode.removeChild(self.altInput);\n            delete self.altInput;\n        }\n        if (self.input) {\n            self.input.type = self.input._type;\n            self.input.classList.remove(\"flatpickr-input\");\n            self.input.removeAttribute(\"readonly\");\n        }\n        [\n            \"_showTimeInput\",\n            \"latestSelectedDateObj\",\n            \"_hideNextMonthArrow\",\n            \"_hidePrevMonthArrow\",\n            \"__hideNextMonthArrow\",\n            \"__hidePrevMonthArrow\",\n            \"isMobile\",\n            \"isOpen\",\n            \"selectedDateElem\",\n            \"minDateHasTime\",\n            \"maxDateHasTime\",\n            \"days\",\n            \"daysContainer\",\n            \"_input\",\n            \"_positionElement\",\n            \"innerContainer\",\n            \"rContainer\",\n            \"monthNav\",\n            \"todayDateElem\",\n            \"calendarContainer\",\n            \"weekdayContainer\",\n            \"prevMonthNav\",\n            \"nextMonthNav\",\n            \"monthsDropdownContainer\",\n            \"currentMonthElement\",\n            \"currentYearElement\",\n            \"navigationCurrentMonth\",\n            \"selectedDateElem\",\n            \"config\",\n        ].forEach((k) => {\n            try {\n                delete self[k];\n            }\n            catch (_) { }\n        });\n    }\n    function isCalendarElem(elem) {\n        if (self.config.appendTo && self.config.appendTo.contains(elem))\n            return true;\n        return self.calendarContainer.contains(elem);\n    }\n    function documentClick(e) {\n        if (self.isOpen && !self.config.inline) {\n            const eventTarget = getEventTarget(e);\n            const isCalendarElement = isCalendarElem(eventTarget);\n            const isInput = eventTarget === self.input ||\n                eventTarget === self.altInput ||\n                self.element.contains(eventTarget) ||\n                (e.path &&\n                    e.path.indexOf &&\n                    (~e.path.indexOf(self.input) ||\n                        ~e.path.indexOf(self.altInput)));\n            const lostFocus = e.type === \"blur\"\n                ? isInput &&\n                    e.relatedTarget &&\n                    !isCalendarElem(e.relatedTarget)\n                : !isInput &&\n                    !isCalendarElement &&\n                    !isCalendarElem(e.relatedTarget);\n            const isIgnored = !self.config.ignoredFocusElements.some((elem) => elem.contains(eventTarget));\n            if (lostFocus && isIgnored) {\n                if (self.timeContainer !== undefined &&\n                    self.minuteElement !== undefined &&\n                    self.hourElement !== undefined &&\n                    self.input.value !== \"\" &&\n                    self.input.value !== undefined) {\n                    updateTime();\n                }\n                self.close();\n                if (self.config &&\n                    self.config.mode === \"range\" &&\n                    self.selectedDates.length === 1) {\n                    self.clear(false);\n                    self.redraw();\n                }\n            }\n        }\n    }\n    function changeYear(newYear) {\n        if (!newYear ||\n            (self.config.minDate && newYear < self.config.minDate.getFullYear()) ||\n            (self.config.maxDate && newYear > self.config.maxDate.getFullYear()))\n            return;\n        const newYearNum = newYear, isNewYear = self.currentYear !== newYearNum;\n        self.currentYear = newYearNum || self.currentYear;\n        if (self.config.maxDate &&\n            self.currentYear === self.config.maxDate.getFullYear()) {\n            self.currentMonth = Math.min(self.config.maxDate.getMonth(), self.currentMonth);\n        }\n        else if (self.config.minDate &&\n            self.currentYear === self.config.minDate.getFullYear()) {\n            self.currentMonth = Math.max(self.config.minDate.getMonth(), self.currentMonth);\n        }\n        if (isNewYear) {\n            self.redraw();\n            triggerEvent(\"onYearChange\");\n            buildMonthSwitch();\n        }\n    }\n    function isEnabled(date, timeless = true) {\n        var _a;\n        const dateToCheck = self.parseDate(date, undefined, timeless);\n        if ((self.config.minDate &&\n            dateToCheck &&\n            compareDates(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0) ||\n            (self.config.maxDate &&\n                dateToCheck &&\n                compareDates(dateToCheck, self.config.maxDate, timeless !== undefined ? timeless : !self.maxDateHasTime) > 0))\n            return false;\n        if (!self.config.enable && self.config.disable.length === 0)\n            return true;\n        if (dateToCheck === undefined)\n            return false;\n        const bool = !!self.config.enable, array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;\n        for (let i = 0, d; i < array.length; i++) {\n            d = array[i];\n            if (typeof d === \"function\" &&\n                d(dateToCheck))\n                return bool;\n            else if (d instanceof Date &&\n                dateToCheck !== undefined &&\n                d.getTime() === dateToCheck.getTime())\n                return bool;\n            else if (typeof d === \"string\") {\n                const parsed = self.parseDate(d, undefined, true);\n                return parsed && parsed.getTime() === dateToCheck.getTime()\n                    ? bool\n                    : !bool;\n            }\n            else if (typeof d === \"object\" &&\n                dateToCheck !== undefined &&\n                d.from &&\n                d.to &&\n                dateToCheck.getTime() >= d.from.getTime() &&\n                dateToCheck.getTime() <= d.to.getTime())\n                return bool;\n        }\n        return !bool;\n    }\n    function isInView(elem) {\n        if (self.daysContainer !== undefined)\n            return (elem.className.indexOf(\"hidden\") === -1 &&\n                elem.className.indexOf(\"flatpickr-disabled\") === -1 &&\n                self.daysContainer.contains(elem));\n        return false;\n    }\n    function onBlur(e) {\n        const isInput = e.target === self._input;\n        if (isInput &&\n            (self.selectedDates.length > 0 || self._input.value.length > 0) &&\n            !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {\n            self.setDate(self._input.value, true, e.target === self.altInput\n                ? self.config.altFormat\n                : self.config.dateFormat);\n        }\n    }\n    function onKeyDown(e) {\n        const eventTarget = getEventTarget(e);\n        const isInput = self.config.wrap\n            ? element.contains(eventTarget)\n            : eventTarget === self._input;\n        const allowInput = self.config.allowInput;\n        const allowKeydown = self.isOpen && (!allowInput || !isInput);\n        const allowInlineKeydown = self.config.inline && isInput && !allowInput;\n        if (e.keyCode === 13 && isInput) {\n            if (allowInput) {\n                self.setDate(self._input.value, true, eventTarget === self.altInput\n                    ? self.config.altFormat\n                    : self.config.dateFormat);\n                return eventTarget.blur();\n            }\n            else {\n                self.open();\n            }\n        }\n        else if (isCalendarElem(eventTarget) ||\n            allowKeydown ||\n            allowInlineKeydown) {\n            const isTimeObj = !!self.timeContainer &&\n                self.timeContainer.contains(eventTarget);\n            switch (e.keyCode) {\n                case 13:\n                    if (isTimeObj) {\n                        e.preventDefault();\n                        updateTime();\n                        focusAndClose();\n                    }\n                    else\n                        selectDate(e);\n                    break;\n                case 27:\n                    e.preventDefault();\n                    focusAndClose();\n                    break;\n                case 8:\n                case 46:\n                    if (isInput && !self.config.allowInput) {\n                        e.preventDefault();\n                        self.clear();\n                    }\n                    break;\n                case 37:\n                case 39:\n                    if (!isTimeObj && !isInput) {\n                        e.preventDefault();\n                        if (self.daysContainer !== undefined &&\n                            (allowInput === false ||\n                                (document.activeElement && isInView(document.activeElement)))) {\n                            const delta = e.keyCode === 39 ? 1 : -1;\n                            if (!e.ctrlKey)\n                                focusOnDay(undefined, delta);\n                            else {\n                                e.stopPropagation();\n                                changeMonth(delta);\n                                focusOnDay(getFirstAvailableDay(1), 0);\n                            }\n                        }\n                    }\n                    else if (self.hourElement)\n                        self.hourElement.focus();\n                    break;\n                case 38:\n                case 40:\n                    e.preventDefault();\n                    const delta = e.keyCode === 40 ? 1 : -1;\n                    if ((self.daysContainer &&\n                        eventTarget.$i !== undefined) ||\n                        eventTarget === self.input ||\n                        eventTarget === self.altInput) {\n                        if (e.ctrlKey) {\n                            e.stopPropagation();\n                            changeYear(self.currentYear - delta);\n                            focusOnDay(getFirstAvailableDay(1), 0);\n                        }\n                        else if (!isTimeObj)\n                            focusOnDay(undefined, delta * 7);\n                    }\n                    else if (eventTarget === self.currentYearElement) {\n                        changeYear(self.currentYear - delta);\n                    }\n                    else if (self.config.enableTime) {\n                        if (!isTimeObj && self.hourElement)\n                            self.hourElement.focus();\n                        updateTime(e);\n                        self._debouncedChange();\n                    }\n                    break;\n                case 9:\n                    if (isTimeObj) {\n                        const elems = [\n                            self.hourElement,\n                            self.minuteElement,\n                            self.secondElement,\n                            self.amPM,\n                        ]\n                            .concat(self.pluginElements)\n                            .filter((x) => x);\n                        const i = elems.indexOf(eventTarget);\n                        if (i !== -1) {\n                            const target = elems[i + (e.shiftKey ? -1 : 1)];\n                            e.preventDefault();\n                            (target || self._input).focus();\n                        }\n                    }\n                    else if (!self.config.noCalendar &&\n                        self.daysContainer &&\n                        self.daysContainer.contains(eventTarget) &&\n                        e.shiftKey) {\n                        e.preventDefault();\n                        self._input.focus();\n                    }\n                    break;\n                default:\n                    break;\n            }\n        }\n        if (self.amPM !== undefined && eventTarget === self.amPM) {\n            switch (e.key) {\n                case self.l10n.amPM[0].charAt(0):\n                case self.l10n.amPM[0].charAt(0).toLowerCase():\n                    self.amPM.textContent = self.l10n.amPM[0];\n                    setHoursFromInputs();\n                    updateValue();\n                    break;\n                case self.l10n.amPM[1].charAt(0):\n                case self.l10n.amPM[1].charAt(0).toLowerCase():\n                    self.amPM.textContent = self.l10n.amPM[1];\n                    setHoursFromInputs();\n                    updateValue();\n                    break;\n            }\n        }\n        if (isInput || isCalendarElem(eventTarget)) {\n            triggerEvent(\"onKeyDown\", e);\n        }\n    }\n    function onMouseOver(elem) {\n        if (self.selectedDates.length !== 1 ||\n            (elem &&\n                (!elem.classList.contains(\"flatpickr-day\") ||\n                    elem.classList.contains(\"flatpickr-disabled\"))))\n            return;\n        const hoverDate = elem\n            ? elem.dateObj.getTime()\n            : self.days.firstElementChild.dateObj.getTime(), initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(), rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()), rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());\n        let containsDisabled = false;\n        let minRange = 0, maxRange = 0;\n        for (let t = rangeStartDate; t < rangeEndDate; t += duration.DAY) {\n            if (!isEnabled(new Date(t), true)) {\n                containsDisabled =\n                    containsDisabled || (t > rangeStartDate && t < rangeEndDate);\n                if (t < initialDate && (!minRange || t > minRange))\n                    minRange = t;\n                else if (t > initialDate && (!maxRange || t < maxRange))\n                    maxRange = t;\n            }\n        }\n        for (let m = 0; m < self.config.showMonths; m++) {\n            const month = self.daysContainer.children[m];\n            for (let i = 0, l = month.children.length; i < l; i++) {\n                const dayElem = month.children[i], date = dayElem.dateObj;\n                const timestamp = date.getTime();\n                const outOfRange = (minRange > 0 && timestamp < minRange) ||\n                    (maxRange > 0 && timestamp > maxRange);\n                if (outOfRange) {\n                    dayElem.classList.add(\"notAllowed\");\n                    [\"inRange\", \"startRange\", \"endRange\"].forEach((c) => {\n                        dayElem.classList.remove(c);\n                    });\n                    continue;\n                }\n                else if (containsDisabled && !outOfRange)\n                    continue;\n                [\"startRange\", \"inRange\", \"endRange\", \"notAllowed\"].forEach((c) => {\n                    dayElem.classList.remove(c);\n                });\n                if (elem !== undefined) {\n                    elem.classList.add(hoverDate <= self.selectedDates[0].getTime()\n                        ? \"startRange\"\n                        : \"endRange\");\n                    if (initialDate < hoverDate && timestamp === initialDate)\n                        dayElem.classList.add(\"startRange\");\n                    else if (initialDate > hoverDate && timestamp === initialDate)\n                        dayElem.classList.add(\"endRange\");\n                    if (timestamp >= minRange &&\n                        (maxRange === 0 || timestamp <= maxRange) &&\n                        isBetween(timestamp, initialDate, hoverDate))\n                        dayElem.classList.add(\"inRange\");\n                }\n            }\n        }\n    }\n    function onResize() {\n        if (self.isOpen && !self.config.static && !self.config.inline)\n            positionCalendar();\n    }\n    function open(e, positionElement = self._positionElement) {\n        if (self.isMobile === true) {\n            if (e) {\n                e.preventDefault();\n                const eventTarget = getEventTarget(e);\n                if (eventTarget) {\n                    eventTarget.blur();\n                }\n            }\n            if (self.mobileInput !== undefined) {\n                self.mobileInput.focus();\n                self.mobileInput.click();\n            }\n            triggerEvent(\"onOpen\");\n            return;\n        }\n        else if (self._input.disabled || self.config.inline) {\n            return;\n        }\n        const wasOpen = self.isOpen;\n        self.isOpen = true;\n        if (!wasOpen) {\n            self.calendarContainer.classList.add(\"open\");\n            self._input.classList.add(\"active\");\n            triggerEvent(\"onOpen\");\n            positionCalendar(positionElement);\n        }\n        if (self.config.enableTime === true && self.config.noCalendar === true) {\n            if (self.config.allowInput === false &&\n                (e === undefined ||\n                    !self.timeContainer.contains(e.relatedTarget))) {\n                setTimeout(() => self.hourElement.select(), 50);\n            }\n        }\n    }\n    function minMaxDateSetter(type) {\n        return (date) => {\n            const dateObj = (self.config[`_${type}Date`] = self.parseDate(date, self.config.dateFormat));\n            const inverseDateObj = self.config[`_${type === \"min\" ? \"max\" : \"min\"}Date`];\n            if (dateObj !== undefined) {\n                self[type === \"min\" ? \"minDateHasTime\" : \"maxDateHasTime\"] =\n                    dateObj.getHours() > 0 ||\n                        dateObj.getMinutes() > 0 ||\n                        dateObj.getSeconds() > 0;\n            }\n            if (self.selectedDates) {\n                self.selectedDates = self.selectedDates.filter((d) => isEnabled(d));\n                if (!self.selectedDates.length && type === \"min\")\n                    setHoursFromDate(dateObj);\n                updateValue();\n            }\n            if (self.daysContainer) {\n                redraw();\n                if (dateObj !== undefined)\n                    self.currentYearElement[type] = dateObj.getFullYear().toString();\n                else\n                    self.currentYearElement.removeAttribute(type);\n                self.currentYearElement.disabled =\n                    !!inverseDateObj &&\n                        dateObj !== undefined &&\n                        inverseDateObj.getFullYear() === dateObj.getFullYear();\n            }\n        };\n    }\n    function parseConfig() {\n        const boolOpts = [\n            \"wrap\",\n            \"weekNumbers\",\n            \"allowInput\",\n            \"allowInvalidPreload\",\n            \"clickOpens\",\n            \"time_24hr\",\n            \"enableTime\",\n            \"noCalendar\",\n            \"altInput\",\n            \"shorthandCurrentMonth\",\n            \"inline\",\n            \"static\",\n            \"enableSeconds\",\n            \"disableMobile\",\n        ];\n        const userConfig = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);\n        const formats = {};\n        self.config.parseDate = userConfig.parseDate;\n        self.config.formatDate = userConfig.formatDate;\n        Object.defineProperty(self.config, \"enable\", {\n            get: () => self.config._enable,\n            set: (dates) => {\n                self.config._enable = parseDateRules(dates);\n            },\n        });\n        Object.defineProperty(self.config, \"disable\", {\n            get: () => self.config._disable,\n            set: (dates) => {\n                self.config._disable = parseDateRules(dates);\n            },\n        });\n        const timeMode = userConfig.mode === \"time\";\n        if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {\n            const defaultDateFormat = flatpickr.defaultConfig.dateFormat || defaultOptions.dateFormat;\n            formats.dateFormat =\n                userConfig.noCalendar || timeMode\n                    ? \"H:i\" + (userConfig.enableSeconds ? \":S\" : \"\")\n                    : defaultDateFormat + \" H:i\" + (userConfig.enableSeconds ? \":S\" : \"\");\n        }\n        if (userConfig.altInput &&\n            (userConfig.enableTime || timeMode) &&\n            !userConfig.altFormat) {\n            const defaultAltFormat = flatpickr.defaultConfig.altFormat || defaultOptions.altFormat;\n            formats.altFormat =\n                userConfig.noCalendar || timeMode\n                    ? \"h:i\" + (userConfig.enableSeconds ? \":S K\" : \" K\")\n                    : defaultAltFormat + ` h:i${userConfig.enableSeconds ? \":S\" : \"\"} K`;\n        }\n        Object.defineProperty(self.config, \"minDate\", {\n            get: () => self.config._minDate,\n            set: minMaxDateSetter(\"min\"),\n        });\n        Object.defineProperty(self.config, \"maxDate\", {\n            get: () => self.config._maxDate,\n            set: minMaxDateSetter(\"max\"),\n        });\n        const minMaxTimeSetter = (type) => (val) => {\n            self.config[type === \"min\" ? \"_minTime\" : \"_maxTime\"] = self.parseDate(val, \"H:i:S\");\n        };\n        Object.defineProperty(self.config, \"minTime\", {\n            get: () => self.config._minTime,\n            set: minMaxTimeSetter(\"min\"),\n        });\n        Object.defineProperty(self.config, \"maxTime\", {\n            get: () => self.config._maxTime,\n            set: minMaxTimeSetter(\"max\"),\n        });\n        if (userConfig.mode === \"time\") {\n            self.config.noCalendar = true;\n            self.config.enableTime = true;\n        }\n        Object.assign(self.config, formats, userConfig);\n        for (let i = 0; i < boolOpts.length; i++)\n            self.config[boolOpts[i]] =\n                self.config[boolOpts[i]] === true ||\n                    self.config[boolOpts[i]] === \"true\";\n        HOOKS.filter((hook) => self.config[hook] !== undefined).forEach((hook) => {\n            self.config[hook] = arrayify(self.config[hook] || []).map(bindToInstance);\n        });\n        self.isMobile =\n            !self.config.disableMobile &&\n                !self.config.inline &&\n                self.config.mode === \"single\" &&\n                !self.config.disable.length &&\n                !self.config.enable &&\n                !self.config.weekNumbers &&\n                /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n        for (let i = 0; i < self.config.plugins.length; i++) {\n            const pluginConf = self.config.plugins[i](self) || {};\n            for (const key in pluginConf) {\n                if (HOOKS.indexOf(key) > -1) {\n                    self.config[key] = arrayify(pluginConf[key])\n                        .map(bindToInstance)\n                        .concat(self.config[key]);\n                }\n                else if (typeof userConfig[key] === \"undefined\")\n                    self.config[key] = pluginConf[key];\n            }\n        }\n        if (!userConfig.altInputClass) {\n            self.config.altInputClass =\n                getInputElem().className + \" \" + self.config.altInputClass;\n        }\n        triggerEvent(\"onParseConfig\");\n    }\n    function getInputElem() {\n        return self.config.wrap\n            ? element.querySelector(\"[data-input]\")\n            : element;\n    }\n    function setupLocale() {\n        if (typeof self.config.locale !== \"object\" &&\n            typeof flatpickr.l10ns[self.config.locale] === \"undefined\")\n            self.config.errorHandler(new Error(`flatpickr: invalid locale ${self.config.locale}`));\n        self.l10n = Object.assign(Object.assign({}, flatpickr.l10ns.default), (typeof self.config.locale === \"object\"\n            ? self.config.locale\n            : self.config.locale !== \"default\"\n                ? flatpickr.l10ns[self.config.locale]\n                : undefined));\n        tokenRegex.K = `(${self.l10n.amPM[0]}|${self.l10n.amPM[1]}|${self.l10n.amPM[0].toLowerCase()}|${self.l10n.amPM[1].toLowerCase()})`;\n        const userConfig = Object.assign(Object.assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));\n        if (userConfig.time_24hr === undefined &&\n            flatpickr.defaultConfig.time_24hr === undefined) {\n            self.config.time_24hr = self.l10n.time_24hr;\n        }\n        self.formatDate = createDateFormatter(self);\n        self.parseDate = createDateParser({ config: self.config, l10n: self.l10n });\n    }\n    function positionCalendar(customPositionElement) {\n        if (typeof self.config.position === \"function\") {\n            return void self.config.position(self, customPositionElement);\n        }\n        if (self.calendarContainer === undefined)\n            return;\n        triggerEvent(\"onPreCalendarPosition\");\n        const positionElement = customPositionElement || self._positionElement;\n        const calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, ((acc, child) => acc + child.offsetHeight), 0), calendarWidth = self.calendarContainer.offsetWidth, configPos = self.config.position.split(\" \"), configPosVertical = configPos[0], configPosHorizontal = configPos.length > 1 ? configPos[1] : null, inputBounds = positionElement.getBoundingClientRect(), distanceFromBottom = window.innerHeight - inputBounds.bottom, showOnTop = configPosVertical === \"above\" ||\n            (configPosVertical !== \"below\" &&\n                distanceFromBottom < calendarHeight &&\n                inputBounds.top > calendarHeight);\n        const top = window.pageYOffset +\n            inputBounds.top +\n            (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n        toggleClass(self.calendarContainer, \"arrowTop\", !showOnTop);\n        toggleClass(self.calendarContainer, \"arrowBottom\", showOnTop);\n        if (self.config.inline)\n            return;\n        let left = window.pageXOffset + inputBounds.left;\n        let isCenter = false;\n        let isRight = false;\n        if (configPosHorizontal === \"center\") {\n            left -= (calendarWidth - inputBounds.width) / 2;\n            isCenter = true;\n        }\n        else if (configPosHorizontal === \"right\") {\n            left -= calendarWidth - inputBounds.width;\n            isRight = true;\n        }\n        toggleClass(self.calendarContainer, \"arrowLeft\", !isCenter && !isRight);\n        toggleClass(self.calendarContainer, \"arrowCenter\", isCenter);\n        toggleClass(self.calendarContainer, \"arrowRight\", isRight);\n        const right = window.document.body.offsetWidth -\n            (window.pageXOffset + inputBounds.right);\n        const rightMost = left + calendarWidth > window.document.body.offsetWidth;\n        const centerMost = right + calendarWidth > window.document.body.offsetWidth;\n        toggleClass(self.calendarContainer, \"rightMost\", rightMost);\n        if (self.config.static)\n            return;\n        self.calendarContainer.style.top = `${top}px`;\n        if (!rightMost) {\n            self.calendarContainer.style.left = `${left}px`;\n            self.calendarContainer.style.right = \"auto\";\n        }\n        else if (!centerMost) {\n            self.calendarContainer.style.left = \"auto\";\n            self.calendarContainer.style.right = `${right}px`;\n        }\n        else {\n            const doc = getDocumentStyleSheet();\n            if (doc === undefined)\n                return;\n            const bodyWidth = window.document.body.offsetWidth;\n            const centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n            const centerBefore = \".flatpickr-calendar.centerMost:before\";\n            const centerAfter = \".flatpickr-calendar.centerMost:after\";\n            const centerIndex = doc.cssRules.length;\n            const centerStyle = `{left:${inputBounds.left}px;right:auto;}`;\n            toggleClass(self.calendarContainer, \"rightMost\", false);\n            toggleClass(self.calendarContainer, \"centerMost\", true);\n            doc.insertRule(`${centerBefore},${centerAfter}${centerStyle}`, centerIndex);\n            self.calendarContainer.style.left = `${centerLeft}px`;\n            self.calendarContainer.style.right = \"auto\";\n        }\n    }\n    function getDocumentStyleSheet() {\n        let editableSheet = null;\n        for (let i = 0; i < document.styleSheets.length; i++) {\n            const sheet = document.styleSheets[i];\n            try {\n                sheet.cssRules;\n            }\n            catch (err) {\n                continue;\n            }\n            editableSheet = sheet;\n            break;\n        }\n        return editableSheet != null ? editableSheet : createStyleSheet();\n    }\n    function createStyleSheet() {\n        const style = document.createElement(\"style\");\n        document.head.appendChild(style);\n        return style.sheet;\n    }\n    function redraw() {\n        if (self.config.noCalendar || self.isMobile)\n            return;\n        buildMonthSwitch();\n        updateNavigationCurrentMonth();\n        buildDays();\n    }\n    function focusAndClose() {\n        self._input.focus();\n        if (window.navigator.userAgent.indexOf(\"MSIE\") !== -1 ||\n            navigator.msMaxTouchPoints !== undefined) {\n            setTimeout(self.close, 0);\n        }\n        else {\n            self.close();\n        }\n    }\n    function selectDate(e) {\n        e.preventDefault();\n        e.stopPropagation();\n        const isSelectable = (day) => day.classList &&\n            day.classList.contains(\"flatpickr-day\") &&\n            !day.classList.contains(\"flatpickr-disabled\") &&\n            !day.classList.contains(\"notAllowed\");\n        const t = findParent(getEventTarget(e), isSelectable);\n        if (t === undefined)\n            return;\n        const target = t;\n        const selectedDate = (self.latestSelectedDateObj = new Date(target.dateObj.getTime()));\n        const shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth ||\n            selectedDate.getMonth() >\n                self.currentMonth + self.config.showMonths - 1) &&\n            self.config.mode !== \"range\";\n        self.selectedDateElem = target;\n        if (self.config.mode === \"single\")\n            self.selectedDates = [selectedDate];\n        else if (self.config.mode === \"multiple\") {\n            const selectedIndex = isDateSelected(selectedDate);\n            if (selectedIndex)\n                self.selectedDates.splice(parseInt(selectedIndex), 1);\n            else\n                self.selectedDates.push(selectedDate);\n        }\n        else if (self.config.mode === \"range\") {\n            if (self.selectedDates.length === 2) {\n                self.clear(false, false);\n            }\n            self.latestSelectedDateObj = selectedDate;\n            self.selectedDates.push(selectedDate);\n            if (compareDates(selectedDate, self.selectedDates[0], true) !== 0)\n                self.selectedDates.sort((a, b) => a.getTime() - b.getTime());\n        }\n        setHoursFromInputs();\n        if (shouldChangeMonth) {\n            const isNewYear = self.currentYear !== selectedDate.getFullYear();\n            self.currentYear = selectedDate.getFullYear();\n            self.currentMonth = selectedDate.getMonth();\n            if (isNewYear) {\n                triggerEvent(\"onYearChange\");\n                buildMonthSwitch();\n            }\n            triggerEvent(\"onMonthChange\");\n        }\n        updateNavigationCurrentMonth();\n        buildDays();\n        updateValue();\n        if (!shouldChangeMonth &&\n            self.config.mode !== \"range\" &&\n            self.config.showMonths === 1)\n            focusOnDayElem(target);\n        else if (self.selectedDateElem !== undefined &&\n            self.hourElement === undefined) {\n            self.selectedDateElem && self.selectedDateElem.focus();\n        }\n        if (self.hourElement !== undefined)\n            self.hourElement !== undefined && self.hourElement.focus();\n        if (self.config.closeOnSelect) {\n            const single = self.config.mode === \"single\" && !self.config.enableTime;\n            const range = self.config.mode === \"range\" &&\n                self.selectedDates.length === 2 &&\n                !self.config.enableTime;\n            if (single || range) {\n                focusAndClose();\n            }\n        }\n        triggerChange();\n    }\n    const CALLBACKS = {\n        locale: [setupLocale, updateWeekdays],\n        showMonths: [buildMonths, setCalendarWidth, buildWeekdays],\n        minDate: [jumpToDate],\n        maxDate: [jumpToDate],\n        clickOpens: [\n            () => {\n                if (self.config.clickOpens === true) {\n                    bind(self._input, \"focus\", self.open);\n                    bind(self._input, \"click\", self.open);\n                }\n                else {\n                    self._input.removeEventListener(\"focus\", self.open);\n                    self._input.removeEventListener(\"click\", self.open);\n                }\n            },\n        ],\n    };\n    function set(option, value) {\n        if (option !== null && typeof option === \"object\") {\n            Object.assign(self.config, option);\n            for (const key in option) {\n                if (CALLBACKS[key] !== undefined)\n                    CALLBACKS[key].forEach((x) => x());\n            }\n        }\n        else {\n            self.config[option] = value;\n            if (CALLBACKS[option] !== undefined)\n                CALLBACKS[option].forEach((x) => x());\n            else if (HOOKS.indexOf(option) > -1)\n                self.config[option] = arrayify(value);\n        }\n        self.redraw();\n        updateValue(true);\n    }\n    function setSelectedDate(inputDate, format) {\n        let dates = [];\n        if (inputDate instanceof Array)\n            dates = inputDate.map((d) => self.parseDate(d, format));\n        else if (inputDate instanceof Date || typeof inputDate === \"number\")\n            dates = [self.parseDate(inputDate, format)];\n        else if (typeof inputDate === \"string\") {\n            switch (self.config.mode) {\n                case \"single\":\n                case \"time\":\n                    dates = [self.parseDate(inputDate, format)];\n                    break;\n                case \"multiple\":\n                    dates = inputDate\n                        .split(self.config.conjunction)\n                        .map((date) => self.parseDate(date, format));\n                    break;\n                case \"range\":\n                    dates = inputDate\n                        .split(self.l10n.rangeSeparator)\n                        .map((date) => self.parseDate(date, format));\n                    break;\n                default:\n                    break;\n            }\n        }\n        else\n            self.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(inputDate)}`));\n        self.selectedDates = (self.config.allowInvalidPreload\n            ? dates\n            : dates.filter((d) => d instanceof Date && isEnabled(d, false)));\n        if (self.config.mode === \"range\")\n            self.selectedDates.sort((a, b) => a.getTime() - b.getTime());\n    }\n    function setDate(date, triggerChange = false, format = self.config.dateFormat) {\n        if ((date !== 0 && !date) || (date instanceof Array && date.length === 0))\n            return self.clear(triggerChange);\n        setSelectedDate(date, format);\n        self.latestSelectedDateObj =\n            self.selectedDates[self.selectedDates.length - 1];\n        self.redraw();\n        jumpToDate(undefined, triggerChange);\n        setHoursFromDate();\n        if (self.selectedDates.length === 0) {\n            self.clear(false);\n        }\n        updateValue(triggerChange);\n        if (triggerChange)\n            triggerEvent(\"onChange\");\n    }\n    function parseDateRules(arr) {\n        return arr\n            .slice()\n            .map((rule) => {\n            if (typeof rule === \"string\" ||\n                typeof rule === \"number\" ||\n                rule instanceof Date) {\n                return self.parseDate(rule, undefined, true);\n            }\n            else if (rule &&\n                typeof rule === \"object\" &&\n                rule.from &&\n                rule.to)\n                return {\n                    from: self.parseDate(rule.from, undefined),\n                    to: self.parseDate(rule.to, undefined),\n                };\n            return rule;\n        })\n            .filter((x) => x);\n    }\n    function setupDates() {\n        self.selectedDates = [];\n        self.now = self.parseDate(self.config.now) || new Date();\n        const preloadedDate = self.config.defaultDate ||\n            ((self.input.nodeName === \"INPUT\" ||\n                self.input.nodeName === \"TEXTAREA\") &&\n                self.input.placeholder &&\n                self.input.value === self.input.placeholder\n                ? null\n                : self.input.value);\n        if (preloadedDate)\n            setSelectedDate(preloadedDate, self.config.dateFormat);\n        self._initialDate =\n            self.selectedDates.length > 0\n                ? self.selectedDates[0]\n                : self.config.minDate &&\n                    self.config.minDate.getTime() > self.now.getTime()\n                    ? self.config.minDate\n                    : self.config.maxDate &&\n                        self.config.maxDate.getTime() < self.now.getTime()\n                        ? self.config.maxDate\n                        : self.now;\n        self.currentYear = self._initialDate.getFullYear();\n        self.currentMonth = self._initialDate.getMonth();\n        if (self.selectedDates.length > 0)\n            self.latestSelectedDateObj = self.selectedDates[0];\n        if (self.config.minTime !== undefined)\n            self.config.minTime = self.parseDate(self.config.minTime, \"H:i\");\n        if (self.config.maxTime !== undefined)\n            self.config.maxTime = self.parseDate(self.config.maxTime, \"H:i\");\n        self.minDateHasTime =\n            !!self.config.minDate &&\n                (self.config.minDate.getHours() > 0 ||\n                    self.config.minDate.getMinutes() > 0 ||\n                    self.config.minDate.getSeconds() > 0);\n        self.maxDateHasTime =\n            !!self.config.maxDate &&\n                (self.config.maxDate.getHours() > 0 ||\n                    self.config.maxDate.getMinutes() > 0 ||\n                    self.config.maxDate.getSeconds() > 0);\n    }\n    function setupInputs() {\n        self.input = getInputElem();\n        if (!self.input) {\n            self.config.errorHandler(new Error(\"Invalid input element specified\"));\n            return;\n        }\n        self.input._type = self.input.type;\n        self.input.type = \"text\";\n        self.input.classList.add(\"flatpickr-input\");\n        self._input = self.input;\n        if (self.config.altInput) {\n            self.altInput = createElement(self.input.nodeName, self.config.altInputClass);\n            self._input = self.altInput;\n            self.altInput.placeholder = self.input.placeholder;\n            self.altInput.disabled = self.input.disabled;\n            self.altInput.required = self.input.required;\n            self.altInput.tabIndex = self.input.tabIndex;\n            self.altInput.type = \"text\";\n            self.input.setAttribute(\"type\", \"hidden\");\n            if (!self.config.static && self.input.parentNode)\n                self.input.parentNode.insertBefore(self.altInput, self.input.nextSibling);\n        }\n        if (!self.config.allowInput)\n            self._input.setAttribute(\"readonly\", \"readonly\");\n        self._positionElement = self.config.positionElement || self._input;\n    }\n    function setupMobile() {\n        const inputType = self.config.enableTime\n            ? self.config.noCalendar\n                ? \"time\"\n                : \"datetime-local\"\n            : \"date\";\n        self.mobileInput = createElement(\"input\", self.input.className + \" flatpickr-mobile\");\n        self.mobileInput.tabIndex = 1;\n        self.mobileInput.type = inputType;\n        self.mobileInput.disabled = self.input.disabled;\n        self.mobileInput.required = self.input.required;\n        self.mobileInput.placeholder = self.input.placeholder;\n        self.mobileFormatStr =\n            inputType === \"datetime-local\"\n                ? \"Y-m-d\\\\TH:i:S\"\n                : inputType === \"date\"\n                    ? \"Y-m-d\"\n                    : \"H:i:S\";\n        if (self.selectedDates.length > 0) {\n            self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);\n        }\n        if (self.config.minDate)\n            self.mobileInput.min = self.formatDate(self.config.minDate, \"Y-m-d\");\n        if (self.config.maxDate)\n            self.mobileInput.max = self.formatDate(self.config.maxDate, \"Y-m-d\");\n        if (self.input.getAttribute(\"step\"))\n            self.mobileInput.step = String(self.input.getAttribute(\"step\"));\n        self.input.type = \"hidden\";\n        if (self.altInput !== undefined)\n            self.altInput.type = \"hidden\";\n        try {\n            if (self.input.parentNode)\n                self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);\n        }\n        catch (_a) { }\n        bind(self.mobileInput, \"change\", (e) => {\n            self.setDate(getEventTarget(e).value, false, self.mobileFormatStr);\n            triggerEvent(\"onChange\");\n            triggerEvent(\"onClose\");\n        });\n    }\n    function toggle(e) {\n        if (self.isOpen === true)\n            return self.close();\n        self.open(e);\n    }\n    function triggerEvent(event, data) {\n        if (self.config === undefined)\n            return;\n        const hooks = self.config[event];\n        if (hooks !== undefined && hooks.length > 0) {\n            for (let i = 0; hooks[i] && i < hooks.length; i++)\n                hooks[i](self.selectedDates, self.input.value, self, data);\n        }\n        if (event === \"onChange\") {\n            self.input.dispatchEvent(createEvent(\"change\"));\n            self.input.dispatchEvent(createEvent(\"input\"));\n        }\n    }\n    function createEvent(name) {\n        const e = document.createEvent(\"Event\");\n        e.initEvent(name, true, true);\n        return e;\n    }\n    function isDateSelected(date) {\n        for (let i = 0; i < self.selectedDates.length; i++) {\n            if (compareDates(self.selectedDates[i], date) === 0)\n                return \"\" + i;\n        }\n        return false;\n    }\n    function isDateInRange(date) {\n        if (self.config.mode !== \"range\" || self.selectedDates.length < 2)\n            return false;\n        return (compareDates(date, self.selectedDates[0]) >= 0 &&\n            compareDates(date, self.selectedDates[1]) <= 0);\n    }\n    function updateNavigationCurrentMonth() {\n        if (self.config.noCalendar || self.isMobile || !self.monthNav)\n            return;\n        self.yearElements.forEach((yearElement, i) => {\n            const d = new Date(self.currentYear, self.currentMonth, 1);\n            d.setMonth(self.currentMonth + i);\n            if (self.config.showMonths > 1 ||\n                self.config.monthSelectorType === \"static\") {\n                self.monthElements[i].textContent =\n                    monthToStr(d.getMonth(), self.config.shorthandCurrentMonth, self.l10n) + \" \";\n            }\n            else {\n                self.monthsDropdownContainer.value = d.getMonth().toString();\n            }\n            yearElement.value = d.getFullYear().toString();\n        });\n        self._hidePrevMonthArrow =\n            self.config.minDate !== undefined &&\n                (self.currentYear === self.config.minDate.getFullYear()\n                    ? self.currentMonth <= self.config.minDate.getMonth()\n                    : self.currentYear < self.config.minDate.getFullYear());\n        self._hideNextMonthArrow =\n            self.config.maxDate !== undefined &&\n                (self.currentYear === self.config.maxDate.getFullYear()\n                    ? self.currentMonth + 1 > self.config.maxDate.getMonth()\n                    : self.currentYear > self.config.maxDate.getFullYear());\n    }\n    function getDateStr(format) {\n        return self.selectedDates\n            .map((dObj) => self.formatDate(dObj, format))\n            .filter((d, i, arr) => self.config.mode !== \"range\" ||\n            self.config.enableTime ||\n            arr.indexOf(d) === i)\n            .join(self.config.mode !== \"range\"\n            ? self.config.conjunction\n            : self.l10n.rangeSeparator);\n    }\n    function updateValue(triggerChange = true) {\n        if (self.mobileInput !== undefined && self.mobileFormatStr) {\n            self.mobileInput.value =\n                self.latestSelectedDateObj !== undefined\n                    ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr)\n                    : \"\";\n        }\n        self.input.value = getDateStr(self.config.dateFormat);\n        if (self.altInput !== undefined) {\n            self.altInput.value = getDateStr(self.config.altFormat);\n        }\n        if (triggerChange !== false)\n            triggerEvent(\"onValueUpdate\");\n    }\n    function onMonthNavClick(e) {\n        const eventTarget = getEventTarget(e);\n        const isPrevMonth = self.prevMonthNav.contains(eventTarget);\n        const isNextMonth = self.nextMonthNav.contains(eventTarget);\n        if (isPrevMonth || isNextMonth) {\n            changeMonth(isPrevMonth ? -1 : 1);\n        }\n        else if (self.yearElements.indexOf(eventTarget) >= 0) {\n            eventTarget.select();\n        }\n        else if (eventTarget.classList.contains(\"arrowUp\")) {\n            self.changeYear(self.currentYear + 1);\n        }\n        else if (eventTarget.classList.contains(\"arrowDown\")) {\n            self.changeYear(self.currentYear - 1);\n        }\n    }\n    function timeWrapper(e) {\n        e.preventDefault();\n        const isKeyDown = e.type === \"keydown\", eventTarget = getEventTarget(e), input = eventTarget;\n        if (self.amPM !== undefined && eventTarget === self.amPM) {\n            self.amPM.textContent =\n                self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n        }\n        const min = parseFloat(input.getAttribute(\"min\")), max = parseFloat(input.getAttribute(\"max\")), step = parseFloat(input.getAttribute(\"step\")), curValue = parseInt(input.value, 10), delta = e.delta ||\n            (isKeyDown ? (e.which === 38 ? 1 : -1) : 0);\n        let newValue = curValue + step * delta;\n        if (typeof input.value !== \"undefined\" && input.value.length === 2) {\n            const isHourElem = input === self.hourElement, isMinuteElem = input === self.minuteElement;\n            if (newValue < min) {\n                newValue =\n                    max +\n                        newValue +\n                        int(!isHourElem) +\n                        (int(isHourElem) && int(!self.amPM));\n                if (isMinuteElem)\n                    incrementNumInput(undefined, -1, self.hourElement);\n            }\n            else if (newValue > max) {\n                newValue =\n                    input === self.hourElement ? newValue - max - int(!self.amPM) : min;\n                if (isMinuteElem)\n                    incrementNumInput(undefined, 1, self.hourElement);\n            }\n            if (self.amPM &&\n                isHourElem &&\n                (step === 1\n                    ? newValue + curValue === 23\n                    : Math.abs(newValue - curValue) > step)) {\n                self.amPM.textContent =\n                    self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n            }\n            input.value = pad(newValue);\n        }\n    }\n    init();\n    return self;\n}\nfunction _flatpickr(nodeList, config) {\n    const nodes = Array.prototype.slice\n        .call(nodeList)\n        .filter((x) => x instanceof HTMLElement);\n    const instances = [];\n    for (let i = 0; i < nodes.length; i++) {\n        const node = nodes[i];\n        try {\n            if (node.getAttribute(\"data-fp-omit\") !== null)\n                continue;\n            if (node._flatpickr !== undefined) {\n                node._flatpickr.destroy();\n                node._flatpickr = undefined;\n            }\n            node._flatpickr = FlatpickrInstance(node, config || {});\n            instances.push(node._flatpickr);\n        }\n        catch (e) {\n            console.error(e);\n        }\n    }\n    return instances.length === 1 ? instances[0] : instances;\n}\nif (typeof HTMLElement !== \"undefined\" &&\n    typeof HTMLCollection !== \"undefined\" &&\n    typeof NodeList !== \"undefined\") {\n    HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function (config) {\n        return _flatpickr(this, config);\n    };\n    HTMLElement.prototype.flatpickr = function (config) {\n        return _flatpickr([this], config);\n    };\n}\nvar flatpickr = function (selector, config) {\n    if (typeof selector === \"string\") {\n        return _flatpickr(window.document.querySelectorAll(selector), config);\n    }\n    else if (selector instanceof Node) {\n        return _flatpickr([selector], config);\n    }\n    else {\n        return _flatpickr(selector, config);\n    }\n};\nflatpickr.defaultConfig = {};\nflatpickr.l10ns = {\n    en: Object.assign({}, English),\n    default: Object.assign({}, English),\n};\nflatpickr.localize = (l10n) => {\n    flatpickr.l10ns.default = Object.assign(Object.assign({}, flatpickr.l10ns.default), l10n);\n};\nflatpickr.setDefaults = (config) => {\n    flatpickr.defaultConfig = Object.assign(Object.assign({}, flatpickr.defaultConfig), config);\n};\nflatpickr.parseDate = createDateParser({});\nflatpickr.formatDate = createDateFormatter({});\nflatpickr.compareDates = compareDates;\nif (typeof jQuery !== \"undefined\" && typeof jQuery.fn !== \"undefined\") {\n    jQuery.fn.flatpickr = function (config) {\n        return _flatpickr(this, config);\n    };\n}\nDate.prototype.fp_incr = function (days) {\n    return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof days === \"string\" ? parseInt(days, 10) : days));\n};\nif (typeof window !== \"undefined\") {\n    window.flatpickr = flatpickr;\n}\nexport default flatpickr;\n","import flatpickr from \"flatpickr\";\n\n/**\n * Carbon-styled English locale: single-letter weekday abbreviations\n * with \"Th\" disambiguating Thursday from Tuesday.\n * Longhand is included so flatpickr's shallow locale merge does not\n * drop the weekday longhand (used by ARIA labels on day cells).\n */\nconst ENGLISH_LOCALE = {\n  weekdays: {\n    shorthand: [\"S\", \"M\", \"T\", \"W\", \"Th\", \"F\", \"S\"],\n    longhand: [\n      \"Sunday\",\n      \"Monday\",\n      \"Tuesday\",\n      \"Wednesday\",\n      \"Thursday\",\n      \"Friday\",\n      \"Saturday\",\n    ],\n  },\n};\n\n/**\n * @param {unknown} locale\n * @returns {unknown}\n */\nexport function resolveLocale(locale) {\n  return locale === \"en\" ? ENGLISH_LOCALE : locale;\n}\n\n/**\n * Minimal flatpickr instance shape used by updateClasses and updateMonthNode.\n * Matches flatpickr's Instance where some elements may be optional.\n * @typedef {{\n *   calendarContainer: HTMLElement;\n *   days: HTMLElement;\n *   daysContainer?: HTMLElement;\n *   weekdayContainer: HTMLElement;\n *   selectedDates: unknown[];\n *   l10n: { months: { longhand: string[] }; weekdays?: { shorthand?: string[] } };\n *   currentMonth: number;\n *   monthNav: HTMLElement;\n *   monthsDropdownContainer: HTMLElement;\n * }} FlatpickrInstance\n */\n\n/**\n * @param {FlatpickrInstance} instance\n * @param {{ isMonth?: boolean; isYear?: boolean }} [modifiers]\n */\nfunction updateClasses(instance, { isMonth = false, isYear = false } = {}) {\n  const {\n    calendarContainer,\n    days,\n    daysContainer,\n    weekdayContainer,\n    selectedDates,\n  } = instance;\n\n  calendarContainer.classList.add(\"bx--date-picker__calendar\");\n  // Marker classes so SCSS can target the shorter month/year grids without `:has()`.\n  calendarContainer.classList.toggle(\n    \"bx--date-picker__calendar--month\",\n    isMonth,\n  );\n  calendarContainer.classList.toggle(\"bx--date-picker__calendar--year\", isYear);\n  calendarContainer\n    .querySelector(\".flatpickr-month\")\n    ?.classList.add(\"bx--date-picker__month\");\n\n  weekdayContainer.classList.add(\"bx--date-picker__weekdays\");\n  for (const node of weekdayContainer.querySelectorAll(\".flatpickr-weekday\")) {\n    node.classList.add(\"bx--date-picker__weekday\");\n  }\n\n  if (daysContainer) {\n    daysContainer.classList.add(\"bx--date-picker__days\");\n  }\n  for (const node of days.querySelectorAll(\".flatpickr-day\")) {\n    node.classList.add(\"bx--date-picker__day\");\n    if (node.classList.contains(\"today\") && selectedDates.length > 0) {\n      node.classList.add(\"no-border\");\n    } else if (node.classList.contains(\"today\") && selectedDates.length === 0) {\n      node.classList.remove(\"no-border\");\n    }\n  }\n}\n\n/**\n * Marks flatpickr's own disabled day elements (out-of-range days, and\n * previous/next-month days that fall outside minDate/maxDate) as\n * aria-disabled. Without this, axe-core's color-contrast check flags\n * these days: WCAG 1.4.3 exempts inactive UI component text from the\n * contrast requirement, but axe only recognizes that exemption via\n * aria-disabled=\"true\", not the flatpickr-disabled CSS class.\n *\n * @param {any} _dObj\n * @param {any} _dStr\n * @param {any} _fp\n * @param {HTMLElement} dayElem\n */\nfunction markDisabledDayAriaState(_dObj, _dStr, _fp, dayElem) {\n  if (dayElem.classList.contains(\"flatpickr-disabled\")) {\n    dayElem.setAttribute(\"aria-disabled\", \"true\");\n  }\n}\n\n/**\n * flatpickr's bundled monthSelect plugin has no concept of \"today\"; mark\n * the current year's current month the same way flatpickr core marks the\n * current day, since the month cells persist (and their `dateObj` year is\n * mutated in place) across `onYearChange` instead of being rebuilt.\n *\n * @param {FlatpickrInstance} instance\n */\nfunction markTodayMonth(instance) {\n  const now = new Date();\n  for (const node of instance.rContainer?.querySelectorAll(\n    \".flatpickr-monthSelect-month\",\n  ) ?? []) {\n    const isToday =\n      node.dateObj.getFullYear() === now.getFullYear() &&\n      node.dateObj.getMonth() === now.getMonth();\n    node.classList.toggle(\"today\", isToday);\n    if (isToday) {\n      node.setAttribute(\"aria-current\", \"date\");\n    } else {\n      node.removeAttribute(\"aria-current\");\n    }\n  }\n}\n\n/**\n * @param {FlatpickrInstance} instance\n */\nfunction updateMonthNode(instance) {\n  const monthText = instance.l10n.months.longhand[instance.currentMonth];\n  const staticMonthNode = instance.monthNav.querySelector(\".cur-month\");\n\n  if (staticMonthNode) {\n    staticMonthNode.textContent = monthText;\n  } else {\n    const monthSelectNode = instance.monthsDropdownContainer;\n    const span = document.createElement(\"span\");\n    span.setAttribute(\"class\", \"cur-month\");\n    span.textContent = monthText;\n    monthSelectNode.parentNode?.replaceChild(span, monthSelectNode);\n  }\n}\n\n/**\n * @typedef {{\n *   options: { locale?: string; mode?: string };\n *   base: HTMLElement;\n *   input: HTMLInputElement;\n *   dispatch: (event: string) => void;\n * }} CreateCalendarArgs\n */\n\n/**\n * @param {CreateCalendarArgs} args\n * @returns {Promise<FlatpickrInstance>}\n */\nexport async function createCalendar({ options, base, input, dispatch }) {\n  /** @type {((new (config: { position: string; input: HTMLInputElement }) => unknown) | undefined)} */\n  let RangePlugin;\n  /** @type {((config?: { shorthand?: boolean; dateFormat?: string; altFormat?: string }) => unknown) | undefined} */\n  let monthSelectPlugin;\n  /** @type {((config?: { dateFormat?: string; altFormat?: string }) => unknown) | undefined} */\n  let yearSelectPlugin;\n\n  if (options.mode === \"range\") {\n    const importee = await import(\"flatpickr/dist/esm/plugins/rangePlugin\");\n    RangePlugin = importee.default;\n  }\n\n  if (options.mode === \"month\") {\n    const importee = await import(\"flatpickr/dist/esm/plugins/monthSelect\");\n    monthSelectPlugin = importee.default;\n  }\n\n  if (options.mode === \"year\") {\n    const importee = await import(\"./yearSelectPlugin.js\");\n    yearSelectPlugin = importee.default;\n  }\n\n  const plugins = [\n    options.mode === \"range\" && RangePlugin\n      ? new RangePlugin({ position: \"left\", input })\n      : false,\n    options.mode === \"month\" && monthSelectPlugin\n      ? monthSelectPlugin({\n          shorthand: true,\n          dateFormat: options.dateFormat,\n          altFormat: options.dateFormat,\n        })\n      : false,\n    options.mode === \"year\" && yearSelectPlugin\n      ? yearSelectPlugin({\n          dateFormat: options.dateFormat,\n          altFormat: options.dateFormat,\n        })\n      : false,\n  ].filter(Boolean);\n\n  const userOnDayCreate = options.onDayCreate;\n\n  const config = {\n    allowInput: true,\n    disableMobile: true,\n    clickOpens: true,\n    ariaDateFormat: \"l, F j, Y\",\n    plugins,\n    nextArrow:\n      '<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\"><polygon points=\"11,8 6,13 5.3,12.3 9.6,8 5.3,3.7 6,3 \"/><rect width=\"16\" height=\"16\" style=\"fill: none\" /></svg>',\n    prevArrow:\n      '<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\"><polygon points=\"5,8 10,3 10.7,3.7 6.4,8 10.7,12.3 10,13 \"/><rect width=\"16\" height=\"16\" style=\"fill: none\" /></svg>',\n    onChange: () => {\n      dispatch(\"change\");\n    },\n    onClose: () => {\n      dispatch(\"close\");\n    },\n    onMonthChange: (\n      /** @type {any} */ _s,\n      /** @type {any} */ _d,\n      /** @type {FlatpickrInstance} */ instance,\n    ) => {\n      // The monthSelect / yearSelect plugins remove the month-label node, so\n      // there is nothing for updateMonthNode to patch.\n      if (options.mode !== \"month\" && options.mode !== \"year\") {\n        updateMonthNode(instance);\n      }\n    },\n    onYearChange: (\n      /** @type {any} */ _s,\n      /** @type {any} */ _d,\n      /** @type {FlatpickrInstance} */ instance,\n    ) => {\n      // The monthSelect plugin mutates its month cells' `dateObj` in place\n      // on year change rather than rebuilding them, so re-mark \"today\" here.\n      if (options.mode === \"month\") {\n        markTodayMonth(instance);\n      }\n    },\n    onOpen: (\n      /** @type {any} */ _s,\n      /** @type {any} */ _d,\n      /** @type {FlatpickrInstance} */ instance,\n    ) => {\n      dispatch(\"open\");\n      updateClasses(instance, {\n        isMonth: options.mode === \"month\",\n        isYear: options.mode === \"year\",\n      });\n      if (options.mode !== \"month\" && options.mode !== \"year\") {\n        updateMonthNode(instance);\n      }\n      if (options.mode === \"month\") {\n        markTodayMonth(instance);\n      }\n    },\n    ...options,\n    locale: resolveLocale(options.locale),\n    onDayCreate: [\n      markDisabledDayAriaState,\n      ...(Array.isArray(userOnDayCreate)\n        ? userOnDayCreate\n        : userOnDayCreate\n          ? [userOnDayCreate]\n          : []),\n    ],\n  };\n  return new /** @type {any} */ (flatpickr)(base, config);\n}\n","/**\n * Native `<dialog>` / `[popover]` ancestors used when portalling the flatpickr\n * calendar with `portalMenu` so it participates in the correct top layer.\n */\nexport const TOP_LAYER_ANCESTOR_SELECTOR = \"dialog,[popover]\";\n\n/**\n * @param {HTMLElement | null | undefined} root\n * @returns {HTMLElement | null}\n */\nexport function getTopLayerAncestor(root) {\n  return root?.closest(TOP_LAYER_ANCESTOR_SELECTOR) ?? null;\n}\n\n/**\n * Flatpickr `position` hook: `position: fixed` with viewport-relative coordinates.\n * Used when the calendar is appended into a top-layer ancestor — `position: absolute`\n * would resolve against that element’s containing block and mis-place the calendar.\n *\n * @param {import(\"./datePickerTopLayer\").FlatpickrTopLayerPositionInstance} instance\n * @param {HTMLElement | undefined} customPositionElement\n */\nexport function positionFlatpickrCalendarFixed(\n  instance,\n  customPositionElement,\n) {\n  const positionElement =\n    customPositionElement || instance._positionElement || instance._input;\n  const calendarContainer = instance.calendarContainer;\n  if (!calendarContainer || !positionElement) return;\n\n  const calendarHeight = Array.prototype.reduce.call(\n    calendarContainer.children,\n    (/** @type {number} */ acc, /** @type {HTMLElement} */ child) =>\n      acc + child.offsetHeight,\n    0,\n  );\n  const calendarWidth = calendarContainer.offsetWidth;\n  const inputBounds = positionElement.getBoundingClientRect();\n  const distanceFromBottom = window.innerHeight - inputBounds.bottom;\n  const showOnTop =\n    distanceFromBottom < calendarHeight && inputBounds.top > calendarHeight;\n\n  const top =\n    inputBounds.top +\n    (showOnTop ? -calendarHeight - 2 : positionElement.offsetHeight + 2);\n  const left = inputBounds.left;\n  const viewportWidth = document.documentElement.clientWidth;\n  const rightMost = left + calendarWidth > viewportWidth;\n\n  calendarContainer.classList.toggle(\"arrowTop\", !showOnTop);\n  calendarContainer.classList.toggle(\"arrowBottom\", showOnTop);\n  calendarContainer.classList.toggle(\"arrowLeft\", !rightMost);\n  calendarContainer.classList.toggle(\"arrowRight\", rightMost);\n  calendarContainer.classList.toggle(\"arrowCenter\", false);\n  calendarContainer.classList.toggle(\"rightMost\", rightMost);\n\n  calendarContainer.style.position = \"fixed\";\n  calendarContainer.style.top = `${top}px`;\n  if (rightMost) {\n    calendarContainer.style.left = \"auto\";\n    calendarContainer.style.right = `${viewportWidth - inputBounds.right}px`;\n  } else {\n    calendarContainer.style.left = `${left}px`;\n    calendarContainer.style.right = \"auto\";\n  }\n}\n\n/**\n * Whether a click/focus event target is still “inside” the date picker UI when\n * the calendar is portalled into a top-layer ancestor — including the subtree\n * of that ancestor so brief hit-testing quirks during open animations do not\n * close the calendar.\n *\n * @param {HTMLElement | null | undefined} datePickerRef\n * @param {HTMLElement} calendarContainer\n * @param {EventTarget | null} target\n * @param {HTMLElement | null} [cachedTopLayer] Pre-computed ancestor; avoids a `.closest()` query per event.\n */\nexport function isEventTargetInsidePortaledCalendar(\n  datePickerRef,\n  calendarContainer,\n  target,\n  cachedTopLayer,\n) {\n  if (!(target instanceof Node)) return false;\n  if (datePickerRef?.contains(target)) return true;\n  if (calendarContainer.contains(target)) return true;\n  const topLayer =\n    cachedTopLayer === undefined\n      ? getTopLayerAncestor(datePickerRef)\n      : cachedTopLayer;\n  return !!topLayer?.contains(target);\n}\n","<script>\n  /**\n   * @event {string | { selectedDates: [dateFrom: Date, dateTo?: Date]; dateStr: string | { from: string; to: string; } }} change\n   */\n\n  /**\n   * @event close\n   * @type {object}\n   * @property {\"escape-key\" | \"outside-click\" | \"select\"} trigger\n   */\n\n  /**\n   * Specify the date picker type.\n   * @type {\"simple\" | \"single\" | \"range\" | \"month\" | \"year\"}\n   */\n  export let datePickerType = \"simple\";\n\n  /**\n   * Specify the date picker input value.\n   * @type {number | string}\n   * @bindable writable\n   */\n  export let value = \"\";\n\n  /**\n   * Specify the date picker start date value (from).\n   * Only works with the \"range\" date picker type.\n   * @type {string}\n   * @bindable writable\n   */\n  export let valueFrom = \"\";\n\n  /**\n   * Specify the date picker end date value (to).\n   * Only works with the \"range\" date picker type.\n   * @type {string}\n   * @bindable writable\n   */\n  export let valueTo = \"\";\n\n  /**\n   * Specify the date format.\n   * Use `\"F Y\"` or `\"m/Y\"` with `datePickerType=\"month\"`, and `\"Y\"` with\n   * `datePickerType=\"year\"`.\n   */\n  export let dateFormat = \"m/d/Y\";\n\n  /**\n   * Specify the maximum date.\n   * @type {null | string | Date}\n   */\n  export let maxDate = null;\n\n  /**\n   * Specify the minimum date.\n   * @type {null | string | Date}\n   */\n  export let minDate = null;\n\n  /**\n   * Specify the locale.\n   * @type {import(\"flatpickr/dist/types/locale\").CustomLocale | import(\"flatpickr/dist/types/locale\").key}\n   */\n  export let locale = \"en\";\n\n  /** Set to `true` to use the short variant */\n  export let short = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   */\n  export let fluid = false;\n\n  /**\n   * Set to `true` to render the calendar in a portal to prevent clipping.\n   * When inside a Modal, defaults to `true` unless explicitly set to `false`.\n   *\n   * When the date picker is inside a native `<dialog>` (opened with\n   * `showModal()`) or an open `[popover]` element, the calendar auto-mounts\n   * into that top-layer ancestor and uses `position: fixed` so it renders\n   * above the backdrop instead of behind it.\n   * @type {boolean | undefined}\n   */\n  export let portalMenu = undefined;\n\n  /** Set an id for the date picker element */\n  export let id = uniqueId();\n\n  /**\n   * Override the options passed to the Flatpickr instance.\n   * @see https://flatpickr.js.org/options\n   * @type {import(\"flatpickr/dist/types/options\").Options}\n   */\n  export let flatpickrProps = { static: true };\n\n  /**\n   * Bind to the Flatpickr calendar instance for programmatic control.\n   * Only available when `datePickerType` is `\"single\"`, `\"range\"`, `\"month\"`,\n   * or `\"year\"`.\n   * @see https://flatpickr.js.org/instance-methods-properties-elements/\n   * @type {import(\"flatpickr/dist/types/instance\").Instance | null}\n   * @bindable readonly\n   */\n  export let calendar = null;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    onMount,\n    setContext,\n  } from \"svelte\";\n  import { derived, writable } from \"svelte/store\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import { createCalendar, resolveLocale } from \"./createCalendar\";\n  import {\n    getTopLayerAncestor,\n    isEventTargetInsidePortaledCalendar,\n    positionFlatpickrCalendarFixed,\n  } from \"./datePickerTopLayer\";\n\n  const dispatch = createEventDispatcher();\n  const insideModal = getContext(\"carbon:Modal\");\n  const formContext = getContext(\"carbon:Form\");\n\n  $: effectivePortalMenu =\n    portalMenu === undefined ? !!insideModal : portalMenu;\n  $: isFluid = fluid || !!formContext?.isFluid;\n\n  const inputs = writable([]);\n  /**\n   * @type {import(\"svelte/store\").Readable<ReadonlyArray<string>>}\n   */\n  const inputIds = derived(inputs, (_) => _.map(({ id }) => id));\n  const labelTextEmpty = derived(\n    inputs,\n    (_) => _.filter(({ labelText }) => !!labelText).length === 0,\n  );\n  const readonlyAny = derived(inputs, (_) =>\n    _.some(({ readonly }) => readonly),\n  );\n  const invalidAny = derived(inputs, (_) => _.some(({ invalid }) => invalid));\n  const warnAny = derived(inputs, (_) => _.some(({ warn }) => warn));\n  const isFluidStore = writable(false);\n  $: isFluidStore.set(isFluid);\n  /**\n   * @type {import(\"svelte/store\").Writable<number | string>}\n   */\n  const inputValue = writable(value);\n  /**\n   * @type {import(\"svelte/store\").Writable<string>}\n   */\n  const inputValueFrom = writable(valueFrom);\n  /**\n   * @type {import(\"svelte/store\").Writable<string>}\n   */\n  const inputValueTo = writable(valueTo);\n  const mode = writable(datePickerType);\n  const dateFormatStore = writable(dateFormat);\n  /**\n   * @type {import(\"svelte/store\").Readable<boolean>}\n   */\n  const range = derived(mode, (_) => _ === \"range\");\n  /**\n   * @type {import(\"svelte/store\").Readable<boolean>}\n   */\n  const hasCalendar = derived(\n    mode,\n    (_) => _ === \"single\" || _ === \"range\" || _ === \"month\" || _ === \"year\",\n  );\n\n  let datePickerRef = null;\n  let inputRef = null;\n  let inputRefTo = null;\n  let prevValue = value;\n  let prevValueFrom = valueFrom;\n  let prevValueTo = valueTo;\n  let lastAppliedOptions = {};\n  let calendarUsesFixedPositioning = false;\n  let onCalendarReposition = null;\n  /** @type {HTMLElement | null} */\n  let topLayerAncestor = null;\n  // Set from onOpen/onClose. Outside-click listener attaches only while open.\n  let calendarOpen = false;\n  // flatpickr onClose has no reason; explicit handlers set closeTrigger, else\n  // infer from session baseline. Close dispatch is deferred for range sync.\n  /** @type {\"escape-key\" | \"outside-click\" | undefined} */\n  let closeTrigger;\n  /** @type {string | { from: string; to: string }} */\n  let dateStrAtOpen;\n  /** @type {number[]} */\n  let selectedDatesAtOpen = [];\n\n  /**\n   * @param {string | { from: string; to: string }} atOpen\n   * @param {string | { from: string; to: string }} atClose\n   */\n  function dateStrChanged(atOpen, atClose) {\n    if (typeof atClose === \"object\") {\n      return atOpen.from !== atClose.from || atOpen.to !== atClose.to;\n    }\n    return atOpen !== atClose;\n  }\n\n  /**\n   * @param {number[]} atOpen\n   * @param {Date[]} selectedDates\n   */\n  function selectedDatesChanged(atOpen, selectedDates) {\n    const atClose = (selectedDates || []).map((date) => date.getTime());\n    return (\n      atClose.length !== atOpen.length ||\n      atClose.some((time, index) => time !== atOpen[index])\n    );\n  }\n\n  function snapshotCloseBaseline() {\n    dateStrAtOpen = $range\n      ? { from: inputRef.value, to: inputRefTo.value }\n      : inputRef.value;\n    selectedDatesAtOpen = (calendar?.selectedDates || []).map((date) =>\n      date.getTime(),\n    );\n  }\n\n  function refreshCloseBaselineOnOpen() {\n    if (\n      selectedDatesChanged(selectedDatesAtOpen, calendar?.selectedDates || [])\n    ) {\n      dateStrAtOpen = $range\n        ? { from: inputRef.value, to: inputRefTo.value }\n        : inputRef.value;\n    } else {\n      snapshotCloseBaseline();\n    }\n  }\n\n  /**\n   * @param {{ copySelectedDates?: boolean }} [options]\n   */\n  function buildCalendarDetail({ copySelectedDates = false } = {}) {\n    const dates = calendar?.selectedDates || [];\n    const detail = {\n      selectedDates: copySelectedDates ? [...dates] : dates,\n    };\n\n    if ($range) {\n      const from = inputRef.value;\n      const to = inputRefTo.value;\n      detail.dateStr = { from, to };\n    } else {\n      detail.dateStr = inputRef.value;\n    }\n\n    return detail;\n  }\n\n  function dispatchDeferredClose() {\n    if (!calendar) return;\n\n    const detail = buildCalendarDetail({ copySelectedDates: true });\n\n    if ($range) {\n      valueFrom = inputRef.value;\n      valueTo = inputRefTo.value;\n    }\n\n    const selectionChanged =\n      selectedDatesChanged(selectedDatesAtOpen, detail.selectedDates) ||\n      dateStrChanged(dateStrAtOpen, detail.dateStr);\n    const trigger =\n      closeTrigger ?? (selectionChanged ? \"select\" : \"outside-click\");\n    closeTrigger = undefined;\n    dispatch(\"close\", { ...detail, trigger });\n  }\n\n  function attachFixedRepositionListeners() {\n    if (!calendar || onCalendarReposition) return;\n    onCalendarReposition = () => positionFlatpickrCalendarFixed(calendar);\n    window.addEventListener(\"scroll\", onCalendarReposition, true);\n    window.addEventListener(\"resize\", onCalendarReposition);\n  }\n\n  function detachFixedRepositionListeners() {\n    if (!onCalendarReposition) return;\n    window.removeEventListener(\"scroll\", onCalendarReposition, true);\n    window.removeEventListener(\"resize\", onCalendarReposition);\n    onCalendarReposition = null;\n  }\n\n  /**\n   * @type {(data: { id: string; labelText: string }) => void}\n   */\n  function add(data) {\n    inputs.update((_) => [\n      ..._,\n      { readonly: false, invalid: false, warn: false, ...data },\n    ]);\n  }\n\n  /**\n   * @type {(id: string, readonly: boolean) => void}\n   */\n  function setReadonly(id, readonly) {\n    inputs.update((_) =>\n      _.map((input) => (input.id === id ? { ...input, readonly } : input)),\n    );\n  }\n\n  /**\n   * @type {(id: string, invalid: boolean, warn: boolean) => void}\n   */\n  function setValidation(id, invalid, warn) {\n    inputs.update((_) =>\n      _.map((input) => (input.id === id ? { ...input, invalid, warn } : input)),\n    );\n  }\n\n  /**\n   * @type {(data: { id: string; ref: HTMLInputElement }) => void}\n   */\n  function declareRef({ id, ref }) {\n    if ($inputIds.indexOf(id) === 0) {\n      inputRef = ref;\n    } else {\n      inputRefTo = ref;\n    }\n  }\n\n  /**\n   * @type {(data: { type: \"input\" | \"change\"; value: string }) => void}\n   */\n  function updateValue({ type, value }) {\n    if ((!calendar && type === \"input\") || type === \"change\") {\n      inputValue.set(value);\n    }\n\n    if (type === \"change\") {\n      if (calendar) {\n        dispatch(\"change\", buildCalendarDetail());\n      } else {\n        dispatch(\"change\", value);\n      }\n    }\n  }\n\n  function dismissCalendar(trigger) {\n    if (!calendarOpen) return;\n    closeTrigger = trigger;\n    if (calendar?.isOpen) calendar.close();\n  }\n\n  /**\n   * @type {(relatedTarget: EventTarget | null) => void}\n   */\n  function blurInput(relatedTarget) {\n    if (!calendar) return;\n    // No relatedTarget means focus left the document (e.g. switching browser\n    // tabs); refocusing would replay the open animation.\n    if (relatedTarget == null) return;\n    // In range mode, focus moves between the two inputs while the calendar\n    // stays open; closing here would replay the open animation on every switch.\n    if (datePickerRef?.contains(/** @type {Node} */ (relatedTarget))) return;\n    if (\n      calendar.calendarContainer.contains(/** @type {Node} */ (relatedTarget))\n    )\n      return;\n    dismissCalendar(\"outside-click\");\n  }\n\n  /**\n   * @type {() => void}\n   */\n  function openCalendar() {\n    calendar.open();\n  }\n\n  /**\n   * @type {() => void}\n   */\n  function focusCalendar() {\n    (\n      calendar.selectedDateElem ||\n      calendar.todayDateElem ||\n      calendar.calendarContainer.querySelector(\".flatpickr-day[tabindex]\") ||\n      calendar.calendarContainer\n    ).focus();\n  }\n\n  setContext(\"carbon:DatePicker\", {\n    range,\n    inputValue,\n    inputValueFrom,\n    inputValueTo,\n    inputIds,\n    hasCalendar,\n    dateFormat: dateFormatStore,\n    isFluid: isFluidStore,\n    add,\n    setReadonly,\n    setValidation,\n    declareRef,\n    updateValue,\n    blurInput,\n    openCalendar,\n    focusCalendar,\n  });\n\n  function applyOptionIfChanged(optionKey, value, appliedValue = value) {\n    if (lastAppliedOptions[optionKey] !== value) {\n      calendar.set(optionKey, appliedValue);\n      lastAppliedOptions[optionKey] = value;\n    }\n  }\n\n  async function initCalendar(options) {\n    if (calendar) {\n      applyOptionIfChanged(\"minDate\", minDate);\n      applyOptionIfChanged(\"maxDate\", maxDate);\n      applyOptionIfChanged(\"locale\", locale, resolveLocale(locale));\n      applyOptionIfChanged(\"dateFormat\", dateFormat);\n      for (const [option, value] of Object.entries(flatpickrProps)) {\n        // `static` is decided by `effectivePortalMenu` at creation time\n        // (see below); re-applying the default `flatpickrProps.static`\n        // here would clobber that on every reactive re-run.\n        if (option === \"static\" && effectivePortalMenu) continue;\n        applyOptionIfChanged(option, value);\n      }\n      return;\n    }\n\n    // Auto-detect a top-layer ancestor (native dialog or open popover) so the\n    // calendar can participate in its top layer instead of being clipped behind\n    // the backdrop. Computed at creation time — appendTo cannot change after.\n    topLayerAncestor = getTopLayerAncestor(datePickerRef);\n    calendarUsesFixedPositioning = effectivePortalMenu && !!topLayerAncestor;\n\n    calendar = await createCalendar({\n      options: {\n        ...options,\n        ...(effectivePortalMenu\n          ? {\n              static: false,\n              ...(topLayerAncestor && {\n                appendTo: topLayerAncestor,\n                position: positionFlatpickrCalendarFixed,\n              }),\n            }\n          : { appendTo: datePickerRef }),\n        defaultDate: $inputValue,\n        mode: $mode,\n      },\n      base: inputRef,\n      input: inputRefTo,\n      dispatch: (event) => {\n        if (event === \"open\") {\n          calendarOpen = true;\n          closeTrigger = undefined;\n          refreshCloseBaselineOnOpen();\n        } else if (event === \"close\") {\n          calendarOpen = false;\n          if (calendarUsesFixedPositioning) {\n            detachFixedRepositionListeners();\n          }\n          queueMicrotask(dispatchDeferredClose);\n          return;\n        }\n        if (calendarUsesFixedPositioning && event === \"open\")\n          attachFixedRepositionListeners();\n        const detail = buildCalendarDetail();\n\n        if ($range) {\n          valueFrom = inputRef.value;\n          valueTo = inputRefTo.value;\n        }\n\n        return dispatch(event, detail);\n      },\n    });\n    snapshotCloseBaseline();\n    calendar?.calendarContainer?.setAttribute(\"role\", \"application\");\n    calendar?.calendarContainer?.setAttribute(\n      \"aria-label\",\n      \"calendar-container\",\n    );\n  }\n\n  onMount(() => {\n    return () => {\n      detachFixedRepositionListeners();\n      if (calendar) {\n        calendar.destroy();\n        calendar = null;\n      }\n    };\n  });\n\n  afterUpdate(() => {\n    if (calendar) {\n      if ($range) {\n        if (\n          $inputValueFrom !== prevValueFrom ||\n          $inputValueTo !== prevValueTo\n        ) {\n          calendar.setDate([$inputValueFrom, $inputValueTo]);\n          prevValueFrom = $inputValueFrom;\n          prevValueTo = $inputValueTo;\n\n          // workaround to remove the default range plugin separator \"to\"\n          if ($inputValueFrom !== \"\") {\n            inputRef.value = $inputValueFrom;\n          }\n          if ($inputValueTo !== \"\") {\n            inputRefTo.value = $inputValueTo;\n          }\n        }\n      } else if ($inputValue !== prevValue) {\n        calendar.setDate($inputValue);\n        prevValue = $inputValue;\n      }\n    }\n  });\n\n  $: dateFormatStore.set(dateFormat);\n  $: inputValue.set(value);\n  $: value = $inputValue;\n  $: inputValueFrom.set(valueFrom);\n  $: valueFrom = $inputValueFrom;\n  $: inputValueTo.set(valueTo);\n  $: valueTo = $inputValueTo;\n  $: if ($hasCalendar && inputRef) {\n    initCalendar({\n      dateFormat,\n      locale,\n      maxDate,\n      minDate,\n      // default to static: true so the\n      // date picker works inside a modal\n      static: true,\n      clickOpens: !$readonlyAny,\n      // The flatpickr range plugin strips the `readonly` attribute when\n      // `allowInput` is true, so disable it to preserve the readonly state.\n      allowInput: !$readonlyAny,\n      ...flatpickrProps,\n    })\n      .then(() => {})\n      .catch(() => {});\n  }\n  $: if (calendar) {\n    calendar.set(\"clickOpens\", !$readonlyAny);\n    calendar.set(\"allowInput\", !$readonlyAny);\n    if ($readonlyAny && calendar.isOpen) calendar.close();\n  }\n\n  /**\n   * Returns true when `event.target` is outside both the date-picker element\n   * and the (possibly portalled) calendar container.\n   *\n   * @param {Event} event\n   */\n  function isOutsideCalendarTarget(event) {\n    if (!calendarOpen || !calendar) return false;\n    return !isEventTargetInsidePortaledCalendar(\n      datePickerRef,\n      calendar.calendarContainer,\n      event.target,\n      topLayerAncestor,\n    );\n  }\n\n  /**\n   * flatpickr closes on document `mousedown` before our `click` handler runs.\n   * Set `closeTrigger` in capture phase so single-mode outside dismiss is not\n   * inferred as select when selectedDates differ from the session baseline.\n   *\n   * @type {(event: Event) => void}\n   */\n  function handleOutsidePointerDown(event) {\n    if (isOutsideCalendarTarget(event)) closeTrigger = \"outside-click\";\n  }\n\n  /**\n   * @type {(event: Event) => void}\n   */\n  function handleOutsideClick(event) {\n    if (isOutsideCalendarTarget(event)) dismissCalendar(\"outside-click\");\n  }\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--form-item={true}\n  class:bx--date-picker--fluid={isFluid}\n  class:bx--date-picker--fluid--invalid={isFluid && $invalidAny}\n  class:bx--date-picker--fluid--warn={isFluid && $warnAny}\n  class:bx--date-picker--fluid--readonly={isFluid && $readonlyAny}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <!-- svelte-ignore a11y-no-static-element-interactions -->\n  <div\n    bind:this={datePickerRef}\n    use:dismiss={{\n      enabled: calendarOpen,\n      listeners: [\n        {\n          type: \"pointerdown\",\n          handler: handleOutsidePointerDown,\n          options: { capture: true },\n        },\n        { type: \"click\", handler: handleOutsideClick },\n      ],\n    }}\n    {id}\n    class:bx--date-picker={true}\n    class:bx--date-picker--short={short}\n    class:bx--date-picker--light={light}\n    class:bx--date-picker--simple={datePickerType === \"simple\"}\n    class:bx--date-picker--single={datePickerType === \"single\" ||\n      datePickerType === \"month\" ||\n      datePickerType === \"year\"}\n    class:bx--date-picker--range={datePickerType === \"range\"}\n    class:bx--date-picker--nolabel={datePickerType === \"range\" &&\n      $labelTextEmpty}\n    on:keydown={(event) => {\n      if (calendar?.isOpen && event.key === \"Escape\") {\n        event.stopPropagation();\n        dismissCalendar(\"escape-key\");\n      }\n    }}\n  >\n    <slot />\n  </div>\n</div>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"\n  ></path>\n</svg>\n","<script>\n  /**\n   * Set the size of the input.\n   * @type {\"sm\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /** Specify the input type */\n  export let type = \"text\";\n\n  /** Specify the input placeholder text */\n  export let placeholder = \"\";\n\n  /**\n   * Specify the Regular Expression for the input value.\n   * By default, the pattern is derived from the parent\n   * `DatePicker`'s `dateFormat` prop.\n   * @type {string}\n   */\n  export let pattern = undefined;\n\n  /** Set to `true` to disable the input */\n  export let disabled = false;\n\n  /** Set to `true` to mark the input as read-only */\n  export let readonly = false;\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Specify the ARIA label for the calendar icon */\n  export let iconDescription = \"\";\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /**\n   * Set a name for the input element.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { getContext } from \"svelte\";\n  import Calendar from \"../icons/Calendar.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const REGEX_SPECIAL_CHARS = /[/\\\\^$*+?.()|[\\]{}]/g;\n\n  const {\n    range,\n    add,\n    setReadonly,\n    setValidation,\n    hasCalendar,\n    dateFormat,\n    declareRef,\n    inputIds,\n    updateValue,\n    blurInput,\n    openCalendar,\n    focusCalendar,\n    inputValue,\n    inputValueFrom,\n    inputValueTo,\n    isFluid,\n  } = getContext(\"carbon:DatePicker\");\n\n  const dateFormatTokens = {\n    d: \"\\\\d{1,2}\",\n    j: \"\\\\d{1,2}\",\n    m: \"\\\\d{1,2}\",\n    n: \"\\\\d{1,2}\",\n    Y: \"\\\\d{4}\",\n    y: \"\\\\d{2}\",\n    F: \"\\\\w+\",\n    M: \"\\\\w+\",\n    D: \"\\\\w+\",\n    l: \"\\\\w+\",\n  };\n\n  function dateFormatToPattern(fmt) {\n    let result = \"\";\n    for (let i = 0; i < fmt.length; i++) {\n      const ch = fmt[i];\n      if (ch === \"\\\\\" && i + 1 < fmt.length) {\n        result += fmt[++i].replace(REGEX_SPECIAL_CHARS, \"\\\\$&\");\n      } else if (dateFormatTokens[ch]) {\n        result += dateFormatTokens[ch];\n      } else {\n        result += ch.replace(REGEX_SPECIAL_CHARS, \"\\\\$&\");\n      }\n    }\n    return result;\n  }\n\n  add({ id, labelText });\n\n  $: actualPattern = pattern ?? dateFormatToPattern($dateFormat ?? \"m/d/Y\");\n  $: if (ref) declareRef({ id, ref });\n  $: setReadonly(id, readonly);\n  // Invalid/warn states are suppressed when the input is disabled or read-only.\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: setValidation(id, showInvalid, showWarn);\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: helperId = `helper-${id}`;\n  $: describedBy = showInvalid\n    ? undefined\n    : showWarn\n      ? warnId\n      : helperText\n        ? helperId\n        : undefined;\n</script>\n\n<div\n  class:bx--date-picker-container={true}\n  class:bx--date-picker--nolabel={!labelText}\n  class:bx--date-picker--fluid--invalid={$isFluid && showInvalid}\n  class:bx--date-picker--fluid--warn={$isFluid && showWarn}\n>\n  {#if labelText || $$slots.labelChildren}\n    <label\n      for={id}\n      class:bx--label={true}\n      class:bx--label--slotted={$isFluid && $$slots.labelChildren}\n      class:bx--visually-hidden={hideLabel}\n      class:bx--label--disabled={disabled}\n      class:bx--label--readonly={readonly}\n    >\n      <slot name=\"labelChildren\"> {labelText} </slot>\n    </label>\n  {/if}\n  <div\n    class:bx--date-picker-input__wrapper={true}\n    class:bx--date-picker-input__wrapper--invalid={showInvalid}\n    class:bx--date-picker-input__wrapper--warn={showWarn}\n    class:bx--date-picker-input__wrapper--readonly={readonly}\n    class:bx--date-picker-input__wrapper--disabled={disabled}\n  >\n    <input\n      bind:this={ref}\n      data-invalid={showInvalid || undefined}\n      aria-invalid={showInvalid || undefined}\n      aria-errormessage={showInvalid ? errorId : undefined}\n      aria-describedby={describedBy}\n      {id}\n      {name}\n      {placeholder}\n      {type}\n      pattern={actualPattern}\n      {disabled}\n      {readonly}\n      {...$$restProps}\n      value={$range\n        ? $inputIds.indexOf(id) === 0\n          ? $inputValueFrom\n          : $inputValueTo\n        : $inputValue}\n      class:bx--date-picker__input={true}\n      class:bx--date-picker__input--invalid={showInvalid}\n      class:bx--date-picker__input--sm={size === \"sm\"}\n      class:bx--date-picker__input--xl={size === \"xl\"}\n      on:input\n      on:input={(event) => {\n        updateValue({ type: \"input\", value: event.target.value });\n      }}\n      on:change={(event) => {\n        updateValue({ type: \"change\", value: event.target.value });\n      }}\n      on:keydown\n      on:keydown={(event) => {\n        if (!readonly && event.key === \"ArrowDown\") {\n          focusCalendar();\n        }\n      }}\n      on:keyup\n      on:focus\n      on:blur\n      on:blur={(event) => {\n        blurInput(event.relatedTarget);\n      }}\n      on:paste\n    >\n    {#if showInvalid}\n      <WarningFilled\n        class=\"bx--date-picker__icon bx--date-picker__icon--invalid\"\n      />\n    {/if}\n    {#if showWarn}\n      <WarningAltFilled\n        class=\"bx--date-picker__icon bx--date-picker__icon--warn\"\n      />\n    {/if}\n    {#if $hasCalendar && !showInvalid && !showWarn}\n      <Calendar\n        class=\"bx--date-picker__icon\"\n        aria-label={iconDescription}\n        on:click={openCalendar}\n      />\n    {/if}\n  </div>\n  {#if showInvalid}\n    <div class:bx--form-requirement={true} id={errorId} role=\"alert\">\n      {invalidText}\n    </div>\n  {/if}\n  {#if showWarn}\n    <div class:bx--form-requirement={true} id={warnId}>{warnText}</div>\n  {/if}\n  {#if !showInvalid && !showWarn && helperText}\n    <div\n      class:bx--form__helper-text={true}\n      class:bx--form__helper-text--disabled={disabled}\n      id={helperId}\n    >\n      {helperText}\n    </div>\n  {/if}\n</div>\n","// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nclass InvalidDateTimeError extends LuxonError {\n  constructor(reason) {\n    super(`Invalid DateTime: ${reason.toMessage()}`);\n  }\n}\n\n/**\n * @private\n */\nclass InvalidIntervalError extends LuxonError {\n  constructor(reason) {\n    super(`Invalid Interval: ${reason.toMessage()}`);\n  }\n}\n\n/**\n * @private\n */\nclass InvalidDurationError extends LuxonError {\n  constructor(reason) {\n    super(`Invalid Duration: ${reason.toMessage()}`);\n  }\n}\n\n/**\n * @private\n */\nclass ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nclass InvalidUnitError extends LuxonError {\n  constructor(unit) {\n    super(`Invalid unit ${unit}`);\n  }\n}\n\n/**\n * @private\n */\nclass InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nclass ZoneIsAbstractError extends LuxonError {\n  constructor() {\n    super(\"Zone is an abstract class\");\n  }\n}\n\n/**\n * @private\n */\n\nconst n = \"numeric\",\n  s = \"short\",\n  l = \"long\";\n\nconst DATE_SHORT = {\n  year: n,\n  month: n,\n  day: n,\n};\n\nconst DATE_MED = {\n  year: n,\n  month: s,\n  day: n,\n};\n\nconst DATE_MED_WITH_WEEKDAY = {\n  year: n,\n  month: s,\n  day: n,\n  weekday: s,\n};\n\nconst DATE_FULL = {\n  year: n,\n  month: l,\n  day: n,\n};\n\nconst DATE_HUGE = {\n  year: n,\n  month: l,\n  day: n,\n  weekday: l,\n};\n\nconst TIME_SIMPLE = {\n  hour: n,\n  minute: n,\n};\n\nconst TIME_WITH_SECONDS = {\n  hour: n,\n  minute: n,\n  second: n,\n};\n\nconst TIME_WITH_SHORT_OFFSET = {\n  hour: n,\n  minute: n,\n  second: n,\n  timeZoneName: s,\n};\n\nconst TIME_WITH_LONG_OFFSET = {\n  hour: n,\n  minute: n,\n  second: n,\n  timeZoneName: l,\n};\n\nconst TIME_24_SIMPLE = {\n  hour: n,\n  minute: n,\n  hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SECONDS = {\n  hour: n,\n  minute: n,\n  second: n,\n  hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SHORT_OFFSET = {\n  hour: n,\n  minute: n,\n  second: n,\n  hourCycle: \"h23\",\n  timeZoneName: s,\n};\n\nconst TIME_24_WITH_LONG_OFFSET = {\n  hour: n,\n  minute: n,\n  second: n,\n  hourCycle: \"h23\",\n  timeZoneName: l,\n};\n\nconst DATETIME_SHORT = {\n  year: n,\n  month: n,\n  day: n,\n  hour: n,\n  minute: n,\n};\n\nconst DATETIME_SHORT_WITH_SECONDS = {\n  year: n,\n  month: n,\n  day: n,\n  hour: n,\n  minute: n,\n  second: n,\n};\n\nconst DATETIME_MED = {\n  year: n,\n  month: s,\n  day: n,\n  hour: n,\n  minute: n,\n};\n\nconst DATETIME_MED_WITH_SECONDS = {\n  year: n,\n  month: s,\n  day: n,\n  hour: n,\n  minute: n,\n  second: n,\n};\n\nconst DATETIME_MED_WITH_WEEKDAY = {\n  year: n,\n  month: s,\n  day: n,\n  weekday: s,\n  hour: n,\n  minute: n,\n};\n\nconst DATETIME_FULL = {\n  year: n,\n  month: l,\n  day: n,\n  hour: n,\n  minute: n,\n  timeZoneName: s,\n};\n\nconst DATETIME_FULL_WITH_SECONDS = {\n  year: n,\n  month: l,\n  day: n,\n  hour: n,\n  minute: n,\n  second: n,\n  timeZoneName: s,\n};\n\nconst DATETIME_HUGE = {\n  year: n,\n  month: l,\n  day: n,\n  weekday: l,\n  hour: n,\n  minute: n,\n  timeZoneName: l,\n};\n\nconst DATETIME_HUGE_WITH_SECONDS = {\n  year: n,\n  month: l,\n  day: n,\n  weekday: l,\n  hour: n,\n  minute: n,\n  second: n,\n  timeZoneName: l,\n};\n\n/**\n * @interface\n */\nclass Zone {\n  /**\n   * The type of zone\n   * @abstract\n   * @type {string}\n   */\n  get type() {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * The name of this zone.\n   * @abstract\n   * @type {string}\n   */\n  get name() {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * The IANA name of this zone.\n   * Defaults to `name` if not overwritten by a subclass.\n   * @abstract\n   * @type {string}\n   */\n  get ianaName() {\n    return this.name;\n  }\n\n  /**\n   * Returns whether the offset is known to be fixed for the whole year.\n   * @abstract\n   * @type {boolean}\n   */\n  get isUniversal() {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * Returns the offset's common name (such as EST) at the specified timestamp\n   * @abstract\n   * @param {number} ts - Epoch milliseconds for which to get the name\n   * @param {Object} opts - Options to affect the format\n   * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n   * @param {string} opts.locale - What locale to return the offset name in.\n   * @return {string}\n   */\n  offsetName(ts, opts) {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * Returns the offset's value as a string\n   * @abstract\n   * @param {number} ts - Epoch milliseconds for which to get the offset\n   * @param {string} format - What style of offset to return.\n   *                          Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n   * @return {string}\n   */\n  formatOffset(ts, format) {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * Return the offset in minutes for this zone at the specified timestamp.\n   * @abstract\n   * @param {number} ts - Epoch milliseconds for which to compute the offset\n   * @return {number}\n   */\n  offset(ts) {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * Return whether this Zone is equal to another zone\n   * @abstract\n   * @param {Zone} otherZone - the zone to compare\n   * @return {boolean}\n   */\n  equals(otherZone) {\n    throw new ZoneIsAbstractError();\n  }\n\n  /**\n   * Return whether this Zone is valid.\n   * @abstract\n   * @type {boolean}\n   */\n  get isValid() {\n    throw new ZoneIsAbstractError();\n  }\n}\n\nlet singleton$1 = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nclass SystemZone extends Zone {\n  /**\n   * Get a singleton instance of the local zone\n   * @return {SystemZone}\n   */\n  static get instance() {\n    if (singleton$1 === null) {\n      singleton$1 = new SystemZone();\n    }\n    return singleton$1;\n  }\n\n  /** @override **/\n  get type() {\n    return \"system\";\n  }\n\n  /** @override **/\n  get name() {\n    return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n  }\n\n  /** @override **/\n  get isUniversal() {\n    return false;\n  }\n\n  /** @override **/\n  offsetName(ts, { format, locale }) {\n    return parseZoneInfo(ts, format, locale);\n  }\n\n  /** @override **/\n  formatOffset(ts, format) {\n    return formatOffset(this.offset(ts), format);\n  }\n\n  /** @override **/\n  offset(ts) {\n    return -new Date(ts).getTimezoneOffset();\n  }\n\n  /** @override **/\n  equals(otherZone) {\n    return otherZone.type === \"system\";\n  }\n\n  /** @override **/\n  get isValid() {\n    return true;\n  }\n}\n\nconst dtfCache = new Map();\nfunction makeDTF(zoneName) {\n  let dtf = dtfCache.get(zoneName);\n  if (dtf === undefined) {\n    dtf = new Intl.DateTimeFormat(\"en-US\", {\n      hour12: false,\n      timeZone: zoneName,\n      year: \"numeric\",\n      month: \"2-digit\",\n      day: \"2-digit\",\n      hour: \"2-digit\",\n      minute: \"2-digit\",\n      second: \"2-digit\",\n      era: \"short\",\n    });\n    dtfCache.set(zoneName, dtf);\n  }\n  return dtf;\n}\n\nconst typeToPos = {\n  year: 0,\n  month: 1,\n  day: 2,\n  era: 3,\n  hour: 4,\n  minute: 5,\n  second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n  const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n    parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n    [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n  return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n  const formatted = dtf.formatToParts(date);\n  const filled = [];\n  for (let i = 0; i < formatted.length; i++) {\n    const { type, value } = formatted[i];\n    const pos = typeToPos[type];\n\n    if (type === \"era\") {\n      filled[pos] = value;\n    } else if (!isUndefined(pos)) {\n      filled[pos] = parseInt(value, 10);\n    }\n  }\n  return filled;\n}\n\nconst ianaZoneCache = new Map();\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nclass IANAZone extends Zone {\n  /**\n   * @param {string} name - Zone name\n   * @return {IANAZone}\n   */\n  static create(name) {\n    let zone = ianaZoneCache.get(name);\n    if (zone === undefined) {\n      ianaZoneCache.set(name, (zone = new IANAZone(name)));\n    }\n    return zone;\n  }\n\n  /**\n   * Reset local caches. Should only be necessary in testing scenarios.\n   * @return {void}\n   */\n  static resetCache() {\n    ianaZoneCache.clear();\n    dtfCache.clear();\n  }\n\n  /**\n   * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n   * @param {string} s - The string to check validity on\n   * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n   * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n   * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.\n   * @return {boolean}\n   */\n  static isValidSpecifier(s) {\n    return this.isValidZone(s);\n  }\n\n  /**\n   * Returns whether the provided string identifies a real zone\n   * @param {string} zone - The string to check\n   * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n   * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n   * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n   * @return {boolean}\n   */\n  static isValidZone(zone) {\n    if (!zone) {\n      return false;\n    }\n    try {\n      new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n      return true;\n    } catch (e) {\n      return false;\n    }\n  }\n\n  constructor(name) {\n    super();\n    /** @private **/\n    this.zoneName = name;\n    /** @private **/\n    this.valid = IANAZone.isValidZone(name);\n  }\n\n  /**\n   * The type of zone. `iana` for all instances of `IANAZone`.\n   * @override\n   * @type {string}\n   */\n  get type() {\n    return \"iana\";\n  }\n\n  /**\n   * The name of this zone (i.e. the IANA zone name).\n   * @override\n   * @type {string}\n   */\n  get name() {\n    return this.zoneName;\n  }\n\n  /**\n   * Returns whether the offset is known to be fixed for the whole year:\n   * Always returns false for all IANA zones.\n   * @override\n   * @type {boolean}\n   */\n  get isUniversal() {\n    return false;\n  }\n\n  /**\n   * Returns the offset's common name (such as EST) at the specified timestamp\n   * @override\n   * @param {number} ts - Epoch milliseconds for which to get the name\n   * @param {Object} opts - Options to affect the format\n   * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n   * @param {string} opts.locale - What locale to return the offset name in.\n   * @return {string}\n   */\n  offsetName(ts, { format, locale }) {\n    return parseZoneInfo(ts, format, locale, this.name);\n  }\n\n  /**\n   * Returns the offset's value as a string\n   * @override\n   * @param {number} ts - Epoch milliseconds for which to get the offset\n   * @param {string} format - What style of offset to return.\n   *                          Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n   * @return {string}\n   */\n  formatOffset(ts, format) {\n    return formatOffset(this.offset(ts), format);\n  }\n\n  /**\n   * Return the offset in minutes for this zone at the specified timestamp.\n   * @override\n   * @param {number} ts - Epoch milliseconds for which to compute the offset\n   * @return {number}\n   */\n  offset(ts) {\n    if (!this.valid) return NaN;\n    const date = new Date(ts);\n\n    if (isNaN(date)) return NaN;\n\n    const dtf = makeDTF(this.name);\n    let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n      ? partsOffset(dtf, date)\n      : hackyOffset(dtf, date);\n\n    if (adOrBc === \"BC\") {\n      year = -Math.abs(year) + 1;\n    }\n\n    // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n    const adjustedHour = hour === 24 ? 0 : hour;\n\n    const asUTC = objToLocalTS({\n      year,\n      month,\n      day,\n      hour: adjustedHour,\n      minute,\n      second,\n      millisecond: 0,\n    });\n\n    let asTS = +date;\n    const over = asTS % 1000;\n    asTS -= over >= 0 ? over : 1000 + over;\n    return (asUTC - asTS) / (60 * 1000);\n  }\n\n  /**\n   * Return whether this Zone is equal to another zone\n   * @override\n   * @param {Zone} otherZone - the zone to compare\n   * @return {boolean}\n   */\n  equals(otherZone) {\n    return otherZone.type === \"iana\" && otherZone.name === this.name;\n  }\n\n  /**\n   * Return whether this Zone is valid.\n   * @override\n   * @type {boolean}\n   */\n  get isValid() {\n    return this.valid;\n  }\n}\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n  const key = JSON.stringify([locString, opts]);\n  let dtf = intlLFCache[key];\n  if (!dtf) {\n    dtf = new Intl.ListFormat(locString, opts);\n    intlLFCache[key] = dtf;\n  }\n  return dtf;\n}\n\nconst intlDTCache = new Map();\nfunction getCachedDTF(locString, opts = {}) {\n  const key = JSON.stringify([locString, opts]);\n  let dtf = intlDTCache.get(key);\n  if (dtf === undefined) {\n    dtf = new Intl.DateTimeFormat(locString, opts);\n    intlDTCache.set(key, dtf);\n  }\n  return dtf;\n}\n\nconst intlNumCache = new Map();\nfunction getCachedINF(locString, opts = {}) {\n  const key = JSON.stringify([locString, opts]);\n  let inf = intlNumCache.get(key);\n  if (inf === undefined) {\n    inf = new Intl.NumberFormat(locString, opts);\n    intlNumCache.set(key, inf);\n  }\n  return inf;\n}\n\nconst intlRelCache = new Map();\nfunction getCachedRTF(locString, opts = {}) {\n  const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n  const key = JSON.stringify([locString, cacheKeyOpts]);\n  let inf = intlRelCache.get(key);\n  if (inf === undefined) {\n    inf = new Intl.RelativeTimeFormat(locString, opts);\n    intlRelCache.set(key, inf);\n  }\n  return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n  if (sysLocaleCache) {\n    return sysLocaleCache;\n  } else {\n    sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n    return sysLocaleCache;\n  }\n}\n\nconst intlResolvedOptionsCache = new Map();\nfunction getCachedIntResolvedOptions(locString) {\n  let opts = intlResolvedOptionsCache.get(locString);\n  if (opts === undefined) {\n    opts = new Intl.DateTimeFormat(locString).resolvedOptions();\n    intlResolvedOptionsCache.set(locString, opts);\n  }\n  return opts;\n}\n\nconst weekInfoCache = new Map();\nfunction getCachedWeekInfo(locString) {\n  let data = weekInfoCache.get(locString);\n  if (!data) {\n    const locale = new Intl.Locale(locString);\n    // browsers currently implement this as a property, but spec says it should be a getter function\n    data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n    // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86\n    if (!(\"minimalDays\" in data)) {\n      data = { ...fallbackWeekSettings, ...data };\n    }\n    weekInfoCache.set(locString, data);\n  }\n  return data;\n}\n\nfunction parseLocaleString(localeStr) {\n  // I really want to avoid writing a BCP 47 parser\n  // see, e.g. https://github.com/wooorm/bcp-47\n  // Instead, we'll do this:\n\n  // a) if the string has no -u extensions, just leave it alone\n  // b) if it does, use Intl to resolve everything\n  // c) if Intl fails, try again without the -u\n\n  // private subtags and unicode subtags have ordering requirements,\n  // and we're not properly parsing this, so just strip out the\n  // private ones if they exist.\n  const xIndex = localeStr.indexOf(\"-x-\");\n  if (xIndex !== -1) {\n    localeStr = localeStr.substring(0, xIndex);\n  }\n\n  const uIndex = localeStr.indexOf(\"-u-\");\n  if (uIndex === -1) {\n    return [localeStr];\n  } else {\n    let options;\n    let selectedStr;\n    try {\n      options = getCachedDTF(localeStr).resolvedOptions();\n      selectedStr = localeStr;\n    } catch (e) {\n      const smaller = localeStr.substring(0, uIndex);\n      options = getCachedDTF(smaller).resolvedOptions();\n      selectedStr = smaller;\n    }\n\n    const { numberingSystem, calendar } = options;\n    return [selectedStr, numberingSystem, calendar];\n  }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n  if (outputCalendar || numberingSystem) {\n    if (!localeStr.includes(\"-u-\")) {\n      localeStr += \"-u\";\n    }\n\n    if (outputCalendar) {\n      localeStr += `-ca-${outputCalendar}`;\n    }\n\n    if (numberingSystem) {\n      localeStr += `-nu-${numberingSystem}`;\n    }\n    return localeStr;\n  } else {\n    return localeStr;\n  }\n}\n\nfunction mapMonths(f) {\n  const ms = [];\n  for (let i = 1; i <= 12; i++) {\n    const dt = DateTime.utc(2009, i, 1);\n    ms.push(f(dt));\n  }\n  return ms;\n}\n\nfunction mapWeekdays(f) {\n  const ms = [];\n  for (let i = 1; i <= 7; i++) {\n    const dt = DateTime.utc(2016, 11, 13 + i);\n    ms.push(f(dt));\n  }\n  return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n  const mode = loc.listingMode();\n\n  if (mode === \"error\") {\n    return null;\n  } else if (mode === \"en\") {\n    return englishFn(length);\n  } else {\n    return intlFn(length);\n  }\n}\n\nfunction supportsFastNumbers(loc) {\n  if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n    return false;\n  } else {\n    return (\n      loc.numberingSystem === \"latn\" ||\n      !loc.locale ||\n      loc.locale.startsWith(\"en\") ||\n      getCachedIntResolvedOptions(loc.locale).numberingSystem === \"latn\"\n    );\n  }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n  constructor(intl, forceSimple, opts) {\n    this.padTo = opts.padTo || 0;\n    this.floor = opts.floor || false;\n\n    const { padTo, floor, ...otherOpts } = opts;\n\n    if (!forceSimple || Object.keys(otherOpts).length > 0) {\n      const intlOpts = { useGrouping: false, ...opts };\n      if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n      this.inf = getCachedINF(intl, intlOpts);\n    }\n  }\n\n  format(i) {\n    if (this.inf) {\n      const fixed = this.floor ? Math.floor(i) : i;\n      return this.inf.format(fixed);\n    } else {\n      // to match the browser's numberformatter defaults\n      const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n      return padStart(fixed, this.padTo);\n    }\n  }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n  constructor(dt, intl, opts) {\n    this.opts = opts;\n    this.originalZone = undefined;\n\n    let z = undefined;\n    if (this.opts.timeZone) {\n      // Don't apply any workarounds if a timeZone is explicitly provided in opts\n      this.dt = dt;\n    } else if (dt.zone.type === \"fixed\") {\n      // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n      // That is why fixed-offset TZ is set to that unless it is:\n      // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n      // 2. Unsupported by the browser:\n      //    - some do not support Etc/\n      //    - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n      const gmtOffset = -1 * (dt.offset / 60);\n      const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n      if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n        z = offsetZ;\n        this.dt = dt;\n      } else {\n        // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n        // we manually apply the offset and substitute the zone as needed.\n        z = \"UTC\";\n        this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n        this.originalZone = dt.zone;\n      }\n    } else if (dt.zone.type === \"system\") {\n      this.dt = dt;\n    } else if (dt.zone.type === \"iana\") {\n      this.dt = dt;\n      z = dt.zone.name;\n    } else {\n      // Custom zones can have any offset / offsetName so we just manually\n      // apply the offset and substitute the zone as needed.\n      z = \"UTC\";\n      this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n      this.originalZone = dt.zone;\n    }\n\n    const intlOpts = { ...this.opts };\n    intlOpts.timeZone = intlOpts.timeZone || z;\n    this.dtf = getCachedDTF(intl, intlOpts);\n  }\n\n  format() {\n    if (this.originalZone) {\n      // If we have to substitute in the actual zone name, we have to use\n      // formatToParts so that the timezone can be replaced.\n      return this.formatToParts()\n        .map(({ value }) => value)\n        .join(\"\");\n    }\n    return this.dtf.format(this.dt.toJSDate());\n  }\n\n  formatToParts() {\n    const parts = this.dtf.formatToParts(this.dt.toJSDate());\n    if (this.originalZone) {\n      return parts.map((part) => {\n        if (part.type === \"timeZoneName\") {\n          const offsetName = this.originalZone.offsetName(this.dt.ts, {\n            locale: this.dt.locale,\n            format: this.opts.timeZoneName,\n          });\n          return {\n            ...part,\n            value: offsetName,\n          };\n        } else {\n          return part;\n        }\n      });\n    }\n    return parts;\n  }\n\n  resolvedOptions() {\n    return this.dtf.resolvedOptions();\n  }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n  constructor(intl, isEnglish, opts) {\n    this.opts = { style: \"long\", ...opts };\n    if (!isEnglish && hasRelative()) {\n      this.rtf = getCachedRTF(intl, opts);\n    }\n  }\n\n  format(count, unit) {\n    if (this.rtf) {\n      return this.rtf.format(count, unit);\n    } else {\n      return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n    }\n  }\n\n  formatToParts(count, unit) {\n    if (this.rtf) {\n      return this.rtf.formatToParts(count, unit);\n    } else {\n      return [];\n    }\n  }\n}\n\nconst fallbackWeekSettings = {\n  firstDay: 1,\n  minimalDays: 4,\n  weekend: [6, 7],\n};\n\n/**\n * @private\n */\nclass Locale {\n  static fromOpts(opts) {\n    return Locale.create(\n      opts.locale,\n      opts.numberingSystem,\n      opts.outputCalendar,\n      opts.weekSettings,\n      opts.defaultToEN\n    );\n  }\n\n  static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n    const specifiedLocale = locale || Settings.defaultLocale;\n    // the system locale is useful for human-readable strings but annoying for parsing/formatting known formats\n    const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n    const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n    const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n    const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n    return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n  }\n\n  static resetCache() {\n    sysLocaleCache = null;\n    intlDTCache.clear();\n    intlNumCache.clear();\n    intlRelCache.clear();\n    intlResolvedOptionsCache.clear();\n    weekInfoCache.clear();\n  }\n\n  static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n    return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n  }\n\n  constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n    const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n    this.locale = parsedLocale;\n    this.numberingSystem = numbering || parsedNumberingSystem || null;\n    this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n    this.weekSettings = weekSettings;\n    this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n    this.weekdaysCache = { format: {}, standalone: {} };\n    this.monthsCache = { format: {}, standalone: {} };\n    this.meridiemCache = null;\n    this.eraCache = {};\n\n    this.specifiedLocale = specifiedLocale;\n    this.fastNumbersCached = null;\n  }\n\n  get fastNumbers() {\n    if (this.fastNumbersCached == null) {\n      this.fastNumbersCached = supportsFastNumbers(this);\n    }\n\n    return this.fastNumbersCached;\n  }\n\n  listingMode() {\n    const isActuallyEn = this.isEnglish();\n    const hasNoWeirdness =\n      (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n      (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n    return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n  }\n\n  clone(alts) {\n    if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n      return this;\n    } else {\n      return Locale.create(\n        alts.locale || this.specifiedLocale,\n        alts.numberingSystem || this.numberingSystem,\n        alts.outputCalendar || this.outputCalendar,\n        validateWeekSettings(alts.weekSettings) || this.weekSettings,\n        alts.defaultToEN || false\n      );\n    }\n  }\n\n  redefaultToEN(alts = {}) {\n    return this.clone({ ...alts, defaultToEN: true });\n  }\n\n  redefaultToSystem(alts = {}) {\n    return this.clone({ ...alts, defaultToEN: false });\n  }\n\n  months(length, format = false) {\n    return listStuff(this, length, months, () => {\n      // Workaround for \"ja\" locale: formatToParts does not label all parts of the month\n      // as \"month\" and for this locale there is no difference between \"format\" and \"non-format\".\n      // As such, just use format() instead of formatToParts() and take the whole string\n      const monthSpecialCase = this.intl === \"ja\" || this.intl.startsWith(\"ja-\");\n      format &= !monthSpecialCase;\n      const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n        formatStr = format ? \"format\" : \"standalone\";\n      if (!this.monthsCache[formatStr][length]) {\n        const mapper = !monthSpecialCase\n          ? (dt) => this.extract(dt, intl, \"month\")\n          : (dt) => this.dtFormatter(dt, intl).format();\n        this.monthsCache[formatStr][length] = mapMonths(mapper);\n      }\n      return this.monthsCache[formatStr][length];\n    });\n  }\n\n  weekdays(length, format = false) {\n    return listStuff(this, length, weekdays, () => {\n      const intl = format\n          ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n          : { weekday: length },\n        formatStr = format ? \"format\" : \"standalone\";\n      if (!this.weekdaysCache[formatStr][length]) {\n        this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n          this.extract(dt, intl, \"weekday\")\n        );\n      }\n      return this.weekdaysCache[formatStr][length];\n    });\n  }\n\n  meridiems() {\n    return listStuff(\n      this,\n      undefined,\n      () => meridiems,\n      () => {\n        // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n        // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n        if (!this.meridiemCache) {\n          const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n          this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n            (dt) => this.extract(dt, intl, \"dayperiod\")\n          );\n        }\n\n        return this.meridiemCache;\n      }\n    );\n  }\n\n  eras(length) {\n    return listStuff(this, length, eras, () => {\n      const intl = { era: length };\n\n      // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n      // to definitely enumerate them.\n      if (!this.eraCache[length]) {\n        this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n          this.extract(dt, intl, \"era\")\n        );\n      }\n\n      return this.eraCache[length];\n    });\n  }\n\n  extract(dt, intlOpts, field) {\n    const df = this.dtFormatter(dt, intlOpts),\n      results = df.formatToParts(),\n      matching = results.find((m) => m.type.toLowerCase() === field);\n    return matching ? matching.value : null;\n  }\n\n  numberFormatter(opts = {}) {\n    // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n    // (in contrast, the rest of the condition is used heavily)\n    return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n  }\n\n  dtFormatter(dt, intlOpts = {}) {\n    return new PolyDateFormatter(dt, this.intl, intlOpts);\n  }\n\n  relFormatter(opts = {}) {\n    return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n  }\n\n  listFormatter(opts = {}) {\n    return getCachedLF(this.intl, opts);\n  }\n\n  isEnglish() {\n    return (\n      this.locale === \"en\" ||\n      this.locale.toLowerCase() === \"en-us\" ||\n      getCachedIntResolvedOptions(this.intl).locale.startsWith(\"en-us\")\n    );\n  }\n\n  getWeekSettings() {\n    if (this.weekSettings) {\n      return this.weekSettings;\n    } else if (!hasLocaleWeekInfo()) {\n      return fallbackWeekSettings;\n    } else {\n      return getCachedWeekInfo(this.locale);\n    }\n  }\n\n  getStartOfWeek() {\n    return this.getWeekSettings().firstDay;\n  }\n\n  getMinDaysInFirstWeek() {\n    return this.getWeekSettings().minimalDays;\n  }\n\n  getWeekendDays() {\n    return this.getWeekSettings().weekend;\n  }\n\n  equals(other) {\n    return (\n      this.locale === other.locale &&\n      this.numberingSystem === other.numberingSystem &&\n      this.outputCalendar === other.outputCalendar\n    );\n  }\n\n  toString() {\n    return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n  }\n}\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nclass FixedOffsetZone extends Zone {\n  /**\n   * Get a singleton instance of UTC\n   * @return {FixedOffsetZone}\n   */\n  static get utcInstance() {\n    if (singleton === null) {\n      singleton = new FixedOffsetZone(0);\n    }\n    return singleton;\n  }\n\n  /**\n   * Get an instance with a specified offset\n   * @param {number} offset - The offset in minutes\n   * @return {FixedOffsetZone}\n   */\n  static instance(offset) {\n    return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n  }\n\n  /**\n   * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n   * @param {string} s - The offset string to parse\n   * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n   * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n   * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n   * @return {FixedOffsetZone}\n   */\n  static parseSpecifier(s) {\n    if (s) {\n      const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n      if (r) {\n        return new FixedOffsetZone(signedOffset(r[1], r[2]));\n      }\n    }\n    return null;\n  }\n\n  constructor(offset) {\n    super();\n    /** @private **/\n    this.fixed = offset;\n  }\n\n  /**\n   * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n   * @override\n   * @type {string}\n   */\n  get type() {\n    return \"fixed\";\n  }\n\n  /**\n   * The name of this zone.\n   * All fixed zones' names always start with \"UTC\" (plus optional offset)\n   * @override\n   * @type {string}\n   */\n  get name() {\n    return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n  }\n\n  /**\n   * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n   *\n   * @override\n   * @type {string}\n   */\n  get ianaName() {\n    if (this.fixed === 0) {\n      return \"Etc/UTC\";\n    } else {\n      return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n    }\n  }\n\n  /**\n   * Returns the offset's common name at the specified timestamp.\n   *\n   * For fixed offset zones this equals to the zone name.\n   * @override\n   */\n  offsetName() {\n    return this.name;\n  }\n\n  /**\n   * Returns the offset's value as a string\n   * @override\n   * @param {number} ts - Epoch milliseconds for which to get the offset\n   * @param {string} format - What style of offset to return.\n   *                          Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n   * @return {string}\n   */\n  formatOffset(ts, format) {\n    return formatOffset(this.fixed, format);\n  }\n\n  /**\n   * Returns whether the offset is known to be fixed for the whole year:\n   * Always returns true for all fixed offset zones.\n   * @override\n   * @type {boolean}\n   */\n  get isUniversal() {\n    return true;\n  }\n\n  /**\n   * Return the offset in minutes for this zone at the specified timestamp.\n   *\n   * For fixed offset zones, this is constant and does not depend on a timestamp.\n   * @override\n   * @return {number}\n   */\n  offset() {\n    return this.fixed;\n  }\n\n  /**\n   * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n   * @override\n   * @param {Zone} otherZone - the zone to compare\n   * @return {boolean}\n   */\n  equals(otherZone) {\n    return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n  }\n\n  /**\n   * Return whether this Zone is valid:\n   * All fixed offset zones are valid.\n   * @override\n   * @type {boolean}\n   */\n  get isValid() {\n    return true;\n  }\n}\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nclass InvalidZone extends Zone {\n  constructor(zoneName) {\n    super();\n    /**  @private */\n    this.zoneName = zoneName;\n  }\n\n  /** @override **/\n  get type() {\n    return \"invalid\";\n  }\n\n  /** @override **/\n  get name() {\n    return this.zoneName;\n  }\n\n  /** @override **/\n  get isUniversal() {\n    return false;\n  }\n\n  /** @override **/\n  offsetName() {\n    return null;\n  }\n\n  /** @override **/\n  formatOffset() {\n    return \"\";\n  }\n\n  /** @override **/\n  offset() {\n    return NaN;\n  }\n\n  /** @override **/\n  equals() {\n    return false;\n  }\n\n  /** @override **/\n  get isValid() {\n    return false;\n  }\n}\n\n/**\n * @private\n */\n\nfunction normalizeZone(input, defaultZone) {\n  if (isUndefined(input) || input === null) {\n    return defaultZone;\n  } else if (input instanceof Zone) {\n    return input;\n  } else if (isString(input)) {\n    const lowered = input.toLowerCase();\n    if (lowered === \"default\") return defaultZone;\n    else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n    else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n    else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n  } else if (isNumber(input)) {\n    return FixedOffsetZone.instance(input);\n  } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n    // This is dumb, but the instanceof check above doesn't seem to really work\n    // so we're duck checking it\n    return input;\n  } else {\n    return new InvalidZone(input);\n  }\n}\n\nconst numberingSystems = {\n  arab: \"[\\u0660-\\u0669]\",\n  arabext: \"[\\u06F0-\\u06F9]\",\n  bali: \"[\\u1B50-\\u1B59]\",\n  beng: \"[\\u09E6-\\u09EF]\",\n  deva: \"[\\u0966-\\u096F]\",\n  fullwide: \"[\\uFF10-\\uFF19]\",\n  gujr: \"[\\u0AE6-\\u0AEF]\",\n  hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n  khmr: \"[\\u17E0-\\u17E9]\",\n  knda: \"[\\u0CE6-\\u0CEF]\",\n  laoo: \"[\\u0ED0-\\u0ED9]\",\n  limb: \"[\\u1946-\\u194F]\",\n  mlym: \"[\\u0D66-\\u0D6F]\",\n  mong: \"[\\u1810-\\u1819]\",\n  mymr: \"[\\u1040-\\u1049]\",\n  orya: \"[\\u0B66-\\u0B6F]\",\n  tamldec: \"[\\u0BE6-\\u0BEF]\",\n  telu: \"[\\u0C66-\\u0C6F]\",\n  thai: \"[\\u0E50-\\u0E59]\",\n  tibt: \"[\\u0F20-\\u0F29]\",\n  latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n  arab: [1632, 1641],\n  arabext: [1776, 1785],\n  bali: [6992, 7001],\n  beng: [2534, 2543],\n  deva: [2406, 2415],\n  fullwide: [65296, 65303],\n  gujr: [2790, 2799],\n  khmr: [6112, 6121],\n  knda: [3302, 3311],\n  laoo: [3792, 3801],\n  limb: [6470, 6479],\n  mlym: [3430, 3439],\n  mong: [6160, 6169],\n  mymr: [4160, 4169],\n  orya: [2918, 2927],\n  tamldec: [3046, 3055],\n  telu: [3174, 3183],\n  thai: [3664, 3673],\n  tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nfunction parseDigits(str) {\n  let value = parseInt(str, 10);\n  if (isNaN(value)) {\n    value = \"\";\n    for (let i = 0; i < str.length; i++) {\n      const code = str.charCodeAt(i);\n\n      if (str[i].search(numberingSystems.hanidec) !== -1) {\n        value += hanidecChars.indexOf(str[i]);\n      } else {\n        for (const key in numberingSystemsUTF16) {\n          const [min, max] = numberingSystemsUTF16[key];\n          if (code >= min && code <= max) {\n            value += code - min;\n          }\n        }\n      }\n    }\n    return parseInt(value, 10);\n  } else {\n    return value;\n  }\n}\n\n// cache of {numberingSystem: {append: regex}}\nconst digitRegexCache = new Map();\nfunction resetDigitRegexCache() {\n  digitRegexCache.clear();\n}\n\nfunction digitRegex({ numberingSystem }, append = \"\") {\n  const ns = numberingSystem || \"latn\";\n\n  let appendCache = digitRegexCache.get(ns);\n  if (appendCache === undefined) {\n    appendCache = new Map();\n    digitRegexCache.set(ns, appendCache);\n  }\n  let regex = appendCache.get(append);\n  if (regex === undefined) {\n    regex = new RegExp(`${numberingSystems[ns]}${append}`);\n    appendCache.set(append, regex);\n  }\n\n  return regex;\n}\n\nlet now = () => Date.now(),\n  defaultZone = \"system\",\n  defaultLocale = null,\n  defaultNumberingSystem = null,\n  defaultOutputCalendar = null,\n  twoDigitCutoffYear = 60,\n  throwOnInvalid,\n  defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nclass Settings {\n  /**\n   * Get the callback for returning the current timestamp.\n   * @type {function}\n   */\n  static get now() {\n    return now;\n  }\n\n  /**\n   * Set the callback for returning the current timestamp.\n   * The function should return a number, which will be interpreted as an Epoch millisecond count\n   * @type {function}\n   * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n   * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n   */\n  static set now(n) {\n    now = n;\n  }\n\n  /**\n   * Set the default time zone to create DateTimes in. Does not affect existing instances.\n   * Use the value \"system\" to reset this value to the system's time zone.\n   * @type {string}\n   */\n  static set defaultZone(zone) {\n    defaultZone = zone;\n  }\n\n  /**\n   * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n   * The default value is the system's time zone (the one set on the machine that runs this code).\n   * @type {Zone}\n   */\n  static get defaultZone() {\n    return normalizeZone(defaultZone, SystemZone.instance);\n  }\n\n  /**\n   * Get the default locale to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static get defaultLocale() {\n    return defaultLocale;\n  }\n\n  /**\n   * Set the default locale to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static set defaultLocale(locale) {\n    defaultLocale = locale;\n  }\n\n  /**\n   * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static get defaultNumberingSystem() {\n    return defaultNumberingSystem;\n  }\n\n  /**\n   * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static set defaultNumberingSystem(numberingSystem) {\n    defaultNumberingSystem = numberingSystem;\n  }\n\n  /**\n   * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static get defaultOutputCalendar() {\n    return defaultOutputCalendar;\n  }\n\n  /**\n   * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n   * @type {string}\n   */\n  static set defaultOutputCalendar(outputCalendar) {\n    defaultOutputCalendar = outputCalendar;\n  }\n\n  /**\n   * @typedef {Object} WeekSettings\n   * @property {number} firstDay\n   * @property {number} minimalDays\n   * @property {number[]} weekend\n   */\n\n  /**\n   * @return {WeekSettings|null}\n   */\n  static get defaultWeekSettings() {\n    return defaultWeekSettings;\n  }\n\n  /**\n   * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n   * how many days are required in the first week of a year.\n   * Does not affect existing instances.\n   *\n   * @param {WeekSettings|null} weekSettings\n   */\n  static set defaultWeekSettings(weekSettings) {\n    defaultWeekSettings = validateWeekSettings(weekSettings);\n  }\n\n  /**\n   * Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n   * @type {number}\n   */\n  static get twoDigitCutoffYear() {\n    return twoDigitCutoffYear;\n  }\n\n  /**\n   * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n   * @type {number}\n   * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n   * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n   * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\n   * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n   * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n   */\n  static set twoDigitCutoffYear(cutoffYear) {\n    twoDigitCutoffYear = cutoffYear % 100;\n  }\n\n  /**\n   * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n   * @type {boolean}\n   */\n  static get throwOnInvalid() {\n    return throwOnInvalid;\n  }\n\n  /**\n   * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n   * @type {boolean}\n   */\n  static set throwOnInvalid(t) {\n    throwOnInvalid = t;\n  }\n\n  /**\n   * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n   * @return {void}\n   */\n  static resetCaches() {\n    Locale.resetCache();\n    IANAZone.resetCache();\n    DateTime.resetCache();\n    resetDigitRegexCache();\n  }\n}\n\nclass Invalid {\n  constructor(reason, explanation) {\n    this.reason = reason;\n    this.explanation = explanation;\n  }\n\n  toMessage() {\n    if (this.explanation) {\n      return `${this.reason}: ${this.explanation}`;\n    } else {\n      return this.reason;\n    }\n  }\n}\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n  leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n  return new Invalid(\n    \"unit out of range\",\n    `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n  );\n}\n\nfunction dayOfWeek(year, month, day) {\n  const d = new Date(Date.UTC(year, month - 1, day));\n\n  if (year < 100 && year >= 0) {\n    d.setUTCFullYear(d.getUTCFullYear() - 1900);\n  }\n\n  const js = d.getUTCDay();\n\n  return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n  return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n  const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n    month0 = table.findIndex((i) => i < ordinal),\n    day = ordinal - table[month0];\n  return { month: month0 + 1, day };\n}\n\nfunction isoWeekdayToLocal(isoWeekday, startOfWeek) {\n  return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nfunction gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n  const { year, month, day } = gregObj,\n    ordinal = computeOrdinal(year, month, day),\n    weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n  let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n    weekYear;\n\n  if (weekNumber < 1) {\n    weekYear = year - 1;\n    weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n  } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n    weekYear = year + 1;\n    weekNumber = 1;\n  } else {\n    weekYear = year;\n  }\n\n  return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nfunction weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n  const { weekYear, weekNumber, weekday } = weekData,\n    weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n    yearInDays = daysInYear(weekYear);\n\n  let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n    year;\n\n  if (ordinal < 1) {\n    year = weekYear - 1;\n    ordinal += daysInYear(year);\n  } else if (ordinal > yearInDays) {\n    year = weekYear + 1;\n    ordinal -= daysInYear(weekYear);\n  } else {\n    year = weekYear;\n  }\n\n  const { month, day } = uncomputeOrdinal(year, ordinal);\n  return { year, month, day, ...timeObject(weekData) };\n}\n\nfunction gregorianToOrdinal(gregData) {\n  const { year, month, day } = gregData;\n  const ordinal = computeOrdinal(year, month, day);\n  return { year, ordinal, ...timeObject(gregData) };\n}\n\nfunction ordinalToGregorian(ordinalData) {\n  const { year, ordinal } = ordinalData;\n  const { month, day } = uncomputeOrdinal(year, ordinal);\n  return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nfunction usesLocalWeekValues(obj, loc) {\n  const hasLocaleWeekData =\n    !isUndefined(obj.localWeekday) ||\n    !isUndefined(obj.localWeekNumber) ||\n    !isUndefined(obj.localWeekYear);\n  if (hasLocaleWeekData) {\n    const hasIsoWeekData =\n      !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n    if (hasIsoWeekData) {\n      throw new ConflictingSpecificationError(\n        \"Cannot mix locale-based week fields with ISO-based week fields\"\n      );\n    }\n    if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n    if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n    if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n    delete obj.localWeekday;\n    delete obj.localWeekNumber;\n    delete obj.localWeekYear;\n    return {\n      minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n      startOfWeek: loc.getStartOfWeek(),\n    };\n  } else {\n    return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n  }\n}\n\nfunction hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n  const validYear = isInteger(obj.weekYear),\n    validWeek = integerBetween(\n      obj.weekNumber,\n      1,\n      weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n    ),\n    validWeekday = integerBetween(obj.weekday, 1, 7);\n\n  if (!validYear) {\n    return unitOutOfRange(\"weekYear\", obj.weekYear);\n  } else if (!validWeek) {\n    return unitOutOfRange(\"week\", obj.weekNumber);\n  } else if (!validWeekday) {\n    return unitOutOfRange(\"weekday\", obj.weekday);\n  } else return false;\n}\n\nfunction hasInvalidOrdinalData(obj) {\n  const validYear = isInteger(obj.year),\n    validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n  if (!validYear) {\n    return unitOutOfRange(\"year\", obj.year);\n  } else if (!validOrdinal) {\n    return unitOutOfRange(\"ordinal\", obj.ordinal);\n  } else return false;\n}\n\nfunction hasInvalidGregorianData(obj) {\n  const validYear = isInteger(obj.year),\n    validMonth = integerBetween(obj.month, 1, 12),\n    validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n  if (!validYear) {\n    return unitOutOfRange(\"year\", obj.year);\n  } else if (!validMonth) {\n    return unitOutOfRange(\"month\", obj.month);\n  } else if (!validDay) {\n    return unitOutOfRange(\"day\", obj.day);\n  } else return false;\n}\n\nfunction hasInvalidTimeData(obj) {\n  const { hour, minute, second, millisecond } = obj;\n  const validHour =\n      integerBetween(hour, 0, 23) ||\n      (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n    validMinute = integerBetween(minute, 0, 59),\n    validSecond = integerBetween(second, 0, 59),\n    validMillisecond = integerBetween(millisecond, 0, 999);\n\n  if (!validHour) {\n    return unitOutOfRange(\"hour\", hour);\n  } else if (!validMinute) {\n    return unitOutOfRange(\"minute\", minute);\n  } else if (!validSecond) {\n    return unitOutOfRange(\"second\", second);\n  } else if (!validMillisecond) {\n    return unitOutOfRange(\"millisecond\", millisecond);\n  } else return false;\n}\n\n/*\n  This is just a junk drawer, containing anything used across multiple classes.\n  Because Luxon is small(ish), this should stay small and we won't worry about splitting\n  it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\n/**\n * @private\n */\n\n// TYPES\n\nfunction isUndefined(o) {\n  return typeof o === \"undefined\";\n}\n\nfunction isNumber(o) {\n  return typeof o === \"number\";\n}\n\nfunction isInteger(o) {\n  return typeof o === \"number\" && o % 1 === 0;\n}\n\nfunction isString(o) {\n  return typeof o === \"string\";\n}\n\nfunction isDate(o) {\n  return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nfunction hasRelative() {\n  try {\n    return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n  } catch (e) {\n    return false;\n  }\n}\n\nfunction hasLocaleWeekInfo() {\n  try {\n    return (\n      typeof Intl !== \"undefined\" &&\n      !!Intl.Locale &&\n      (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n    );\n  } catch (e) {\n    return false;\n  }\n}\n\n// OBJECTS AND ARRAYS\n\nfunction maybeArray(thing) {\n  return Array.isArray(thing) ? thing : [thing];\n}\n\nfunction bestBy(arr, by, compare) {\n  if (arr.length === 0) {\n    return undefined;\n  }\n  return arr.reduce((best, next) => {\n    const pair = [by(next), next];\n    if (!best) {\n      return pair;\n    } else if (compare(best[0], pair[0]) === best[0]) {\n      return best;\n    } else {\n      return pair;\n    }\n  }, null)[1];\n}\n\nfunction pick(obj, keys) {\n  return keys.reduce((a, k) => {\n    a[k] = obj[k];\n    return a;\n  }, {});\n}\n\nfunction hasOwnProperty(obj, prop) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nfunction validateWeekSettings(settings) {\n  if (settings == null) {\n    return null;\n  } else if (typeof settings !== \"object\") {\n    throw new InvalidArgumentError(\"Week settings must be an object\");\n  } else {\n    if (\n      !integerBetween(settings.firstDay, 1, 7) ||\n      !integerBetween(settings.minimalDays, 1, 7) ||\n      !Array.isArray(settings.weekend) ||\n      settings.weekend.some((v) => !integerBetween(v, 1, 7))\n    ) {\n      throw new InvalidArgumentError(\"Invalid week settings\");\n    }\n    return {\n      firstDay: settings.firstDay,\n      minimalDays: settings.minimalDays,\n      weekend: Array.from(settings.weekend),\n    };\n  }\n}\n\n// NUMBERS AND STRINGS\n\nfunction integerBetween(thing, bottom, top) {\n  return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nfunction floorMod(x, n) {\n  return x - n * Math.floor(x / n);\n}\n\nfunction padStart(input, n = 2) {\n  const isNeg = input < 0;\n  let padded;\n  if (isNeg) {\n    padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n  } else {\n    padded = (\"\" + input).padStart(n, \"0\");\n  }\n  return padded;\n}\n\nfunction parseInteger(string) {\n  if (isUndefined(string) || string === null || string === \"\") {\n    return undefined;\n  } else {\n    return parseInt(string, 10);\n  }\n}\n\nfunction parseFloating(string) {\n  if (isUndefined(string) || string === null || string === \"\") {\n    return undefined;\n  } else {\n    return parseFloat(string);\n  }\n}\n\nfunction parseMillis(fraction) {\n  // Return undefined (instead of 0) in these cases, where fraction is not set\n  if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n    return undefined;\n  } else {\n    const f = parseFloat(\"0.\" + fraction) * 1000;\n    return Math.floor(f);\n  }\n}\n\nfunction roundTo(number, digits, rounding = \"round\") {\n  const factor = 10 ** digits;\n  switch (rounding) {\n    case \"expand\":\n      return number > 0\n        ? Math.ceil(number * factor) / factor\n        : Math.floor(number * factor) / factor;\n    case \"trunc\":\n      return Math.trunc(number * factor) / factor;\n    case \"round\":\n      return Math.round(number * factor) / factor;\n    case \"floor\":\n      return Math.floor(number * factor) / factor;\n    case \"ceil\":\n      return Math.ceil(number * factor) / factor;\n    default:\n      throw new RangeError(`Value rounding ${rounding} is out of range`);\n  }\n}\n\n// DATE BASICS\n\nfunction isLeapYear(year) {\n  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nfunction daysInYear(year) {\n  return isLeapYear(year) ? 366 : 365;\n}\n\nfunction daysInMonth(year, month) {\n  const modMonth = floorMod(month - 1, 12) + 1,\n    modYear = year + (month - modMonth) / 12;\n\n  if (modMonth === 2) {\n    return isLeapYear(modYear) ? 29 : 28;\n  } else {\n    return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n  }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nfunction objToLocalTS(obj) {\n  let d = Date.UTC(\n    obj.year,\n    obj.month - 1,\n    obj.day,\n    obj.hour,\n    obj.minute,\n    obj.second,\n    obj.millisecond\n  );\n\n  // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n  if (obj.year < 100 && obj.year >= 0) {\n    d = new Date(d);\n    // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n    // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n    // the calculations done by Date.UTC are using year 2000 - which is incorrect\n    d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n  }\n  return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n  const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n  return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nfunction weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n  const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n  const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n  return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nfunction untruncateYear(year) {\n  if (year > 99) {\n    return year;\n  } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nfunction parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n  const date = new Date(ts),\n    intlOpts = {\n      hourCycle: \"h23\",\n      year: \"numeric\",\n      month: \"2-digit\",\n      day: \"2-digit\",\n      hour: \"2-digit\",\n      minute: \"2-digit\",\n    };\n\n  if (timeZone) {\n    intlOpts.timeZone = timeZone;\n  }\n\n  const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n  const parsed = new Intl.DateTimeFormat(locale, modified)\n    .formatToParts(date)\n    .find((m) => m.type.toLowerCase() === \"timezonename\");\n  return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nfunction signedOffset(offHourStr, offMinuteStr) {\n  let offHour = parseInt(offHourStr, 10);\n\n  // don't || this because we want to preserve -0\n  if (Number.isNaN(offHour)) {\n    offHour = 0;\n  }\n\n  const offMin = parseInt(offMinuteStr, 10) || 0,\n    offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n  return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nfunction asNumber(value) {\n  const numericValue = Number(value);\n  if (typeof value === \"boolean\" || value === \"\" || !Number.isFinite(numericValue))\n    throw new InvalidArgumentError(`Invalid unit value ${value}`);\n  return numericValue;\n}\n\nfunction normalizeObject(obj, normalizer) {\n  const normalized = {};\n  for (const u in obj) {\n    if (hasOwnProperty(obj, u)) {\n      const v = obj[u];\n      if (v === undefined || v === null) continue;\n      normalized[normalizer(u)] = asNumber(v);\n    }\n  }\n  return normalized;\n}\n\n/**\n * Returns the offset's value as a string\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n *                          Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\nfunction formatOffset(offset, format) {\n  const hours = Math.trunc(Math.abs(offset / 60)),\n    minutes = Math.trunc(Math.abs(offset % 60)),\n    sign = offset >= 0 ? \"+\" : \"-\";\n\n  switch (format) {\n    case \"short\":\n      return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n    case \"narrow\":\n      return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n    case \"techie\":\n      return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n    default:\n      throw new RangeError(`Value format ${format} is out of range for property format`);\n  }\n}\n\nfunction timeObject(obj) {\n  return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\n/**\n * @private\n */\n\nconst monthsLong = [\n  \"January\",\n  \"February\",\n  \"March\",\n  \"April\",\n  \"May\",\n  \"June\",\n  \"July\",\n  \"August\",\n  \"September\",\n  \"October\",\n  \"November\",\n  \"December\",\n];\n\nconst monthsShort = [\n  \"Jan\",\n  \"Feb\",\n  \"Mar\",\n  \"Apr\",\n  \"May\",\n  \"Jun\",\n  \"Jul\",\n  \"Aug\",\n  \"Sep\",\n  \"Oct\",\n  \"Nov\",\n  \"Dec\",\n];\n\nconst monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nfunction months(length) {\n  switch (length) {\n    case \"narrow\":\n      return [...monthsNarrow];\n    case \"short\":\n      return [...monthsShort];\n    case \"long\":\n      return [...monthsLong];\n    case \"numeric\":\n      return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n    case \"2-digit\":\n      return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n    default:\n      return null;\n  }\n}\n\nconst weekdaysLong = [\n  \"Monday\",\n  \"Tuesday\",\n  \"Wednesday\",\n  \"Thursday\",\n  \"Friday\",\n  \"Saturday\",\n  \"Sunday\",\n];\n\nconst weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nconst weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nfunction weekdays(length) {\n  switch (length) {\n    case \"narrow\":\n      return [...weekdaysNarrow];\n    case \"short\":\n      return [...weekdaysShort];\n    case \"long\":\n      return [...weekdaysLong];\n    case \"numeric\":\n      return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n    default:\n      return null;\n  }\n}\n\nconst meridiems = [\"AM\", \"PM\"];\n\nconst erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nconst erasShort = [\"BC\", \"AD\"];\n\nconst erasNarrow = [\"B\", \"A\"];\n\nfunction eras(length) {\n  switch (length) {\n    case \"narrow\":\n      return [...erasNarrow];\n    case \"short\":\n      return [...erasShort];\n    case \"long\":\n      return [...erasLong];\n    default:\n      return null;\n  }\n}\n\nfunction meridiemForDateTime(dt) {\n  return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nfunction weekdayForDateTime(dt, length) {\n  return weekdays(length)[dt.weekday - 1];\n}\n\nfunction monthForDateTime(dt, length) {\n  return months(length)[dt.month - 1];\n}\n\nfunction eraForDateTime(dt, length) {\n  return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nfunction formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n  const units = {\n    years: [\"year\", \"yr.\"],\n    quarters: [\"quarter\", \"qtr.\"],\n    months: [\"month\", \"mo.\"],\n    weeks: [\"week\", \"wk.\"],\n    days: [\"day\", \"day\", \"days\"],\n    hours: [\"hour\", \"hr.\"],\n    minutes: [\"minute\", \"min.\"],\n    seconds: [\"second\", \"sec.\"],\n  };\n\n  const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n  if (numeric === \"auto\" && lastable) {\n    const isDay = unit === \"days\";\n    switch (count) {\n      case 1:\n        return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n      case -1:\n        return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n      case 0:\n        return isDay ? \"today\" : `this ${units[unit][0]}`;\n    }\n  }\n\n  const isInPast = Object.is(count, -0) || count < 0,\n    fmtValue = Math.abs(count),\n    singular = fmtValue === 1,\n    lilUnits = units[unit],\n    fmtUnit = narrow\n      ? singular\n        ? lilUnits[1]\n        : lilUnits[2] || lilUnits[1]\n      : singular\n      ? units[unit][0]\n      : unit;\n  return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nfunction stringifyTokens(splits, tokenToString) {\n  let s = \"\";\n  for (const token of splits) {\n    if (token.literal) {\n      s += token.val;\n    } else {\n      s += tokenToString(token.val);\n    }\n  }\n  return s;\n}\n\nconst macroTokenToFormatOpts = {\n  D: DATE_SHORT,\n  DD: DATE_MED,\n  DDD: DATE_FULL,\n  DDDD: DATE_HUGE,\n  t: TIME_SIMPLE,\n  tt: TIME_WITH_SECONDS,\n  ttt: TIME_WITH_SHORT_OFFSET,\n  tttt: TIME_WITH_LONG_OFFSET,\n  T: TIME_24_SIMPLE,\n  TT: TIME_24_WITH_SECONDS,\n  TTT: TIME_24_WITH_SHORT_OFFSET,\n  TTTT: TIME_24_WITH_LONG_OFFSET,\n  f: DATETIME_SHORT,\n  ff: DATETIME_MED,\n  fff: DATETIME_FULL,\n  ffff: DATETIME_HUGE,\n  F: DATETIME_SHORT_WITH_SECONDS,\n  FF: DATETIME_MED_WITH_SECONDS,\n  FFF: DATETIME_FULL_WITH_SECONDS,\n  FFFF: DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nclass Formatter {\n  static create(locale, opts = {}) {\n    return new Formatter(locale, opts);\n  }\n\n  static parseFormat(fmt) {\n    // white-space is always considered a literal in user-provided formats\n    // the \" \" token has a special meaning (see unitForToken)\n\n    let current = null,\n      currentFull = \"\",\n      bracketed = false;\n    const splits = [];\n    for (let i = 0; i < fmt.length; i++) {\n      const c = fmt.charAt(i);\n      if (c === \"'\") {\n        // turn '' into a literal signal quote instead of just skipping the empty literal\n        if (currentFull.length > 0 || bracketed) {\n          splits.push({\n            literal: bracketed || /^\\s+$/.test(currentFull),\n            val: currentFull === \"\" ? \"'\" : currentFull,\n          });\n        }\n        current = null;\n        currentFull = \"\";\n        bracketed = !bracketed;\n      } else if (bracketed) {\n        currentFull += c;\n      } else if (c === current) {\n        currentFull += c;\n      } else {\n        if (currentFull.length > 0) {\n          splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n        }\n        currentFull = c;\n        current = c;\n      }\n    }\n\n    if (currentFull.length > 0) {\n      splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n    }\n\n    return splits;\n  }\n\n  static macroTokenToFormatOpts(token) {\n    return macroTokenToFormatOpts[token];\n  }\n\n  constructor(locale, formatOpts) {\n    this.opts = formatOpts;\n    this.loc = locale;\n    this.systemLoc = null;\n  }\n\n  formatWithSystemDefault(dt, opts) {\n    if (this.systemLoc === null) {\n      this.systemLoc = this.loc.redefaultToSystem();\n    }\n    const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n    return df.format();\n  }\n\n  dtFormatter(dt, opts = {}) {\n    return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n  }\n\n  formatDateTime(dt, opts) {\n    return this.dtFormatter(dt, opts).format();\n  }\n\n  formatDateTimeParts(dt, opts) {\n    return this.dtFormatter(dt, opts).formatToParts();\n  }\n\n  formatInterval(interval, opts) {\n    const df = this.dtFormatter(interval.start, opts);\n    return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n  }\n\n  resolvedOptions(dt, opts) {\n    return this.dtFormatter(dt, opts).resolvedOptions();\n  }\n\n  num(n, p = 0, signDisplay = undefined) {\n    // we get some perf out of doing this here, annoyingly\n    if (this.opts.forceSimple) {\n      return padStart(n, p);\n    }\n\n    const opts = { ...this.opts };\n\n    if (p > 0) {\n      opts.padTo = p;\n    }\n    if (signDisplay) {\n      opts.signDisplay = signDisplay;\n    }\n\n    return this.loc.numberFormatter(opts).format(n);\n  }\n\n  formatDateTimeFromString(dt, fmt) {\n    const knownEnglish = this.loc.listingMode() === \"en\",\n      useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n      string = (opts, extract) => this.loc.extract(dt, opts, extract),\n      formatOffset = (opts) => {\n        if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n          return \"Z\";\n        }\n\n        return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n      },\n      meridiem = () =>\n        knownEnglish\n          ? meridiemForDateTime(dt)\n          : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n      month = (length, standalone) =>\n        knownEnglish\n          ? monthForDateTime(dt, length)\n          : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n      weekday = (length, standalone) =>\n        knownEnglish\n          ? weekdayForDateTime(dt, length)\n          : string(\n              standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n              \"weekday\"\n            ),\n      maybeMacro = (token) => {\n        const formatOpts = Formatter.macroTokenToFormatOpts(token);\n        if (formatOpts) {\n          return this.formatWithSystemDefault(dt, formatOpts);\n        } else {\n          return token;\n        }\n      },\n      era = (length) =>\n        knownEnglish ? eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n      tokenToString = (token) => {\n        // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n        switch (token) {\n          // ms\n          case \"S\":\n            return this.num(dt.millisecond);\n          case \"u\":\n          // falls through\n          case \"SSS\":\n            return this.num(dt.millisecond, 3);\n          // seconds\n          case \"s\":\n            return this.num(dt.second);\n          case \"ss\":\n            return this.num(dt.second, 2);\n          // fractional seconds\n          case \"uu\":\n            return this.num(Math.floor(dt.millisecond / 10), 2);\n          case \"uuu\":\n            return this.num(Math.floor(dt.millisecond / 100));\n          // minutes\n          case \"m\":\n            return this.num(dt.minute);\n          case \"mm\":\n            return this.num(dt.minute, 2);\n          // hours\n          case \"h\":\n            return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n          case \"hh\":\n            return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n          case \"H\":\n            return this.num(dt.hour);\n          case \"HH\":\n            return this.num(dt.hour, 2);\n          // offset\n          case \"Z\":\n            // like +6\n            return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n          case \"ZZ\":\n            // like +06:00\n            return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n          case \"ZZZ\":\n            // like +0600\n            return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n          case \"ZZZZ\":\n            // like EST\n            return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n          case \"ZZZZZ\":\n            // like Eastern Standard Time\n            return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n          // zone\n          case \"z\":\n            // like America/New_York\n            return dt.zoneName;\n          // meridiems\n          case \"a\":\n            return meridiem();\n          // dates\n          case \"d\":\n            return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n          case \"dd\":\n            return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n          // weekdays - standalone\n          case \"c\":\n            // like 1\n            return this.num(dt.weekday);\n          case \"ccc\":\n            // like 'Tues'\n            return weekday(\"short\", true);\n          case \"cccc\":\n            // like 'Tuesday'\n            return weekday(\"long\", true);\n          case \"ccccc\":\n            // like 'T'\n            return weekday(\"narrow\", true);\n          // weekdays - format\n          case \"E\":\n            // like 1\n            return this.num(dt.weekday);\n          case \"EEE\":\n            // like 'Tues'\n            return weekday(\"short\", false);\n          case \"EEEE\":\n            // like 'Tuesday'\n            return weekday(\"long\", false);\n          case \"EEEEE\":\n            // like 'T'\n            return weekday(\"narrow\", false);\n          // months - standalone\n          case \"L\":\n            // like 1\n            return useDateTimeFormatter\n              ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n              : this.num(dt.month);\n          case \"LL\":\n            // like 01, doesn't seem to work\n            return useDateTimeFormatter\n              ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n              : this.num(dt.month, 2);\n          case \"LLL\":\n            // like Jan\n            return month(\"short\", true);\n          case \"LLLL\":\n            // like January\n            return month(\"long\", true);\n          case \"LLLLL\":\n            // like J\n            return month(\"narrow\", true);\n          // months - format\n          case \"M\":\n            // like 1\n            return useDateTimeFormatter\n              ? string({ month: \"numeric\" }, \"month\")\n              : this.num(dt.month);\n          case \"MM\":\n            // like 01\n            return useDateTimeFormatter\n              ? string({ month: \"2-digit\" }, \"month\")\n              : this.num(dt.month, 2);\n          case \"MMM\":\n            // like Jan\n            return month(\"short\", false);\n          case \"MMMM\":\n            // like January\n            return month(\"long\", false);\n          case \"MMMMM\":\n            // like J\n            return month(\"narrow\", false);\n          // years\n          case \"y\":\n            // like 2014\n            return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n          case \"yy\":\n            // like 14\n            return useDateTimeFormatter\n              ? string({ year: \"2-digit\" }, \"year\")\n              : this.num(dt.year.toString().slice(-2), 2);\n          case \"yyyy\":\n            // like 0012\n            return useDateTimeFormatter\n              ? string({ year: \"numeric\" }, \"year\")\n              : this.num(dt.year, 4);\n          case \"yyyyyy\":\n            // like 000012\n            return useDateTimeFormatter\n              ? string({ year: \"numeric\" }, \"year\")\n              : this.num(dt.year, 6);\n          // eras\n          case \"G\":\n            // like AD\n            return era(\"short\");\n          case \"GG\":\n            // like Anno Domini\n            return era(\"long\");\n          case \"GGGGG\":\n            return era(\"narrow\");\n          case \"kk\":\n            return this.num(dt.weekYear.toString().slice(-2), 2);\n          case \"kkkk\":\n            return this.num(dt.weekYear, 4);\n          case \"W\":\n            return this.num(dt.weekNumber);\n          case \"WW\":\n            return this.num(dt.weekNumber, 2);\n          case \"n\":\n            return this.num(dt.localWeekNumber);\n          case \"nn\":\n            return this.num(dt.localWeekNumber, 2);\n          case \"ii\":\n            return this.num(dt.localWeekYear.toString().slice(-2), 2);\n          case \"iiii\":\n            return this.num(dt.localWeekYear, 4);\n          case \"o\":\n            return this.num(dt.ordinal);\n          case \"ooo\":\n            return this.num(dt.ordinal, 3);\n          case \"q\":\n            // like 1\n            return this.num(dt.quarter);\n          case \"qq\":\n            // like 01\n            return this.num(dt.quarter, 2);\n          case \"X\":\n            return this.num(Math.floor(dt.ts / 1000));\n          case \"x\":\n            return this.num(dt.ts);\n          default:\n            return maybeMacro(token);\n        }\n      };\n\n    return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n  }\n\n  formatDurationFromString(dur, fmt) {\n    const invertLargest = this.opts.signMode === \"negativeLargestOnly\" ? -1 : 1;\n    const tokenToField = (token) => {\n        switch (token[0]) {\n          case \"S\":\n            return \"milliseconds\";\n          case \"s\":\n            return \"seconds\";\n          case \"m\":\n            return \"minutes\";\n          case \"h\":\n            return \"hours\";\n          case \"d\":\n            return \"days\";\n          case \"w\":\n            return \"weeks\";\n          case \"M\":\n            return \"months\";\n          case \"y\":\n            return \"years\";\n          default:\n            return null;\n        }\n      },\n      tokenToString = (lildur, info) => (token) => {\n        const mapped = tokenToField(token);\n        if (mapped) {\n          const inversionFactor =\n            info.isNegativeDuration && mapped !== info.largestUnit ? invertLargest : 1;\n          let signDisplay;\n          if (this.opts.signMode === \"negativeLargestOnly\" && mapped !== info.largestUnit) {\n            signDisplay = \"never\";\n          } else if (this.opts.signMode === \"all\") {\n            signDisplay = \"always\";\n          } else {\n            // \"auto\" and \"negative\" are the same, but \"auto\" has better support\n            signDisplay = \"auto\";\n          }\n          return this.num(lildur.get(mapped) * inversionFactor, token.length, signDisplay);\n        } else {\n          return token;\n        }\n      },\n      tokens = Formatter.parseFormat(fmt),\n      realTokens = tokens.reduce(\n        (found, { literal, val }) => (literal ? found : found.concat(val)),\n        []\n      ),\n      collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t)),\n      durationInfo = {\n        isNegativeDuration: collapsed < 0,\n        // this relies on \"collapsed\" being based on \"shiftTo\", which builds up the object\n        // in order\n        largestUnit: Object.keys(collapsed.values)[0],\n      };\n    return stringifyTokens(tokens, tokenToString(collapsed, durationInfo));\n  }\n}\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n  const full = regexes.reduce((f, r) => f + r.source, \"\");\n  return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n  return (m) =>\n    extractors\n      .reduce(\n        ([mergedVals, mergedZone, cursor], ex) => {\n          const [val, zone, next] = ex(m, cursor);\n          return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n        },\n        [{}, null, 1]\n      )\n      .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n  if (s == null) {\n    return [null, null];\n  }\n\n  for (const [regex, extractor] of patterns) {\n    const m = regex.exec(s);\n    if (m) {\n      return extractor(m);\n    }\n  }\n  return [null, null];\n}\n\nfunction simpleParse(...keys) {\n  return (match, cursor) => {\n    const ret = {};\n    let i;\n\n    for (i = 0; i < keys.length; i++) {\n      ret[keys[i]] = parseInteger(match[cursor + i]);\n    }\n    return [ret, null, cursor + i];\n  };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:([Zz])|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:[Tt]${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n  `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n  const m = match[pos];\n  return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n  const item = {\n    year: int(match, cursor),\n    month: int(match, cursor + 1, 1),\n    day: int(match, cursor + 2, 1),\n  };\n\n  return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n  const item = {\n    hours: int(match, cursor, 0),\n    minutes: int(match, cursor + 1, 0),\n    seconds: int(match, cursor + 2, 0),\n    milliseconds: parseMillis(match[cursor + 3]),\n  };\n\n  return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n  const local = !match[cursor] && !match[cursor + 1],\n    fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n    zone = local ? null : FixedOffsetZone.instance(fullOffset);\n  return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n  const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n  return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n  /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n  const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n    match;\n\n  const hasNegativePrefix = s[0] === \"-\";\n  const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n  const maybeNegate = (num, force = false) =>\n    num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n  return [\n    {\n      years: maybeNegate(parseFloating(yearStr)),\n      months: maybeNegate(parseFloating(monthStr)),\n      weeks: maybeNegate(parseFloating(weekStr)),\n      days: maybeNegate(parseFloating(dayStr)),\n      hours: maybeNegate(parseFloating(hourStr)),\n      minutes: maybeNegate(parseFloating(minuteStr)),\n      seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n      milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n    },\n  ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n  GMT: 0,\n  EDT: -4 * 60,\n  EST: -5 * 60,\n  CDT: -5 * 60,\n  CST: -6 * 60,\n  MDT: -6 * 60,\n  MST: -7 * 60,\n  PDT: -7 * 60,\n  PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n  const result = {\n    year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n    month: monthsShort.indexOf(monthStr) + 1,\n    day: parseInteger(dayStr),\n    hour: parseInteger(hourStr),\n    minute: parseInteger(minuteStr),\n  };\n\n  if (secondStr) result.second = parseInteger(secondStr);\n  if (weekdayStr) {\n    result.weekday =\n      weekdayStr.length > 3\n        ? weekdaysLong.indexOf(weekdayStr) + 1\n        : weekdaysShort.indexOf(weekdayStr) + 1;\n  }\n\n  return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n  /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n  const [\n      ,\n      weekdayStr,\n      dayStr,\n      monthStr,\n      yearStr,\n      hourStr,\n      minuteStr,\n      secondStr,\n      obsOffset,\n      milOffset,\n      offHourStr,\n      offMinuteStr,\n    ] = match,\n    result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n  let offset;\n  if (obsOffset) {\n    offset = obsOffsets[obsOffset];\n  } else if (milOffset) {\n    offset = 0;\n  } else {\n    offset = signedOffset(offHourStr, offMinuteStr);\n  }\n\n  return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n  // Remove comments and folding whitespace and replace multiple-spaces with a single space\n  return s\n    .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n    .replace(/(\\s\\s+)/g, \" \")\n    .trim();\n}\n\n// http date\n\nconst rfc1123 =\n    /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n  rfc850 =\n    /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n  ascii =\n    /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n  const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n    result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n  return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n  const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n    result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n  return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n  extractISOYmd,\n  extractISOTime,\n  extractISOOffset,\n  extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n  extractISOWeekData,\n  extractISOTime,\n  extractISOOffset,\n  extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n  extractISOOrdinalData,\n  extractISOTime,\n  extractISOOffset,\n  extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n  extractISOTime,\n  extractISOOffset,\n  extractIANAZone\n);\n\n/*\n * @private\n */\n\nfunction parseISODate(s) {\n  return parse(\n    s,\n    [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n    [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n    [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n    [isoTimeCombinedRegex, extractISOTimeAndOffset]\n  );\n}\n\nfunction parseRFC2822Date(s) {\n  return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nfunction parseHTTPDate(s) {\n  return parse(\n    s,\n    [rfc1123, extractRFC1123Or850],\n    [rfc850, extractRFC1123Or850],\n    [ascii, extractASCII]\n  );\n}\n\nfunction parseISODuration(s) {\n  return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nfunction parseISOTimeOnly(s) {\n  return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n  extractISOTime,\n  extractISOOffset,\n  extractIANAZone\n);\n\nfunction parseSQL(s) {\n  return parse(\n    s,\n    [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n    [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n  );\n}\n\nconst INVALID$2 = \"Invalid Duration\";\n\n// unit conversion constants\nconst lowOrderMatrix = {\n    weeks: {\n      days: 7,\n      hours: 7 * 24,\n      minutes: 7 * 24 * 60,\n      seconds: 7 * 24 * 60 * 60,\n      milliseconds: 7 * 24 * 60 * 60 * 1000,\n    },\n    days: {\n      hours: 24,\n      minutes: 24 * 60,\n      seconds: 24 * 60 * 60,\n      milliseconds: 24 * 60 * 60 * 1000,\n    },\n    hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n    minutes: { seconds: 60, milliseconds: 60 * 1000 },\n    seconds: { milliseconds: 1000 },\n  },\n  casualMatrix = {\n    years: {\n      quarters: 4,\n      months: 12,\n      weeks: 52,\n      days: 365,\n      hours: 365 * 24,\n      minutes: 365 * 24 * 60,\n      seconds: 365 * 24 * 60 * 60,\n      milliseconds: 365 * 24 * 60 * 60 * 1000,\n    },\n    quarters: {\n      months: 3,\n      weeks: 13,\n      days: 91,\n      hours: 91 * 24,\n      minutes: 91 * 24 * 60,\n      seconds: 91 * 24 * 60 * 60,\n      milliseconds: 91 * 24 * 60 * 60 * 1000,\n    },\n    months: {\n      weeks: 4,\n      days: 30,\n      hours: 30 * 24,\n      minutes: 30 * 24 * 60,\n      seconds: 30 * 24 * 60 * 60,\n      milliseconds: 30 * 24 * 60 * 60 * 1000,\n    },\n\n    ...lowOrderMatrix,\n  },\n  daysInYearAccurate = 146097.0 / 400,\n  daysInMonthAccurate = 146097.0 / 4800,\n  accurateMatrix = {\n    years: {\n      quarters: 4,\n      months: 12,\n      weeks: daysInYearAccurate / 7,\n      days: daysInYearAccurate,\n      hours: daysInYearAccurate * 24,\n      minutes: daysInYearAccurate * 24 * 60,\n      seconds: daysInYearAccurate * 24 * 60 * 60,\n      milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n    },\n    quarters: {\n      months: 3,\n      weeks: daysInYearAccurate / 28,\n      days: daysInYearAccurate / 4,\n      hours: (daysInYearAccurate * 24) / 4,\n      minutes: (daysInYearAccurate * 24 * 60) / 4,\n      seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n      milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n    },\n    months: {\n      weeks: daysInMonthAccurate / 7,\n      days: daysInMonthAccurate,\n      hours: daysInMonthAccurate * 24,\n      minutes: daysInMonthAccurate * 24 * 60,\n      seconds: daysInMonthAccurate * 24 * 60 * 60,\n      milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n    },\n    ...lowOrderMatrix,\n  };\n\n// units ordered by size\nconst orderedUnits$1 = [\n  \"years\",\n  \"quarters\",\n  \"months\",\n  \"weeks\",\n  \"days\",\n  \"hours\",\n  \"minutes\",\n  \"seconds\",\n  \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits$1.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone$1(dur, alts, clear = false) {\n  // deep merge for vals\n  const conf = {\n    values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n    loc: dur.loc.clone(alts.loc),\n    conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n    matrix: alts.matrix || dur.matrix,\n  };\n  return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n  let sum = vals.milliseconds ?? 0;\n  for (const unit of reverseUnits.slice(1)) {\n    if (vals[unit]) {\n      sum += vals[unit] * matrix[unit][\"milliseconds\"];\n    }\n  }\n  return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n  // the logic below assumes the overall value of the duration is positive\n  // if this is not the case, factor is used to make it so\n  const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n  orderedUnits$1.reduceRight((previous, current) => {\n    if (!isUndefined(vals[current])) {\n      if (previous) {\n        const previousVal = vals[previous] * factor;\n        const conv = matrix[current][previous];\n\n        // if (previousVal < 0):\n        // lower order unit is negative (e.g. { years: 2, days: -2 })\n        // normalize this by reducing the higher order unit by the appropriate amount\n        // and increasing the lower order unit\n        // this can never make the higher order unit negative, because this function only operates\n        // on positive durations, so the amount of time represented by the lower order unit cannot\n        // be larger than the higher order unit\n        // else:\n        // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n        // in this case we attempt to convert as much as possible from the lower order unit into\n        // the higher order one\n        //\n        // Math.floor takes care of both of these cases, rounding away from 0\n        // if previousVal < 0 it makes the absolute value larger\n        // if previousVal >= it makes the absolute value smaller\n        const rollUp = Math.floor(previousVal / conv);\n        vals[current] += rollUp * factor;\n        vals[previous] -= rollUp * conv * factor;\n      }\n      return current;\n    } else {\n      return previous;\n    }\n  }, null);\n\n  // try to convert any decimals into smaller units if possible\n  // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n  orderedUnits$1.reduce((previous, current) => {\n    if (!isUndefined(vals[current])) {\n      if (previous) {\n        const fraction = vals[previous] % 1;\n        vals[previous] -= fraction;\n        vals[current] += fraction * matrix[previous][current];\n      }\n      return current;\n    } else {\n      return previous;\n    }\n  }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n  const newVals = {};\n  for (const [key, value] of Object.entries(vals)) {\n    if (value !== 0) {\n      newVals[key] = value;\n    }\n  }\n  return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See  {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nclass Duration {\n  /**\n   * @private\n   */\n  constructor(config) {\n    const accurate = config.conversionAccuracy === \"longterm\" || false;\n    let matrix = accurate ? accurateMatrix : casualMatrix;\n\n    if (config.matrix) {\n      matrix = config.matrix;\n    }\n\n    /**\n     * @access private\n     */\n    this.values = config.values;\n    /**\n     * @access private\n     */\n    this.loc = config.loc || Locale.create();\n    /**\n     * @access private\n     */\n    this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n    /**\n     * @access private\n     */\n    this.invalid = config.invalid || null;\n    /**\n     * @access private\n     */\n    this.matrix = matrix;\n    /**\n     * @access private\n     */\n    this.isLuxonDuration = true;\n  }\n\n  /**\n   * Create Duration from a number of milliseconds.\n   * @param {number} count of milliseconds\n   * @param {Object} opts - options for parsing\n   * @param {string} [opts.locale='en-US'] - the locale to use\n   * @param {string} opts.numberingSystem - the numbering system to use\n   * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n   * @return {Duration}\n   */\n  static fromMillis(count, opts) {\n    return Duration.fromObject({ milliseconds: count }, opts);\n  }\n\n  /**\n   * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n   * If this object is empty then a zero milliseconds duration is returned.\n   * @param {Object} obj - the object to create the DateTime from\n   * @param {number} obj.years\n   * @param {number} obj.quarters\n   * @param {number} obj.months\n   * @param {number} obj.weeks\n   * @param {number} obj.days\n   * @param {number} obj.hours\n   * @param {number} obj.minutes\n   * @param {number} obj.seconds\n   * @param {number} obj.milliseconds\n   * @param {Object} [opts=[]] - options for creating this Duration\n   * @param {string} [opts.locale='en-US'] - the locale to use\n   * @param {string} opts.numberingSystem - the numbering system to use\n   * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n   * @param {string} [opts.matrix=Object] - the custom conversion system to use\n   * @return {Duration}\n   */\n  static fromObject(obj, opts = {}) {\n    if (obj == null || typeof obj !== \"object\") {\n      throw new InvalidArgumentError(\n        `Duration.fromObject: argument expected to be an object, got ${\n          obj === null ? \"null\" : typeof obj\n        }`\n      );\n    }\n\n    return new Duration({\n      values: normalizeObject(obj, Duration.normalizeUnit),\n      loc: Locale.fromObject(opts),\n      conversionAccuracy: opts.conversionAccuracy,\n      matrix: opts.matrix,\n    });\n  }\n\n  /**\n   * Create a Duration from DurationLike.\n   *\n   * @param {Object | number | Duration} durationLike\n   * One of:\n   * - object with keys like 'years' and 'hours'.\n   * - number representing milliseconds\n   * - Duration instance\n   * @return {Duration}\n   */\n  static fromDurationLike(durationLike) {\n    if (isNumber(durationLike)) {\n      return Duration.fromMillis(durationLike);\n    } else if (Duration.isDuration(durationLike)) {\n      return durationLike;\n    } else if (typeof durationLike === \"object\") {\n      return Duration.fromObject(durationLike);\n    } else {\n      throw new InvalidArgumentError(\n        `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n      );\n    }\n  }\n\n  /**\n   * Create a Duration from an ISO 8601 duration string.\n   * @param {string} text - text to parse\n   * @param {Object} opts - options for parsing\n   * @param {string} [opts.locale='en-US'] - the locale to use\n   * @param {string} opts.numberingSystem - the numbering system to use\n   * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n   * @param {string} [opts.matrix=Object] - the preset conversion system to use\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n   * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n   * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n   * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n   * @return {Duration}\n   */\n  static fromISO(text, opts) {\n    const [parsed] = parseISODuration(text);\n    if (parsed) {\n      return Duration.fromObject(parsed, opts);\n    } else {\n      return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n    }\n  }\n\n  /**\n   * Create a Duration from an ISO 8601 time string.\n   * @param {string} text - text to parse\n   * @param {Object} opts - options for parsing\n   * @param {string} [opts.locale='en-US'] - the locale to use\n   * @param {string} opts.numberingSystem - the numbering system to use\n   * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n   * @param {string} [opts.matrix=Object] - the conversion system to use\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n   * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n   * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n   * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n   * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n   * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n   * @return {Duration}\n   */\n  static fromISOTime(text, opts) {\n    const [parsed] = parseISOTimeOnly(text);\n    if (parsed) {\n      return Duration.fromObject(parsed, opts);\n    } else {\n      return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n    }\n  }\n\n  /**\n   * Create an invalid Duration.\n   * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n   * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n   * @return {Duration}\n   */\n  static invalid(reason, explanation = null) {\n    if (!reason) {\n      throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n    }\n\n    const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n    if (Settings.throwOnInvalid) {\n      throw new InvalidDurationError(invalid);\n    } else {\n      return new Duration({ invalid });\n    }\n  }\n\n  /**\n   * @private\n   */\n  static normalizeUnit(unit) {\n    const normalized = {\n      year: \"years\",\n      years: \"years\",\n      quarter: \"quarters\",\n      quarters: \"quarters\",\n      month: \"months\",\n      months: \"months\",\n      week: \"weeks\",\n      weeks: \"weeks\",\n      day: \"days\",\n      days: \"days\",\n      hour: \"hours\",\n      hours: \"hours\",\n      minute: \"minutes\",\n      minutes: \"minutes\",\n      second: \"seconds\",\n      seconds: \"seconds\",\n      millisecond: \"milliseconds\",\n      milliseconds: \"milliseconds\",\n    }[unit ? unit.toLowerCase() : unit];\n\n    if (!normalized) throw new InvalidUnitError(unit);\n\n    return normalized;\n  }\n\n  /**\n   * Check if an object is a Duration. Works across context boundaries\n   * @param {object} o\n   * @return {boolean}\n   */\n  static isDuration(o) {\n    return (o && o.isLuxonDuration) || false;\n  }\n\n  /**\n   * Get  the locale of a Duration, such 'en-GB'\n   * @type {string}\n   */\n  get locale() {\n    return this.isValid ? this.loc.locale : null;\n  }\n\n  /**\n   * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n   *\n   * @type {string}\n   */\n  get numberingSystem() {\n    return this.isValid ? this.loc.numberingSystem : null;\n  }\n\n  /**\n   * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n   * * `S` for milliseconds\n   * * `s` for seconds\n   * * `m` for minutes\n   * * `h` for hours\n   * * `d` for days\n   * * `w` for weeks\n   * * `M` for months\n   * * `y` for years\n   * Notes:\n   * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n   * * Tokens can be escaped by wrapping with single quotes.\n   * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n   * @param {string} fmt - the format string\n   * @param {Object} opts - options\n   * @param {boolean} [opts.floor=true] - floor numerical values\n   * @param {'negative'|'all'|'negativeLargestOnly'} [opts.signMode=negative] - How to handle signs\n   * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n   * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n   * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n   * @example Duration.fromObject({ days: 6, seconds: 2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"+6 +2\"\n   * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"-6 -2\"\n   * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"negativeLargestOnly\" }) //=> \"-6 2\"\n   * @return {string}\n   */\n  toFormat(fmt, opts = {}) {\n    // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n    const fmtOpts = {\n      ...opts,\n      floor: opts.round !== false && opts.floor !== false,\n    };\n    return this.isValid\n      ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n      : INVALID$2;\n  }\n\n  /**\n   * Returns a string representation of a Duration with all units included.\n   * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n   * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n   * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n   * @param {boolean} [opts.showZeros=true] - Show all units previously used by the duration even if they are zero\n   * @example\n   * ```js\n   * var dur = Duration.fromObject({ months: 1, weeks: 0, hours: 5, minutes: 6 })\n   * dur.toHuman() //=> '1 month, 0 weeks, 5 hours, 6 minutes'\n   * dur.toHuman({ listStyle: \"long\" }) //=> '1 month, 0 weeks, 5 hours, and 6 minutes'\n   * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 mth, 0 wks, 5 hr, 6 min'\n   * dur.toHuman({ showZeros: false }) //=> '1 month, 5 hours, 6 minutes'\n   * ```\n   */\n  toHuman(opts = {}) {\n    if (!this.isValid) return INVALID$2;\n\n    const showZeros = opts.showZeros !== false;\n\n    const l = orderedUnits$1\n      .map((unit) => {\n        const val = this.values[unit];\n        if (isUndefined(val) || (val === 0 && !showZeros)) {\n          return null;\n        }\n        return this.loc\n          .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n          .format(val);\n      })\n      .filter((n) => n);\n\n    return this.loc\n      .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n      .format(l);\n  }\n\n  /**\n   * Returns a JavaScript object with this Duration's values.\n   * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n   * @return {Object}\n   */\n  toObject() {\n    if (!this.isValid) return {};\n    return { ...this.values };\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this Duration.\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n   * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n   * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n   * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n   * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n   * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n   * @return {string}\n   */\n  toISO() {\n    // we could use the formatter, but this is an easier way to get the minimum string\n    if (!this.isValid) return null;\n\n    let s = \"P\";\n    if (this.years !== 0) s += this.years + \"Y\";\n    if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n    if (this.weeks !== 0) s += this.weeks + \"W\";\n    if (this.days !== 0) s += this.days + \"D\";\n    if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n      s += \"T\";\n    if (this.hours !== 0) s += this.hours + \"H\";\n    if (this.minutes !== 0) s += this.minutes + \"M\";\n    if (this.seconds !== 0 || this.milliseconds !== 0)\n      // this will handle \"floating point madness\" by removing extra decimal places\n      // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n      s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n    if (s === \"P\") s += \"T0S\";\n    return s;\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n   * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n   * @param {Object} opts - options\n   * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n   * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n   * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n   * @param {string} [opts.format='extended'] - choose between the basic and extended format\n   * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n   * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n   * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n   * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n   * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n   * @return {string}\n   */\n  toISOTime(opts = {}) {\n    if (!this.isValid) return null;\n\n    const millis = this.toMillis();\n    if (millis < 0 || millis >= 86400000) return null;\n\n    opts = {\n      suppressMilliseconds: false,\n      suppressSeconds: false,\n      includePrefix: false,\n      format: \"extended\",\n      ...opts,\n      includeOffset: false,\n    };\n\n    const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n    return dateTime.toISOTime(opts);\n  }\n\n  /**\n   * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n   * @return {string}\n   */\n  toJSON() {\n    return this.toISO();\n  }\n\n  /**\n   * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n   * @return {string}\n   */\n  toString() {\n    return this.toISO();\n  }\n\n  /**\n   * Returns a string representation of this Duration appropriate for the REPL.\n   * @return {string}\n   */\n  [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n    if (this.isValid) {\n      return `Duration { values: ${JSON.stringify(this.values)} }`;\n    } else {\n      return `Duration { Invalid, reason: ${this.invalidReason} }`;\n    }\n  }\n\n  /**\n   * Returns an milliseconds value of this Duration.\n   * @return {number}\n   */\n  toMillis() {\n    if (!this.isValid) return NaN;\n\n    return durationToMillis(this.matrix, this.values);\n  }\n\n  /**\n   * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n   * @return {number}\n   */\n  valueOf() {\n    return this.toMillis();\n  }\n\n  /**\n   * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n   * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n   * @return {Duration}\n   */\n  plus(duration) {\n    if (!this.isValid) return this;\n\n    const dur = Duration.fromDurationLike(duration),\n      result = {};\n\n    for (const k of orderedUnits$1) {\n      if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n        result[k] = dur.get(k) + this.get(k);\n      }\n    }\n\n    return clone$1(this, { values: result }, true);\n  }\n\n  /**\n   * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n   * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n   * @return {Duration}\n   */\n  minus(duration) {\n    if (!this.isValid) return this;\n\n    const dur = Duration.fromDurationLike(duration);\n    return this.plus(dur.negate());\n  }\n\n  /**\n   * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n   * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n   * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n   * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n   * @return {Duration}\n   */\n  mapUnits(fn) {\n    if (!this.isValid) return this;\n    const result = {};\n    for (const k of Object.keys(this.values)) {\n      result[k] = asNumber(fn(this.values[k], k));\n    }\n    return clone$1(this, { values: result }, true);\n  }\n\n  /**\n   * Get the value of unit.\n   * @param {string} unit - a unit such as 'minute' or 'day'\n   * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n   * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n   * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n   * @return {number}\n   */\n  get(unit) {\n    return this[Duration.normalizeUnit(unit)];\n  }\n\n  /**\n   * \"Set\" the values of specified units. Return a newly-constructed Duration.\n   * @param {Object} values - a mapping of units to numbers\n   * @example dur.set({ years: 2017 })\n   * @example dur.set({ hours: 8, minutes: 30 })\n   * @return {Duration}\n   */\n  set(values) {\n    if (!this.isValid) return this;\n\n    const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n    return clone$1(this, { values: mixed });\n  }\n\n  /**\n   * \"Set\" the locale and/or numberingSystem.  Returns a newly-constructed Duration.\n   * @example dur.reconfigure({ locale: 'en-GB' })\n   * @return {Duration}\n   */\n  reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n    const loc = this.loc.clone({ locale, numberingSystem });\n    const opts = { loc, matrix, conversionAccuracy };\n    return clone$1(this, opts);\n  }\n\n  /**\n   * Return the length of the duration in the specified unit.\n   * @param {string} unit - a unit such as 'minutes' or 'days'\n   * @example Duration.fromObject({years: 1}).as('days') //=> 365\n   * @example Duration.fromObject({years: 1}).as('months') //=> 12\n   * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n   * @return {number}\n   */\n  as(unit) {\n    return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n  }\n\n  /**\n   * Reduce this Duration to its canonical representation in its current units.\n   * Assuming the overall value of the Duration is positive, this means:\n   * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n   * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n   *   the overall value would be negative, see third example)\n   * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n   *\n   * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n   * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n   * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n   * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n   * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n   * @return {Duration}\n   */\n  normalize() {\n    if (!this.isValid) return this;\n    const vals = this.toObject();\n    normalizeValues(this.matrix, vals);\n    return clone$1(this, { values: vals }, true);\n  }\n\n  /**\n   * Rescale units to its largest representation\n   * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n   * @return {Duration}\n   */\n  rescale() {\n    if (!this.isValid) return this;\n    const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n    return clone$1(this, { values: vals }, true);\n  }\n\n  /**\n   * Convert this Duration into its representation in a different set of units.\n   * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n   * @return {Duration}\n   */\n  shiftTo(...units) {\n    if (!this.isValid) return this;\n\n    if (units.length === 0) {\n      return this;\n    }\n\n    units = units.map((u) => Duration.normalizeUnit(u));\n\n    const built = {},\n      accumulated = {},\n      vals = this.toObject();\n    let lastUnit;\n\n    for (const k of orderedUnits$1) {\n      if (units.indexOf(k) >= 0) {\n        lastUnit = k;\n\n        let own = 0;\n\n        // anything we haven't boiled down yet should get boiled to this unit\n        for (const ak in accumulated) {\n          own += this.matrix[ak][k] * accumulated[ak];\n          accumulated[ak] = 0;\n        }\n\n        // plus anything that's already in this unit\n        if (isNumber(vals[k])) {\n          own += vals[k];\n        }\n\n        // only keep the integer part for now in the hopes of putting any decimal part\n        // into a smaller unit later\n        const i = Math.trunc(own);\n        built[k] = i;\n        accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n        // otherwise, keep it in the wings to boil it later\n      } else if (isNumber(vals[k])) {\n        accumulated[k] = vals[k];\n      }\n    }\n\n    // anything leftover becomes the decimal for the last unit\n    // lastUnit must be defined since units is not empty\n    for (const key in accumulated) {\n      if (accumulated[key] !== 0) {\n        built[lastUnit] +=\n          key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n      }\n    }\n\n    normalizeValues(this.matrix, built);\n    return clone$1(this, { values: built }, true);\n  }\n\n  /**\n   * Shift this Duration to all available units.\n   * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n   * @return {Duration}\n   */\n  shiftToAll() {\n    if (!this.isValid) return this;\n    return this.shiftTo(\n      \"years\",\n      \"months\",\n      \"weeks\",\n      \"days\",\n      \"hours\",\n      \"minutes\",\n      \"seconds\",\n      \"milliseconds\"\n    );\n  }\n\n  /**\n   * Return the negative of this Duration.\n   * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n   * @return {Duration}\n   */\n  negate() {\n    if (!this.isValid) return this;\n    const negated = {};\n    for (const k of Object.keys(this.values)) {\n      negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n    }\n    return clone$1(this, { values: negated }, true);\n  }\n\n  /**\n   * Removes all units with values equal to 0 from this Duration.\n   * @example Duration.fromObject({ years: 2, days: 0, hours: 0, minutes: 0 }).removeZeros().toObject() //=> { years: 2 }\n   * @return {Duration}\n   */\n  removeZeros() {\n    if (!this.isValid) return this;\n    const vals = removeZeroes(this.values);\n    return clone$1(this, { values: vals }, true);\n  }\n\n  /**\n   * Get the years.\n   * @type {number}\n   */\n  get years() {\n    return this.isValid ? this.values.years || 0 : NaN;\n  }\n\n  /**\n   * Get the quarters.\n   * @type {number}\n   */\n  get quarters() {\n    return this.isValid ? this.values.quarters || 0 : NaN;\n  }\n\n  /**\n   * Get the months.\n   * @type {number}\n   */\n  get months() {\n    return this.isValid ? this.values.months || 0 : NaN;\n  }\n\n  /**\n   * Get the weeks\n   * @type {number}\n   */\n  get weeks() {\n    return this.isValid ? this.values.weeks || 0 : NaN;\n  }\n\n  /**\n   * Get the days.\n   * @type {number}\n   */\n  get days() {\n    return this.isValid ? this.values.days || 0 : NaN;\n  }\n\n  /**\n   * Get the hours.\n   * @type {number}\n   */\n  get hours() {\n    return this.isValid ? this.values.hours || 0 : NaN;\n  }\n\n  /**\n   * Get the minutes.\n   * @type {number}\n   */\n  get minutes() {\n    return this.isValid ? this.values.minutes || 0 : NaN;\n  }\n\n  /**\n   * Get the seconds.\n   * @return {number}\n   */\n  get seconds() {\n    return this.isValid ? this.values.seconds || 0 : NaN;\n  }\n\n  /**\n   * Get the milliseconds.\n   * @return {number}\n   */\n  get milliseconds() {\n    return this.isValid ? this.values.milliseconds || 0 : NaN;\n  }\n\n  /**\n   * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n   * on invalid DateTimes or Intervals.\n   * @return {boolean}\n   */\n  get isValid() {\n    return this.invalid === null;\n  }\n\n  /**\n   * Returns an error code if this Duration became invalid, or null if the Duration is valid\n   * @return {string}\n   */\n  get invalidReason() {\n    return this.invalid ? this.invalid.reason : null;\n  }\n\n  /**\n   * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n   * @type {string}\n   */\n  get invalidExplanation() {\n    return this.invalid ? this.invalid.explanation : null;\n  }\n\n  /**\n   * Equality check\n   * Two Durations are equal iff they have the same units and the same values for each unit.\n   * @param {Duration} other\n   * @return {boolean}\n   */\n  equals(other) {\n    if (!this.isValid || !other.isValid) {\n      return false;\n    }\n\n    if (!this.loc.equals(other.loc)) {\n      return false;\n    }\n\n    function eq(v1, v2) {\n      // Consider 0 and undefined as equal\n      if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n      return v1 === v2;\n    }\n\n    for (const u of orderedUnits$1) {\n      if (!eq(this.values[u], other.values[u])) {\n        return false;\n      }\n    }\n    return true;\n  }\n}\n\nconst INVALID$1 = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n  if (!start || !start.isValid) {\n    return Interval.invalid(\"missing or invalid start\");\n  } else if (!end || !end.isValid) {\n    return Interval.invalid(\"missing or invalid end\");\n  } else if (end < start) {\n    return Interval.invalid(\n      \"end before start\",\n      `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n    );\n  } else {\n    return null;\n  }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nclass Interval {\n  /**\n   * @private\n   */\n  constructor(config) {\n    /**\n     * @access private\n     */\n    this.s = config.start;\n    /**\n     * @access private\n     */\n    this.e = config.end;\n    /**\n     * @access private\n     */\n    this.invalid = config.invalid || null;\n    /**\n     * @access private\n     */\n    this.isLuxonInterval = true;\n  }\n\n  /**\n   * Create an invalid Interval.\n   * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n   * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n   * @return {Interval}\n   */\n  static invalid(reason, explanation = null) {\n    if (!reason) {\n      throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n    }\n\n    const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n    if (Settings.throwOnInvalid) {\n      throw new InvalidIntervalError(invalid);\n    } else {\n      return new Interval({ invalid });\n    }\n  }\n\n  /**\n   * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n   * @param {DateTime|Date|Object} start\n   * @param {DateTime|Date|Object} end\n   * @return {Interval}\n   */\n  static fromDateTimes(start, end) {\n    const builtStart = friendlyDateTime(start),\n      builtEnd = friendlyDateTime(end);\n\n    const validateError = validateStartEnd(builtStart, builtEnd);\n\n    if (validateError == null) {\n      return new Interval({\n        start: builtStart,\n        end: builtEnd,\n      });\n    } else {\n      return validateError;\n    }\n  }\n\n  /**\n   * Create an Interval from a start DateTime and a Duration to extend to.\n   * @param {DateTime|Date|Object} start\n   * @param {Duration|Object|number} duration - the length of the Interval.\n   * @return {Interval}\n   */\n  static after(start, duration) {\n    const dur = Duration.fromDurationLike(duration),\n      dt = friendlyDateTime(start);\n    return Interval.fromDateTimes(dt, dt.plus(dur));\n  }\n\n  /**\n   * Create an Interval from an end DateTime and a Duration to extend backwards to.\n   * @param {DateTime|Date|Object} end\n   * @param {Duration|Object|number} duration - the length of the Interval.\n   * @return {Interval}\n   */\n  static before(end, duration) {\n    const dur = Duration.fromDurationLike(duration),\n      dt = friendlyDateTime(end);\n    return Interval.fromDateTimes(dt.minus(dur), dt);\n  }\n\n  /**\n   * Create an Interval from an ISO 8601 string.\n   * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n   * @param {string} text - the ISO string to parse\n   * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n   * @return {Interval}\n   */\n  static fromISO(text, opts) {\n    const [s, e] = (text || \"\").split(\"/\", 2);\n    if (s && e) {\n      let start, startIsValid;\n      try {\n        start = DateTime.fromISO(s, opts);\n        startIsValid = start.isValid;\n      } catch (e) {\n        startIsValid = false;\n      }\n\n      let end, endIsValid;\n      try {\n        end = DateTime.fromISO(e, opts);\n        endIsValid = end.isValid;\n      } catch (e) {\n        endIsValid = false;\n      }\n\n      if (startIsValid && endIsValid) {\n        return Interval.fromDateTimes(start, end);\n      }\n\n      if (startIsValid) {\n        const dur = Duration.fromISO(e, opts);\n        if (dur.isValid) {\n          return Interval.after(start, dur);\n        }\n      } else if (endIsValid) {\n        const dur = Duration.fromISO(s, opts);\n        if (dur.isValid) {\n          return Interval.before(end, dur);\n        }\n      }\n    }\n    return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n  }\n\n  /**\n   * Check if an object is an Interval. Works across context boundaries\n   * @param {object} o\n   * @return {boolean}\n   */\n  static isInterval(o) {\n    return (o && o.isLuxonInterval) || false;\n  }\n\n  /**\n   * Returns the start of the Interval\n   * @type {DateTime}\n   */\n  get start() {\n    return this.isValid ? this.s : null;\n  }\n\n  /**\n   * Returns the end of the Interval. This is the first instant which is not part of the interval\n   * (Interval is half-open).\n   * @type {DateTime}\n   */\n  get end() {\n    return this.isValid ? this.e : null;\n  }\n\n  /**\n   * Returns the last DateTime included in the interval (since end is not part of the interval)\n   * @type {DateTime}\n   */\n  get lastDateTime() {\n    return this.isValid ? (this.e ? this.e.minus(1) : null) : null;\n  }\n\n  /**\n   * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n   * @type {boolean}\n   */\n  get isValid() {\n    return this.invalidReason === null;\n  }\n\n  /**\n   * Returns an error code if this Interval is invalid, or null if the Interval is valid\n   * @type {string}\n   */\n  get invalidReason() {\n    return this.invalid ? this.invalid.reason : null;\n  }\n\n  /**\n   * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n   * @type {string}\n   */\n  get invalidExplanation() {\n    return this.invalid ? this.invalid.explanation : null;\n  }\n\n  /**\n   * Returns the length of the Interval in the specified unit.\n   * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n   * @return {number}\n   */\n  length(unit = \"milliseconds\") {\n    return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n  }\n\n  /**\n   * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n   * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n   * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n   * @param {string} [unit='milliseconds'] - the unit of time to count.\n   * @param {Object} opts - options\n   * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n   * @return {number}\n   */\n  count(unit = \"milliseconds\", opts) {\n    if (!this.isValid) return NaN;\n    const start = this.start.startOf(unit, opts);\n    let end;\n    if (opts?.useLocaleWeeks) {\n      end = this.end.reconfigure({ locale: start.locale });\n    } else {\n      end = this.end;\n    }\n    end = end.startOf(unit, opts);\n    return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n  }\n\n  /**\n   * Returns whether this Interval's start and end are both in the same unit of time\n   * @param {string} unit - the unit of time to check sameness on\n   * @return {boolean}\n   */\n  hasSame(unit) {\n    return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n  }\n\n  /**\n   * Return whether this Interval has the same start and end DateTimes.\n   * @return {boolean}\n   */\n  isEmpty() {\n    return this.s.valueOf() === this.e.valueOf();\n  }\n\n  /**\n   * Return whether this Interval's start is after the specified DateTime.\n   * @param {DateTime} dateTime\n   * @return {boolean}\n   */\n  isAfter(dateTime) {\n    if (!this.isValid) return false;\n    return this.s > dateTime;\n  }\n\n  /**\n   * Return whether this Interval's end is before the specified DateTime.\n   * @param {DateTime} dateTime\n   * @return {boolean}\n   */\n  isBefore(dateTime) {\n    if (!this.isValid) return false;\n    return this.e <= dateTime;\n  }\n\n  /**\n   * Return whether this Interval contains the specified DateTime.\n   * @param {DateTime} dateTime\n   * @return {boolean}\n   */\n  contains(dateTime) {\n    if (!this.isValid) return false;\n    return this.s <= dateTime && this.e > dateTime;\n  }\n\n  /**\n   * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n   * @param {Object} values - the values to set\n   * @param {DateTime} values.start - the starting DateTime\n   * @param {DateTime} values.end - the ending DateTime\n   * @return {Interval}\n   */\n  set({ start, end } = {}) {\n    if (!this.isValid) return this;\n    return Interval.fromDateTimes(start || this.s, end || this.e);\n  }\n\n  /**\n   * Split this Interval at each of the specified DateTimes\n   * @param {...DateTime} dateTimes - the unit of time to count.\n   * @return {Array}\n   */\n  splitAt(...dateTimes) {\n    if (!this.isValid) return [];\n    const sorted = dateTimes\n        .map(friendlyDateTime)\n        .filter((d) => this.contains(d))\n        .sort((a, b) => a.toMillis() - b.toMillis()),\n      results = [];\n    let { s } = this,\n      i = 0;\n\n    while (s < this.e) {\n      const added = sorted[i] || this.e,\n        next = +added > +this.e ? this.e : added;\n      results.push(Interval.fromDateTimes(s, next));\n      s = next;\n      i += 1;\n    }\n\n    return results;\n  }\n\n  /**\n   * Split this Interval into smaller Intervals, each of the specified length.\n   * Left over time is grouped into a smaller interval\n   * @param {Duration|Object|number} duration - The length of each resulting interval.\n   * @return {Array}\n   */\n  splitBy(duration) {\n    const dur = Duration.fromDurationLike(duration);\n\n    if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n      return [];\n    }\n\n    let { s } = this,\n      idx = 1,\n      next;\n\n    const results = [];\n    while (s < this.e) {\n      const added = this.start.plus(dur.mapUnits((x) => x * idx));\n      next = +added > +this.e ? this.e : added;\n      results.push(Interval.fromDateTimes(s, next));\n      s = next;\n      idx += 1;\n    }\n\n    return results;\n  }\n\n  /**\n   * Split this Interval into the specified number of smaller intervals.\n   * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n   * @return {Array}\n   */\n  divideEqually(numberOfParts) {\n    if (!this.isValid) return [];\n    return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n  }\n\n  /**\n   * Return whether this Interval overlaps with the specified Interval\n   * @param {Interval} other\n   * @return {boolean}\n   */\n  overlaps(other) {\n    return this.e > other.s && this.s < other.e;\n  }\n\n  /**\n   * Return whether this Interval's end is adjacent to the specified Interval's start.\n   * @param {Interval} other\n   * @return {boolean}\n   */\n  abutsStart(other) {\n    if (!this.isValid) return false;\n    return +this.e === +other.s;\n  }\n\n  /**\n   * Return whether this Interval's start is adjacent to the specified Interval's end.\n   * @param {Interval} other\n   * @return {boolean}\n   */\n  abutsEnd(other) {\n    if (!this.isValid) return false;\n    return +other.e === +this.s;\n  }\n\n  /**\n   * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n   * @param {Interval} other\n   * @return {boolean}\n   */\n  engulfs(other) {\n    if (!this.isValid) return false;\n    return this.s <= other.s && this.e >= other.e;\n  }\n\n  /**\n   * Return whether this Interval has the same start and end as the specified Interval.\n   * @param {Interval} other\n   * @return {boolean}\n   */\n  equals(other) {\n    if (!this.isValid || !other.isValid) {\n      return false;\n    }\n\n    return this.s.equals(other.s) && this.e.equals(other.e);\n  }\n\n  /**\n   * Return an Interval representing the intersection of this Interval and the specified Interval.\n   * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n   * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n   * @param {Interval} other\n   * @return {Interval}\n   */\n  intersection(other) {\n    if (!this.isValid) return this;\n    const s = this.s > other.s ? this.s : other.s,\n      e = this.e < other.e ? this.e : other.e;\n\n    if (s >= e) {\n      return null;\n    } else {\n      return Interval.fromDateTimes(s, e);\n    }\n  }\n\n  /**\n   * Return an Interval representing the union of this Interval and the specified Interval.\n   * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n   * @param {Interval} other\n   * @return {Interval}\n   */\n  union(other) {\n    if (!this.isValid) return this;\n    const s = this.s < other.s ? this.s : other.s,\n      e = this.e > other.e ? this.e : other.e;\n    return Interval.fromDateTimes(s, e);\n  }\n\n  /**\n   * Merge an array of Intervals into an equivalent minimal set of Intervals.\n   * Combines overlapping and adjacent Intervals.\n   * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval\n   * and ending with the latest.\n   *\n   * @param {Array} intervals\n   * @return {Array}\n   */\n  static merge(intervals) {\n    const [found, final] = intervals\n      .sort((a, b) => a.s - b.s)\n      .reduce(\n        ([sofar, current], item) => {\n          if (!current) {\n            return [sofar, item];\n          } else if (current.overlaps(item) || current.abutsStart(item)) {\n            return [sofar, current.union(item)];\n          } else {\n            return [sofar.concat([current]), item];\n          }\n        },\n        [[], null]\n      );\n    if (final) {\n      found.push(final);\n    }\n    return found;\n  }\n\n  /**\n   * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n   * @param {Array} intervals\n   * @return {Array}\n   */\n  static xor(intervals) {\n    let start = null,\n      currentCount = 0;\n    const results = [],\n      ends = intervals.map((i) => [\n        { time: i.s, type: \"s\" },\n        { time: i.e, type: \"e\" },\n      ]),\n      flattened = Array.prototype.concat(...ends),\n      arr = flattened.sort((a, b) => a.time - b.time);\n\n    for (const i of arr) {\n      currentCount += i.type === \"s\" ? 1 : -1;\n\n      if (currentCount === 1) {\n        start = i.time;\n      } else {\n        if (start && +start !== +i.time) {\n          results.push(Interval.fromDateTimes(start, i.time));\n        }\n\n        start = null;\n      }\n    }\n\n    return Interval.merge(results);\n  }\n\n  /**\n   * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n   * @param {...Interval} intervals\n   * @return {Array}\n   */\n  difference(...intervals) {\n    return Interval.xor([this].concat(intervals))\n      .map((i) => this.intersection(i))\n      .filter((i) => i && !i.isEmpty());\n  }\n\n  /**\n   * Returns a string representation of this Interval appropriate for debugging.\n   * @return {string}\n   */\n  toString() {\n    if (!this.isValid) return INVALID$1;\n    return `[${this.s.toISO()} – ${this.e.toISO()})`;\n  }\n\n  /**\n   * Returns a string representation of this Interval appropriate for the REPL.\n   * @return {string}\n   */\n  [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n    if (this.isValid) {\n      return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n    } else {\n      return `Interval { Invalid, reason: ${this.invalidReason} }`;\n    }\n  }\n\n  /**\n   * Returns a localized string representing this Interval. Accepts the same options as the\n   * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n   * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n   * is browser-specific, but in general it will return an appropriate representation of the\n   * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n   * specified.\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n   * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n   * Intl.DateTimeFormat constructor options.\n   * @param {Object} opts - Options to override the configuration of the start DateTime.\n   * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n   * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n   * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n   * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n   * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n   * @return {string}\n   */\n  toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n    return this.isValid\n      ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n      : INVALID$1;\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this Interval.\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n   * @param {Object} opts - The same options as {@link DateTime#toISO}\n   * @return {string}\n   */\n  toISO(opts) {\n    if (!this.isValid) return INVALID$1;\n    return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of date of this Interval.\n   * The time components are ignored.\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n   * @return {string}\n   */\n  toISODate() {\n    if (!this.isValid) return INVALID$1;\n    return `${this.s.toISODate()}/${this.e.toISODate()}`;\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of time of this Interval.\n   * The date components are ignored.\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n   * @param {Object} opts - The same options as {@link DateTime#toISO}\n   * @return {string}\n   */\n  toISOTime(opts) {\n    if (!this.isValid) return INVALID$1;\n    return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n  }\n\n  /**\n   * Returns a string representation of this Interval formatted according to the specified format\n   * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n   * formatting tool.\n   * @param {string} dateFormat - The format string. This string formats the start and end time.\n   * See {@link DateTime#toFormat} for details.\n   * @param {Object} opts - Options.\n   * @param {string} [opts.separator =  ' – '] - A separator to place between the start and end\n   * representations.\n   * @return {string}\n   */\n  toFormat(dateFormat, { separator = \" – \" } = {}) {\n    if (!this.isValid) return INVALID$1;\n    return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n  }\n\n  /**\n   * Return a Duration representing the time spanned by this interval.\n   * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n   * @param {Object} opts - options that affect the creation of the Duration\n   * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n   * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n   * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n   * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n   * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n   * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n   * @return {Duration}\n   */\n  toDuration(unit, opts) {\n    if (!this.isValid) {\n      return Duration.invalid(this.invalidReason);\n    }\n    return this.e.diff(this.s, unit, opts);\n  }\n\n  /**\n   * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n   * @param {function} mapFn\n   * @return {Interval}\n   * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n   * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n   */\n  mapEndpoints(mapFn) {\n    return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n  }\n}\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nclass Info {\n  /**\n   * Return whether the specified zone contains a DST.\n   * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n   * @return {boolean}\n   */\n  static hasDST(zone = Settings.defaultZone) {\n    const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n    return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n  }\n\n  /**\n   * Return whether the specified zone is a valid IANA specifier.\n   * @param {string} zone - Zone to check\n   * @return {boolean}\n   */\n  static isValidIANAZone(zone) {\n    return IANAZone.isValidZone(zone);\n  }\n\n  /**\n   * Converts the input into a {@link Zone} instance.\n   *\n   * * If `input` is already a Zone instance, it is returned unchanged.\n   * * If `input` is a string containing a valid time zone name, a Zone instance\n   *   with that name is returned.\n   * * If `input` is a string that doesn't refer to a known time zone, a Zone\n   *   instance with {@link Zone#isValid} == false is returned.\n   * * If `input is a number, a Zone instance with the specified fixed offset\n   *   in minutes is returned.\n   * * If `input` is `null` or `undefined`, the default zone is returned.\n   * @param {string|Zone|number} [input] - the value to be converted\n   * @return {Zone}\n   */\n  static normalizeZone(input) {\n    return normalizeZone(input, Settings.defaultZone);\n  }\n\n  /**\n   * Get the weekday on which the week starts according to the given locale.\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n   */\n  static getStartOfWeek({ locale = null, locObj = null } = {}) {\n    return (locObj || Locale.create(locale)).getStartOfWeek();\n  }\n\n  /**\n   * Get the minimum number of days necessary in a week before it is considered part of the next year according\n   * to the given locale.\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @returns {number}\n   */\n  static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n    return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n  }\n\n  /**\n   * Get the weekdays, which are considered the weekend according to the given locale\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n   */\n  static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n    // copy the array, because we cache it internally\n    return (locObj || Locale.create(locale)).getWeekendDays().slice();\n  }\n\n  /**\n   * Return an array of standalone month names.\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n   * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.numberingSystem=null] - the numbering system\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @param {string} [opts.outputCalendar='gregory'] - the calendar\n   * @example Info.months()[0] //=> 'January'\n   * @example Info.months('short')[0] //=> 'Jan'\n   * @example Info.months('numeric')[0] //=> '1'\n   * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n   * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n   * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n   * @return {Array}\n   */\n  static months(\n    length = \"long\",\n    { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n  ) {\n    return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n  }\n\n  /**\n   * Return an array of format month names.\n   * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n   * changes the string.\n   * See {@link Info#months}\n   * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.numberingSystem=null] - the numbering system\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @param {string} [opts.outputCalendar='gregory'] - the calendar\n   * @return {Array}\n   */\n  static monthsFormat(\n    length = \"long\",\n    { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n  ) {\n    return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n  }\n\n  /**\n   * Return an array of standalone week names.\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n   * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @param {string} [opts.numberingSystem=null] - the numbering system\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @example Info.weekdays()[0] //=> 'Monday'\n   * @example Info.weekdays('short')[0] //=> 'Mon'\n   * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n   * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n   * @return {Array}\n   */\n  static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n    return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n  }\n\n  /**\n   * Return an array of format week names.\n   * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n   * changes the string.\n   * See {@link Info#weekdays}\n   * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n   * @param {Object} opts - options\n   * @param {string} [opts.locale=null] - the locale code\n   * @param {string} [opts.numberingSystem=null] - the numbering system\n   * @param {string} [opts.locObj=null] - an existing locale object to use\n   * @return {Array}\n   */\n  static weekdaysFormat(\n    length = \"long\",\n    { locale = null, numberingSystem = null, locObj = null } = {}\n  ) {\n    return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n  }\n\n  /**\n   * Return an array of meridiems.\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n   * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n   * @return {Array}\n   */\n  static meridiems({ locale = null } = {}) {\n    return Locale.create(locale).meridiems();\n  }\n\n  /**\n   * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n   * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n   * @param {Object} opts - options\n   * @param {string} [opts.locale] - the locale code\n   * @example Info.eras() //=> [ 'BC', 'AD' ]\n   * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n   * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n   * @return {Array}\n   */\n  static eras(length = \"short\", { locale = null } = {}) {\n    return Locale.create(locale, null, \"gregory\").eras(length);\n  }\n\n  /**\n   * Return the set of available features in this environment.\n   * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n   * Keys:\n   * * `relative`: whether this environment supports relative time formatting\n   * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n   * @example Info.features() //=> { relative: false, localeWeek: true }\n   * @return {Object}\n   */\n  static features() {\n    return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n  }\n}\n\nfunction dayDiff(earlier, later) {\n  const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n    ms = utcDayStart(later) - utcDayStart(earlier);\n  return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n  const differs = [\n    [\"years\", (a, b) => b.year - a.year],\n    [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n    [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n    [\n      \"weeks\",\n      (a, b) => {\n        const days = dayDiff(a, b);\n        return (days - (days % 7)) / 7;\n      },\n    ],\n    [\"days\", dayDiff],\n  ];\n\n  const results = {};\n  const earlier = cursor;\n  let lowestOrder, highWater;\n\n  /* This loop tries to diff using larger units first.\n     If we overshoot, we backtrack and try the next smaller unit.\n     \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n     as we use smaller and smaller units.\n     highWater keeps track of where we would be if we added one more of the smallest unit,\n     this is used later to potentially convert any difference smaller than the smallest higher order unit\n     into a fraction of that smallest higher order unit\n  */\n  for (const [unit, differ] of differs) {\n    if (units.indexOf(unit) >= 0) {\n      lowestOrder = unit;\n\n      results[unit] = differ(cursor, later);\n      highWater = earlier.plus(results);\n\n      if (highWater > later) {\n        // we overshot the end point, backtrack cursor by 1\n        results[unit]--;\n        cursor = earlier.plus(results);\n\n        // if we are still overshooting now, we need to backtrack again\n        // this happens in certain situations when diffing times in different zones,\n        // because this calculation ignores time zones\n        if (cursor > later) {\n          // keep the \"overshot by 1\" around as highWater\n          highWater = cursor;\n          // backtrack cursor by 1\n          results[unit]--;\n          cursor = earlier.plus(results);\n        }\n      } else {\n        cursor = highWater;\n      }\n    }\n  }\n\n  return [cursor, results, highWater, lowestOrder];\n}\n\nfunction diff (earlier, later, units, opts) {\n  let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n  const remainingMillis = later - cursor;\n\n  const lowerOrderUnits = units.filter(\n    (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n  );\n\n  if (lowerOrderUnits.length === 0) {\n    if (highWater < later) {\n      highWater = cursor.plus({ [lowestOrder]: 1 });\n    }\n\n    if (highWater !== cursor) {\n      results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n    }\n  }\n\n  const duration = Duration.fromObject(results, opts);\n\n  if (lowerOrderUnits.length > 0) {\n    return Duration.fromMillis(remainingMillis, opts)\n      .shiftTo(...lowerOrderUnits)\n      .plus(duration);\n  } else {\n    return duration;\n  }\n}\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n  return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n  // make dots optional and also make them literal\n  // make space and non breakable space characters interchangeable\n  return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n  return s\n    .replace(/\\./g, \"\") // ignore dots that were made optional\n    .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n    .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n  if (strings === null) {\n    return null;\n  } else {\n    return {\n      regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n      deser: ([s]) =>\n        strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n    };\n  }\n}\n\nfunction offset(regex, groups) {\n  return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n  return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n  return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n  const one = digitRegex(loc),\n    two = digitRegex(loc, \"{2}\"),\n    three = digitRegex(loc, \"{3}\"),\n    four = digitRegex(loc, \"{4}\"),\n    six = digitRegex(loc, \"{6}\"),\n    oneOrTwo = digitRegex(loc, \"{1,2}\"),\n    oneToThree = digitRegex(loc, \"{1,3}\"),\n    oneToSix = digitRegex(loc, \"{1,6}\"),\n    oneToNine = digitRegex(loc, \"{1,9}\"),\n    twoToFour = digitRegex(loc, \"{2,4}\"),\n    fourToSix = digitRegex(loc, \"{4,6}\"),\n    literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n    unitate = (t) => {\n      if (token.literal) {\n        return literal(t);\n      }\n      switch (t.val) {\n        // era\n        case \"G\":\n          return oneOf(loc.eras(\"short\"), 0);\n        case \"GG\":\n          return oneOf(loc.eras(\"long\"), 0);\n        // years\n        case \"y\":\n          return intUnit(oneToSix);\n        case \"yy\":\n          return intUnit(twoToFour, untruncateYear);\n        case \"yyyy\":\n          return intUnit(four);\n        case \"yyyyy\":\n          return intUnit(fourToSix);\n        case \"yyyyyy\":\n          return intUnit(six);\n        // months\n        case \"M\":\n          return intUnit(oneOrTwo);\n        case \"MM\":\n          return intUnit(two);\n        case \"MMM\":\n          return oneOf(loc.months(\"short\", true), 1);\n        case \"MMMM\":\n          return oneOf(loc.months(\"long\", true), 1);\n        case \"L\":\n          return intUnit(oneOrTwo);\n        case \"LL\":\n          return intUnit(two);\n        case \"LLL\":\n          return oneOf(loc.months(\"short\", false), 1);\n        case \"LLLL\":\n          return oneOf(loc.months(\"long\", false), 1);\n        // dates\n        case \"d\":\n          return intUnit(oneOrTwo);\n        case \"dd\":\n          return intUnit(two);\n        // ordinals\n        case \"o\":\n          return intUnit(oneToThree);\n        case \"ooo\":\n          return intUnit(three);\n        // time\n        case \"HH\":\n          return intUnit(two);\n        case \"H\":\n          return intUnit(oneOrTwo);\n        case \"hh\":\n          return intUnit(two);\n        case \"h\":\n          return intUnit(oneOrTwo);\n        case \"mm\":\n          return intUnit(two);\n        case \"m\":\n          return intUnit(oneOrTwo);\n        case \"q\":\n          return intUnit(oneOrTwo);\n        case \"qq\":\n          return intUnit(two);\n        case \"s\":\n          return intUnit(oneOrTwo);\n        case \"ss\":\n          return intUnit(two);\n        case \"S\":\n          return intUnit(oneToThree);\n        case \"SSS\":\n          return intUnit(three);\n        case \"u\":\n          return simple(oneToNine);\n        case \"uu\":\n          return simple(oneOrTwo);\n        case \"uuu\":\n          return intUnit(one);\n        // meridiem\n        case \"a\":\n          return oneOf(loc.meridiems(), 0);\n        // weekYear (k)\n        case \"kkkk\":\n          return intUnit(four);\n        case \"kk\":\n          return intUnit(twoToFour, untruncateYear);\n        // weekNumber (W)\n        case \"W\":\n          return intUnit(oneOrTwo);\n        case \"WW\":\n          return intUnit(two);\n        // weekdays\n        case \"E\":\n        case \"c\":\n          return intUnit(one);\n        case \"EEE\":\n          return oneOf(loc.weekdays(\"short\", false), 1);\n        case \"EEEE\":\n          return oneOf(loc.weekdays(\"long\", false), 1);\n        case \"ccc\":\n          return oneOf(loc.weekdays(\"short\", true), 1);\n        case \"cccc\":\n          return oneOf(loc.weekdays(\"long\", true), 1);\n        // offset/zone\n        case \"Z\":\n        case \"ZZ\":\n          return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n        case \"ZZZ\":\n          return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n        // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n        // because we don't have any way to figure out what they are\n        case \"z\":\n          return simple(/[a-z_+-/]{1,256}?/i);\n        // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n        // in this case we accept any non-newline white-space\n        case \" \":\n          return simple(/[^\\S\\n\\r]/);\n        default:\n          return literal(t);\n      }\n    };\n\n  const unit = unitate(token) || {\n    invalidReason: MISSING_FTP,\n  };\n\n  unit.token = token;\n\n  return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n  year: {\n    \"2-digit\": \"yy\",\n    numeric: \"yyyyy\",\n  },\n  month: {\n    numeric: \"M\",\n    \"2-digit\": \"MM\",\n    short: \"MMM\",\n    long: \"MMMM\",\n  },\n  day: {\n    numeric: \"d\",\n    \"2-digit\": \"dd\",\n  },\n  weekday: {\n    short: \"EEE\",\n    long: \"EEEE\",\n  },\n  dayperiod: \"a\",\n  dayPeriod: \"a\",\n  hour12: {\n    numeric: \"h\",\n    \"2-digit\": \"hh\",\n  },\n  hour24: {\n    numeric: \"H\",\n    \"2-digit\": \"HH\",\n  },\n  minute: {\n    numeric: \"m\",\n    \"2-digit\": \"mm\",\n  },\n  second: {\n    numeric: \"s\",\n    \"2-digit\": \"ss\",\n  },\n  timeZoneName: {\n    long: \"ZZZZZ\",\n    short: \"ZZZ\",\n  },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n  const { type, value } = part;\n\n  if (type === \"literal\") {\n    const isSpace = /^\\s+$/.test(value);\n    return {\n      literal: !isSpace,\n      val: isSpace ? \" \" : value,\n    };\n  }\n\n  const style = formatOpts[type];\n\n  // The user might have explicitly specified hour12 or hourCycle\n  // if so, respect their decision\n  // if not, refer back to the resolvedOpts, which are based on the locale\n  let actualType = type;\n  if (type === \"hour\") {\n    if (formatOpts.hour12 != null) {\n      actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n    } else if (formatOpts.hourCycle != null) {\n      if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n        actualType = \"hour12\";\n      } else {\n        actualType = \"hour24\";\n      }\n    } else {\n      // tokens only differentiate between 24 hours or not,\n      // so we do not need to check hourCycle here, which is less supported anyways\n      actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n    }\n  }\n  let val = partTypeStyleToTokenVal[actualType];\n  if (typeof val === \"object\") {\n    val = val[style];\n  }\n\n  if (val) {\n    return {\n      literal: false,\n      val,\n    };\n  }\n\n  return undefined;\n}\n\nfunction buildRegex(units) {\n  const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n  return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n  const matches = input.match(regex);\n\n  if (matches) {\n    const all = {};\n    let matchIndex = 1;\n    for (const i in handlers) {\n      if (hasOwnProperty(handlers, i)) {\n        const h = handlers[i],\n          groups = h.groups ? h.groups + 1 : 1;\n        if (!h.literal && h.token) {\n          all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n        }\n        matchIndex += groups;\n      }\n    }\n    return [matches, all];\n  } else {\n    return [matches, {}];\n  }\n}\n\nfunction dateTimeFromMatches(matches) {\n  const toField = (token) => {\n    switch (token) {\n      case \"S\":\n        return \"millisecond\";\n      case \"s\":\n        return \"second\";\n      case \"m\":\n        return \"minute\";\n      case \"h\":\n      case \"H\":\n        return \"hour\";\n      case \"d\":\n        return \"day\";\n      case \"o\":\n        return \"ordinal\";\n      case \"L\":\n      case \"M\":\n        return \"month\";\n      case \"y\":\n        return \"year\";\n      case \"E\":\n      case \"c\":\n        return \"weekday\";\n      case \"W\":\n        return \"weekNumber\";\n      case \"k\":\n        return \"weekYear\";\n      case \"q\":\n        return \"quarter\";\n      default:\n        return null;\n    }\n  };\n\n  let zone = null;\n  let specificOffset;\n  if (!isUndefined(matches.z)) {\n    zone = IANAZone.create(matches.z);\n  }\n\n  if (!isUndefined(matches.Z)) {\n    if (!zone) {\n      zone = new FixedOffsetZone(matches.Z);\n    }\n    specificOffset = matches.Z;\n  }\n\n  if (!isUndefined(matches.q)) {\n    matches.M = (matches.q - 1) * 3 + 1;\n  }\n\n  if (!isUndefined(matches.h)) {\n    if (matches.h < 12 && matches.a === 1) {\n      matches.h += 12;\n    } else if (matches.h === 12 && matches.a === 0) {\n      matches.h = 0;\n    }\n  }\n\n  if (matches.G === 0 && matches.y) {\n    matches.y = -matches.y;\n  }\n\n  if (!isUndefined(matches.u)) {\n    matches.S = parseMillis(matches.u);\n  }\n\n  const vals = Object.keys(matches).reduce((r, k) => {\n    const f = toField(k);\n    if (f) {\n      r[f] = matches[k];\n    }\n\n    return r;\n  }, {});\n\n  return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n  if (!dummyDateTimeCache) {\n    dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n  }\n\n  return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n  if (token.literal) {\n    return token;\n  }\n\n  const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n  const tokens = formatOptsToTokens(formatOpts, locale);\n\n  if (tokens == null || tokens.includes(undefined)) {\n    return token;\n  }\n\n  return tokens;\n}\n\nfunction expandMacroTokens(tokens, locale) {\n  return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nclass TokenParser {\n  constructor(locale, format) {\n    this.locale = locale;\n    this.format = format;\n    this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n    this.units = this.tokens.map((t) => unitForToken(t, locale));\n    this.disqualifyingUnit = this.units.find((t) => t.invalidReason);\n\n    if (!this.disqualifyingUnit) {\n      const [regexString, handlers] = buildRegex(this.units);\n      this.regex = RegExp(regexString, \"i\");\n      this.handlers = handlers;\n    }\n  }\n\n  explainFromTokens(input) {\n    if (!this.isValid) {\n      return { input, tokens: this.tokens, invalidReason: this.invalidReason };\n    } else {\n      const [rawMatches, matches] = match(input, this.regex, this.handlers),\n        [result, zone, specificOffset] = matches\n          ? dateTimeFromMatches(matches)\n          : [null, null, undefined];\n      if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n        throw new ConflictingSpecificationError(\n          \"Can't include meridiem when specifying 24-hour format\"\n        );\n      }\n      return {\n        input,\n        tokens: this.tokens,\n        regex: this.regex,\n        rawMatches,\n        matches,\n        result,\n        zone,\n        specificOffset,\n      };\n    }\n  }\n\n  get isValid() {\n    return !this.disqualifyingUnit;\n  }\n\n  get invalidReason() {\n    return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n  }\n}\n\nfunction explainFromTokens(locale, input, format) {\n  const parser = new TokenParser(locale, format);\n  return parser.explainFromTokens(input);\n}\n\nfunction parseFromTokens(locale, input, format) {\n  const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n  return [result, zone, specificOffset, invalidReason];\n}\n\nfunction formatOptsToTokens(formatOpts, locale) {\n  if (!formatOpts) {\n    return null;\n  }\n\n  const formatter = Formatter.create(locale, formatOpts);\n  const df = formatter.dtFormatter(getDummyDateTime());\n  const parts = df.formatToParts();\n  const resolvedOpts = df.resolvedOptions();\n  return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n  return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n  if (dt.weekData === null) {\n    dt.weekData = gregorianToWeek(dt.c);\n  }\n  return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n  if (dt.localWeekData === null) {\n    dt.localWeekData = gregorianToWeek(\n      dt.c,\n      dt.loc.getMinDaysInFirstWeek(),\n      dt.loc.getStartOfWeek()\n    );\n  }\n  return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n  const current = {\n    ts: inst.ts,\n    zone: inst.zone,\n    c: inst.c,\n    o: inst.o,\n    loc: inst.loc,\n    invalid: inst.invalid,\n  };\n  return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n  // Our UTC time is just a guess because our offset is just a guess\n  let utcGuess = localTS - o * 60 * 1000;\n\n  // Test whether the zone matches the offset for this ts\n  const o2 = tz.offset(utcGuess);\n\n  // If so, offset didn't change and we're done\n  if (o === o2) {\n    return [utcGuess, o];\n  }\n\n  // If not, change the ts by the difference in the offset\n  utcGuess -= (o2 - o) * 60 * 1000;\n\n  // If that gives us the local time we want, we're done\n  const o3 = tz.offset(utcGuess);\n  if (o2 === o3) {\n    return [utcGuess, o2];\n  }\n\n  // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n  return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n  ts += offset * 60 * 1000;\n\n  const d = new Date(ts);\n\n  return {\n    year: d.getUTCFullYear(),\n    month: d.getUTCMonth() + 1,\n    day: d.getUTCDate(),\n    hour: d.getUTCHours(),\n    minute: d.getUTCMinutes(),\n    second: d.getUTCSeconds(),\n    millisecond: d.getUTCMilliseconds(),\n  };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n  return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n  const oPre = inst.o,\n    year = inst.c.year + Math.trunc(dur.years),\n    month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n    c = {\n      ...inst.c,\n      year,\n      month,\n      day:\n        Math.min(inst.c.day, daysInMonth(year, month)) +\n        Math.trunc(dur.days) +\n        Math.trunc(dur.weeks) * 7,\n    },\n    millisToAdd = Duration.fromObject({\n      years: dur.years - Math.trunc(dur.years),\n      quarters: dur.quarters - Math.trunc(dur.quarters),\n      months: dur.months - Math.trunc(dur.months),\n      weeks: dur.weeks - Math.trunc(dur.weeks),\n      days: dur.days - Math.trunc(dur.days),\n      hours: dur.hours,\n      minutes: dur.minutes,\n      seconds: dur.seconds,\n      milliseconds: dur.milliseconds,\n    }).as(\"milliseconds\"),\n    localTS = objToLocalTS(c);\n\n  let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n  if (millisToAdd !== 0) {\n    ts += millisToAdd;\n    // that could have changed the offset by going over a DST, but we want to keep the ts the same\n    o = inst.zone.offset(ts);\n  }\n\n  return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n  const { setZone, zone } = opts;\n  if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n    const interpretationZone = parsedZone || zone,\n      inst = DateTime.fromObject(parsed, {\n        ...opts,\n        zone: interpretationZone,\n        specificOffset,\n      });\n    return setZone ? inst : inst.setZone(zone);\n  } else {\n    return DateTime.invalid(\n      new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n    );\n  }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n  return dt.isValid\n    ? Formatter.create(Locale.create(\"en-US\"), {\n        allowZ,\n        forceSimple: true,\n      }).formatDateTimeFromString(dt, format)\n    : null;\n}\n\nfunction toISODate(o, extended, precision) {\n  const longFormat = o.c.year > 9999 || o.c.year < 0;\n  let c = \"\";\n  if (longFormat && o.c.year >= 0) c += \"+\";\n  c += padStart(o.c.year, longFormat ? 6 : 4);\n  if (precision === \"year\") return c;\n  if (extended) {\n    c += \"-\";\n    c += padStart(o.c.month);\n    if (precision === \"month\") return c;\n    c += \"-\";\n  } else {\n    c += padStart(o.c.month);\n    if (precision === \"month\") return c;\n  }\n  c += padStart(o.c.day);\n  return c;\n}\n\nfunction toISOTime(\n  o,\n  extended,\n  suppressSeconds,\n  suppressMilliseconds,\n  includeOffset,\n  extendedZone,\n  precision\n) {\n  let showSeconds = !suppressSeconds || o.c.millisecond !== 0 || o.c.second !== 0,\n    c = \"\";\n  switch (precision) {\n    case \"day\":\n    case \"month\":\n    case \"year\":\n      break;\n    default:\n      c += padStart(o.c.hour);\n      if (precision === \"hour\") break;\n      if (extended) {\n        c += \":\";\n        c += padStart(o.c.minute);\n        if (precision === \"minute\") break;\n        if (showSeconds) {\n          c += \":\";\n          c += padStart(o.c.second);\n        }\n      } else {\n        c += padStart(o.c.minute);\n        if (precision === \"minute\") break;\n        if (showSeconds) {\n          c += padStart(o.c.second);\n        }\n      }\n      if (precision === \"second\") break;\n      if (showSeconds && (!suppressMilliseconds || o.c.millisecond !== 0)) {\n        c += \".\";\n        c += padStart(o.c.millisecond, 3);\n      }\n  }\n\n  if (includeOffset) {\n    if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n      c += \"Z\";\n    } else if (o.o < 0) {\n      c += \"-\";\n      c += padStart(Math.trunc(-o.o / 60));\n      c += \":\";\n      c += padStart(Math.trunc(-o.o % 60));\n    } else {\n      c += \"+\";\n      c += padStart(Math.trunc(o.o / 60));\n      c += \":\";\n      c += padStart(Math.trunc(o.o % 60));\n    }\n  }\n\n  if (extendedZone) {\n    c += \"[\" + o.zone.ianaName + \"]\";\n  }\n  return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n    month: 1,\n    day: 1,\n    hour: 0,\n    minute: 0,\n    second: 0,\n    millisecond: 0,\n  },\n  defaultWeekUnitValues = {\n    weekNumber: 1,\n    weekday: 1,\n    hour: 0,\n    minute: 0,\n    second: 0,\n    millisecond: 0,\n  },\n  defaultOrdinalUnitValues = {\n    ordinal: 1,\n    hour: 0,\n    minute: 0,\n    second: 0,\n    millisecond: 0,\n  };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n  orderedWeekUnits = [\n    \"weekYear\",\n    \"weekNumber\",\n    \"weekday\",\n    \"hour\",\n    \"minute\",\n    \"second\",\n    \"millisecond\",\n  ],\n  orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n  const normalized = {\n    year: \"year\",\n    years: \"year\",\n    month: \"month\",\n    months: \"month\",\n    day: \"day\",\n    days: \"day\",\n    hour: \"hour\",\n    hours: \"hour\",\n    minute: \"minute\",\n    minutes: \"minute\",\n    quarter: \"quarter\",\n    quarters: \"quarter\",\n    second: \"second\",\n    seconds: \"second\",\n    millisecond: \"millisecond\",\n    milliseconds: \"millisecond\",\n    weekday: \"weekday\",\n    weekdays: \"weekday\",\n    weeknumber: \"weekNumber\",\n    weeksnumber: \"weekNumber\",\n    weeknumbers: \"weekNumber\",\n    weekyear: \"weekYear\",\n    weekyears: \"weekYear\",\n    ordinal: \"ordinal\",\n  }[unit.toLowerCase()];\n\n  if (!normalized) throw new InvalidUnitError(unit);\n\n  return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n  switch (unit.toLowerCase()) {\n    case \"localweekday\":\n    case \"localweekdays\":\n      return \"localWeekday\";\n    case \"localweeknumber\":\n    case \"localweeknumbers\":\n      return \"localWeekNumber\";\n    case \"localweekyear\":\n    case \"localweekyears\":\n      return \"localWeekYear\";\n    default:\n      return normalizeUnit(unit);\n  }\n}\n\n// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\n/**\n * @param {Zone} zone\n * @return {number}\n */\nfunction guessOffsetForZone(zone) {\n  if (zoneOffsetTs === undefined) {\n    zoneOffsetTs = Settings.now();\n  }\n\n  // Do not cache anything but IANA zones, because it is not safe to do so.\n  // Guessing an offset which is not present in the zone can cause wrong results from fixOffset\n  if (zone.type !== \"iana\") {\n    return zone.offset(zoneOffsetTs);\n  }\n  const zoneName = zone.name;\n  let offsetGuess = zoneOffsetGuessCache.get(zoneName);\n  if (offsetGuess === undefined) {\n    offsetGuess = zone.offset(zoneOffsetTs);\n    zoneOffsetGuessCache.set(zoneName, offsetGuess);\n  }\n  return offsetGuess;\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n  const zone = normalizeZone(opts.zone, Settings.defaultZone);\n  if (!zone.isValid) {\n    return DateTime.invalid(unsupportedZone(zone));\n  }\n\n  const loc = Locale.fromObject(opts);\n\n  let ts, o;\n\n  // assume we have the higher-order units\n  if (!isUndefined(obj.year)) {\n    for (const u of orderedUnits) {\n      if (isUndefined(obj[u])) {\n        obj[u] = defaultUnitValues[u];\n      }\n    }\n\n    const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n    if (invalid) {\n      return DateTime.invalid(invalid);\n    }\n\n    const offsetProvis = guessOffsetForZone(zone);\n    [ts, o] = objToTS(obj, offsetProvis, zone);\n  } else {\n    ts = Settings.now();\n  }\n\n  return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n  const round = isUndefined(opts.round) ? true : opts.round,\n    rounding = isUndefined(opts.rounding) ? \"trunc\" : opts.rounding,\n    format = (c, unit) => {\n      c = roundTo(c, round || opts.calendary ? 0 : 2, opts.calendary ? \"round\" : rounding);\n      const formatter = end.loc.clone(opts).relFormatter(opts);\n      return formatter.format(c, unit);\n    },\n    differ = (unit) => {\n      if (opts.calendary) {\n        if (!end.hasSame(start, unit)) {\n          return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n        } else return 0;\n      } else {\n        return end.diff(start, unit).get(unit);\n      }\n    };\n\n  if (opts.unit) {\n    return format(differ(opts.unit), opts.unit);\n  }\n\n  for (const unit of opts.units) {\n    const count = differ(unit);\n    if (Math.abs(count) >= 1) {\n      return format(count, unit);\n    }\n  }\n  return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n  let opts = {},\n    args;\n  if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n    opts = argList[argList.length - 1];\n    args = Array.from(argList).slice(0, argList.length - 1);\n  } else {\n    args = Array.from(argList);\n  }\n  return [opts, args];\n}\n\n/**\n * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nconst zoneOffsetGuessCache = new Map();\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nclass DateTime {\n  /**\n   * @access private\n   */\n  constructor(config) {\n    const zone = config.zone || Settings.defaultZone;\n\n    let invalid =\n      config.invalid ||\n      (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n      (!zone.isValid ? unsupportedZone(zone) : null);\n    /**\n     * @access private\n     */\n    this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n    let c = null,\n      o = null;\n    if (!invalid) {\n      const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n      if (unchanged) {\n        [c, o] = [config.old.c, config.old.o];\n      } else {\n        // If an offset has been passed and we have not been called from\n        // clone(), we can trust it and avoid the offset calculation.\n        const ot = isNumber(config.o) && !config.old ? config.o : zone.offset(this.ts);\n        c = tsToObj(this.ts, ot);\n        invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n        c = invalid ? null : c;\n        o = invalid ? null : ot;\n      }\n    }\n\n    /**\n     * @access private\n     */\n    this._zone = zone;\n    /**\n     * @access private\n     */\n    this.loc = config.loc || Locale.create();\n    /**\n     * @access private\n     */\n    this.invalid = invalid;\n    /**\n     * @access private\n     */\n    this.weekData = null;\n    /**\n     * @access private\n     */\n    this.localWeekData = null;\n    /**\n     * @access private\n     */\n    this.c = c;\n    /**\n     * @access private\n     */\n    this.o = o;\n    /**\n     * @access private\n     */\n    this.isLuxonDateTime = true;\n  }\n\n  // CONSTRUCT\n\n  /**\n   * Create a DateTime for the current instant, in the system's time zone.\n   *\n   * Use Settings to override these default values if needed.\n   * @example DateTime.now().toISO() //~> now in the ISO format\n   * @return {DateTime}\n   */\n  static now() {\n    return new DateTime({});\n  }\n\n  /**\n   * Create a local DateTime\n   * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n   * @param {number} [month=1] - The month, 1-indexed\n   * @param {number} [day=1] - The day of the month, 1-indexed\n   * @param {number} [hour=0] - The hour of the day, in 24-hour time\n   * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n   * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n   * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n   * @example DateTime.local()                                  //~> now\n   * @example DateTime.local({ zone: \"America/New_York\" })      //~> now, in US east coast time\n   * @example DateTime.local(2017)                              //~> 2017-01-01T00:00:00\n   * @example DateTime.local(2017, 3)                           //~> 2017-03-01T00:00:00\n   * @example DateTime.local(2017, 3, 12, { locale: \"fr\" })     //~> 2017-03-12T00:00:00, with a French locale\n   * @example DateTime.local(2017, 3, 12, 5)                    //~> 2017-03-12T05:00:00\n   * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" })   //~> 2017-03-12T05:00:00, in UTC\n   * @example DateTime.local(2017, 3, 12, 5, 45)                //~> 2017-03-12T05:45:00\n   * @example DateTime.local(2017, 3, 12, 5, 45, 10)            //~> 2017-03-12T05:45:10\n   * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765)       //~> 2017-03-12T05:45:10.765\n   * @return {DateTime}\n   */\n  static local() {\n    const [opts, args] = lastOpts(arguments),\n      [year, month, day, hour, minute, second, millisecond] = args;\n    return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n  }\n\n  /**\n   * Create a DateTime in UTC\n   * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n   * @param {number} [month=1] - The month, 1-indexed\n   * @param {number} [day=1] - The day of the month\n   * @param {number} [hour=0] - The hour of the day, in 24-hour time\n   * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n   * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n   * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n   * @param {Object} options - configuration options for the DateTime\n   * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n   * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n   * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n   * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance\n   * @example DateTime.utc()                                              //~> now\n   * @example DateTime.utc(2017)                                          //~> 2017-01-01T00:00:00Z\n   * @example DateTime.utc(2017, 3)                                       //~> 2017-03-01T00:00:00Z\n   * @example DateTime.utc(2017, 3, 12)                                   //~> 2017-03-12T00:00:00Z\n   * @example DateTime.utc(2017, 3, 12, 5)                                //~> 2017-03-12T05:00:00Z\n   * @example DateTime.utc(2017, 3, 12, 5, 45)                            //~> 2017-03-12T05:45:00Z\n   * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" })          //~> 2017-03-12T05:45:00Z with a French locale\n   * @example DateTime.utc(2017, 3, 12, 5, 45, 10)                        //~> 2017-03-12T05:45:10Z\n   * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n   * @return {DateTime}\n   */\n  static utc() {\n    const [opts, args] = lastOpts(arguments),\n      [year, month, day, hour, minute, second, millisecond] = args;\n\n    opts.zone = FixedOffsetZone.utcInstance;\n    return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n  }\n\n  /**\n   * Create a DateTime from a JavaScript Date object. Uses the default zone.\n   * @param {Date} date - a JavaScript Date object\n   * @param {Object} options - configuration options for the DateTime\n   * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n   * @return {DateTime}\n   */\n  static fromJSDate(date, options = {}) {\n    const ts = isDate(date) ? date.valueOf() : NaN;\n    if (Number.isNaN(ts)) {\n      return DateTime.invalid(\"invalid input\");\n    }\n\n    const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n    if (!zoneToUse.isValid) {\n      return DateTime.invalid(unsupportedZone(zoneToUse));\n    }\n\n    return new DateTime({\n      ts: ts,\n      zone: zoneToUse,\n      loc: Locale.fromObject(options),\n    });\n  }\n\n  /**\n   * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n   * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n   * @param {Object} options - configuration options for the DateTime\n   * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n   * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n   * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n   * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n   * @return {DateTime}\n   */\n  static fromMillis(milliseconds, options = {}) {\n    if (!isNumber(milliseconds)) {\n      throw new InvalidArgumentError(\n        `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n      );\n    } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n      // this isn't perfect because we can still end up out of range because of additional shifting, but it's a start\n      return DateTime.invalid(\"Timestamp out of range\");\n    } else {\n      return new DateTime({\n        ts: milliseconds,\n        zone: normalizeZone(options.zone, Settings.defaultZone),\n        loc: Locale.fromObject(options),\n      });\n    }\n  }\n\n  /**\n   * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n   * @param {number} seconds - a number of seconds since 1970 UTC\n   * @param {Object} options - configuration options for the DateTime\n   * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n   * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n   * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n   * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n   * @return {DateTime}\n   */\n  static fromSeconds(seconds, options = {}) {\n    if (!isNumber(seconds)) {\n      throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n    } else {\n      return new DateTime({\n        ts: seconds * 1000,\n        zone: normalizeZone(options.zone, Settings.defaultZone),\n        loc: Locale.fromObject(options),\n      });\n    }\n  }\n\n  /**\n   * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n   * @param {Object} obj - the object to create the DateTime from\n   * @param {number} obj.year - a year, such as 1987\n   * @param {number} obj.month - a month, 1-12\n   * @param {number} obj.day - a day of the month, 1-31, depending on the month\n   * @param {number} obj.ordinal - day of the year, 1-365 or 366\n   * @param {number} obj.weekYear - an ISO week year\n   * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n   * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n   * @param {number} obj.localWeekYear - a week year, according to the locale\n   * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n   * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n   * @param {number} obj.hour - hour of the day, 0-23\n   * @param {number} obj.minute - minute of the hour, 0-59\n   * @param {number} obj.second - second of the minute, 0-59\n   * @param {number} obj.millisecond - millisecond of the second, 0-999\n   * @param {Object} opts - options for creating this DateTime\n   * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n   * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n   * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n   * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n   * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n   * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n   * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n   * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n   * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n   * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n   * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n   * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n   * @return {DateTime}\n   */\n  static fromObject(obj, opts = {}) {\n    obj = obj || {};\n    const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n    if (!zoneToUse.isValid) {\n      return DateTime.invalid(unsupportedZone(zoneToUse));\n    }\n\n    const loc = Locale.fromObject(opts);\n    const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n    const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n    const tsNow = Settings.now(),\n      offsetProvis = !isUndefined(opts.specificOffset)\n        ? opts.specificOffset\n        : zoneToUse.offset(tsNow),\n      containsOrdinal = !isUndefined(normalized.ordinal),\n      containsGregorYear = !isUndefined(normalized.year),\n      containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n      containsGregor = containsGregorYear || containsGregorMD,\n      definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n    // cases:\n    // just a weekday -> this week's instance of that weekday, no worries\n    // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n    // (gregorian month or day) + ordinal -> error\n    // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n    if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n      throw new ConflictingSpecificationError(\n        \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n      );\n    }\n\n    if (containsGregorMD && containsOrdinal) {\n      throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n    }\n\n    const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n    // configure ourselves to deal with gregorian dates or week stuff\n    let units,\n      defaultValues,\n      objNow = tsToObj(tsNow, offsetProvis);\n    if (useWeekData) {\n      units = orderedWeekUnits;\n      defaultValues = defaultWeekUnitValues;\n      objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n    } else if (containsOrdinal) {\n      units = orderedOrdinalUnits;\n      defaultValues = defaultOrdinalUnitValues;\n      objNow = gregorianToOrdinal(objNow);\n    } else {\n      units = orderedUnits;\n      defaultValues = defaultUnitValues;\n    }\n\n    // set default values for missing stuff\n    let foundFirst = false;\n    for (const u of units) {\n      const v = normalized[u];\n      if (!isUndefined(v)) {\n        foundFirst = true;\n      } else if (foundFirst) {\n        normalized[u] = defaultValues[u];\n      } else {\n        normalized[u] = objNow[u];\n      }\n    }\n\n    // make sure the values we have are in range\n    const higherOrderInvalid = useWeekData\n        ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n        : containsOrdinal\n        ? hasInvalidOrdinalData(normalized)\n        : hasInvalidGregorianData(normalized),\n      invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n    if (invalid) {\n      return DateTime.invalid(invalid);\n    }\n\n    // compute the actual time\n    const gregorian = useWeekData\n        ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n        : containsOrdinal\n        ? ordinalToGregorian(normalized)\n        : normalized,\n      [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n      inst = new DateTime({\n        ts: tsFinal,\n        zone: zoneToUse,\n        o: offsetFinal,\n        loc,\n      });\n\n    // gregorian data + weekday serves only to validate\n    if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n      return DateTime.invalid(\n        \"mismatched weekday\",\n        `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n      );\n    }\n\n    if (!inst.isValid) {\n      return DateTime.invalid(inst.invalid);\n    }\n\n    return inst;\n  }\n\n  /**\n   * Create a DateTime from an ISO 8601 string\n   * @param {string} text - the ISO string\n   * @param {Object} opts - options to affect the creation\n   * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n   * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n   * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n   * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n   * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n   * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance\n   * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n   * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n   * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n   * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n   * @example DateTime.fromISO('2016-W05-4')\n   * @return {DateTime}\n   */\n  static fromISO(text, opts = {}) {\n    const [vals, parsedZone] = parseISODate(text);\n    return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n  }\n\n  /**\n   * Create a DateTime from an RFC 2822 string\n   * @param {string} text - the RFC 2822 string\n   * @param {Object} opts - options to affect the creation\n   * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n   * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n   * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n   * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n   * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n   * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n   * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n   * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n   * @return {DateTime}\n   */\n  static fromRFC2822(text, opts = {}) {\n    const [vals, parsedZone] = parseRFC2822Date(text);\n    return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n  }\n\n  /**\n   * Create a DateTime from an HTTP header date\n   * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n   * @param {string} text - the HTTP header date\n   * @param {Object} opts - options to affect the creation\n   * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n   * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n   * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n   * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n   * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n   * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n   * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n   * @example DateTime.fromHTTP('Sun Nov  6 08:49:37 1994')\n   * @return {DateTime}\n   */\n  static fromHTTP(text, opts = {}) {\n    const [vals, parsedZone] = parseHTTPDate(text);\n    return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n  }\n\n  /**\n   * Create a DateTime from an input string and format string.\n   * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n   * @param {string} text - the string to parse\n   * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n   * @param {Object} opts - options to affect the creation\n   * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n   * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n   * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n   * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n   * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n   * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @return {DateTime}\n   */\n  static fromFormat(text, fmt, opts = {}) {\n    if (isUndefined(text) || isUndefined(fmt)) {\n      throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n    }\n\n    const { locale = null, numberingSystem = null } = opts,\n      localeToUse = Locale.fromOpts({\n        locale,\n        numberingSystem,\n        defaultToEN: true,\n      }),\n      [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n    if (invalid) {\n      return DateTime.invalid(invalid);\n    } else {\n      return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n    }\n  }\n\n  /**\n   * @deprecated use fromFormat instead\n   */\n  static fromString(text, fmt, opts = {}) {\n    return DateTime.fromFormat(text, fmt, opts);\n  }\n\n  /**\n   * Create a DateTime from a SQL date, time, or datetime\n   * Defaults to en-US if no locale has been specified, regardless of the system's locale\n   * @param {string} text - the string to parse\n   * @param {Object} opts - options to affect the creation\n   * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n   * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n   * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n   * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n   * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n   * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n   * @example DateTime.fromSQL('2017-05-15')\n   * @example DateTime.fromSQL('2017-05-15 09:12:34')\n   * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n   * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n   * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n   * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n   * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n   * @example DateTime.fromSQL('09:12:34.342')\n   * @return {DateTime}\n   */\n  static fromSQL(text, opts = {}) {\n    const [vals, parsedZone] = parseSQL(text);\n    return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n  }\n\n  /**\n   * Create an invalid DateTime.\n   * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n   * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n   * @return {DateTime}\n   */\n  static invalid(reason, explanation = null) {\n    if (!reason) {\n      throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n    }\n\n    const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n    if (Settings.throwOnInvalid) {\n      throw new InvalidDateTimeError(invalid);\n    } else {\n      return new DateTime({ invalid });\n    }\n  }\n\n  /**\n   * Check if an object is an instance of DateTime. Works across context boundaries\n   * @param {object} o\n   * @return {boolean}\n   */\n  static isDateTime(o) {\n    return (o && o.isLuxonDateTime) || false;\n  }\n\n  /**\n   * Produce the format string for a set of options\n   * @param formatOpts\n   * @param localeOpts\n   * @returns {string}\n   */\n  static parseFormatForOpts(formatOpts, localeOpts = {}) {\n    const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n    return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n  }\n\n  /**\n   * Produce the the fully expanded format token for the locale\n   * Does NOT quote characters, so quoted tokens will not round trip correctly\n   * @param fmt\n   * @param localeOpts\n   * @returns {string}\n   */\n  static expandFormat(fmt, localeOpts = {}) {\n    const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n    return expanded.map((t) => t.val).join(\"\");\n  }\n\n  static resetCache() {\n    zoneOffsetTs = undefined;\n    zoneOffsetGuessCache.clear();\n  }\n\n  // INFO\n\n  /**\n   * Get the value of unit.\n   * @param {string} unit - a unit such as 'minute' or 'day'\n   * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n   * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n   * @return {number}\n   */\n  get(unit) {\n    return this[unit];\n  }\n\n  /**\n   * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n   * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n   * * The DateTime was created by an operation on another invalid date\n   * @type {boolean}\n   */\n  get isValid() {\n    return this.invalid === null;\n  }\n\n  /**\n   * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n   * @type {string}\n   */\n  get invalidReason() {\n    return this.invalid ? this.invalid.reason : null;\n  }\n\n  /**\n   * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n   * @type {string}\n   */\n  get invalidExplanation() {\n    return this.invalid ? this.invalid.explanation : null;\n  }\n\n  /**\n   * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n   *\n   * @type {string}\n   */\n  get locale() {\n    return this.isValid ? this.loc.locale : null;\n  }\n\n  /**\n   * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n   *\n   * @type {string}\n   */\n  get numberingSystem() {\n    return this.isValid ? this.loc.numberingSystem : null;\n  }\n\n  /**\n   * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n   *\n   * @type {string}\n   */\n  get outputCalendar() {\n    return this.isValid ? this.loc.outputCalendar : null;\n  }\n\n  /**\n   * Get the time zone associated with this DateTime.\n   * @type {Zone}\n   */\n  get zone() {\n    return this._zone;\n  }\n\n  /**\n   * Get the name of the time zone.\n   * @type {string}\n   */\n  get zoneName() {\n    return this.isValid ? this.zone.name : null;\n  }\n\n  /**\n   * Get the year\n   * @example DateTime.local(2017, 5, 25).year //=> 2017\n   * @type {number}\n   */\n  get year() {\n    return this.isValid ? this.c.year : NaN;\n  }\n\n  /**\n   * Get the quarter\n   * @example DateTime.local(2017, 5, 25).quarter //=> 2\n   * @type {number}\n   */\n  get quarter() {\n    return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n  }\n\n  /**\n   * Get the month (1-12).\n   * @example DateTime.local(2017, 5, 25).month //=> 5\n   * @type {number}\n   */\n  get month() {\n    return this.isValid ? this.c.month : NaN;\n  }\n\n  /**\n   * Get the day of the month (1-30ish).\n   * @example DateTime.local(2017, 5, 25).day //=> 25\n   * @type {number}\n   */\n  get day() {\n    return this.isValid ? this.c.day : NaN;\n  }\n\n  /**\n   * Get the hour of the day (0-23).\n   * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n   * @type {number}\n   */\n  get hour() {\n    return this.isValid ? this.c.hour : NaN;\n  }\n\n  /**\n   * Get the minute of the hour (0-59).\n   * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n   * @type {number}\n   */\n  get minute() {\n    return this.isValid ? this.c.minute : NaN;\n  }\n\n  /**\n   * Get the second of the minute (0-59).\n   * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n   * @type {number}\n   */\n  get second() {\n    return this.isValid ? this.c.second : NaN;\n  }\n\n  /**\n   * Get the millisecond of the second (0-999).\n   * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n   * @type {number}\n   */\n  get millisecond() {\n    return this.isValid ? this.c.millisecond : NaN;\n  }\n\n  /**\n   * Get the week year\n   * @see https://en.wikipedia.org/wiki/ISO_week_date\n   * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n   * @type {number}\n   */\n  get weekYear() {\n    return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n  }\n\n  /**\n   * Get the week number of the week year (1-52ish).\n   * @see https://en.wikipedia.org/wiki/ISO_week_date\n   * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n   * @type {number}\n   */\n  get weekNumber() {\n    return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n  }\n\n  /**\n   * Get the day of the week.\n   * 1 is Monday and 7 is Sunday\n   * @see https://en.wikipedia.org/wiki/ISO_week_date\n   * @example DateTime.local(2014, 11, 31).weekday //=> 4\n   * @type {number}\n   */\n  get weekday() {\n    return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n  }\n\n  /**\n   * Returns true if this date is on a weekend according to the locale, false otherwise\n   * @returns {boolean}\n   */\n  get isWeekend() {\n    return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n  }\n\n  /**\n   * Get the day of the week according to the locale.\n   * 1 is the first day of the week and 7 is the last day of the week.\n   * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n   * @returns {number}\n   */\n  get localWeekday() {\n    return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n  }\n\n  /**\n   * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n   * because the week can start on different days of the week (see localWeekday) and because a different number of days\n   * is required for a week to count as the first week of a year.\n   * @returns {number}\n   */\n  get localWeekNumber() {\n    return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n  }\n\n  /**\n   * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n   * differently, see localWeekNumber.\n   * @returns {number}\n   */\n  get localWeekYear() {\n    return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n  }\n\n  /**\n   * Get the ordinal (meaning the day of the year)\n   * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n   * @type {number|DateTime}\n   */\n  get ordinal() {\n    return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n  }\n\n  /**\n   * Get the human readable short month name, such as 'Oct'.\n   * Defaults to the system's locale if no locale has been specified\n   * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n   * @type {string}\n   */\n  get monthShort() {\n    return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n  }\n\n  /**\n   * Get the human readable long month name, such as 'October'.\n   * Defaults to the system's locale if no locale has been specified\n   * @example DateTime.local(2017, 10, 30).monthLong //=> October\n   * @type {string}\n   */\n  get monthLong() {\n    return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n  }\n\n  /**\n   * Get the human readable short weekday, such as 'Mon'.\n   * Defaults to the system's locale if no locale has been specified\n   * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n   * @type {string}\n   */\n  get weekdayShort() {\n    return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n  }\n\n  /**\n   * Get the human readable long weekday, such as 'Monday'.\n   * Defaults to the system's locale if no locale has been specified\n   * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n   * @type {string}\n   */\n  get weekdayLong() {\n    return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n  }\n\n  /**\n   * Get the UTC offset of this DateTime in minutes\n   * @example DateTime.now().offset //=> -240\n   * @example DateTime.utc().offset //=> 0\n   * @type {number}\n   */\n  get offset() {\n    return this.isValid ? +this.o : NaN;\n  }\n\n  /**\n   * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n   * Defaults to the system's locale if no locale has been specified\n   * @type {string}\n   */\n  get offsetNameShort() {\n    if (this.isValid) {\n      return this.zone.offsetName(this.ts, {\n        format: \"short\",\n        locale: this.locale,\n      });\n    } else {\n      return null;\n    }\n  }\n\n  /**\n   * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n   * Defaults to the system's locale if no locale has been specified\n   * @type {string}\n   */\n  get offsetNameLong() {\n    if (this.isValid) {\n      return this.zone.offsetName(this.ts, {\n        format: \"long\",\n        locale: this.locale,\n      });\n    } else {\n      return null;\n    }\n  }\n\n  /**\n   * Get whether this zone's offset ever changes, as in a DST.\n   * @type {boolean}\n   */\n  get isOffsetFixed() {\n    return this.isValid ? this.zone.isUniversal : null;\n  }\n\n  /**\n   * Get whether the DateTime is in a DST.\n   * @type {boolean}\n   */\n  get isInDST() {\n    if (this.isOffsetFixed) {\n      return false;\n    } else {\n      return (\n        this.offset > this.set({ month: 1, day: 1 }).offset ||\n        this.offset > this.set({ month: 5 }).offset\n      );\n    }\n  }\n\n  /**\n   * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n   * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n   * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n   * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n   * @returns {DateTime[]}\n   */\n  getPossibleOffsets() {\n    if (!this.isValid || this.isOffsetFixed) {\n      return [this];\n    }\n    const dayMs = 86400000;\n    const minuteMs = 60000;\n    const localTS = objToLocalTS(this.c);\n    const oEarlier = this.zone.offset(localTS - dayMs);\n    const oLater = this.zone.offset(localTS + dayMs);\n\n    const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n    const o2 = this.zone.offset(localTS - oLater * minuteMs);\n    if (o1 === o2) {\n      return [this];\n    }\n    const ts1 = localTS - o1 * minuteMs;\n    const ts2 = localTS - o2 * minuteMs;\n    const c1 = tsToObj(ts1, o1);\n    const c2 = tsToObj(ts2, o2);\n    if (\n      c1.hour === c2.hour &&\n      c1.minute === c2.minute &&\n      c1.second === c2.second &&\n      c1.millisecond === c2.millisecond\n    ) {\n      return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n    }\n    return [this];\n  }\n\n  /**\n   * Returns true if this DateTime is in a leap year, false otherwise\n   * @example DateTime.local(2016).isInLeapYear //=> true\n   * @example DateTime.local(2013).isInLeapYear //=> false\n   * @type {boolean}\n   */\n  get isInLeapYear() {\n    return isLeapYear(this.year);\n  }\n\n  /**\n   * Returns the number of days in this DateTime's month\n   * @example DateTime.local(2016, 2).daysInMonth //=> 29\n   * @example DateTime.local(2016, 3).daysInMonth //=> 31\n   * @type {number}\n   */\n  get daysInMonth() {\n    return daysInMonth(this.year, this.month);\n  }\n\n  /**\n   * Returns the number of days in this DateTime's year\n   * @example DateTime.local(2016).daysInYear //=> 366\n   * @example DateTime.local(2013).daysInYear //=> 365\n   * @type {number}\n   */\n  get daysInYear() {\n    return this.isValid ? daysInYear(this.year) : NaN;\n  }\n\n  /**\n   * Returns the number of weeks in this DateTime's year\n   * @see https://en.wikipedia.org/wiki/ISO_week_date\n   * @example DateTime.local(2004).weeksInWeekYear //=> 53\n   * @example DateTime.local(2013).weeksInWeekYear //=> 52\n   * @type {number}\n   */\n  get weeksInWeekYear() {\n    return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n  }\n\n  /**\n   * Returns the number of weeks in this DateTime's local week year\n   * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n   * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n   * @type {number}\n   */\n  get weeksInLocalWeekYear() {\n    return this.isValid\n      ? weeksInWeekYear(\n          this.localWeekYear,\n          this.loc.getMinDaysInFirstWeek(),\n          this.loc.getStartOfWeek()\n        )\n      : NaN;\n  }\n\n  /**\n   * Returns the resolved Intl options for this DateTime.\n   * This is useful in understanding the behavior of formatting methods\n   * @param {Object} opts - the same options as toLocaleString\n   * @return {Object}\n   */\n  resolvedLocaleOptions(opts = {}) {\n    const { locale, numberingSystem, calendar } = Formatter.create(\n      this.loc.clone(opts),\n      opts\n    ).resolvedOptions(this);\n    return { locale, numberingSystem, outputCalendar: calendar };\n  }\n\n  // TRANSFORM\n\n  /**\n   * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n   *\n   * Equivalent to {@link DateTime#setZone}('utc')\n   * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n   * @param {Object} [opts={}] - options to pass to `setZone()`\n   * @return {DateTime}\n   */\n  toUTC(offset = 0, opts = {}) {\n    return this.setZone(FixedOffsetZone.instance(offset), opts);\n  }\n\n  /**\n   * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n   *\n   * Equivalent to `setZone('local')`\n   * @return {DateTime}\n   */\n  toLocal() {\n    return this.setZone(Settings.defaultZone);\n  }\n\n  /**\n   * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n   *\n   * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n   * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n   * @param {Object} opts - options\n   * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n   * @return {DateTime}\n   */\n  setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n    zone = normalizeZone(zone, Settings.defaultZone);\n    if (zone.equals(this.zone)) {\n      return this;\n    } else if (!zone.isValid) {\n      return DateTime.invalid(unsupportedZone(zone));\n    } else {\n      let newTS = this.ts;\n      if (keepLocalTime || keepCalendarTime) {\n        const offsetGuess = zone.offset(this.ts);\n        const asObj = this.toObject();\n        [newTS] = objToTS(asObj, offsetGuess, zone);\n      }\n      return clone(this, { ts: newTS, zone });\n    }\n  }\n\n  /**\n   * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n   * @param {Object} properties - the properties to set\n   * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n   * @return {DateTime}\n   */\n  reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n    const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n    return clone(this, { loc });\n  }\n\n  /**\n   * \"Set\" the locale. Returns a newly-constructed DateTime.\n   * Just a convenient alias for reconfigure({ locale })\n   * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n   * @return {DateTime}\n   */\n  setLocale(locale) {\n    return this.reconfigure({ locale });\n  }\n\n  /**\n   * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n   * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n   *\n   * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n   * They cannot be mixed with ISO-week units like `weekday`.\n   * @param {Object} values - a mapping of units to numbers\n   * @example dt.set({ year: 2017 })\n   * @example dt.set({ hour: 8, minute: 30 })\n   * @example dt.set({ weekday: 5 })\n   * @example dt.set({ year: 2005, ordinal: 234 })\n   * @return {DateTime}\n   */\n  set(values) {\n    if (!this.isValid) return this;\n\n    const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n    const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n    const settingWeekStuff =\n        !isUndefined(normalized.weekYear) ||\n        !isUndefined(normalized.weekNumber) ||\n        !isUndefined(normalized.weekday),\n      containsOrdinal = !isUndefined(normalized.ordinal),\n      containsGregorYear = !isUndefined(normalized.year),\n      containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n      containsGregor = containsGregorYear || containsGregorMD,\n      definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n    if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n      throw new ConflictingSpecificationError(\n        \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n      );\n    }\n\n    if (containsGregorMD && containsOrdinal) {\n      throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n    }\n\n    let mixed;\n    if (settingWeekStuff) {\n      mixed = weekToGregorian(\n        { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n        minDaysInFirstWeek,\n        startOfWeek\n      );\n    } else if (!isUndefined(normalized.ordinal)) {\n      mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n    } else {\n      mixed = { ...this.toObject(), ...normalized };\n\n      // if we didn't set the day but we ended up on an overflow date,\n      // use the last day of the right month\n      if (isUndefined(normalized.day)) {\n        mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n      }\n    }\n\n    const [ts, o] = objToTS(mixed, this.o, this.zone);\n    return clone(this, { ts, o });\n  }\n\n  /**\n   * Add a period of time to this DateTime and return the resulting DateTime\n   *\n   * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n   * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n   * @example DateTime.now().plus(123) //~> in 123 milliseconds\n   * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n   * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n   * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n   * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n   * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n   * @return {DateTime}\n   */\n  plus(duration) {\n    if (!this.isValid) return this;\n    const dur = Duration.fromDurationLike(duration);\n    return clone(this, adjustTime(this, dur));\n  }\n\n  /**\n   * Subtract a period of time to this DateTime and return the resulting DateTime\n   * See {@link DateTime#plus}\n   * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n   @return {DateTime}\n   */\n  minus(duration) {\n    if (!this.isValid) return this;\n    const dur = Duration.fromDurationLike(duration).negate();\n    return clone(this, adjustTime(this, dur));\n  }\n\n  /**\n   * \"Set\" this DateTime to the beginning of a unit of time.\n   * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n   * @param {Object} opts - options\n   * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n   * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n   * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n   * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n   * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n   * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n   * @return {DateTime}\n   */\n  startOf(unit, { useLocaleWeeks = false } = {}) {\n    if (!this.isValid) return this;\n\n    const o = {},\n      normalizedUnit = Duration.normalizeUnit(unit);\n    switch (normalizedUnit) {\n      case \"years\":\n        o.month = 1;\n      // falls through\n      case \"quarters\":\n      case \"months\":\n        o.day = 1;\n      // falls through\n      case \"weeks\":\n      case \"days\":\n        o.hour = 0;\n      // falls through\n      case \"hours\":\n        o.minute = 0;\n      // falls through\n      case \"minutes\":\n        o.second = 0;\n      // falls through\n      case \"seconds\":\n        o.millisecond = 0;\n        break;\n      // no default, invalid units throw in normalizeUnit()\n    }\n\n    if (normalizedUnit === \"weeks\") {\n      if (useLocaleWeeks) {\n        const startOfWeek = this.loc.getStartOfWeek();\n        const { weekday } = this;\n        if (weekday < startOfWeek) {\n          o.weekNumber = this.weekNumber - 1;\n        }\n        o.weekday = startOfWeek;\n      } else {\n        o.weekday = 1;\n      }\n    }\n\n    if (normalizedUnit === \"quarters\") {\n      const q = Math.ceil(this.month / 3);\n      o.month = (q - 1) * 3 + 1;\n    }\n\n    return this.set(o);\n  }\n\n  /**\n   * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n   * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n   * @param {Object} opts - options\n   * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n   * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n   * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n   * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n   * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n   * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n   * @return {DateTime}\n   */\n  endOf(unit, opts) {\n    return this.isValid\n      ? this.plus({ [unit]: 1 })\n          .startOf(unit, opts)\n          .minus(1)\n      : this;\n  }\n\n  // OUTPUT\n\n  /**\n   * Returns a string representation of this DateTime formatted according to the specified format string.\n   * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n   * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n   * @param {string} fmt - the format string\n   * @param {Object} opts - opts to override the configuration options on this DateTime\n   * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n   * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n   * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n   * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n   * @return {string}\n   */\n  toFormat(fmt, opts = {}) {\n    return this.isValid\n      ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n      : INVALID;\n  }\n\n  /**\n   * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n   * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n   * of the DateTime in the assigned locale.\n   * Defaults to the system's locale if no locale has been specified\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n   * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n   * @param {Object} opts - opts to override the configuration options on this DateTime\n   * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n   * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n   * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n   * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n   * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n   * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n   * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n   * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n   * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n   * @return {string}\n   */\n  toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n    return this.isValid\n      ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n      : INVALID;\n  }\n\n  /**\n   * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n   * Defaults to the system's locale if no locale has been specified\n   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n   * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n   * @example DateTime.now().toLocaleParts(); //=> [\n   *                                   //=>   { type: 'day', value: '25' },\n   *                                   //=>   { type: 'literal', value: '/' },\n   *                                   //=>   { type: 'month', value: '05' },\n   *                                   //=>   { type: 'literal', value: '/' },\n   *                                   //=>   { type: 'year', value: '1982' }\n   *                                   //=> ]\n   */\n  toLocaleParts(opts = {}) {\n    return this.isValid\n      ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n      : [];\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this DateTime\n   * @param {Object} opts - options\n   * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n   * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n   * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n   * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n   * @param {string} [opts.format='extended'] - choose between the basic and extended format\n   * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'years', 'months', 'days', 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n   * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n   * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n   * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n   * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n   * @example DateTime.now().toISO({ precision: 'day' }) //=> '2017-04-22Z'\n   * @example DateTime.now().toISO({ precision: 'minute' }) //=> '2017-04-22T20:47Z'\n   * @return {string|null}\n   */\n  toISO({\n    format = \"extended\",\n    suppressSeconds = false,\n    suppressMilliseconds = false,\n    includeOffset = true,\n    extendedZone = false,\n    precision = \"milliseconds\",\n  } = {}) {\n    if (!this.isValid) {\n      return null;\n    }\n\n    precision = normalizeUnit(precision);\n    const ext = format === \"extended\";\n\n    let c = toISODate(this, ext, precision);\n    if (orderedUnits.indexOf(precision) >= 3) c += \"T\";\n    c += toISOTime(\n      this,\n      ext,\n      suppressSeconds,\n      suppressMilliseconds,\n      includeOffset,\n      extendedZone,\n      precision\n    );\n    return c;\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this DateTime's date component\n   * @param {Object} opts - options\n   * @param {string} [opts.format='extended'] - choose between the basic and extended format\n   * @param {string} [opts.precision='day'] - truncate output to desired precision: 'years', 'months', or 'days'.\n   * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n   * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n   * @example DateTime.utc(1982, 5, 25).toISODate({ precision: 'month' }) //=> '1982-05'\n   * @return {string|null}\n   */\n  toISODate({ format = \"extended\", precision = \"day\" } = {}) {\n    if (!this.isValid) {\n      return null;\n    }\n    return toISODate(this, format === \"extended\", normalizeUnit(precision));\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this DateTime's week date\n   * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n   * @return {string}\n   */\n  toISOWeekDate() {\n    return toTechFormat(this, \"kkkk-'W'WW-c\");\n  }\n\n  /**\n   * Returns an ISO 8601-compliant string representation of this DateTime's time component\n   * @param {Object} opts - options\n   * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n   * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n   * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n   * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n   * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n   * @param {string} [opts.format='extended'] - choose between the basic and extended format\n   * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n   * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n   * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n   * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n   * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n   * @example DateTime.utc().set({ hour: 7, minute: 34, second: 56 }).toISOTime({ precision: 'minute' }) //=> '07:34Z'\n   * @return {string}\n   */\n  toISOTime({\n    suppressMilliseconds = false,\n    suppressSeconds = false,\n    includeOffset = true,\n    includePrefix = false,\n    extendedZone = false,\n    format = \"extended\",\n    precision = \"milliseconds\",\n  } = {}) {\n    if (!this.isValid) {\n      return null;\n    }\n\n    precision = normalizeUnit(precision);\n    let c = includePrefix && orderedUnits.indexOf(precision) >= 3 ? \"T\" : \"\";\n    return (\n      c +\n      toISOTime(\n        this,\n        format === \"extended\",\n        suppressSeconds,\n        suppressMilliseconds,\n        includeOffset,\n        extendedZone,\n        precision\n      )\n    );\n  }\n\n  /**\n   * Returns an RFC 2822-compatible string representation of this DateTime\n   * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n   * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n   * @return {string}\n   */\n  toRFC2822() {\n    return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n   * Specifically, the string conforms to RFC 1123.\n   * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n   * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n   * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n   * @return {string}\n   */\n  toHTTP() {\n    return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for use in SQL Date\n   * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n   * @return {string|null}\n   */\n  toSQLDate() {\n    if (!this.isValid) {\n      return null;\n    }\n    return toISODate(this, true);\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for use in SQL Time\n   * @param {Object} opts - options\n   * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n   * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n   * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n   * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n   * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n   * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n   * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n   * @return {string}\n   */\n  toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n    let fmt = \"HH:mm:ss.SSS\";\n\n    if (includeZone || includeOffset) {\n      if (includeOffsetSpace) {\n        fmt += \" \";\n      }\n      if (includeZone) {\n        fmt += \"z\";\n      } else if (includeOffset) {\n        fmt += \"ZZ\";\n      }\n    }\n\n    return toTechFormat(this, fmt, true);\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n   * @param {Object} opts - options\n   * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n   * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n   * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n   * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n   * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n   * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n   * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n   * @return {string}\n   */\n  toSQL(opts = {}) {\n    if (!this.isValid) {\n      return null;\n    }\n\n    return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for debugging\n   * @return {string}\n   */\n  toString() {\n    return this.isValid ? this.toISO() : INVALID;\n  }\n\n  /**\n   * Returns a string representation of this DateTime appropriate for the REPL.\n   * @return {string}\n   */\n  [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n    if (this.isValid) {\n      return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n    } else {\n      return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n    }\n  }\n\n  /**\n   * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n   * @return {number}\n   */\n  valueOf() {\n    return this.toMillis();\n  }\n\n  /**\n   * Returns the epoch milliseconds of this DateTime.\n   * @return {number}\n   */\n  toMillis() {\n    return this.isValid ? this.ts : NaN;\n  }\n\n  /**\n   * Returns the epoch seconds (including milliseconds in the fractional part) of this DateTime.\n   * @return {number}\n   */\n  toSeconds() {\n    return this.isValid ? this.ts / 1000 : NaN;\n  }\n\n  /**\n   * Returns the epoch seconds (as a whole number) of this DateTime.\n   * @return {number}\n   */\n  toUnixInteger() {\n    return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n  }\n\n  /**\n   * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n   * @return {string}\n   */\n  toJSON() {\n    return this.toISO();\n  }\n\n  /**\n   * Returns a BSON serializable equivalent to this DateTime.\n   * @return {Date}\n   */\n  toBSON() {\n    return this.toJSDate();\n  }\n\n  /**\n   * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n   * @param opts - options for generating the object\n   * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n   * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n   * @return {Object}\n   */\n  toObject(opts = {}) {\n    if (!this.isValid) return {};\n\n    const base = { ...this.c };\n\n    if (opts.includeConfig) {\n      base.outputCalendar = this.outputCalendar;\n      base.numberingSystem = this.loc.numberingSystem;\n      base.locale = this.loc.locale;\n    }\n    return base;\n  }\n\n  /**\n   * Returns a JavaScript Date equivalent to this DateTime.\n   * @return {Date}\n   */\n  toJSDate() {\n    return new Date(this.isValid ? this.ts : NaN);\n  }\n\n  // COMPARE\n\n  /**\n   * Return the difference between two DateTimes as a Duration.\n   * @param {DateTime} otherDateTime - the DateTime to compare this one to\n   * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n   * @param {Object} opts - options that affect the creation of the Duration\n   * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n   * @example\n   * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n   *     i2 = DateTime.fromISO('1983-10-14T10:30');\n   * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n   * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n   * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n   * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n   * @return {Duration}\n   */\n  diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n    if (!this.isValid || !otherDateTime.isValid) {\n      return Duration.invalid(\"created by diffing an invalid DateTime\");\n    }\n\n    const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n    const units = maybeArray(unit).map(Duration.normalizeUnit),\n      otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n      earlier = otherIsLater ? this : otherDateTime,\n      later = otherIsLater ? otherDateTime : this,\n      diffed = diff(earlier, later, units, durOpts);\n\n    return otherIsLater ? diffed.negate() : diffed;\n  }\n\n  /**\n   * Return the difference between this DateTime and right now.\n   * See {@link DateTime#diff}\n   * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n   * @param {Object} opts - options that affect the creation of the Duration\n   * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n   * @return {Duration}\n   */\n  diffNow(unit = \"milliseconds\", opts = {}) {\n    return this.diff(DateTime.now(), unit, opts);\n  }\n\n  /**\n   * Return an Interval spanning between this DateTime and another DateTime\n   * @param {DateTime} otherDateTime - the other end point of the Interval\n   * @return {Interval|DateTime}\n   */\n  until(otherDateTime) {\n    return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n  }\n\n  /**\n   * Return whether this DateTime is in the same unit of time as another DateTime.\n   * Higher-order units must also be identical for this function to return `true`.\n   * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n   * @param {DateTime} otherDateTime - the other DateTime\n   * @param {string} unit - the unit of time to check sameness on\n   * @param {Object} opts - options\n   * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n   * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n   * @return {boolean}\n   */\n  hasSame(otherDateTime, unit, opts) {\n    if (!this.isValid) return false;\n\n    const inputMs = otherDateTime.valueOf();\n    const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n    return (\n      adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n    );\n  }\n\n  /**\n   * Equality check\n   * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n   * To compare just the millisecond values, use `+dt1 === +dt2`.\n   * @param {DateTime} other - the other DateTime\n   * @return {boolean}\n   */\n  equals(other) {\n    return (\n      this.isValid &&\n      other.isValid &&\n      this.valueOf() === other.valueOf() &&\n      this.zone.equals(other.zone) &&\n      this.loc.equals(other.loc)\n    );\n  }\n\n  /**\n   * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n   * platform supports Intl.RelativeTimeFormat. Rounds towards zero by default.\n   * @param {Object} options - options that affect the output\n   * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n   * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n   * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n   * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n   * @param {string} [options.rounding=\"trunc\"] - rounding method to use when rounding the numbers in the output. Can be \"trunc\" (toward zero), \"expand\" (away from zero), \"round\", \"floor\", or \"ceil\".\n   * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n   * @param {string} options.locale - override the locale of this DateTime\n   * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n   * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n   * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n   * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n   * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n   * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n   * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n   */\n  toRelative(options = {}) {\n    if (!this.isValid) return null;\n    const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n      padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n    let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n    let unit = options.unit;\n    if (Array.isArray(options.unit)) {\n      units = options.unit;\n      unit = undefined;\n    }\n    return diffRelative(base, this.plus(padding), {\n      ...options,\n      numeric: \"always\",\n      units,\n      unit,\n    });\n  }\n\n  /**\n   * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n   * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n   * @param {Object} options - options that affect the output\n   * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n   * @param {string} options.locale - override the locale of this DateTime\n   * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n   * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n   * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n   * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n   * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n   * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n   */\n  toRelativeCalendar(options = {}) {\n    if (!this.isValid) return null;\n\n    return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n      ...options,\n      numeric: \"auto\",\n      units: [\"years\", \"months\", \"days\"],\n      calendary: true,\n    });\n  }\n\n  /**\n   * Return the min of several date times\n   * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n   * @return {DateTime} the min DateTime, or undefined if called with no argument\n   */\n  static min(...dateTimes) {\n    if (!dateTimes.every(DateTime.isDateTime)) {\n      throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n    }\n    return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n  }\n\n  /**\n   * Return the max of several date times\n   * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n   * @return {DateTime} the max DateTime, or undefined if called with no argument\n   */\n  static max(...dateTimes) {\n    if (!dateTimes.every(DateTime.isDateTime)) {\n      throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n    }\n    return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n  }\n\n  // MISC\n\n  /**\n   * Explain how a string would be parsed by fromFormat()\n   * @param {string} text - the string to parse\n   * @param {string} fmt - the format the string is expected to be in (see description)\n   * @param {Object} options - options taken by fromFormat()\n   * @return {Object}\n   */\n  static fromFormatExplain(text, fmt, options = {}) {\n    const { locale = null, numberingSystem = null } = options,\n      localeToUse = Locale.fromOpts({\n        locale,\n        numberingSystem,\n        defaultToEN: true,\n      });\n    return explainFromTokens(localeToUse, text, fmt);\n  }\n\n  /**\n   * @deprecated use fromFormatExplain instead\n   */\n  static fromStringExplain(text, fmt, options = {}) {\n    return DateTime.fromFormatExplain(text, fmt, options);\n  }\n\n  /**\n   * Build a parser for `fmt` using the given locale. This parser can be passed\n   * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n   * can be used to optimize cases where many dates need to be parsed in a\n   * specific format.\n   *\n   * @param {String} fmt - the format the string is expected to be in (see\n   * description)\n   * @param {Object} options - options used to set locale and numberingSystem\n   * for parser\n   * @returns {TokenParser} - opaque object to be used\n   */\n  static buildFormatParser(fmt, options = {}) {\n    const { locale = null, numberingSystem = null } = options,\n      localeToUse = Locale.fromOpts({\n        locale,\n        numberingSystem,\n        defaultToEN: true,\n      });\n    return new TokenParser(localeToUse, fmt);\n  }\n\n  /**\n   * Create a DateTime from an input string and format parser.\n   *\n   * The format parser must have been created with the same locale as this call.\n   *\n   * @param {String} text - the string to parse\n   * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n   * @param {Object} opts - options taken by fromFormat()\n   * @returns {DateTime}\n   */\n  static fromFormatParser(text, formatParser, opts = {}) {\n    if (isUndefined(text) || isUndefined(formatParser)) {\n      throw new InvalidArgumentError(\n        \"fromFormatParser requires an input string and a format parser\"\n      );\n    }\n    const { locale = null, numberingSystem = null } = opts,\n      localeToUse = Locale.fromOpts({\n        locale,\n        numberingSystem,\n        defaultToEN: true,\n      });\n\n    if (!localeToUse.equals(formatParser.locale)) {\n      throw new InvalidArgumentError(\n        `fromFormatParser called with a locale of ${localeToUse}, ` +\n          `but the format parser was created for ${formatParser.locale}`\n      );\n    }\n\n    const { result, zone, specificOffset, invalidReason } = formatParser.explainFromTokens(text);\n\n    if (invalidReason) {\n      return DateTime.invalid(invalidReason);\n    } else {\n      return parseDataToDateTime(\n        result,\n        zone,\n        opts,\n        `format ${formatParser.format}`,\n        text,\n        specificOffset\n      );\n    }\n  }\n\n  // FORMAT PRESETS\n\n  /**\n   * {@link DateTime#toLocaleString} format like 10/14/1983\n   * @type {Object}\n   */\n  static get DATE_SHORT() {\n    return DATE_SHORT;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n   * @type {Object}\n   */\n  static get DATE_MED() {\n    return DATE_MED;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n   * @type {Object}\n   */\n  static get DATE_MED_WITH_WEEKDAY() {\n    return DATE_MED_WITH_WEEKDAY;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n   * @type {Object}\n   */\n  static get DATE_FULL() {\n    return DATE_FULL;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n   * @type {Object}\n   */\n  static get DATE_HUGE() {\n    return DATE_HUGE;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get TIME_SIMPLE() {\n    return TIME_SIMPLE;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get TIME_WITH_SECONDS() {\n    return TIME_WITH_SECONDS;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get TIME_WITH_SHORT_OFFSET() {\n    return TIME_WITH_SHORT_OFFSET;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get TIME_WITH_LONG_OFFSET() {\n    return TIME_WITH_LONG_OFFSET;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n   * @type {Object}\n   */\n  static get TIME_24_SIMPLE() {\n    return TIME_24_SIMPLE;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n   * @type {Object}\n   */\n  static get TIME_24_WITH_SECONDS() {\n    return TIME_24_WITH_SECONDS;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n   * @type {Object}\n   */\n  static get TIME_24_WITH_SHORT_OFFSET() {\n    return TIME_24_WITH_SHORT_OFFSET;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n   * @type {Object}\n   */\n  static get TIME_24_WITH_LONG_OFFSET() {\n    return TIME_24_WITH_LONG_OFFSET;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_SHORT() {\n    return DATETIME_SHORT;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_SHORT_WITH_SECONDS() {\n    return DATETIME_SHORT_WITH_SECONDS;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_MED() {\n    return DATETIME_MED;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_MED_WITH_SECONDS() {\n    return DATETIME_MED_WITH_SECONDS;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_MED_WITH_WEEKDAY() {\n    return DATETIME_MED_WITH_WEEKDAY;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_FULL() {\n    return DATETIME_FULL;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_FULL_WITH_SECONDS() {\n    return DATETIME_FULL_WITH_SECONDS;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_HUGE() {\n    return DATETIME_HUGE;\n  }\n\n  /**\n   * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n   * @type {Object}\n   */\n  static get DATETIME_HUGE_WITH_SECONDS() {\n    return DATETIME_HUGE_WITH_SECONDS;\n  }\n}\n\n/**\n * @private\n */\nfunction friendlyDateTime(dateTimeish) {\n  if (DateTime.isDateTime(dateTimeish)) {\n    return dateTimeish;\n  } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n    return DateTime.fromJSDate(dateTimeish);\n  } else if (dateTimeish && typeof dateTimeish === \"object\") {\n    return DateTime.fromObject(dateTimeish);\n  } else {\n    throw new InvalidArgumentError(\n      `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n    );\n  }\n}\n\nconst VERSION = \"3.7.2\";\n\nexport { DateTime, Duration, FixedOffsetZone, IANAZone, Info, Interval, InvalidZone, Settings, SystemZone, VERSION, Zone };\n//# sourceMappingURL=luxon.mjs.map\n","import { dateDeserialize, datetimeDeserialize } from '@txstate-mws/svelte-forms';\nimport { DateTime } from 'luxon';\nimport { isNotBlank } from 'txstate-utils';\nexport function luxonDateDeserialize(v, tz) {\n    const dt = dateDeserialize(v);\n    if (dt == null)\n        return undefined;\n    dt.toJSON = function () {\n        let ldt = DateTime.fromJSDate(this);\n        if (isNotBlank(tz)) {\n            ldt = ldt.setZone(tz, { keepLocalTime: true });\n        }\n        return ldt.toISO({ suppressMilliseconds: true });\n    };\n    return dt;\n}\nexport function luxonDateTimeDeserialize(v, tz) {\n    const dt = datetimeDeserialize(v);\n    if (dt == null)\n        return undefined;\n    dt.toJSON = function () {\n        let ldt = DateTime.fromJSDate(this);\n        if (isNotBlank(tz)) {\n            ldt = ldt.setZone(tz, { keepLocalTime: true });\n        }\n        return ldt.toISO({ suppressMilliseconds: true });\n    };\n    return dt;\n}\n","<script lang=\"ts\">\n  import { Field, dateSerialize } from '@txstate-mws/svelte-forms'\n  import DatePicker from \"carbon-components-svelte/src/DatePicker/DatePicker.svelte\";\nimport DatePickerInput from \"carbon-components-svelte/src/DatePicker/DatePickerInput.svelte\";\n  import { createEventDispatcher, getContext, type ComponentProps } from 'svelte'\n  import { isBlank } from 'txstate-utils'\n  import { luxonDateDeserialize } from './luxon.js'\n  import { parseDateString, reformatDateInput } from './util.js'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { FILTER_UI_CONTEXT } from '../FilterUIQuickSlotContext.svelte'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  const dispatch = createEventDispatcher()\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n\n  interface $$Props extends ComponentProps<DatePicker> {\n    path: string\n    /**\n     * Date-only input can be funky since you cannot record the user's timezone.\n     *\n     * To solve this problem, this field normally returns a full ISO 8601 datetime\n     * set to noon in the browser's timezone, and tagged with the browser's offset instead\n     * of being in UTC.\n     *\n     * If you prefer to ignore the timezone problem, set this `notNoon` prop and you'll\n     * get an ISO8601 date with no timezone, e.g. '2024-03-16'.\n     */\n    notNoon?: boolean\n    /**\n     * If notNoon is true, the date will be recorded as a string, and then there are the\n     * two empty states: undefined and ''. Set this prop to true if you would like to\n     * always get empty string. Leave it false if you would like to always get undefined.\n     *\n     * This prop has no effect when notNoon is false/default, because that behavior\n     * is to return a Date object, and notNull would mean returning something weird like 1970.\n     * We're not going to do that - it's a Date selected by the user or undefined. notNull\n     * not allowed.\n     */\n    notNull?: boolean\n    conditional?: boolean\n    defaultValue?: string\n    labelText: string\n    helperText?: string\n    size?: 'sm' | 'xl'\n    placeholder?: string\n    disabled?: boolean\n    required?: boolean\n    hideLabel?: boolean\n    /**\n     * The default behavior is to record the date as a datetime with the hour set to\n     * noon in the browser's time zone. In some cases, the user might be well aware that\n     * they are expected to enter a date in an assumed timezone instead of their own.\n     *\n     * For instance, a meeting that occurs in Chicago would be given a date in Chicago's time\n     * zone, even if the user was in New York while they were entering the event data.\n     *\n     * In cases like this, you can set the assumed time zone, and you'll get a datetime set\n     * to noon in the assumed time zone.\n     *\n     * This prop does nothing if you set `notNoon` to true.\n     */\n    timeZone?: string\n    /**\n     * Set the time to the beginning of the day (00:00:00). Useful for date range queries\n     * where you want to include all records from the start of the selected date.\n     *\n     * This prop has no effect when `notNoon` is true (which returns date-only strings).\n     * Cannot be used together with endOfDay. If both are set, beginningOfDay takes precedence.\n     */\n    beginningOfDay?: boolean\n    /**\n     * Set the time to the end of the day (23:59:59). Useful for date range queries\n     * where you want to include all records until the end of the selected date.\n     *\n     * This prop has no effect when `notNoon` is true (which returns date-only strings).\n     * Cannot be used together with `beginningOfDay`. If both are set, beginningOfDay takes precedence.\n     */\n    endOfDay?: boolean\n  }\n\n/**\n * The path to the field.\n * @type {string}\n */\nexport let path: string\n\n/**\n * Indicates if the field value should not be null.\n * @type {boolean}\n */\nexport let notNull = false\n\n/**\n * Indicates if the field value should not be noon.\n * @type {boolean}\n */\nexport let notNoon = false\n\n/**\n * Indicates if the field is conditional.\n * @type {boolean}\n */\nexport let conditional = true\n\n/**\n * The default value of the field.\n * @type {string | Date | undefined}\n */\nexport let defaultValue: string | Date | undefined =\n  notNull && notNoon ? '' : undefined\n\n/**\n * The label text for the field.\n * @type {string}\n */\nexport let labelText: string\n\n/**\n * The helper text for the field.\n * @type {string | undefined}\n */\nexport let helperText: string | undefined = undefined\n\n/**\n * The size of the field.\n * @type {'sm' | 'xl' | undefined}\n */\nexport let size: 'sm' | 'xl' | undefined = undefined\n\n/**\n * The placeholder text for the field.\n * @type {string | undefined}\n */\nexport let placeholder: string | undefined = 'mm/dd/yyyy'\n\n/**\n * Indicates if the field is disabled.\n * @type {boolean}\n */\nexport let disabled: boolean | undefined = undefined\n/**\n* When true, the field is marked as required in the UI. This is only for visual indication\n* and does not affect validation. Validation is handled by the API that receives the data.\n*/\nexport let required = false\n/**\n * Indicates if the label should be hidden.\n * @type {boolean}\n */\nexport let hideLabel: boolean | undefined = undefined\n\n/**\n * The time zone for the field.\n * @type {string | undefined}\n */\nexport let timeZone: string | undefined = undefined\n\n/**\n * Set the time to the beginning of the day (00:00:00).\n * @type {boolean}\n */\nexport let beginningOfDay = false\n\n/**\n * Set the time to the end of the day (23:59:59).\n * @type {boolean}\n */\nexport let endOfDay = false\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n\n  function onChange (setVal: any) {\n    return (e: CustomEvent) => {\n      const { dateStr } = e.detail\n      const dt = deserialize(dateStr)\n      setVal(dt)\n      dispatch('change', dt)\n    }\n  }\n\n  // DatePicker from carbon-components-svelte does not emit a change event when\n  // the input is cleared, so we listen to the blur event to detect that.\n  function onInputBlur (setVal: any, onBlur: () => void) {\n    return (e: Event) => {\n      // When the user clicks a date in the flatpickr calendar, the input blurs\n      // before flatpickr processes the click. We must skip all blur-triggered\n      // side effects (setting value, dirtying the field) to avoid a re-render\n      // that would wipe the calendar state before flatpickr can select the date.\n      const fe = e as FocusEvent\n      const related = fe.relatedTarget as HTMLElement | null\n      if (related?.closest('.flatpickr-calendar') != null) return\n\n      const dateStr = (e.currentTarget as HTMLInputElement | undefined)?.value ?? ''\n      if (isBlank(dateStr)) {\n        const dt = deserialize(dateStr)\n        setVal(dt)\n        dispatch('change', dt)\n      }\n      onBlur()\n      dispatch('blur')\n    }\n  }\n\n  function onKeyDown (setVal: any, onBlur: () => void) {\n    return (e: KeyboardEvent) => {\n      if (e.key === 'Enter' || e.key === 'Tab') {\n        const input = e.target as HTMLInputElement\n        input.value = reformatDateInput(input?.value ?? '')\n      }\n\n      if (e.key === 'Enter') {\n        e.preventDefault()\n        onInputBlur(setVal, onBlur)(e)\n      }\n    }\n  }\n\n  function deserialize (val: string) {\n    if (isBlank(val)) return notNull && notNoon ? '' : undefined\n\n    const parsed = parseDateString(val)\n    if (!parsed) return notNull && notNoon ? '' : undefined\n\n    const dt8601 = `${parsed.year}-${parsed.month}-${parsed.day}`\n    if (notNoon) return dt8601\n\n    const dt = luxonDateDeserialize(dt8601, timeZone)\n    if (!dt) return notNull && notNoon ? '' : undefined\n\n    // Adjust time based on beginningOfDay/endOfDay props\n    if (beginningOfDay) {\n      dt.setHours(0, 0, 0, 0)\n    } else if (endOfDay) {\n      dt.setHours(23, 59, 59, 999)\n    }\n\n    return dt\n  }\n\n  function serialize (val: Date | string) {\n    if (!(val instanceof Date) && isBlank(val)) return ''\n    const dt = new Date(val)\n    const dt8601 = notNoon\n      ? `${String(dt.getUTCFullYear()).padStart(4, '0')}-${String(dt.getUTCMonth() + 1).padStart(2, '0')}-${String(dt.getUTCDate()).padStart(2, '0')}`\n      : dateSerialize(val)\n    const [year, month, day] = dt8601.split('-')\n    return `${month}/${day}/${year}`\n  }\n\n  const filterUiCtx = getContext<{ quickslot?: boolean }>(FILTER_UI_CONTEXT)\n  $: resolvedHideLabel = hideLabel ?? !!filterUiCtx?.quickslot\n</script>\n\n<Field\n  {path}\n  {conditional}\n  {defaultValue}\n  {serialize}\n  {deserialize}\n  let:invalid\n  let:messages\n  let:value\n  let:setVal\n  let:onBlur\n  let:path={fullpath}\n>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  <div class=\"cs-field\">\n    <DatePicker\n      {...$$restProps}\n      datePickerType=\"single\"\n      {value}\n      on:change={onChange(setVal)}\n    >\n    <div class={required ? 'bx--date-picker-input--required' : ''}>\n      <DatePickerInput\n        name={fullpath}\n        {labelText}\n        {helperText}\n        {size}\n        {invalid}\n        invalidText={errorText}\n        warn={!!warnText}\n        {warnText}\n        {placeholder}\n        disabled={isDisabled}\n        hideLabel={resolvedHideLabel}\n        aria-invalid={invalid}\n        aria-required={required}\n        on:keydown={onKeyDown(setVal, onBlur)}\n        on:blur={onInputBlur(setVal, onBlur)}>\n        <svelte:fragment slot=\"labelChildren\">{labelText}{#if required}<span aria-hidden=\"true\">{' '}*</span>{/if}</svelte:fragment>\n      </DatePickerInput>\n    </div>\n    </DatePicker>\n    <FieldStatusText messages={notices} />\n    </div>\n</Field>\n\n\n<!-- TODO: contribute on:focus forward, fix for flatpickr props merge \"options\" vs \"option\" -->\n\n<style>\n :global(.flatpickr-day.today) {\n  /* color: var(--cds-interactive-04) */\n  color: var(--maroon-03);\n }\n :global(.flatpickr-day.today.selected) {\n  color: white\n }\n :global(.flatpickr-day.today::after) {\n  /* background-color: var(--cds-interactive-04) */\n  background-color: var(--maroon-03);\n }\n</style>\n","<script lang=\"ts\">\n  import { Field, type FormStore, FORM_CONTEXT, FORM_INHERITED_PATH } from '@txstate-mws/svelte-forms'\n  import { getContext } from 'svelte'\n  import { isNotBlank } from 'txstate-utils'\n  /**\n   * The optional HTML id attribute for the hidden input.\n   * @type {string | undefined}\n   */\n  export let id: string | undefined = undefined\n\n  /**\n   * The path to store the hidden field value.\n   * @type {string}\n   */\n  export let path: string\n\n  /**\n   * The value to be stored in the hidden field.\n   * @type {string | boolean | number | object}\n   * @default ''\n   */\n  export let value: string | boolean | number | object = ''\n\n  /**\n   * Indicates if the field value should not be null.\n   * @type {boolean}\n   * @default false\n   */\n  export let notNull = false\n\n  /**\n   * Indicates if the value should be treated as a boolean.\n   * @type {boolean}\n   * @default false\n   */\n  export let boolean = typeof value === 'boolean'\n\n  /**\n   * Indicates if the value should be treated as a number.\n   * @type {boolean}\n   * @default false\n   */\n  export let number = typeof value === 'number'\n\n  /**\n   * Indicates if the value should be treated as an object.\n   * @type {boolean}\n   * @default false\n   */\n  export let json = typeof value === 'object'\n\n  /**\n   * Indicates if the field is conditional.\n   * @type {boolean | undefined}\n   */\n  export let conditional: boolean | undefined = undefined\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n  $: void store.setField(finalPath, value)\n</script>\n\n<Field {path} {conditional} {notNull} {boolean} {number} {json} let:value>\n  <input type=\"hidden\" name={path} {value} {id}>\n</Field>\n","<script>\n  /**\n   * @template {MultiSelectItem<any>} [Item=MultiSelectItem<any>]\n   */\n\n  /**\n   * @typedef {string} MultiSelectItemText\n   * @typedef {object} MultiSelectItem<Id=any>\n   * @property {Id} id\n   * @property {MultiSelectItemText} text\n   * @property {boolean} [disabled] - Whether the item is disabled\n   * @property {boolean} [isSelectAll] - Whether this item acts as a \"select all\" toggle\n   * @event select\n   * @type {object}\n   * @property {Item[\"id\"][]} selectedIds\n   * @property {Item[]} selected\n   * @property {Item[]} unselected\n   * @event {null} clear\n   * @event {FocusEvent | CustomEvent<FocusEvent>} blur\n   * @event {{ trigger: \"escape-key\" | \"outside-click\" }} close\n   * @event {{ scrollTop: number; scrollHeight: number; clientHeight: number }} scrollend\n   * @slot {{ item: Item; index: number; selected: boolean; highlighted: boolean; }}\n   * @restProps {input | button}\n   */\n\n  /**\n   * Set the multiselect items.\n   * @type {ReadonlyArray<Item>}\n   */\n  export let items = [];\n\n  /**\n   * Override the display of a multiselect item.\n   * @type {(item: Item) => string | Item[\"id\"]}\n   */\n  export let itemToString = (item) => item.text ?? item.id;\n\n  /**\n   * Override `name`/`value` for the hidden inputs that mirror the current\n   * selection for native form submission, and `title`/`labelText` for the\n   * visible option checkbox. `name`/`value` do not reach the option\n   * checkbox itself -- it is decorative and excluded from form\n   * participation, even while the menu is open.\n   * @type {(item: Item) => { name?: string; labelText?: any; title?: string; value?: string }}\n   */\n  export let itemToInput = (_item) => {};\n\n  /**\n   * Set the selected ids.\n   * @type {ReadonlyArray<Item[\"id\"]>}\n   * @bindable writable\n   */\n  export let selectedIds = [];\n\n  /**\n   * Specify the multiselect value.\n   * @bindable writable\n   */\n  export let value = \"\";\n\n  /**\n   * Set the size of the multiselect.\n   * @type {\"xs\" | \"sm\" | \"lg\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Specify the type of multiselect.\n   * @type {\"default\" | \"inline\"}\n   */\n  export let type = \"default\";\n\n  /**\n   * Specify the direction of the multiselect dropdown menu.\n   * @type {\"bottom\" | \"top\"}\n   */\n  export let direction = \"bottom\";\n\n  /**\n   * Specify the selection feedback after selecting items.\n   * @type {\"top\" | \"fixed\" | \"top-after-reopen\"}\n   */\n  export let selectionFeedback = \"top-after-reopen\";\n\n  /**\n   * Cap how many items can be selected at once.\n   * Unset or a non-positive value means unlimited.\n   * When set, select-all is unavailable and unchecked items disable once the cap is reached.\n   * @type {number | undefined}\n   */\n  export let maxSelectedItems = undefined;\n\n  /** Set to `true` to disable the dropdown */\n  export let disabled = false;\n\n  /** Set to `true` to filter items */\n  export let filterable = false;\n\n  /**\n   * Override the filtering logic.\n   * The default filtering is an exact string comparison.\n   * @type {(item: Item, value: string) => boolean}\n   */\n  export let filterItem = (item, value) =>\n    item.text.toLowerCase().includes(value.trim().toLowerCase());\n\n  /**\n   * Set to `true` to open the dropdown.\n   * @bindable writable\n   */\n  export let open = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   * Cannot be combined with the inline variant.\n   */\n  export let fluid = false;\n\n  /**\n   * Set to `true` to render condensed menu items in the fluid variant.\n   * Menu items use the default height instead of the taller fluid height.\n   * Only applies when the fluid variant is active.\n   */\n  export let condensed = false;\n\n  /** Specify the locale */\n  export let locale = \"en\";\n\n  /** Specify the placeholder text */\n  export let placeholder = \"\";\n\n  /**\n   * Override the sorting logic.\n   * The default sorting compare the item text value.\n   * @type {((a: Item, b: Item) => number) | (() => void)}\n   */\n  export let sortItem = (a, b) => getSortCollator().compare(a.text, b.text);\n\n  /**\n   * Override the chevron icon label based on the open state.\n   * Defaults to \"Open menu\" when closed and \"Close menu\" when open.\n   * @type {(id: import(\"../ListBox/ListBoxMenuIcon.svelte\").ListBoxMenuIconTranslationId) => string}\n   */\n  export let translateWithId = undefined;\n\n  /**\n   * Override the label of the clear button when the input has a selection.\n   * Defaults to \"Clear selected item\" and \"Clear all items\" if more than one item is selected.\n   * @type {(id: import(\"../ListBox/ListBoxSelection.svelte\").ListBoxSelectionTranslationId) => string}\n   */\n  export let translateWithIdSelection = undefined;\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to pass the item to `itemToString` in the checkbox */\n  export let useTitleInItem = false;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Specify the list box label */\n  export let label = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Set an id for the list box component */\n  export let id = uniqueId();\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /**\n   * Specify the assistive text announced to screen readers when read-only.\n   * Exposed because VoiceOver does not announce `aria-readonly`.\n   */\n  export let readonlyText = \"Read-only\";\n\n  /**\n   * Specify the assistive text describing options disabled by `maxSelectedItems`.\n   * Announced so screen reader users learn why an option refuses selection,\n   * not just that it is disabled.\n   */\n  export let maxSelectedText = \"Maximum items selected\";\n\n  /**\n   * Specify the assistive text advertising the keyboard shortcut that clears\n   * the selection. Appended to the field's visually-hidden description\n   * whenever there is a selection to clear.\n   */\n  export let clearSelectionText =\n    \"To clear the selection, press Delete or Backspace\";\n\n  /**\n   * Specify the assistive text announced through the status live region when\n   * the selection is cleared via the keyboard or the clear button.\n   */\n  export let selectionClearedText = \"All items cleared\";\n\n  /**\n   * Build the assistive message announced through the status live region when\n   * typing in the filterable variant changes how many options match.\n   * The count excludes any \"select all\" item.\n   * @type {(count: number) => string}\n   */\n  export let filterResultsText = (count) =>\n    count === 0\n      ? \"No results\"\n      : `${count} result${count === 1 ? \"\" : \"s\"} available`;\n\n  /**\n   * Default group name for the hidden inputs that mirror the current\n   * selection for native form submission (`FormData`). Used per item\n   * unless `itemToInput` returns its own `name`. Not applied to the\n   * filterable text input, which is a query box, not the form value.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let inputRef = null;\n\n  /**\n   * Obtain a reference to the outer div element.\n   * @bindable readonly\n   */\n  export let multiSelectRef = null;\n\n  /**\n   * Obtain a reference to the field box element.\n   * @type {null | HTMLButtonElement}\n   * @bindable readonly\n   */\n  export let fieldRef = null;\n\n  /**\n   * Obtain a reference to the selection element.\n   * @type {null | HTMLDivElement}\n   * @bindable readonly\n   */\n  export let selectionRef = null;\n\n  /**\n   * Id of the highlighted ListBoxMenuItem.\n   * @type {null | Item[\"id\"]}\n   * @bindable readonly\n   */\n  export let highlightedId = null;\n\n  /**\n   * The post-sort, post-selection-feedback list of items rendered by the dropdown.\n   * Bind to read the resolved order without recomputing it from `items`, `selectedIds`, and `sortItem`.\n   * @type {ReadonlyArray<Item & { checked: boolean }>}\n   * @bindable readonly\n   */\n  export let sortedItems = [];\n\n  /**\n   * Enable virtualization for large lists. Virtualization renders only the items currently visible in the viewport, improving performance for large lists.\n   *\n   * By default, virtualization is automatically enabled for lists with more than 100 items.\n   *\n   * Set `virtualize={false}` to explicitly disable virtualization, even for large lists.\n   *\n   * Set `virtualize={true}` to explicitly enable virtualization with default settings.\n   *\n   * Provide an object to customize virtualization behavior:\n   * - `itemHeight` (default: size-based, or 64px for fluid unless `condensed`): Height of each item in pixels. Override when custom slots change row height.\n   * - `containerHeight` (default: 300): The maximum height in pixels of the dropdown container.\n   * - `overscan` (default: 3): The number of extra items to render above and below the viewport for smoother scrolling. Higher values may cause more flickering during very fast scrolling.\n   * - `threshold` (default: 100): The minimum number of items required before virtualization activates. Lists with fewer items will render all items normally without virtualization.\n   * - `maxItems` (default: undefined): The maximum number of items to render. When undefined, all visible items are rendered.\n   * @type {undefined | boolean | { itemHeight?: number, containerHeight?: number, overscan?: number, threshold?: number, maxItems?: number }}\n   */\n  export let virtualize = undefined;\n\n  /**\n   * Set to `true` to render the dropdown menu in a portal,\n   * allowing it to escape containers with `overflow: hidden`.\n   * When inside a Modal, defaults to `true` unless explicitly set to `false`.\n   * @type {boolean | undefined}\n   */\n  export let portalMenu = undefined;\n\n  /**\n   * Obtain a reference to the list HTML element.\n   * @type {null | HTMLDivElement}\n   * @bindable readonly\n   */\n  export let listRef = null;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    onMount,\n    setContext,\n    tick,\n  } from \"svelte\";\n  import Checkbox from \"../Checkbox/Checkbox.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import {\n    ListBox,\n    ListBoxField,\n    ListBoxMenu,\n    ListBoxMenuIcon,\n    ListBoxMenuItem,\n    ListBoxSelection,\n  } from \"../ListBox\";\n  import HighlightSlot from \"../ListBox/HighlightSlot.svelte\";\n  import {\n    getMenuItemHeight,\n    getMenuMaxHeight,\n  } from \"../ListBox/list-box-utils.js\";\n  import { debounce } from \"../utils/debounce.js\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { isOutsideClick } from \"../utils/isOutsideClick.js\";\n  import { createScrollEndTracker } from \"../utils/isScrollNearEnd.js\";\n  import { moveIndex } from \"../utils/moveIndex.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import {\n    resetVirtualScrollOnClose,\n    scrollHighlightedIntoView,\n    scrollSelectedIntoView,\n    virtualListState,\n  } from \"../utils/virtualize.js\";\n\n  const dispatch = createEventDispatcher();\n  const scrollEndTracker = createScrollEndTracker();\n  const formContext = getContext(\"carbon:Form\");\n  const insideModal = getContext(\"carbon:Modal\");\n\n  $: effectivePortalMenu =\n    portalMenu === undefined ? !!insideModal : portalMenu;\n\n  let sortCollatorLocale;\n  let sortCollator;\n  function getSortCollator() {\n    if (!sortCollator || sortCollatorLocale !== locale) {\n      sortCollatorLocale = locale;\n      sortCollator = new Intl.Collator(locale, { numeric: true });\n    }\n    return sortCollator;\n  }\n\n  let fieldFocused = false;\n  let highlightedIndex = -1;\n  let highlightOrigin = /** @type {\"keyboard\" | \"pointer\" | null} */ (null);\n  let prevHighlightedIndex = -1;\n  let prevChecked = [];\n  let isInitialRender = true;\n  let listScrollTop = 0;\n  let prevOpen = false;\n  let internalSelectedIdsRef = selectedIds;\n  /** Anchor item id for shift+click range selection; cleared when selection is reset entirely. */\n  let lastSelectedItemId = null;\n  /** Text content of the visually-hidden status live region. */\n  let statusText = \"\";\n\n  /**\n   * @type {(data: { key: \"field\" | \"selection\"; ref: HTMLDivElement | HTMLButtonElement }) => void}\n   */\n  function declareRef({ key, ref }) {\n    switch (key) {\n      case \"field\":\n        fieldRef = ref;\n        break;\n      case \"selection\":\n        selectionRef = ref;\n        break;\n    }\n  }\n\n  setContext(\"carbon:MultiSelect\", {\n    declareRef,\n  });\n\n  /**\n   * Whether an item should be treated as disabled for selection and keyboard nav.\n   * Checked items stay enabled at the cap so they can be cleared.\n   * @param {Item & { checked?: boolean }} item\n   */\n  function isItemDisabled(item) {\n    if (item.disabled) return true;\n    if (hasMaxSelectedItems && item.isSelectAll) return true;\n    if (isAtSelectionCap && !item.checked) return true;\n    return false;\n  }\n\n  function change(step) {\n    // Disabled options stay in the keyboard navigation sequence (APG:\n    // \"Focusability of disabled controls\") so assistive-tech users can\n    // discover them; selectItem and the option click handlers refuse the\n    // actual selection.\n    //\n    // `filteredItems` is gated on `open` and recomputes reactively, so it can\n    // still be stale/empty here immediately after synchronously flipping\n    // `open` to `true` in the same keydown handler (before the reactive\n    // statement re-runs). Fall back to `sortedItems` in that case, matching\n    // ComboBox's `filteredItems?.length ? filteredItems : items` guard.\n    const navigableItems = filteredItems.length ? filteredItems : sortedItems;\n    highlightedIndex = moveIndex(highlightedIndex, step, navigableItems.length);\n    highlightOrigin = \"keyboard\";\n  }\n\n  /**\n   * Sync the isSelectAll pseudo-item's checked state to whether every selectable item is\n   * checked. Mutates `sortedItems` in place; callers reassign it afterward.\n   */\n  function syncSelectAllItem() {\n    if (!hasSelectAll) return;\n\n    // Recomputed fresh from `sortedItems`/`value` (plain reads) rather than\n    // the `$:`-derived `selectAllScope`/`selectableItems`, which haven't\n    // picked up the mutation callers make to `sortedItems` just before\n    // calling this (reactive statements only re-run on the next tick).\n    const scope =\n      filterable && open\n        ? sortedItems.filter(\n            (sortedItem) =>\n              sortedItem.isSelectAll || filterItem(sortedItem, value),\n          )\n        : sortedItems;\n    const selectable = scope.filter(\n      (sortedItem) => !sortedItem.disabled && !sortedItem.isSelectAll,\n    );\n    const newSelectableChecked = selectable.filter(\n      (sortedItem) => sortedItem.checked,\n    ).length;\n    const newAllSelected =\n      selectable.length > 0 && newSelectableChecked === selectable.length;\n    const selectAllIndex = sortedItems.findIndex(\n      (sortedItem) => sortedItem.isSelectAll,\n    );\n    if (\n      selectAllIndex !== -1 &&\n      sortedItems[selectAllIndex].checked !== newAllSelected\n    ) {\n      sortedItems[selectAllIndex] = {\n        ...sortedItems[selectAllIndex],\n        checked: newAllSelected,\n      };\n    }\n  }\n\n  /** Apply `selectionFeedback: \"top\"` bookkeeping after a checked-state change. */\n  function applyTopSelectionFeedback() {\n    if (selectionFeedback !== \"top\") return;\n\n    selectedIds = sortedItems\n      .filter((sortedItem) => sortedItem.checked && !sortedItem.isSelectAll)\n      .map((sortedItem) => sortedItem.id);\n    internalSelectedIdsRef = selectedIds;\n    sortedItems = sort();\n  }\n\n  /** Handle selection of an item, including isSelectAll logic. */\n  function selectItem(item) {\n    // Read-only allows opening and navigating the menu to review values, but\n    // never changing them. Guarding here covers every path (click, Enter,\n    // label click, select-all) so callers don't each need a readonly check.\n    if (readonly || isItemDisabled(item)) return;\n\n    if (item.isSelectAll) {\n      const target = !allSelected;\n      sortedItems = sortedItems.map((sortedItem) =>\n        !selectAllScopeIds.has(sortedItem.id) ||\n        sortedItem.disabled ||\n        sortedItem.checked === target\n          ? sortedItem\n          : { ...sortedItem, checked: target },\n      );\n    } else {\n      const itemIndex = sortedItems.indexOf(item);\n      if (itemIndex !== -1) {\n        sortedItems[itemIndex] = { ...item, checked: !item.checked };\n      }\n\n      syncSelectAllItem();\n      sortedItems = [...sortedItems];\n    }\n\n    applyTopSelectionFeedback();\n  }\n\n  /**\n   * Apply `checked` to every selectable item between the anchor item and `targetIndex`\n   * (inclusive), where `targetIndex` is a position in `itemsToUse`. Returns `false` if the\n   * anchor item is no longer present (for example, filtered out), so the caller can fall\n   * back to a single toggle.\n   * @type {(targetIndex: number, checked: boolean) => boolean}\n   */\n  function selectItemRange(targetIndex, checked) {\n    if (readonly) return false;\n\n    const anchorIndex = itemsToUse.findIndex(\n      (item) => item.id === lastSelectedItemId,\n    );\n    if (anchorIndex === -1) return false;\n\n    const start = Math.min(anchorIndex, targetIndex);\n    const end = Math.max(anchorIndex, targetIndex);\n    const rangeIds = new Set(\n      itemsToUse\n        .slice(start, end + 1)\n        .filter((item) => !item.isSelectAll && !isItemDisabled(item))\n        .map((item) => item.id),\n    );\n\n    sortedItems = sortedItems.map((sortedItem) =>\n      rangeIds.has(sortedItem.id) && sortedItem.checked !== checked\n        ? { ...sortedItem, checked }\n        : sortedItem,\n    );\n\n    syncSelectAllItem();\n    applyTopSelectionFeedback();\n\n    return true;\n  }\n\n  /**\n   * Announce a message through the visually-hidden status region. The text is\n   * reset first so announcing the same message twice still mutates the DOM —\n   * live regions only fire on an actual text change.\n   * @param {string} text\n   */\n  async function announceStatus(text) {\n    statusText = \"\";\n    await tick();\n    statusText = text;\n  }\n\n  /**\n   * Clear every selected item and announce it. Shared by the clear button and\n   * the Delete/Backspace shortcuts in both field variants. No-op when nothing\n   * is selected so a bare Delete press does not announce a phantom clear.\n   */\n  function clearSelection() {\n    if (selectionCount === 0) return;\n    selectedIds = [];\n    lastSelectedItemId = null;\n    sortedItems = sortedItems.map((item) => ({ ...item, checked: false }));\n    announceStatus(selectionClearedText);\n  }\n\n  /** Filter result count last announced; null when the menu is closed so reopening announces again. */\n  let announcedFilterCount = null;\n\n  const announceFilterResults = debounce((count) => {\n    if (count === announcedFilterCount) return;\n    announcedFilterCount = count;\n    announceStatus(filterResultsText(count));\n  }, 800);\n\n  onMount(() => announceFilterResults.cancel);\n\n  afterUpdate(() => {\n    // Compare by length, not by IDs. This is intentional: `on:select`\n    // should only fire in response to UI interaction (toggle/clear),\n    // not programmatic `selectedIds` changes. A length check is sufficient\n    // because `selectItem` only ever toggles one item at a time, so user-\n    // driven changes always alter the count.\n    if (checked.length !== prevChecked.length) {\n      prevChecked = checked;\n      selectedIds = checked\n        .filter((item) => !item.isSelectAll)\n        .map((item) => item.id);\n      internalSelectedIdsRef = selectedIds;\n      if (!isInitialRender) {\n        dispatch(\"select\", {\n          selectedIds,\n          selected: checked.filter((item) => !item.isSelectAll),\n          unselected: unchecked.filter((item) => !item.isSelectAll),\n        });\n      }\n    }\n    isInitialRender = false;\n\n    if (!open) {\n      highlightedIndex = -1;\n      highlightOrigin = null;\n      prevHighlightedIndex = -1;\n      if (prevOpen && filterable) {\n        value = \"\";\n      }\n    }\n\n    // Scroll to highlighted item when it changes via keyboard navigation.\n    // Only scroll if the item is outside the visible viewport.\n    if (\n      open &&\n      shouldVirtualize &&\n      virtualConfig &&\n      highlightedIndex !== prevHighlightedIndex &&\n      highlightedIndex >= 0 &&\n      listRef\n    ) {\n      tick().then(() => {\n        if (listRef && virtualConfig && highlightedIndex >= 0) {\n          const nextScrollTop = scrollHighlightedIntoView({\n            highlightedIndex,\n            currentScrollTop: listRef.scrollTop ?? listScrollTop,\n            itemCount: itemsToUse.length,\n            itemHeight: virtualConfig.itemHeight,\n            containerHeight: virtualConfig.containerHeight,\n            overscan: virtualConfig.overscan ?? 3,\n            maxItems: virtualConfig.maxItems,\n          });\n          if (nextScrollTop !== null) {\n            listScrollTop = nextScrollTop;\n            listRef.scrollTop = nextScrollTop;\n          }\n        }\n      });\n      prevHighlightedIndex = highlightedIndex;\n    }\n\n    // Scroll to first selected item when menu opens with virtualization\n    const wasJustOpened = open && !prevOpen;\n    if (wasJustOpened && shouldVirtualize && listRef) {\n      tick().then(() => {\n        if (listRef && virtualConfig) {\n          // Find the index of the first selected item in the itemsToUse array\n          // (the actual rendered list, which may be sorted/filtered).\n          const selectedIndex =\n            selectedIds && selectedIds.length > 0\n              ? itemsToUse.findIndex((item) => item.id === selectedIds[0])\n              : -1;\n          const nextScrollTop = scrollSelectedIntoView({\n            selectedIndex,\n            itemCount: itemsToUse.length,\n            itemHeight: virtualConfig.itemHeight,\n            containerHeight: virtualConfig.containerHeight,\n          });\n\n          listScrollTop = nextScrollTop;\n          // Use requestAnimationFrame to ensure DOM is ready\n          requestAnimationFrame(() => {\n            if (listRef) {\n              listRef.scrollTop = nextScrollTop;\n            }\n          });\n        }\n      });\n    }\n    prevOpen = open;\n\n    // Reset scroll position when menu closes\n    if (!open && prevOpen && shouldVirtualize) {\n      listScrollTop = resetVirtualScrollOnClose();\n      if (listRef) {\n        listRef.scrollTop = listScrollTop;\n      }\n    }\n    if (!open) {\n      scrollEndTracker.reset();\n    }\n  });\n\n  /**\n   * @param {Event} event\n   */\n  function handleMenuScroll(event) {\n    const target = /** @type {HTMLElement} */ (event.target);\n    listScrollTop = target.scrollTop;\n    const detail = scrollEndTracker.observe({\n      scrollTop: target.scrollTop,\n      scrollHeight: target.scrollHeight,\n      clientHeight: target.clientHeight,\n      itemCount: itemsToUse.length,\n    });\n    if (detail) {\n      dispatch(\"scrollend\", detail);\n    }\n  }\n\n  function sort() {\n    const selectedIdsSet = new Set(selectedIds);\n\n    const regularItems = items.filter((item) => !item.isSelectAll);\n    const enabledRegularItems = regularItems.filter((item) => !item.disabled);\n    const allChecked =\n      enabledRegularItems.length > 0 &&\n      enabledRegularItems.every((item) => selectedIdsSet.has(item.id));\n    const selectAllEntries = items\n      .filter((item) => item.isSelectAll)\n      .map((item) => ({ ...item, checked: allChecked }));\n\n    if (\n      selectionFeedback === \"top\" ||\n      selectionFeedback === \"top-after-reopen\"\n    ) {\n      const checkedItems = regularItems\n        .filter((item) => selectedIdsSet.has(item.id))\n        .map((item) => ({ ...item, checked: true }));\n      const uncheckedItems = regularItems\n        .filter((item) => !selectedIdsSet.has(item.id))\n        .map((item) => ({ ...item, checked: false }));\n\n      return [\n        ...selectAllEntries,\n        ...(checkedItems.length > 1\n          ? checkedItems.sort(sortItem)\n          : checkedItems),\n        ...uncheckedItems.sort(sortItem),\n      ];\n    }\n\n    return [\n      ...selectAllEntries,\n      ...regularItems\n        .map((item) => ({\n          ...item,\n          checked: selectedIdsSet.has(item.id),\n        }))\n        .sort(sortItem),\n    ];\n  }\n\n  sortedItems = sort();\n  let prevItemsRef = items;\n\n  $: menuId = `menu-${id}`;\n  $: comboId = `combo-${id}`;\n  $: helperId = `helper-${id}`;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: readonlyId = `readonly-${id}`;\n  $: selectionId = `selection-${id}`;\n  // `aria-readonly` on a combobox/listbox does not reliably surface read-only state,\n  // so the read-only state is also exposed as a visually-hidden description. The\n  // single status/help id is combined with the read-only id (a describedby\n  // may reference multiple ids) so it works in every state.\n  $: statusDescribedById =\n    showInvalid && invalidText\n      ? errorId\n      : showWarn && warnText\n        ? warnId\n        : !isFluid && !showInvalid && !showWarn && helperText\n          ? helperId\n          : undefined;\n  $: hasSelectionDescription = !readonly && selectionCount > 0;\n  $: fieldDescribedById =\n    [\n      readonly ? readonlyId : null,\n      hasSelectionDescription ? selectionId : null,\n      statusDescribedById,\n    ]\n      .filter(Boolean)\n      .join(\" \") || undefined;\n  // The selection count badge is hidden from assistive tech in read-only.\n  // Fold the count into the read-only description so the\n  // collapsed field still announces how much there is to review.\n  $: readonlyDescription =\n    selectionCount > 0\n      ? `${readonlyText}, ${selectionCount} selected`\n      : readonlyText;\n  $: inline = type === \"inline\";\n  $: isFluid = !inline && (fluid || !!formContext?.isFluid);\n  // Keep the focus outline on the field while the menu is open, not just while\n  // the field itself is focused: selecting an item bounces focus to the option\n  // and back, which would otherwise drop the outline mid-interaction.\n  $: showFluidFieldFocus = isFluid && (fieldFocused || open);\n  $: showFieldFocus = !isFluid && (fieldFocused || open);\n  // Fluid (non-condensed) menu items are 64px tall (see css/_fluid-list-box.scss).\n  // Portaled menus render outside the fluid wrapper, so they keep default heights.\n  $: hasFluidMenuItems = isFluid && !condensed && !effectivePortalMenu;\n  // Invalid/warn states are suppressed when the multi-select is disabled or read-only.\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: ariaLabel = $$props[\"aria-label\"] ?? \"Choose an item\";\n  $: if (items !== prevItemsRef) {\n    prevItemsRef = items;\n    sortedItems = sort();\n    prevChecked = sortedItems.filter((item) => item.checked);\n  }\n  $: if (\n    selectedIds &&\n    ((selectionFeedback === \"top\" && selectedIds !== internalSelectedIdsRef) ||\n      (selectionFeedback === \"top-after-reopen\" && open === false))\n  ) {\n    internalSelectedIdsRef = selectedIds;\n    sortedItems = sort();\n  }\n  $: hasSelectAll = items.some((item) => item.isSelectAll);\n  $: checked = sortedItems.filter((item) => item.checked);\n  $: unchecked = sortedItems.filter((item) => !item.checked);\n  // Native form participation, decoupled from what's rendered: derived from\n  // `items` + `selectedIds` directly (in `items` order), never\n  // `sortedItems`/`checked` (whose order shifts with `selectionFeedback`),\n  // `filteredItems`, or the virtual window. Excludes the isSelectAll\n  // pseudo-item and disabled items (matching native disabled checkboxes,\n  // which never submit).\n  $: selectedIdsSet = new Set(selectedIds);\n  $: formItems = items.filter(\n    (item) =>\n      !item.isSelectAll && !item.disabled && selectedIdsSet.has(item.id),\n  );\n  // Scope select-all to the currently visible (filtered) items, so it\n  // doesn't check/uncheck items hidden by an active filter.\n  $: selectAllScope = filterable && open ? filteredItems : sortedItems;\n  $: selectAllScopeIds = new Set(selectAllScope.map((item) => item.id));\n  $: selectableItems = selectAllScope.filter(\n    (item) => !item.disabled && !item.isSelectAll,\n  );\n  $: selectableCheckedCount = selectableItems.filter(\n    (item) => item.checked,\n  ).length;\n  $: allSelected =\n    selectableItems.length > 0 &&\n    selectableCheckedCount === selectableItems.length;\n  $: selectAllIndeterminate =\n    hasSelectAll && selectableCheckedCount > 0 && !allSelected;\n  $: selectionCount = hasSelectAll\n    ? checked.filter((item) => !item.isSelectAll).length\n    : checked.length;\n  $: hasMaxSelectedItems =\n    typeof maxSelectedItems === \"number\" && maxSelectedItems > 0;\n  $: isAtSelectionCap =\n    hasMaxSelectedItems && selectionCount >= maxSelectedItems;\n  $: maxSelectedId = `max-selected-${id}`;\n  $: filteredItems =\n    filterable && open\n      ? sortedItems.filter(\n          (item) => item.isSelectAll || filterItem(item, value),\n        )\n      : [];\n  $: filterResultCount = filteredItems.filter(\n    (item) => !item.isSelectAll,\n  ).length;\n  $: if (filterable && open && value?.length > 0) {\n    announceFilterResults(filterResultCount);\n  } else {\n    announceFilterResults.cancel();\n  }\n  $: if (!open) {\n    announcedFilterCount = null;\n    statusText = \"\";\n  }\n  $: highlightedId =\n    highlightedIndex > -1\n      ? ((filterable ? filteredItems : sortedItems)[highlightedIndex]?.id ??\n        null)\n      : null;\n  $: activeDescendantId =\n    highlightedId == null ? null : `${id}-${highlightedId}`;\n\n  $: shouldVirtualize =\n    virtualize === false\n      ? false\n      : virtualize !== undefined || items.length > 100;\n\n  $: itemsToUse = filterable ? filteredItems : sortedItems;\n  $: scrollEndTracker.noteItemCount(itemsToUse.length);\n\n  $: menuMaxHeight = getMenuMaxHeight(size);\n\n  $: virtualState = virtualListState({\n    items: itemsToUse,\n    scrollTop: listScrollTop,\n    shouldVirtualize,\n    virtualize,\n    defaults: {\n      itemHeight: getMenuItemHeight(size, { fluid: hasFluidMenuItems }),\n    },\n  });\n  $: virtualConfig = virtualState.config;\n  $: virtualData = virtualState.data;\n  $: itemsToRender = virtualState.itemsToRender;\n\n  $: multiSelectListBoxClass = [\n    \"bx--multi-select\",\n    direction === \"top\" && \"bx--list-box--up\",\n    filterable && \"bx--combo-box\",\n    filterable && \"bx--multi-select--filterable\",\n    showInvalid && \"bx--multi-select--invalid\",\n    inline && \"bx--multi-select--inline\",\n    readonly && \"bx--multi-select--readonly\",\n    selectionCount > 0 && \"bx--multi-select--selected\",\n    hasSelectAll && \"bx--multi-select--selectall\",\n  ]\n    .filter(Boolean)\n    .join(\" \");\n\n  /**\n   * Dismiss the menu and notify consumers of the cause. Guarded on `open` so a\n   * dismissal gesture fired while already closed does not emit a phantom event.\n   * @type {(trigger: \"escape-key\" | \"outside-click\") => void}\n   */\n  function close(trigger) {\n    if (open) {\n      open = false;\n      dispatch(\"close\", { trigger });\n    }\n  }\n\n  function handleOutsideInteraction(event) {\n    if (\n      open &&\n      isOutsideClick(event, [multiSelectRef, effectivePortalMenu && listRef])\n    ) {\n      close(\"outside-click\");\n    }\n  }\n</script>\n\n<div\n  bind:this={multiSelectRef}\n  use:dismiss={{\n    enabled: open,\n    type: [\"click\", \"focusin\"],\n    handler: handleOutsideInteraction,\n  }}\n  class:bx--multi-select__wrapper={true}\n  class:bx--list-box__wrapper={true}\n  class:bx--multi-select__wrapper--inline={inline}\n  class:bx--list-box__wrapper--inline={inline}\n  class:bx--multi-select__wrapper--inline--invalid={inline && showInvalid}\n  class:bx--list-box__wrapper--fluid={isFluid}\n  class:bx--list-box__wrapper--fluid--invalid={isFluid && showInvalid}\n  class:bx--list-box__wrapper--fluid--warning={isFluid && showWarn}\n  class:bx--list-box__wrapper--fluid--disabled={isFluid && disabled}\n  class:bx--list-box__wrapper--fluid--readonly={isFluid && readonly}\n  class:bx--list-box__wrapper--fluid--condensed={isFluid && condensed}\n  class:bx--multi-select--filterable__wrapper={isFluid && filterable}\n>\n  {#each formItems as item (item.id)}\n    {@const itemInput = itemToInput(item) ?? {}}\n    <input\n      type=\"hidden\"\n      name={itemInput.name ?? name ?? item.id}\n      value={itemInput.value ?? \"\"}\n    >\n  {/each}\n  {#if labelText || $$slots.labelChildren}\n    <label\n      for={id}\n      class:bx--label={true}\n      class:bx--label--disabled={disabled}\n      class:bx--visually-hidden={hideLabel}\n      class:bx--label--slotted={isFluid && $$slots.labelChildren}\n    >\n      <slot name=\"labelChildren\"> {labelText} </slot>\n    </label>\n  {/if}\n  <ListBox\n    id={comboId}\n    aria-label={ariaLabel}\n    {disabled}\n    invalid={showInvalid}\n    invalidText={isFluid ? \"\" : invalidText}\n    invalidId={errorId}\n    {open}\n    {light}\n    {size}\n    warn={showWarn}\n    warnText={isFluid ? \"\" : warnText}\n    {warnId}\n    class={multiSelectListBoxClass}\n  >\n    {#if showInvalid}\n      <WarningFilled class=\"bx--list-box__invalid-icon\" />\n    {/if}\n    {#if showWarn}\n      <WarningAltFilled\n        class=\"bx--list-box__invalid-icon bx--list-box__invalid-icon--warning\"\n      />\n    {/if}\n    {#if filterable}\n      <div\n        style={isFluid ? undefined : \"display: contents\"}\n        class:bx--list-box__field--wrapper={isFluid}\n        class:bx--list-box__field--wrapper--input-focused={showFluidFieldFocus}\n      >\n        <div\n          class:bx--list-box__field={true}\n          class:bx--list-box__field--wrapper--input-focused={!isFluid &&\n            showFieldFocus}\n        >\n          {#if selectionCount > 0}\n            <ListBoxSelection\n              {selectionCount}\n              on:clear\n              on:clear={clearSelection}\n              translateWithId={translateWithIdSelection}\n              {disabled}\n              {readonly}\n            />\n          {/if}\n          <input\n            bind:this={inputRef}\n            bind:value\n            {...$$restProps}\n            role=\"combobox\"\n            tabindex=\"0\"\n            autocomplete=\"off\"\n            aria-autocomplete=\"list\"\n            aria-haspopup=\"listbox\"\n            aria-expanded={open}\n            aria-activedescendant={activeDescendantId}\n            aria-disabled={disabled || undefined}\n            aria-readonly={readonly || undefined}\n            aria-controls={open ? menuId : undefined}\n            aria-describedby={fieldDescribedById}\n            class:bx--text-input={true}\n            class:bx--text-input--empty={value === \"\"}\n            class:bx--text-input--light={light}\n            on:click={() => {\n            if (disabled) return;\n            open = true;\n          }}\n            on:keydown\n            on:keydown|stopPropagation={(event) => {\n            // Read-only opens and navigates the menu to review values, but the\n            // keys that clear the selection are blocked; selectItem guards the\n            // rest (Enter/option toggle).\n            if (readonly && (event.key === \"Backspace\" || event.key === \"Delete\")) {\n              return;\n            }\n            if (event.key === \"Enter\") {\n              if (highlightOrigin === \"keyboard\" && highlightedId) {\n                const highlightedItem = sortedItems.find(\n                  (item) => item.id === highlightedId,\n                );\n                if (highlightedItem) selectItem(highlightedItem);\n              }\n            } else if (event.key === \"Tab\") {\n              open = false;\n            } else if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n              event.preventDefault();\n              const step = event.key === \"ArrowDown\" ? 1 : -1;\n              if (event.altKey) {\n                // APG combobox pattern: Alt+ArrowDown opens a closed menu\n                // without moving the highlight; Alt+ArrowUp closes an open one.\n                if (event.key === \"ArrowDown\" && !open) {\n                  open = true;\n                } else if (event.key === \"ArrowUp\" && open) {\n                  close(\"escape-key\");\n                }\n              } else {\n                if (!open) open = true;\n                change(step);\n              }\n            } else if (event.key === \"Escape\") {\n              close(\"escape-key\");\n            } else if (event.key === \" \") {\n              if (readonly) event.preventDefault();\n              if (!open) open = true;\n            } else if (event.key === \"Backspace\" && value === \"\") {\n              clearSelection();\n            } else if (event.key === \"Delete\") {\n              value = \"\";\n              if (!open) clearSelection();\n            }\n          }}\n            on:input\n            on:input={() => {\n            if (!open) open = true;\n          }}\n            on:keyup\n            on:focus\n            on:focus={() => {\n            fieldFocused = true;\n          }}\n            on:blur\n            on:blur={() => {\n            fieldFocused = false;\n          }}\n            on:paste\n            {disabled}\n            {readonly}\n            {placeholder}\n            {id}\n          >\n          {#if value}\n            <ListBoxSelection\n              on:clear={() => {\n              value = \"\";\n              open = false;\n              // `bind:value` writes the DOM value without firing \"input\",\n              // so the `on:input` below would miss this clear. Set the\n              // node first, then dispatch. Svelte's `bind:value` listener\n              // reads `event.target.value`, and the reactive assignment\n              // above has not flushed yet.\n              if (inputRef) {\n                inputRef.value = \"\";\n                inputRef.dispatchEvent(new Event(\"input\", { bubbles: true }));\n              }\n            }}\n              translateWithId={translateWithIdSelection}\n              {disabled}\n              {readonly}\n              {open}\n            />\n          {/if}\n          <ListBoxMenuIcon\n            on:click={(event) => {\n            if (disabled) return;\n            event.stopPropagation();\n            open = !open;\n          }}\n            {translateWithId}\n            {open}\n          />\n        </div>\n      </div>\n    {:else}\n      <!-- The visible focus outline renders on this wrapper, not the field\n           itself: Carbon resets `.bx--list-box__field:focus` to a transparent\n           outline, which outranks the `--input-focused` rule when both target\n           the focused field. Placing `--input-focused` on the (unfocused)\n           wrapper avoids that `:focus` specificity bump. -->\n      <div\n        class:bx--list-box__field--wrapper={true}\n        class:bx--list-box__field--wrapper--input-focused={isFluid\n          ? showFluidFieldFocus\n          : showFieldFocus}\n      >\n        <ListBoxField\n          {...$$restProps}\n          role=\"combobox\"\n          tabindex=\"0\"\n          aria-expanded={open}\n          aria-activedescendant={activeDescendantId}\n          aria-controls={open ? menuId : undefined}\n          aria-describedby={fieldDescribedById}\n          on:focus={() => {\n          fieldFocused = true;\n        }}\n          on:click={() => {\n          if (disabled) return;\n          open = !open;\n        }}\n          on:keydown={(event) => {\n          if (\n            event.key === \" \" ||\n            event.key === \"Enter\" ||\n            event.key === \"ArrowUp\" ||\n            event.key === \"ArrowDown\"\n          ) {\n            // Prevent the native button from synthesizing a click (which would\n            // toggle the menu) so these keys are handled solely below.\n            event.preventDefault();\n          }\n          // Read-only still opens and navigates the menu; selectItem is the\n          // single guard that blocks the actual selection change.\n          if (event.key === \" \") {\n            if (!open) {\n              open = true;\n            } else if (highlightOrigin === \"keyboard\" && highlightedIndex > -1) {\n              const item = (filterable ? filteredItems : sortedItems)[\n                highlightedIndex\n              ];\n              if (item) selectItem(item);\n            }\n          } else if (event.key === \"Tab\") {\n            open = false;\n          } else if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n            const step = event.key === \"ArrowDown\" ? 1 : -1;\n            if (event.altKey) {\n              // APG combobox pattern: Alt+ArrowDown opens a closed menu\n              // without moving the highlight; Alt+ArrowUp closes an open one.\n              if (event.key === \"ArrowDown\" && !open) {\n                open = true;\n              } else if (event.key === \"ArrowUp\" && open) {\n                close(\"escape-key\");\n              }\n            } else {\n              if (!open) open = true;\n              change(step);\n            }\n          } else if (event.key === \"Enter\") {\n            if (highlightOrigin === \"keyboard\" && highlightedIndex > -1) {\n              const item = (filterable ? filteredItems : sortedItems)[\n                highlightedIndex\n              ];\n              if (item) selectItem(item);\n            }\n          } else if (event.key === \"Escape\") {\n            close(\"escape-key\");\n          } else if (event.key === \"Home\" || event.key === \"End\") {\n            // APG select-only combobox: Home/End open a closed listbox, then\n            // move the highlight to the first/last option. The filterable\n            // variant deliberately leaves these keys to the text caret.\n            event.preventDefault();\n            if (!open) open = true;\n            const navigableItems = filterable ? filteredItems : sortedItems;\n            highlightedIndex =\n              event.key === \"Home\" ? 0 : navigableItems.length - 1;\n            highlightOrigin = \"keyboard\";\n          } else if (event.key === \"Delete\" || event.key === \"Backspace\") {\n            // Clear the whole selection from the keyboard, menu open or\n            // closed, matching the filterable variant. Read-only reviews the\n            // menu but never changes the selection.\n            if (readonly) return;\n            event.preventDefault();\n            clearSelection();\n          }\n        }}\n          on:blur={(event) => {\n          fieldFocused = false;\n          dispatch(\"blur\", event);\n        }}\n          {id}\n          {disabled}\n          {readonly}\n        >\n          {#if selectionCount > 0}\n            <ListBoxSelection\n              {selectionCount}\n              on:clear\n              on:clear={clearSelection}\n              translateWithId={translateWithIdSelection}\n              {disabled}\n              {readonly}\n            />\n          {/if}\n          <span class:bx--list-box__label={true}>{label}</span>\n          <ListBoxMenuIcon {open} {translateWithId} />\n        </ListBoxField>\n      </div>\n    {/if}\n    {#if open}\n      <ListBoxMenu\n        aria-label={ariaLabel}\n        {id}\n        portal={effectivePortalMenu}\n        portalHostClass=\"bx--multi-select bx--list-box--expanded\"\n        {open}\n        anchor={fieldRef}\n        {direction}\n        highlightedId={activeDescendantId}\n        highlightScroll={highlightOrigin !== \"pointer\"}\n        aria-multiselectable=\"true\"\n        aria-readonly={readonly || undefined}\n        on:scroll\n        on:scroll={handleMenuScroll}\n        on:mouseleave={() => {\n          // Clear the hover highlight when the cursor leaves the menu so the\n          // highlighted state does not linger on the last hovered item.\n          highlightedIndex = -1;\n          highlightOrigin = null;\n        }}\n        bind:ref={listRef}\n        style={effectivePortalMenu\n          ? `max-height: ${virtualConfig\n              ? `${virtualConfig.containerHeight}px; overflow-y: auto`\n              : menuMaxHeight};`\n          : virtualConfig\n            ? `max-height: ${virtualConfig.containerHeight}px; overflow-y: auto;`\n            : undefined}\n      >\n        {#if virtualData?.isVirtualized}\n          <div style=\"height: {virtualData.totalHeight}px; position: relative;\">\n            <div style=\"transform: translateY({virtualData.offsetY}px);\">\n              {#each itemsToRender as item, index (item.id)}\n                {@const actualIndex = virtualData.startIndex + index}\n                {@const optionId = `${id}-${item.id}`}\n                {@const itemDisabled =\n                  item.disabled ||\n                  (hasMaxSelectedItems && !!item.isSelectAll) ||\n                  (isAtSelectionCap && !item.checked)}\n                {@const capDisabled =\n                  isAtSelectionCap &&\n                  !item.checked &&\n                  !item.disabled &&\n                  !item.isSelectAll}\n                <ListBoxMenuItem\n                  id={optionId}\n                  role=\"option\"\n                  aria-labelledby=\"checkbox-{id}-{item.id}\"\n                  aria-describedby={capDisabled ? maxSelectedId : undefined}\n                  aria-selected={item.isSelectAll ? allSelected : item.checked}\n                  aria-checked={item.isSelectAll\n                    ? selectAllIndeterminate\n                      ? \"mixed\"\n                      : allSelected\n                    : item.checked}\n                  aria-setsize={itemsToUse.length}\n                  aria-posinset={actualIndex + 1}\n                  active={item.isSelectAll ? false : item.checked}\n                  disabled={itemDisabled}\n                  on:click={(event) => {\n                    if (itemDisabled) {\n                      event.stopPropagation();\n                      return;\n                    }\n                    // Label default synthesizes a second click; without this,\n                    // selectItem runs twice and the toggle nets to no change.\n                    event.preventDefault();\n                    const usedRange =\n                      event.shiftKey &&\n                      lastSelectedItemId !== null &&\n                      !item.isSelectAll &&\n                      selectItemRange(actualIndex, !item.checked);\n                    if (!usedRange) {\n                      selectItem(item);\n                    }\n                    lastSelectedItemId = item.id;\n                  }}\n                  on:mousedown={(event) => {\n                    // Keep focus on the field so screen readers don't\n                    // re-announce it on every option click.\n                    event.preventDefault();\n                  }}\n                  on:mouseenter={() => {\n                    if (itemDisabled) return;\n                    highlightedIndex = actualIndex;\n                    highlightOrigin = \"pointer\";\n                  }}\n                >\n                  <HighlightSlot {optionId} let:highlighted>\n                    <Checkbox\n                      title={useTitleInItem ? itemToString(item) : undefined}\n                      {...itemToInput(item)}\n                      name={undefined}\n                      tabindex=\"-1\"\n                      decorative\n                      id=\"checkbox-{id}-{item.id}\"\n                      checked={item.isSelectAll ? allSelected : item.checked}\n                      indeterminate={item.isSelectAll\n                        ? selectAllIndeterminate\n                        : false}\n                      disabled={itemDisabled}\n                      {readonly}\n                    >\n                      <slot\n                        slot=\"labelChildren\"\n                        {item}\n                        index={actualIndex}\n                        selected={item.isSelectAll ? allSelected : item.checked}\n                        {highlighted}\n                      >\n                        {itemToString(item)}\n                      </slot>\n                    </Checkbox>\n                  </HighlightSlot>\n                </ListBoxMenuItem>\n              {/each}\n            </div>\n          </div>\n        {:else}\n          {#each itemsToRender as item, index (item.id)}\n            {@const optionId = `${id}-${item.id}`}\n            {@const itemDisabled =\n              item.disabled ||\n              (hasMaxSelectedItems && !!item.isSelectAll) ||\n              (isAtSelectionCap && !item.checked)}\n            {@const capDisabled =\n              isAtSelectionCap &&\n              !item.checked &&\n              !item.disabled &&\n              !item.isSelectAll}\n            <ListBoxMenuItem\n              id={optionId}\n              role=\"option\"\n              aria-labelledby=\"checkbox-{id}-{item.id}\"\n              aria-describedby={capDisabled ? maxSelectedId : undefined}\n              aria-selected={item.isSelectAll ? allSelected : item.checked}\n              aria-checked={item.isSelectAll\n                ? selectAllIndeterminate\n                  ? \"mixed\"\n                  : allSelected\n                : item.checked}\n              active={item.isSelectAll ? false : item.checked}\n              disabled={itemDisabled}\n              on:click={(event) => {\n                if (itemDisabled) {\n                  event.stopPropagation();\n                  return;\n                }\n                // Label default synthesizes a second click; without this,\n                // selectItem runs twice and the toggle nets to no change.\n                event.preventDefault();\n                const usedRange =\n                  event.shiftKey &&\n                  lastSelectedItemId !== null &&\n                  !item.isSelectAll &&\n                  selectItemRange(index, !item.checked);\n                if (!usedRange) {\n                  selectItem(item);\n                }\n                lastSelectedItemId = item.id;\n              }}\n              on:mousedown={(event) => {\n                // Keep focus on the field so screen readers don't\n                // re-announce it on every option click.\n                event.preventDefault();\n              }}\n              on:mouseenter={() => {\n                if (itemDisabled) return;\n                highlightedIndex = index;\n                highlightOrigin = \"pointer\";\n              }}\n            >\n              <HighlightSlot {optionId} let:highlighted>\n                <Checkbox\n                  title={useTitleInItem ? itemToString(item) : undefined}\n                  {...itemToInput(item)}\n                  name={undefined}\n                  tabindex=\"-1\"\n                  decorative\n                  id=\"checkbox-{id}-{item.id}\"\n                  checked={item.isSelectAll ? allSelected : item.checked}\n                  indeterminate={item.isSelectAll\n                    ? selectAllIndeterminate\n                    : false}\n                  disabled={itemDisabled}\n                  {readonly}\n                >\n                  <slot\n                    slot=\"labelChildren\"\n                    {item}\n                    {index}\n                    selected={item.isSelectAll ? allSelected : item.checked}\n                    {highlighted}\n                  >\n                    {itemToString(item)}\n                  </slot>\n                </Checkbox>\n              </HighlightSlot>\n            </ListBoxMenuItem>\n          {/each}\n        {/if}\n      </ListBoxMenu>\n    {/if}\n  </ListBox>\n  {#if isFluid}\n    <hr class:bx--list-box__divider={true}>\n  {/if}\n  {#if isFluid && showInvalid && invalidText}\n    <div id={errorId} class:bx--form-requirement={true}>{invalidText}</div>\n  {/if}\n  {#if isFluid && showWarn && warnText}\n    <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n  {/if}\n  {#if !inline && !isFluid && !showInvalid && !showWarn && helperText}\n    <div\n      id={helperId}\n      class:bx--form__helper-text={true}\n      class:bx--form__helper-text--disabled={disabled}\n    >\n      {helperText}\n    </div>\n  {/if}\n  {#if hasMaxSelectedItems}\n    <span id={maxSelectedId} class:bx--visually-hidden={true}\n      >{maxSelectedText}</span\n    >\n  {/if}\n  {#if readonly}\n    <span id={readonlyId} class:bx--visually-hidden={true}\n      >{readonlyDescription}</span\n    >\n  {/if}\n  {#if hasSelectionDescription}\n    <span id={selectionId} class:bx--visually-hidden={true}\n      >{selectionCount}\n      selected. {clearSelectionText}</span\n    >\n  {/if}\n  <!-- Live region for selection announcements. Always rendered (even while\n       empty) so assistive tech registers the region before its text changes. -->\n  <span role=\"status\" aria-live=\"polite\" class:bx--visually-hidden={true}\n    >{statusText}</span\n  >\n</div>\n","\n<script lang=\"ts\">\n  import { FILTER_UI_CONTEXT } from '../FilterUIQuickSlotContext.svelte'\n  import type { CarbonMultiItem, ComboMenuItem } from './../util.js'\n  import { FORM_CONTEXT, FORM_INHERITED_PATH, Field, defaultDeserialize, defaultSerialize, jsonDeserialize, jsonSerialize, numberDeserialize, numberSerialize, type FormStore } from '@txstate-mws/svelte-forms'\n  import InlineLoading from \"carbon-components-svelte/src/InlineLoading/InlineLoading.svelte\";\nimport MultiSelect from \"carbon-components-svelte/src/MultiSelect/MultiSelect.svelte\";\n  import { createEventDispatcher, getContext, type ComponentProps } from 'svelte'\n  import { equal, isNotBlank } from 'txstate-utils'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { filterItemWithLoading, loadingMenuItem } from './util.js'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  const dispatch = createEventDispatcher()\n  const filterUiCtx = getContext<{ quickslot?: boolean }>(FILTER_UI_CONTEXT)\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props extends Omit<ComponentProps<MultiSelect>, 'items'> {\n    path: string\n    labelText?: string\n    items?: ComboMenuItem[]\n    conditional?: boolean\n    defaultValue?: any\n    placeholder?: string\n    inputvalue?: string\n    allowFreeEntry?: boolean\n    required?: boolean\n    number?: boolean\n    json?: boolean\n    loading?: boolean\n    loadingText?: string\n    freeEntryText?: (str: string) => string\n    serialize?: ((value: any) => string)\n    deserialize?: ((value: string) => any)\n  }\n\n  /**\n   * The path to the field array in the form data.\n   * @type {string}\n   */\n  export let path: string\n\n  /**\n   * The label text for the combo box. This prop has been added to maintain consistency with other form\n   * fields, but the prop `label` and `titleText` also exist as restProps from carbon-components-svelte's\n   * MultiSelect. If you provide more than one of these props, which you shouldn't, the `labelText` will\n   * take precedence, followed by `titleText`, and then `label`.\n   * @type {string}\n   */\n  export let labelText: string | undefined = $$restProps.titleText ?? $$restProps.label\n\n  /**\n   * Array of items to display in the dropdown\n   * @type {ComboMenuItem[]}\n   */\n  export let items: ComboMenuItem[] = []\n\n  /**\n   * Whether the field is conditional.\n   * @type {boolean}\n   * @default true\n   */\n  export let conditional = true\n\n  /**\n   * The default value for the combo box.\n   * @type {any}\n   * @default []\n   */\n  export let defaultValue: any = []\n\n  /**\n   * Placeholder text shown when no value is selected.\n   * @type {string}\n   */\n  export let placeholder = 'Select' + (labelText ? ' ' + labelText : '')\n\n  /**\n   * Current input value in the combo box.\n   * @type {string}\n   * @default ''\n   */\n  export let inputvalue = ''\n  /**\n  * When true, the field is marked as required in the UI. This is only for visual indication\n  * and does not affect validation. Validation is handled by the API that receives the data.\n  */\n  export let required = false\n  /**\n   * Whether to allow users to enter custom values not in the items list.\n   * @type {boolean}\n   * @default false\n   */\n  export let allowFreeEntry = false\n\n  /**\n   * Function to generate the text shown for creating a new entry.\n   * @type {(str: string) => string}\n   * @default (str) => `create \"${str}\"`\n   */\n  export let freeEntryText = (str: string) => `create \"${str}\"`\n\n  /**\n   * When true, shows a \"Loading options...\" row pinned at the bottom of the dropdown while more\n   * options load; selected values stay at the top and in the trigger.\n   * @type {boolean}\n   * @default false\n   */\n  export let loading = false\n\n  /**\n   * Text shown in the loading indicator row.\n   * @type {string}\n   * @default 'Loading options...'\n   */\n  export let loadingText = 'Loading options...'\n\n  /**\n   * Whether the values should be treated as numbers.\n   * @type {boolean}\n   * @default false\n   */\n  export let number = false\n\n  /**\n   * Set to true to serialize/deserialize as JSON\n   * @type {boolean}\n   * @default false\n   */\n  export let json = false\n\n  /**\n   * Custom function to serialize values for form submission\n   * @type {((value: any) => string)}\n   * @default undefined\n   */\n  export let serialize: ((value: any) => string) = json ? jsonSerialize : number ? numberSerialize : defaultSerialize\n\n  /**\n   * Custom function to deserialize values from form data\n   * @type {((value: string) => any)}\n   * @default undefined\n   */\n  export let deserialize: ((value: string) => any) = json ? jsonDeserialize : number ? numberDeserialize : defaultDeserialize\n\n  /**\n   * Indicates if the field is disabled.\n   * @type {boolean}\n   */\n  export let disabled: boolean = false\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n  const val = store.getField<any[]>(finalPath)\n\n  function arraySerialize (vals: any[]): any {\n    return vals?.map(serialize) ?? []\n  }\n  function arrayDeserialize (vals: any): any {\n    return vals?.map(deserialize) ?? []\n  }\n\n  $: isDisabled = disabled || $formProps?.disabled\n\n  $: isFilterable = $$restProps.filterable ?? allowFreeEntry\n\n  $: resolvedFilterItem = $$restProps.filterItem ?? filterItemWithLoading\n\n  // Carbon auto-virtualizes any list over 100 items even when `virtualize` is never set.\n  // Virtualized rows must all be the same fixed height, which wrapped rows can't guarantee.\n  // Adjust if CDS adds better truncation option, see FieldCombobox\n  $: virtualizeOverride = $$restProps.virtualize ?? false\n  $: isVirtualized = !!virtualizeOverride\n\n  $: transformedItems = [\n    ...(allowFreeEntry && isNotBlank(inputvalue) && !arraySerialize($val).map((v: string) => v.toLocaleLowerCase()).includes(inputvalue.toLocaleLowerCase()) && !items.some(o => [(o.value.toLocaleLowerCase?.() ?? o.value), o.label?.toLocaleLowerCase()].includes(inputvalue.toLocaleLowerCase())) ? [{ id: inputvalue, text: freeEntryText(inputvalue), create: true }] : []),\n    ...(arraySerialize($val?.filter(v => !items.some(o => equal(o.value, v)))).map((v: string) => ({ id: v, text: v })) ?? []),\n    ...items.map(itm => ({ id: serialize(itm.value), text: itm.label ?? serialize(itm.value), disabled: itm.disabled ?? isDisabled })),\n    ...(loading ? [loadingMenuItem(finalPath, loadingText)] : [])] as CarbonMultiItem[]\n\n  function onUpdate (setVal: any) {\n    return (e: CustomEvent<{ selectedIds: string[], selected: CarbonMultiItem[] }>) => {\n      const deserialized = arrayDeserialize(e.detail.selectedIds)\n      setVal(deserialized)\n      dispatch('select', deserialized)\n      inputvalue = ''\n      for (const selectedItem of e.detail.selected ?? []) if (selectedItem.create) selectedItem.text = selectedItem.id\n    }\n  }\n\n  function onClear (setVal: any) {\n    return () => {\n      setVal([])\n      dispatch('select', [])\n    }\n  }\n\n  function loadingItemToInput (item: CarbonMultiItem) {\n    return item.loading ? undefined : $$restProps.itemToInput?.(item)\n  }\n</script>\n<!--\n  @component\n\n  By default this component expects values to be strings. If you wish to use other types of values, you\n  must provide a `serialize` and `deserialize` function. If you set the `number` prop, an appropriate\n  serializer and deserializer will be provided by default. However, mixing numbers and strings would not work.\n  For that you should provide your own serialize and deserialize functions.\n-->\n\n<Field {path} notNull {conditional} {defaultValue} serialize={arraySerialize} deserialize={arrayDeserialize} let:invalid let:messages let:value let:onBlur let:setVal let:path={fullpath}>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  <div\n  class=\"multiselect cs-field {required ? 'bx--multi-select--required' : ''}\"\n  class:virtualized={isVirtualized}\n  >\n    <MultiSelect {...$$restProps} filterable={isFilterable} {placeholder} name={fullpath} {invalid} invalidText={errorText} warn={!!warnText} {warnText}\n      hideLabel={$$restProps.hideLabel ?? filterUiCtx?.quickslot}\n      selectedIds={value}\n      items={transformedItems}\n      sortItem={() => {}}\n      itemToInput={loadingItemToInput}\n      filterItem={resolvedFilterItem}\n      virtualize={virtualizeOverride}\n      aria-invalid={invalid}\n      aria-required={required}\n      bind:value={inputvalue}\n      on:select={onUpdate(setVal)}\n      on:clear={onClear(setVal)}\n      on:focus\n      on:blur={() => { onBlur(); dispatch('blur') }}\n      on:input\n      on:keyup\n      on:keydown\n      on:keydown={e => { if (e.key === 'Enter') e.preventDefault() }}\n    >\n    <div slot=\"labelChildren\">\n      {labelText ?? $$restProps.titleText ?? $$restProps.label}{#if required}<span aria-hidden=\"true\">{' '}*</span>{/if}\n    </div>\n    <svelte:fragment let:item>\n      {#if 'loading' in item && item.loading}\n        <!-- Override InlineLoading's hardcoded aria-live=\"assertive\" -->\n        <InlineLoading description={item.text} aria-live=\"off\" />\n      {:else}\n        {item.text}\n      {/if}\n    </svelte:fragment>\n    </MultiSelect>\n    <FieldStatusText messages={notices} />\n  </div>\n</Field>\n\n\n<!-- TODO: contribute accessibility fixes to Multiselect -->\n\n<style>\n  :global(.bx--checkbox:checked+.bx--checkbox-label::before) {\n    background-color: var(--maroon);\n  }\n  /* Hide the loading row's checkbox (keyed off :has(.bx--inline-loading)); the spinner stands in. */\n  :global(.bx--multi-select .bx--list-box__menu-item__option:has(.bx--inline-loading) .bx--checkbox-label::before),\n  :global(.bx--multi-select .bx--list-box__menu-item__option:has(.bx--inline-loading) .bx--checkbox-label::after) {\n    display: none;\n  }\n  /* Collapse checkbox-label padding and center the spinner. */\n  :global(.bx--multi-select .bx--list-box__menu-item__option:has(.bx--inline-loading) .bx--checkbox-label) {\n    display: flex;\n    align-items: center;\n    min-height: 0;\n    padding: 0;\n  }\n\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item__option:has(.bx--inline-loading) .bx--inline-loading) {\n    min-height: 1.5rem;\n  }\n\n  :global(.bx--multi-select .bx--list-box__menu-item[disabled]:has(.bx--inline-loading)) {\n    --cds-disabled-02: var(--cds-text-01, #161616);\n  }\n\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item) {\n    height: auto;\n  }\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item__option) {\n    height: auto;\n    white-space: normal;\n    overflow-wrap: anywhere;\n    text-overflow: unset;\n    padding-block: 0.4375rem;\n  }\n  .multiselect:not(.virtualized) :global(.bx--list-box--sm .bx--list-box__menu-item__option) {\n    padding-block: 0.1875rem;\n  }\n  .multiselect:not(.virtualized) :global(.bx--list-box--lg .bx--list-box__menu-item__option),\n  .multiselect:not(.virtualized) :global(.bx--list-box--xl .bx--list-box__menu-item__option) {\n    padding-block: 0.6875rem;\n  }\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item__option .bx--checkbox-wrapper) {\n    height: auto;\n  }\n\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item__option .bx--checkbox-label) {\n    white-space: normal;\n    text-overflow: unset;\n  }\n\n  .multiselect :global(.bx--list-box__menu-item__option .bx--checkbox-label-text) {\n    display: block;\n  }\n  .multiselect:not(.virtualized) :global(.bx--list-box__menu-item__option .bx--checkbox-label-text) {\n    white-space: normal;\n    text-overflow: unset;\n  }\n</style>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z\"\n  ></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M8 15H24V17H8z\"></path>\n</svg>\n","// @ts-check\n// Number input string parsing and clamping.\n\n/** Period/dot characters. */\nconst RE_DOT = /\\./g;\n/** Comma and Arabic decimal separator (٫). */\nconst RE_COMMA = /[,٫]/g;\n\n/**\n * Non-Western decimal digit ranges that `Intl.NumberFormat` renders for some\n * locales (e.g. \"ar-EG\" formats using Arabic-Indic ٠-٩), mapped to their\n * Unicode codepoint offset from the localized \"0\".\n */\nconst DIGIT_RANGES = [\n  [0x0660, 0x0669], // Arabic-Indic\n  [0x06f0, 0x06f9], // Extended Arabic-Indic (Persian)\n  [0x0966, 0x096f], // Devanagari\n  [0x09e6, 0x09ef], // Bengali\n  [0xff10, 0xff19], // Fullwidth\n];\n\n/**\n * Replace non-Western digit glyphs with ASCII `0`-`9` so `Number()` can parse them.\n *\n * @param {string} raw\n * @returns {string}\n */\nfunction normalizeDigits(raw) {\n  let result = \"\";\n  for (const char of raw) {\n    const code = char.codePointAt(0);\n    const range = DIGIT_RANGES.find(\n      ([start, end]) => code >= start && code <= end,\n    );\n    result += range ? String(code - range[0]) : char;\n  }\n  return result;\n}\n\n/**\n * Replace comma and ٫ with `.`. Use while the user is still typing, before blur.\n *\n * @param {string} raw\n * @returns {string}\n */\nfunction replaceDecimalSeparators(raw) {\n  return normalizeDigits(raw).replace(RE_COMMA, \".\");\n}\n\n/**\n * Normalize on blur when both `.` and `,`/`٫` appear. The last separator is\n * decimal; strip the others as thousands grouping (\"1.000,5\" → \"1000.5\",\n * \"1,000.5\" → \"1000.5\").\n *\n * @param {string} raw\n * @returns {string}\n */\nfunction normalizeLocale(raw) {\n  const normalized = normalizeDigits(raw);\n  const lastComma = Math.max(\n    normalized.lastIndexOf(\",\"),\n    normalized.lastIndexOf(\"٫\"),\n  );\n  const lastDot = normalized.lastIndexOf(\".\");\n\n  if (lastComma !== -1 && lastDot !== -1) {\n    if (lastComma > lastDot) {\n      return normalized.replace(RE_DOT, \"\").replace(RE_COMMA, \".\");\n    }\n    return normalized.replace(RE_COMMA, \"\");\n  }\n\n  return replaceDecimalSeparators(normalized);\n}\n\n/**\n * Parse a raw string to a number. Returns `null` for `\"\"`, `\"-\"`, or NaN.\n *\n * @param {string} raw\n * @param {boolean} [useLocaleNormalize] - On blur, disambiguate thousands vs decimal separators.\n * @returns {number | null}\n */\nexport function parse(raw, useLocaleNormalize = false) {\n  if (raw === \"\" || raw === \"-\") return null;\n  const num = Number(\n    useLocaleNormalize ? normalizeLocale(raw) : replaceDecimalSeparators(raw),\n  );\n  return Number.isNaN(num) ? null : num;\n}\n\n/**\n * Parse a display string with explicit group and decimal separators. Returns\n * `null` for `\"\"`, `\"-\"`, or NaN.\n *\n * @param {string} raw\n * @param {string} groupSeparator - Thousands separator (may be empty).\n * @param {string} decimalSeparator - Decimal separator.\n * @returns {number | null}\n */\nexport function parseLocaleValue(raw, groupSeparator, decimalSeparator) {\n  if (raw === \"\" || raw === \"-\") return null;\n  let normalized = raw;\n  if (groupSeparator) {\n    normalized = normalized.split(groupSeparator).join(\"\");\n  }\n  if (decimalSeparator !== \".\") {\n    normalized = normalized.replace(decimalSeparator, \".\");\n  }\n  const num = Number(normalizeDigits(normalized));\n  return Number.isNaN(num) ? null : num;\n}\n\n/**\n * First step value when the field is empty: `stepStartValue` if set, else `min`,\n * else 0.\n *\n * @param {number | undefined} stepStartValue\n * @param {number | undefined} min\n * @returns {number}\n */\nexport function getDefaultValue(stepStartValue, min) {\n  if (stepStartValue !== undefined) return stepStartValue;\n  return min === undefined ? 0 : min;\n}\n\n/**\n * Clamp `value` to `[min, max]`. Skip `min` or `max` when undefined.\n *\n * @param {number} value\n * @param {number | undefined} min\n * @param {number | undefined} max\n * @returns {number}\n */\nexport function clamp(value, min, max) {\n  if (max !== undefined && value > max) return max;\n  if (min !== undefined && value < min) return min;\n  return value;\n}\n\n/**\n * Round `value` to the decimal places in `step` (fixes 0.1 + 0.2 drift).\n *\n * @param {number} value\n * @param {number} step\n * @returns {number}\n */\nexport function roundToStep(value, step) {\n  const decimalPlaces = step.toString().split(\".\")[1]?.length || 0;\n  return Number(value.toFixed(decimalPlaces));\n}\n","<script>\n  /**\n   * @typedef {\"increment\" | \"decrement\"} NumberInputTranslationId\n   * @event {null | number} change\n   * @event {null | number} input\n   * @event {{ value: null | number, direction: \"up\" | \"down\" }} click:stepper\n   * @event {{ event: FocusEvent, value: null | number }} blur\n   * @event {{ event: FocusEvent, value: null | number, direction: \"up\" | \"down\" }} blur:stepper\n   */\n\n  /**\n   * Set the size of the input.\n   * @type {\"sm\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Specify the input value.\n   * Use `null` to denote \"no value\".\n   * @type {null | number}\n   * @bindable writable\n   */\n  export let value = null;\n\n  /** Specify the step increment */\n  export let step = 1;\n\n  /**\n   * Specify the maximum value.\n   * @type {number}\n   */\n  export let max = undefined;\n\n  /**\n   * Specify the minimum value.\n   * @type {number}\n   */\n  export let min = undefined;\n\n  /**\n   * Provide the value stepping should begin at when the input is empty.\n   * @type {number}\n   */\n  export let stepStartValue = undefined;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` for the input to be read-only */\n  export let readonly = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   */\n  export let fluid = false;\n\n  /** Set to `true` to allow for an empty value */\n  export let allowEmpty = false;\n\n  /**\n   * Set to `true` to preserve decimal input formatting.\n   * When enabled, uses type=\"text\" with inputmode=\"decimal\" instead of type=\"number\".\n   * @type {boolean}\n   * @example\n   * ```svelte\n   * <NumberInput allowDecimal={true} value=\"1.0\" />\n   * <NumberInput allowDecimal={true} value=\"2.00\" />\n   * ```\n   */\n  export let allowDecimal = false;\n\n  /**\n   * Specify a BCP 47 locale for number formatting.\n   * When set, forces type=\"text\" with inputmode=\"decimal\"\n   * and formats the display value using Intl.NumberFormat.\n   * @type {string}\n   * @example\n   * ```svelte\n   * <NumberInput locale=\"de-DE\" value={1234.5} />\n   * <NumberInput locale=\"en-US\" value={1234.5} />\n   * ```\n   */\n  export let locale = undefined;\n\n  /**\n   * Specify Intl.NumberFormat options when `locale` is set.\n   * @type {Intl.NumberFormatOptions}\n   * @example\n   * ```svelte\n   * <NumberInput locale=\"en-US\" formatOptions={{ minimumFractionDigits: 2 }} value={1234.5} />\n   * ```\n   */\n  export let formatOptions = undefined;\n\n  /** Set to `true` to disable the input */\n  export let disabled = false;\n\n  /** Set to `true` to hide the input stepper buttons */\n  export let hideSteppers = false;\n\n  /** Set to `true` to prevent the scroll wheel from changing the input value */\n  export let disableWheel = false;\n\n  /**\n   * Custom validation function.\n   * Receives the current raw input string and locale.\n   * Return `true` to force valid, `false` to force invalid,\n   * or `undefined` to defer to built-in validation.\n   * @type {(value: string, locale: string | undefined) => boolean | undefined}\n   * @example\n   * ```svelte\n   * <NumberInput validate={(raw) => Number(raw) % 2 === 0} invalidText=\"Must be even\" />\n   * ```\n   */\n  export let validate = undefined;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /**\n   * Override the default translation ids.\n   * @type {(id: NumberInputTranslationId) => string}\n   */\n  export let translateWithId = (id) => defaultTranslations[id];\n\n  /**\n   * Default translation ids.\n   * @type {{ increment: \"increment\"; decrement: \"decrement\" }}\n   */\n  export const translationIds = {\n    increment: \"increment\",\n    decrement: \"decrement\",\n  };\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for the input.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, getContext } from \"svelte\";\n  import Add from \"../icons/Add.svelte\";\n  import EditOff from \"../icons/EditOff.svelte\";\n  import Subtract from \"../icons/Subtract.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import {\n    clamp,\n    getDefaultValue,\n    parse,\n    parseLocaleValue,\n    roundToStep,\n  } from \"../utils/numericFormat.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const defaultTranslations = {\n    [translationIds.increment]: \"Increment number\",\n    [translationIds.decrement]: \"Decrement number\",\n  };\n\n  const dispatch = createEventDispatcher();\n  const formContext = getContext(\"carbon:Form\");\n\n  function updateValue(isIncrementing) {\n    // When the input is empty (null) or zero and stepStartValue is set,\n    // jump directly to stepStartValue on the first step.\n    if ((value === null || value === 0) && stepStartValue !== undefined) {\n      value = stepStartValue;\n      if (useTextMode) {\n        inputValue = formatter ? formatter.format(value) : value.toString();\n      } else if (ref) {\n        ref.value = value.toString();\n      }\n      dispatch(\"input\", value);\n      dispatch(\"change\", value);\n      return;\n    }\n\n    if (useTextMode) {\n      const currentValue = value ?? getDefaultValue(stepStartValue, min);\n      const newValue = roundToStep(\n        isIncrementing\n          ? clamp(currentValue + step, undefined, max)\n          : clamp(currentValue - step, min, undefined),\n        step,\n      );\n\n      value = newValue;\n      inputValue = formatter ? formatter.format(newValue) : newValue.toString();\n\n      dispatch(\"input\", value);\n      dispatch(\"change\", value);\n    } else {\n      // When allowEmpty is false and value is null, set to default value first\n      if (!allowEmpty && value === null) {\n        const defaultValue = getDefaultValue(stepStartValue, min);\n        if (ref) {\n          ref.value = defaultValue.toString();\n        }\n        value = defaultValue;\n      }\n\n      if (isIncrementing) {\n        ref.stepUp();\n      } else {\n        ref.stepDown();\n      }\n      value = +ref.value;\n\n      dispatch(\"input\", value);\n      dispatch(\"change\", value);\n    }\n  }\n\n  $: incrementLabel = translateWithId(\"increment\");\n  $: decrementLabel = translateWithId(\"decrement\");\n  $: autoInvalid =\n    value !== null &&\n    ((min !== undefined && value < min) || (max !== undefined && value > max));\n  $: formatter = locale ? new Intl.NumberFormat(locale, formatOptions) : null;\n  $: useTextMode = allowDecimal || !!locale;\n  $: separatorParts = locale\n    ? new Intl.NumberFormat(locale).formatToParts(12345.6)\n    : null;\n  $: groupSeparator = separatorParts\n    ? (separatorParts.find((p) => p.type === \"group\")?.value ?? \"\")\n    : \"\";\n  $: decimalSeparator = separatorParts\n    ? (separatorParts.find((p) => p.type === \"decimal\")?.value ?? \".\")\n    : \".\";\n\n  let inputValue = value?.toString() ?? \"\";\n  let prevValue;\n  let userInputActive = false;\n  let inputFocused = false;\n\n  $: customValid =\n    typeof validate === \"function\"\n      ? validate(useTextMode ? inputValue : String(value ?? \"\"), locale)\n      : undefined;\n  $: effectiveInvalid =\n    (() => {\n      if (invalid) return true;\n      if (customValid === false) return true;\n      if (customValid === true) return false;\n      return autoInvalid;\n    })() && !readonly;\n  // Invalid/warn states are suppressed when the input is disabled or read-only.\n  // `effectiveInvalid` already excludes read-only.\n  $: showInvalid = effectiveInvalid && !disabled;\n  $: showWarn = warn && !effectiveInvalid && !disabled && !readonly;\n  $: isFluid = fluid || !!formContext?.isFluid;\n  $: hasErrorMessage = showInvalid && !!invalidText;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: helperId = `helper-${id}`;\n  $: ariaLabel =\n    $$props[\"aria-label\"] ||\n    \"Numeric input field with increment and decrement buttons\";\n\n  // Only use inputValue tracking in text mode (allowDecimal or locale).\n  // During user typing, don't interfere with inputValue — formatting\n  // happens on blur (onChange) and programmatic changes only.\n  $: if (useTextMode) {\n    const valueChanged = value !== prevValue;\n    prevValue = value;\n\n    if (userInputActive) {\n      // Don't interfere with user typing\n    } else if (value != null) {\n      const valueStr = formatter ? formatter.format(value) : value.toString();\n      const parsedInput = locale\n        ? parseLocaleValue(inputValue, groupSeparator, decimalSeparator)\n        : parse(inputValue);\n      // Sync inputValue to value when:\n      // - The numeric values differ AND input is valid (preserves \"1.0\" formatting)\n      // - OR value changed programmatically (force sync even if input is temporarily invalid)\n      // This allows \"1.5.\" to stay visible while user corrects their typo.\n      if ((parsedInput !== value && parsedInput !== null) || valueChanged) {\n        inputValue = valueStr;\n      }\n    } else if (value == null && inputValue !== \"\") {\n      inputValue = \"\";\n    }\n  }\n\n  function onInput(event) {\n    if (useTextMode) {\n      userInputActive = true;\n      inputValue = event.target.value;\n      const parsed = locale\n        ? parseLocaleValue(event.target.value, groupSeparator, decimalSeparator)\n        : parse(event.target.value);\n      // Preserve last valid value when input is invalid (e.g., \"1.5.\" with two decimals).\n      // This provides better UX by letting users see and correct typos without losing data.\n      if (\n        parsed !== null ||\n        event.target.value === \"\" ||\n        event.target.value === \"-\"\n      ) {\n        value = parsed;\n      }\n    } else {\n      value = parse(event.target.value);\n    }\n\n    dispatch(\"input\", value);\n  }\n\n  function onChange(event) {\n    userInputActive = false;\n    let parsedValue = locale\n      ? parseLocaleValue(event.target.value, groupSeparator, decimalSeparator)\n      : parse(event.target.value, useTextMode);\n\n    // If allowEmpty is false and value would be null, use default value\n    // This prevents the input from staying empty when allowEmpty is false\n    if (!allowEmpty && parsedValue === null && event.target.value === \"\") {\n      parsedValue = getDefaultValue(stepStartValue, min);\n      // Update the input to show the default value\n      if (useTextMode) {\n        inputValue = formatter\n          ? formatter.format(parsedValue)\n          : parsedValue.toString();\n        value = parsedValue;\n      } else if (ref) {\n        ref.value = parsedValue.toString();\n        value = parsedValue;\n      }\n    } else if (\n      useTextMode &&\n      parsedValue === null &&\n      event.target.value !== \"\" &&\n      value !== null\n    ) {\n      // In text mode, normalize invalid input (e.g., \"1.5.\") back to\n      // the last valid value on blur. This provides a clean UX where typos\n      // are corrected when the user leaves the field.\n      inputValue = formatter ? formatter.format(value) : value.toString();\n    } else {\n      value = parsedValue;\n      // Format the display value on blur when locale is set\n      if (formatter && value !== null) {\n        inputValue = formatter.format(value);\n      }\n    }\n\n    dispatch(\"change\", value);\n  }\n\n  function onKeyDown(event) {\n    if (\n      useTextMode &&\n      !readonly &&\n      !disabled &&\n      (event.key === \"ArrowUp\" || event.key === \"ArrowDown\")\n    ) {\n      event.preventDefault();\n      updateValue(event.key === \"ArrowUp\");\n    }\n  }\n\n  function handleInputFocus() {\n    if (isFluid) inputFocused = true;\n  }\n\n  function handleBlur(event) {\n    if (isFluid) inputFocused = false;\n    dispatch(\"blur\", { event, value });\n  }\n\n  function handleStepperBlur(event, direction) {\n    dispatch(\"blur:stepper\", { event, value, direction });\n  }\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-click-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--form-item={true}\n  class:bx--number-input--fluid={isFluid}\n  class:bx--number-input--fluid--focus={isFluid && inputFocused}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <div\n    data-invalid={showInvalid || undefined}\n    class:bx--number={true}\n    class:bx--number--helpertext={true}\n    class:bx--number--readonly={readonly}\n    class:bx--number--light={light}\n    class:bx--number--nolabel={hideLabel}\n    class:bx--number--nosteppers={hideSteppers}\n    class:bx--number--sm={size === \"sm\"}\n    class:bx--number--xl={size === \"xl\"}\n  >\n    {#if $$slots.labelChildren || labelText}\n      <label\n        for={id}\n        class:bx--label={true}\n        class:bx--label--disabled={disabled}\n        class:bx--visually-hidden={hideLabel}\n        class:bx--label--slotted={isFluid && $$slots.labelChildren}\n      >\n        <slot name=\"labelChildren\">{labelText}</slot>\n      </label>\n    {/if}\n    <div\n      class:bx--number__input-wrapper={true}\n      class:bx--number__input-wrapper--warning={showWarn}\n    >\n      {#if useTextMode}\n        <input\n          bind:this={ref}\n          value={inputValue}\n          type=\"text\"\n          inputmode=\"decimal\"\n          pattern=\"[0-9]*\"\n          aria-describedby={hasErrorMessage\n            ? errorId\n            : showWarn\n              ? warnId\n              : helperText && !isFluid\n                ? helperId\n                : undefined}\n          data-invalid={showInvalid || undefined}\n          aria-invalid={showInvalid || undefined}\n          aria-label={labelText ? undefined : ariaLabel}\n          aria-readonly={readonly || undefined}\n          {disabled}\n          {id}\n          {name}\n          {max}\n          {min}\n          {step}\n          {readonly}\n          {...$$restProps}\n          on:change={onChange}\n          on:input={onInput}\n          on:keydown={onKeyDown}\n          on:keydown\n          on:keyup\n          on:focus={handleInputFocus}\n          on:focus\n          on:blur={handleBlur}\n          on:paste\n          on:wheel|nonpassive={(event) => {\n            if (disableWheel) event.preventDefault();\n          }}\n        >\n      {:else}\n        <input\n          bind:this={ref}\n          type=\"number\"\n          inputmode=\"decimal\"\n          aria-describedby={hasErrorMessage\n            ? errorId\n            : showWarn\n              ? warnId\n              : helperText && !isFluid\n                ? helperId\n                : undefined}\n          data-invalid={showInvalid || undefined}\n          aria-invalid={showInvalid || undefined}\n          aria-label={labelText ? undefined : ariaLabel}\n          aria-readonly={readonly || undefined}\n          {disabled}\n          {id}\n          {name}\n          {max}\n          {min}\n          {step}\n          value={value ?? \"\"}\n          {readonly}\n          {...$$restProps}\n          on:change={onChange}\n          on:input={onInput}\n          on:keydown={onKeyDown}\n          on:keydown\n          on:keyup\n          on:focus={handleInputFocus}\n          on:focus\n          on:blur={handleBlur}\n          on:paste\n          on:wheel|nonpassive={(event) => {\n            if (disableWheel) event.preventDefault();\n          }}\n        >\n      {/if}\n      {#if readonly && !isFluid}\n        <EditOff class=\"bx--text-input__readonly-icon\" />\n      {:else if !readonly}\n        {#if showInvalid}\n          <WarningFilled class=\"bx--number__invalid\" />\n        {/if}\n        {#if showWarn}\n          <WarningAltFilled\n            class=\"bx--number__invalid bx--number__invalid--warning\"\n          />\n        {/if}\n      {/if}\n      {#if !hideSteppers}\n        <div class:bx--number__controls={true}>\n          <button\n            type=\"button\"\n            tabindex=\"-1\"\n            title={decrementLabel}\n            aria-label={decrementLabel}\n            class:bx--number__control-btn={true}\n            class:down-icon={true}\n            on:click={() => {\n              updateValue(false);\n              dispatch(\"click:stepper\", { value, direction: \"down\" });\n            }}\n            on:blur={(event) => handleStepperBlur(event, \"down\")}\n            disabled={disabled || readonly}\n          >\n            <Subtract class=\"down-icon\" />\n          </button>\n          <div class:bx--number__rule-divider={true}></div>\n          <button\n            type=\"button\"\n            tabindex=\"-1\"\n            title={incrementLabel}\n            aria-label={incrementLabel}\n            class:bx--number__control-btn={true}\n            class:up-icon={true}\n            on:click={() => {\n              updateValue(true);\n              dispatch(\"click:stepper\", { value, direction: \"up\" });\n            }}\n            on:blur={(event) => handleStepperBlur(event, \"up\")}\n            disabled={disabled || readonly}\n          >\n            <Add class=\"up-icon\" />\n          </button>\n          <div class:bx--number__rule-divider={true}></div>\n        </div>\n      {/if}\n      {#if isFluid}\n        <hr class:bx--number-input__divider={true}>\n        {#if hasErrorMessage}\n          <div id={errorId} class:bx--form-requirement={true}>\n            {invalidText}\n          </div>\n        {/if}\n        {#if showWarn}\n          <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n        {/if}\n      {/if}\n    </div>\n    {#if !isFluid && !showInvalid && !showWarn && helperText}\n      <div\n        id={helperId}\n        class:bx--form__helper-text={true}\n        class:bx--form__helper-text--disabled={disabled}\n      >\n        {helperText}\n      </div>\n    {/if}\n    {#if !isFluid && hasErrorMessage}\n      <div id={errorId} class:bx--form-requirement={true}>{invalidText}</div>\n    {/if}\n    {#if !isFluid && showWarn}\n      <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n    {/if}\n  </div>\n</div>\n","<script lang=\"ts\">\n  import { Field } from '@txstate-mws/svelte-forms'\n  import NumberInput from \"carbon-components-svelte/src/NumberInput/NumberInput.svelte\";\n  import { createEventDispatcher, type ComponentProps, getContext } from 'svelte'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  const dispatch = createEventDispatcher()\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props extends ComponentProps<NumberInput> {\n    path: string\n    notNull?: boolean\n    conditional?: boolean\n    defaultValue?: number\n    labelText?: string\n    required?: boolean\n  }\n\n  export let path: string\n  export let notNull = false\n  export let conditional = true\n  export let defaultValue: number | undefined = undefined\n  export let labelText: string | undefined = undefined\n  /**\n  * When true, the field is marked as required in the UI. This is only for visual indication\n  * and does not affect validation. Validation is handled by the API that receives the data.\n  */\n  export let required = false\n  /**\n   * Indicates if the field is disabled.\n   * @type {boolean}\n   */\n  export let disabled: boolean | undefined = undefined\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n</script>\n\n<Field {path} {notNull} {conditional} {defaultValue} let:invalid let:messages let:value let:setVal let:onBlur let:path={fullpath}>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  <div class=\"cs-field\">\n    <NumberInput {...$$restProps} disabled={isDisabled} name={fullpath} {value} {invalid} aria-invalid={true} aria-required={required} invalidText={errorText} warn={!!warnText} {warnText}\n      on:input={(e) => {\n        const val = e.detail ?? undefined\n        setVal(val)\n        dispatch('input', val)\n      }} on:change on:focus on:blur={() => { onBlur(); dispatch('blur') }}\n    >\n      <svelte:fragment slot=\"labelChildren\">{labelText}{#if required} <span aria-hidden=\"true\">{' '}*</span>{/if}</svelte:fragment>\n    </NumberInput>\n    <FieldStatusText messages={notices} />\n  </div>\n</Field>\n","// @ts-check\nimport { get, writable } from \"svelte/store\";\n\n/**\n * Unique key type for component instance identity.\n * @typedef {{}} InstanceKey\n * @typedef {Object} RadioGroup\n * @property {import(\"svelte/store\").Writable<InstanceKey | undefined>} selectedKey - Key of the currently selected instance\n * @property {Set<InstanceKey>} members - Set of instance keys registered to this group\n */\n\n/** @type {Map<string, RadioGroup>} */\nconst groups = new Map();\n\n/**\n * Register a standalone RadioButton with a name group.\n * @param {string} name - The radio button name (group identifier)\n * @param {InstanceKey} key - Unique instance key for this component\n * @param {boolean} checked - Initial checked state\n * @returns {{\n *   selectedKey: import(\"svelte/store\").Writable<InstanceKey | undefined>,\n *   unregister: () => void\n * }}\n */\nexport function registerRadioButton(name, key, checked) {\n  // For SSR, return a standalone store that doesn't sync\n  if (typeof window === \"undefined\") {\n    return {\n      selectedKey: writable(checked ? key : undefined),\n      unregister: () => {},\n    };\n  }\n\n  if (!groups.has(name)) {\n    groups.set(name, {\n      selectedKey: writable(undefined),\n      members: new Set(),\n    });\n  }\n\n  const group = /** @type {RadioGroup} */ (groups.get(name));\n  group.members.add(key);\n\n  // If this button is initially checked, set it as selected\n  if (checked) {\n    group.selectedKey.set(key);\n  }\n\n  return {\n    selectedKey: group.selectedKey,\n    unregister: () => unregisterRadioButton(name, key),\n  };\n}\n\n/**\n * Unregister a RadioButton from its name group.\n * Cleans up the group if no members remain.\n * @param {string} name - The radio button name (group identifier)\n * @param {InstanceKey} key - Unique instance key for this component\n */\nfunction unregisterRadioButton(name, key) {\n  const group = groups.get(name);\n  if (!group) return;\n\n  group.members.delete(key);\n\n  const currentSelected = get(group.selectedKey);\n\n  if (currentSelected === key) {\n    group.selectedKey.set(undefined);\n  }\n\n  if (group.members.size === 0) {\n    groups.delete(name);\n  }\n}\n\n/**\n * Update the selected key for a name group.\n * Called when a radio button in the group is selected.\n *\n * @param {string} name - The radio button name (group identifier)\n * @param {InstanceKey} key - The key of the newly selected instance\n */\nexport function updateGroupSelection(name, key) {\n  const group = groups.get(name);\n  if (group) {\n    group.selectedKey.set(key);\n  }\n}\n\n/**\n * Get current group state (for testing/debugging).\n * @param {string} name - The radio button name\n * @returns {RadioGroup | undefined}\n */\nexport function getGroup(name) {\n  return groups.get(name);\n}\n\nexport function clearAllGroups() {\n  groups.clear();\n}\n","<script>\n  /**\n   * @template {string | number} [Value=string | number]\n   */\n\n  /**\n   * Specify the value of the radio button.\n   * @type {Value}\n   */\n  export let value = \"\";\n\n  /**\n   * Set to `true` to check the radio button.\n   * @bindable writable\n   */\n  export let checked = false;\n\n  /** Set to `true` to disable the radio button */\n  export let disabled = false;\n\n  /** Set to `true` to mark the field as required */\n  export let required = false;\n\n  /**\n   * Specify the label position.\n   * @type {\"right\" | \"left\"}\n   */\n  export let labelPosition = \"right\";\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for the radio button input.\n   * When multiple standalone RadioButton components share the same `name`,\n   * they form an implicit group and their `checked` state will be synchronized.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { getContext, onMount } from \"svelte\";\n  import { readable } from \"svelte/store\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import {\n    registerRadioButton,\n    updateGroupSelection,\n  } from \"./RadioButtonRegistry.js\";\n\n  const ctx = getContext(\"carbon:RadioButtonGroup\");\n\n  const {\n    add,\n    update,\n    selectedValue,\n    groupName,\n    groupRequired,\n    readonly,\n    helperId,\n  } = ctx ?? {\n    groupName: readable(undefined),\n    groupRequired: readable(undefined),\n    selectedValue: readable(checked ? value : undefined),\n    readonly: readable(false),\n    helperId: readable(undefined),\n  };\n\n  // Track if we're in standalone mode (no RadioButtonGroup context)\n  const isStandalone = !ctx;\n\n  // Unique key for this component instance (used for registry identity)\n  // Using an object reference guarantees uniqueness across all instances\n  const instanceKey = {};\n\n  // Registry state for standalone mode with name\n  /** @type {import(\"svelte/store\").Writable<{} | undefined> | null} */\n  let registryStore = null;\n  /** @type {(() => void) | null} */\n  let unregister = null;\n  /** @type {(() => void) | null} */\n  let registryUnsubscribe = null;\n  /** @type {string | undefined} */\n  let previousName = undefined;\n\n  /**\n   * Initialize registry for standalone mode with name.\n   */\n  function initRegistry(radioName) {\n    // Clean up previous registration if any\n    cleanupRegistry();\n\n    if (isStandalone && radioName) {\n      const registration = registerRadioButton(radioName, instanceKey, checked);\n      registryStore = registration.selectedKey;\n      unregister = registration.unregister;\n\n      // Subscribe to uncheck this radio when a sibling is selected.\n      // Only set checked=false when another instance is selected, not checked=true for self.\n      // This allows parent components (like DataTable) to control the checked state.\n      registryUnsubscribe = registryStore.subscribe((selectedKey) => {\n        if (selectedKey !== undefined && selectedKey !== instanceKey) {\n          checked = false;\n        }\n      });\n\n      previousName = radioName;\n    }\n  }\n\n  function cleanupRegistry() {\n    if (registryUnsubscribe) {\n      registryUnsubscribe();\n      registryUnsubscribe = null;\n    }\n    if (unregister) {\n      unregister();\n      unregister = null;\n    }\n    registryStore = null;\n    previousName = undefined;\n  }\n\n  // Handle name prop changes reactively\n  $: if (isStandalone && name !== previousName) {\n    initRegistry(name);\n  }\n\n  if (add) {\n    add({ checked, value });\n  }\n\n  // Only sync checked when inside RadioButtonGroup.\n  // This allows standalone `RadioButton` usage.\n  $: if (add) {\n    checked = $selectedValue === value;\n  }\n\n  onMount(() => {\n    return () => {\n      cleanupRegistry();\n    };\n  });\n</script>\n\n<div\n  class:bx--radio-button-wrapper={true}\n  class:bx--radio-button-wrapper--label-left={labelPosition === \"left\"}\n  {...$$restProps}\n>\n  <input\n    bind:this={ref}\n    type=\"radio\"\n    {id}\n    name={$groupName ?? name}\n    {checked}\n    {disabled}\n    required={$groupRequired ?? required}\n    {value}\n    aria-describedby={$helperId}\n    class:bx--radio-button={true}\n    on:focus\n    on:blur\n    on:click={(event) => {\n      if ($readonly) event.preventDefault();\n    }}\n    on:change={(event) => {\n      if ($readonly) {\n        event.stopImmediatePropagation();\n        return;\n      }\n      if (update) {\n        // Inside RadioButtonGroup - use context\n        update(value);\n      } else if (name && registryStore) {\n        // Standalone with name - update local checked and notify siblings via registry\n        checked = event.currentTarget.checked;\n        updateGroupSelection(name, instanceKey);\n      } else {\n        // Standalone without name - just update local checked\n        checked = event.currentTarget.checked;\n      }\n    }}\n    on:change\n  >\n  <label class:bx--radio-button__label={true} for={id}>\n    <span class:bx--radio-button__appearance={true}></span>\n    {#if labelText || $$slots.labelChildren}\n      <span\n        class:bx--radio-button__label-text={true}\n        class:bx--visually-hidden={hideLabel}\n      >\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </span>\n    {/if}\n  </label>\n</div>\n","<script>\n  /**\n   * @template {string | number} [Value=string | number]\n   * @event {Value} change\n   */\n\n  /**\n   * Set the selected radio button value.\n   * @type {Value | undefined}\n   * @bindable writable\n   */\n  export let selected = undefined;\n\n  /** Set to `true` to disable the radio buttons */\n  export let disabled = false;\n\n  /**\n   * Set to `true` to require the selection of a radio button.\n   * @type {boolean}\n   */\n  export let required = undefined;\n\n  /**\n   * Specify a name attribute for the radio button inputs.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Specify the legend text.\n   * Alternatively, use the named slot \"legendChildren\".\n   * @example\n   * ```svelte\n   * <RadioButtonGroup>\n   *   <span slot=\"legendChildren\">Custom Legend</span>\n   *   <RadioButton labelText=\"Option 1\" value=\"1\" />\n   *   <RadioButton labelText=\"Option 2\" value=\"2\" />\n   *   <RadioButton labelText=\"Option 3\" value=\"3\" />\n   * </RadioButtonGroup>\n   * ```\n   */\n  export let legendText = \"\";\n\n  /** Set to `true` to visually hide the legend */\n  export let hideLegend = false;\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /**\n   * Specify the label position.\n   * @type {\"right\" | \"left\"}\n   */\n  export let labelPosition = \"right\";\n\n  /**\n   * Specify the orientation of the radio buttons.\n   * @type {\"horizontal\" | \"vertical\"}\n   */\n  export let orientation = \"horizontal\";\n\n  /**\n   * Set an id for the container div element.\n   * @type {string}\n   */\n  export let id = undefined;\n\n  import { createEventDispatcher, onMount, setContext } from \"svelte\";\n  import { readonly as readOnly, writable } from \"svelte/store\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n  /**\n   * @type {import(\"svelte/store\").Writable<Value | undefined>}\n   */\n  const selectedValue = writable(selected);\n  const groupName = writable(name);\n  const groupRequired = writable(required);\n  const groupReadonly = writable(readonly);\n  const fallbackHelperId = uniqueId();\n  /** @type {import(\"svelte/store\").Writable<string | undefined>} */\n  const helperId = writable(undefined);\n  let isInitialRender = true;\n\n  /**\n   * @type {(data: { checked: boolean; value: Value }) => void}\n   */\n  function add({ checked, value }) {\n    if (checked) {\n      selectedValue.set(value);\n    }\n  }\n\n  /**\n   * @type {(value: Value) => void}\n   */\n  function update(value) {\n    if (readonly) return;\n    selected = value;\n  }\n\n  setContext(\"carbon:RadioButtonGroup\", {\n    selectedValue,\n    groupName: readOnly(groupName),\n    groupRequired: readOnly(groupRequired),\n    readonly: readOnly(groupReadonly),\n    helperId: readOnly(helperId),\n    add,\n    update,\n  });\n\n  $: if (!readonly) $selectedValue = selected;\n\n  const unsubscribe = selectedValue.subscribe((value) => {\n    if (readonly) return;\n    selected = value;\n    if (!isInitialRender) {\n      dispatch(\"change\", value);\n    }\n  });\n\n  onMount(() => {\n    $selectedValue = selected;\n    isInitialRender = false;\n    return unsubscribe;\n  });\n\n  $: $groupName = name;\n  $: $groupRequired = required;\n  $: $groupReadonly = readonly;\n  $: $helperId = helperText\n    ? id\n      ? `helper-${id}`\n      : fallbackHelperId\n    : undefined;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  {id}\n  class:bx--form-item={true}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <fieldset\n    class:bx--radio-button-group={true}\n    class:bx--radio-button-group--vertical={orientation === \"vertical\"}\n    class:bx--radio-button-group--label-left={labelPosition === \"left\"}\n    class:bx--radio-button-group--label-right={labelPosition === \"right\"}\n    class:bx--radio-button-group--readonly={readonly}\n    {disabled}\n  >\n    {#if legendText || $$slots.legendChildren}\n      <legend class:bx--label={true} class:bx--visually-hidden={hideLegend}>\n        <slot name=\"legendChildren\">{legendText}</slot>\n      </legend>\n    {/if}\n    <slot />\n  </fieldset>\n  {#if helperText}\n    <div\n      id={$helperId}\n      class:bx--form__helper-text={true}\n      class:bx--form__helper-text--disabled={disabled}\n    >\n      {helperText}\n    </div>\n  {/if}\n</div>\n","<script lang=\"ts\">\n  import { FORM_CONTEXT, FORM_INHERITED_PATH, Field, type FormStore } from '@txstate-mws/svelte-forms'\n  import { Store } from '@txstate-mws/svelte-store'\n  import RadioButton from \"carbon-components-svelte/src/RadioButton/RadioButton.svelte\";\nimport RadioButtonGroup from \"carbon-components-svelte/src/RadioButtonGroup/RadioButtonGroup.svelte\";\n  import { type FormPropsStore, FORM_PROPS_CONTEXT, type RadioMenuItem } from '../util.js'\n  import { createEventDispatcher, getContext, type ComponentProps } from 'svelte'\n  import { isNotBlank, randomid } from 'txstate-utils'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { getDescribedBy } from './util.js'\n\n  const dispatch = createEventDispatcher()\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props extends ComponentProps<RadioButtonGroup> {\n    path: string\n    /** Optional text for the legend of the fieldset.\n     * @deprecated Use `labelText` instead.\n     */\n    legendText?: string\n    /** Alias for `legendText`. Preferred if set. */\n    labelText?: string\n    items: RadioMenuItem[]\n    number?: boolean\n    boolean?: boolean\n    notNull?: boolean\n    conditional?: boolean\n    defaultValue?: string | number | boolean\n    required?: boolean\n    ariaLabelledBy?: string\n    ariaDescribedBy?: string\n    helperText?: string\n    serialize?: ((value: any) => string)\n    deserialize?: ((value: string) => any)\n  }\n\n  /** The path of the field in the form data. Supports dot notation for nested objects.\n   * @type {string}\n   */\n  export let path: string\n  /** Optional text for the legend of the fieldset.\n   * @deprecated Use `labelText` instead.\n   * @type {string | undefined}\n   */\n  export let legendText: string | undefined = undefined\n  /** Alias for `legendText`. Preferred if set.\n   * @type {string | undefined}\n   */\n  export let labelText: string | undefined = undefined\n  /**\n   * ID of an element that labels the field group\n   * using aria-labelledby will override the legend/labelText for screen readers\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let ariaLabelledBy: string | undefined = undefined\n  /**\n   * ID of an element that describes the field group.\n   * Use this for supplementary instructions or hints.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let ariaDescribedBy: string | undefined = undefined\n  /** An array of objects, each representing a radio button item. Each item must have a 'value' property,\n  * and may optionally have 'label' and 'disabled' properties.\n  * @required\n  * @type {RadioMenuItem[]}\n  */\n  export let items: RadioMenuItem[] | undefined\n\n  /** If true, values will be treated as numbers when serializing and deserializing. */\n  export let number = false\n\n  /** If true, values will be treated as booleans when serializing and deserializing. */\n  export let boolean = false\n\n  /** If true, the field must have a value selected. */\n  export let notNull = false\n\n  /** If true, the field will only be displayed if its dependencies are met.\n   * This is typically used to show or hide a field based on the value of another field. */\n  export let conditional = true\n\n  /** The default value of the field. The value of the radio button item that should be selected by default.\n   * @type {string | number | boolean | undefined}\n   */\n  export let defaultValue: any = undefined\n  /**\n  * When true, the field is marked as required in the UI. This is only for visual indication\n  * and does not affect validation. Validation is handled by the API that receives the data.\n  */\n  export let required = false\n  /** Optional helper text to display below the radio group. Replaced by error\n   * text when the field is invalid.\n   * @type {string | undefined}\n   */\n  export let helperText: string | undefined = undefined\n  /** Custom serialization function\n   * @type {((value: any) => string) | undefined}\n  */\n  export let serialize: ((value: any) => string) | undefined = undefined\n  /** Custom deserialization function\n   * @type {((value: string) => any) | undefined}\n  */\n  export let deserialize: ((value: string) => any) | undefined = undefined\n  /**\n   * Indicates if the field is disabled.\n   * @type {boolean}\n   */\n  export let disabled: boolean | undefined = undefined\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n\n  const itemStore = new Store(items)\n  $: itemStore.set(items)\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n\n  const statusId = randomid()\n\n  function onUpdate () {\n    return (e: CustomEvent<string | number>) => {\n      const deserialized = finalDeserialize!(String(e.detail))\n      void store.setField(finalPath, deserialized)\n      dispatch('update', deserialized)\n    }\n  }\n\n  let finalSerialize: ((value: any) => string) | undefined\n  let finalDeserialize: ((value: string) => any) | undefined\n\n</script>\n<!--\n  @component\n\n  By default this component expects values to be strings. If you wish to use other types of values, you\n  must provide a `serialize` and `deserialize` function. If you set the `number` prop, an appropriate\n  serializer and deserializer will be provided by default. However, mixing numbers and strings would not work.\n  For that you should provide your own serialize and deserialize functions.\n\n  If your `items` are not ready on first load (e.g. they're being loaded from an API fetch), you must\n  place this field inside an `{#if}` block until they are ready. Otherwise, the preload state will be\n  overwritten with the default value because it ensures the value is always in the available items.\n-->\n\n<Field {path} {notNull} {conditional} {defaultValue} {boolean} {number} {serialize} {deserialize} allowedValues={items?.filter(i => !i.disabled).map(i => i.value)} bind:finalSerialize bind:finalDeserialize let:messages let:value let:invalid let:onBlur let:setVal let:path={fullpath}>\n  <div class=\"cs-field\">\n    <div on:focusin={() => dispatch('focus')} on:focusout={() => { onBlur(); dispatch('blur') }}>\n      <RadioButtonGroup {...$$restProps} name={fullpath}\n        selected={value}\n        aria-labelledby={ariaLabelledBy}\n        aria-describedby={getDescribedBy([ariaDescribedBy, statusId])}\n        on:change={onUpdate()}\n      >\n      <svelte:fragment slot=\"legendChildren\">{#if !ariaLabelledBy}{labelText ?? legendText}{#if required} <span aria-hidden=\"true\">{' '}*</span>{/if}{/if}</svelte:fragment>\n        {#each $itemStore as item (item.value)}\n          {@const srlzd = finalSerialize?.(item.value)}\n          <RadioButton value={srlzd} labelText={item.label ?? srlzd} disabled={!!item.disabled || isDisabled} aria-invalid={invalid} aria-required={required} />\n        {/each}\n      </RadioButtonGroup>\n    </div>\n    <FieldStatusText id={statusId} {helperText} {messages} {invalid} />\n  </div>\n</Field>\n\n\n<style>\n  :global(.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance::before) {\n    background-color: var(--maroon);\n  }\n</style>\n","<script>\n  /** Set to `true` to disable the optgroup element */\n  export let disabled = false;\n\n  /** Specify the label attribute of the optgroup element */\n  export let label = \"Provide label\";\n</script>\n\n<optgroup {label} {disabled} class:bx--select-optgroup={true} {...$$restProps}>\n  <slot />\n</optgroup>\n","<script lang=\"ts\">\n  import { FORM_CONTEXT, FORM_INHERITED_PATH, Field, type FormStore } from '@txstate-mws/svelte-forms'\n  import { Store } from '@txstate-mws/svelte-store'\n  import Select from \"carbon-components-svelte/src/Select/Select.svelte\";\nimport SelectItem from \"carbon-components-svelte/src/Select/SelectItem.svelte\";\nimport SelectItemGroup from \"carbon-components-svelte/src/Select/SelectItemGroup.svelte\";\n  import { afterUpdate, createEventDispatcher, type ComponentProps, getContext } from 'svelte'\n  import { groupby, isNotBlank, randomid } from 'txstate-utils'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { FILTER_UI_CONTEXT } from '../FilterUIQuickSlotContext.svelte'\n  import { loadingItemId, type SelectMenuItem } from './util'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util'\n\n  const dispatch = createEventDispatcher()\n  const filterUiCtx = getContext<{ quickslot?: boolean }>(FILTER_UI_CONTEXT)\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n  const defaultGroup = 'select_group_' + randomid()\n\n  interface $$Props extends ComponentProps<Select> {\n    labelText: string\n    path: string\n    items: SelectMenuItem[]\n    number?: boolean\n    json?: boolean\n    notNull?: boolean\n    conditional?: boolean\n    defaultValue?: any\n    placeholder?: string\n    required?: boolean\n    loading?: boolean\n    loadingText?: string\n    serialize?: ((value: any) => string)\n    deserialize?: ((value: string) => any)\n  }\n\n  /**\n   * The label text for the select field\n   * @type {string}\n   */\n  export let labelText: string\n\n  /**\n * Path to the form field in the data structure\n * @type {string}\n */\nexport let path: string\n\n/**\n * Array of menu items for the select component\n * @type {SelectMenuItem[]}\n */\nexport let items: SelectMenuItem[] | undefined\n\n/**\n * Set to true to treat the value as a number instead of string\n * @type {boolean}\n * @default false\n */\nexport let number = false\n\n/**\n * Set to true to serialize/deserialize as JSON\n * @type {boolean}\n * @default false\n */\nexport let json = false\n\n/**\n * Set to true to prevent null values\n * @type {boolean}\n * @default false\n */\nexport let notNull = false\n\n/**\n * Whether the field is conditional\n * @type {boolean}\n * @default true\n */\nexport let conditional = true\n\n/**\n * Default value for the select field\n * @type {any}\n * @default undefined\n */\nexport let defaultValue: any = undefined\n\n/**\n * Placeholder text shown when no option is selected\n * @type {string}\n * @default \"Select\" or \"Select [labelText]\" if labelText is provided\n */\nexport let placeholder = 'Select' + (labelText ? ' ' + labelText : '')\n\n/**\n  * When true, the field is marked as required in the UI. This is only for visual indication\n  * and does not affect validation. Validation is handled by the API that receives the data.\n  */\n  export let required = false\n\n/**\n * When true, appends an unselectable `loadingText` option at the bottom of the dropdown while\n * more options load; the closed trigger still shows the placeholder or current selection.\n * @type {boolean}\n * @default false\n */\nexport let loading = false\n\n/**\n * Text shown as the loading indicator.\n * @type {string}\n * @default 'Loading options...'\n */\nexport let loadingText = 'Loading options...'\n\n/**\n * Custom function to serialize values for form submission\n * @type {((value: any) => string) | undefined}\n * @default undefined\n */\nexport let serialize: ((value: any) => string) | undefined = undefined\n\n/**\n * Custom function to deserialize values from form data\n * @type {((value: string) => any) | undefined}\n * @default undefined\n */\nexport let deserialize: ((value: string) => any) | undefined = undefined\n  /**\n   * Indicates if the field is disabled.\n   * @type {boolean}\n   */\n  export let disabled: boolean | undefined = undefined\n  const store = getContext<FormStore>(FORM_CONTEXT)\n  const inheritedPath = getContext<string>(FORM_INHERITED_PATH)\n  const finalPath = [inheritedPath, path].filter(isNotBlank).join('.')\n\n  const itemStore = new Store(items)\n  $: itemStore.set(items)\n  $: grouped = groupby($itemStore, item => item.group ?? defaultGroup)\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n\n  let inputelement: HTMLSelectElement | undefined\n  $: inputelement?.setAttribute('aria-required', required ? 'true' : 'false')\n\n  // Whether the picker is drawn from CSS rather than by the browser or OS. layoutbase.css opts\n  // `.bx--select-input` into `appearance: base-select` behind the same `@supports` condition, so\n  // support implies the CSS-drawn picker is the one in use.\n  const baseSelect = typeof CSS !== 'undefined' && CSS.supports('appearance', 'base-select')\n\n  // Labels the trigger button below, which a browser supporting base-select renders in place of the\n  // trigger it would otherwise draw itself. Browsers without base-select never show the button;\n  // layoutbase.css hides it outside its `@supports` block.\n  let triggerLabel = ''\n  function syncTriggerLabel () {\n    if (!inputelement) return\n    const next = inputelement.options[inputelement.selectedIndex]?.text ?? ''\n    if (next !== triggerLabel) triggerLabel = next\n  }\n\n  // Where the picker is CSS-drawn, the loading row carries `aria-disabled`.\n  function isLoadingRow (el: Element | null | undefined) {\n    return el instanceof HTMLOptionElement && el.value === loadingItemId(finalPath)\n  }\n\n  function markLoadingRow () {\n    if (!baseSelect || !inputelement) return\n    for (const option of inputelement.options) {\n      if (isLoadingRow(option)) option.setAttribute('aria-disabled', 'true')\n    }\n  }\n\n  afterUpdate(() => {\n    markLoadingRow()\n    syncTriggerLabel()\n  })\n\n  /**\n   * Keeps the loading row unselectable where the picker is CSS-drawn.\n   */\n  function refuseLoadingRow (node: HTMLElement, currentValue: string) {\n    if (!baseSelect) return\n    let selectedValue = currentValue\n    // Refused before anything commits, so the picker stays open and there is nothing to undo.\n    function onKeydown (e: KeyboardEvent) {\n      if (e.key !== 'Enter' && e.key !== ' ') return\n      if (!isLoadingRow(document.activeElement)) return\n      e.preventDefault()\n    }\n    // Catches the commits no click delivers (typeahead, autofill, synthetic events); real mouse\n    // clicks never arrive because layoutbase.css turns off hit-testing on the row.\n    function onCommit (e: Event) {\n      const el = e.target\n      if (!(el instanceof HTMLSelectElement) || !isLoadingRow(el.options[el.selectedIndex])) return\n      e.stopPropagation()\n      if (e.type !== 'change') return\n      el.value = selectedValue\n      syncTriggerLabel()\n    }\n    // Capture phase on this ancestor always runs before carbon's listeners on the select itself,\n    // regardless of registration order, so the refusal stays ahead of whatever carbon does.\n    node.addEventListener('keydown', onKeydown, true)\n    node.addEventListener('input', onCommit, true)\n    node.addEventListener('change', onCommit, true)\n    return {\n      update (nextValue: string) { selectedValue = nextValue },\n      destroy () {\n        node.removeEventListener('keydown', onKeydown, true)\n        node.removeEventListener('input', onCommit, true)\n        node.removeEventListener('change', onCommit, true)\n      }\n    }\n  }\n\n  let finalSerialize: ((value: any) => string) | undefined\n  let finalDeserialize: ((value: string) => any) | undefined\n\n  function onUpdate () {\n    return (e: CustomEvent<string | number>) => {\n      const deserialized = finalDeserialize!(String(e.detail))\n      void store.setField(finalPath, deserialized)\n      dispatch('update', deserialized)\n    }\n  }\n\n</script>\n<!--\n  @component\n\n  By default this component expects values to be strings. If you wish to use other types of values, you\n  must provide a `serialize` and `deserialize` function. If you set the `number` prop, an appropriate\n  serializer and deserializer will be provided by default. However, mixing numbers and strings would not work.\n  For that you should provide your own serialize and deserialize functions.\n-->\n\n<Field {path} {notNull} {conditional} {defaultValue} {number} {json} {serialize} {deserialize} allowedValues={items?.filter(i => !i.disabled).map(i => i.value)} bind:finalSerialize bind:finalDeserialize let:invalid let:messages let:value let:onBlur let:path={fullpath}>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  {@const selectedOptionValue = value == null || value === '' ? '' : (finalSerialize ? finalSerialize(value) : String(value))}\n  <div class=\"cs-field cs-field-select\" use:refuseLoadingRow={selectedOptionValue}>\n    <Select disabled={isDisabled} {...$$restProps} name={fullpath} {invalid} invalidText={errorText} warn={!!warnText} {warnText} selected={value} aria-busy={loading}\n      bind:ref={inputelement}\n      hideLabel={$$restProps.hideLabel ?? filterUiCtx?.quickslot}\n      on:update={onUpdate()}\n      on:blur={() => { onBlur(); dispatch('blur') }}\n      on:change={syncTriggerLabel}\n      on:change on:input on:focus\n    >\n      <svelte:fragment slot=\"labelChildren\">{labelText}{#if required} <span aria-hidden=\"true\">{' '}*</span>{/if}</svelte:fragment>\n      <button type=\"button\" class=\"cs-select-trigger\">{triggerLabel}</button>\n      {#if !notNull || (loading && !isNotBlank(value))}\n        <SelectItem value=\"\" text={placeholder} class=\"cs-placeholder-option\" />\n      {/if}\n      {#each Object.entries(grouped) as [group, groupitems]}\n        {#if group === defaultGroup}\n          {#each groupitems as item (item.value)}\n            <SelectItem value={finalSerialize ? finalSerialize(item.value) : item.value} text={item.label} disabled={!!item.disabled} />\n          {/each}\n        {:else}\n        <SelectItemGroup label={group}>\n          {#each groupitems as item (item.value)}\n            <SelectItem value={finalSerialize ? finalSerialize(item.value) : item.value} text={item.label} disabled={!!item.disabled} />\n          {/each}\n        </SelectItemGroup>\n        {/if}\n      {/each}\n      {#if loading}\n        <SelectItem value={loadingItemId(finalPath)} text={loadingText} disabled={!baseSelect} class=\"cs-loading-option\" />\n      {/if}\n    </Select>\n    <FieldStatusText messages={notices} />\n  </div>\n</Field>\n\n<style>\n  :global(.cs-field-select option.cs-loading-option:disabled) {\n    --cds-text-disabled: var(--cds-text-01, #161616);\n  }\n</style>\n","// @ts-check\n// Firefox < 125 has no Intl.Segmenter; code-point iteration is still closer to\n// user-perceived length than value.length (UTF-16 code units).\n\nconst segmenter =\n  typeof Intl !== \"undefined\" && typeof Intl.Segmenter === \"function\"\n    ? new Intl.Segmenter()\n    : null;\n\n/**\n * Count user-perceived characters (grapheme clusters) in `value`.\n *\n * @param {string} value\n * @returns {number}\n */\nexport function graphemeCount(value) {\n  if (segmenter) {\n    let count = 0;\n    for (const _ of segmenter.segment(value)) count++;\n    return count;\n  }\n  return [...value].length;\n}\n","<script>\n  /**\n   * Specify the textarea value.\n   * @type {null | string}\n   * @bindable writable\n   */\n  export let value = \"\";\n\n  /** Specify the placeholder text */\n  export let placeholder = \"\";\n\n  /**\n   * Specify the number of cols.\n   * If specified, the textarea will not be resizable.\n   * Override this using the `resize` style attribute.\n   * @type {number}\n   */\n  export let cols = undefined;\n\n  /** Specify the number of rows */\n  export let rows = 4;\n\n  /**\n   * Specify the max character count.\n   * @type {number}\n   */\n  export let maxCount = undefined;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the input */\n  export let disabled = false;\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the text for the invalid state */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   */\n  export let fluid = false;\n\n  /** Set an id for the textarea element */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for the input.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /**\n   * Obtain a reference to the textarea HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { getContext } from \"svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import { graphemeCount } from \"../utils/graphemeCount.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const formContext = getContext(\"carbon:Form\");\n\n  $: helperId = `helper-${id}`;\n  $: counterId = `counter-${id}`;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: isFluid = fluid || !!formContext?.isFluid;\n  $: showCounter = !!maxCount && !!(labelText || $$slots.labelChildren);\n  $: errorMessageId = showInvalid ? errorId : undefined;\n  $: describedBy =\n    [\n      showInvalid\n        ? null\n        : showWarn && !isFluid\n          ? warnId\n          : helperText && !isFluid\n            ? helperId\n            : null,\n      showCounter ? counterId : null,\n    ]\n      .filter(Boolean)\n      .join(\" \") || undefined;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-click-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n  class:bx--form-item={true}\n  class:bx--text-area--fluid={isFluid}\n>\n  {#if labelText || $$slots.labelChildren}\n    <div class:bx--text-area__label-wrapper={true}>\n      <label\n        for={id}\n        class:bx--label={true}\n        class:bx--visually-hidden={hideLabel && !isFluid}\n        class:bx--label--disabled={disabled}\n        class:bx--label--slotted={isFluid && $$slots.labelChildren}\n      >\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </label>\n      {#if maxCount}\n        <div\n          id={counterId}\n          class:bx--label={true}\n          class:bx--label--disabled={disabled}\n          class:bx--text-area__label-counter={true}\n        >\n          {graphemeCount(value ?? \"\")}/{maxCount}\n        </div>\n      {/if}\n    </div>\n  {/if}\n  <div\n    class:bx--text-area__wrapper={true}\n    class:bx--text-area__wrapper--readonly={readonly}\n    class:bx--text-area__wrapper--warn={showWarn}\n    data-invalid={showInvalid || undefined}\n    data-warn={showWarn || undefined}\n  >\n    {#if showInvalid && !isFluid}\n      <WarningFilled class=\"bx--text-area__invalid-icon\" />\n    {/if}\n    {#if showWarn && !isFluid}\n      <WarningAltFilled\n        class=\"bx--text-area__invalid-icon\n        bx--text-area__invalid-icon--warning\"\n      />\n    {/if}\n    <textarea\n      bind:this={ref}\n      bind:value\n      aria-invalid={showInvalid || undefined}\n      aria-errormessage={errorMessageId}\n      aria-describedby={describedBy}\n      data-warn={showWarn || undefined}\n      {disabled}\n      {id}\n      {name}\n      {cols}\n      {rows}\n      {placeholder}\n      {readonly}\n      class:bx--text-area={true}\n      class:bx--text-area--light={light}\n      class:bx--text-area--invalid={showInvalid}\n      class:bx--text-area--warning={showWarn}\n      style:resize={typeof cols === \"number\" ? \"none\" : undefined}\n      maxlength={maxCount ?? undefined}\n      {...$$restProps}\n      on:change\n      on:input\n      on:keydown\n      on:keyup\n      on:focus\n      on:blur\n      on:paste\n    ></textarea>\n    {#if isFluid}\n      <hr class:bx--text-area__divider={true}>\n      {#if showInvalid}\n        <div id={errorId} class:bx--form-requirement={true} role=\"alert\">\n          {invalidText}\n          <WarningFilled class=\"bx--text-area__invalid-icon\" />\n        </div>\n      {/if}\n      {#if showWarn}\n        <div id={warnId} class:bx--form-requirement={true}>\n          {warnText}\n          <WarningAltFilled\n            class=\"bx--text-area__invalid-icon\n            bx--text-area__invalid-icon--warning\"\n          />\n        </div>\n      {/if}\n    {/if}\n  </div>\n  {#if !isFluid && !showInvalid && !showWarn && helperText}\n    <div\n      id={helperId}\n      class:bx--form__helper-text={true}\n      class:bx--form__helper-text--disabled={disabled}\n    >\n      {helperText}\n    </div>\n  {/if}\n  {#if !isFluid && showInvalid}\n    <div id={errorId} class:bx--form-requirement={true} role=\"alert\">\n      {invalidText}\n    </div>\n  {/if}\n  {#if !isFluid && showWarn}\n    <div id={warnId} class:bx--form-requirement={true}>{warnText}</div>\n  {/if}\n</div>\n","<script lang=\"ts\">\n  import { Field } from '@txstate-mws/svelte-forms'\n  import TextArea from \"carbon-components-svelte/src/TextArea/TextArea.svelte\";\n  import { createEventDispatcher, type ComponentProps, getContext } from 'svelte'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  const dispatch = createEventDispatcher()\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props extends ComponentProps<TextArea> {\n    labelText: string\n    path: string\n    notNull?: boolean\n    conditional?: boolean\n    defaultValue?: string\n    required?: boolean\n  }\n\n  /**\n   * The label text for the text field\n   * @type {string}\n   */\n  export let labelText: string\n\n  /**\n  * Path to the form field in the data structure\n  * @type {string}\n  */\n  export let path: string\n\n  /**\n  * Set to true to prevent null/undefined values\n  * @type {boolean}\n  * @default false\n  */\n  export let notNull = false\n\n  /**\n  * Whether the field is conditional\n  * @type {boolean}\n  * @default true\n  */\n  export let conditional = true\n\n  /**\n  * Default value for the text field. If notNull is true, defaults to empty string\n  * @type {string | undefined}\n  * @default undefined\n  */\n  export let defaultValue: string | undefined = notNull ? '' : undefined\n  /**\n  * When true, the field is marked as required in the UI. This is only for visual indication\n  * and does not affect validation. Validation is handled by the API that receives the data.\n  */\n  export let required = false\n\n  export let disabled: boolean | undefined = undefined\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n\n  function onInput (setVal: any, deserialize: any) {\n    return (e: Event) => {\n      const val = (e.target as HTMLTextAreaElement | undefined)?.value ?? ''\n      const deserialized = deserialize(val)\n      setVal(deserialized)\n      dispatch('input', val)\n    }\n  }\n</script>\n\n<Field {path} {notNull} {conditional} {defaultValue} let:invalid let:messages let:value let:setVal let:deserialize={fDeserialize} let:onBlur let:path={fullpath}>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  <div class=\"cs-field\">\n    <TextArea {...$$restProps} disabled={isDisabled} name={fullpath} {value} {invalid} invalidText={errorText} warn={!!warnText} {warnText} aria-invalid={invalid} aria-required={required}\n      on:input={onInput(setVal, fDeserialize)} on:change on:focus on:blur={() => { onBlur(); dispatch('blur') }}\n    >\n      <svelte:fragment slot=\"labelChildren\">{labelText}{#if required} <span aria-hidden=\"true\">{' '}*</span>{/if}</svelte:fragment>\n    </TextArea>\n    <FieldStatusText messages={notices} />\n  </div>\n</Field>\n","<script>\n  /**\n   * @event {null | number | string} change\n   * @event {null | number | string} input\n   */\n\n  /**\n   * Set the size of the input.\n   * @type {\"xs\" | \"sm\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Specify the input value.\n   *\n   * `value` will be set to `null` if type=\"number\" and the value is empty.\n   * @type {null | number | string}\n   * @bindable writable\n   */\n  export let value = \"\";\n\n  /** Specify the placeholder text */\n  export let placeholder = \"\";\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the input */\n  export let disabled = false;\n\n  /** Specify the helper text */\n  export let helperText = \"\";\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /**\n   * Specify a name attribute for the input.\n   * @type {string}\n   */\n  export let name = undefined;\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /** Set to `true` to visually hide the label text */\n  export let hideLabel = false;\n\n  /**\n   * Specify the max character count allowed for the input.\n   * Displays a character counter to the right of the label.\n   * @type {number}\n   */\n  export let maxCount = undefined;\n\n  /** Set to `true` to indicate an invalid state */\n  export let invalid = false;\n\n  /** Specify the invalid state text */\n  export let invalidText = \"\";\n\n  /** Set to `true` to indicate a warning state */\n  export let warn = false;\n\n  /** Specify the warning state text */\n  export let warnText = \"\";\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /** Set to `true` to mark the field as required */\n  export let required = false;\n\n  /** Set to `true` to use the inline variant */\n  export let inline = false;\n\n  /** Set to `true` to use the read-only variant */\n  export let readonly = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   * Cannot be combined with the inline variant.\n   */\n  export let fluid = false;\n\n  import { createEventDispatcher, getContext } from \"svelte\";\n  import EditOff from \"../icons/EditOff.svelte\";\n  import WarningAltFilled from \"../icons/WarningAltFilled.svelte\";\n  import WarningFilled from \"../icons/WarningFilled.svelte\";\n  import { graphemeCount } from \"../utils/graphemeCount.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const ctx = getContext(\"carbon:Form\");\n  const dispatch = createEventDispatcher();\n\n  function parse(raw) {\n    if ($$restProps.type !== \"number\") return raw;\n    return raw === \"\" ? null : Number(raw);\n  }\n\n  /** @type {(e: Event) => void} */\n  function onInput(event) {\n    value = parse(event.target.value);\n    dispatch(\"input\", value);\n  }\n\n  /** @type {(e: Event) => void} */\n  function onChange(event) {\n    dispatch(\"change\", parse(event.target.value));\n  }\n\n  $: showInvalid = invalid && !disabled && !readonly;\n  $: showWarn = warn && !invalid && !disabled && !readonly;\n  $: isFluid = !inline && (fluid || !!ctx?.isFluid);\n  $: helperId = `helper-${id}`;\n  $: errorId = `error-${id}`;\n  $: warnId = `warn-${id}`;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-click-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--form-item={true}\n  class:bx--text-input-wrapper={true}\n  class:bx--text-input-wrapper--inline={inline}\n  class:bx--text-input-wrapper--light={light}\n  class:bx--text-input-wrapper--readonly={readonly}\n  class:bx--text-input--fluid={isFluid}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  {#if inline}\n    <div class:bx--text-input__label-helper-wrapper={true}>\n      {#if labelText || $$slots.labelChildren}\n        <div class:bx--text-input__label-wrapper={true}>\n          <label\n            for={id}\n            class:bx--label={true}\n            class:bx--visually-hidden={hideLabel}\n            class:bx--label--disabled={disabled}\n            class:bx--label--inline={inline}\n            class:bx--label--inline--xs={size === \"xs\"}\n            class:bx--label--inline--sm={size === \"sm\"}\n            class:bx--label--inline--xl={size === \"xl\"}\n            class:bx--label--slotted={isFluid && $$slots.labelChildren}\n          >\n            <slot name=\"labelChildren\"> {labelText} </slot>\n          </label>\n          {#if maxCount != null}\n            <div\n              class:bx--label={true}\n              class:bx--label--disabled={disabled}\n              class:bx--text-input__label-counter={true}\n            >\n              {graphemeCount((value ?? \"\").toString())}/{maxCount}\n            </div>\n          {/if}\n        </div>\n      {/if}\n      {#if !isFluid && helperText}\n        <div\n          class:bx--form__helper-text={true}\n          class:bx--form__helper-text--disabled={disabled}\n          class:bx--form__helper-text--inline={inline}\n        >\n          {helperText}\n        </div>\n      {/if}\n    </div>\n  {/if}\n  {#if !inline && (labelText || $$slots.labelChildren)}\n    <div class:bx--text-input__label-wrapper={true}>\n      <label\n        for={id}\n        class:bx--label={true}\n        class:bx--visually-hidden={hideLabel}\n        class:bx--label--disabled={disabled}\n        class:bx--label--inline={inline}\n        class:bx--label--inline-sm={inline && size === \"sm\"}\n        class:bx--label--inline-xl={inline && size === \"xl\"}\n        class:bx--label--slotted={isFluid && $$slots.labelChildren}\n      >\n        <slot name=\"labelChildren\"> {labelText} </slot>\n      </label>\n      {#if maxCount != null}\n        <div\n          class:bx--label={true}\n          class:bx--label--disabled={disabled}\n          class:bx--text-input__label-counter={true}\n        >\n          {graphemeCount((value ?? \"\").toString())}/{maxCount}\n        </div>\n      {/if}\n    </div>\n  {/if}\n  <div\n    class:bx--text-input__field-outer-wrapper={true}\n    class:bx--text-input__field-outer-wrapper--inline={inline}\n  >\n    <div\n      data-invalid={showInvalid || undefined}\n      data-warn={showWarn || undefined}\n      class:bx--text-input__field-wrapper={true}\n      class:bx--text-input__field-wrapper--warning={showWarn}\n    >\n      {#if readonly}\n        <EditOff class=\"bx--text-input__readonly-icon\" />\n      {:else}\n        {#if showInvalid}\n          <WarningFilled class=\"bx--text-input__invalid-icon\" />\n        {/if}\n        {#if showWarn}\n          <WarningAltFilled\n            class=\"bx--text-input__invalid-icon\n            bx--text-input__invalid-icon--warning\"\n          />\n        {/if}\n      {/if}\n      <input\n        bind:this={ref}\n        data-invalid={showInvalid || undefined}\n        aria-invalid={showInvalid || undefined}\n        data-warn={showWarn || undefined}\n        aria-errormessage={showInvalid ? errorId : undefined}\n        aria-describedby={showInvalid\n          ? undefined\n          : showWarn\n            ? warnId\n            : helperText && !isFluid\n              ? helperId\n              : undefined}\n        {disabled}\n        {id}\n        {name}\n        {placeholder}\n        bind:value\n        {required}\n        {readonly}\n        class:bx--text-input={true}\n        class:bx--text-input--light={light}\n        class:bx--text-input--invalid={showInvalid}\n        class:bx--text-input--warning={showWarn}\n        class:bx--text-input--xs={size === \"xs\"}\n        class:bx--text-input--sm={size === \"sm\"}\n        class:bx--text-input--xl={size === \"xl\"}\n        maxlength={maxCount ?? undefined}\n        {...$$restProps}\n        on:change={onChange}\n        on:input={onInput}\n        on:keydown\n        on:keyup\n        on:focus\n        on:blur\n        on:paste\n      >\n      {#if isFluid}\n        <hr class:bx--text-input__divider={true}>\n      {/if}\n      {#if isFluid && showInvalid}\n        <div class:bx--form-requirement={true} id={errorId} role=\"alert\">\n          {invalidText}\n        </div>\n      {/if}\n      {#if isFluid && showWarn}\n        <div class:bx--form-requirement={true} id={warnId}>{warnText}</div>\n      {/if}\n    </div>\n    {#if !showInvalid && !showWarn && !isFluid && !inline && helperText}\n      <div\n        id={helperId}\n        class:bx--form__helper-text={true}\n        class:bx--form__helper-text--disabled={disabled}\n        class:bx--form__helper-text--inline={inline}\n      >\n        {helperText}\n      </div>\n    {/if}\n    {#if !isFluid && showInvalid}\n      <div class:bx--form-requirement={true} id={errorId} role=\"alert\">\n        {invalidText}\n      </div>\n    {/if}\n    {#if !isFluid && showWarn}\n      <div class:bx--form-requirement={true} id={warnId}>{warnText}</div>\n    {/if}\n  </div>\n</div>\n","<script lang=\"ts\">\n  import { Field } from '@txstate-mws/svelte-forms'\n  import TextInput from \"carbon-components-svelte/src/TextInput/TextInput.svelte\";\n  import { createEventDispatcher, getContext, type ComponentProps } from 'svelte'\n  import FieldStatusText from './FieldStatusText.svelte'\n  import { type FormPropsStore, FORM_PROPS_CONTEXT } from '../util.js'\n\n  import { FILTER_UI_CONTEXT } from '../FilterUIQuickSlotContext.svelte'\n\n  const dispatch = createEventDispatcher()\n  const filterUiCtx = getContext<{ quickslot?: boolean }>(FILTER_UI_CONTEXT)\n  const formProps = getContext<FormPropsStore | undefined>(FORM_PROPS_CONTEXT)\n\n  interface $$Props extends ComponentProps<TextInput> {\n    /** The form data path this field binds to */\n    path: string\n    /** Set to true if the field should accept and validate numerical input */\n    number?: boolean\n    /** When true, empty string values are converted to null */\n    notNull?: boolean\n    /** Controls whether the field is included in form data. When false, the field value is excluded */\n    conditional?: boolean\n    /** Initial value for the field. Required if notNull is true */\n    defaultValue?: string\n  }\n\n  /**\n   * @event {string} input - Fired when input value changes, passes the raw input value\n   * @event {void} blur - Fired when input loses focus\n   * @event {void} change - Forwarded from TextInput\n   * @event {void} focus - Forwarded from TextInput\n   */\n\n  /** The form data path this field binds to\n   * @type {string}\n  */\n  export let path: string\n  /** Set to true if the field should accept and validate numerical input */\n  export let number = false\n  /** When true, empty string values are converted to null */\n  export let notNull = false\n  /** Controls whether the field is included in form data */\n  export let conditional = true\n  /**\n   * Initial value for the field\n   * @type {string | undefined }\n   */\n  export let defaultValue: string | undefined = notNull ? '' : undefined\n  /**\n   * When true, the field is marked as required in the UI. This is only for visual indication\n   * and does not affect validation. Validation is handled by the API that receives the data.\n   */\n  export let required = false\n  /** Specify the label text */\n  export let labelText = ''\n\n  let harmfulUpdateTimer = 0\n  let clearValue: string | undefined\n  $: hideLabel = $$restProps.hideLabel ?? filterUiCtx?.quickslot\n\n  export let disabled: boolean | undefined = undefined\n\n  $: isDisabled = disabled ?? $formProps?.disabled ?? false\n</script>\n\n<Field {path} {notNull} {conditional} {defaultValue} {number} let:invalid let:messages let:value let:setVal let:deserialize let:onBlur let:path={fullpath}>\n  {@const errorText = (messages.filter(m => m.type === 'error' || m.type === 'system').map(m => m.message).join('\\n')) || undefined}\n  {@const warnText = errorText ? undefined : ((messages.filter(m => m.type === 'warning').map(m => m.message).join('\\n')) || undefined)}\n  {@const notices = messages.filter(m => m.type !== 'error' && m.type !== 'system' && (m.type !== 'warning' || errorText))}\n  <div class=\"cs-field\">\n    <TextInput disabled={isDisabled} {...$$restProps} name={fullpath} value={clearValue ?? value} {invalid} invalidText={errorText} warn={!!warnText} {warnText} aria-required={required}\n      placeholder={$$restProps.placeholder ?? (hideLabel ? labelText : undefined)}\n      {hideLabel}\n      on:input={(e) => {\n        clearTimeout(harmfulUpdateTimer)\n        const val = String(e.detail ?? '')\n        const deserialized = deserialize(val)\n        const avoidHarmfulUpdate = typeof deserialized === 'number' && String(deserialized) !== val && /^\\d*\\.0*/.test(val)\n        if (!avoidHarmfulUpdate) {\n          if (deserialized == null && val.length) {\n            if (clearValue == null) clearValue = ''\n            else clearValue += ' '\n          } else {\n            clearValue = undefined\n          }\n          setVal(deserialized)\n        } else harmfulUpdateTimer = window.setTimeout(() => { setVal(deserialized) }, 1500)\n        dispatch('input', val)\n      }} on:change on:focus on:blur={() => { onBlur(); dispatch('blur') }}\n    >\n    <svelte:fragment slot=\"labelChildren\">{labelText}{#if required} <span aria-hidden=\"true\">{' '}*</span>{/if}</svelte:fragment>\n\n    </TextInput>\n    <FieldStatusText messages={notices} />\n  </div>\n</Field>\n","<script lang=\"ts\">\n  import { randomid } from 'txstate-utils'\n  const titleId = randomid()\n  export let title: string\n</script>\n\n<section class=\"flow\" aria-labelledby={titleId}>\n  <header id={titleId} class=\"bg-blue-100 p-2 font-black text-lg w-full\">{title}</header>\n  <div class=\"flow px-2\">\n    <slot />\n  </div>\n</section>\n","import { Store } from '@txstate-mws/svelte-store';\nimport { Cache, keyby, pick } from 'txstate-utils';\nimport { derived, writable } from 'svelte/store';\nfunction accumulateNodes(root, depth = 0) {\n    const ret = [];\n    if (depth === 0) {\n        root.__type = 'root';\n    }\n    ret.push(root);\n    for (const c of root.children ?? []) {\n        c.parent = root;\n        const matches = c.routeId.matchAll(/\\[([^\\]]+)\\]/g);\n        const paramList = Array.from(matches).map(m => m[1]);\n        if (depth === 0) {\n            const cn = c;\n            cn.__type = 'root';\n            cn.cacheKey ??= params => pick(params, ...paramList);\n            cn.href ??= params => c.routeId.replace(/\\[([^\\]]+)\\]/g, (m, $1) => encodeURIComponent(params[$1]));\n            ret.push(...accumulateNodes(cn, depth + 1));\n        }\n        else {\n            const cr = c;\n            cr.__type = 'node';\n            cr.cacheKey ??= $page => pick($page.params, ...paramList);\n            cr.href ??= $page => c.routeId.replace(/\\[([^\\]]+)\\]/g, (m, $1) => encodeURIComponent($page.params[$1]));\n            ret.push(...accumulateNodes(cr, depth + 1));\n        }\n    }\n    return ret;\n}\nconst titleCache = new Cache(async (cacheKey, { node, $page }) => {\n    return node.__type === 'root'\n        ? typeof node.title === 'string'\n            ? node.title\n            : await node.title($page.params)\n        : node.__type === 'node'\n            ? typeof node.title === 'string'\n                ? node.title\n                : await node.title($page)\n            : '';\n});\nconst hrefCache = new Cache(async (cacheKey, { node, $page }) => {\n    return node.__type === 'root'\n        ? typeof node.href === 'string'\n            ? node.href\n            : await node.href($page.params)\n        : node.__type === 'node'\n            ? typeof node.href === 'string'\n                ? node.href\n                : await node.href($page)\n            : '';\n});\nexport class LayoutStore extends Store {\n    accumulated = derived(this, v => accumulateNodes(v.root));\n    root = derived(this.accumulated, v => v?.[0]);\n    routeById = derived(this.accumulated, v => keyby(v, 'routeId'));\n    layoutInfo = (page) => derived([this.routeById, page], ([$routeById, $page]) => {\n        const node = $routeById[$page.route.id] ?? $routeById['/'];\n        const title = titleCache.get({ routeId: node.routeId, cacheKey: node.__type === 'root' ? node.cacheKey?.($page.params) : node.cacheKey?.($page) }, { node, $page });\n        const breadcrumbs = [];\n        for (let curr = node.parent; curr?.parent; curr = curr.parent) {\n            breadcrumbs.push(curr);\n        }\n        breadcrumbs.reverse();\n        return {\n            title: title.then(title => title),\n            breadcrumbs: breadcrumbs.map(bc => ({\n                ...bc,\n                href: hrefCache.get({ routeId: bc.routeId, cacheKey: bc.__type === 'root' ? bc.cacheKey?.($page.params) : bc.cacheKey?.($page) }, { node: bc, $page }),\n                title: titleCache.get({ routeId: bc.routeId, cacheKey: bc.__type === 'root' ? bc.cacheKey?.($page.params) : bc.cacheKey?.($page) }, { node: bc, $page })\n            }))\n        };\n    });\n    nav = writable([]);\n    constructor(initialValue) {\n        super(initialValue);\n        this.root.subscribe(root => { if (root != null)\n            void this.generateNav(root); });\n    }\n    async generateNav(root) {\n        const nav = root.hideFromSideNav ? [] : [{ title: root.title, navTitle: root.navTitle ?? root.title, href: root.routeId, icon: root.icon }];\n        await Promise.all((root.children?.filter(c => !c.hideFromSideNav) ?? []).map(async (n) => {\n            if (n.preloadParams) {\n                const paramsList = await n.preloadParams();\n                const promisesLoaded = await Promise.all(paramsList.map(async (params) => {\n                    const title = typeof n.title === 'string' ? n.title : await n.title(params);\n                    const navTitle = typeof n.navTitle === 'string' ? n.navTitle : typeof n.navTitle === 'function' ? await n.navTitle(params) : title;\n                    return { ...n, href: typeof n.href === 'string' ? n.href : await n.href(params), title, navTitle };\n                }));\n                nav.push(...promisesLoaded);\n            }\n            else {\n                const [href, title, navTitle] = await Promise.all([\n                    typeof n.href === 'string' ? n.href : n.href({}),\n                    typeof n.title === 'string' ? n.title : n.title({}),\n                    typeof n.navTitle === 'string' ? n.navTitle : n.navTitle?.({})\n                ]);\n                nav.push({ ...n, href, title, navTitle: navTitle ?? title });\n            }\n        }));\n        this.nav.set(nav);\n    }\n}\n","import { Store } from '@txstate-mws/svelte-store';\nclass ConfirmationStore extends Store {\n    queue = [];\n    current;\n    constructor() {\n        super({ showing: false, content: '', title: 'Confirm', yesText: 'Continue', noText: 'Cancel', danger: false, html: false });\n    }\n    /**\n     * Show a confirmation dialog and resolve true if the user confirms, false if they cancel or dismiss it.\n     *\n     * Requests are queued, so concurrent calls display one at a time.\n     *\n     * Pass `html: true` to render `content` as markup instead of plain text. The string is injected\n     * with `{@html}` and is not sanitized. Escape any untrustworthy data with `htmlEncode` from txstate-utils.\n     */\n    async confirm(content, opts) {\n        return await new Promise(resolve => {\n            const request = {\n                content,\n                title: opts?.title ?? 'Confirm',\n                yesText: opts?.yesText ?? 'Continue',\n                noText: opts?.noText ?? 'Cancel',\n                danger: opts?.danger ?? false,\n                html: opts?.html ?? false,\n                resolve\n            };\n            this.queue.push(request);\n            if (!this.current)\n                this.showNext();\n        });\n    }\n    showNext() {\n        this.current = this.queue.shift();\n        if (this.current) {\n            this.set({\n                showing: true,\n                content: this.current.content,\n                title: this.current.title,\n                yesText: this.current.yesText,\n                noText: this.current.noText,\n                danger: this.current.danger,\n                html: this.current.html\n            });\n        }\n    }\n    onConfirm() {\n        this.current?.resolve(true);\n        this.set({ ...this.value, showing: false });\n        this.current = undefined;\n        this.showNext();\n    }\n    onCancel() {\n        this.current?.resolve(false);\n        this.set({ ...this.value, showing: false });\n        this.current = undefined;\n        this.showNext();\n    }\n}\nexport const confirmationStore = new ConfirmationStore();\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"></path>\n</svg>\n","<script lang=\"ts\">\n  import ChevronUpOutline from \"carbon-icons-svelte/lib/ChevronUpOutline.svelte\";\n  import { fade } from 'svelte/transition'\n\n  /**\n   * The sensitivity value determines how far down the page the user must scroll\n   */\n  export let sensitivity = 500\n\n  let scrollHeight = 0\n\n  $: showGotoTop = scrollHeight > sensitivity\n</script>\n\n<svelte:window bind:scrollY={scrollHeight} />\n\n{#if showGotoTop}\n  <button\n    on:click={() => {\n      window.scrollTo({ top: 0, behavior: 'smooth' })\n    }}\n    in:fade\n    out:fade\n    class=\"go-to-top [ print:hidden text-slate-900 fixed right-6 bottom-4 inline-flex items-center gap-2 bg-tagyellow-200 py-2 px-4 ]\"\n  >\n    <span>Back to top</span>\n    <ChevronUpOutline />\n  </button>\n{/if}\n\n<style>\n:global(html) {\n  @media (prefers-reduced-motion: no-preference) {\n    scroll-behavior: smooth;\n  }\n}\n:global(body:has(.go-to-top)) :global(#main-content) {\n  margin-block-end: 4.5rem;\n}\n</style>\n","<script lang=\"ts\">\n  import { ScreenReaderOnly } from '@txstate-mws/svelte-components'\n  import type { HTMLBaseAttributes } from 'svelte/elements'\n\n  interface $$Props extends HTMLBaseAttributes {\n    value?: number\n  }\n  /**\n   * The number value to display in the badge.\n   * @type {number | undefined}\n   */\n  export let value: number | undefined = undefined\n</script>\n\n{#if value != null}\n  <span {...$$restProps} class=\"inline-flex items-center justify-center px-1 h-4 ms-2 text-xs font-semibold rounded-full align-text-bottom {$$restProps.class}\"><ScreenReaderOnly>count </ScreenReaderOnly>{value}</span>\n{/if}\n\n<style>\n  :where(span) {\n    background-color: var(--badge-bg, var(--cds-support-01, #ff0000));\n    color: var(--badge-text, white);\n  }\n</style>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z\"\n  ></path>\n</svg>\n","<script>\n  /**\n   * Specify the size of the search input.\n   * @type {\"xs\" | \"sm\" | \"lg\" | \"xl\"}\n   */\n  export let size = \"xl\";\n\n  /** Set to `true` to hide the label text */\n  export let hideLabel = false;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  class:bx--skeleton={true}\n  class:bx--search--xs={size === \"xs\"}\n  class:bx--search--sm={size === \"sm\"}\n  class:bx--search--lg={size === \"lg\"}\n  class:bx--search--xl={size === \"xl\"}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  {#if !hideLabel}\n    <span class:bx--label={true}></span>\n  {/if}\n  <div class:bx--search-input={true}></div>\n</div>\n","<script>\n  /**\n   * @template [T=any]\n   * @template [Icon=any]\n   * @event {null} expand\n   * @event {null} collapse\n   * @restProps {input}\n   */\n\n  /**\n   * Specify the value of the search input.\n   * @type {T}\n   * @bindable writable\n   */\n  export let value = /** @type {T} */ (\"\");\n\n  /**\n   * Specify the size of the search input.\n   * @type {\"xs\" | \"sm\" | \"lg\" | \"xl\"}\n   */\n  export let size = \"xl\";\n\n  /** Specify the class name passed to the outer div element */\n  export let searchClass = \"\";\n\n  /** Set to `true` to display the skeleton state  */\n  export let skeleton = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the search input */\n  export let disabled = false;\n\n  /** Set to `true` to enable the expandable variant */\n  export let expandable = false;\n\n  /**\n   * Set to `true to expand the search input.\n   * @bindable writable\n   */\n  export let expanded = false;\n\n  /**\n   * Set to `true` to use the fluid variant.\n   * Inherited from the parent `FluidForm` context,\n   * so it does not need to be set when used inside `FluidForm`.\n   * Cannot be combined with the expandable variant.\n   */\n  export let fluid = false;\n\n  /** Specify the `placeholder` attribute of the search input */\n  export let placeholder = \"Search...\";\n\n  /**\n   * Specify the `autocomplete` attribute.\n   * @type {\"on\" | \"off\"}\n   */\n  export let autocomplete = \"off\";\n\n  /** Set to `true` to auto focus the search element */\n  export let autofocus = false;\n\n  /** Specify the close button label text */\n  export let closeButtonLabelText = \"Clear search input\";\n\n  /** Specify the label text */\n  export let labelText = \"\";\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (IconSearch);\n\n  /** Set an id for the input element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the input HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import { createEventDispatcher, getContext, tick } from \"svelte\";\n  import Close from \"../icons/Close.svelte\";\n  import IconSearch from \"../icons/IconSearch.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n  import SearchSkeleton from \"./SearchSkeleton.svelte\";\n\n  const dispatch = createEventDispatcher();\n  const formContext = getContext(\"carbon:Form\");\n\n  let searchRef = null;\n  let prevExpanded = expanded;\n\n  $: isFluid = !expandable && (fluid || !!formContext?.isFluid);\n  $: if (expanded && ref) {\n    tick().then(() => {\n      if (expanded) ref?.focus();\n    });\n  }\n  $: if (expanded !== prevExpanded) {\n    const nextExpanded = expanded;\n    prevExpanded = expanded;\n    dispatch(nextExpanded ? \"expand\" : \"collapse\");\n  }\n</script>\n\n<!-- svelte-ignore a11y-autofocus -->\n{#if skeleton}\n  <SearchSkeleton\n    {size}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  />\n{:else}\n  <div\n    role=\"search\"\n    aria-labelledby=\"{id}-search\"\n    class:bx--search={true}\n    class:bx--search--light={light}\n    class:bx--search--disabled={disabled}\n    class:bx--search--xs={size === \"xs\"}\n    class:bx--search--sm={size === \"sm\"}\n    class:bx--search--lg={size === \"lg\"}\n    class:bx--search--xl={size === \"xl\"}\n    class:bx--search--expandable={expandable}\n    class:bx--search--expanded={expanded}\n    class:bx--search--fluid={isFluid}\n    class={searchClass}\n  >\n    <!-- svelte-ignore a11y-click-events-have-key-events -->\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <div\n      bind:this={searchRef}\n      class:bx--search-magnifier={true}\n      on:click={() => {\n        if (expandable) expanded = true;\n      }}\n    >\n      <svelte:component this={icon} class=\"bx--search-magnifier-icon\" />\n    </div>\n    <label\n      id=\"{id}-search\"\n      for={id}\n      class:bx--label={true}\n      class:bx--label--slotted={isFluid && $$slots.labelChildren}\n    >\n      <slot name=\"labelChildren\"> {labelText} </slot>\n    </label>\n    <!-- svelte-ignore a11y-autofocus -->\n    <input\n      bind:this={ref}\n      bind:value\n      type=\"search\"\n      class:bx--search-input={true}\n      autofocus={autofocus === true ? true : undefined}\n      {autocomplete}\n      {disabled}\n      {id}\n      {placeholder}\n      {...$$restProps}\n      tabindex={expandable && !expanded ? -1 : $$restProps.tabindex}\n      inert={expandable && !expanded ? true : $$restProps.inert}\n      on:change\n      on:input\n      on:focus\n      on:focus={() => {\n        if (expandable) expanded = true;\n      }}\n      on:blur\n      on:blur={() => {\n        if (expanded && (value === \"\" || value == null)) {\n          expanded = false;\n        }\n      }}\n      on:keydown\n      on:keydown={(event) => {\n        if (event.key === \"Escape\") {\n          value = \"\";\n          dispatch(\"clear\");\n        }\n      }}\n      on:keyup\n      on:paste\n    >\n    <button\n      type=\"button\"\n      aria-label={closeButtonLabelText}\n      {disabled}\n      class:bx--search-close={true}\n      class:bx--search-close--hidden={value === \"\" || value == null}\n      on:click\n      on:click={() => {\n        value = \"\";\n        ref.focus();\n        dispatch(\"clear\");\n      }}\n    >\n      <svelte:component this={Close} size={size === \"xl\" ? 20 : 16} />\n    </button>\n  </div>\n{/if}\n","<script lang=\"ts\">\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\n  import UnfoldOpen from \"carbon-icons-svelte/lib/UnfoldOpen.svelte\";\nimport VerticalFold from \"carbon-icons-svelte/lib/VerticalFold.svelte\";\n  import { createEventDispatcher } from 'svelte'\n\n  /**\n   * The expanded state of every member of the collapsible set, one boolean each. The label reads\n   * \"Collapse all\" only while every member is expanded, and an empty array renders nothing.\n   * Inside a `PanelGroup` this is the group's `let:members`; `ColumnList` builds it from its\n   * expandable rows; any other set (e.g. carbon `Accordion`, your own markup) builds it itself.\n   * @type {boolean[]}\n   */\n  export let members: boolean[]\n  /**\n   * Button size.\n   * @type {'small' | 'medium' | 'large'}\n   */\n  export let size: 'small' | 'medium' | 'large' = 'medium'\n\n  /**\n   * Id of an element naming the set this button acts on, applied to the Button as\n   * `aria-describedby`.\n   * @type {string | undefined}\n   */\n  export let describedById: string | undefined = undefined\n\n  /**\n   * @event expand Fired when the button is activated while any member is collapsed\n   */\n\n  /**\n   * @event collapse Fired when the button is activated while every member is expanded\n   */\n\n  const dispatch = createEventDispatcher()\n\n  // Derived on every change rather than remembered from the last click, so closing one member\n  // of a fully expanded set flips the label back.\n  $: allExpanded = members.length > 0 && members.every(Boolean)\n  // Empty renders nothing, one member renders. A higher threshold would delete the control on\n  // the click that crossed it, stranding focus; collapsing can never reach zero members.\n  $: visible = members.length > 0\n\n  $: buttonSize = (size === 'small' ? 'small' : size === 'large' ? 'default' : 'field') as 'small' | 'field' | 'default'\n\n  function onClick () {\n    dispatch(allExpanded ? 'collapse' : 'expand')\n  }\n</script>\n\n<!--\n  @component\n  One ghost button that opens or closes every member of a collapsible set at once, labelled to\n  describe what the next activation will do. `members` is the whole input: the label is derived\n  from it, and an empty set renders nothing. `PanelGroup` and `ColumnList` each own their set and\n  can render this already wired, so most pages never build the array themselves.\n\n  The **root element is a wrapper `div`, not the Button**, and `class` is the only prop forwarded\n  to it. That is what lets a caller position the control without colliding with carbon's button\n  classes. In a flex row the wrapper is exactly the Button's height, so it costs no layout.\n\n  @example\n  ```svelte\n  <script lang=\"ts\">\n    import { ExpandCollapseAll, PanelGroup, Panel } from '@txstate-mws/carbon-svelte'\n  </script>\n\n  <PanelGroup let:members let:expandAll let:collapseAll>\n    <ExpandCollapseAll class=\"[ flex justify-end mb-2 ]\" {members} on:expand={expandAll} on:collapse={collapseAll} />\n    <Panel expandable title=\"Petition\">…</Panel>\n    <Panel expandable title=\"Supporting documents\">…</Panel>\n    <Panel expandable title=\"Advisor recommendation\">…</Panel>\n    <Panel expandable title=\"Course substitutions\">…</Panel>\n    <Panel expandable title=\"Decision history\">…</Panel>\n  </PanelGroup>\n  ```\n-->\n{#if visible}\n  <div class={$$restProps.class}>\n    <Button kind=\"ghost\" size={buttonSize} icon={allExpanded ? VerticalFold : UnfoldOpen} aria-describedby={describedById} on:click={onClick}>{allExpanded ? 'Collapse all' : 'Expand all'}</Button>\n  </div>\n{/if}\n","<script lang=\"ts\">\n  /**\n   * If provided, the content will be wrapped in an anchor tag with this URL. If not provided, the content will be rendered directly without a wrapper.\n   * @type {string}\n   */\n  export let href: string | undefined = undefined\n  /**\n   * If provided without an href, the content will be wrapped in an unstyled button that runs this\n   * handler on click. If provided alongside an href, the anchor wins: the handler is placed on the\n   * anchor and fires on click, but not necessarily before navigation begins.\n   */\n  export let onClick: (() => void | Promise<void>) | undefined = undefined\n</script>\n{#if href}\n  <a {href} {...$$restProps} on:click on:click={() => { void onClick?.() }}><slot/></a>\n{:else if onClick}\n  <button type=\"button\" class=\"optional-link-button\" {...$$restProps} on:click on:click={() => { void onClick?.() }}><slot/></button>\n{:else}\n  <slot/>\n{/if}\n\n<style>\n  /* strip UA button chrome so the wrapper is as invisible as the anchor; parents\n     style .optional-link-button when they want a clickable affordance */\n  button {\n    all: unset;\n    cursor: pointer;\n  }\n  button:focus-visible {\n    outline: revert;\n  }\n</style>\n","<script lang=\"ts\" generics=\"T extends { id: string | number }\">\n  import { ResizeStore, ScreenReaderOnly, glue, resize } from '@txstate-mws/svelte-components'\n  import { Form, type Feedback } from '@txstate-mws/svelte-forms'\n  import { ActiveStore } from '@txstate-mws/svelte-store'\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\nimport InlineNotification from \"carbon-components-svelte/src/Notification/InlineNotification.svelte\";\nimport SearchInput from \"carbon-components-svelte/src/Search/Search.svelte\";\n  import ChevronDown from 'carbon-icons-svelte/lib/ChevronDown.svelte'\n  import ChevronUp from 'carbon-icons-svelte/lib/ChevronUp.svelte'\n  import Filter from 'carbon-icons-svelte/lib/Filter.svelte'\n  import Search from 'carbon-icons-svelte/lib/Search.svelte'\n  import { createEventDispatcher, getContext, onMount, tick } from 'svelte'\n  import { writable } from 'svelte/store'\n  import { fade, fly } from 'svelte/transition'\n  import { equal, get, isNotNull, keyby, pluralize, randomid } from 'txstate-utils'\n  import { browser } from '$app/environment'\n  import { afterNavigate, goto } from '$app/navigation'\n  import { page } from '$app/stores'\n  import { addFilters, extractFilters, getUrl, replaceState, UISHELL_STICKY_CONTEXT, urlEqual, type ActionItem, type ColumnDefinition, type UIShellStickyStore } from './util.js'\n  import ActionSet from './ActionSet.svelte'\n  import ExpandCollapseAll from './ExpandCollapseAll.svelte'\n  import OptionalLink from './OptionalLink.svelte'\n  import PanelFormDialog from './form/PanelFormDialog.svelte'\n  import TagSet from './TagSet.svelte'\n  import FilterUiQuickSlotContext from './FilterUIQuickSlotContext.svelte'\n\n/**\n * Array of column definitions that specify how to display each column in the table.\n * @type {ColumnDefinition<T>[]}\n */\n export let columns: ColumnDefinition<T>[]\n\n/**\n * Array of data rows to be displayed in the table.\n * @type {T[]}\n */\nexport let rows: T[]\n\n/**\n * A descriptive title for the list. Will be used as the aria-label for the list and to\n * provide context in various places.\n * @type {string}\n */\nexport let title: string\n\n/**\n * Function to manually handle responsive column visibility based on table width.\n * Given a width for the table, returns the list of column ids that should be displayed by default.\n * The final column listed will be eligible to be replaced by another user-selected column.\n * @type {((width: number) => string[]) | undefined}\n */\nexport let responsiveColumns: ((width: number) => string[]) | undefined = undefined\n\n/**\n * Automatically hide columns when they don't fit.\n * `responsiveColumns` will take precedence if both are provided.\n * - `true` uses default min-width of 200px per column\n * - number specifies custom average min-width in pixels\n * @type {boolean | number | undefined}\n */\nexport let autoHideColumns: boolean | number | undefined = undefined\n\n/**\n * Controls row expansion behavior when default slot content is provided.\n * Can be a boolean to enable/disable for all rows, or a function to specify per row.\n * @type {boolean | ((row: T) => boolean)}\n */\nexport let expandable: boolean | ((row: T) => boolean) = $$slots.default ?? false\n\n/**\n * Determines if default slot content is shown for all rows without requiring expansion.\n * @type {boolean}\n */\nexport let expanded = false\n\n/**\n * Adds an \"Expand all\" / \"Collapse all\" button to the list toolbar, opening or closing every\n * expandable row at once. Hidden when there are fewer than two expandable rows, when `expanded`\n * already forces every row open.\n * @type {boolean}\n */\nexport let showExpandAll = false\n\n/**\n * Function to generate action items for selected rows. When provided, checkboxes will be\n * automatically rendered next to each row.\n * @type {((rows: T[]) => ActionItem[]) | undefined}\n */\nexport let selectedActions: undefined | ((rows: T[]) => ActionItem[]) = undefined\n\n/**\n * Disables the select/deselect all functionality when using selectedActions.\n * @type {boolean}\n */\nexport let noSelectAll = false\n\n/**\n * Function to determine if a row should be selectable.\n * @type {(row: T) => boolean}\n */\nexport let selectable = (row: T) => true\n\n/**\n * Function to generate action items for each row. Actions will be placed in a\n * column on the far right.\n * @type {((row: T) => ActionItem[]) | undefined}\n */\nexport let actions: undefined | ((row: T) => ActionItem[]) = undefined\n\n/**\n * Set this to true to reverse the order of the action buttons in each row. This\n * will also put the overflow menu on the right side of the row. Order within the\n * overflow menu will not be changed.\n * @type {boolean}\n */\nexport let actionsReverse = false\n\n/**\n * Array of action items to display at the top of the table.\n * Best used for actions that affect the table's display rather than list manipulation.\n * @type {ActionItem[]}\n */\nexport let listActions: ActionItem[] = []\n\n  /**\n   * Kind for search/filter active state (when filters or search are active but return no results).\n   * @type {'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt'}\n   */\n  export let noItemsKind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt' = 'info'\n\n  /**\n   * Title for search/filter active state (when filters or search are active but return no results).\n   * @type {string}\n   */\n  export let noItemsTitle: string = 'No results found.'\n\n  /**\n   * Subtitle for search/filter active state (when filters or search are active but return no results).\n   * @type {string}\n   */\n  export let noItemsSubtitle: string = 'You may need to refine your searched terms, filters or try again.'\n\n  /**\n   * Field / path names that represent date/time filters.\n   * Used to show specialized empty message when date filters are active.\n   * @type {string[]}\n   */\n  export let dateFilterFields: string[] = []\n\n  /**\n   * Kind for true empty state (no filters, no search, no data).\n   * @type {'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt'}\n   */\n  export let emptyKind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt' = 'info'\n\n  /**\n   * Title for true empty state (no filters, no search, no data).\n   * @type {string}\n   */\n  export let emptyTitle: string = 'No entries found'\n\n  /**\n   * Subtitle for true empty state (no filters, no search, no data).\n   * @type {string}\n   */\n  export let emptySubtitle: string = ''\n\n  /**\n   * Kind for date filter active state.\n   * @type {'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt'}\n   */\n  export let dateFilterKind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt' = 'info'\n\n  /**\n   * Title for date filter active state.\n   * @type {string}\n   */\n  export let dateFilterTitle: string = 'No entries found.'\n\n  /**\n   * Subtitle for date filter active state.\n   * @type {string}\n   */\n  export let dateFilterSubtitle: string = 'Either no entries exist, or they fall outside the active time period.'\n\n  /**\n   * By default the header row will stick to the top of the screen when scrolling.\n   * Set this to false to disable that behavior.\n   * @type {boolean}\n  */\n  export let stickyHeader = true\n\n  /**\n   * If true, the list will be searchable. This will add a search input to the header.\n   * @type {boolean}\n   */\n  export let searchable = false\n\n  /**\n   * If true, the filters will not update the URL state when changed.\n   * @type {boolean}\n   */\n  export let skipUrlState = false\n\n  /**\n   * If true, the filter button will not navigate to a new URL when changed.\n   * @type {boolean}\n   */\n  export let skipGoto = false\n\n  /**\n   * When set, namespaces all URL filter params under this key so that multiple\n   * ColumnLists on the same page can maintain independent URL state.\n   * @type {string | undefined}\n   */\n  export let urlKey: string | undefined = undefined\n\n  /**\n   * Title for the filter panel, if applicable.\n   * @type {string}\n   */\n  export let filterTitle = 'List Filters'\n  /**\n   * Maximum number of visible action buttons on each row - excess will overflow.\n   * @type {number}\n   */\n  export let actionsMaxButtons = 4\n  /**\n   * If true, the labels for action buttons will be shown when space allows.\n   * @type {boolean}\n   */\n  export let actionsIncludeLabels = false\n  /**\n   * Maximum number of visible action buttons for list actions (in the top right of the whole\n   * columnlist) before overflow.\n   * @type {number}\n   */\n  export let listActionsMaxButtons = 4\n  /**\n   * If true, the labels for list actions will be shown when space allows.\n   * @type {boolean}\n   */\n  export let listActionsIncludeLabels = true\n  /**\n   * Maximum number of visible action buttons for selected actions (actions that may\n   * be taken on a set of selected rows) before overflow.\n   * @type {number}\n   */\n  export let selectedActionsMaxButtons = listActionsMaxButtons\n  /**\n   * If true, the labels for selected actions will be shown when space allows.\n   * @type {boolean}\n   */\n  export let selectedActionsIncludeLabels = listActionsIncludeLabels\n  /**\n   * If true, expandable rows will automatically expand when printing. Useful to make sure all\n   * content is captured when printing.\n   * @type {boolean}\n   */\n  export let expandOnPrint = true\n\n  const dispatch = createEventDispatcher()\n  const store = new ResizeStore({ clientWidth: 1024 })\n  const selectionFitSize = new ResizeStore()\n  const selectionGhostSize = new ResizeStore()\n  const listId = randomid()\n  let filterbutton: HTMLButtonElement\n  const stickyShellHeader = getContext<UIShellStickyStore | undefined>(UISHELL_STICKY_CONTEXT) ?? writable({ height: 0 })\n\n  const expandedRows = new ActiveStore(new Set<string | number>())\n  const selectedRows = new ActiveStore(new Set<string | number>())\n  $: selectableRows = new Set(rows.filter(r => selectable(r)).map(r => r.id))\n  $: expandableRows = new Set(rows.filter(r => typeof expandable === 'boolean' ? expandable : expandable(r)).map(r => r.id))\n  $: selectedRows.update(v => {\n    for (const id of v) if (!selectableRows.has(id)) v.delete(id)\n    return v\n  })\n  $: allSelected = selectableRows.size > 0 && $selectedRows.size === selectableRows.size\n  $: someSelected = !allSelected && !!$selectedRows.size\n\n  function onSelectRow (row: T) {\n    return (e: Event & { currentTarget: EventTarget & HTMLInputElement }) => {\n      selectedRows.update(v => {\n        if (e.currentTarget.checked && selectableRows.has(row.id)) v.add(row.id)\n        else v.delete(row.id)\n        return v\n      })\n    }\n  }\n\n  function onSelectAll (e: Event & { currentTarget: EventTarget & HTMLInputElement }) {\n    if (!allSelected) {\n      selectedRows.update(v => {\n        for (const row of rows) {\n          if (selectableRows.has(row.id)) v.add(row.id)\n          else v.delete(row.id)\n        }\n        return v\n      })\n    } else {\n      onDeselectAll()\n    }\n  }\n\n  function onDeselectAll () {\n    selectedRows.update(v => {\n      v.clear()\n      return v\n    })\n  }\n\n  function onExpandRow (row: T) {\n    return () => {\n      expandedRows.update(v => {\n        if (v.has(row.id)) v.delete(row.id)\n        else v.add(row.id)\n        return v\n      })\n    }\n  }\n\n  function onExpandAll () {\n    expandedRows.update(v => {\n      for (const id of expandableRows) v.add(id)\n      return v\n    })\n  }\n\n  function onCollapseAll () {\n    expandedRows.update(v => {\n      v.clear()\n      return v\n    })\n  }\n\n  let search: string | undefined = undefined\n  let searchshown = false\n  let searchinput: HTMLInputElement | undefined\n  let searchbutton: HTMLButtonElement | undefined\n  async function onSearchClick () {\n    searchshown = true\n    await tick()\n    searchinput?.focus()\n  }\n\n  let searchTimer: ReturnType<typeof setTimeout> | undefined\n  function onSearchInput () {\n    clearTimeout(searchTimer)\n    setTimeout(() => {\n      search = searchinput?.value\n      if (!skipUrlState) {\n        const currentUrl = getUrl()\n        const existing = extractFilters(currentUrl, { urlKey })\n        const url = addFilters(currentUrl, { ...existing, search }, { preserveTabs: true, urlKey })\n        if (skipGoto) replaceState(url)\n        else if (!urlEqual(currentUrl, url)) void goto(url, { replaceState: true, keepFocus: true, noScroll: true })\n      }\n      dispatch('search', { search })\n    }, 600)\n  }\n\n  let searchFocusTimer: ReturnType<typeof setTimeout> | undefined\n  let searchContainer: HTMLDivElement | undefined\n  async function searchFocusOut (e: FocusEvent) {\n    clearTimeout(searchFocusTimer)\n    searchFocusTimer = setTimeout(() => {\n      if (searchContainer && searchContainer.contains(document.activeElement)) return\n      if (!searchshown) return\n      searchshown = false\n      tick().then(() => {\n        if (!document.activeElement) searchbutton?.focus()\n      }).catch(console.error)\n    }, 100)\n  }\n\n  let panelDialogOpen = false\n  let preload: any = undefined\n  let smallfilterdialog: HTMLDialogElement\n  function onFilterClick () {\n    if (smallfilterdialog) {\n      if (!smallfilterdialog.open) smallfilterdialog.showModal()\n      else smallfilterdialog.close()\n    } else {\n      preload = extractFilters($page.url, { urlKey }).f\n      panelDialogOpen = true\n    }\n  }\n\n  function onCancelFilterPanel () {\n    panelDialogOpen = false\n  }\n\n  function smallFilterClick (e: MouseEvent) {\n    if (smallfilterdialog === e.target) smallfilterdialog.close()\n  }\n\n  let lastFilterUpdate: Record<string, any> = {}\n  function updateFilters (data: Record<string, any>) {\n    if (browser && !equal(lastFilterUpdate, data)) {\n      lastFilterUpdate = data\n      if (!skipUrlState) {\n        const currentUrl = getUrl()\n        const { search: existingSearch } = extractFilters(currentUrl, { urlKey })\n        const url = addFilters(currentUrl, { search: existingSearch, ...data }, { preserveTabs: true, urlKey })\n        if (skipGoto) replaceState(url)\n        else if (!urlEqual(currentUrl, url)) void goto(url, { replaceState: true, keepFocus: true, noScroll: true })\n      }\n      dispatch('filter', data)\n    }\n  }\n\n  $: hasActiveSearch = !!search?.trim()\n  $: filterData = { ...lastFilterUpdate.f, ...lastFilterUpdate.q }\n  $: hasActiveFilters = Object.values(filterData).some(v => v != null && v !== '')\n  $: hasActiveDateFilters = dateFilterFields.some(field => filterData[field] != null && filterData[field] !== '')\n\n  async function smallValidate (data: Record<string, any>) {\n    updateFilters({ q: data })\n    return [] as Feedback[]\n  }\n\n  async function smallSubmit (data: Record<string, any>) {\n    updateFilters({ q: data })\n    smallfilterdialog?.close()\n    return { success: true, messages: [] as Feedback[], data }\n  }\n\n  function onLargeSaved (e: CustomEvent<Record<string, any>>) {\n    updateFilters({ f: e.detail })\n    panelDialogOpen = false\n  }\n\n  let activeColumn: string | undefined\n  function activateColumn (col: ColumnDefinition<T>) {\n    return () => {\n      activeColumn = col.id\n    }\n  }\n\n  let forceExpanded = false\n  function onBeforePrint () {\n    if (expandOnPrint) forceExpanded = true\n  }\n  function onAfterPrint () {\n    if (expandOnPrint) forceExpanded = false\n  }\n  onMount(() => {\n    if (!browser) return\n    window.addEventListener('beforeprint', onBeforePrint)\n    window.addEventListener('afterprint', onAfterPrint)\n    return () => {\n      window.removeEventListener('beforeprint', onBeforePrint)\n      window.removeEventListener('afterprint', onAfterPrint)\n    }\n  })\n  let smallpreload: any = undefined\n  afterNavigate(() => {\n    smallpreload = extractFilters($page.url, { urlKey }).q\n  })\n\n  $: maxActions = Math.max(0, ...rows.map(r => actions?.(r)?.length ?? 0))\n  // At narrow widths, limit visible action buttons to prevent overflow.\n  // ActionSet renders maxButtons-1 visible + 1 overflow when actions exceed maxButtons,\n  // so maxButtons=2 at narrow gives 1 visible + overflow = 2 slots.\n  $: effectiveMaxButtons = $store.clientWidth! > 800 ? actionsMaxButtons : Math.min(actionsMaxButtons, 2)\n  $: actionColSlots = Math.max(1, Math.min(effectiveMaxButtons, maxActions))\n  $: actionColWidth = `max(3.5rem, calc((2.5rem + 2px) * ${actionColSlots}))`\n\n  // Pixel widths for utility columns - used for both CSS flex-basis\n  // and responsive column-hiding width estimation.\n  const CHECKBOX_COL_PX = 13 + 16 // 13px checkbox input + 8px padding each side\n  const EXPAND_COL_PX = 16 + 24 // 16px chevron icon + 24px padding\n  const OVERFLOW_COL_PX = 36 // reveal-columns menu\n  // Action column uses rem in CSS; these px values assume 16px base font.\n  const ACTION_MIN_PX = 56 // 3.5rem\n  const ACTION_SLOT_PX = 42 // 2.5rem + 2px\n\n  const checkboxColWidth = `${CHECKBOX_COL_PX}px`\n  const expandableColWidth = `${EXPAND_COL_PX}px`\n  const overflowColWidth = `${OVERFLOW_COL_PX}px`\n\n  // Table-role trigger: render ARIA table semantics when there are more than two data columns.\n  $: isTable = columns.length > 2\n  $: colheadRole = isTable ? 'columnheader' : undefined\n  $: cellRole = isTable ? 'cell' : undefined\n\n  $: columnsById = keyby(columns, 'id')\n\n  // Auto-hide columns calculation\n  const DEFAULT_AUTO_HIDE_MIN_WIDTH = 200\n\n  // Convert CSS length to px estimate. Assumes 16px base font (same as ACTION constants above).\n  function parseWidth (cssValue: string): number {\n    if (cssValue.endsWith('px')) return parseFloat(cssValue)\n    if (cssValue.endsWith('rem')) return parseFloat(cssValue) * 16\n    return 0\n  }\n\n  // Determine which columns are visible based on responsive mode:\n  // 1. Function: manual control via responsiveColumns function\n  // 2. Neither: show all columns\n  // 3. Auto-hide enabled: calculate which columns fit\n  function resolveColumnIds (\n    width: number,\n    allColumns: ColumnDefinition<T>[],\n    utilityWidth: number\n  ): string[] {\n    if (typeof responsiveColumns === 'function') return responsiveColumns(width)\n\n    const ids = allColumns.map(c => c.id)\n\n    const minWidth = autoHideColumns === true\n      ? DEFAULT_AUTO_HIDE_MIN_WIDTH\n      : (typeof autoHideColumns === 'number' ? autoHideColumns : 0)\n    if (minWidth <= 0) return ids\n\n    let availableWidth = width - utilityWidth\n\n    // Build list in priority order with min-widths\n    const colsWithWidth = allColumns.map((col, i) => ({\n      id: col.id,\n      minWidth: col.minWidth ?? ((col.fixed ? parseWidth(col.fixed) : 0) || minWidth),\n      // Protected: first in priority order, describesRow, alwaysShow\n      protected: i === 0 || col.describesRow === true || col.alwaysShow === true\n    }))\n\n    // Remove non-protected columns from the end until remaining columns fit.\n    const visible = [...colsWithWidth]\n    let totalMinWidth = visible.reduce((sum, c) => sum + c.minWidth, 0)\n    while (visible.length > 1 && totalMinWidth > availableWidth) {\n      const idx = visible.findLastIndex(c => !c.protected)\n      if (idx === -1) break\n      totalMinWidth -= visible[idx].minWidth\n      visible.splice(idx, 1)\n      availableWidth = width - utilityWidth - OVERFLOW_COL_PX\n    }\n\n    return visible.map(c => c.id)\n  }\n\n  $: showExpandColumn = expandableRows.size > 0 && !(expanded || forceExpanded)\n  $: expandAllVisible = showExpandAll && expandableRows.size >= 2 && !expanded\n  $: detailPaddingLeft = `calc(8px + ${selectedActions != null ? checkboxColWidth : '0px'})`\n  $: utilityColumnsWidth =\n    (selectedActions != null ? CHECKBOX_COL_PX : 0) +\n    (showExpandColumn ? EXPAND_COL_PX : 0) +\n    (actions ? Math.max(ACTION_MIN_PX, ACTION_SLOT_PX * actionColSlots) : 0)\n  $: responsiveColumnIds = resolveColumnIds($store.clientWidth!, columns, utilityColumnsWidth)\n  $: showingColumnIds = (activeColumn && columnsById[activeColumn] && !responsiveColumnIds.includes(activeColumn))\n    ? [...responsiveColumnIds.slice(0, -1), activeColumn]\n    : responsiveColumnIds\n  $: showingColumnIdSet = new Set(showingColumnIds)\n  $: showingColumns = showingColumnIds.map(id => columnsById[id]).filter(isNotNull)\n  $: decriptiveColumnIdsTmp = showingColumns.filter(c => c.describesRow).map(c => c.id)\n  $: descriptiveColumnIds = decriptiveColumnIdsTmp.length > 0 ? decriptiveColumnIdsTmp : [showingColumns.find(c => ['name', 'title'].includes(c.id))?.id ?? showingColumns[0].id]\n  $: missingColumns = columns.filter(c => !showingColumnIdSet.has(c.id))\n  $: revealColumnActions = missingColumns.map(c => ({ label: c.label, onClick: activateColumn(c) }))\n  $: baseWidth = '1px'\n  $: currentSelectedActions = $selectedRows.size === 0 ? [] : selectedActions?.(rows.filter(r => $selectedRows.has(r.id))) ?? []\n  $: selectedActionsFit = $selectionGhostSize.clientWidth! <= $selectionFitSize.clientWidth!\n\n  // Anything that belongs in the header bar when no rows are selected\n  $: hasListTools = searchable || listActions.length > 0 || !!$$slots.filters || !!$$slots.smallFilters || expandAllVisible\n</script>\n\n{#if selectedActions || hasListTools}\n  <header class=\"column-list-header\">\n    {#if selectedActions && $selectedRows.size > 0}\n      <div id=\"{listId}-with-selected-desc\" class=\"column-list-selections\" in:fly={{ duration: 200, y: '100%' }} out:fly={{ duration: 200, y: '100%' }}>\n        <div role=\"status\" aria-atomic=\"true\" class=\"column-list-selection-text\">{pluralize('row', $selectedRows.size, true)} selected...</div>\n        {#if currentSelectedActions.length > 0}\n          <div class=\"column-list-selection-actions\">\n            <div class=\"column-list-selection-fit\" use:resize={{ store: selectionFitSize }}>\n              <ActionSet includeLabels={selectedActionsIncludeLabels} actions={currentSelectedActions} describedById=\"{listId}-with-selected-desc\" small maxButtons={selectedActionsMaxButtons} forceOverflow={!selectedActionsFit} />\n              <!-- an uncollapsed copy of the ActionSet at max-content width, measured for the space the actions want -->\n              <div class=\"[ absolute right-0 w-max invisible ]\" aria-hidden=\"true\" use:resize={{ store: selectionGhostSize }}>\n                <ActionSet includeLabels={selectedActionsIncludeLabels} actions={currentSelectedActions} small maxButtons={selectedActionsMaxButtons} />\n              </div>\n            </div>\n            <Button size=\"small\" on:click={onDeselectAll}>Cancel<ScreenReaderOnly>selection</ScreenReaderOnly></Button>\n          </div>\n        {/if}\n      </div>\n    {:else if hasListTools}\n      <div class=\"column-list-normal-header\" out:fade={{ duration: 20, delay: 200 }}>\n        <!-- add a search UI here -->\n        <div class=\"column-list-search-container\" bind:this={searchContainer} on:focusout={searchFocusOut}>\n          {#if searchable && !searchshown}\n            <Button bind:ref={searchbutton} size=\"small\" kind=\"ghost\" class=\"column-list-search-button\" icon={Search} iconDescription=\"Search {title}\" on:click={onSearchClick} />\n          {/if}\n          {#if searchshown}\n            <SearchInput bind:ref={searchinput} value={search} size=\"sm\" labelText=\"Search {title}\" placeholder=\"Search...\" closeButtonLabelText=\"Cancel Search\" on:input={onSearchInput} on:clear={onSearchInput} aria-describedby=\"{listId}-search-description\" />\n            <div class=\"sr-only\" id=\"{listId}-search-description\">Results will update as you type.</div>\n          {/if}\n        </div>\n        {#if $$slots.smallFilters || $$slots.filters}\n          <Button bind:ref={filterbutton} size=\"small\" kind=\"ghost\" icon={Filter} iconDescription=\"Filter {title}\" on:click={onFilterClick} />\n        {/if}\n        {#if expandAllVisible}\n          <ExpandCollapseAll size=\"small\" describedById=\"{listId}-list-title\" members={[...expandableRows].map(id => $expandedRows.has(id))} on:expand={onExpandAll} on:collapse={onCollapseAll} />\n        {/if}\n        <ActionSet includeLabels={listActionsIncludeLabels} actions={listActions} describedById=\"{listId}-list-title\" small maxButtons={listActionsMaxButtons} />\n      </div>\n    {/if}\n  </header>\n{/if}\n<div use:resize={{ store }} class=\"column-list\">\n  <!-- Kept outside the table wrapper: content inside role=\"table\" that is not a row or rowgroup has\n       no valid place in the table's structure. Referenced while hidden, which the accessible name\n       computation allows. -->\n  <div hidden aria-hidden=\"true\" id=\"{listId}-list-title\">{title}</div>\n  <!-- Always-present wrapper. In table mode it is the role=\"table\": a plain block wrapping the header\n       row and the data rows. In list mode it generates no box (display:contents) so the\n       header keeps .column-list as its containing block and sticky positioning is unchanged. -->\n  <div class=\"column-list-table-wrapper\" class:is-list={!isTable} role={isTable ? 'table' : undefined} aria-labelledby={isTable ? `${listId}-list-title` : undefined}>\n    <div class=\"column-list-head [ flex items-center ]\" class:sticky={stickyHeader} style:top=\"{stickyHeader ? $stickyShellHeader.height : 0}px\" role={isTable ? 'row' : undefined}>\n      {#if selectedActions != null}<div class=\"column-list-colhead select-all [ px-[8px] py-[6px] ]\" role={colheadRole} aria-label={isTable ? 'Select' : undefined} style:flex-basis={checkboxColWidth}>{#if !noSelectAll}<div class:bx--checkbox-inline={true}><input id=\"{listId}-select-all\" type=\"checkbox\" bind:indeterminate={someSelected} checked={allSelected} class:bx--checkbox={true} on:change={onSelectAll}><label for=\"{listId}-select-all\" class:bx--checkbox-label={true}><ScreenReaderOnly>{allSelected ? 'deselect' : 'select'} all</ScreenReaderOnly></label></div>{/if}</div>{/if}\n      {#if showExpandColumn}<div class=\"column-list-colhead expand\" role={colheadRole} aria-label={isTable ? 'Expand' : undefined} style:flex-basis={expandableColWidth}>&nbsp;</div>{/if}\n      {#each showingColumns as col}\n        {@const resolvedClass = typeof col.class === 'function' ? col.class() : col.class}\n        <div id=\"{listId}-{col.id}\" class=\"column-list-colhead {resolvedClass ?? ''} [ p-[8px] font-bold ]\" role={colheadRole} style:flex-grow={col.grow ?? (col.fixed ? undefined : 1)} style:flex-basis={col.fixed ?? baseWidth}>{col.label}</div>\n      {/each}\n      <!-- actions and overflow columns -->\n      {#if actions}<div class=\"column-list-colhead actions [ font-bold ]\" role={colheadRole} style:flex-basis={actionColWidth}>Actions</div>{/if}\n      {#if missingColumns.length}\n        <div class=\"column-list-colhead overflow\" role={colheadRole} aria-label={isTable ? 'Columns' : undefined} style:flex-basis={overflowColWidth} style:margin-inline-start={actions ? undefined : 'auto'}>\n          <div hidden aria-hidden=\"true\" id=\"{listId}-overflow\">reveal column for {title}</div>\n          <ActionSet actions={revealColumnActions} forceOverflow describedById=\"{listId}-overflow\" small />\n        </div>\n      {/if}\n    </div>\n    <!-- Single render path for both modes: header row stays inside the table but outside the list. -->\n    <div class=\"column-list-rows\" role={isTable ? 'presentation' : 'list'} aria-labelledby={isTable ? undefined : `${listId}-list-title`}>\n      {#each rows as row (row.id)}\n        {@const isExpandable = expandableRows.has(row.id)}\n        {@const isRowExpanded = $expandedRows.has(row.id)}\n        {@const showDetail = expanded || forceExpanded || (isExpandable && isRowExpanded)}\n        {@const rowDescribedBy = descriptiveColumnIds.map(id => `${listId}-${id}-${row.id}`).join(' ')}\n        {@const detailId = `${listId}-detail-${row.id}`}\n        {@const detailLabelId = `${listId}-detail-label-${row.id}`}\n        <div class=\"column-list-row\" role={isTable ? 'rowgroup' : 'listitem'}>\n          <div class=\"column-list-cols [ flex items-start ]\" role={isTable ? 'row' : undefined}>\n            {#if selectedActions != null}\n              <div class=\"column-list-col checkbox\" role={cellRole} style:flex-basis={checkboxColWidth}>\n                <input id=\"{listId}-select-{row.id}\" type=\"checkbox\" class:bx--checkbox={true} aria-describedby={rowDescribedBy} checked={$selectedRows.has(row.id)} disabled={!selectableRows.has(row.id)} on:change={onSelectRow(row)}>\n                <label for=\"{listId}-select-{row.id}\" class:bx--checkbox-label={true}><ScreenReaderOnly>select row</ScreenReaderOnly></label>\n              </div>\n            {/if}\n            {#if showExpandColumn}\n              <div class=\"column-list-col expand\" role={cellRole} style:flex-basis={expandableColWidth}>\n                {#if isExpandable}\n                  <button type=\"button\" on:click={onExpandRow(row)} aria-expanded={isRowExpanded} aria-controls={isTable ? detailId : undefined} aria-describedby={rowDescribedBy}>\n                    {#if isRowExpanded}\n                      <ChevronUp size={24} />\n                      <ScreenReaderOnly>Collapse Row</ScreenReaderOnly>\n                    {:else}\n                      <ChevronDown size={24} />\n                      <ScreenReaderOnly>Expand Row</ScreenReaderOnly>\n                    {/if}\n                  </button>\n                {/if}\n              </div>\n            {/if}\n            {#each showingColumns as col}\n              {@const tags = col.tags?.(row)}\n              {@const resolvedIcon = typeof col.icon === 'function' ? col.icon(row) : col.icon}\n              {@const resolvedClass = typeof col.class === 'function' ? col.class(row) : col.class}\n              <div id=\"{listId}-{col.id}-{row.id}\" class=\"column-list-col regular {col.id} {resolvedClass ?? ''}\" role={cellRole} style:flex-grow={col.grow ?? (col.fixed ? undefined : 1)} style:flex-basis={col.fixed ?? baseWidth}>\n                <OptionalLink href={col.href?.(row)} onClick={col.onClick ? () => { void col.onClick?.(row) } : undefined}>\n                  {#if resolvedIcon}\n                    <span class=\"icon\">\n                      <svelte:component this={resolvedIcon.icon} />\n                      {#if resolvedIcon.label}<ScreenReaderOnly>{resolvedIcon.label}</ScreenReaderOnly>{/if}\n                    </span>\n                  {/if}\n                  {#if col.component}\n                    <svelte:component this={col.component} {row} {col} />\n                  {:else if tags}\n                    <TagSet {tags} small />\n                  {:else if col.render}\n                    {@html col.render(row)}\n                  {:else if col.get}\n                    <span>{get(row, col.get) ?? '\\u{A0}'}</span>\n                  {/if}\n                </OptionalLink>\n              </div>\n            {/each}\n            {#if actions}\n              <div class=\"column-list-col actions\" role={cellRole} style:flex-basis={actionColWidth}>\n                <ActionSet reverse={actionsReverse} actions={actions(row)} small maxButtons={effectiveMaxButtons} describedById={rowDescribedBy} includeLabels={actionsIncludeLabels} />\n              </div>\n            {/if}\n            {#if missingColumns.length}\n              <div class=\"column-list-col overflow\" role={cellRole} style:flex-basis={overflowColWidth} style:margin-inline-start={actions ? undefined : 'auto'}>&nbsp;</div>\n            {/if}\n          </div>\n          {#if showDetail}\n            <div class=\"column-list-expandable [ p-[8px] ]\" style:padding-left={detailPaddingLeft} role={isTable ? 'group' : undefined} id={isTable ? detailId : undefined} aria-labelledby={isTable ? `${detailLabelId} ${rowDescribedBy}` : undefined}>\n              {#if isTable}<span id={detailLabelId} hidden>Details</span>{/if}\n              <slot {row} />\n            </div>\n          {/if}\n        </div>\n      {/each}\n    </div>\n  </div>\n  {#if rows.length === 0 && hasActiveDateFilters}\n    <div class=\"full-width-notification\">\n      <InlineNotification hideCloseButton lowContrast kind={dateFilterKind} title={dateFilterTitle} subtitle={dateFilterSubtitle} />\n    </div>\n  {:else if rows.length === 0 && (hasActiveSearch || hasActiveFilters)}\n    <div class=\"full-width-notification\">\n      <InlineNotification hideCloseButton lowContrast kind={noItemsKind} title={noItemsTitle} subtitle={noItemsSubtitle} />\n    </div>\n  {:else if rows.length === 0}\n    <div class=\"full-width-notification\">\n      <InlineNotification hideCloseButton lowContrast kind={emptyKind} title={emptyTitle} subtitle={emptySubtitle} />\n    </div>\n  {/if}\n  {#if $$slots.filters}\n    <PanelFormDialog bind:open={panelDialogOpen} {preload} title={filterTitle} submit={async data => ({ success: true, messages: [], data })} on:saved={onLargeSaved} on:cancel={onCancelFilterPanel} let:data>\n      <slot name=\"filters\" {data} />\n    </PanelFormDialog>\n  {/if}\n  {#if $$slots.smallFilters && !$$slots.filters}\n    <FilterUiQuickSlotContext>\n      <!-- svelte-ignore a11y-click-events-have-key-events -->\n      <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n      <dialog bind:this={smallfilterdialog} class=\"column-list-smallfilters [ m-0 ]\" use:glue={{ target: filterbutton }} on:click={smallFilterClick}>\n        <Form validate={smallValidate} submit={smallSubmit} preload={smallpreload} let:data>\n          <slot name=\"smallFilters\" {data} quickslot={true} />\n        </Form>\n      </dialog>\n    </FilterUiQuickSlotContext>\n  {/if}\n</div>\n\n<style>\n  .column-list {\n    position: relative;\n  }\n  .column-list-head {\n    position: relative;\n    background-color: var(--cds-ui-03, #e0e0e0);\n  }\n  .column-list-head.sticky {\n    position: sticky;\n    z-index: 1;\n  }\n  .column-list-colhead {\n    overflow-wrap: anywhere;\n  }\n  .column-list-colhead.actions {\n    white-space: nowrap;\n    padding-inline-end: 10px;\n    margin-inline-start: auto;\n    text-align: end;\n  }\n  /* In list mode the wrapper must not generate a box */\n  .column-list-table-wrapper.is-list {\n    display: contents;\n  }\n  .column-list-colhead.overflow {\n    display: flex;\n    align-items: center;\n    justify-content: flex-end;\n    padding-inline-end: 2px;\n  }\n  .column-list-colhead.overflow,\n  .column-list-col.overflow {\n    flex-grow: 0;\n    flex-shrink: 0;\n  }\n  .column-list-col.regular {\n    padding: 8px;\n    line-height: calc(2rem - 10px);\n    overflow-wrap: anywhere;\n    /* optical adjustment for column data relative to header */\n    transform: translateX(0.2ch);\n  }\n  .column-list-col.checkbox {\n    position: relative;\n    padding: calc(.23rem + 2px) 8px calc(.27rem + 4px) 8px;\n  }\n  .column-list-col > :global(a),\n  .column-list-col > :global(.optional-link-button) {\n    color: blue;\n    text-decoration: underline;\n  }\n  .column-list-col.expand {\n    padding: calc(1rem - 9px) 8px;\n  }\n  .column-list-col.expand button {\n    display: block;\n  }\n  .column-list-cols {\n    background-color: var(--cds-layer, #f4f4f4);\n  }\n  .column-list-col.actions {\n    padding: 3px 8px 3px 0;\n    display: flex;\n    align-items: center;\n    justify-content: flex-end;\n    margin-inline-start: auto;\n  }\n  .column-list-row {\n    border-bottom: 1px solid var(--cds-border-subtle, #e0e0e0)\n  }\n  .icon {\n    display: inline-block;\n    margin-right: 8px;\n    vertical-align: text-bottom;\n  }\n  .icon + * {\n    margin-left: -0.25em;\n  }\n  .column-list-smallfilters {\n    left: unset;\n    top: unset;\n    min-width: min(300px, 80vw);\n    padding: 1em 10px 18em 10px;\n  }\n  .column-list-smallfilters::backdrop {\n    background: transparent;\n  }\n  .column-list-header {\n    position: relative;\n    overflow: hidden;\n    min-height: 2rem;\n  }\n  :global(.intro-panel + .column-list-header) {\n    background-color: var(--cds-ui-01, #e0e0e0);\n  }\n\n  .column-list-normal-header {\n    display: flex;\n    align-items: center;\n    gap: 2px;\n    height: 100%;\n  }\n  .column-list-search-container {\n    display: flex;\n    justify-content: flex-end;\n    flex-grow: 1;\n    position: relative;\n  }\n  .column-list-search-container :global(.bx--search) {\n    width: 100%;\n    @starting-style {\n      width: 0;\n    }\n    transition: width 0.2s;\n  }\n  .column-list-selections {\n    display: flex;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    /* Must position above the sticky column head (z-index:1) */\n    z-index: 2;\n    /* need this so that list action buttons don't show up behind the bar during animation */\n    background-color: var(--cds-ui-background, #ffffff);\n  }\n  .column-list-selection-text {\n    min-width: 0;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    background-color: var(--maroon);\n    color: white;\n    padding: 6px 12px 5px 12px;\n  }\n  .column-list-selection-text:only-child {\n    /* if no actions rendered, the maroon comes from the text growing across the bar. */\n    flex-grow: 1;\n  }\n  .column-list-selection-actions {\n    display: flex;\n    align-items: center;\n    gap: 2px;\n    border-width: 0 2px 0 0;\n    border-style: solid;\n    border-color: white;\n    flex: 1 1 0;\n    min-width: 0;\n  }\n  .column-list-selection-actions > :global(.bx--btn) {\n    flex-shrink: 0;\n  }\n  .column-list-selection-fit {\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n    position: relative;\n    flex: 1 1 0;\n    min-width: 2.5rem;\n    background-color: var(--maroon);\n  }\n\n  .column-list-selection-fit :global(div[role='menu']) {\n    background-color: var(--cds-ui-background, #ffffff);\n    border-left: 2px solid white;\n  }\n  .full-width-notification :global(.bx--inline-notification) {\n    width: 100%;\n    max-width: 100%;\n    margin-bottom: 0;\n  }\n\n  /* hide interactive elements during print */\n  @media print {\n    .column-list-header,\n    .column-list-col.checkbox,\n    .column-list-colhead.select-all,\n    .column-list-col.expand,\n    .column-list-colhead.expand,\n    .column-list-col.actions,\n    .column-list-colhead.actions,\n    .column-list-col.overflow,\n    .column-list-colhead.overflow {\n      display: none;\n    }\n    .column-list-colhead {\n      overflow-wrap: break-word;\n    }\n    .column-list-row {\n      -moz-column-break-inside: avoid;\n           break-inside: avoid;\n    }\n }\n</style>\n","<script lang=\"ts\">\n  import { ResizeStore, resize, ScreenReaderOnly } from '@txstate-mws/svelte-components'\n  import ChevronLeft from 'carbon-icons-svelte/lib/ChevronLeft.svelte'\n  import ChevronRight from 'carbon-icons-svelte/lib/ChevronRight.svelte'\n  import { onDestroy } from 'svelte'\n\n  const containerSize = new ResizeStore()\n  const contentSize = new ResizeStore()\n\n  let scrollContainer: HTMLDivElement\n  let isOverflowing = false\n  let canScrollLeft = false\n  let canScrollRight = false\n\n  function checkOverflow () {\n    if (!scrollContainer) return\n    const { scrollWidth, clientWidth, scrollLeft } = scrollContainer\n    isOverflowing = scrollWidth > clientWidth\n    canScrollLeft = scrollLeft > 0\n    canScrollRight = scrollLeft + clientWidth < scrollWidth - 1\n  }\n\n  $: if ($containerSize || $contentSize) checkOverflow()\n\n  let scrollTimeout: ReturnType<typeof setTimeout> | undefined\n  function onScroll () {\n    clearTimeout(scrollTimeout)\n    scrollTimeout = setTimeout(checkOverflow, 200)\n  }\n\n  onDestroy(() => {\n    clearTimeout(scrollTimeout)\n  })\n\n  /**\n   * Scroll an element within the scroll container into view.\n   * @param element The element to scroll into view\n   * @param behavior Scroll behavior — defaults to 'smooth' (or 'auto' if prefers-reduced-motion)\n   */\n  export function scrollToElement (element: HTMLElement, behavior?: ScrollBehavior) {\n    if (!scrollContainer || !element) return\n    const containerRect = scrollContainer.getBoundingClientRect()\n    const elementRect = element.getBoundingClientRect()\n    if (elementRect.left >= containerRect.left && elementRect.right <= containerRect.right) return\n    if (behavior == null) {\n      behavior = window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth'\n    }\n    if (elementRect.left < containerRect.left) {\n      scrollContainer.scrollBy({ left: elementRect.left - containerRect.left, behavior })\n    } else {\n      scrollContainer.scrollBy({ left: elementRect.right - containerRect.right, behavior })\n    }\n  }\n\n  function scrollByDirection (direction: 'left' | 'right') {\n    if (!scrollContainer) return\n    const amount = scrollContainer.clientWidth / 2\n    const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches\n    scrollContainer.scrollBy({\n      left: direction === 'left' ? -amount : amount,\n      behavior: reducedMotion ? 'auto' : 'smooth'\n    })\n  }\n</script>\n\n<div class=\"scroll-overflow [ flex items-center ]\" {...$$restProps}>\n  {#if isOverflowing}\n    <button type=\"button\" class=\"scroll-btn\" disabled={!canScrollLeft} on:click={() => { scrollByDirection('left') }}>\n      <ChevronLeft aria-hidden={true} />\n      <ScreenReaderOnly>Scroll left</ScreenReaderOnly>\n    </button>\n  {/if}\n\n  <div bind:this={scrollContainer} use:resize={{ store: containerSize }} class=\"scroll-container\" on:scroll={onScroll}>\n    <div use:resize={{ store: contentSize }} class=\"scroll-content\">\n      <slot />\n    </div>\n  </div>\n\n  {#if isOverflowing}\n    <button type=\"button\" class=\"scroll-btn\" disabled={!canScrollRight} on:click={() => { scrollByDirection('right') }}>\n      <ChevronRight aria-hidden={true} />\n      <ScreenReaderOnly>Scroll right</ScreenReaderOnly>\n    </button>\n  {/if}\n</div>\n\n<style>\n  .scroll-container {\n    overflow-x: auto;\n    flex: 1;\n    min-width: 0;\n    scrollbar-width: none;\n  }\n  .scroll-container::-webkit-scrollbar {\n    display: none;\n  }\n  .scroll-content {\n    min-width: -moz-max-content;\n    min-width: max-content;\n  }\n  .scroll-btn {\n    flex-shrink: 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: transparent;\n    border: none;\n    cursor: pointer;\n    padding: 0.25rem;\n    color: var(--cds-icon-01, #161616);\n  }\n  .scroll-btn:disabled {\n    opacity: 0.25;\n    cursor: default;\n  }\n</style>\n","<script lang=\"ts\">\n  import { modifierKey } from '@txstate-mws/svelte-components'\n  import { createEventDispatcher, onMount, tick } from 'svelte'\n  import type { TabRadioItem } from './index.js'\n  import ScrollOverflow from './ScrollOverflow.svelte'\n\n  /**\n   * Array of tab items to be displayed. Each item can have a label, value, icon, and disabled state.\n   * @type {TabRadioItem[]}\n   */\n  export let tabs: TabRadioItem[] = []\n\n  /**\n   * Zero-based index of the currently selected tab.\n   * Will be automatically constrained to valid values if out of bounds.\n   * @type {number}\n   */\n  export let selectedIndex = 0\n\n  /**\n   * Current value of the selected tab. Updated when selection changes.\n   * @type {any}\n   */\n  export let value: any = undefined\n\n  /**\n   * Accessible name for the radiogroup. Describes what the user is selecting among\n   * (e.g. \"View mode\", \"Filter by status\"). Announced by screen readers when focus\n   * enters the group. Prefer `ariaLabelledBy` if a visible heading already labels it.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let ariaLabel: string | undefined = undefined\n\n  /**\n   * ID of an element that labels the radiogroup. Takes precedence over `ariaLabel`\n   * when both are set.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let ariaLabelledBy: string | undefined = undefined\n\n  /**\n   * @event {EventDetail} change [event description]\n   */\n  $: resolvedIndex = selectedIndex < 0 ? 0 : selectedIndex >= tabs.length ? tabs.length - 1 : selectedIndex\n\n  const tabelements: HTMLElement[] = []\n  const dispatch = createEventDispatcher()\n  let scrollOverflow: ScrollOverflow\n  let mounted = false\n\n  onMount(async () => {\n    await tick()\n    if (tabelements[resolvedIndex]) {\n      scrollOverflow?.scrollToElement(tabelements[resolvedIndex], 'auto')\n    }\n    mounted = true\n  })\n\n  $: if (mounted && tabelements[resolvedIndex]) {\n    void tick().then(() => {\n      scrollOverflow?.scrollToElement(tabelements[resolvedIndex])\n    })\n  }\n\n  function activate (idx: number, direction?: 'left' | 'right') {\n    if (idx < 0) idx = 0\n    if (idx >= tabs.length) idx = tabs.length - 1\n    if (tabs[idx].disabled) {\n      if (direction == null) return\n      while (tabs[idx]?.disabled) idx += (direction === 'left' ? -1 : 1)\n      if (idx >= tabs.length || idx < 0) return\n    }\n    if (selectedIndex !== idx) {\n      selectedIndex = idx\n      tabelements[selectedIndex].focus()\n      if (!tabs[idx].disabled) {\n        value = tabs[selectedIndex].value\n        dispatch('change', { value, idx })\n      }\n    }\n  }\n\n  function onTabClick (tab: TabRadioItem, idx: number) {\n    return (e: MouseEvent) => {\n      activate(idx)\n    }\n  }\n\n  function onTabKeyDown (tab: TabRadioItem, idx: number) {\n    return (e: KeyboardEvent) => {\n      if (modifierKey(e)) return\n      if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {\n        e.preventDefault()\n        e.stopPropagation()\n        activate(resolvedIndex - 1, 'left')\n      } else if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {\n        e.preventDefault()\n        e.stopPropagation()\n        activate(resolvedIndex + 1, 'right')\n      }\n    }\n  }\n</script>\n\n{#if tabs.length}\n  <div class=\"cs-tabs tab-radio\">\n    <div role=\"radiogroup\" aria-label={ariaLabel} aria-labelledby={ariaLabelledBy} class=\"[ w-full ]\" class:bx--tabs={true}><ScrollOverflow bind:this={scrollOverflow}><div class:bx--tabs__nav={true}>\n      {#each tabs as tab, i}\n        {@const selected = i === resolvedIndex}\n        <div\n          class:bx--tabs__nav-item={true}\n          class:bx--tabs__nav-item--disabled={tab.disabled}\n          class:bx--tabs__nav-item--selected={selected}\n        >\n          <a\n            href=\"/\"\n            bind:this={tabelements[i]}\n            role=\"radio\"\n            tabindex={selected ? 0 : -1}\n            aria-checked={selected}\n            aria-disabled={tab.disabled}\n            class:bx--tabs__nav-link={true}\n            class:auto-width={true}\n            on:click|preventDefault={onTabClick(tab, i)}\n            on:keydown={onTabKeyDown(tab, i)}\n          >\n            {#if tab.icon}\n              <span class=\"icon\">\n                <svelte:component this={tab.icon} />\n              </span>\n            {/if}\n            {tab.label}\n          </a>\n        </div>\n      {/each}\n    </div></ScrollOverflow></div>\n  </div>\n{/if}\n\n<style>\n  .icon {\n    display: inline-block;\n    margin-right: 8px;\n    vertical-align: text-bottom;\n  }\n</style>\n","<script lang=\"ts\" generics=\"T extends Record<string, any> = Record<string, any>, Q extends Record<string, any> = Record<string, any>\">\n  import { browser } from '$app/environment'\n  import { afterNavigate, goto } from '$app/navigation'\n  import { page } from '$app/stores'\n  import { ResizeStore, resize } from '@txstate-mws/svelte-components'\n  import { Form, type FormStore } from '@txstate-mws/svelte-forms'\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\nimport Search from \"carbon-components-svelte/src/Search/Search.svelte\";\n  import Filter from \"carbon-icons-svelte/lib/Filter.svelte\";\nimport FilterEdit from \"carbon-icons-svelte/lib/FilterEdit.svelte\";\n  import { createEventDispatcher, onMount } from 'svelte'\n  import { equal, findIndex, toQuery } from 'txstate-utils'\n  import PanelFormDialog from './form/PanelFormDialog.svelte'\n  import FilterUiQuickSlotContext from './FilterUIQuickSlotContext.svelte'\n  import TabRadio from './TabRadio.svelte'\n  import { addFilters, extractFilters, getUrl, replaceState, urlEqual, type TabRadioItem } from './util.js'\n\n  interface $$Slots {\n    default: Record<string, never>\n    quickfilters: {\n      /**\n       * Indicates that the quickfilters slot is visible. When false, it means that\n       * the quickfilters slot has been moved to the panel dialog with the rest of the filters.\n       *\n       * Rarely, you may want to use this to change the display of the individual filters, for\n       * instance you may want to set `hideLabel={quickslot}` on a select dropdown so that the label\n       * is visible when in the panel, but hidden when out in the quickfilters area (users\n       * can still see the placeholder so the label is a bit redundant and taking up space).\n       *\n       * NOTE: Several carbon-svelte form components will automatically hide their labels when in\n       * the quickslot. You do not need to set hideLabel on FieldCombobox, FieldMultiselect,\n       * FieldSelect, or FieldTextInput. You can override this behavior by setting hideLabel={false}\n       * on those components.\n       *\n       * NOTE: If everything in this slot is inside an `{#if}`, supplying the slot still counts\n       * as having quick filters, even while the `{#if}` renders nothing — you'd get an\n       * \"Add filters\" button that opens an empty panel. Set the hasQuickFilters prop to tell\n       * FilterUI whether your content is really there.\n       */\n      quickslot: boolean\n    }\n  }\n  /**\n   * Shows a search input field when true.\n   */\n  export let search = false\n  /**\n   * Milliseconds to wait after the user stops typing before triggering a search.\n   */\n  export let searchDebounceMs = 500\n  /**\n   * A CSS class for the container around the search, but only when in the quick filters area.\n   * Use this to adjust the width of the search bar.\n   */\n  export let searchQuickClass = ''\n  /**\n   * This is the viewport width in px under which the quick filters will be moved inside the panel with\n   * the rest of the filters. If you only have a search bar, or one quick filter, you can set this\n   * lower, or if you have a lot of quick filters, you can set this higher.\n   */\n  export let quickFilterWidth = 800\n  /**\n   * Set this true if you always expect filtering to be fast. It will send the 'apply' event\n   * every time the user interacts with the filters, instead of waiting for them to hit an Apply\n   * button.\n   */\n  export let noApply = false\n  /**\n   * Default behavior is to save the state of the applied filters in the address bar so that\n   * the page can be bookmarked. Set this true if you don't want this behavior, e.g. you have\n   * two FilterUI instances on the screen at once.\n   */\n  export let skipUrlState = false\n  /**\n   * Default behavior is to goto() the new URL when the filters are applied. This will re-run the\n   * load() function in your +page.ts, so that your table gets new data. In rare cases, your load\n   * function may be particularly heavy, like on a dashboard screen with many widgets. In those cases,\n   * you may set this true and you will only get the url in the address bar, but the load function will\n   * not re-run. You will have to listen for the 'apply' event and manually make API calls to freshen\n   * your data.\n   *\n   * This prop has no effect if skipUrlState is true, because that skips both the goto() effect and the\n   * address bar update.\n   */\n  export let skipGoto = false\n  /**\n   * Array of tab objects with `{ label: string, value: string }` shape.\n   * @type {TabRadioItem[]}\n   */\n  export let tabs: TabRadioItem[] = []\n\n  /**\n   * Set this prop when it's possible your quickfilters content is all hidden. Even if\n   * the slot renders completely empty, svelte has no way of knowing that, so the \"Add Filters\"\n   * button is going to show up. hasQuickFilters={false} will prevent that.\n   * @type {boolean | undefined}\n   */\n  export let hasQuickFilters: boolean | undefined = undefined\n\n  /**\n   * Accessible name for the tab radiogroup. Describes what the tabs select among\n   * (e.g. \"View mode\", \"Filter by status\"). Required for screen reader users when\n   * `tabs` is non-empty. Prefer `tabsAriaLabelledBy` if a visible heading already\n   * labels the tabs.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let tabsAriaLabel: string | undefined = undefined\n\n  /**\n   * ID of an element that labels the tab radiogroup. Takes precedence over\n   * `tabsAriaLabel` when both are set.\n   * @type {string | undefined}\n   * @default undefined\n   */\n  export let tabsAriaLabelledBy: string | undefined = undefined\n\n  /**\n   * @event {} apply Triggered when filters are applied, either through the Apply button or immediately if noApply is true.\n  */\n\n  /**\n   * @event {} mount Triggered when the component first mounts, providing initial filter state.\n  */\n\n  const dispatch = createEventDispatcher()\n\n  let dialogOpen = false\n  function showDialog () {\n    dialogOpen = true\n  }\n  function cancelDialog () {\n    dialogOpen = false\n  }\n\n  const resizeStore = new ResizeStore()\n  $: hideQuickFilters = ($resizeStore.clientWidth ?? 1024) <= quickFilterWidth\n  $: quickSlotFilled = hasQuickFilters ?? $$slots.quickfilters\n\n  let dialogStore: FormStore<T>\n  let quickStore: FormStore<Q>\n  let dialogData: T\n  let quickData: Q\n  let tabIndex = 0\n  let selectedTab: string | number | boolean | object | undefined\n  let searchStr: string | undefined\n  let filterCount: number\n  let dialogFilterCount: number\n\n  $: dialogFilterCount = (dialogData ? countRecords(dialogData) : 0) + (quickData && hideQuickFilters ? countRecords(quickData) : 0)\n  $: filterCount = (quickData ? countRecords(quickData) : 0) + dialogFilterCount + (searchStr ? 1 : 0)\n  $: if (quickData && quickStore && ((!hideQuickFilters) || (hideQuickFilters && dialogOpen))) {\n    void quickStore.setData(quickData)\n  }\n\n  function countRecords<T extends Record<string, any>> (value: T): number {\n    let count = 0\n    for (const key in value) {\n      const val = value[key]\n      if (val == null) continue\n\n      if (Array.isArray(val)) {\n        count += val.length\n      } else if (typeof val === 'object') {\n        count += Object.values(val).filter(v => v != null).length\n      } else if (val !== '') {\n        count += 1\n      }\n    }\n    return count\n  }\n\n  let lastUpdate: { tab: any, search?: string, [key: string]: any } = {} as any\n  function updateFilters () {\n    if (!browser) return\n    const merged = { t: selectedTab, f: dialogData, q: quickData, search: searchStr }\n    const toApply = { tab: merged.t, ...merged.f, ...merged.q, search: merged.search }\n    if (!equal(lastUpdate, toApply)) {\n      lastUpdate = toApply\n      if (!skipUrlState) {\n        const currentUrl = getUrl()\n        const url = addFilters(currentUrl, merged)\n        if (skipGoto) replaceState(url)\n        else if (!urlEqual(currentUrl, url)) void goto(url, { replaceState: true, keepFocus: true, noScroll: true })\n      }\n      dispatch('apply', toApply)\n    }\n  }\n  async function onQuickValidate (data: Q) {\n    // quick filters follow dialog filter apply logic if they are grouped together\n    if (!hideQuickFilters || noApply) {\n      quickData = data\n      updateFilters()\n    }\n    return []\n  }\n  async function onDialogSubmit (data: T) {\n    dialogData = data\n    if (hideQuickFilters && quickStore) {\n      quickData = ($quickStore.data ?? {}) as Q\n    }\n    return {\n      success: true,\n      messages: []\n    }\n  }\n  async function onDialogValidate (data: T) {\n    if (noApply) {\n      dialogData = data\n      if (hideQuickFilters && quickStore) {\n        quickData = ($quickStore.data ?? {}) as Q\n      }\n      updateFilters()\n    }\n    return []\n  }\n  function onDialogSaved (e: CustomEvent<T>) {\n    dialogOpen = false\n    updateFilters()\n  }\n\n  function onTabChange (e: CustomEvent<any>) {\n    selectedTab = e.detail.value\n    updateFilters()\n  }\n\n  let searchTimer: undefined | ReturnType<typeof setTimeout>\n  function onSearchInput (e: Event) {\n    clearTimeout(searchTimer)\n    searchTimer = setTimeout(() => {\n      searchStr = (e.target as HTMLInputElement)?.value ?? ''\n      updateFilters()\n    }, searchDebounceMs)\n  }\n\n  function clearAllFilters () {\n    dialogData = {} as const as T\n    quickData = {} as const as Q\n    searchStr = undefined\n    void dialogStore?.setData({})\n    void quickStore?.setData({})\n    updateFilters()\n  }\n\n  afterNavigate(() => {\n    if (browser && !skipUrlState) {\n      const params = extractFilters($page.url)\n      dialogData = params.f\n      quickData = params.q\n      tabIndex = findIndex(tabs, t => toQuery(t.value) === toQuery(params.t)) ?? 0\n      selectedTab = tabs?.[tabIndex]?.value ?? undefined\n      searchStr = params.search\n      void quickStore?.setData(quickData)\n      lastUpdate = { tab: selectedTab, ...dialogData, ...quickData, search: searchStr }\n      dispatch('mount', lastUpdate)\n    }\n  })\n</script>\n\n<div use:resize={{ store: resizeStore }} class=\"filter-ui-container [ @container flex flex-wrap items-start gap-4 mb-4 ]\">\n  {#if tabs.length}\n    <TabRadio selectedIndex={tabIndex} on:change={onTabChange} {tabs} ariaLabel={tabsAriaLabel} ariaLabelledBy={tabsAriaLabelledBy} />\n  {/if}\n  {#if search}\n    <div class=\"filter-ui-search-container {searchQuickClass} [ grow @md:grow-[0.3] supports-[not(container-type:inline-size)]:md:grow-[0.3] ] \">\n      <Search on:input={onSearchInput} name=\"search\" value={searchStr} size=\"lg\" on:clear={onSearchInput}/>\n    </div>\n  {/if}\n  {#if quickSlotFilled && !hideQuickFilters}\n    <Form bind:store={quickStore} validate={onQuickValidate} submit={async data => ({ success: true, messages: [], data })} class=\"quickfilters-form [ flex flex-wrap gap-4 ] \">\n      <FilterUiQuickSlotContext>\n        <slot name=\"quickfilters\" quickslot={true} />\n      </FilterUiQuickSlotContext>\n    </Form>\n  {/if}\n  {#if $$slots.default || quickSlotFilled}\n    {#if $$slots.default || hideQuickFilters}\n      <Button kind={dialogFilterCount ? 'primary' : 'secondary'} size=\"field\" icon={dialogFilterCount ? FilterEdit : Filter} on:click={showDialog}>{quickSlotFilled && !hideQuickFilters ? dialogFilterCount ? `${dialogFilterCount}` : 'More' : dialogFilterCount ? `${dialogFilterCount}` : 'Add'} {dialogFilterCount !== 1 ? 'filters' : 'filter'}</Button>\n    {/if}\n    <div class=\"clear-filters-wrap\">\n     {#if filterCount > 0}\n      <Button kind=\"ghost\" size=\"field\" on:click={clearAllFilters}>Clear filters</Button>\n    {/if}\n  </div>\n  <PanelFormDialog bind:open={dialogOpen} class=\"filterui-panel\" preload={dialogData} title=\"{noApply ? 'Choose' : 'Apply'} Filters\" bind:store={dialogStore} submit={onDialogSubmit} validate={onDialogValidate} on:cancel={cancelDialog} on:saved={onDialogSaved} cancelText={noApply ? '' : 'Cancel'} submitText={noApply ? '' : 'Apply'}>\n    <svelte:fragment slot=\"beforeform\">\n      {#if hideQuickFilters}\n        <Form bind:store={quickStore} validate={onQuickValidate} submit={async data => ({ success: true, messages: [], data })} class=\"quickfiltershidden-form\">\n          <slot name=\"quickfilters\" quickslot={false} />\n        </Form>\n      {/if}\n    </svelte:fragment>\n    <slot />\n  </PanelFormDialog>\n  {/if}\n</div>\n\n<style>\n  :global(.quickfilters-form > div:last-child) {\n    margin-right: 0;\n  }\n  :global(.quickfiltershidden-form ~ form) {\n    margin-top: 0;\n  }\n  :global(.quickfilters-form > div) {\n    margin-top: 0;\n    min-width: 12rem;\n  }\n  :global(.clear-filters-wrap) {\n    width: 8rem;\n    flex: 0 0 auto;\n  }\n</style>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * Specify the size of the link.\n   * @type {\"sm\" | \"md\" | \"lg\"}\n   */\n  export let size = \"md\";\n\n  /**\n   * Specify the href value.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /** Set to `true` to use the inline variant */\n  export let inline = false;\n\n  /**\n   * Specify the icon to render.\n   * `inline` must be `false`.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /** Set to `true` to disable the link */\n  export let disabled = false;\n\n  /** Set to `true` to allow visited styles */\n  export let visited = false;\n\n  /**\n   * Set to `true` to inherit the surrounding text color instead of the\n   * link color. Use for inline links within body text.\n   */\n  export let muted = false;\n\n  /**\n   * Obtain a reference to the top-level HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-missing-attribute -->\n<!-- svelte-ignore a11y-no-redundant-roles -->\n<!-- svelte-ignore a11y-interactive-supports-focus -->\n{#if disabled}\n  <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n  <a\n    bind:this={ref}\n    role=\"link\"\n    aria-disabled=\"true\"\n    class:bx--link={true}\n    class:bx--link--disabled={disabled}\n    class:bx--link--inline={inline}\n    class:bx--link--visited={visited}\n    class:bx--link--muted={muted}\n    {...$$restProps}\n    on:click={(event) => {\n      event.preventDefault();\n      event.stopPropagation();\n    }}\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n    on:focus\n    on:blur\n    on:keydown\n    on:keyup\n  >\n    <slot />\n    {#if !inline && ($$slots.icon || icon)}\n      <span class:bx--link__icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </span>\n    {/if}\n  </a>\n{:else}\n  <a\n    bind:this={ref}\n    class:bx--link={true}\n    class:bx--link--disabled={disabled}\n    class:bx--link--inline={inline}\n    class:bx--link--visited={visited}\n    class:bx--link--muted={muted}\n    class:bx--link--sm={size === \"sm\"}\n    class:bx--link--lg={size === \"lg\"}\n    rel={$$restProps.target === \"_blank\" ? \"noopener noreferrer\" : undefined}\n    {href}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n    on:focus\n    on:blur\n    on:keydown\n    on:keyup\n  >\n    <slot />\n    {#if !inline && ($$slots.icon || icon)}\n      <span class:bx--link__icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </span>\n    {/if}\n  </a>\n{/if}\n","<script lang=\"ts\">\n  import { type ActionItem } from './util.js'\n  import ActionSet from './ActionSet.svelte'\n\n  /**\n   * Array of action items to display. Each action item can have\n   * @type {ActionItem[]}\n  */\n export let actions: ActionItem[] = []\n  /**\n    * If true, all actions will be styled as secondary buttons instead of having the first action styled as primary.\n    * @type {boolean}\n  */\n export let noPrimaryAction = false\n  /**\n   * Maximum number of visible buttons before collapsing additional actions into an overflow menu.\n   * @type {number}\n  */\n  export let maxButtons = 3\n\n    /**\n   * @slot {{}} utility - space beside the page actions without being one of them: ghost controls, rendered to their left in the same gutter. `ExpandCollapseAll` above a page of Panels is the case this exists for. Slot content is a sibling of the `ActionSet`, not a member, so it keeps its own tab stop, stays out of the roving focus, and is never pushed into the overflow menu.\n   */\n</script>\n\n<div class=\"page-actions [ flex justify-end flex-grow ] {$$restProps.class}\">\n  <slot name=\"utility\" />\n  <ActionSet includeLabels {actions} {noPrimaryAction} {maxButtons} />\n</div>\n\n<style>\n  .page-actions {\n    flex-wrap: wrap;\n    gap: 0.5rem;\n    align-items: center;\n  }\n\n  /* div role=\"menu\" */\n  .page-actions :global(> div[role=\"menu\"]) {\n    flex-wrap: wrap;\n    gap: 0.5rem;\n    flex-direction: row;\n  }\n\n</style>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M20 24L10 16 20 8z\"></path>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M12 8L22 16 12 24z\"></path>\n</svg>\n","<script>\n  /**\n   * Dispatched when the user changes the page or page size through any interaction.\n   * @event change\n   * @type {object}\n   * @property {number} [page]\n   * @property {number} [pageSize]\n   * @event click:button--previous\n   * Dispatched when the user clicks the previous page button.\n   * @type {object}\n   * @property {number} page\n   * @event click:button--next\n   * Dispatched when the user clicks the next page button.\n   * @type {object}\n   * @property {number} page\n   * @event update\n   * Dispatched reactively whenever the page or page size changes.\n   * @type {object}\n   * @property {number} pageSize\n   * @property {number} page\n   */\n\n  /**\n   * Override the page-selection control.\n   * Falls back to the default page number `Select` when unset.\n   * Use the bound `page` prop to navigate from within the slot.\n   * @slot {{ currentPage: number; totalPages: number; currentPageSize: number; selectLabelText: string; }} pageSelect\n   */\n\n  /**\n   * Specify the current page index.\n   * @bindable writable\n   */\n  export let page = 1;\n\n  /** Specify the total number of items */\n  export let totalItems = 0;\n\n  /**\n   * If `totalItems` is a large number, it can affect the\n   * rendering performance of this component since its value\n   * is used to calculate the number of pages in the native\n   * select dropdown. This value creates a small window of\n   * pages rendered around the current page. By default,\n   * a maximum of 1000 page `<option>` elements are rendered.\n   */\n  export let pageWindow = 1000;\n\n  /** Set to `true` to disable the pagination */\n  export let disabled = false;\n\n  /** Specify the forward button text */\n  export let forwardText = \"Next page\";\n\n  /**\n   * Specify the tooltip position for the forward button.\n   * @type {\"top\" | \"right\" | \"bottom\" | \"left\"}\n   */\n  export let forwardTextTooltipPosition = \"top\";\n\n  /** Specify the backward button text */\n  export let backwardText = \"Previous page\";\n\n  /**\n   * Specify the tooltip position for the backward button.\n   * @type {\"top\" | \"right\" | \"bottom\" | \"left\"}\n   */\n  export let backwardTextTooltipPosition = \"top\";\n\n  /** Specify the items per page text */\n  export let itemsPerPageText = \"Items per page:\";\n\n  /**\n   * Override the item text.\n   * @type {(min: number, max: number) => string}\n   */\n  export let itemText = (min, max) =>\n    `${min.toLocaleString()}–${max.toLocaleString()} item${max === 1 ? \"\" : \"s\"}`;\n\n  /**\n   * Override the item range text.\n   * @type {(min: number, max: number, total: number) => string}\n   */\n  export let itemRangeText = (min, max, total) =>\n    `${min.toLocaleString()}–${max.toLocaleString()} of ${total.toLocaleString()} item${max === 1 ? \"\" : \"s\"}`;\n\n  /** Set to `true` to disable the page input */\n  export let pageInputDisabled = false;\n\n  /** Set to `true` to disable the page size input */\n  export let pageSizeInputDisabled = false;\n\n  /**\n   * Set to `true` for a compact prev/next control with page status text.\n   * Hides the page size and page selects. Suited to toolbars and cards.\n   */\n  export let simple = false;\n\n  /**\n   * Specify the number of items to display in a page.\n   * @bindable writable\n   */\n  export let pageSize = 10;\n\n  /**\n   * Specify the available page sizes.\n   * @type {ReadonlyArray<number>}\n   */\n  export let pageSizes = [10];\n\n  /**\n   * Set to `true` to dynamically filter page sizes based on total items.\n   * Page sizes larger than needed to display all items on a single page are hidden.\n   * @example\n   * <Pagination totalItems={9} pageSizes={[5, 10, 15]} dynamicPageSizes />\n   * <!-- renders [5, 10] -->\n   */\n  export let dynamicPageSizes = false;\n\n  /** Set to `true` if the number of pages is unknown */\n  export let pagesUnknown = false;\n\n  /**\n   * Override the disabled state of the forward (next page) button.\n   * Intended for use with `pagesUnknown` (controlled), where the consumer\n   * knows when there is no more data to load.\n   * @type {boolean | undefined}\n   */\n  export let forwardButtonDisabled = undefined;\n\n  /**\n   * Override the disabled state of the backward (previous page) button.\n   * Intended for use with `pagesUnknown` (controlled), where the consumer\n   * manages page bounds.\n   * @type {boolean | undefined}\n   */\n  export let backButtonDisabled = undefined;\n\n  /**\n   * Override the page text.\n   * @type {(page: number) => string}\n   */\n  export let pageText = (page) => `page ${page.toLocaleString()}`;\n\n  /**\n   * Override the page range text.\n   * @type {(current: number, total: number) => string}\n   */\n  export let pageRangeText = (_current, total) =>\n    `of ${total.toLocaleString()} page${total === 1 ? \"\" : \"s\"}`;\n\n  /**\n   * Override the accessible label for the page number select.\n   * @type {(total: number) => string}\n   */\n  export let pageSelectLabelText = (total) => `Page number, of ${total} pages`;\n\n  /** Set an id for the top-level element */\n  export let id = uniqueId();\n\n  /**\n   * Specify the size of the pagination.\n   * @type {\"xs\" | \"sm\" | \"md\" | \"lg\"}\n   */\n  export let size = \"md\";\n\n  import { createEventDispatcher, tick } from \"svelte\";\n  import Button from \"../Button/Button.svelte\";\n  import CaretLeft from \"../icons/CaretLeft.svelte\";\n  import CaretRight from \"../icons/CaretRight.svelte\";\n  import Select from \"../Select/Select.svelte\";\n  import SelectItem from \"../Select/SelectItem.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n\n  let prevPage = page;\n  let prevPageSize = pageSize;\n  let prevPageSizesKey;\n  let backBtnRef = null;\n  let forwardBtnRef = null;\n\n  /**\n   * When a nav button becomes disabled as a result of its own click, the\n   * browser blurs it (moving focus to the body). Refocus the other button\n   * so keyboard/AT users don't lose their place.\n   * @param {HTMLElement | null} clickedRef\n   * @param {HTMLElement | null} otherRef\n   */\n  async function refocusIfDisabled(clickedRef, otherRef) {\n    const wasFocused = document.activeElement === clickedRef;\n    await tick();\n    if (wasFocused && clickedRef?.disabled && otherRef) {\n      otherRef.focus();\n    }\n  }\n\n  /**\n   * Returns a subset of page numbers centered around the current page to prevent\n   * performance issues with large datasets. Creates a capped window of pages\n   * instead of potentially thousands, improving render speed and memory usage.\n   * @param {number} currentPage - The current page number.\n   * @param {number} totalPages - Total number of pages.\n   * @param {number} window - Maximum number of pages to render.\n   * @returns {number[]} Array of page numbers to display.\n   */\n  function getWindowedPages(currentPage, totalPages, window) {\n    const size = Math.min(window, totalPages);\n    const half = Math.floor(size / 2);\n    let start = Math.max(1, currentPage - half);\n    const end = Math.min(totalPages, start + size - 1);\n    start = Math.max(1, end - size + 1);\n    return Array.from({ length: end - start + 1 }, (_, i) => start + i);\n  }\n\n  /**\n   * Filters page sizes to remove redundant options based on total items.\n   * Keeps all sizes up to and including the first one >= totalItems.\n   * @returns {number[]} Filtered array of page sizes.\n   */\n  function getFilteredPageSizes(sizes, total) {\n    if (total <= 0) return sizes.slice(0, 1);\n    const filtered = [];\n    for (const size of sizes) {\n      filtered.push(size);\n      if (size >= total) break;\n    }\n    return filtered.length ? filtered : sizes.slice(0, 1);\n  }\n\n  $: effectivePageSizes = dynamicPageSizes\n    ? getFilteredPageSizes(pageSizes, totalItems)\n    : pageSizes;\n  // After the available sizes change, if the current size is gone, use the\n  // first remaining size and reset to page 1. Skip the initial run so a\n  // bound pageSize that isn't in the default `pageSizes` stays put.\n  $: {\n    const nextPageSizesKey = effectivePageSizes.join(\",\");\n    if (\n      prevPageSizesKey !== undefined &&\n      nextPageSizesKey !== prevPageSizesKey &&\n      effectivePageSizes.length &&\n      !effectivePageSizes.includes(pageSize)\n    ) {\n      pageSize = effectivePageSizes[0];\n      page = 1;\n    }\n    prevPageSizesKey = nextPageSizesKey;\n  }\n  $: totalPages = Math.max(Math.ceil(totalItems / pageSize), 1);\n  $: if (!pagesUnknown && page > totalPages) page = totalPages;\n  $: if (prevPage !== page || prevPageSize !== pageSize) {\n    dispatch(\"update\", { pageSize, page });\n    prevPage = page;\n    prevPageSize = pageSize;\n  }\n  $: selectItems = getWindowedPages(page, totalPages, pageWindow);\n  $: internalBackButtonDisabled =\n    backButtonDisabled ?? (disabled || page === 1);\n  $: internalForwardButtonDisabled =\n    forwardButtonDisabled ??\n    (disabled || (!pagesUnknown && page === totalPages));\n  $: itemsCountText = pagesUnknown\n    ? itemText(pageSize * (page - 1) + 1, page * pageSize)\n    : itemRangeText(\n        Math.min(pageSize * (page - 1) + 1, totalItems),\n        Math.min(page * pageSize, totalItems),\n        totalItems,\n      );\n</script>\n\n<div\n  {id}\n  class:bx--pagination={true}\n  class:bx--pagination--simple={simple}\n  class:bx--pagination--xs={size === \"xs\"}\n  class:bx--pagination--sm={size === \"sm\"}\n  class:bx--pagination--md={size === \"md\"}\n  class:bx--pagination--lg={size === \"lg\"}\n  {...$$restProps}\n>\n  {#if !simple}\n    <div class:bx--pagination__left={true}>\n      {#if !pageSizeInputDisabled}\n        <label\n          id=\"bx--pagination-select-{id}-sizes-label\"\n          for=\"bx--pagination-select-{id}-sizes\"\n          class:bx--pagination__text={true}\n        >\n          {itemsPerPageText}\n        </label>\n        <Select\n          id=\"bx--pagination-select-{id}-sizes\"\n          class=\"bx--select__item-count\"\n          hideLabel\n          noLabel\n          inline\n          disabled={pageSizeInputDisabled || disabled}\n          on:update={(event) => {\n            dispatch(\"change\", { pageSize: event.detail });\n          }}\n          bind:selected={pageSize}\n        >\n          {#each effectivePageSizes as size, index (size)}\n            <SelectItem value={size} text={size.toString()} />\n          {/each}\n        </Select>\n      {/if}\n      <span\n        class:bx--pagination__text={!pageSizeInputDisabled}\n        class:bx--pagination__items-count={true}\n      >\n        {itemsCountText}\n      </span>\n    </div>\n  {/if}\n  <div class:bx--pagination__right={true}>\n    {#if simple}\n      <span class:bx--pagination__text={true}>\n        {#if pagesUnknown}\n          {pageText(page)}\n        {:else}\n          {pageText(page)} {pageRangeText(page, totalPages)}\n        {/if}\n      </span>\n    {:else if !pageInputDisabled}\n      <slot\n        name=\"pageSelect\"\n        currentPage={page}\n        {totalPages}\n        currentPageSize={pageSize}\n        selectLabelText={pageSelectLabelText(totalPages)}\n      >\n        <!-- Native <option>s instead of SelectItem: a SelectItem\n             registers a store subscriber per page (pageWindow, default\n             1000). Coerce on:update to Number — without SelectItem,\n             Select keeps option values as strings. -->\n        <Select\n          id=\"bx--pagination-select-{id}-pages\"\n          class=\"bx--select__page-number\"\n          labelText={pageSelectLabelText(totalPages)}\n          inline\n          hideLabel\n          disabled={pageInputDisabled || disabled}\n          selected={page}\n          on:update={(event) => {\n            const next = Number(event.detail);\n            page = next;\n            dispatch(\"change\", { page: next });\n          }}\n        >\n          {#each selectItems as pageNumber (pageNumber)}\n            <option class=\"bx--select-option\" value={pageNumber}>\n              {pageNumber}\n            </option>\n          {/each}\n        </Select>\n      </slot>\n      <span class:bx--pagination__text={true}>\n        {#if pagesUnknown}\n          {pageText(page)}\n        {:else}\n          {pageRangeText(page, totalPages)}\n        {/if}\n      </span>\n    {/if}\n    <div class:bx--pagination__control-buttons={true}>\n      <Button\n        bind:ref={backBtnRef}\n        kind=\"ghost\"\n        tooltipAlignment=\"center\"\n        tooltipPosition={backwardTextTooltipPosition}\n        portalTooltip\n        icon={CaretLeft}\n        iconDescription={backwardText}\n        disabled={internalBackButtonDisabled}\n        class=\"bx--pagination__button bx--pagination__button--backward {internalBackButtonDisabled\n          ? 'bx--pagination__button--no-index'\n          : ''}\"\n        on:click={() => {\n          page--;\n          dispatch(\"click:button--previous\", { page });\n          dispatch(\"change\", { page });\n          refocusIfDisabled(backBtnRef, forwardBtnRef);\n        }}\n      />\n      <Button\n        bind:ref={forwardBtnRef}\n        kind=\"ghost\"\n        tooltipAlignment=\"end\"\n        tooltipPosition={forwardTextTooltipPosition}\n        portalTooltip\n        icon={CaretRight}\n        iconDescription={forwardText}\n        disabled={internalForwardButtonDisabled}\n        class=\"bx--pagination__button bx--pagination__button--forward {internalForwardButtonDisabled\n          ? 'bx--pagination__button--no-index'\n          : ''}\"\n        on:click={() => {\n          page++;\n          dispatch(\"click:button--next\", { page });\n          dispatch(\"change\", { page });\n          refocusIfDisabled(forwardBtnRef, backBtnRef);\n        }}\n      />\n    </div>\n  </div>\n</div>\n","<script lang=\"ts\">\n  import { browser } from '$app/environment'\n  import { goto } from '$app/navigation'\n  import { page as pageStore } from '$app/stores'\n  import Pagination from \"carbon-components-svelte/src/Pagination/Pagination.svelte\";\n  import { createEventDispatcher, onDestroy, onMount, type ComponentProps } from 'svelte'\n  import { addPaginationParams, extractPaginationParams, getUrl, replaceState, urlEqual } from './util.js'\n\n  interface $$Props extends Omit<ComponentProps<Pagination>, 'pageInputDisabled' | 'pageSizeInputDisabled' | 'itemRangeText' | 'itemText' | 'itemsPerPageText' | 'pageSizes'> {\n    page?: number\n    totalItems?: number\n    visibleItems?: number\n    pageSize?: 25 | 100 | 500\n    chooseSize?: boolean\n    noun?: string\n    nounPlural?: string\n  }\n\n  /**\n   * @event update Fired when page or page size changes.\n  */\n\n  /**\n   * @event mount Fired when component mounts.\n  */\n\n  /**\n   * Current page number, starting from 1. Used to control which page of results is displayed.\n   * @type {number}\n   */\n  export let page = 1\n\n  /**\n   * Total number of items in the dataset. Used to calculate the total number of pages\n   * and display the item range text (e.g., \"1-100 of 500 items\").\n   * @type {number | undefined}\n   */\n  export let totalItems: number | undefined = undefined\n\n  /**\n   * Number of items currently visible. Only necessary if totalItems is not available.\n   * Used in cases where the total count might be unknown but the current page size is known.\n   * @type {number | undefined}\n   */\n  export let visibleItems: number | undefined = undefined\n\n  /**\n   * Number of items to display per page. Only allows specific values to maintain\n   * consistent page sizes across the application.\n   * @type {25 | 100 | 500}\n   */\n  export let pageSize: 25 | 100 | 500 = 100\n\n  /**\n   * Whether to allow users to change the page size via a dropdown menu.\n   * When false, the page size selector will be disabled.\n   * @type {boolean}\n   */\n  export let chooseSize = false\n\n  /**\n   * Singular form of the item type being paginated (e.g., \"user\", \"record\", \"item\").\n   * Used in the pagination text for better context.\n   * @type {string}\n   */\n  export let noun = 'item'\n\n  /**\n   * Plural form of the item type being paginated (e.g., \"users\", \"records\", \"items\").\n   * Used in the pagination text when referring to multiple items.\n   * @type {string}\n   */\n  export let nounPlural = 'items'\n  /**\n   * Default behavior is to save the state of the applied filters in the address bar so that\n   * the page can be bookmarked. Set this true if you don't want this behavior, e.g. you have\n   * two FilterUI instances on the screen at once.\n   */\n  export let skipUrlState = false\n  /**\n   * Default behavior is to goto() the new URL when the filters are applied. This will re-run the\n   * load() function in your +page.ts, so that your table gets new data. In rare cases, your load\n   * function may be particularly heavy, like on a dashboard screen with many widgets. In those cases,\n   * you may set this true and you will only get the url in the address bar, but the load function will\n   * not re-run. You will have to listen for the 'apply' event and manually make API calls to freshen\n   * your data.\n   *\n   * This prop has no effect if skipUrlState is true, because that skips both the goto() effect and the\n   * address bar update.\n   */\n   export let skipGoto = false\n\n  /**\n   * The size of the content using pagination. This affects the available page sizes.\n   * Use 'small' for smaller content (e.g., table with rows) and 'large' for larger content (e.g., cards, images).\n   * @type {'small' | 'large'}\n   */\n  export let contentSize: 'small' | 'large' = 'small'\n\n  const dispatch = createEventDispatcher()\n\n  const largeRows = [10, 25, 50] // largeRows\n  const smallRows = [25, 50, 100, 500] // smallRows\n  const pageSizes = contentSize === 'large' ? largeRows : smallRows\n\n  function itemText (min: number, max: number) {\n    return max - min > 0 ? `${nounPlural} ${min}-${Math.max(max, min + (visibleItems ?? max - min))}` : `${noun} ${min}`\n  }\n  function itemRangeText (min: number, max: number, total: number) {\n    return (pageSize > total ? total + ' ' : `${min}-${max} of ${total} `) + (total !== 1 ? nounPlural : noun)\n  }\n  let liveText = ''\n  // delay live text update to prevent announcement getting cut off by other updates.\n  let liveTimeout: ReturnType<typeof setTimeout>\n  $: {\n    clearTimeout(liveTimeout)\n    const n = noun\n    const np = nounPlural\n    if (totalItems !== undefined) {\n      liveTimeout = setTimeout(() => {\n        liveText = `${totalItems} ${totalItems === 1 ? n : np} total`\n      }, 1000)\n    } else {\n      liveText = ''\n    }\n  }\n  onDestroy(() => { clearTimeout(liveTimeout) })\n\n  let lastPage = page\n  let lastPageSize = pageSize\n  function onChange (..._: any[]) {\n    if (lastPage === page && lastPageSize === pageSize) return\n    lastPage = page\n    lastPageSize = pageSize\n    if (!skipUrlState) {\n      const currentUrl = getUrl()\n      const url = addPaginationParams(currentUrl, { page, pagesize: pageSize })\n      if (skipGoto) replaceState(url)\n      else if (!urlEqual(currentUrl, url)) void goto(url, { replaceState: true, keepFocus: true, noScroll: true })\n    }\n    dispatch('update', { page, pageSize })\n  }\n  $: onChange(page, pageSize)\n\n  onMount(() => {\n    if (browser && !skipUrlState) {\n      const params = extractPaginationParams($pageStore.url)\n      page = params.page ?? page\n      pageSize = params.pagesize as typeof pageSize ?? pageSize\n    }\n    dispatch('mount', { page, pageSize })\n  })\n</script>\n\n<div role=\"status\" aria-atomic=\"true\" class=\"sr-only\">{liveText}</div>\n<div class=\"pagination-container\">\n  <Pagination {...$$restProps} bind:page bind:pageSize {totalItems} itemsPerPageText=\"Per Page:\" {pageSizes} {itemText} {itemRangeText} pageSizeInputDisabled={!chooseSize || totalItems === 0} pageInputDisabled={!totalItems} />\n</div>\n<style>\n  .pagination-container {\n    container-type: inline-size;\n    container-name: pagination;\n    width: 100%;\n  }\n\n  @container pagination (max-width: 41.98rem) {\n    :global(.bx--pagination) {\n      overflow-x: visible;\n    }\n\n    :global(.bx--pagination__left > span) {\n      margin-inline-start: 1rem;\n    }\n\n    :global(.bx--pagination .bx--pagination__left > *) {\n      display: block;\n    }\n\n    :global(.bx--pagination label.bx--pagination__text) {\n      display: none;\n    }\n  }\n\n  @container pagination (max-width: 26rem) {\n\n\n    :global(.bx--pagination .bx--select__item-count > *) {\n      display: none;\n    }\n\n    :global(.bx--pagination__left) {\n      padding-inline: 0;\n    }\n  }\n\n  @container pagination (max-width: 33rem) {\n    :global(.bx--pagination__right .bx--pagination__text)\n     {\n      display: none;\n    }\n    :global(.bx--pagination .bx--select-input--inline__wrapper) {\n      display: none;\n    }\n  }\n</style>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * @slot {{ selected: boolean; }}\n   */\n\n  /**\n   * Specify the tab label.\n   * Alternatively, use the default slot.\n   * @example\n   * ```svelte\n   * <Tab>\n   *   <span>Label</span>\n   * </Tab>\n   * ```\n   */\n  export let label = \"\";\n\n  /** Specify the href attribute */\n  export let href = \"#\";\n\n  /** Set to `true` to disable the tab */\n  export let disabled = false;\n\n  /**\n   * Specify the tabindex\n   * @type {number | string | undefined}\n   */\n  export let tabindex = \"0\";\n\n  /**\n   * Set an id for the top-level element.\n   * Use a stable value with `Tabs` `selectedId` when tabs are added or removed dynamically.\n   */\n  export let id = uniqueId();\n\n  /**\n   * Specify an optional secondary label.\n   * Only rendered for container type tabs.\n   * Alternatively, use the \"secondaryChildren\" slot.\n   */\n  export let secondaryLabel = \"\";\n\n  /**\n   * Specify the icon to render.\n   * Icon is rendered to the right of the label by default.\n   * When the parent `Tabs` is `dismissible`, the icon is rendered to the left.\n   * When the parent `Tabs` is `iconOnly`, only the icon is rendered and the\n   * `label` is used as the accessible name and the tooltip shown on hover/focus.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /**\n   * Obtain a reference to the anchor HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Set the direction of the tooltip relative to the tab.\n   * Only used when the tab is rendered icon-only.\n   * @type {\"top\" | \"bottom\"}\n   */\n  export let tooltipDirection = \"bottom\";\n\n  /**\n   * Set the alignment of the tooltip relative to the tab.\n   * Only used when the tab is rendered icon-only.\n   * @type {\"start\" | \"center\" | \"end\"}\n   */\n  export let tooltipAlignment = \"center\";\n\n  import { getContext, onMount } from \"svelte\";\n  import { get } from \"svelte/store\";\n  import Close from \"../icons/Close.svelte\";\n  import PortalTooltip from \"../Portal/PortalTooltip.svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const {\n    selectedTab,\n    activeTooltip,\n    iconOnly,\n    useAutoWidth,\n    useFullWidth,\n    useDismissible,\n    hasSecondaryLabel,\n    add,\n    remove,\n    update,\n    dismiss,\n    tabsById,\n    contentByIndex,\n  } = getContext(\"carbon:Tabs\");\n\n  // Icon-only tabs show `label` as a portalled tooltip on hover/focus.\n  // The portal keeps the tooltip from being clipped by the tab nav's overflow.\n  const ENTER_DELAY_MS = 100;\n  const LEAVE_DELAY_MS = 300;\n\n  let hovered = false;\n  let focused = false;\n  let openTimeout;\n\n  // Gate on `activeTooltip` so only one tab tooltip shows at a time. When a\n  // neighbor claims the active slot, this one closes even while still hovered.\n  $: tooltipOpen =\n    $iconOnly && !disabled && (hovered || focused) && $activeTooltip === id;\n\n  function claim() {\n    activeTooltip.set(id);\n  }\n\n  function release() {\n    if (!hovered && !focused && get(activeTooltip) === id) {\n      activeTooltip.set(undefined);\n    }\n  }\n\n  function reveal() {\n    hovered = true;\n    claim();\n  }\n\n  function showTooltip() {\n    clearTimeout(openTimeout);\n    // Skip the enter delay when another tooltip is already open (warm handoff).\n    if (get(activeTooltip) !== undefined && get(activeTooltip) !== id) {\n      reveal();\n    } else {\n      openTimeout = setTimeout(reveal, ENTER_DELAY_MS);\n    }\n  }\n\n  function hideTooltip() {\n    clearTimeout(openTimeout);\n    openTimeout = setTimeout(() => {\n      hovered = false;\n      release();\n    }, LEAVE_DELAY_MS);\n  }\n\n  add({\n    id,\n    label,\n    disabled,\n    hasSecondaryLabel: Boolean(secondaryLabel || $$slots.secondaryChildren),\n  });\n\n  onMount(() => {\n    return () => {\n      clearTimeout(openTimeout);\n      if (get(activeTooltip) === id) activeTooltip.set(undefined);\n      remove(id);\n    };\n  });\n\n  $: selected = $selectedTab === id;\n  // Default href is the \"#\" placeholder, so tabs behave as selection controls.\n  // Any other href is user-provided and should navigate like a link.\n  $: isLink = !!href && href !== \"#\";\n  // Panels learn their tab's id by index (`TabContent`); mirror that pairing\n  // in the other direction so the tab can point `aria-controls` at its panel.\n  // `undefined` when no panel is rendered for this tab's position.\n  $: panelId = $contentByIndex[$tabsById[id]?.index];\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<li\n  role=\"presentation\"\n  class:bx--tabs__nav-item={true}\n  class:bx--tabs__nav-item--disabled={disabled}\n  class:bx--tabs__nav-item--selected={selected}\n  {...$$restProps}\n  on:click\n  on:click={(event) => {\n    if (disabled) {\n      event.preventDefault();\n      return;\n    }\n    if (!isLink) event.preventDefault();\n    update(id);\n  }}\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n  on:keydown={(event) => {\n    if (disabled) return;\n\n    if ($useDismissible && event.key === \"Delete\") {\n      dismiss(id);\n    } else if (event.key === \" \") {\n      event.preventDefault();\n      update(id);\n    } else if (event.key === \"Enter\") {\n      if (!isLink) event.preventDefault();\n      update(id);\n    }\n  }}\n>\n  <a\n    bind:this={ref}\n    role=\"tab\"\n    tabindex={disabled ? \"-1\" : tabindex}\n    aria-selected={selected}\n    aria-disabled={disabled}\n    aria-controls={panelId}\n    aria-label={$iconOnly ? label : undefined}\n    {id}\n    {href}\n    class:bx--tabs__nav-link={true}\n    class:bx--tabs__nav-link--icon={Boolean(icon) && !$iconOnly}\n    class:bx--tabs__nav-link--icon-only={$iconOnly}\n    style:width={$iconOnly\n      ? undefined\n      : $useFullWidth\n        ? \"100%\"\n        : $useAutoWidth\n          ? \"auto\"\n          : undefined}\n    on:mouseenter={$iconOnly ? showTooltip : undefined}\n    on:mouseleave={$iconOnly ? hideTooltip : undefined}\n    on:focus={$iconOnly\n      ? () => {\n          focused = true;\n          claim();\n        }\n      : undefined}\n    on:blur={$iconOnly\n      ? () => {\n          focused = false;\n          release();\n        }\n      : undefined}\n  >\n    {#if $iconOnly}\n      <div class:bx--tabs__nav-item--icon={true}>\n        <slot {selected}><svelte:component this={icon} /></slot>\n      </div>\n      <!-- Visible only in the mobile dropdown; hidden in the desktop icon-only row. -->\n      <span class:bx--tabs__nav-item-label={true}>{label}</span>\n    {:else if $hasSecondaryLabel}\n      <div class:bx--tabs__nav-item-label-wrapper={true}>\n        <span class:bx--tabs__nav-item-label={true}>\n          <slot {selected}>{label}</slot>\n        </span>\n        {#if icon}\n          <div class:bx--tabs__nav-item--icon={true}>\n            <svelte:component this={icon} />\n          </div>\n        {/if}\n      </div>\n      {#if secondaryLabel || $$slots.secondaryChildren}\n        <div\n          class:bx--tabs__nav-item-secondary-label={true}\n          title={secondaryLabel || undefined}\n        >\n          <slot name=\"secondaryChildren\">{secondaryLabel}</slot>\n        </div>\n      {:else}\n        <div\n          class:bx--tabs__nav-item-secondary-label={true}\n          aria-hidden=\"true\"\n        ></div>\n      {/if}\n    {:else}\n      {#if $useDismissible && icon}\n        <div class:bx--tabs__nav-item--icon-left={true}>\n          <svelte:component this={icon} />\n        </div>\n      {/if}\n      <span class:bx--tabs__nav-item-label={true}>\n        <slot {selected}>{label}</slot>\n      </span>\n      {#if icon && !$useDismissible}\n        <div class:bx--tabs__nav-item--icon={true}>\n          <svelte:component this={icon} />\n        </div>\n      {/if}\n    {/if}\n  </a>\n  {#if $useDismissible}\n    <div class:bx--tabs__nav-item--close={true}>\n      <button\n        type=\"button\"\n        tabindex=\"-1\"\n        aria-label={label ? `Dismiss ${label}` : \"Dismiss tab\"}\n        class:bx--tabs__nav-item--close-icon={true}\n        class:bx--tabs__nav-item--close-icon--disabled={disabled}\n        {disabled}\n        on:click|preventDefault|stopPropagation={() => {\n          if (!disabled) {\n            dismiss(id);\n          }\n        }}\n      >\n        <Close aria-hidden=\"true\" />\n      </button>\n    </div>\n  {/if}\n\n  {#if $iconOnly}\n    <PortalTooltip\n      anchor={ref}\n      direction={tooltipDirection}\n      open={tooltipOpen}\n      text={label}\n      tooltipType=\"icon\"\n      intrinsicAlign={tooltipAlignment}\n      gapTop={tooltipDirection === \"top\" ? 1 : 0}\n      gapBottom={tooltipDirection === \"bottom\" ? 1 : 0}\n    />\n  {/if}\n</li>\n","<script>\n  /**\n   * Set an id for the top-level element.\n   * Prefer a stable value when pairing panels with dynamic tabs.\n   */\n  export let id = uniqueId();\n\n  /**\n   * Set to `true` to defer mounting panel content until this tab is first selected\n   */\n  export let lazy = false;\n\n  /**\n   * Set to `true` to unmount panel content when the tab is deselected\n   */\n  export let unmountOnHide = false;\n\n  import { getContext, onMount } from \"svelte\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const { selectedContent, addContent, removeContent, tabs, contentById } =\n    getContext(\"carbon:Tabs\");\n\n  addContent({ id });\n\n  onMount(() => {\n    return () => {\n      removeContent(id);\n    };\n  });\n\n  let hasBeenSelected = false;\n\n  $: selected = $selectedContent === id;\n  $: if (selected) hasBeenSelected = true;\n  $: index = $contentById[id]?.index ?? 0;\n  $: tabId = $tabs[index]?.id;\n  $: shouldMount = unmountOnHide ? selected : lazy ? hasBeenSelected : true;\n</script>\n\n<div\n  role=\"tabpanel\"\n  aria-labelledby={tabId}\n  aria-hidden={!selected}\n  hidden={selected ? undefined : \"\"}\n  {id}\n  class:bx--tab-content={true}\n  {...$$restProps}\n>\n  {#if shouldMount}\n    <slot />\n  {/if}\n</div>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path d=\"M20 26L10 16 20 6 21.4 7.4 12.8 16 21.4 24.6z\"></path>\n</svg>\n","// @ts-check\n\n/**\n * Wrap a writable store's `update` so multiple synchronous calls made within\n * the same microtask (e.g. every child of a list registering itself from\n * its own script body during one synchronous mount pass) collapse into a\n * single flush, instead of notifying subscribers once per call. Only the\n * returned function is batched — call `store.update()` directly elsewhere\n * for an immediate, unbatched update.\n *\n * @template T\n * @param {import(\"svelte/store\").Writable<T>} store\n * @returns {(fn: (value: T) => T) => void}\n */\nexport function batchStoreUpdates(store) {\n  /** @type {Array<(value: T) => T>} */\n  let pending = [];\n  let scheduled = false;\n\n  function flush() {\n    scheduled = false;\n    const ops = pending;\n    pending = [];\n    store.update((value) => ops.reduce((acc, fn) => fn(acc), value));\n  }\n\n  return function batchedUpdate(fn) {\n    pending.push(fn);\n    if (!scheduled) {\n      scheduled = true;\n      Promise.resolve().then(flush);\n    }\n  };\n}\n","// @ts-check\n// Clamped index movement for keyboard navigation. Stops at the ends instead of wrapping.\n\n/**\n * Move `index` by `step` and clamp to `[0, length - 1]`. Returns -1 for an empty range.\n * From `index` of -1, moving up enters at the last item and moving down at the first.\n *\n * @param {number} index\n * @param {number} step\n * @param {number} length\n * @returns {number}\n */\nexport function clampIndex(index, step, length) {\n  if (length <= 0) return -1;\n  if (index < 0) return step < 0 ? length - 1 : 0;\n  const next = index + step;\n  return Math.min(Math.max(next, 0), length - 1);\n}\n","// @ts-check\n\n/**\n * Build a record keyed by `getKey(item)`, defaulting to `item.id`.\n * Later items win over earlier items with duplicate keys.\n *\n * @template T\n * @param {ReadonlyArray<T>} items\n * @param {(item: T) => string | number} [getKey]\n * @returns {Record<string, T>}\n */\nexport function keyBy(items, getKey) {\n  const key = getKey ?? ((item) => /** @type {any} */ (item).id);\n  /** @type {Record<string, T>} */\n  const result = {};\n  for (const item of items) {\n    result[key(item)] = item;\n  }\n  return result;\n}\n\nexport default keyBy;\n","// @ts-check\n\nimport { clampIndex } from \"./clampIndex.js\";\nimport { moveIndex, nextEnabledIndex } from \"./moveIndex.js\";\n\n/**\n * @typedef {\"horizontal\" | \"vertical\" | \"both\"} RovingFocusOrientation\n */\n\n/**\n * @typedef {Object} RovingFocusOptions\n * @property {string} selector - Items inside `node`. Also filters which keydown events count.\n * @property {() => HTMLElement[]} [getItems] - Item list in tab order. Default: `node.querySelectorAll(selector)`.\n * @property {RovingFocusOrientation} [orientation] - \"horizontal\" = Left/Right, \"vertical\" = Up/Down, \"both\" = all four. Default \"horizontal\".\n * @property {boolean} [wrap] - Wrap at the ends. Default `true`; `false` clamps.\n * @property {boolean} [skipDisabled] - Skip disabled items. Default `false`.\n * @property {boolean} [home] - Home jumps to the first item. Default `true`.\n * @property {boolean} [end] - End jumps to the last item. Default `true`.\n * @property {(item: HTMLElement) => boolean} [isDisabled] - Default: `disabled` or `aria-disabled=\"true\"`.\n * @property {() => number} getActiveIndex - Index to move from.\n * @property {(index: number, event: KeyboardEvent) => void} [onMove] - New index after a navigation key.\n * @property {boolean} [focusOnMove] - Call `.focus()` on the new item. Default `false`.\n */\n\n/**\n * Svelte action for arrow-key roving focus inside `node`.\n * Listens for keydown on matching items and on `node` when the list holds focus.\n * Calls `onMove(index, event)`. Index math uses moveIndex, clampIndex, and\n * nextEnabledIndex. Only Home/End call `preventDefault`.\n *\n * @param {HTMLElement} node\n * @param {RovingFocusOptions} options\n */\nexport function rovingFocus(node, options) {\n  let opts = options;\n\n  /** @param {HTMLElement} el */\n  function defaultIsDisabled(el) {\n    return (\n      el.hasAttribute(\"disabled\") || el.getAttribute(\"aria-disabled\") === \"true\"\n    );\n  }\n\n  function getItems() {\n    if (opts.getItems) return opts.getItems();\n    return /** @type {HTMLElement[]} */ (\n      Array.from(node.querySelectorAll(opts.selector))\n    );\n  }\n\n  /**\n   * @param {HTMLElement[]} items\n   * @param {number} direction\n   */\n  function moveBy(items, direction) {\n    const index = opts.getActiveIndex();\n    if (opts.skipDisabled) {\n      const isDisabled = opts.isDisabled ?? defaultIsDisabled;\n      return nextEnabledIndex({ items, index, step: direction, isDisabled });\n    }\n    return opts.wrap === false\n      ? clampIndex(index, direction, items.length)\n      : moveIndex(index, direction, items.length);\n  }\n\n  /**\n   * @param {HTMLElement[]} items\n   * @param {1 | -1} direction - 1 for the first item, -1 for the last.\n   */\n  function edge(items, direction) {\n    if (!opts.skipDisabled) {\n      return direction === 1 ? 0 : items.length - 1;\n    }\n    const isDisabled = opts.isDisabled ?? defaultIsDisabled;\n    return nextEnabledIndex({ items, index: -1, step: direction, isDisabled });\n  }\n\n  /** @param {KeyboardEvent} event */\n  function handleKeydown(event) {\n    const target = event.target;\n    if (!(target instanceof Element)) return;\n    // Item keydown, or keydown on `node` when the list itself is focused.\n    if (target !== node && !target.closest(opts.selector)) return;\n\n    const orientation = opts.orientation ?? \"horizontal\";\n    const horizontal = orientation === \"horizontal\" || orientation === \"both\";\n    const vertical = orientation === \"vertical\" || orientation === \"both\";\n\n    const items = getItems();\n    if (items.length === 0) return;\n\n    let index = -1;\n    if (\n      (horizontal && event.key === \"ArrowRight\") ||\n      (vertical && event.key === \"ArrowDown\")\n    ) {\n      index = moveBy(items, 1);\n    } else if (\n      (horizontal && event.key === \"ArrowLeft\") ||\n      (vertical && event.key === \"ArrowUp\")\n    ) {\n      index = moveBy(items, -1);\n    } else if (opts.home !== false && event.key === \"Home\") {\n      event.preventDefault();\n      index = edge(items, 1);\n    } else if (opts.end !== false && event.key === \"End\") {\n      event.preventDefault();\n      index = edge(items, -1);\n    } else {\n      return;\n    }\n\n    if (index < 0) return;\n    opts.onMove?.(index, event);\n    if (opts.focusOnMove) items[index]?.focus();\n  }\n\n  node.addEventListener(\"keydown\", handleKeydown);\n\n  return {\n    /** @param {RovingFocusOptions} update */\n    update(update) {\n      opts = update;\n    },\n    destroy() {\n      node.removeEventListener(\"keydown\", handleKeydown);\n    },\n  };\n}\n","// @ts-check\n/**\n * Reorder id-bearing items to match DOM order of `selector` within `root`.\n *\n * Slotted children register in mount order, which can diverge from visual DOM\n * order when children are conditionally rendered or reordered. Re-sorts to DOM\n * order, reassigns contiguous `index`, and drops items with no matching element.\n *\n * @template {{ id: string }} T\n * @param {Object} options\n * @param {Element} options.root - Element to query within.\n * @param {string} options.selector - CSS selector for the ordered child elements.\n * @param {ReadonlyArray<T>} options.items - Items to reorder, keyed by `id`.\n * @returns {Array<T & { index: number }>} Items in DOM order with reassigned `index`.\n */\nexport function syncDomOrder({ root, selector, items }) {\n  const itemsById = new Map(items.map((item) => [item.id, item]));\n  /** @type {Array<T & { index: number }>} */\n  const ordered = [];\n  const elements = root.querySelectorAll(selector);\n\n  for (let index = 0; index < elements.length; index++) {\n    const item = itemsById.get(elements[index].id);\n    if (item) ordered.push({ ...item, index });\n  }\n\n  return ordered;\n}\n","<script>\n  /**\n   * @event {number} change\n   * @event {{ id: string; label: string; disabled: boolean; hasSecondaryLabel: boolean; index: number }} dismiss\n   */\n\n  /**\n   * Specify the selected tab index.\n   * Ignored when `selectedId` is set.\n   * @bindable writable\n   */\n  export let selected = 0;\n\n  /**\n   * Specify the selected tab by id.\n   * When set, takes precedence over `selected` and stays on the same logical\n   * tab as tabs are added or removed. Pair with a stable `id` on each `Tab`.\n   * @bindable writable\n   * @type {string | undefined}\n   */\n  export let selectedId = undefined;\n\n  /**\n   * Choose whether arrow keys change the selection on focus.\n   * Defaults to `\"automatic\"`. Set to `\"manual\"` so arrow keys only move\n   * focus; press Enter or Space to select.\n   * @type {\"automatic\" | \"manual\"}\n   */\n  export let activation = \"automatic\";\n\n  /**\n   * Specify the type of tabs.\n   * @type {\"default\" | \"container\"}\n   */\n  export let type = \"default\";\n\n  /** Set to `true` for tabs to have an auto-width */\n  export let autoWidth = false;\n\n  /** Set to `true` to render a dismiss button for each tab */\n  export let dismissible = false;\n\n  /** Set to `true` for tabs to span the full width of the container */\n  export let fullWidth = false;\n\n  /**\n   * Set to `true` to render icon-only tabs.\n   * Each `Tab` displays only its `icon`; the `label` is used as the accessible\n   * name and the tooltip shown on hover and focus.\n   */\n  export let iconOnly = false;\n\n  /**\n   * Specify the icon size for icon-only tabs.\n   * `\"lg\"` uses the large scale (48px tabs with a 20px icon);\n   * the default scale is 40px tabs with a 16px icon.\n   * Only applies when `iconOnly` is `true`.\n   * @type {\"default\" | \"lg\"}\n   */\n  export let iconSize = \"default\";\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    onMount,\n    setContext,\n    tick,\n  } from \"svelte\";\n  import { derived, get, writable } from \"svelte/store\";\n  import ChevronLeft from \"../icons/ChevronLeft.svelte\";\n  import ChevronRight from \"../icons/ChevronRight.svelte\";\n  import { batchStoreUpdates } from \"../utils/batchStoreUpdates.js\";\n  import { clampIndex } from \"../utils/clampIndex.js\";\n  import { keyBy } from \"../utils/keyBy.js\";\n  import { rovingFocus } from \"../utils/rovingFocus.js\";\n  import { syncDomOrder } from \"../utils/syncDomOrder.js\";\n\n  const dispatch = createEventDispatcher();\n\n  /**\n   * @type {import(\"svelte/store\").Writable<ReadonlyArray<{ id: string; label: string; disabled: boolean; hasSecondaryLabel: boolean; index: number }>>}\n   */\n  const tabs = writable([]);\n  const tabsById = derived(tabs, (_) => keyBy(_));\n  /**\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const useAutoWidth = writable(autoWidth);\n  /**\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const useFullWidth = writable(fullWidth);\n  /**\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const useDismissible = writable(dismissible);\n  /**\n   * @type {import(\"svelte/store\").Writable<string | undefined>}\n   */\n  const selectedTab = writable(undefined);\n  /**\n   * @type {import(\"svelte/store\").Writable<ReadonlyArray<{ id: string; index: number }>>}\n   */\n  const content = writable([]);\n  /**\n   * @type {import(\"svelte/store\").Readable<Record<string, { id: string; index: number }>>}\n   */\n  const contentById = derived(content, (_) => keyBy(_));\n  /**\n   * Reverse lookup so each `Tab` can find its paired panel id by index.\n   * @type {import(\"svelte/store\").Readable<Record<number, string>>}\n   */\n  const contentByIndex = derived(content, (_) => {\n    /** @type {Record<number, string>} */\n    const map = {};\n    for (const item of _) map[item.index] = item.id;\n    return map;\n  });\n  /**\n   * @type {import(\"svelte/store\").Writable<string | undefined>}\n   */\n  const selectedContent = writable(undefined);\n  /**\n   * Tracks which icon-only tab's tooltip is open so only one shows at a time.\n   * Scoped per `Tabs` instance.\n   * @type {import(\"svelte/store\").Writable<string | undefined>}\n   */\n  const activeTooltip = writable(undefined);\n\n  let refTabList = null;\n  let refRoot = null;\n\n  // Carbon React v11 replaces the legacy mobile dropdown with a horizontally\n  // scrollable tab list plus overflow navigation buttons. The buttons appear\n  // only when the list overflows, and each one hides once that edge is reached.\n  let canScrollBackward = false;\n  let canScrollForward = false;\n  $: isOverflow = canScrollBackward || canScrollForward;\n\n  function updateOverflow() {\n    if (!refTabList) return;\n    const { scrollLeft, scrollWidth, clientWidth } = refTabList;\n    canScrollBackward = scrollLeft > 0;\n    // Round up for sub-pixel widths. Firefox can report scrollWidth 1px\n    // larger than clientWidth with nowhere to scroll; ignore that gap so\n    // the forward button does not flicker in.\n    canScrollForward = Math.ceil(scrollLeft + clientWidth) + 1 < scrollWidth;\n  }\n\n  /**\n   * Scroll the tab list by roughly a viewport width in the given direction.\n   * @type {(direction: 1 | -1) => void}\n   */\n  function scrollTabs(direction) {\n    if (!refTabList) return;\n    refTabList.scrollBy({\n      left: direction * refTabList.clientWidth * 0.75,\n      behavior: \"smooth\",\n    });\n  }\n\n  // Flag to trigger DOM reordering only when tabs change.\n  // This is necessary to avoid infinite loops in Svelte 5.\n  let needsDomSync = false;\n\n  const hasSecondaryLabel = derived(\n    tabs,\n    (_) => type === \"container\" && _.some((tab) => tab.hasSecondaryLabel),\n  );\n\n  /**\n   * Mirror the `iconOnly` prop into the context so each `Tab` reacts to it.\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const useIconOnly = writable(iconOnly);\n\n  // Batch child registration. Leave afterUpdate's syncDomOrder unbatched\n  // so DOM-order correction stays synchronous.\n  //\n  // Set needsDomSync inside the batched update. afterUpdate runs once\n  // after mount before this flush, while tabs is still [].\n  const batchedTabsUpdate = batchStoreUpdates(tabs);\n  const batchedContentUpdate = batchStoreUpdates(content);\n\n  /**\n   * @type {(data: { id: string; label: string; disabled: boolean; hasSecondaryLabel: boolean }) => void}\n   */\n  function add(data) {\n    batchedTabsUpdate((_) => {\n      needsDomSync = true;\n      return [..._, { ...data, index: _.length }];\n    });\n  }\n\n  /**\n   * @type {(id: string) => void}\n   */\n  function remove(id) {\n    batchedTabsUpdate((_) => {\n      needsDomSync = true;\n      return _.filter((tab) => tab.id !== id);\n    });\n  }\n\n  /**\n   * @type {(data: { id: string }) => void}\n   */\n  function addContent(data) {\n    batchedContentUpdate((_) => {\n      needsDomSync = true;\n      return [..._, { ...data, index: _.length }];\n    });\n  }\n\n  /**\n   * @type {(id: string) => void}\n   */\n  function removeContent(id) {\n    batchedContentUpdate((_) => {\n      needsDomSync = true;\n      return _.filter((item) => item.id !== id);\n    });\n  }\n\n  /**\n   * @type {(id: string) => void}\n   */\n  function update(id) {\n    focusedIndex = -1;\n    if (selectedId !== undefined) {\n      selectedId = id;\n      return;\n    }\n    // Ignore clicks that land before this tab's batched registration flushes.\n    const tab = $tabsById[id];\n    if (!tab) return;\n    currentIndex = tab.index;\n  }\n\n  /**\n   * Resolve selection from `selectedId` when set; otherwise use `selected`.\n   * If the selected id was removed, keep the same index (next tab) or clamp.\n   * @type {() => void}\n   */\n  function syncSelection() {\n    if (selectedId === undefined) {\n      currentIndex = selected;\n      return;\n    }\n\n    const tab = $tabsById[selectedId];\n    if (tab) {\n      currentIndex = tab.index;\n      return;\n    }\n\n    if ($tabs.length === 0) return;\n\n    currentIndex = clampIndex(currentIndex, 0, $tabs.length);\n    selectedId = $tabs[currentIndex].id;\n  }\n\n  /**\n   * @type {(id: string) => void}\n   */\n  function dismiss(id) {\n    const tab = get(tabsById)[id];\n\n    if (tab) {\n      dispatch(\"dismiss\", tab);\n    }\n  }\n\n  /**\n   * Keep a focused tab clear of the overflow chevrons / edge fades.\n   * @type {number}\n   */\n  const SCROLL_INTO_VIEW_MARGIN = 48;\n\n  /**\n   * Scroll the tab list so `tab` is fully visible, inset from each edge so it is\n   * not tucked under an overflow button. The browser's native focus scroll moves\n   * a fixed step that lags variable-width tabs, eventually pushing the focused\n   * tab off-screen, so selection is scrolled explicitly instead.\n   * @type {(tab: HTMLElement | undefined) => void}\n   */\n  function scrollTabIntoView(tab) {\n    if (!tab || !refTabList) return;\n\n    const navRect = refTabList.getBoundingClientRect();\n    const tabRect = tab.getBoundingClientRect();\n    const leftOverflow =\n      tabRect.left - (navRect.left + SCROLL_INTO_VIEW_MARGIN);\n    const rightOverflow =\n      tabRect.right - (navRect.right - SCROLL_INTO_VIEW_MARGIN);\n\n    if (leftOverflow < 0) {\n      refTabList.scrollLeft += leftOverflow;\n    } else if (rightOverflow > 0) {\n      refTabList.scrollLeft += rightOverflow;\n    }\n  }\n\n  /**\n   * Focus a tab at an absolute index without changing selection.\n   * @type {(index: number) => Promise<void>}\n   */\n  async function focusTab(index) {\n    if (index < 0 || index >= $tabs.length) return;\n    focusedIndex = index;\n\n    await tick();\n    const activeTab = /** @type {HTMLElement | undefined} */ (\n      refTabList?.querySelectorAll(\"[role='tab']\")[index]\n    );\n    activeTab?.focus({ preventScroll: true });\n    scrollTabIntoView(activeTab);\n  }\n\n  /**\n   * Move selection/focus to a tab at an absolute index. Roving focus resolves\n   * the index (skipping disabled, wrapping); selection follows focus.\n   * @type {(index: number) => Promise<void>}\n   */\n  async function selectTab(index) {\n    if (index === currentIndex) {\n      focusedIndex = -1;\n      return;\n    }\n\n    focusedIndex = -1;\n    if (selectedId === undefined) {\n      currentIndex = index;\n    } else {\n      const tab = $tabs[index];\n      if (!tab) return;\n      selectedId = tab.id;\n    }\n\n    await tick();\n    const activeTab = /** @type {HTMLElement | undefined} */ (\n      refTabList?.querySelectorAll(\"[role='tab']\")[index]\n    );\n    activeTab?.focus({ preventScroll: true });\n    scrollTabIntoView(activeTab);\n  }\n\n  setContext(\"carbon:Tabs\", {\n    tabs,\n    tabsById,\n    contentById,\n    contentByIndex,\n    selectedTab,\n    selectedContent,\n    activeTooltip,\n    iconOnly: useIconOnly,\n    useAutoWidth,\n    useFullWidth,\n    useDismissible,\n    hasSecondaryLabel,\n    add,\n    remove,\n    addContent,\n    removeContent,\n    update,\n    dismiss,\n  });\n\n  afterUpdate(() => {\n    // Sync DOM order with stores only when tabs are added/removed.\n    // This avoids infinite loops in Svelte 5 by not running on every update.\n    if (needsDomSync && refTabList) {\n      needsDomSync = false;\n\n      tabs.update((currentTabs) =>\n        syncDomOrder({\n          root: refTabList,\n          selector: \"[role='tab']\",\n          items: currentTabs,\n        }),\n      );\n\n      if (refRoot?.parentElement) {\n        content.update((currentContent) =>\n          syncDomOrder({\n            root: refRoot.parentElement,\n            selector: \"[role='tabpanel']\",\n            items: currentContent,\n          }),\n        );\n      }\n\n      // Re-resolve after reorder so `selectedId` keeps the same logical tab.\n      if (selectedId !== undefined) {\n        syncSelection();\n      }\n    }\n\n    if (selected !== currentIndex) {\n      selected = currentIndex;\n    }\n\n    if (prevIndex > -1 && prevIndex !== currentIndex) {\n      dispatch(\"change\", currentIndex);\n    }\n\n    prevIndex = currentIndex;\n  });\n\n  onMount(() => {\n    updateOverflow();\n    const observer = new ResizeObserver(updateOverflow);\n    if (refTabList) observer.observe(refTabList);\n    return () => observer.disconnect();\n  });\n\n  let currentIndex = selected;\n  let focusedIndex = -1;\n  let prevIndex = -1;\n\n  $: {\n    if (selectedId === undefined) {\n      currentIndex = selected;\n    } else {\n      syncSelection();\n    }\n    focusedIndex = -1;\n  }\n  $: currentTab = $tabs[currentIndex] || undefined;\n  $: currentContent = $content[currentIndex] || undefined;\n  $: {\n    if (currentTab) {\n      selectedTab.set(currentTab.id);\n    }\n\n    if (currentContent) {\n      selectedContent.set(currentContent.id);\n    }\n  }\n  // Recompute overflow when the set of tabs changes (added/removed/relabeled).\n  $: if ($tabs) {\n    tick().then(updateOverflow);\n  }\n  $: useAutoWidth.set(autoWidth);\n  $: useFullWidth.set(fullWidth);\n  $: useDismissible.set(dismissible);\n  $: useIconOnly.set(iconOnly);\n</script>\n\n<div\n  bind:this={refRoot}\n  role=\"navigation\"\n  class:bx--tabs={true}\n  class:bx--tabs--container={type === \"container\"}\n  class:bx--tabs--tall={$hasSecondaryLabel}\n  class:bx--tabs--full-width={fullWidth}\n  class:bx--tabs--dismissible={dismissible}\n  class:bx--tabs--icon-only={iconOnly}\n  class:bx--tabs__icon--lg={iconOnly && iconSize === \"lg\"}\n  class:bx--tabs--scrollable={isOverflow}\n  class:bx--tabs--scrollable--container={isOverflow && type === \"container\"}\n  {...$$restProps}\n>\n  {#if isOverflow}\n    <button\n      type=\"button\"\n      tabindex=\"-1\"\n      aria-hidden=\"true\"\n      class:bx--tab--overflow-nav-button={true}\n      class:bx--tab--overflow-nav-button--previous={true}\n      class:bx--tab--overflow-nav-button--hidden={!canScrollBackward}\n      on:click={() => scrollTabs(-1)}\n    >\n      <ChevronLeft />\n    </button>\n    <div\n      class:bx--tabs__overflow-indicator--left={true}\n      class:bx--tab--overflow-nav-button--hidden={!canScrollBackward}\n    ></div>\n  {/if}\n  <!-- svelte-ignore a11y-no-noninteractive-element-to-interactive-role -->\n  <ul\n    bind:this={refTabList}\n    role=\"tablist\"\n    use:rovingFocus={{\n      selector: \"[role='tab']\",\n      orientation: \"horizontal\",\n      skipDisabled: true,\n      getActiveIndex: () => (focusedIndex >= 0 ? focusedIndex : currentIndex),\n      onMove: (index, event) => {\n        // Prevent the arrow keys from also scrolling the page.\n        event.preventDefault();\n        if (activation === \"manual\") {\n          focusTab(index);\n        } else {\n          selectTab(index);\n        }\n      },\n    }}\n    class:bx--tabs__nav={true}\n    on:scroll={updateOverflow}\n  >\n    <slot />\n  </ul>\n  {#if isOverflow}\n    <div\n      class:bx--tabs__overflow-indicator--right={true}\n      class:bx--tab--overflow-nav-button--hidden={!canScrollForward}\n    ></div>\n    <button\n      type=\"button\"\n      tabindex=\"-1\"\n      aria-hidden=\"true\"\n      class:bx--tab--overflow-nav-button={true}\n      class:bx--tab--overflow-nav-button--next={true}\n      class:bx--tab--overflow-nav-button--hidden={!canScrollForward}\n      on:click={() => scrollTabs(1)}\n    >\n      <ChevronRight />\n    </button>\n  {/if}\n</div>\n<slot name=\"content\" />\n","<script lang=\"ts\" context=\"module\">\n  import type { Readable } from 'svelte/store'\n\n  /**\n   * One Panel's handle on the group.\n   */\n  export interface PanelMembership {\n    /**\n     * This Panel's state, narrowed to one boolean.\n     */\n    expanded: Readable<boolean>\n    /** This Panel pushing its own change up: a header click, or an app writing `expanded`. */\n    report: (expanded: boolean) => void\n    /** Call on destroy. Drops the key from the mounted set and keeps its state. */\n    leave: () => void\n  }\n\n  export interface PanelGroupContextValue {\n    /**\n     * Called by an expandable Panel as it mounts. Seeds state on first sight only, so a Panel\n     * remounting under the same key reads back the state it left.\n     */\n    join: (finalKey: string, initial: boolean) => PanelMembership\n  }\n\n  /**\n   * Module scope on purpose: an instance-scope key is a fresh object per instance.\n   */\n  export const PANEL_GROUP_CONTEXT = {}\n</script>\n<script lang=\"ts\">\n  import { dev } from '$app/environment'\n  import { setContext } from 'svelte'\n  import { derived, writable } from 'svelte/store'\n  import ExpandCollapseAll from './ExpandCollapseAll.svelte'\n\n  /**\n   * Render an expand-all control above the group's Panels, right aligned. Leave it off and wire\n   * your own `ExpandCollapseAll` from the `let:` slot props when the control belongs in a toolbar\n   * you already have.\n   * @type {boolean}\n   */\n  export let showExpandAll = false\n  /**\n   * Size of the built-in expand-all control. Only used when `showExpandAll` is set; a control you\n   * place yourself takes its own `size` prop.\n   * @type {'small' | 'medium' | 'large'}\n   */\n  export let expandAllSize: 'small' | 'medium' | 'large' = 'medium'\n\n  /**\n   * Id of an element naming this group, forwarded to the built-in \"Expand all\" control as `aria-describedby`\n   * so a screen reader user can tell two \"Expand all\" buttons apart when a screen has more than\n   * one set.\n   * @type {string | undefined}\n   */\n  export let describedById: string | undefined = undefined\n\n  /**\n   * The group's Panels. Use `members` as the `members` prop of an `ExpandCollapseAll` you place\n   * yourself and `expandAll` / `collapseAll` as its handlers; `members.length` is the count.\n   * `expand` / `collapse` address one Panel by its resolved key, which for a nested Panel is its\n   * ancestors' `panelKey`s joined to its own with `/`.\n   * @slot {{ members: boolean[], expandAll: () => void, collapseAll: () => void, expand: (finalKey: string) => void, collapse: (finalKey: string) => void }}\n   */\n\n  // The same Map and Set reference on every notify: `writable` treats any object as\n  // changed, so `set` with the same reference still wakes subscribers.\n  const expandedByKey = writable(new Map<string, boolean>())\n  const mountedKeys = writable(new Set<string>())\n  // Seeds keys the group has never seen, so an all-action reaches Panels that mount later.\n  let lastAll: boolean | undefined\n\n  function join (finalKey: string, initial: boolean): PanelMembership {\n    expandedByKey.update(m => {\n      if (!m.has(finalKey)) m.set(finalKey, lastAll ?? initial)\n      return m\n    })\n    mountedKeys.update(s => {\n      if (dev && s.has(finalKey)) console.warn(`PanelGroup: two mounted Panels resolve to the same key \"${finalKey}\". They will expand and collapse together. Give each one a panelKey that is unique among its siblings.`)\n      s.add(finalKey)\n      return s\n    })\n    // Each member gets its own boolean, which also filters the notify: one member moving\n    // wakes only that Panel, since `derived` skips subscribers when its value is unchanged.\n    return {\n      expanded: derived(expandedByKey, m => m.get(finalKey) === true),\n      report: (expanded: boolean) => { report(finalKey, expanded) },\n      leave: () => { leave(finalKey) }\n    }\n  }\n\n  function leave (finalKey: string) {\n    mountedKeys.update(s => { s.delete(finalKey); return s })\n    // `expandedByKey` keeps the entry: that is what survives a collapsing ancestor's\n    // destroy and recreate.\n  }\n\n  function report (finalKey: string, expanded: boolean) {\n    expandedByKey.update(m => { m.set(finalKey, expanded); return m })\n  }\n\n  function setAll (value: boolean) {\n    lastAll = value\n    expandedByKey.update(m => {\n      for (const finalKey of m.keys()) m.set(finalKey, value)\n      return m\n    })\n  }\n\n  function expandAll () { setAll(true) }\n  function collapseAll () { setAll(false) }\n  function expand (finalKey: string) { report(finalKey, true) }\n  function collapse (finalKey: string) { report(finalKey, false) }\n\n  // Mounted members only, which is the label's scope; the action's scope is wider, in `setAll`.\n  // `ExpandCollapseAll` derives its label and its own presence from this\n  $: memberStates = [...$mountedKeys].map(finalKey => $expandedByKey.get(finalKey) === true)\n\n  setContext<PanelGroupContextValue>(PANEL_GROUP_CONTEXT, { join })\n</script>\n\n{#if showExpandAll}\n  <ExpandCollapseAll class=\"[ flex justify-end mb-2 ]\" size={expandAllSize} {describedById} members={memberStates} on:expand={expandAll} on:collapse={collapseAll} />\n{/if}\n<slot members={memberStates} {expandAll} {collapseAll} {expand} {collapse} />\n","<script lang=\"ts\" context=\"module\">\n  /**\n   * The nearest ancestor Panel's resolved key, so a nested `panelKey` only has to be unique\n   * among its siblings. Module scope, or `getContext` never resolves it. Internal.\n   */\n  export const PANEL_INHERITED_KEY = {}\n</script>\n<script lang=\"ts\">\n  import { dev } from '$app/environment'\n  import { eq } from '@txstate-mws/svelte-components'\n  import { Store } from '@txstate-mws/svelte-store'\n  import { setContext, getContext, createEventDispatcher, onDestroy, onMount } from 'svelte'\n  import Tab from \"carbon-components-svelte/src/Tabs/Tab.svelte\";\nimport TabContent from \"carbon-components-svelte/src/Tabs/TabContent.svelte\";\nimport Tabs from \"carbon-components-svelte/src/Tabs/Tabs.svelte\";\n  import ChevronDown from \"carbon-icons-svelte/lib/ChevronDown.svelte\";\nimport ChevronUp from \"carbon-icons-svelte/lib/ChevronUp.svelte\";\n  import { randomid } from 'txstate-utils'\n  import { type ActionItem } from './util.js'\n  import ActionSet from './ActionSet.svelte'\n  import BadgeNumber from './BadgeNumber.svelte'\n  import { PANEL_GROUP_CONTEXT, type PanelGroupContextValue, type PanelMembership } from './PanelGroup.svelte'\n\n  interface PanelTabs {\n    label?: string\n    value: string\n    disabled?: boolean\n    badge?: number\n  }\n\n  /**\n   * The title displayed in the panel header.\n   * @required\n   * @type {string}\n   */\n  export let title: string\n  /**\n   * Array of actions to display in the panel header.\n   * @type {ActionItem[]}\n   */\n  export let actions: ActionItem[] = []\n  /**\n   * If true, no action will be highlighted via primary button styles.\n   * @type {boolean}\n   */\n  export let noPrimaryAction = false\n  /**\n   * Maximum number of visible action buttons before overflow.\n   * @type {number}\n   */\n  export let maxButtons = 4\n  /**\n   * Force all actions into overflow menu.\n   * @type {boolean}\n   */\n  export let forceOverflow = false\n  /**\n   * Hide actions when panel is collapsed.\n   * @type {boolean}\n   */\n  export let hideActionsWhenCollapsed = false\n  /**\n   * Configuration for tabbed content.\n   * @type {PanelTabs[]}\n   */\n  export let tabs: PanelTabs[] = []\n  /**\n   * Use container-style tabs\n   * @type {boolean}\n   */\n  export let tabsContainer = false\n  /**\n   * Index of the currently selected tab\n   * @type {number | undefined}\n   */\n  export let selectedTab: number | undefined = tabs.length > 1 ? 0 : undefined\n  /**\n   * HTML heading level (h1-h6) for the panel title\n   * @type {number}\n   */\n  export let headerLevel = 2\n  /**\n   * Number of indent levels for nested panels\n   * @type {number}\n   */\n  export let indentLevel = 0\n  /**\n   * Stable identity for this panel inside a `PanelGroup`; never written to the DOM. Supply one\n   * whenever the panel can be destroyed and come back, inside an `{#each}`, behind an `{#if}`,\n   * or inside another expandable Panel, so the group hands back the state it left. Only needs\n   * to be unique among its siblings; a nested panel inherits its ancestors' keys as a prefix.\n   * Defaults to a random key per mount, which joins expand-all but is not remembered.\n   * @type {string}\n   */\n  export let panelKey: string = randomid()\n  /**\n   * Whether the panel can be collapsed/expanded\n   * @type {boolean}\n   */\n  export let expandable = false\n  /**\n   * Whether an expandable panel is currently expanded. Inside a `PanelGroup` the group holds this\n   * value under the panel's `panelKey` and writes back through the prop, so `bind:expanded` keeps\n   * working in both directions.\n   * @type {boolean}\n   */\n  export let expanded = false\n  /**\n   * Background color override for the panel content area\n   * @type {string | undefined}\n   */\n  export let backgroundColor: string | undefined = undefined\n  /**\n   * Background color override for the panel header\n   * @type {string | undefined}\n   */\n  export let headerBackgroundColor: string | undefined = undefined\n  /**\n   * Text color override for the panel header. Use to achieve appropriate contrast in combination with headerBackgroundColor.\n   * @type {string | undefined}\n   */\n  export let headerTextColor: string | undefined = undefined\n  /**\n   * If true, expandable rows will automatically expand when printing. Useful to make sure all\n   * content is captured when printing.\n   * @type {boolean}\n   */\n  export let expandOnPrint = true\n\n  /**\n   * @event expand Fired when an expandable panel is expanded\n   */\n\n  /**\n   * @event collapse Fired when an expandable panel is collapsed\n   */\n\n  const PANEL_DEPTH_CONTEXT = {}\n  const parentDepth = getContext<number>(PANEL_DEPTH_CONTEXT) ?? 0\n  const currentDepth = parentDepth + 1\n  setContext(PANEL_DEPTH_CONTEXT, currentDepth)\n\n  // Every Panel publishes a key whether or not it is expandable, so an inert Panel in between still namespaces what is under it.\n  const inheritedKey = getContext<string | undefined>(PANEL_INHERITED_KEY)\n  const finalKey = inheritedKey ? `${inheritedKey}/${panelKey}` : panelKey\n  setContext(PANEL_INHERITED_KEY, finalKey)\n\n  const initialKey = panelKey\n  $: if (dev && panelKey !== initialKey) console.warn(`Panel: panelKey changed from \"${initialKey}\" to \"${panelKey}\" after the panel was created. Identity is fixed at creation, so this panel is still known to its PanelGroup as \"${initialKey}\" and is holding the wrong record's expanded state. Key your {#each} block by the same value you pass as panelKey.`)\n\n  const panelGroup = getContext<PanelGroupContextValue | undefined>(PANEL_GROUP_CONTEXT)\n  let membership: PanelMembership | undefined\n  let unsubGroup: (() => void) | undefined\n\n  let syncedExpanded = expanded\n\n  // Join seeds the group and hands back this Panel's store.\n  $: if (panelGroup) {\n    if (expandable && !membership) {\n      membership = panelGroup.join(finalKey, expanded)\n      unsubGroup = membership.expanded.subscribe(held => {\n        if (held !== expanded) expanded = held\n        syncedExpanded = expanded\n      })\n    } else if (!expandable && membership) {\n      unsubGroup?.()\n      unsubGroup = undefined\n      membership.leave()\n      membership = undefined\n    }\n  }\n\n  $: if (membership && expanded !== syncedExpanded) {\n    syncedExpanded = expanded\n    membership.report(expanded)\n  }\n\n  onDestroy(() => {\n    unsubGroup?.()\n    membership?.leave()\n  })\n\n  $: panelBackgroundColor = backgroundColor\n\n  // Multi-tier fallback for header background color\n  $: headerBgColor = (() => {\n    if (headerBackgroundColor) {\n      return headerBackgroundColor\n    } else if (currentDepth > 1) {\n      // Nested panel - use depth-based coloring\n      return currentDepth === 2\n        ? 'var(--background-neutral-medium)'\n        : 'var(--background-neutral-light)'\n    } else {\n      // Top-level panel - use headerLevel-based coloring\n      return headerLevel <= 2\n        ? 'var(--background-neutral-dark)'\n        : headerLevel === 3\n          ? 'var(--background-neutral-medium)'\n          : 'var(--background-neutral-light)'\n    }\n  })()\n\n  // Determine text color based on expected background\n  $: headerTxtColor = (() => {\n    if (headerTextColor) {\n      return headerTextColor\n    } else if (currentDepth > 1) {\n      // Nested panels always use dark text (for medium/light backgrounds)\n      return 'var(--cds-text-01, #1a1a1a)'\n    } else {\n      // Top-level - based on headerLevel\n      return headerLevel <= 2\n        ? 'var(--cds-text-04)'\n        : 'var(--cds-text-01, #1a1a1a)'\n    }\n  })()\n\n  const store = new Store({ width: 1000 })\n  let forceExpanded = false\n  $: resolvedMaxButtons = Math.min(maxButtons, Math.ceil($store.width / 400.0))\n  $: headerTag = 'h' + headerLevel\n  $: indentWidth = $store.width >= 800 ? 20 : 15\n  $: resolvedExpanded = !expandable || expanded || (forceExpanded && expandOnPrint)\n\n  const titleId = randomid()\n  const dispatch = createEventDispatcher()\n\n  function onClick (e: MouseEvent) {\n    if (!expandable) return\n    expanded = !expanded\n    syncedExpanded = expanded\n    membership?.report(expanded)\n    dispatch(expanded ? 'expand' : 'collapse')\n  }\n\n  function onBeforePrint () {\n    forceExpanded = true\n  }\n  function onAfterPrint () {\n    forceExpanded = false\n  }\n  onMount(() => {\n    window.addEventListener('beforeprint', onBeforePrint)\n    window.addEventListener('afterprint', onAfterPrint)\n    return () => {\n      window.removeEventListener('beforeprint', onBeforePrint)\n      window.removeEventListener('afterprint', onAfterPrint)\n    }\n  })\n</script>\n\n<section use:eq={{ store }} class=\"panel [ mx-auto ]\" aria-labelledby={titleId} class:mb-4={resolvedExpanded} class:expanded={resolvedExpanded} style:padding-left=\"{indentLevel * indentWidth}px\">\n  <header class=\"panel-header [ flex justify-between gap-[2px] border-neutral-300 border-solid ]\" class:border-y={!resolvedExpanded} data-theme={resolvedExpanded && headerBgColor === 'var(--background-neutral-dark)' ? 'dark' : undefined} style:background-color={resolvedExpanded ? headerBgColor : undefined}\n      style:color={resolvedExpanded ? headerTxtColor : undefined}>\n    <!-- svelte-ignore a11y-click-events-have-key-events -->\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <div class=\"panel-header-inline-start repel [ flex-grow items-center px-[16px] py-[8px] text-base ]\"\n      class:cursor-pointer={expandable}\n      class:text-sm={headerLevel > 2}\n      style=\"--gutter: 1rem;\"\n      on:click={onClick}\n    >\n      <div class=\" header-content-wrap [ flex gap-2 items-center flex-wrap ]\">\n        {#if expandable}\n          <button type=\"button\" aria-label={resolvedExpanded ? 'Collapse panel' : 'Expand panel'} aria-expanded={resolvedExpanded} aria-controls=\"{titleId}-content\">{#if resolvedExpanded}<ChevronUp />{:else}<ChevronDown />{/if}</button>\n        {/if}\n        <slot name=\"headerLeft\" tab={selectedTab} {expanded} />\n        <svelte:element this={headerTag} id={titleId} class=\"panel-title\"\n          class:font-bold={resolvedExpanded} class:font-medium={!resolvedExpanded}\n          class:text-base={headerLevel <= 2}\n          class:text-sm={headerLevel > 2}>\n          {title}\n        </svelte:element>\n        </div>\n      {#if $$slots.headerRight}\n        <div class=\"header-right\">\n          <slot name=\"headerRight\" tab={selectedTab} {expanded} />\n        </div>\n      {/if}\n\n    </div>\n    <div class=\"panel-header-inline-end [ p-1 ]\">\n        {#if !hideActionsWhenCollapsed || resolvedExpanded }<ActionSet includeLabels {actions} {noPrimaryAction} describedById={titleId} maxButtons={resolvedMaxButtons} forceOverflow={forceOverflow || !resolvedExpanded} />{/if}\n    </div>\n  </header>\n  {#if resolvedExpanded}\n    {#if tabs.length > 1}\n      <Tabs bind:selected={selectedTab} type={tabsContainer ? 'container' : undefined} autoWidth class=\"panel-tabs\">\n        {#each tabs as tab (tab.value)}\n          <Tab disabled={tab.disabled} label=\"{tab.label ?? tab.value} {tab.badge ? ` (${tab.badge})` : ''}\">{tab.label ?? tab.value}<BadgeNumber value={tab.badge} /></Tab>\n        {/each}\n        <svelte:fragment slot=\"content\">\n          {#each tabs as tab, i (tab.value)}\n            <TabContent class=\"flow [ p-[16px] min-h-24 ]\" style={panelBackgroundColor ? `background-color: ${panelBackgroundColor}` : undefined}>\n              <slot tab={i} />\n            </TabContent>\n          {/each}\n        </svelte:fragment>\n      </Tabs>\n    {:else}\n      <div class=\"panel-content flow shadow [ min-h-24 ]\" id=\"{titleId}-content\" style:background-color={panelBackgroundColor}>\n        <slot tab={undefined} />\n      </div>\n    {/if}\n  {/if}\n</section>\n\n<style>\n  .panel :global(.bx--tabs) {\n    min-height: 3rem;\n    padding-inline: 16px;\n    background: #f4f4f4;\n    --badge-bg: rgb(64, 64, 64);\n    --badge-text: white;\n  }\n  .panel :global(.bx--pagination) {\n    margin: -16px 0 0 -16px;\n    width: calc(100% + 32px);\n  }\n  .panel :global(.column-list ~ .pagination-container .bx--pagination) {\n    margin-block-start: 1px;\n    width: calc(100% + 32px);\n  }\n  .panel :global(.column-list-header) {\n    margin: 0 0 0 -16px;\n    width: calc(100% + 32px);\n  }\n  .panel :global(.column-list) {\n    margin: 0 0 -16px -16px;\n    width: calc(100% + 32px);\n  }\n  .panel:not(.expanded) :global(+ .panel header) {\n    border-top-width: 0;\n  }\n  .panel-content {\n    padding: 16px;\n  }\n  .panel-content:has(> :global(.pagination-container):last-child) {\n    padding-block-end: 0;\n  }\n\n  .panel-header :global([role=menu] > a){\n    min-height: 1.5rem;\n  }\n</style>\n","<script lang=\"ts\">\n  import { base } from '$app/paths'\n  import { page } from '$app/stores'\n  import Search from \"carbon-components-svelte/src/Search/Search.svelte\";\n  import { createEventDispatcher } from 'svelte'\n  import PanelDialog from './PanelDialog.svelte'\n  import type { LayoutStructureNodeResolved } from './stores/index.js'\n\n  /**\n   * Controls whether the sitemap modal is visible.\n   * @type {boolean}\n   */\n  export let open = false\n\n  /**\n   * The processed navigation items to display.\n   * Same structure used by UIShell's hamburger menu.\n   * @type {ProcessedNavItem[]}\n   */\n  export let nav: ProcessedNavItem[] = []\n\n  // Match the type from UIShell\n  type ProcessedNavItem =\n    | { type: 'link', item: LayoutStructureNodeResolved, index: number }\n    | { type: 'menu', group: string, items: LayoutStructureNodeResolved[], icon?: any }\n\n  const dispatch = createEventDispatcher()\n\n  let searchQuery = ''\n  let searchInput: HTMLInputElement | undefined\n\n  // Check if an item matches the search query\n  function itemMatches (item: LayoutStructureNodeResolved, query: string): boolean {\n    if (!query) return true\n    const lowerQuery = query.toLowerCase()\n    return item.navTitle.toLowerCase().includes(lowerQuery)\n  }\n\n  // Filter nav items based on search query\n  $: filteredNav = searchQuery\n    ? nav.map(navItem => {\n      if (navItem.type === 'link') {\n        return itemMatches(navItem.item, searchQuery) ? navItem : null\n      } else {\n        const filteredItems = navItem.items.filter(item => itemMatches(item, searchQuery))\n        return filteredItems.length > 0\n          ? { ...navItem, items: filteredItems }\n          : null\n      }\n    }).filter((item): item is ProcessedNavItem => item !== null)\n    : nav\n\n  // Count total visible items for accessibility announcement\n  $: totalVisibleItems = filteredNav.reduce((count, navItem) => {\n    if (navItem.type === 'link') return count + 1\n    return count + navItem.items.length\n  }, 0)\n\n  // Current page path for aria-current\n  $: currentPath = $page.url.pathname\n\n  function isCurrentPage (href: string): boolean {\n    const fullHref = `${base}${href}`\n    return currentPath === href || currentPath === fullHref\n  }\n\n  function handleCancel () {\n    searchQuery = ''\n    dispatch('close')\n  }\n\n  function handleLinkClick () {\n    handleCancel()\n  }\n\n</script>\n\n<div class=\"sitemap-dialog\">\n  <PanelDialog\n    title=\"Sitemap\"\n    bind:open\n    centered\n    cancelText=\"\"\n    submitText=\"\"\n    on:cancel={handleCancel}\n  >\n\n    <div class=\"sitemap-container flow\">\n    <p>Use this accessible sitemap to quickly view the structure of our website and navigate directly to any page.</p>\n    <div class=\"sitemap-search\">\n      <Search\n        bind:ref={searchInput}\n        bind:value={searchQuery}\n        labelText=\"Search site map\"\n        light\n      />\n    </div>\n\n    <!-- Accessibility announcement for search results -->\n    <div class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\n      {#if searchQuery}\n        {totalVisibleItems} {totalVisibleItems === 1 ? 'page' : 'pages'} found\n      {/if}\n    </div>\n\n    <nav class=\"sitemap\">\n      {#if filteredNav.length === 0}\n        <p class=\"sitemap-empty\" role=\"status\">No pages found matching \"{searchQuery}\"</p>\n      {:else}\n        {#each filteredNav as navItem (navItem.type === 'link' ? navItem.item.href : navItem.group)}\n          {#if navItem.type === 'link'}\n            <!-- Ungrouped link -->\n            <div class=\"sitemap-item [ my-4 ]\">\n              <a href=\"{base}{navItem.item.href}\" class=\"sitemap-link [ underline ]\" class:sitemap-group-title={navItem.item.href === '/' || navItem.item.href === ''} aria-current={isCurrentPage(navItem.item.href) ? 'page' : undefined} on:click={handleLinkClick}>\n                {navItem.item.navTitle}\n              </a>\n            </div>\n          {:else}\n            <!-- Grouped menu -->\n            <div class=\"sitemap-group\">\n              <h2 class=\"sitemap-group-title [ py-2 ] \">{navItem.group}</h2>\n              <ul class=\"sitemap-list\">\n                {#each navItem.items as item (item.href)}\n                  <li class=\"sitemap-item\">\n                    <a href=\"{base}{item.href}\" class=\"sitemap-link [ underline ]\" aria-current={isCurrentPage(item.href) ? 'page' : undefined} on:click={handleLinkClick}>\n                      {item.navTitle}\n                    </a>\n                  </li>\n                {/each}\n              </ul>\n            </div>\n          {/if}\n        {/each}\n      {/if}\n    </nav>\n  </div>\n  </PanelDialog>\n</div>\n\n<style>\n  .sitemap-dialog {\n    --paneldialog-title-font-size: 1.5rem;\n    --paneldialog-content-bg: var(--cds-ui-01);\n  }\n\n  .sitemap-container {\n    display: flex;\n    flex-direction: column;\n    max-height: 60vh;\n    margin-block-start:-1rem;\n  }\n\n  .sitemap-search {\n    flex-shrink: 0;\n    margin-bottom: 1rem;\n  }\n\n  .sitemap {\n    padding-inline: 10px;\n  }\n\n  .sitemap-empty {\n    color: var(--cds-text-secondary, #525252);\n    font-style: italic;\n    padding: 1rem 0;\n  }\n\n  .sitemap-group {\n    margin-bottom: 1.5rem;\n  }\n\n  .sitemap-group:last-child {\n    margin-bottom: 0;\n  }\n\n  .sitemap-group-title {\n    font-size: 1.3rem;\n  }\n\n  .sitemap-list {\n    list-style: none;\n    padding: 0;\n    margin: 0;\n  }\n\n  .sitemap-item {\n    border-block-end: 2px solid var(--cds-ui-03);\n  }\n\n  .sitemap-link {\n    display: inline-block;\n    padding-block:0.25rem;\n    margin: 0.5rem;\n  }\n\n  .sitemap-link:hover {\n    text-decoration: underline;\n    color: var(--cds-link-01-hover, #0043ce);\n  }\n\n  .sitemap-link.sitemap-group-title {\n    margin-inline-start: 0;\n  }\n\n  .sitemap-link[aria-current=\"page\"] {\n    font-weight: bold;\n    border-inline-start:4px solid var(--maroon);\n    padding-inline-start:0.875rem;\n  }\n\n</style>\n","<script lang=\"ts\">\n  import { browser } from '$app/environment'\n  import { page } from '$app/stores'\n  import { onMount, tick } from 'svelte'\n  import type { TabLinkItem } from './index.js'\n  import ScrollOverflow from './ScrollOverflow.svelte'\n\n  /**\n  * Array of TabLinkItem's included in the set.\n  * @type {TabLinkItem[]}\n  */\n  export let tabs: TabLinkItem[] = []\n\n  let scrollOverflow: ScrollOverflow\n  const tabElements: HTMLElement[] = []\n  let mounted = false\n\n  onMount(async () => {\n    await tick()\n    const activeIdx = tabs.findIndex(tab => tab.href === $page.url.pathname)\n    if (activeIdx >= 0 && tabElements[activeIdx]) {\n      scrollOverflow?.scrollToElement(tabElements[activeIdx], 'auto')\n    }\n    mounted = true\n  })\n\n  $: if (mounted && $page.url.pathname) {\n    const activeIdx = tabs.findIndex(tab => tab.href === $page.url.pathname)\n    if (activeIdx >= 0 && tabElements[activeIdx]) {\n      void tick().then(() => {\n        scrollOverflow?.scrollToElement(tabElements[activeIdx])\n      })\n    }\n  }\n</script>\n\n{#if tabs.length}\n  <div class=\"cs-tabs tab-links\">\n    <div {...$$restProps} role=\"navigation\" class=\"[ w-full ] {$$restProps.class ?? ''}\" class:bx--tabs={true}><ScrollOverflow bind:this={scrollOverflow}><div role=\"list\" class:bx--tabs__nav={true}>\n      {#each tabs as tab, i}\n        {@const selected = browser && tab.href === $page.url.pathname}\n        <div bind:this={tabElements[i]} role=\"listitem\"\n          class:bx--tabs__nav-item={true}\n          class:bx--tabs__nav-item--disabled={tab.disabled}\n          class:bx--tabs__nav-item--selected={selected}\n        >\n          <a\n            href={tab.href}\n            aria-disabled={tab.disabled}\n            class:bx--tabs__nav-link={true}\n            class:auto-width={true}\n\n          >\n            {#if tab.icon}\n              <span class=\"icon\">\n                <svelte:component this={tab.icon} />\n              </span>\n            {/if}\n            {tab.label}\n          </a>\n        </div>\n      {/each}\n    </div></ScrollOverflow></div>\n  </div>\n{/if}\n\n\n<style>\n  .icon {\n    display: inline-block;\n    margin-right: 8px;\n    vertical-align: text-bottom;\n  }\n</style>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z\"\n  ></path>\n</svg>\n","<script>\n  /**\n   * @template [Icon=any]\n   * @event open\n   * @type {object}\n   * @property {\"toggle\"} trigger\n   * @event close\n   * @type {object}\n   * @property {\"outside-click\" | \"toggle\" | \"escape-key\"} trigger\n   */\n\n  /**\n   * Set to `true` to open the panel.\n   * @bindable writable\n   */\n  export let isOpen = false;\n\n  /**\n   * Specify the icon to render when the action panel is closed.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (Switcher);\n\n  /**\n   * Specify the icon to render when the action panel is open.\n   * @type {Icon}\n   */\n  export let closeIcon = /** @type {Icon} */ (Close);\n\n  /**\n   * Specify the text displayed next to the icon.\n   * Alternatively, use the named slot \"textChildren\".\n   * @type {string}\n   * @example\n   * ```svelte\n   * <HeaderAction>\n   *   <div slot=\"textChildren\">Custom Text</div>\n   * </HeaderAction>\n   * ```\n   */\n  export let text = undefined;\n\n  /**\n   * Specify an icon tooltip. The tooltip will not be displayed\n   * if either the `text` prop or a named slot=\"textChildren\" is used.\n   * @type {string}\n   */\n  export let iconDescription = undefined;\n\n  /**\n   * Set the alignment of the tooltip relative to the icon.\n   * Only applies when `iconDescription` is provided.\n   * @type {\"start\" | \"center\" | \"end\"}\n   */\n  export let tooltipAlignment = \"center\";\n\n  /**\n   * Obtain a reference to the button HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Customize the panel transition (e.g., `transition:slide`).\n   * The panel does not animate by default; provide slide\n   * params (e.g., `{ duration: 200 }`) to enable the transition.\n   * @type {false | import(\"svelte/transition\").SlideParams}\n   */\n  export let transition = false;\n\n  /** Set to `true` to prevent the panel from closing when clicking outside */\n  export let preventCloseOnClickOutside = false;\n\n  /** Set an id for the trigger button element. Also used to label the panel. */\n  export let id = uniqueId();\n\n  import { createEventDispatcher } from \"svelte\";\n  import { slide } from \"svelte/transition\";\n  import Close from \"../icons/Close.svelte\";\n  import Switcher from \"../icons/Switcher.svelte\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { isOutsideClick } from \"../utils/isOutsideClick.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n\n  let refPanel = null;\n\n  $: hasIconOnly = iconDescription && !(text || $$slots.textChildren);\n  $: buttonClass = [\n    hasIconOnly && \"bx--btn\",\n    hasIconOnly && \"bx--tooltip__trigger bx--tooltip--a11y\",\n    hasIconOnly && \"bx--btn--icon-only--bottom\",\n    hasIconOnly && `bx--tooltip--align-${tooltipAlignment}`,\n    $$restProps.class,\n  ]\n    .filter(Boolean)\n    .join(\" \");\n\n  function handleOutsideClick(event) {\n    if (\n      isOpen &&\n      !preventCloseOnClickOutside &&\n      isOutsideClick(event, [ref, refPanel])\n    ) {\n      isOpen = false;\n      dispatch(\"close\", { trigger: \"outside-click\" });\n    }\n  }\n\n  function handleKeydown(event) {\n    if (isOpen && event.key === \"Escape\") {\n      isOpen = false;\n      dispatch(\"close\", { trigger: \"escape-key\" });\n      ref?.focus();\n    }\n  }\n</script>\n\n<button\n  bind:this={ref}\n  use:dismiss={{\n    enabled: isOpen,\n    listeners: [\n      { type: \"click\", handler: handleOutsideClick },\n      { type: \"keydown\", handler: handleKeydown },\n    ],\n  }}\n  type=\"button\"\n  aria-haspopup=\"true\"\n  aria-expanded={isOpen}\n  {id}\n  class:bx--header__action={true}\n  class:bx--header__action--active={isOpen}\n  class:bx--header__action--text={text}\n  {...$$restProps}\n  class={buttonClass}\n  on:click\n  on:click|stopPropagation={() => {\n    isOpen = !isOpen;\n    dispatch(isOpen ? \"open\" : \"close\", { trigger: \"toggle\" });\n  }}\n>\n  {#if hasIconOnly}\n    <span class:bx--assistive-text={true}>{iconDescription}</span>\n  {/if}\n  {#if isOpen}\n    <slot name=\"closeIcon\">\n      <svelte:component this={closeIcon} size={20} />\n    </slot>\n  {:else}\n    <slot name=\"icon\"> <svelte:component this={icon} size={20} /> </slot>\n  {/if}\n  <slot name=\"textChildren\">\n    {#if text}\n      <span class:bx--header__action-text={true}>{text}</span>\n    {/if}\n  </slot>\n</button>\n{#if isOpen}\n  <div\n    bind:this={refPanel}\n    role=\"region\"\n    aria-labelledby={id}\n    class:bx--header-panel={true}\n    class:bx--header-panel--expanded={true}\n    transition:slide|local={{\n      ...transition,\n      duration: transition === false ? 0 : transition.duration,\n    }}\n  >\n    <slot />\n  </div>\n{/if}\n","{#if $$slots.default}\n  <li class:bx--header-panel-divider={true}><slot /></li>\n{/if}\n<li><hr class:bx--switcher__item--divider={true}></li>\n","<script>\n  /**\n   * Specify the `href` attribute.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /** Set to `true` to mark the link as the current selection */\n  export let isSelected = false;\n\n  /**\n   * Obtain a reference to the HTML anchor element.\n   * @bindable readonly\n   */\n  export let ref = null;\n</script>\n\n<li class:bx--switcher__item={true}>\n  <a\n    bind:this={ref}\n    {href}\n    rel={$$restProps.target === \"_blank\" ? \"noopener noreferrer\" : undefined}\n    aria-current={isSelected ? \"page\" : undefined}\n    class:bx--switcher__item-link={true}\n    class:bx--switcher__item-link--selected={isSelected}\n    {...$$restProps}\n    on:click\n  >\n    <slot />\n  </a>\n</li>\n","<ul class:bx--switcher__item={true}>\n  <slot />\n</ul>\n","<div class:bx--header__global={true}><slot /></div>\n","<script>\n  /** @extends {\"../Button/Button.svelte\"} ButtonProps */\n\n  import Button from \"../Button/Button.svelte\";\n</script>\n\n<Button\n  kind=\"ghost\"\n  size=\"small\"\n  {...$$restProps}\n  class={[\"bx--inline-notification__action-button\", $$restProps.class]\n    .filter(Boolean)\n    .join(\" \")}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  <slot />\n</Button>\n","import { writable } from \"svelte/store\";\n\nexport const shouldRenderHamburgerMenu = writable(false);\nexport const isSideNavCollapsed = writable(false);\nexport const isSideNavRail = writable(false);\nexport const isSideNavMobile = writable(false);\n\n/**\n * The most recently mounted `HamburgerMenu` trigger button, so `SideNav` can\n * return focus to it when the overlay closes via Escape.\n * @type {import(\"svelte/store\").Writable<HTMLButtonElement | null>}\n */\nexport const hamburgerMenuRef = writable(null);\n","<script>\n  /**\n   * @event {null} open\n   * @event {null} close\n   * @event {null} click:overlay\n   */\n\n  /** Set to `true` to use the fixed variant */\n  export let fixed = false;\n\n  /** Set to `true` to use the rail variant */\n  export let rail = false;\n\n  /**\n   * Specify the ARIA label for the nav.\n   * @type {string}\n   */\n  export let ariaLabel = undefined;\n\n  /**\n   * Set to `true` to toggle the expanded state.\n   * @bindable writable\n   */\n  export let isOpen = false;\n\n  /**\n   * The window width (px) at which the SideNav is expanded and the hamburger menu is hidden.\n   * 1056 represents the \"large\" breakpoint in pixels from the Carbon Design System:\n   * - small: 320\n   * - medium: 672\n   * - large: 1056\n   * - x-large: 1312\n   * - max: 1584.\n   */\n  export let expansionBreakpoint = 1056;\n\n  /**\n   * Set to `\"classic\"` for the mixed UI Shell theme (White side nav).\n   * Use with `Header` `theme=\"classic\"` (Gray 100 header).\n   * Requires `carbon-components-svelte/css/all.css`.\n   * @type {\"classic\" | undefined}\n   */\n  export let theme = undefined;\n\n  import { createEventDispatcher, onMount } from \"svelte\";\n  import {\n    acquireBodyScrollLock,\n    releaseBodyScrollLock,\n  } from \"../utils/bodyScrollLock.js\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import {\n    hamburgerMenuRef,\n    isSideNavCollapsed,\n    isSideNavMobile,\n    isSideNavRail,\n    shouldRenderHamburgerMenu,\n  } from \"./nav-store\";\n\n  function handleEscape(event) {\n    if (isOpen && !fixed && $isSideNavMobile && event.key === \"Escape\") {\n      isOpen = false;\n      $hamburgerMenuRef?.focus();\n    }\n  }\n\n  const dispatch = createEventDispatcher();\n\n  let winWidth = undefined;\n  let prevIsOpen = isOpen;\n\n  $: if (prevIsOpen !== isOpen) {\n    dispatch(isOpen ? \"open\" : \"close\");\n    prevIsOpen = isOpen;\n  }\n  // Only update the collapsed store after hydration (winWidth is known).\n  // During SSR, defer to Carbon CSS media queries to handle visibility\n  // to avoid a flash when JS sets isOpen after hydration.\n  $: if (winWidth !== undefined) {\n    $isSideNavCollapsed = !isOpen;\n  }\n  $: $isSideNavRail = rail;\n  $: $isSideNavMobile =\n    winWidth !== undefined && winWidth < expansionBreakpoint && !fixed;\n\n  // Lock body scroll when SideNav is open on mobile (below breakpoint).\n  // Only applies to non-fixed, non-rail variants. Uses the shared ref-counted\n  // lock so a Modal opened concurrently is not affected by this toggle.\n  let holdsBodyLock = false;\n  $: {\n    const shouldLockScroll = isOpen && !fixed && !rail && $isSideNavMobile;\n    if (shouldLockScroll && !holdsBodyLock) {\n      holdsBodyLock = true;\n      acquireBodyScrollLock();\n    } else if (!shouldLockScroll && holdsBodyLock) {\n      holdsBodyLock = false;\n      releaseBodyScrollLock();\n    }\n  }\n\n  onMount(() => {\n    shouldRenderHamburgerMenu.set(!fixed);\n    return () => {\n      shouldRenderHamburgerMenu.set(false);\n      isSideNavMobile.set(false);\n      if (holdsBodyLock) {\n        holdsBodyLock = false;\n        releaseBodyScrollLock();\n      }\n    };\n  });\n</script>\n\n<svelte:window bind:innerWidth={winWidth} />\n\n{#if !fixed}\n  <!-- svelte-ignore a11y-click-events-have-key-events -->\n  <!-- svelte-ignore a11y-no-static-element-interactions -->\n  <div\n    on:click={() => {\n      dispatch(\"click:overlay\");\n      isOpen = false;\n    }}\n    class:bx--side-nav__overlay={true}\n    class:bx--side-nav__overlay--mobile={$isSideNavMobile}\n    class:bx--side-nav__overlay-active={isOpen}\n  ></div>\n{/if}\n<nav\n  use:dismiss={{\n    enabled: isOpen && !fixed && $isSideNavMobile,\n    type: \"keydown\",\n    handler: handleEscape,\n  }}\n  aria-hidden={!isOpen}\n  aria-label={ariaLabel}\n  class:bx--side-nav__navigation={true}\n  class:bx--side-nav={true}\n  class:bx--side-nav--ux={true}\n  class:bx--side-nav--expanded={rail && winWidth >= expansionBreakpoint\n    ? false\n    : isOpen}\n  class:bx--side-nav--collapsed={winWidth !== undefined && !isOpen && !rail}\n  class:bx--side-nav--rail={rail}\n  class:bx--side-nav--fixed={fixed}\n  class:bx--side-nav--ui-shell-classic={theme === \"classic\"}\n  style:visibility={winWidth !== undefined && !isOpen && !rail\n    ? \"hidden\"\n    : undefined}\n  {...$$restProps}\n>\n  <slot />\n</nav>\n","<ul class:bx--side-nav__items={true}>\n  <slot />\n</ul>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /** Set to `true` to select the current link */\n  export let isSelected = false;\n\n  /**\n   * Specify the `href` attribute.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /**\n   * Specify the text.\n   * @type {string}\n   */\n  export let text = undefined;\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /**\n   * Obtain a reference to the HTML anchor element.\n   * @bindable readonly\n   */\n  export let ref = null;\n</script>\n\n<li class:bx--side-nav__item={true}>\n  <a\n    bind:this={ref}\n    aria-current={isSelected ? \"page\" : undefined}\n    {href}\n    rel={$$restProps.target === \"_blank\" ? \"noopener noreferrer\" : undefined}\n    class:bx--side-nav__link={true}\n    class:bx--side-nav__link--current={isSelected}\n    {...$$restProps}\n    on:click\n  >\n    {#if $$slots.icon || icon}\n      <div\n        class:bx--side-nav__icon={true}\n        class:bx--side-nav__icon--small={true}\n      >\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </div>\n    {/if}\n    <span class:bx--side-nav__link-text={true}> <slot> {text} </slot> </span>\n  </a>\n</li>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * Set to `true` to toggle the expanded state.\n   * @bindable writable\n   */\n  export let expanded = false;\n\n  /**\n   * Specify the text.\n   * @type {string}\n   */\n  export let text = undefined;\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /**\n   * Obtain a reference to the HTML button element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import ChevronDown from \"../icons/ChevronDown.svelte\";\n  import { isSideNavCollapsed, isSideNavRail } from \"./nav-store\";\n\n  $: if ($isSideNavRail && $isSideNavCollapsed) {\n    expanded = false;\n  }\n</script>\n\n<li class:bx--side-nav__item={true} class:bx--side-nav__item--icon={icon}>\n  <button\n    type=\"button\"\n    bind:this={ref}\n    aria-expanded={expanded}\n    class:bx--side-nav__submenu={true}\n    {...$$restProps}\n    on:click\n    on:click={() => {\n      expanded = !expanded;\n    }}\n  >\n    {#if $$slots.icon || icon}\n      <span class:bx--side-nav__icon={true}>\n        <slot name=\"icon\"> <svelte:component this={icon} /> </slot>\n      </span>\n    {/if}\n    <span class:bx--side-nav__submenu-title={true}>{text}</span>\n    <span\n      class:bx--side-nav__icon={true}\n      class:bx--side-nav__icon--small={true}\n      class:bx--side-nav__submenu-chevron={true}\n    >\n      <ChevronDown />\n    </span>\n  </button>\n  <ul\n    inert={expanded ? undefined : \"true\"}\n    class:bx--side-nav__menu={true}\n    style:max-height={expanded ? \"none\" : undefined}\n  >\n    <slot />\n  </ul>\n</li>\n","<script>\n  /** Set to `true` to select the item */\n  export let isSelected = false;\n\n  /**\n   * Specify the `href` attribute.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /**\n   * Specify the item text.\n   * @type {string}\n   */\n  export let text = undefined;\n\n  /**\n   * Obtain a reference to the HTML anchor element.\n   * @bindable readonly\n   */\n  export let ref = null;\n</script>\n\n<li class:bx--side-nav__menu-item={true}>\n  <a\n    bind:this={ref}\n    aria-current={isSelected ? \"page\" : undefined}\n    {href}\n    class:bx--side-nav__link={true}\n    class:bx--side-nav__link--current={isSelected}\n    {...$$restProps}\n    on:click\n  >\n    <span class:bx--side-nav__link-text={true}><slot>{text}</slot></span>\n  </a>\n</li>\n","<script>\n  /** Specify the `href` attribute */\n  export let href = \"#main-content\";\n\n  /**\n   * Specify the tabindex\n   * @type {number | string | undefined}\n   */\n  export let tabindex = \"0\";\n</script>\n\n<a {href} {tabindex} class:bx--skip-to-content={true} {...$$restProps} on:click>\n  <slot>Skip to main content</slot>\n</a>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <path\n    d=\"M17 22L17 14 13 14 13 16 15 16 15 22 12 22 12 24 20 24 20 22 17 22zM16 8a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 8z\"\n  ></path>\n  <path\n    d=\"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"\n  ></path>\n</svg>\n","<script>\n  /**\n   * @template [Icon=any]\n   * @event {null} open\n   * @event {null} close\n   */\n\n  /**\n   * Set the alignment of the tooltip relative to the icon.\n   * @type {\"start\" | \"center\" | \"end\"}\n   */\n  export let align = \"center\";\n\n  /**\n   * Set the direction of the tooltip relative to the button.\n   * @type {\"top\" | \"right\" | \"bottom\" | \"left\"}\n   */\n  export let direction = \"bottom\";\n\n  /**\n   * Set to `true` to open the tooltip.\n   * @type {boolean}\n   * @bindable writable\n   */\n  export let open = false;\n\n  /**\n   * Set to `true` to hide the tooltip icon.\n   * @type {boolean}\n   */\n  export let hideIcon = false;\n\n  /**\n   * Specify the icon to render for the tooltip button.\n   * Defaults to `<Information />`.\n   * @type {Icon}\n   */\n  export let icon = /** @type {Icon} */ (Information);\n\n  /** Specify the ARIA label for the tooltip button */\n  export let iconDescription = \"Show information\";\n\n  /** Specify the icon name attribute */\n  export let iconName = \"\";\n\n  /**\n   * Set the button tabindex\n   * @type {number | string | undefined}\n   */\n  export let tabindex = \"0\";\n\n  /**\n   * Set an id for the tooltip.\n   * @type {string}\n   */\n  export let tooltipId = uniqueId();\n\n  /**\n   * Set an id for the tooltip button.\n   * @type {string}\n   */\n  export let triggerId = uniqueId();\n\n  /** Set the tooltip button text */\n  export let triggerText = \"\";\n\n  /**\n   * Specify the duration in milliseconds to delay before displaying the tooltip.\n   * @type {number}\n   */\n  export let enterDelayMs = 100;\n\n  /**\n   * Specify the duration in milliseconds to delay before hiding the tooltip.\n   * @type {number}\n   */\n  export let leaveDelayMs = 300;\n\n  /**\n   * Obtain a reference to the trigger text HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  /**\n   * Obtain a reference to the tooltip HTML element.\n   * @bindable readonly\n   */\n  export let refTooltip = null;\n\n  /**\n   * Obtain a reference to the icon HTML element.\n   * @bindable readonly\n   */\n  export let refIcon = null;\n\n  /**\n   * Set to `true` to render the tooltip in a portal,\n   * preventing it from being clipped by `overflow: hidden` containers.\n   * By default, the tooltip is portalled when inside a `Modal`.\n   * @type {boolean | undefined}\n   */\n  export let portalTooltip = undefined;\n\n  import {\n    createEventDispatcher,\n    getContext,\n    onMount,\n    setContext,\n    tick,\n  } from \"svelte\";\n  import { writable } from \"svelte/store\";\n  import Information from \"../icons/Information.svelte\";\n  import FloatingPortal from \"../Portal/FloatingPortal.svelte\";\n  import { createDelayedSetter } from \"../utils/delayedSetter.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const insideModal = getContext(\"carbon:Modal\");\n\n  const dispatch = createEventDispatcher();\n  /**\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const tooltipOpen = writable(open);\n  /**\n   * Tracks whether the latest open was triggered by mouse hover. TooltipFooter\n   * reads this to avoid stealing focus on hover; focus only moves into the\n   * footer when the tooltip is opened via keyboard or programmatically.\n   * @type {import(\"svelte/store\").Writable<boolean>}\n   */\n  const openedByHover = writable(false);\n\n  let prevOpen = undefined;\n  let focusByMouse = false;\n\n  $: effectivePortalTooltip =\n    portalTooltip === undefined ? !!insideModal : portalTooltip;\n\n  setContext(\"carbon:Tooltip\", { tooltipOpen, openedByHover });\n\n  const scheduleOpen = createDelayedSetter();\n\n  function onMouseEnter() {\n    openedByHover.set(true);\n    scheduleOpen(enterDelayMs, () => {\n      open = true;\n    });\n  }\n\n  function onMouseLeave() {\n    scheduleOpen(leaveDelayMs, () => {\n      open = false;\n    });\n  }\n\n  function onKeydown(event) {\n    if (event.key === \"Escape\") {\n      event.stopPropagation();\n      refIcon?.focus();\n      open = false;\n    }\n  }\n\n  // Bound to both the trigger and the tooltip content (which can hold\n  // interactive elements, e.g. a `Link` or `TooltipFooter` button). Using\n  // `focusout` instead of `blur` lets a single listener on the content\n  // wrapper catch focus leaving any of its descendants, since `blur` doesn't\n  // bubble. Without this, tabbing out of content past the trigger's own\n  // blur never closes the tooltip, leaving it open indefinitely.\n  function onFocusOut(event) {\n    const next = event.relatedTarget;\n    const stillInside = ref?.contains(next) || refTooltip?.contains(next);\n    if (!stillInside) {\n      open = false;\n    }\n    focusByMouse = false;\n  }\n\n  function onFocus() {\n    if (!focusByMouse) {\n      openedByHover.set(false);\n      open = true;\n    }\n  }\n\n  function onMouseDown() {\n    focusByMouse = true;\n  }\n\n  onMount(() => {\n    return () => {\n      scheduleOpen.cancel();\n    };\n  });\n\n  function position() {\n    if (!(open && !effectivePortalTooltip && ref && refTooltip)) return;\n\n    const button = ref.getBoundingClientRect();\n    const tooltip = refTooltip.getBoundingClientRect();\n\n    let iconWidth = 16;\n    let iconHeight = 16;\n\n    if (refIcon) {\n      const icon = refIcon.getBoundingClientRect();\n      iconWidth = icon.width;\n      iconHeight = icon.height;\n    }\n\n    let offsetX = 0;\n    let offsetY = 0;\n\n    switch (direction) {\n      case \"bottom\":\n        if (hideIcon) {\n          offsetX = -1 * (tooltip.width / 2 - button.width / 2);\n        } else {\n          offsetX = -1 * (tooltip.width / 2 - button.width + iconWidth / 2);\n        }\n        offsetY = iconHeight / 2;\n        break;\n      case \"right\":\n        offsetX = button.width + 6;\n        offsetY = -1 * (tooltip.height / 2 + iconWidth / 2 - 3);\n        break;\n      case \"left\":\n        if (hideIcon) {\n          offsetX = -1 * (tooltip.width + 6 + 1);\n        } else {\n          offsetX = -1 * (tooltip.width - button.width + iconWidth + 8);\n        }\n        offsetY = -1 * (tooltip.height / 2 + button.height) - 2;\n        break;\n      case \"top\":\n        if (hideIcon) {\n          offsetX = -1 * (tooltip.width / 2 - button.width / 2);\n        } else {\n          offsetX = -1 * (tooltip.width / 2 - button.width + iconWidth / 2 + 1);\n        }\n        offsetY = -1 * (tooltip.height + button.height + iconWidth / 2 - 1);\n        break;\n    }\n\n    refTooltip.style.left = `${offsetX}px`;\n    refTooltip.style.marginTop = `${offsetY}px`;\n  }\n\n  // Reposition only when the tooltip opens or an input that affects its\n  // geometry changes—not on every unrelated re-render of this component\n  // (unlike `afterUpdate`, which would force a synchronous reflow each time).\n  // The DOM must be committed before measuring, so defer behind `tick()`.\n  //\n  // `ref`/`refTooltip`/`refIcon` are intentionally NOT read here: they're\n  // `bind:this` targets, and Svelte's compiled output re-invalidates a\n  // `bind:this` binding on every component update regardless of whether the\n  // element identity actually changed, which would make this block refire\n  // on every unrelated re-render. `position()` already null-checks them.\n  $: if (open && !effectivePortalTooltip) {\n    void direction;\n    void hideIcon;\n    tick().then(position);\n  }\n\n  $: tooltipOpen.set(open);\n  $: if (!open) openedByHover.set(false);\n  $: {\n    const shouldDispatch = prevOpen !== undefined;\n    const nextOpen = open;\n    prevOpen = open;\n    if (shouldDispatch) {\n      dispatch(nextOpen ? \"open\" : \"close\");\n    }\n  }\n  $: buttonProps = {\n    role: \"button\",\n    \"aria-haspopup\": \"true\",\n    id: hideIcon ? triggerId : undefined,\n    class: hideIcon ? \"bx--tooltip__label\" : \"bx--tooltip__trigger\",\n    \"aria-expanded\": open,\n    \"aria-describedby\": open ? tooltipId : undefined,\n    \"aria-labelledby\": triggerText ? triggerId : undefined,\n    \"aria-label\": triggerText ? undefined : iconDescription,\n    tabindex,\n    style: hideIcon ? $$restProps.style : undefined,\n  };\n</script>\n\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  style:position=\"relative\"\n  style:z-index={open ? 1 : undefined}\n  {...$$restProps}\n  on:mouseleave={onMouseLeave}\n>\n  {#if !hideIcon}\n    <div bind:this={ref} id={triggerId} class:bx--tooltip__label={true}>\n      <slot name=\"triggerText\">{triggerText}</slot>\n      <!-- svelte-ignore a11y-no-static-element-interactions -->\n      <div\n        bind:this={refIcon}\n        {...buttonProps}\n        aria-describedby={tooltipId}\n        on:mouseenter={onMouseEnter}\n        on:mousedown={onMouseDown}\n        on:focus={onFocus}\n        on:focusout={onFocusOut}\n        on:keydown={onKeydown}\n      >\n        <slot name=\"icon\">\n          <svelte:component this={icon} name={iconName} />\n        </slot>\n      </div>\n    </div>\n  {:else}\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <div\n      bind:this={ref}\n      {...buttonProps}\n      aria-describedby={tooltipId}\n      on:mouseenter={onMouseEnter}\n      on:mousedown={onMouseDown}\n      on:focus={onFocus}\n      on:focusout={onFocusOut}\n      on:keydown={onKeydown}\n    >\n      <slot name=\"triggerText\">{triggerText}</slot>\n    </div>\n  {/if}\n  {#if open && !effectivePortalTooltip}\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <div\n      bind:this={refTooltip}\n      id={tooltipId}\n      data-floating-menu-direction={direction}\n      class:bx--tooltip={true}\n      class:bx--tooltip--shown={open}\n      class:bx--tooltip--top={direction === \"top\"}\n      class:bx--tooltip--right={direction === \"right\"}\n      class:bx--tooltip--bottom={direction === \"bottom\"}\n      class:bx--tooltip--left={direction === \"left\"}\n      class:bx--tooltip--align-center={align === \"center\"}\n      class:bx--tooltip--align-start={align === \"start\"}\n      class:bx--tooltip--align-end={align === \"end\"}\n      style:width=\"max-content\"\n      on:mouseenter={onMouseEnter}\n      on:focusout={onFocusOut}\n      on:keydown={onKeydown}\n    >\n      <span class:bx--tooltip__caret={true}></span>\n      <!-- svelte-ignore a11y-click-events-have-key-events -->\n      <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n      <div\n        on:click|stopPropagation\n        on:mousedown|stopPropagation\n        class:bx--tooltip__content={true}\n        tabindex=\"-1\"\n        role=\"dialog\"\n        aria-labelledby={triggerId}\n      >\n        <slot />\n      </div>\n    </div>\n  {/if}\n</div>\n\n{#if effectivePortalTooltip}\n  <FloatingPortal\n    anchor={hideIcon ? ref : refIcon}\n    {direction}\n    {open}\n    gapTop={8}\n    gapBottom={10}\n    horizontalGapLeft={16}\n    horizontalGapRight={6}\n    verticalAlignOffsetLeft={-10}\n    verticalAlignOffsetRight={4}\n    bind:ref={refTooltip}\n    let:direction={actualDirection}\n  >\n    <div style=\"display: flex; justify-content: center; align-items: center;\">\n      <!-- svelte-ignore a11y-no-static-element-interactions -->\n      <div\n        id={tooltipId}\n        data-floating-menu-direction={actualDirection}\n        class:bx--tooltip={true}\n        class:bx--tooltip--shown={open}\n        class:bx--tooltip--top={actualDirection === \"top\"}\n        class:bx--tooltip--right={actualDirection === \"right\"}\n        class:bx--tooltip--bottom={actualDirection === \"bottom\"}\n        class:bx--tooltip--left={actualDirection === \"left\"}\n        class:bx--tooltip--align-center={align === \"center\"}\n        class:bx--tooltip--align-start={align === \"start\"}\n        class:bx--tooltip--align-end={align === \"end\"}\n        style=\"position: relative; transform: none; display: block; left: auto; margin-top: 0;\"\n        on:mouseenter={onMouseEnter}\n        on:focusout={onFocusOut}\n        on:keydown={onKeydown}\n      >\n        <span class:bx--tooltip__caret={true}></span>\n        <!-- svelte-ignore a11y-click-events-have-key-events -->\n        <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n        <div\n          on:click|stopPropagation\n          on:mousedown|stopPropagation\n          class:bx--tooltip__content={true}\n          tabindex=\"-1\"\n          role=\"dialog\"\n        >\n          <slot />\n        </div>\n      </div>\n    </div>\n  </FloatingPortal>\n{/if}\n","<script>\n  /** Set to `true` to hide the breadcrumb trailing slash */\n  export let noTrailingSlash = false;\n\n  /** Specify the number of breadcrumb items to render */\n  export let count = 3;\n\n  /**\n   * Specify the size of the breadcrumb.\n   * @type {\"sm\" | \"md\"}\n   */\n  export let size = \"md\";\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<div\n  aria-hidden=\"true\"\n  class:bx--skeleton={true}\n  class:bx--breadcrumb={true}\n  class:bx--breadcrumb--no-trailing-slash={noTrailingSlash}\n  class:bx--breadcrumb--sm={size === \"sm\"}\n  {...$$restProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  {#each Array.from({ length: count }, (_, i) => i) as item (item)}\n    <div class:bx--breadcrumb-item={true}>\n      <span class:bx--link={true}>&nbsp;</span>\n    </div>\n  {/each}\n</div>\n","<script>\n  /** @extends {\"./BreadcrumbSkeleton.svelte\"} BreadcrumbSkeletonProps */\n\n  /** Set to `true` to hide the breadcrumb trailing slash */\n  export let noTrailingSlash = false;\n\n  /** Set to `true` to display skeleton state */\n  export let skeleton = false;\n\n  /** Specify the ARIA label for the nav */\n  export let labelText = \"Breadcrumb\";\n\n  /**\n   * Specify the size of the breadcrumb.\n   * @type {\"sm\" | \"md\"}\n   */\n  export let size = \"md\";\n\n  import BreadcrumbSkeleton from \"./BreadcrumbSkeleton.svelte\";\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n{#if skeleton}\n  <BreadcrumbSkeleton\n    {noTrailingSlash}\n    {size}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  />\n{:else}\n  <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n  <nav\n    aria-label={labelText}\n    {...$$restProps}\n    on:click\n    on:mouseover\n    on:mouseenter\n    on:mouseleave\n  >\n    <ol\n      class:bx--breadcrumb={true}\n      class:bx--breadcrumb--no-trailing-slash={noTrailingSlash}\n      class:bx--breadcrumb--sm={size === \"sm\"}\n    >\n      <slot />\n    </ol>\n  </nav>\n{/if}\n","<script>\n  /**\n   * Spread `props` onto a custom element to inherit the link class\n   * and `aria-current` attribute when `isCurrentPage` is set.\n   * @example\n   * ```svelte\n   * <BreadcrumbItem let:props>\n   *   <a {...props} href=\"/\">Home</a>\n   * </BreadcrumbItem>\n   * ```\n   * @restProps {li}\n   * @slot {{props?: { \"aria-current\"?: string; class: \"bx--link\"; }}}\n   */\n\n  /**\n   * Set the `href` to use an anchor link.\n   * @type {string}\n   */\n  export let href = undefined;\n\n  /** Set to `true` if the breadcrumb item represents the current page */\n  export let isCurrentPage = false;\n\n  import { setContext } from \"svelte\";\n  import Link from \"../Link/Link.svelte\";\n\n  setContext(\"carbon:BreadcrumbItem\", {});\n\n  $: ({ \"aria-current\": ariaCurrent, ...liProps } = $$restProps);\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->\n<li\n  class:bx--breadcrumb-item={true}\n  class:bx--breadcrumb-item--current={isCurrentPage || ariaCurrent === \"page\"}\n  {...liProps}\n  on:click\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n>\n  {#if href}\n    <Link\n      {href}\n      aria-current={ariaCurrent ?? (isCurrentPage ? \"page\" : undefined)}\n    >\n      <slot />\n    </Link>\n  {:else}\n    <slot\n      props={{\n        \"aria-current\": ariaCurrent ?? (isCurrentPage ? \"page\" : undefined),\n        class: \"bx--link\",\n      }}\n    />\n  {/if}\n</li>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <circle cx=\"8\" cy=\"16\" r=\"2\"></circle>\n  <circle cx=\"16\" cy=\"16\" r=\"2\"></circle>\n  <circle cx=\"24\" cy=\"16\" r=\"2\"></circle>\n</svg>\n","<script>\n  export let size = 16;\n\n  export let title = undefined;\n\n  $: labelled = $$props[\"aria-label\"] || $$props[\"aria-labelledby\"] || title;\n  $: attributes = {\n    \"aria-hidden\": labelled ? undefined : true,\n    role: labelled ? \"img\" : undefined,\n    focusable: Number($$props.tabindex) === 0 ? true : undefined,\n  };\n</script>\n\n<svg\n  xmlns=\"http://www.w3.org/2000/svg\"\n  viewBox=\"0 0 32 32\"\n  fill=\"currentColor\"\n  preserveAspectRatio=\"xMidYMid meet\"\n  width={size}\n  height={size}\n  {...attributes}\n  {...$$restProps}\n>\n  {#if title}\n    <title>{title}</title>\n  {/if}\n  <circle cx=\"16\" cy=\"8\" r=\"2\"></circle>\n  <circle cx=\"16\" cy=\"16\" r=\"2\"></circle>\n  <circle cx=\"16\" cy=\"24\" r=\"2\"></circle>\n</svg>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * @event close\n   * @type {object}\n   * @property {\"escape-key\" | \"outside-click\" | \"toggle\" | \"item-select\"} trigger\n   * @property {number} [index] only present when an item is selected\n   * @property {string} [text] only present when an item is selected\n   */\n\n  /**\n   * Specify the size of the overflow menu.\n   * @type {\"xs\" | \"sm\" | \"xl\"}\n   */\n  export let size = undefined;\n\n  /**\n   * Specify the direction of the overflow menu relative to the button.\n   * @type {\"top\" | \"bottom\"}\n   */\n  export let direction = \"bottom\";\n\n  /**\n   * Set to `true` to open the menu.\n   * @bindable writable\n   */\n  export let open = false;\n\n  /** Set to `true` to enable the light variant */\n  export let light = false;\n\n  /** Set to `true` to disable the trigger button */\n  export let disabled = false;\n\n  /** Set to `true` to flip the menu relative to the button */\n  export let flipped = false;\n\n  /**\n   * Specify the maximum height of the menu.\n   * A number is treated as pixels; a string is used as a CSS length.\n   * The menu scrolls once its items exceed the height.\n   * @type {number | string}\n   */\n  export let maxHeight = undefined;\n\n  /**\n   * Specify the menu options class.\n   * @type {string}\n   */\n  export let menuOptionsClass = undefined;\n\n  /**\n   * Specify the icon to render.\n   * @type {Icon}\n   * @bindable writable\n   */\n  export let icon = /** @type {Icon} */ (OverflowMenuVertical);\n\n  /**\n   * Specify the icon class.\n   * @type {string}\n   */\n  export let iconClass = undefined;\n\n  /** Specify the ARIA label for the icon */\n  export let iconDescription = \"Open and close list of options\";\n\n  /** Set an id for the button element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the trigger button element.\n   * @bindable readonly\n   */\n  export let buttonRef = null;\n\n  /**\n   * Obtain a reference to the overflow menu element.\n   * @bindable readonly\n   */\n  export let menuRef = null;\n\n  /**\n   * Set to `true` to render the menu in a portal,\n   * allowing it to escape containers with `overflow: hidden`.\n   * When inside a Modal, defaults to `true` unless explicitly set to `false`.\n   * @type {boolean | undefined}\n   */\n  export let portalMenu = undefined;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    setContext,\n  } from \"svelte\";\n  import { derived, writable } from \"svelte/store\";\n  import OverflowMenuHorizontal from \"../icons/OverflowMenuHorizontal.svelte\";\n  import OverflowMenuVertical from \"../icons/OverflowMenuVertical.svelte\";\n  import FloatingPortal from \"../Portal/FloatingPortal.svelte\";\n  import { batchStoreUpdates } from \"../utils/batchStoreUpdates.js\";\n  import { dismiss } from \"../utils/dismiss.js\";\n  import { isOutsideClick } from \"../utils/isOutsideClick.js\";\n  import { keyBy } from \"../utils/keyBy.js\";\n  import { rovingFocus } from \"../utils/rovingFocus.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const ctxBreadcrumbItem = getContext(\"carbon:BreadcrumbItem\");\n  const insideModal = getContext(\"carbon:Modal\");\n\n  $: effectivePortalMenu =\n    portalMenu === undefined ? !!insideModal : portalMenu;\n\n  const dispatch = createEventDispatcher();\n  /**\n   * @type {import(\"svelte/store\").Writable<ReadonlyArray<{ id: string; text: string; primaryFocus: boolean; disabled: boolean; index: number }>>}\n   */\n  const items = writable([]);\n  /**\n   * @type {import(\"svelte/store\").Readable<Record<string, { id: string; text: string; primaryFocus: boolean; disabled: boolean; index: number }>>}\n   */\n  const itemsById = derived(items, (_) => keyBy(_));\n  const currentId = writable(undefined);\n  /**\n   * @type {import(\"svelte/store\").Writable<string | undefined>}\n   */\n  const focusedId = writable(undefined);\n  const currentIndex = writable(-1);\n\n  let buttonWidth = undefined;\n  let onMountAfterUpdate = true;\n\n  $: if (ctxBreadcrumbItem) {\n    icon = OverflowMenuHorizontal;\n  }\n\n  // Items mount only while open, so they re-register on every open.\n  const batchedItemsUpdate = batchStoreUpdates(items);\n\n  /**\n   * @type {(data: { id: string; text: string; primaryFocus: boolean; disabled: boolean }) => void}\n   */\n  function add({ id, text, primaryFocus, disabled }) {\n    batchedItemsUpdate((_) => {\n      if (primaryFocus) {\n        currentIndex.set(_.length);\n      }\n\n      return [..._, { id, text, primaryFocus, disabled, index: _.length }];\n    });\n  }\n\n  /** @type {(id: string) => void} */\n  function remove(id) {\n    batchedItemsUpdate((_) => _.filter((item) => item.id !== id));\n  }\n\n  /**\n   * @type {(id: string, item: { id: string; text: string; primaryFocus: boolean; disabled: boolean; index: number }) => void}\n   */\n  function update(id, item) {\n    currentId.set(id);\n\n    const shouldContinue = dispatch(\n      \"close\",\n      { trigger: \"item-select\", index: item.index, text: item.text },\n      { cancelable: true },\n    );\n    if (shouldContinue) {\n      open = false;\n    }\n  }\n\n  function first() {\n    const index = $items.findIndex((_) => !_.disabled);\n    if (index >= 0) currentIndex.set(index);\n  }\n\n  function last() {\n    for (let index = $items.length - 1; index >= 0; index--) {\n      if (!$items[index].disabled) {\n        currentIndex.set(index);\n        return;\n      }\n    }\n  }\n\n  setContext(\"carbon:OverflowMenu\", {\n    focusedId,\n    items,\n    itemsById,\n    add,\n    remove,\n    update,\n    first,\n    last,\n  });\n\n  // Roving focus over the registry (`$items`), not the DOM: the focused item\n  // is the one whose id matches `focusedId`, set reactively from `currentIndex`.\n  const menuRovingFocus = {\n    selector: \"[role='menuitem']\",\n    orientation: /** @type {const} */ (\"vertical\"),\n    skipDisabled: true,\n    getItems: () => $items,\n    isDisabled: (item) => item.disabled,\n    getActiveIndex: () => $currentIndex,\n    onMove: (index) => currentIndex.set(index),\n  };\n\n  afterUpdate(() => {\n    if (open) {\n      const width = buttonRef.offsetWidth;\n      const height = buttonRef.offsetHeight;\n\n      buttonWidth = width;\n\n      if (!onMountAfterUpdate && $currentIndex < 0) {\n        menuRef?.focus({ preventScroll: true });\n      }\n\n      if (!effectivePortalMenu) {\n        // Menu is a button sibling; position from offsetTop/offsetLeft.\n        const { offsetTop, offsetLeft } = buttonRef;\n        // Read menu geometry up front, before any writes below: reading\n        // offsetHeight/offsetWidth after menuRef.style has already been\n        // written forces a second synchronous layout recalc on top of the\n        // one triggered by the reads above.\n        const menuHeight = menuRef.offsetHeight;\n        const menuWidth = menuRef.offsetWidth;\n\n        if (direction === \"top\") {\n          menuRef.style.top = `${offsetTop - menuHeight}px`;\n        } else {\n          menuRef.style.top = `${offsetTop + height}px`;\n        }\n\n        if (flipped) {\n          menuRef.style.left = `${offsetLeft + width - menuWidth}px`;\n        } else {\n          menuRef.style.left = `${offsetLeft}px`;\n        }\n\n        if (ctxBreadcrumbItem) {\n          menuRef.style.top = `${offsetTop + height + 10}px`;\n          menuRef.style.left = `${offsetLeft - 11}px`;\n        }\n      } else if (flipped && menuRef) {\n        menuRef.style.marginLeft = `${width - menuRef.offsetWidth}px`;\n      }\n    }\n\n    if (!open) {\n      currentId.set(undefined);\n      currentIndex.set(0);\n    }\n\n    onMountAfterUpdate = false;\n  });\n\n  $: menuId = `menu-${id}`;\n  $: ariaLabel = $$props[\"aria-label\"] ?? \"menu\";\n  $: if ($items[$currentIndex]) {\n    focusedId.set($items[$currentIndex].id);\n  }\n  // Use CSS custom properties instead of dynamic style injection for better\n  // performance. The previous approach created individual `style` tags per\n  // instance, causing overhead when many OverflowMenu components are rendered.\n  $: overflowMenuOptionsAfterWidth = buttonWidth ? `${buttonWidth}px` : \"2rem\";\n  $: maxHeightStyle =\n    typeof maxHeight === \"number\" ? `${maxHeight}px` : maxHeight;\n\n  function handleOutsideClick(event) {\n    if (menuRef && isOutsideClick(event, [buttonRef, menuRef])) {\n      const shouldContinue = dispatch(\n        \"close\",\n        { trigger: \"outside-click\" },\n        { cancelable: true },\n      );\n      if (shouldContinue) {\n        open = false;\n      }\n    }\n  }\n</script>\n\n<!-- svelte-ignore a11y-mouse-events-have-key-events -->\n<button\n  bind:this={buttonRef}\n  use:dismiss={{ enabled: open, type: \"click\", handler: handleOutsideClick }}\n  type=\"button\"\n  {disabled}\n  aria-haspopup=\"menu\"\n  aria-expanded={open}\n  aria-label={ariaLabel}\n  aria-controls={menuId}\n  {id}\n  class:bx--overflow-menu={true}\n  class:bx--overflow-menu--open={open}\n  class:bx--overflow-menu--light={light}\n  class:bx--overflow-menu--xs={size === \"xs\"}\n  class:bx--overflow-menu--sm={size === \"sm\"}\n  class:bx--overflow-menu--xl={size === \"xl\"}\n  {...$$restProps}\n  on:click\n  on:click={({ target }) => {\n    if (!menuRef?.contains(target)) {\n      if (open) {\n        const shouldContinue = dispatch(\n          \"close\",\n          { trigger: \"toggle\" },\n          { cancelable: true },\n        );\n        if (shouldContinue) {\n          open = false;\n        }\n      } else {\n        open = true;\n      }\n    }\n  }}\n  on:mouseover\n  on:mouseenter\n  on:mouseleave\n  on:keydown\n  on:keydown={(event) => {\n    if (open) {\n      if ([\"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"ArrowUp\"].includes(event.key)) {\n        event.preventDefault();\n      } else if (event.key === \"Home\") {\n        event.preventDefault();\n        first();\n      } else if (event.key === \"End\") {\n        event.preventDefault();\n        last();\n      } else if (event.key === \"Escape\") {\n        event.stopPropagation();\n        const shouldContinue = dispatch(\n          \"close\",\n          { trigger: \"escape-key\" },\n          { cancelable: true },\n        );\n        if (shouldContinue) {\n          open = false;\n          buttonRef.focus({ preventScroll: true });\n        }\n      }\n    }\n  }}\n>\n  <slot name=\"menu\">\n    <svelte:component\n      this={icon}\n      aria-label={iconDescription}\n      title={iconDescription}\n      class=\"bx--overflow-menu__icon {iconClass}\"\n    />\n  </slot>\n</button>\n\n{#if open && !effectivePortalMenu}\n  <!-- svelte-ignore a11y-no-noninteractive-element-to-interactive-role -->\n  <ul\n    bind:this={menuRef}\n    use:rovingFocus={menuRovingFocus}\n    role=\"menu\"\n    tabindex=\"-1\"\n    id={menuId}\n    aria-label={ariaLabel}\n    data-floating-menu-direction={direction}\n    class:bx--overflow-menu-options={true}\n    class:bx--overflow-menu--flip={flipped}\n    class:bx--overflow-menu-options--open={open}\n    class:bx--overflow-menu-options--light={light}\n    class:bx--overflow-menu-options--xs={size === \"xs\"}\n    class:bx--overflow-menu-options--sm={size === \"sm\"}\n    class:bx--overflow-menu-options--xl={size === \"xl\"}\n    class:bx--overflow-menu-options--scrollable={!!maxHeight}\n    class:bx--breadcrumb-menu-options={!!ctxBreadcrumbItem}\n    class={menuOptionsClass}\n    style=\"--overflow-menu-options-after-width: {overflowMenuOptionsAfterWidth}\"\n    style:max-height={maxHeightStyle}\n    on:keydown={(e) => {\n      if ([\"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"ArrowUp\"].includes(e.key)) {\n        e.preventDefault();\n      } else if (e.key === \"Escape\") {\n        e.stopPropagation();\n        const shouldContinue = dispatch(\n          \"close\",\n          { trigger: \"escape-key\" },\n          { cancelable: true },\n        );\n        if (shouldContinue) {\n          open = false;\n          buttonRef.focus({ preventScroll: true });\n        }\n      }\n    }}\n  >\n    <slot />\n  </ul>\n{/if}\n\n{#if effectivePortalMenu}\n  <FloatingPortal\n    anchor={buttonRef}\n    {direction}\n    {open}\n    let:direction={portalDirection}\n  >\n    <!-- svelte-ignore a11y-no-noninteractive-element-to-interactive-role -->\n    <ul\n      bind:this={menuRef}\n      use:rovingFocus={menuRovingFocus}\n      role=\"menu\"\n      tabindex=\"-1\"\n      id={menuId}\n      aria-label={ariaLabel}\n      data-floating-menu-direction={portalDirection}\n      class:bx--overflow-menu-options={true}\n      class:bx--overflow-menu--flip={flipped}\n      class:bx--overflow-menu-options--open={open}\n      class:bx--overflow-menu-options--light={light}\n      class:bx--overflow-menu-options--xs={size === \"xs\"}\n      class:bx--overflow-menu-options--sm={size === \"sm\"}\n      class:bx--overflow-menu-options--xl={size === \"xl\"}\n      class:bx--overflow-menu-options--scrollable={!!maxHeight}\n      class:bx--breadcrumb-menu-options={!!ctxBreadcrumbItem}\n      class={menuOptionsClass}\n      style=\"position: relative; top: auto; left: auto; --overflow-menu-options-after-width: {overflowMenuOptionsAfterWidth}\"\n      style:max-height={maxHeightStyle}\n      on:keydown={(event) => {\n        if ([\"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"ArrowUp\"].includes(event.key)) {\n          event.preventDefault();\n        } else if (event.key === \"Escape\") {\n          event.stopPropagation();\n          const shouldContinue = dispatch(\n            \"close\",\n            { trigger: \"escape-key\" },\n            { cancelable: true },\n          );\n          if (shouldContinue) {\n            open = false;\n            buttonRef.focus({ preventScroll: true });\n          }\n        }\n      }}\n    >\n      <slot />\n    </ul>\n  </FloatingPortal>\n{/if}\n\n<style>\n  .bx--overflow-menu-options:after {\n    width: var(--overflow-menu-options-after-width, 2rem);\n  }\n</style>\n","<script>\n  /**\n   * @template [Icon=any]\n   */\n\n  /**\n   * @event {MouseEvent} click\n   * @slot {{}} icon\n   * @slot {{}} iconRight\n   */\n\n  /**\n   * Specify the item text.\n   * Alternatively, use the default slot.\n   * @example\n   * ```svelte\n   * <OverflowMenuItem>\n   *   <span>Custom Text</span>\n   * </OverflowMenuItem>\n   * ```\n   */\n  export let text = \"Provide text\";\n\n  /**\n   * Specify an icon to render to the left of the item text.\n   * Alternatively, use the \"icon\" slot.\n   * @type {Icon}\n   * @example\n   * ```svelte\n   * <OverflowMenuItem>\n   *   <Icon slot=\"icon\" />\n   * </OverflowMenuItem>\n   * ```\n   */\n  export let icon = /** @type {Icon} */ (undefined);\n\n  /**\n   * Specify an icon to render pinned to the right edge of the item.\n   * Alternatively, use the \"iconRight\" slot.\n   * @type {Icon}\n   * @example\n   * ```svelte\n   * <OverflowMenuItem>\n   *   <Icon slot=\"iconRight\" />\n   * </OverflowMenuItem>\n   * ```\n   */\n  export let iconRight = /** @type {Icon} */ (undefined);\n\n  /** Specify the `href` attribute if the item is a link */\n  export let href = \"\";\n\n  /**\n   * Specify the `target` attribute if the item is a link\n   * @type {import(\"svelte/elements\").SvelteHTMLElements[\"a\"][\"target\"]}\n   */\n  export let target = \"\";\n\n  /**\n   * Specify the `rel` attribute if the item is a link.\n   * By default, `noopener noreferrer` is added if\n   * `target=\"_blank\"` unless `rel` is specified.\n   * @type {import(\"svelte/elements\").SvelteHTMLElements[\"a\"][\"rel\"]}\n   */\n  export let rel = undefined;\n\n  /** Set to `true` if the item should be focused when opening the menu */\n  export let primaryFocus = false;\n\n  /** Set to `true` to disable the item */\n  export let disabled = false;\n\n  /** Set to `true` to include a divider */\n  export let hasDivider = false;\n\n  /** Set to `true` to use the danger variant */\n  export let danger = false;\n\n  /** Set to `false` to omit the button `title` attribute */\n  export let requireTitle = true;\n\n  /** Set an id for the top-level element */\n  export let id = uniqueId();\n\n  /**\n   * Obtain a reference to the HTML element.\n   * @bindable readonly\n   */\n  export let ref = null;\n\n  import {\n    afterUpdate,\n    createEventDispatcher,\n    getContext,\n    onMount,\n  } from \"svelte\";\n  import { scrollIntoViewWithinMenu } from \"../utils/scrollIntoViewWithinMenu.js\";\n  import { uniqueId } from \"../utils/uniqueId.js\";\n\n  const dispatch = createEventDispatcher();\n  const { focusedId, add, remove, update, itemsById } = getContext(\n    \"carbon:OverflowMenu\",\n  );\n\n  $: item = $itemsById[id];\n\n  add({ id, text, primaryFocus, disabled });\n\n  $: focused = $focusedId === id;\n\n  onMount(() => () => remove(id));\n\n  afterUpdate(() => {\n    if (ref && focused) {\n      // `preventScroll` keeps a portaled menu from scrolling the document;\n      // scroll the item into view within the menu's own scroll container.\n      ref.focus({ preventScroll: true });\n      scrollIntoViewWithinMenu(ref, '[role=\"menu\"]');\n    }\n  });\n\n  $: buttonProps = {\n    role: \"menuitem\",\n    tabindex: \"-1\",\n    class: \"bx--overflow-menu-options__btn\",\n    type: href ? undefined : \"button\",\n    disabled: href ? undefined : disabled,\n    \"aria-disabled\": href && disabled ? \"true\" : undefined,\n    href: href ? href : undefined,\n    target: href && target ? target : undefined,\n    rel:\n      rel === undefined\n        ? target === \"_blank\"\n          ? \"noopener noreferrer\"\n          : undefined\n        : rel,\n    title: requireTitle ? ($$slots.default ? undefined : text) : undefined,\n  };\n\n  function handleClick(event) {\n    event.stopPropagation();\n\n    if (disabled) {\n      event.preventDefault();\n      return;\n    }\n\n    const shouldContinue = dispatch(\"click\", event, { cancelable: true });\n\n    // Only update (close menu) if preventDefault was not called.\n    if (shouldContinue) {\n      update(id, item);\n    }\n  }\n</script>\n\n<li\n  role=\"none\"\n  {id}\n  class:bx--overflow-menu-options__option={true}\n  class:bx--overflow-menu--divider={hasDivider}\n  class:bx--overflow-menu-options__option--danger={danger}\n  class:bx--overflow-menu-options__option--disabled={disabled}\n  {...$$restProps}\n>\n  {#if href}\n    <!-- svelte-ignore a11y-missing-attribute -->\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <a bind:this={ref} {...buttonProps} on:click={handleClick} on:keydown>\n      {#if $$slots.icon || icon}\n        <div\n          class:bx--overflow-menu-options__option-icon={true}\n          class:bx--overflow-menu-options__option-icon--left={true}\n        >\n          <slot name=\"icon\"><svelte:component this={icon} /></slot>\n        </div>\n      {/if}\n      <slot>\n        <div class:bx--overflow-menu-options__option-content={true}>{text}</div>\n      </slot>\n      {#if $$slots.iconRight || iconRight}\n        <div\n          class:bx--overflow-menu-options__option-icon={true}\n          class:bx--overflow-menu-options__option-icon--right={true}\n        >\n          <slot name=\"iconRight\"><svelte:component this={iconRight} /></slot>\n        </div>\n      {/if}\n    </a>\n  {:else}\n    <button\n      type=\"button\"\n      bind:this={ref}\n      {...buttonProps}\n      on:click={handleClick}\n      on:keydown\n    >\n      {#if $$slots.icon || icon}\n        <div\n          class:bx--overflow-menu-options__option-icon={true}\n          class:bx--overflow-menu-options__option-icon--left={true}\n        >\n          <slot name=\"icon\"><svelte:component this={icon} /></slot>\n        </div>\n      {/if}\n      <slot>\n        <div class:bx--overflow-menu-options__option-content={true}>{text}</div>\n      </slot>\n      {#if $$slots.iconRight || iconRight}\n        <div\n          class:bx--overflow-menu-options__option-icon={true}\n          class:bx--overflow-menu-options__option-icon--right={true}\n        >\n          <slot name=\"iconRight\"><svelte:component this={iconRight} /></slot>\n        </div>\n      {/if}\n    </button>\n  {/if}\n</li>\n","<script context=\"module\" lang=\"ts\">\n  export interface ResolvedBreadcrumb {\n    title: string\n    href: string\n  }\n</script>\n\n<script lang=\"ts\">\n  import Breadcrumb from \"carbon-components-svelte/src/Breadcrumb/Breadcrumb.svelte\";\nimport BreadcrumbItem from \"carbon-components-svelte/src/Breadcrumb/BreadcrumbItem.svelte\";\nimport OverflowMenu from \"carbon-components-svelte/src/OverflowMenu/OverflowMenu.svelte\";\nimport OverflowMenuItem from \"carbon-components-svelte/src/OverflowMenu/OverflowMenuItem.svelte\";\n  import { resize, ResizeStore } from '@txstate-mws/svelte-components'\n  import { tick } from 'svelte'\n\n  /**\n   * Array of resolved breadcrumb items to display in the navigation.\n   * @type {ResolvedBreadcrumb[]}\n   */\n  export let breadcrumbs: ResolvedBreadcrumb[] = []\n\n  const sizeStore = new ResizeStore({ clientWidth: 0 })\n\n  let measureEl: HTMLDivElement\n  let measuredWidths: number[] = []\n\n  function measureBreadcrumbs () {\n    if (!measureEl) return\n    measuredWidths = Array.from(measureEl.children).map(el => el.getBoundingClientRect().width)\n  }\n\n  // Remeasure pixel widths when breadcrumbs change\n  $: if (measureEl && breadcrumbs) {\n    void tick().then(measureBreadcrumbs)\n  }\n\n  interface BreadcrumbLayout {\n    visible: number[] // source indices in render order\n    overflow: number[] // source indices in deepest-first order (for menu display)\n    overflowAt: number // index into visible[] before which to insert overflow menu, or -1\n  }\n\n  /**\n   * Determine which breadcrumbs are visible vs overflowed.\n   * Large screens anchor the first item on the left; small screens don't.\n   * Overflow menu items are ordered deepest-first (reverse of source order).\n   */\n  function calculateLayout (\n    crumbs: ResolvedBreadcrumb[],\n    containerWidth: number,\n    widths: number[]\n  ): BreadcrumbLayout {\n    const n = crumbs.length\n    if (n <= 1) return { visible: n ? [0] : [], overflow: [], overflowAt: -1 }\n\n    const lastIdx = n - 1\n    // 18px as carbon breadcrumb item separator value for .bx--breadcrumb-item\n    const pixelLimit = containerWidth - n * 18\n    const lastCost = widths[lastIdx]\n    // 744px is the threshold where first breadcrumb anchors on left (large screen behavior)\n    const isLargeScreen = containerWidth >= 744\n\n    // On large screens, anchor the first breadcrumb on the left\n    const anchorIdx = isLargeScreen ? 0 : -1\n    const anchorCost = anchorIdx >= 0 ? widths[anchorIdx] : 0\n    const middleStart = anchorIdx >= 0 ? 1 : 0\n\n    // If anchored item + last item exceed the budget, drop the anchor too\n    if (anchorIdx >= 0 && lastCost + anchorCost > pixelLimit) {\n      const overflow: number[] = []\n      for (let i = lastIdx - 1; i >= 0; i--) overflow.push(i)\n      return { visible: [lastIdx], overflow, overflowAt: 0 }\n    }\n\n    // Fill middle items right-to-left within remaining budget.\n    // Once an item doesn't fit, everything to its left is also overflowed.\n    const budget = pixelLimit - lastCost - anchorCost\n    let remaining = budget\n    let firstFit = lastIdx\n    for (let i = lastIdx - 1; i >= middleStart; i--) {\n      if (widths[i] <= remaining) {\n        remaining -= widths[i]\n        firstFit = i\n      } else {\n        break\n      }\n    }\n\n    const middleFit: number[] = []\n    for (let i = firstFit; i <= lastIdx - 1; i++) middleFit.push(i)\n\n    const visible = anchorIdx >= 0 ? [0, ...middleFit, lastIdx] : [...middleFit, lastIdx]\n\n    if (middleFit.length === lastIdx - middleStart) {\n      return { visible, overflow: [], overflowAt: -1 }\n    }\n\n    // Build overflow list in deepest-first order (descending indices)\n    const overflow: number[] = []\n    for (let i = firstFit - 1; i >= middleStart; i--) overflow.push(i)\n\n    return { visible, overflow, overflowAt: anchorIdx >= 0 ? 1 : 0 }\n  }\n\n  $: containerWidth = $sizeStore.clientWidth ?? 0\n  $: ready = containerWidth > 0 && measuredWidths.length === breadcrumbs.length\n  $: layout = ready\n    ? calculateLayout(breadcrumbs, containerWidth, measuredWidths)\n    : { visible: [], overflow: [], overflowAt: -1 }\n</script>\n\n{#if breadcrumbs.length > 0}\n  <div use:resize={{ store: sizeStore }} class=\"breadcrumb-nav\">\n    <!-- Hidden container for measuring actual pixel widths of breadcrumb text -->\n    <div class=\"breadcrumb-measure\" bind:this={measureEl}>\n      {#each breadcrumbs as crumb}\n        <span class=\"measure-text\">{crumb.title}</span>\n      {/each}\n    </div>\n    <Breadcrumb>\n      {#if ready}\n        {#each layout.visible as idx, renderIdx}\n          {#if renderIdx === layout.overflowAt}\n            <BreadcrumbItem class=\"overflow-menu-item\">\n              <OverflowMenu menuOptionsClass=\"bx--breadcrumb-menu-options\" aria-label=\"More breadcrumb items\">\n                {#each layout.overflow as oi}\n                  <OverflowMenuItem href={breadcrumbs[oi].href} text={breadcrumbs[oi].title} />\n                {/each}\n              </OverflowMenu>\n            </BreadcrumbItem>\n          {/if}\n          <BreadcrumbItem href={breadcrumbs[idx].href}>\n            <span class=\"breadcrumb-text\" title={breadcrumbs[idx].title}>{breadcrumbs[idx].title}</span>\n          </BreadcrumbItem>\n        {/each}\n      {/if}\n    </Breadcrumb>\n  </div>\n{/if}\n\n<style>\n\n/* Hidden container for measuring breadcrumb pixel widths.\n   font-size and letter-spacing must stay in sync with Carbon's .bx--link styles. */\n.breadcrumb-measure {\n  position: fixed;\n  visibility: hidden;\n  pointer-events: none;\n  white-space: nowrap;\n  font-size: 0.875rem;\n  letter-spacing: 0.16px;\n}\n\n/* Prevent Carbon's breadcrumb from wrapping */\n.breadcrumb-nav :global(.bx--breadcrumb) {\n  display: flex !important;\n  flex-wrap: nowrap !important;\n}\n\n/* Breadcrumb text truncation with ellipsis */\n.breadcrumb-text {\n  display: inline-block;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  max-width: 80vw; /* Fallback for extremely long titles */\n}\n\n/* Overflow menu styling */\n.breadcrumb-nav :global(.bx--overflow-menu__icon) {\n  width: 1.5rem;\n  height: 1.5rem;\n}\n\n.breadcrumb-nav :global(.bx--overflow-menu:hover) {\n  background-color: var(--cds-ui-03, #d0d0d0);\n}\n/* Custom menu width for longer breadcrumb text */\n.breadcrumb-nav :global(.bx--breadcrumb-menu-options) {\n  min-width: 15rem!important;\n  max-width: 90vw!important;\n}\n\n/* Menu items handle longer text */\n.breadcrumb-nav :global(.bx--breadcrumb-menu-options .bx--overflow-menu-options__btn) {\n  max-width: 100% !important;\n}\n\n/* Allow text wrapping in menu items */\n.breadcrumb-nav :global(.bx--breadcrumb-menu-options .bx--overflow-menu-options__option-content) {\n  white-space: normal !important;\n  overflow: visible !important;\n  text-overflow: clip !important;\n  line-height: 1.4 !important;\n  padding: 0.25rem 0;\n}\n\n.breadcrumb-nav :global(.bx--breadcrumb-menu-options .bx--overflow-menu-options__option) {\n  height: auto !important;\n  min-height: 2.5rem !important;\n}\n\n</style>\n","<script lang=\"ts\">\n  import { browser } from '$app/environment'\n  import { navigating } from '$app/stores'\n  import type { Navigation } from '@sveltejs/kit'\n  import Loading from \"carbon-components-svelte/src/Loading/Loading.svelte\";\n  import { getContext, onMount } from 'svelte'\n  import { writable } from 'svelte/store'\n  import { UISHELL_STICKY_CONTEXT, type UIShellStickyStore } from './util.js'\n\n  /**\n   * One string for both the polite screen-reader region and the reduced-motion visible text.\n   * @type {string}\n   */\n  export let label = 'Loading…'\n  /**\n   * Whether the shell is showing a page-title block above the bar. Switches\n   * the track color, pulls the bar up to coincide with the title block's\n   * bottom border, and defers the header separator to the stuck state.\n   * @type {boolean}\n   */\n  export let hasTitle = false\n\n  /* navigation driver */\n\n  // Route transitions only\n  const NAV_TYPES = ['link', 'goto', 'popstate']\n  // milliseconds a navigation must outlive before the bar shows\n  const SHOW_DELAY_MS = 200\n  // absent context (usage outside UIShell) offset 0\n  const stickyOffset = getContext<UIShellStickyStore | undefined>(UISHELL_STICKY_CONTEXT) ?? writable({ height: 0 })\n\n  let navActive = false\n  let navTimer: ReturnType<typeof setTimeout> | undefined\n\n  $: updateFromNavigation($navigating)\n\n  function qualifies (navigation: Navigation | null): navigation is Navigation {\n    return !!navigation && NAV_TYPES.includes(navigation.type)\n  }\n\n  function updateFromNavigation (navigation: Navigation | null) {\n    if (qualifies(navigation)) {\n      if (navActive) {\n        restartTrickle()\n      } else {\n        navTimer ??= setTimeout(() => {\n          navActive = true\n          navTimer = undefined\n        }, SHOW_DELAY_MS)\n      }\n    } else {\n      clearTimeout(navTimer)\n      navTimer = undefined\n      navActive = false\n    }\n  }\n\n  /* phase machine */\n\n  // 'idle' -> 'loading' -> 'done' -> 'idle'; CSS keys every visual off data-phase\n  type Phase = 'idle' | 'loading' | 'done'\n  let phase: Phase = 'idle'\n  let restartFrame = 0\n\n  let announce = ''\n\n  $: syncPhase(navActive)\n\n  function transition (next: Phase) {\n    phase = next\n    announce = next === 'loading' ? label : ''\n  }\n\n  function syncPhase (isRunning: boolean) {\n    if (!isRunning) {\n      cancelRestart()\n      transition(phase === 'loading' ? 'done' : 'idle')\n    } else if (phase === 'idle') {\n      transition('loading')\n    } else if (phase === 'done') {\n      restartTrickle()\n    }\n  }\n\n  function restartTrickle () {\n    cancelRestart()\n    phase = 'idle'\n    restartFrame = requestAnimationFrame(() => {\n      restartFrame = requestAnimationFrame(() => {\n        restartFrame = 0\n        transition('loading')\n      })\n    })\n  }\n\n  function cancelRestart () {\n    cancelAnimationFrame(restartFrame)\n    restartFrame = 0\n  }\n\n  // after the completion fade, reset so width snaps back with no reverse animation\n  function onBarTransitionEnd (e: TransitionEvent) {\n    if (e.propertyName === 'opacity' && e.target === e.currentTarget && phase === 'done') {\n      transition('idle')\n    }\n  }\n\n  /* self-positioning */\n\n  $: offset = $stickyOffset.height\n\n  let wrapper: HTMLDivElement | undefined\n  let stuck = false\n  let stuckFrame = 0\n\n  $: if (browser && navActive) scheduleStuckCheck(offset)\n\n  function scheduleStuckCheck (..._: any[]) {\n    if (offset <= 0 || !navActive || stuckFrame) return\n    stuckFrame = requestAnimationFrame(() => {\n      stuckFrame = 0\n      if (!wrapper) return\n      stuck = wrapper.getBoundingClientRect().top <= offset + 1\n    })\n  }\n\n  onMount(() => () => {\n    cancelRestart()\n    clearTimeout(navTimer)\n    cancelAnimationFrame(stuckFrame)\n  })\n</script>\n\n<svelte:window on:scroll|passive={scheduleStuckCheck} on:resize|passive={scheduleStuckCheck} />\n<div\n  class=\"loading-bar\"\n  class:sticky={offset > 0}\n  class:has-title={hasTitle}\n  class:stuck\n  style=\"--loading-bar-offset: {offset}px\"\n  bind:this={wrapper}\n>\n  <!--the status region does the announcing -->\n  <div class=\"loading-bar__track\" data-phase={phase} aria-hidden=\"true\" on:transitionend={onBarTransitionEnd}>\n    <div class=\"loading-bar__fill\"></div>\n    <div class=\"loading-bar__indicator\">\n      <span class=\"loading-bar__spinner\"><Loading small withOverlay={false} /></span>\n      <span class=\"loading-bar__static-text\">{label}</span>\n    </div>\n  </div>\n  <div class=\"sr-only\" role=\"status\" aria-atomic=\"true\">{announce}</div>\n</div>\n\n<style>\n  /* Tunable custom properties:\n    --loading-bar-track      track color (default --cds-ui-03)\n    --loading-bar-separator  color of the line above the track, on the states where the component draws one (default --cds-ui-03)\n    --loading-bar-fill       fill + spinner color (default --cds-interactive-04)\n    --loading-bar-trickle    trickle duration (default 20s) */\n\n  /* self-positioning under the shell chrome */\n  .loading-bar {\n    --loading-bar-height: 4px;\n\n    color: var(--loading-bar-fill, var(--cds-interactive-04, #922125));\n    position: relative;\n    z-index: 5;\n    margin-top: var(--loading-bar-offset);\n  }\n  .loading-bar.sticky {\n    position: sticky;\n    top: var(--loading-bar-offset); /* pins below the header + impersonation band */\n  }\n\n  .loading-bar.has-title {\n    margin-top: calc(-1 * var(--loading-bar-height));\n  }\n  .loading-bar__track {\n    position: relative;\n    width: 100%;\n    box-sizing: border-box;\n    height: var(--loading-bar-height);\n    border-top: 2px solid transparent;\n    background: var(--loading-bar-track, var(--cds-ui-03, #d9d9d9));\n    background-clip: padding-box;\n    opacity: 0;\n  }\n  .loading-bar:not(.has-title) .loading-bar__track,\n  .loading-bar.has-title.stuck .loading-bar__track {\n    border-top-color: var(--loading-bar-separator, var(--cds-ui-03, #d9d9d9));\n  }\n  .loading-bar__track[data-phase='loading'] {\n    opacity: 1;\n    transition: opacity 320ms ease;\n  }\n  .loading-bar__track[data-phase='done'] {\n    opacity: 0;\n    transition: opacity 240ms ease;\n  }\n\n  .loading-bar__fill {\n    height: 100%;\n    width: 0;\n    background: currentColor;\n  }\n\n  .loading-bar__track[data-phase='loading'] .loading-bar__fill {\n    width: 90%;\n    transition: width var(--loading-bar-trickle, 20s) cubic-bezier(0.15, 0.85, 0.25, 1);\n  }\n  .loading-bar__track[data-phase='done'] .loading-bar__fill {\n    width: 100%;\n    transition: width 160ms var(--loading-bar-snap-ease, cubic-bezier(0.5, -0.1, 0.1, 1.5));\n  }\n  .loading-bar__indicator {\n    position: absolute;\n    top: calc(100% + 0.375rem);\n    right: 0.5rem;\n    display: flex;\n    align-items: center;\n  }\n\n  .loading-bar__track[data-phase='idle'] .loading-bar__indicator {\n    display: none;\n  }\n\n  .loading-bar__spinner {\n    display: flex;\n    width: 16px;\n    height: 16px;\n  }\n  .loading-bar__spinner :global(.bx--loading__stroke) {\n    stroke: currentColor;\n  }\n  .loading-bar__static-text {\n    display: none;\n    font-size: 0.875rem;\n    color: var(--cds-text-02, #525252);\n  }\n\n  @media (prefers-reduced-motion: reduce), (forced-colors: active) {\n    .loading-bar__spinner {\n      display: none;\n    }\n    .loading-bar__static-text {\n      display: inline;\n    }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    .loading-bar {\n      --loading-bar-snap-ease: ease;\n    }\n  }\n\n  @media (forced-colors: active) {\n    .loading-bar__static-text {\n      color: CanvasText;\n      background: Canvas;\n      padding: 0 0.25rem;\n    }\n    .loading-bar__fill {\n      background: Highlight;\n    }\n  }\n</style>\n","export const TXST_LOGO = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAABUCAYAAABZYygvAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAARAxJREFUeAHtfQecXUW9/29mTrl1+96t2WxCgIQQCASCRJBQpEoJVUSk+ECe+uwiPuwCPvWhYkdFAUUUkCfFBiIRgQASejeBlG13693dW8+ZM/P/zZx7N3c320ISEv+f84XN3T33nDlTf31+AxAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAA//+BFT9NCBAgQIAdCLowHq+9uHUhL/5NIECAALs1KPz7QMyLhK/Jp/vYstraQyBAgAC7Pf6dCAzEwTgtw6icQ+xP4J8SAgQIsFvj34XAkH0rK/dgwkuAJF6lYZ0MAQIE2O3x70JgZJsd/nhBugIFGOrwQnhZPL4QAjtMgAC7Nf5tVKR6SU6VgoIQAHlREPOjFVdBoCYFCLBb49+BwJD9Yg2JAshWWRRYBDGkRcSJECBAgN0a/w4ERrbEyIcLkovSBSolwT/Dy6qr2yBQkwIE2G3xb6EiVXv0IkFISYDRH44Qsolan4ZATQoQYLfF7k5gyL6JRAOTspUAIYwxGBgdBqfAQVAqqkzjPAgQ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1bJSaw0ULjj7QDF3YD64d8w1NDZWuIV1whYsKBipJSl3BqkpbVdorhm+P/e4rUOqgJJSyxut+Nn434LmgvER4ky4H9EFinhzgotymxW7r3XxZhWE66NFRHnZlohWck3EBea5hrIlZIQhJVEZNolJOqHGDDPcgjWXmlDaLYomN2lFVKJR/FVUq2HKulgYSaD7qOiWa5ItnWO8sehrQX5qaqk82d3TAEEpprh/CNNaWPM6bES+fh20AcSXLFJSbVsVhET/JDKE056nkM7kN6h4UQZ86oa7l26+Q3NvbLet9aCSvhZ2Et8yLlGbsnv6suO2h4c33wVuf3b/kgoQXe7raTqxv/kVOuP+EHQ++Dt+1LtnTuLw2cRpKTF+xGZ/PmfLt6kRZPGeIlzelC597vC95P0zRD6FMxrNDsS6c02miF5qyeBjCMFhowOWT5bXxHu3u3ljVWP/hGmZf4Uonh675SQ3HhmkWbGr3oFVihOhsT7jOKSpiRISEayRhdiA9jH+mGozPoe9oFKW0qlf5sIrsndGAgCKDtJi10YICMmtTRR/r8PxJX6JoDVHby0hVgbvjNh6GlHfEsl63pRIUVfwRFcVtw8j97fI+0gbxXyQ7w2cmGh4xmLkvFhvplmPeLv2qh/q6nn0IHz+sqvGCWpNehELHHhYzq3T/qAP0PHBcyjdtcrxrH+3c/EuYJBoW6dDTlabZiTQvU349bEKVkx39F0wB5WSnpuywhZEtDwJWxNAy5bQnNk6EGw8/HZdsM/bJmH2I6B0eEk2eVMf/PNyfvOeI2pbWBNg3ZF1v/QNDncowv9N2VL8VKCdku2wHdxHl3omdVZeZjGYzfT+T73i2aRFnm1JxW949VRmzNRS+2fSlE985E3Oc+J7J2jWxjNm0wZdMtsb29OtMbdmW9KDGLL4vOR4AtjgfAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECDArPH/AMrF79hvv/kKAAAAAElFTkSuQmCC';\n","<script lang=\"ts\">\n  import Button from \"carbon-components-svelte/src/Button/Button.svelte\";\nimport Modal from \"carbon-components-svelte/src/Modal/Modal.svelte\";\n  import { Form } from './form'\n  import CheckmarkFilled from \"carbon-icons-svelte/lib/CheckmarkFilled.svelte\";\nimport Search from \"carbon-icons-svelte/lib/Search.svelte\";\n  import FieldTextInput from './form/FieldTextInput.svelte'\n  import type { Impersonate, UserProfile } from './util'\n  import type { FormStore, SubmitResponse } from '@txstate-mws/svelte-forms'\n  import { toasts } from '@txstate-mws/svelte-components'\n\n  export let impersonate: Impersonate | undefined = undefined\n  export let userProfile: UserProfile | undefined\n  export let environment: string | undefined\n\n  export let impersonateOpen = false\n\n  type FormData = {\n    netid: string\n  } & { user?: Partial<UserProfile> }\n\n  let store: FormStore<FormData> | undefined = undefined\n\n  async function submit ({ netid }: FormData): Promise<SubmitResponse<FormData>> {\n    if (!netid) {\n      store?.setField('user', undefined)\n      return { success: false, data: { netid }, messages: [{ path: 'netid', message: 'NetID is required', type: 'error' }] }\n    }\n\n    try {\n      const user = await impersonate?.userLookup(netid)\n      if (!user) {\n        store?.setField('user', undefined)\n        return { success: false, data: { user, netid }, messages: [{ path: 'netid', message: 'No match found. Check NetID and try again.', type: 'error' }] }\n      }\n      return { success: true, data: { user, netid }, messages: [] }\n    } catch (e: any) {\n      console.error(e)\n      toasts.add({\n        type: 'error',\n        message: e.message ?? 'Unkown error occured'\n      })\n      return { success: false, data: { netid }, messages: [] }\n    }\n  }\n\n    function success (data: Partial<FormData>) {\n      impersonate?.impersonate(data.netid)\n      impersonateOpen = false\n      store?.reset()\n      toasts.add({\n        type: 'success',\n        title: impersonate?.isImpersonating ? 'Impersonation changed' : 'Impersonation activated',\n        message: `Viewing the ${environment ?? ''} system as ${data.user?.firstName} ${data.user?.lastName}, ${data.netid}.`\n      })\n    }\n\n</script>\n  <Modal\n    modalHeading='Impersonate User'\n    bind:open={impersonateOpen}\n    on:close={() => { impersonateOpen = false; store?.reset() }}\n    passiveModal\n    class='impersonate-modal'\n   >\n    <Form\n      submit={submit}\n      hideFallbackMessage\n      let:data\n      let:messages\n      let:invalid\n      bind:store>\n      <div class=\"flex flex-row gap-4 p-4\">\n        <FieldTextInput path='netid' labelText='TXST NetID' required />\n        <Button class={invalid ? 'searchErrors' : ''} type='submit' aria-label='search' style=\"min-height: 2.5rem; width: 2.5rem; align-self: flex-start; padding-inline: 0;margin-block-start: calc(1lh + .4rem);\"><Search size={16} /></Button>\n      </div>\n\n      {#if data.user}\n        <div class=\"flex flex-col gap-4 px-4\">\n          <div class=\"flex flex-col py-2 px-4 gap-2\" style='background-color: white;'>\n            <div class=\"flex flex-row gap-3\">\n              <div style=\"border-radius: 100px; height: 20px; width: 20px; display: flex; justify-content: center; align-items: center;\">\n                <CheckmarkFilled size={20} color='#419e69' />\n              </div>\n              <b>User found</b>\n            </div>\n            <div class=\"user-info\">\n              <span>First Name: </span>\n              <span>{data.user.firstName}</span>\n            </div>\n            <div class=\"user-info\">\n              <span>Last Name: </span>\n              <span>{data.user.lastName}</span>\n            </div>\n            <div class=\"user-info\">\n              <span>NetID: </span>\n              <span>{data.user.username}</span>\n            </div>\n            <div class=\"user-info\">\n              <span>Affiliations: </span>\n              <span>{data.user?.affiliations?.join(', ')}</span>\n            </div>\n          </div>\n\n          <p class=\"text-sm\">You are about to view the {environment} system as {data.user?.username}. All actions taken are logged as you impersonating this user.</p>\n        </div>\n        <div class=\"flex flex-row w-full\">\n          <Button class='grow' kind='ghost' on:click={() => { impersonateOpen = false }}>Cancel</Button>\n          <Button kind='secondary' on:click={() => { store?.reset() }}>Search again</Button>\n          <Button kind='primary' on:click={() => { success(data) }}>Impersonate</Button>\n        </div>\n      {/if}\n      <div slot='submit' style=\"margin-top: 0\">\n      </div>\n    </Form>\n  </Modal>\n\n<style>\n  .user-info {\n    display: flex;\n    flex-direction: row;\n  }\n  .user-info span {\n    width: 100%\n  }\n  :global(.impersonate-modal .searchErrors) {\n    margin-bottom: 20px;\n  }\n\n  :global(.impersonate-modal.bx--modal) {\n    align-items: flex-start;\n  }\n\n  :global(.impersonate-modal .bx--modal-container) {\n    width: 320px;\n  }\n\n  :global(.impersonate-modal .bx--modal-content) {\n    margin-bottom: 0;\n    padding-left: 0;\n    padding-right: 0;\n  }\n</style>\n","<script lang=\"ts\">\n  import { browser } from '$app/environment'\n  import { base } from '$app/paths'\n  import { page } from '$app/stores'\n  import { type LayoutStructureNode, type LayoutStructureNodeRoot, type LayoutStructureNodeResolved, LayoutStore, confirmationStore } from './stores/index.js'\n  import { modifierKey, resize, ResizeStore, toasts } from '@txstate-mws/svelte-components'\n  import { derivedStore } from '@txstate-mws/svelte-store'\n  import HeaderAction from \"carbon-components-svelte/src/UIShell/HeaderAction.svelte\";\nimport HeaderPanelDivider from \"carbon-components-svelte/src/UIShell/HeaderPanelDivider.svelte\";\nimport HeaderPanelLink from \"carbon-components-svelte/src/UIShell/HeaderPanelLink.svelte\";\nimport HeaderPanelLinks from \"carbon-components-svelte/src/UIShell/HeaderPanelLinks.svelte\";\nimport HeaderUtilities from \"carbon-components-svelte/src/UIShell/HeaderUtilities.svelte\";\nimport InlineNotification from \"carbon-components-svelte/src/Notification/InlineNotification.svelte\";\nimport Modal from \"carbon-components-svelte/src/Modal/Modal.svelte\";\nimport NotificationActionButton from \"carbon-components-svelte/src/Notification/NotificationActionButton.svelte\";\nimport SideNav from \"carbon-components-svelte/src/UIShell/SideNav.svelte\";\nimport SideNavItems from \"carbon-components-svelte/src/UIShell/SideNavItems.svelte\";\nimport SideNavLink from \"carbon-components-svelte/src/UIShell/SideNavLink.svelte\";\nimport SideNavMenu from \"carbon-components-svelte/src/UIShell/SideNavMenu.svelte\";\nimport SideNavMenuItem from \"carbon-components-svelte/src/UIShell/SideNavMenuItem.svelte\";\nimport SkipToContent from \"carbon-components-svelte/src/UIShell/SkipToContent.svelte\";\nimport Tooltip from \"carbon-components-svelte/src/Tooltip/Tooltip.svelte\";\n  import Category from \"carbon-icons-svelte/lib/Category.svelte\";\nimport Close from \"carbon-icons-svelte/lib/Close.svelte\";\nimport Menu from \"carbon-icons-svelte/lib/Menu.svelte\";\nimport UserAdmin from \"carbon-icons-svelte/lib/UserAdmin.svelte\";\nimport UserAvatar from \"carbon-icons-svelte/lib/UserAvatar.svelte\";\n  import { type Component, type SvelteComponent, setContext, tick } from 'svelte'\n  import { writable } from 'svelte/store'\n  import { groupby, isBlank, isNotBlank, mapgroupby } from 'txstate-utils'\n  import LayoutBase, { type InteractionEvent } from './LayoutBase.svelte'\n  import { VERSION } from './version.js'\n  import SiteMap from './SiteMap.svelte'\n  import { UISHELL_STICKY_CONTEXT, type Impersonate, type ShellItem, type UserProfile } from './util.js'\n  import BreadcrumbNav from './BreadcrumbNav.svelte'\n  import LoadingBar from './LoadingBar.svelte'\n  import { TXST_LOGO } from './txst-logo.js'\n  import UserImpersonation from './UserImpersonation.svelte'\n\n  /**\n  * The name of your application that appears in the header.\n  * @type {string}\n  */\n  export let appName: string\n  /**\n  * The navigation structure for your application. Omit (or pass an empty object) to render\n  * the shell without a hamburger menu and side navigation.\n  * @type {LayoutStructureNodeRoot<LayoutStructureNodeRoot<LayoutStructureNode>> | Record<string, never> | undefined}\n  */\n  export let navRoot: LayoutStructureNodeRoot<LayoutStructureNodeRoot<LayoutStructureNode>> | Record<string, never> | undefined = undefined\n  /**\n  * Company or organization name that appears before the appName in the header.\n  * @type {string}\n  */\n export let companyName = ''\n /**\n  * User profile information that appears in right navigation menu\n  * @type {UserProfile}\n */\n export let userProfile: UserProfile | undefined = undefined\n  /**\n  * Array of navigation items for the user profile menu.\n  * @type {ShellItem[]}\n  */\n  export let profilelinks: ShellItem[] = []\n  /**\n   * Whether the header should stick to the top when scrolling\n   * @type {boolean}\n  */\n  export let stickyHeader = true\n  /**\n   * Screen reader text for the profile menu button\n   * @type {string}\n  */\n  export let profileMenuDescription = 'Open User Menu'\n  /**\n   * Screen reader text for the profile menu button\n   * @type {string}\n  */\n  export let profileMenuClose = profileMenuDescription.replace('open', 'close').replace('Open', 'Close')\n  /**\n  * The name of your environment, e.g. DEV, QUAL, PROD. This will be backgrounded behind your header so\n  * users can identify whether they are working in prod or not.\n  * @type {string}\n  */\n export let overlayText: string | undefined = undefined\n  /**\n  * Reverse the font weights of company name and app name.\n  * @type {boolean}\n  */\n  export let reverseWeights: boolean = false\n\n  /**\n  * Control whether nav items are expanded by default\n  * @type {boolean}\n  */\n  export let expandedNav = true\n\n  /**\n  * Controls for user impersonate\n  * @type {Impersonate}\n  */\n  export let impersonate: Impersonate | undefined = undefined\n  /**\n   * Function to record user interactions for analytics.\n   * If you provide this (if you use our sveltekit-utils library, it should be an easy passthrough),\n   * this component library will call it to record certain user interactions like\n   * opening and closing modals.\n   * @type {(evt: InteractionEvent) => Promise<void>}\n   */\n  export let recordInteraction: ((evt: InteractionEvent) => Promise<void>) | undefined = undefined\n\n  /**\n   * Whether to show the site map button in the header\n   * @type {boolean}\n   */\n  export let showSiteMap = false\n\n  /**\n   * Icon component for the profile menu button. Replaces the default\n   * UserAvatar when no profile image or initials are available.\n   * @type {typeof SvelteComponent}\n   */\n  export let profileIcon: typeof SvelteComponent | Component = UserAvatar\n\n  /**\n   * Logo image path for the print-only header. Defaults to the TXST logo.\n   * @type {string}\n   */\n  export let printLogo = TXST_LOGO\n\n  /**\n   * Render the automatic navigation loading bar during client-side route transitions.\n   * Turn off if your app supplies its own loading feedback.\n   * @type {boolean}\n   */\n  export let loadingBar = true\n  /**\n   * Text announced while the navigation loading bar is showing.\n   * @type {string}\n   */\n  export let loadingBarLabel = 'Loading…'\n\n  const hasNav = !!navRoot && 'children' in navRoot && (navRoot.children?.length ?? 0) > 0\n  const layoutStore = hasNav ? new LayoutStore({ root: navRoot as LayoutStructureNodeRoot<LayoutStructureNodeRoot<LayoutStructureNode>> }) : undefined\n  const nav = layoutStore?.nav ?? writable<LayoutStructureNodeResolved[]>([])\n  const layoutInfo = browser && layoutStore ? layoutStore.layoutInfo(page) : writable({ title: '', breadcrumbs: [] })\n  let isOpen = false\n  let profileOpen = false\n  let sitemapOpen = false\n  let impersonateOpen = false\n  const sidenavelements: HTMLAnchorElement[] = []\n  let sidenavcontainer: HTMLDialogElement | undefined\n  let hamburgerelement: HTMLElement | undefined\n  let profilecontainer: HTMLDialogElement | undefined\n  let profiletoggle: HTMLButtonElement | undefined\n  let mainelement: HTMLElement | undefined\n\n  // SvelteKit's same-hash anchor handler calls .focus() on the target, but that won't move focus to <main> unless tabindex is set.\n  function handleSkipToContent (e: MouseEvent) {\n    if (!mainelement) return\n    e.preventDefault()\n    mainelement.setAttribute('tabindex', '-1')\n    mainelement.focus()\n    mainelement.addEventListener('blur', () => {\n      mainelement?.removeAttribute('tabindex')\n    }, { once: true })\n  }\n\n  function closeNav () {\n    isOpen = false\n    sidenavcontainer?.close()\n    hamburgerelement?.focus()\n  }\n  function hamburgerClick () {\n    if (isOpen) closeNav()\n    else {\n      isOpen = true\n      sidenavcontainer?.showModal()\n      void tick().then(() => { sidenavelements[0]?.focus() })\n    }\n  }\n  function onSideNavKeydown (e: KeyboardEvent) {\n    if (!modifierKey(e) && e.key === 'Escape') {\n      e.stopPropagation()\n      e.preventDefault()\n      closeNav()\n    }\n  }\n  function sideNavClick (e: MouseEvent) {\n    // close side nav when click on the backdrop\n    if (e.target instanceof HTMLElement && e.target === sidenavcontainer) {\n      closeNav()\n    }\n  }\n\n  function closeProfile () {\n    profileOpen = false\n    onProfileClose()\n  }\n  function onProfileClose () {\n    profilecontainer?.close()\n    profiletoggle?.focus()\n  }\n  async function onProfileOpen () {\n    await tick()\n    profilecontainer?.showModal()\n  }\n  function onProfileKeydown (e: KeyboardEvent) {\n    if (!modifierKey(e) && e.key === 'Escape') {\n      e.stopPropagation()\n      e.preventDefault()\n      closeProfile()\n    }\n  }\n  function onProfileBackdropClick (e: MouseEvent) {\n    // close profile when click on the backdrop\n    if (e.target instanceof HTMLElement && e.target === profilecontainer) {\n      closeProfile()\n    }\n  }\n\n  $: navGroups = mapgroupby($nav?.filter(c => isNotBlank(c.group)), 'group')\n  $: groupedlinks = groupby(profilelinks, l => l.group ?? 'undefined')\n  $: groupedlinkentries = Object.entries(groupedlinks)\n\n  type ProcessedNavItem =\n    | { type: 'link', item: LayoutStructureNodeResolved, index: number }\n    | { type: 'menu', group: string, items: LayoutStructureNodeResolved[], icon?: any }\n\n  $: processedNavItems = preprocessNavItems($nav, navGroups)\n\n  function preprocessNavItems (\n    navItems: LayoutStructureNodeResolved[] | null | undefined,\n    groupMap: Map<string, LayoutStructureNodeResolved[]>\n  ): ProcessedNavItem[] {\n    if (!navItems) return []\n\n    const processedGroups = new Set<string>()\n    const result: ProcessedNavItem[] = []\n\n    navItems.forEach((item, index) => {\n      if (isBlank(item.group)) {\n        result.push({\n          type: 'link',\n          item,\n          index\n        })\n      } else if (!processedGroups.has(item.group) && groupMap.has(item.group)) {\n        processedGroups.add(item.group)\n        const groupItems = groupMap.get(item.group) || []\n        result.push({\n          type: 'menu',\n          group: item.group,\n          items: groupItems,\n          icon: groupItems.find(pg => pg.icon)?.icon\n        })\n      }\n    })\n\n    return result\n  }\n\n  async function endImpersonate () {\n    if (!impersonate) return\n    await impersonate?.endImpersonate()\n    toasts.add({\n      type: 'success',\n      title: 'Impersonation ended',\n      message: `Viewing the ${overlayText ?? ''} system as: ${userProfile?.firstName} ${userProfile?.lastName}, ${userProfile?.username}.`\n    })\n  }\n\n  const stickyHeaderSize = new ResizeStore({ offsetHeight: 0 })\n  const impersonationSize = new ResizeStore({ offsetHeight: 0 })\n  const isStickyHeader = writable(stickyHeader)\n  $: $isStickyHeader = stickyHeader\n  const stickyHeaderInfo = derivedStore([isStickyHeader, stickyHeaderSize, impersonationSize], ([isSticky, size, impersonationSize]) => ({\n    height: isSticky ? (size.offsetHeight ?? 0) + (impersonationSize.offsetHeight ?? 0) : 0\n  }))\n  setContext(UISHELL_STICKY_CONTEXT, stickyHeaderInfo)\n\n  // The LoadingBar needs to know whether the title block sits above it\n  type LayoutTitle = string | Promise<string | undefined> | undefined\n  let hasTitle = false\n  let hasTitleSource: LayoutTitle\n  $: void resolveHasTitle($layoutInfo.title)\n  async function resolveHasTitle (title: LayoutTitle) {\n    hasTitleSource = title\n    const resolved = await title\n    if (hasTitleSource === title) hasTitle = !!resolved\n  }\n\n  $: resolvedBreadcrumbs = $layoutInfo.breadcrumbs.length > 0\n    ? Promise.all($layoutInfo.breadcrumbs.map(async bc => ({\n      title: await bc.title,\n      href: await bc.href\n    })))\n    : Promise.resolve([])\n\n\n</script>\n<svelte:head>\n  {#await $layoutInfo.title then layoutTitle}\n    <title>{layoutTitle ? `${layoutTitle} : ${appName}` : appName}</title>\n  {/await}\n</svelte:head>\n<!-- print only header -->\n<div class=\"print-header\" aria-hidden=\"true\">\n  <span class=\"print-header-name\">{companyName ? `${companyName} ` : ''}{appName}</span>\n  <img src={printLogo} alt=\"\" class=\"print-header-logo\" />\n</div>\n<LayoutBase {recordInteraction}>\n  <SkipToContent id=\"skip\" on:click={handleSkipToContent} />\n  <header use:resize={{ store: stickyHeaderSize }} class:bx--header={true} class:fixed={stickyHeader} class:relative={!stickyHeader} class=\"[ flex-wrap print:hidden ]\" >\n    {#if overlayText}\n      <div class=\"overlayTextContainer\">\n        <svg width=\"10000\" height=\"3rem\" role=\"img\" aria-hidden=\"true\">\n          {#each Array(100) as _, i}\n            {@const offset = i * 65}\n            <text x=\"{offset}\" y=\"33\" class=\"overlayText\" fill=\"#723F3B\" font-size=\"20\" font-weight=\"bold\" text-anchor=\"middle\" transform=\"rotate(30, {offset}, 0)\">{overlayText}</text>\n          {/each}\n        </svg>\n      </div>\n    {/if}\n    <div class=\"[ w-full flex items-center ]\">\n    {#if hasNav}\n      <button\n        type=\"button\"\n        aria-label=\"Navigation Menu\"\n        class:bx--header__action={true} class:bx--header__menu-trigger={true} class:bx--header__menu-toggle={true}\n        class=\"[ flex-shrink-0 ]\"\n        bind:this={hamburgerelement}\n        on:click={hamburgerClick}\n      >\n        <svelte:component this={isOpen ? Close : Menu} size={20} />\n      </button>\n    {/if}\n    <a href=\"{base}/\" class:bx--header__name={true}>\n      {#if companyName}\n        <span class:bx--header__name--prefix={true} class:companyname-reverseweight={reverseWeights}>{companyName}&nbsp;</span>\n      {/if}\n      <span class:appname-reverseweight={reverseWeights} class=\"appname\">{appName}</span>\n    </a>\n    {#if profilelinks.length || (showSiteMap && hasNav) || $$slots.search}\n      <HeaderUtilities>\n        <slot name=\"search\" />\n        {#if showSiteMap && hasNav}\n          <button\n            type=\"button\"\n            class:bx--header__action={true}\n            aria-label=\"Site Map\"\n            aria-haspopup=\"dialog\"\n            on:click={() => { sitemapOpen = true }}\n          >\n            <Category size={20} />\n          </button>\n        {/if}\n        {#if impersonate?.canImpersonate}\n          <button class:bx--header__action={true} aria-label=\"Impersonate user\" on:click={() => { impersonateOpen = true }}>\n            <UserAdmin size={20} />\n          </button>\n        {/if}\n        {#if profilelinks.length}\n        <HeaderAction aria-haspopup=\"dialog\" bind:ref={profiletoggle} bind:isOpen={profileOpen} text={profileOpen ? profileMenuClose : profileMenuDescription} on:open={onProfileOpen} on:close={onProfileClose}>\n          <svelte:fragment slot=\"icon\">\n            {#if userProfile?.image}\n              <img src={userProfile.image} alt=\"\" class=\"header-profile-image\" />\n            {:else if userProfile?.firstName && userProfile?.lastName}\n              <span class=\"header-profile-initials\">{userProfile.firstName[0]}{userProfile.lastName[0]}</span>\n            {:else}\n              <svelte:component this={profileIcon} size={20} />\n            {/if}\n          </svelte:fragment>\n          <dialog bind:this={profilecontainer} class=\"profile-dialog\" on:keydown={onProfileKeydown} on:click={onProfileBackdropClick}>\n          <!-- <HeaderPanelLinks> -->\n            <button type=\"button\" class=\"profile-close\" on:click={closeProfile} aria-label=\"Close Profile Menu\"></button>\n            <HeaderPanelLinks>\n              <div class=\"header-panel-link-meta-wrap\">\n                <div class=\"profile-link-wrap\">\n                  {#if userProfile}\n                    <li class=\"user-profile\" aria-label=\"User Profile Information\">\n                      <div class=\"user-profile-icon\" class:has-image={userProfile.image}>\n                        {#if userProfile.image}\n                          <img src={userProfile.image} alt=\"\" class=\"user-profile-image\" />\n                        {:else}\n                          <span class=\"user-profile-initials\">{userProfile.firstName[0]}{userProfile.lastName[0]}</span>\n                        {/if}\n                      </div>\n                      <div class=\"user-profile-names\">\n                        <span class=\"[ text-base font-medium ]\">{userProfile.firstName}</span>\n                        <span class=\"[ text-base font-medium ]\">{userProfile.lastName}</span>\n                        {#if userProfile.details}\n                          <div class=\"user-profile-details [ text-sm ]\">\n                            {userProfile.details}\n                          </div>\n                        {/if}\n                      </div>\n                    </li>\n                    <HeaderPanelDivider />\n                  {/if}\n                  {#each groupedlinkentries as [group, navs], i}\n                    {#if isNotBlank(group) && group !== 'undefined'}<HeaderPanelDivider>{group}</HeaderPanelDivider>{/if}\n                    {#each navs as nav, j}\n                      {@const onClickOnly = isBlank(nav.href) || nav.href === '#'}\n                      <HeaderPanelLink\n                        aria-disabled={nav.disabled}\n                        role={onClickOnly ? 'button' : undefined}\n                        href={onClickOnly ? '#' : nav.href}\n                        autofocus={i === 0 && j === 0}\n                        on:click={async e => {\n                          if (onClickOnly) e.preventDefault()\n                          await nav.onClick?.()\n                          closeProfile()\n                        }}\n                      >\n                        {#if nav.icon}\n                          <svelte:component this={nav.icon} class=\"inline align-text-bottom mr-[16px]\" />\n                        {/if}\n                        {nav.label}\n                      </HeaderPanelLink>\n                    {/each}\n                  {/each}\n                </div>\n                <div class=\"meta-info\">\n                  <hr class=\"divider [ mx-3 ]\" aria-hidden=\"true\" />\n                  <div class=\"side-nav-version [ text-sm ]\">CL Version: {VERSION}</div>\n                </div>\n              </div>\n            </HeaderPanelLinks>\n          </dialog>\n        </HeaderAction>\n        {/if}\n      </HeaderUtilities>\n    {/if}\n    </div>\n  </header>\n  <div\n    class:impersonation-warning={true}\n    class:fixed={stickyHeader}\n    class:open={impersonate?.isImpersonating}\n    use:resize={{ store: impersonationSize }}\n  >\n    {#if impersonate?.isImpersonating}\n      <InlineNotification\n        class='impersonation-notification'\n        kind=\"warning\"\n        title=\"Impersonating:\"\n        hideCloseButton\n      >\n        <svelte:fragment slot=\"actions\">\n          <NotificationActionButton on:click={endImpersonate}>\n            End impersonation\n          </NotificationActionButton>\n        </svelte:fragment>\n        <svelte:fragment slot=\"subtitleChildren\">\n          <div class=\"flex\">\n            {userProfile?.firstName} {userProfile?.lastName} {userProfile?.username}\n            {#if userProfile?.affiliations}\n              <Tooltip>\n                <div class=\"[ bg-white px-4 py-2 flex text-black gap-4 w-max ]\">\n                  <p>Affiliations:</p>\n                  <p class=\"[ max-w-[120px] ]\">{userProfile?.affiliations?.join(', ')}</p>\n                </div>\n              </Tooltip>\n            {/if}\n          </div>\n        </svelte:fragment>\n      </InlineNotification>\n    {/if}\n  </div>\n  {#await $layoutInfo.title then layoutTitle}\n    {#if layoutTitle}\n      <div class=\"breadcrumbs bx--content wrapper\" style=\"--content-max-width: 100%\">\n        {#await resolvedBreadcrumbs then breadcrumbs}\n          <BreadcrumbNav {breadcrumbs} />\n        {/await}\n        <h1 class=\"[ text-lg leading-snug mt-1 ]\">{layoutTitle}</h1>\n      </div>\n    {/if}\n  {/await}\n  {#if hasNav}\n    <!-- svelte-ignore a11y-no-static-element-interactions -->\n    <dialog class=\"side-nav\" bind:this={sidenavcontainer} on:keydown={onSideNavKeydown} on:click={sideNavClick}>\n      <button type=\"button\" class=\"side-nav-close\" on:click={closeNav} aria-label=\"Close Hamburger Menu\"></button>\n      <SideNav isOpen={true} fixed>\n        <SideNavItems>\n          {#each processedNavItems as navItem, i}\n            {#if navItem.type === 'link'}\n              <SideNavLink\n                text={navItem.item.navTitle}\n                icon={navItem.item.icon ?? undefined}\n                href=\"{base}{navItem.item.href}\"\n                isSelected={$page.url.pathname === base + navItem.item.href}\n                on:click={closeNav}\n                bind:ref={sidenavelements[navItem.index ?? i]}\n              />\n            {:else if navItem.type === 'menu'}\n              <SideNavMenu\n                icon={navItem.icon ?? undefined}\n                text={navItem.group}\n                expanded={expandedNav}\n              >\n                {#each navItem.items ?? [] as groupItem}\n                  <SideNavMenuItem\n                    text={groupItem.navTitle}\n                    href=\"{base}{groupItem.href}\"\n                    isSelected={$page.url.pathname === base + groupItem.href}\n                    on:click={closeNav}\n                  />\n                {/each}\n              </SideNavMenu>\n            {/if}\n          {/each}\n        </SideNavItems>\n      </SideNav>\n    </dialog>\n  {/if}\n  {#if showSiteMap && hasNav}\n    <SiteMap open={sitemapOpen} nav={processedNavItems} on:close={() => { sitemapOpen = false }} />\n  {/if}\n  <Modal\n   bind:open={$confirmationStore.showing}\n   on:click:button--primary={() => { confirmationStore.onConfirm() }}\n   on:click:button--secondary={() => { confirmationStore.onCancel() }}\n   on:close={() => { confirmationStore.onCancel() }}\n   modalHeading={$confirmationStore.title}\n   primaryButtonText={$confirmationStore.yesText}\n   secondaryButtonText={$confirmationStore.noText}\n   danger={$confirmationStore.danger}>\n    {#if $confirmationStore.html}\n      {@html $confirmationStore.content}\n    {:else}\n      {$confirmationStore.content}\n    {/if}\n  </Modal>\n  <UserImpersonation {impersonate} {userProfile} environment={overlayText} bind:impersonateOpen />\n  <!-- the automatic navigation loading bar drives and positions itself -->\n  {#if loadingBar}\n    <LoadingBar {hasTitle} label={loadingBarLabel} />\n  {/if}\n  <main id=\"main-content\" class=\"bx--content wrapper\" class:no-loading-bar={!loadingBar} bind:this={mainelement}>\n    <slot />\n  </main>\n\n</LayoutBase>\n\n<style>\nmain.bx--content {\n  padding-block: 16px;\n}\n\nheader.relative {\n  position: relative;\n}\n\nheader.bx--header ~ .bx--content {\n  margin-top: 0;\n}\n\nheader.bx--header.fixed + .impersonation-warning + .bx--content {\n  margin-top: 3rem;\n}\n\nheader.bx--header.fixed + .impersonation-warning.open + .bx--content {\n  margin-top: 6rem;\n}\n\n/* Loading bar turned off and no title block: nothing else clears the fixed\n   header, so main takes the clearance itself. With the bar on, its wrapper is\n   the first in-flow element and carries the (measured) clearance instead. */\nheader.bx--header.fixed:not(:has(~ .breadcrumbs)) ~ main.no-loading-bar {\n  margin-top: 3rem;\n}\n\nheader.bx--header.fixed:not(:has(~ .breadcrumbs)) ~ .impersonation-warning.open ~ main.no-loading-bar {\n  margin-top: 6rem;\n}\n\n.impersonation-warning {\n  padding: 0;\n  z-index: 10;\n}\n\n.impersonation-warning.fixed {\n  top: 0;\n  width: 100%;\n  margin-top: 3rem;\n}\n\n:global(.impersonation-warning .bx--inline-notification) {\n  max-width: 100%;\n  width: 100%;\n  margin-top: 0;\n  margin-bottom: 0;\n}\n:global(.impersonation-warning .bx--inline-notification .bx--tooltip__trigger svg) {\n  fill: white;\n}\n\n.breadcrumbs {\n  background-color: var(--cds-ui-01, #f4f4f4);\n  border-bottom: 2px solid var(--cds-ui-03, #D9D9D9);\n  width: 100%;\n  padding-block: 4px;\n}\n\n.overlayTextContainer {\n  position: absolute;\n  z-index: -1;\n}\n\n/* Side Navigation */\n.side-nav :global(.bx--side-nav__navigation) {\n  box-shadow: 4px 2px 4px 0px rgba(0, 0, 0, 0.15);\n  padding-block-end: 48px;\n}\n\n.side-nav :global(ul.bx--side-nav__items) {\n  background-color: var(--nav-menu-bg);\n}\n\n.side-nav :global(ul.bx--side-nav__items .bx--side-nav__submenu-title),\n.side-nav :global(ul.bx--side-nav__items .bx--side-nav__link-text) {\n  transition: color 0.125s var(--ease-1);\n}\n\n.side-nav-close {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 3rem;\n  height: 3rem;\n}\n.header-panel-link-meta-wrap {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  overflow: hidden;\n}\n\n.profile-link-wrap {\n  flex: 1;\n  overflow-x: hidden;\n  overflow-y: auto;\n  min-height: 0;\n}\n.meta-info {\n\n  margin-block:1rem;\n  flex-shrink: 0;\n}\n\nhr.divider {\n  border: none;\n  height: 3px;\n  background-color: var(--cds-ui-03);\n}\n.side-nav-version {\n  padding: 1rem;\n  color: var(--cds-text-secondary);\n}\n\n.profile-dialog {\n  position: fixed;\n  width: 16rem;\n  height: 100%;\n  background-color: inherit;\n  margin: 0;\n  padding: 0;\n  top: 3rem;\n  right: 0;\n  bottom: 0;\n  left: auto;\n  border: none;\n  overflow-y: auto;\n}\n\n.profile-close {\n  position: fixed;\n  top: 0;\n  right: 0;\n  width: 3rem;\n  height: 3rem;\n}\n\n/* Header Panel */\nheader :global(.bx--header__name) {\n  padding-right: 0;\n}\n\nheader :global(.bx--header-panel) {\n  background-color: var(--profile-menu-bg);\n}\n\nheader :global(.bx--header-panel--expanded) {\n  box-shadow: -4px 4px 4px 0px rgba(0, 0, 0, 0.15);\n   border: 1px solid var(--cds-ui-03, #d9d9d9);\n   border-top:none;\n}\n\nheader :global(.bx--header-panel a) {\n  /* color: rgba(0,0,0,0.5); */\n  transition: color 0.125s var(--ease-1);\n}\n\nheader :global(.bx--header-panel a:hover) {\n  background-color: var(--cds-hover-ui, #e5e5e5);\n  color: var(--cds-text-01, #1a1a1a);\n}\n\nheader :global(.bx--header-panel  .bx--switcher__item-link) {\n  display: flex;\n  align-content: flex-start;\n}\n\nheader :global(.bx--header-panel .bx--switcher__item svg) {\n  flex-shrink: 0;\n  height:16px;\n  width:16px;\n  margin-right:unset;\n  margin-block-start:2px;\n}\n\nheader :global(.bx--header-panel .bx--switcher__item-link:has(svg)) {\n  flex-direction: row-reverse;\n  justify-content: space-between;\n  gap: 5px;\n}\n\nheader :global(.bx--header-panel .bx--switcher__item-link:not(:has(svg)))  {\n  padding-inline-end:40px;\n}\n\nheader :global(ul.bx--switcher__item) {\n  height: 100%;\n}\nheader :global(.bx--switcher__item) {\n  height: unset;\n}\n\nheader :global(.bx--switcher__item-link:active) {\n    background: var(--cds-active-ui, #d6d6d6);\n    color: var(--cds-text-01, #1a1a1a);\n}\nheader :global(.bx--switcher__item-link),\nheader :global(.bx--header-panel-divider) {\n  height: unset;\n  color: var(--cds-text-01, #1a1a1a);\n  font-size: var(--cds-productive-heading-01-font-size, 0.875rem) !important;\n  font-weight: var(--cds-productive-heading-01-font-weight, 600);\n  line-height: var(--cds-productive-heading-01-line-height, 1.28572) !important;\n  letter-spacing: var(--cds-productive-heading-01-letter-spacing, 0.16px) !important;\n}\n\nheader :global(.bx--switcher__item--divider ) {\n  background: var(--cds-charcoal-300, #BFBFBF);\n}\n\nheader :global(.bx--switcher__item-link) {\n  font-weight: 400;\n}\n\nheader :global(.bx--switcher__item-link:focus) {\n  outline: 2px solid var(--cds-focus, #0f62fe);\n  outline-offset: -2px;\n}\n\n.appname {\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow-wrap: anywhere;\n}\n\n.companyname-reverseweight {\n  font-weight: bold;\n}\n\n.appname-reverseweight {\n  font-weight: normal;\n}\n\nheader :global(.bx--header__action-text) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n@media (max-width: 320px) {\n  header :global(.bx--header__menu-toggle:not(.bx--header__menu-toggle__hidden)~.bx--header__name) {\n    padding-left: 0.2rem;\n  }\n}\n\n.user-profile {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  margin-top: 1rem;\n  gap: 10px;\n  padding: .375rem var(--cds-spacing-05, 1rem);\n}\n\n.user-profile-icon {\n  background-color: var(--maroon);\n  border-radius: 200px;\n  width: 40px;\n  height: 40px;\n  padding: 10px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.user-profile-icon.has-image {\n  padding: 0;\n  overflow: hidden;\n  background-color: transparent;\n}\n\n.user-profile-image {\n  width: 100%;\n  height: 100%;\n  -o-object-fit: cover;\n     object-fit: cover;\n}\n\n.header-profile-image {\n  width: 25px;\n  height: 25px;\n  border-radius: 50%;\n  -o-object-fit: cover;\n     object-fit: cover;\n}\n\n.header-profile-initials {\n  width: 25px;\n  height: 25px;\n  border-radius: 50%;\n  background-color: white;\n  color: var(--maroon);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 0.75rem;\n  font-weight: 600;\n  text-transform: uppercase;\n  line-height: 1;\n}\n\n/* Prevent button width change when switching between profile icon (25px) and close icon (20px) */\nheader :global(.bx--header__action--text) {\n  min-width: 59px;\n}\n\n.user-profile-initials {\n  color: white;\n  font-size: 16px;\n  font-weight: 600;\n  text-transform: uppercase;\n  line-height: 1;\n}\n\n.user-profile-details {\n  color: var(--cds-ui-04);\n}\n.user-profile-names {\n  color: var(--cds-text-01);\n}\n\n.impersonation-warning :global(.bx--tooltip__label) {\n  vertical-align: middle;\n}\n\n</style>\n"],"file":"CzGFhuiJ.mjs"}