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H,OAAS,KAO5D,KANFyH,EAA2B0gD,GACzBv7C,EACAnF,GACA,KAIA,IAAMA,EACN,CACA,GACEk+C,KACC4C,EACD,CACA37C,EAAK07C,4BAA8BF,EACnCxC,IACEwC,EACFlB,EAAa,EACb,MAAMlmD,CACR,CACAonD,EAAsBl3B,GACtBA,GAAsCg2B,EACtC,OAASkB,IACN,OAASl3B,GACLA,GAAsCk3B,EACvCl3B,GAAoC7qB,KAAK8qB,MACvCD,GACAk3B,GAEV,CACAlB,EAAaz/C,CACf,CAEA,GADA2gD,GAAsB,EAClB,IAAMlB,EAAY,QACxB,CACF,CACA,GAAI,IAAMA,EAAY,CACpBP,GAAkBnH,EAAe,GACjCoH,GAAkBpH,EAAe/yC,EAAO,GAAG,GAC3C,KACF,CACAzL,EAAG,CAGD,OAFAgmD,EAAkBxH,EAClB4I,EAAsBlB,GAEpB,KAAK,EACL,KAAK,EACH,MAAMxmD,MAAMtB,EAAuB,MACrC,KAAK,EACH,IAAa,QAARqN,KAAqBA,IAAkB,SAARA,KAAsBA,EACxD,MACJ,KAAK,EACHm6C,GACEI,EACAv6C,EACAijC,IACC+V,IAEH,MAAMzkD,EACR,KAAK,EACHkwB,GAAsC,KACtC,MACF,KAAK,EACL,KAAK,EACH,MACF,QACE,MAAMxwB,MAAMtB,EAAuB,MAEvC,IACW,SAARqN,KAAsBA,GAEvB,IADEy6C,EAAavG,GAA+B,IAAMh2C,MAFtD,CAWE,GANAi8C,GACEI,EACAv6C,EACAijC,IACC+V,IAEC,IAAM94C,GAAaq6C,EAAiB,GAAG,GAAK,MAAMhmD,EACtDolD,GAAsB35C,EACtBu6C,EAAgBwB,cAAgBC,GAC9BC,GAAsBjmB,KACpB,KACAukB,EACAD,EACA71B,GACA+0B,GACAF,GACAt5C,EACAijC,GACAkW,GACAlS,GACA+R,GACA2C,EACA,aACC,EACD,GAEFlB,EAGJ,MACAwB,GACE1B,EACAD,EACA71B,GACA+0B,GACAF,GACAt5C,EACAijC,GACAkW,GACA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GAC/B,MACF,IAAK,UACL,IAAK,YACH,IAAOb,EACH+5C,EAAW3kC,aAAavU,EAAK,KAC7B,IAAOb,GACL,MAAQA,GACR,mBAAsBA,GACtB,iBAAoBA,EACpB+5C,EAAW3kC,aAAavU,EAAKb,GAC7B+5C,EAAW9kC,gBAAgBpU,GACjC,MACF,IAAK,OACL,IAAK,OACL,IAAK,OACL,IAAK,OACH,MAAQb,GACR,mBAAsBA,GACtB,iBAAoBA,IACnB47D,MAAM57D,IACP,GAAKA,EACD+5C,EAAW3kC,aAAavU,EAAKb,GAC7B+5C,EAAW9kC,gBAAgBpU,GAC/B,MACF,IAAK,UACL,IAAK,QACH,MAAQb,GACR,mBAAsBA,GACtB,iBAAoBA,GACpB47D,MAAM57D,GACF+5C,EAAW9kC,gBAAgBpU,GAC3Bk5C,EAAW3kC,aAAavU,EAAKb,GACjC,MACF,IAAK,UACHyyB,GAA0B,eAAgBsnB,GAC1CtnB,GAA0B,SAAUsnB,GACpCjlC,GAAqBilC,EAAY,UAAW/5C,GAC5C,MACF,IAAK,eACHsV,GACEykC,EACA,+BACA,gBACA/5C,GAEF,MACF,IAAK,eACHsV,GACEykC,EACA,+BACA,gBACA/5C,GAEF,MACF,IAAK,YACHsV,GACEykC,EACA,+BACA,aACA/5C,GAEF,MACF,IAAK,YACHsV,GACEykC,EACA,+BACA,aACA/5C,GAEF,MACF,IAAK,aACHsV,GACEykC,EACA,+BACA,cACA/5C,GAEF,MACF,IAAK,YACHsV,GACEykC,EACA,+BACA,aACA/5C,GAEF,MACF,IAAK,UACHsV,GACEykC,EACA,uCACA,WACA/5C,GAEF,MACF,IAAK,UACHsV,GACEykC,EACA,uCACA,WACA/5C,GAEF,MACF,IAAK,WACHsV,GACEykC,EACA,uCACA,YACA/5C,GAEF,MACF,IAAK,KACH8U,GAAqBilC,EAAY,KAAM/5C,GACvC,MACF,IAAK,YACL,IAAK,cACH,OACF,QACE,GACI,EAAIa,EAAIsB,SACT,MAAQtB,EAAI,IAAM,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EAAOC,KAAMjD,GACvCsD,EAAUV,EAAcI,EAAOG,GAAInD,GACzC,MAAO,mBAAmBgD,EAAOI,WAAWC,SAAiBC,SAC9D,CCVA,SAASC,EAAKj2D,EAAOizD,GACpB,GAAqB,iBAAVjzD,GAAsBizD,EAAQ,GAAKA,EAAQ,EAAG,MAAO,mBAChE,GAAIjzD,EAAMsuC,WAAW,QAAS,MAAO,sBAAsBtuC,kBAAoC,KAAb,EAAIizD,OACtF,GAAIjzD,EAAMsuC,WAAW,SACpB,OAAItuC,EAAMpY,SAAS,KAAaoY,EAAMlY,QAAQ,mBAAoB,KAAKmrE,MAChEjzD,EAAMlY,QAAQ,IAAK,MAAMmrE,MAEjC,MAAM,EAAEl3E,EAAC,EAAEo3E,EAAC,EAAE/zE,GAAM2zE,EAAO/yD,GAC3B,MAAO,QAAQjkB,MAAMo3E,MAAM/zE,MAAM6zE,IAClC,CACA,MAAMA,EAAQgD,ECRRC,EAAsB,uHACtBC,EAAgB,CACrBC,MAAO,EACPC,eAAe,EACfC,UAAW,OACX7B,MAAO,OACPC,MAAO,OACPK,OCVsB,CACtBlC,KAAM,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDmC,KAAM,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDuB,IAAK,CACJ,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,KAAM,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,MAAO,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,OAAQ,CACP,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,OAAQ,CACP,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,KAAM,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEDC,KAAM,CACL,UACA,UACA,UACA,UACA,UACA,UACA,UACA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,MAG5C,CAEe,SAASkhL,KACtB,OACE,WAACD,GAAS,WACR,WAAC,GAAM,KAGb,C1LrE2B,oBAAdvrI,WAA+B,kBAAmBA,WAC7D77C,OAAOiJ,iBAAiB,OAAQ,KAC9B4yC,UAAU8uG,cAAc28B,SAAS,SAAU,CAAEv4H,MAAO,MAAOj1D,MAAM,U4LGrE,MAAM,GAAOgP,SAAS2vG,eAAe,QACjC,KACF,MAAAt9C,YAAW,IAAMtlE,QAAO,WAACwxL,GAAG,I","sources":["webpack://firmin-mail/webpack/bootstrap","webpack://firmin-mail/webpack/runtime/concatenation wrap","webpack://firmin-mail/webpack/runtime/create fake namespace object","webpack://firmin-mail/webpack/runtime/define property getters","webpack://firmin-mail/webpack/runtime/hasOwnProperty shorthand","webpack://firmin-mail/webpack/runtime/make namespace object","webpack://firmin-mail/webpack/runtime/nonce","webpack://firmin-mail/./node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/cjs/react-dom-client.production.js","webpack://firmin-mail/./node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/cjs/react-dom.production.js","webpack://firmin-mail/./node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/client.js","webpack://firmin-mail/./node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/index.js","webpack://firmin-mail/./node_modules/.pnpm/react@19.3.1/node_modules/react/cjs/react-jsx-runtime.production.js","webpack://firmin-mail/./node_modules/.pnpm/react@19.3.1/node_modules/react/cjs/react.production.js","webpack://firmin-mail/./node_modules/.pnpm/react@19.3.1/node_modules/react/index.js","webpack://firmin-mail/./node_modules/.pnpm/react@19.3.1/node_modules/react/jsx-runtime.js","webpack://firmin-mail/./node_modules/.pnpm/scheduler@0.28.0/node_modules/scheduler/cjs/scheduler.production.js","webpack://firmin-mail/./node_modules/.pnpm/scheduler@0.28.0/node_modules/scheduler/index.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/filter-props/filter-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/units-converters/rem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/virtual-color/virtual-color.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/rgba/rgba.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/default-theme.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/default-colors.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/deep-merge/deep-merge.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/merge-mantine-theme/merge-mantine-theme.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/shallow-equal/shallow-equal.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-style/resolve-style.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-style.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-transformed-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/factory/factory.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/factory/polymorphic-factory.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/is-number-like/is-number-like.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/keys/keys.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/camel-to-kebab-case/camel-to-kebab-case.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/extract-style-props/extract-style-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/radius-resolver/radius-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/get-box-mod/get-box-mod.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/get-box-style/get-box-style.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/Box.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/InlineStyles/hash-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Center/Center.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Center/Center.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-size/get-size.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Loader/Loader.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Loader/loaders/Bars.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Loader/loaders/Dots.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Loader/loaders/Oval.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Loader/Loader.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-scheme-managers/is-mantine-color-scheme.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-scheme-managers/local-storage-manager.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineClasses/MantineClasses.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/units-converters/px.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/convert-css-variables/css-variables-object-to-string.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/get-css-color-variables.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/remove-default-variables.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineCssVariables/get-merged-variables.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/MantineProvider.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/use-respect-reduce-motion/use-respect-reduce-motion.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/utils/random-id/random-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/notifications.store.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+store@9.8.2_react@19.3.1/node_modules/@mantine/store/esm/store.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/get-grouped-notifications/get-grouped-notifications.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/get-notification-state-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-drag/use-drag.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-did-update/use-did-update.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/Box/get-style-object/get-style-object.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/CloseButton/CloseIcon.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/CloseButton/CloseButton.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/CloseButton/CloseButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Notification/Notification.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Notification/Notification.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/NotificationContainer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/get-auto-close/get-auto-close.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/Notifications.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-force-update/use-force-update.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.mjs","webpack://firmin-mail/./node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://firmin-mail/./node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://firmin-mail/./node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/config.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/utils/reflow.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/Transition.js","webpack://firmin-mail/./node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/utils/ChildMapping.js","webpack://firmin-mail/./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-transition-group/esm/TransitionGroup.js","webpack://firmin-mail/./node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-default-z-index/get-default-z-index.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Portal/Portal.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Portal/OptionalPortal.mjs","webpack://firmin-mail/./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js","webpack://firmin-mail/./node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js","webpack://firmin-mail/./node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js","webpack://firmin-mail/./node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js","webpack://firmin-mail/./node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js","webpack://firmin-mail/./node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js","webpack://firmin-mail/./node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js","webpack://firmin-mail/./node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js","webpack://firmin-mail/./node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js","webpack://firmin-mail/./node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js","webpack://firmin-mail/./node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+notifications@9.8.2_@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@ty_b9988b62ebf4d3002c819bf3684adc82/node_modules/@mantine/notifications/esm/Notifications.mjs","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/subscribable.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/focusManager.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/timeoutManager.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/notifyManager.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/utils.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/environmentManager.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/removable.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/onlineManager.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/retryer.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/mutation.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/mutationCache.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/query.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/queryCache.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/queryObserver.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/useQuery.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/suspense.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+react-query@5.108.4_@types+react@19.2.14_react@19.3.1/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js","webpack://firmin-mail/./django_project/firminadmin/src/theme.js","webpack://firmin-mail/./django_project/portal/src/i18n.js","webpack://firmin-mail/./django_project/portal/src/api.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Paper/Paper.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Paper/Paper.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Stack/Stack.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Stack/Stack.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Alert/Alert.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-id/use-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Alert/Alert.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Text/Text.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Text/Text.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Transition/transitions.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Transition/get-transition-styles/get-transition-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Transition/Transition.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Transition/use-transition.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Button/Button.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Button/ButtonGroup/ButtonGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Button/ButtonGroupSection/ButtonGroupSection.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Button/Button.mjs","webpack://firmin-mail/./django_project/portal/src/Brand.js","webpack://firmin-mail/./django_project/portal/src/ConfirmPage.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Title/get-title-size.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Title/Title.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Title/Title.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/Input.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputClearButton/InputClearButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputClearSection/InputClearSection.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputWrapper.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/Input.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputDescription/InputDescription.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputError/InputError.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputLabel/InputLabel.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputPlaceholder/InputPlaceholder.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputSuccess/InputSuccess.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputWrapper/get-input-offsets/get-input-offsets.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/InputWrapper/InputWrapper.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/Input.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/InputBase/InputBase.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Input/use-input-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/TextInput/TextInput.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Group/Group.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Group/Group.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Group/filter-falsy-children/filter-falsy-children.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/PinInput/create-pin-array/create-pin-array.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/PinInput/PinInput.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/PinInput/PinInput.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Anchor/Anchor.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Anchor/Anchor.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/context.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/Icon.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/mail.mjs","webpack://firmin-mail/./django_project/portal/src/Login.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/find-element-ancestor/find-element-ancestor.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/DirectionProvider/DirectionProvider.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/Floating/get-floating-position/get-floating-position.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Overlay/Overlay.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Overlay/Overlay.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/create-safe-context/create-safe-context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/Popover.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/is-element/is-element.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-single-element-child/get-single-element-child.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/create-event-handler/create-event-handler.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-long-press/use-long-press.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/Floating/use-context-menu-handlers.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/PopoverContextMenu/PopoverContextMenu.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/Popover.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/noop/noop.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/close-on-escape/close-on-escape.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/get-arrow-position-styles.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/FloatingArrow.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/VisuallyHidden/VisuallyHidden.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/VisuallyHidden/VisuallyHidden.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/FocusTrap/FocusTrap.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/PopoverDropdown/PopoverDropdown.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-ref-prop/get-ref-prop.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/PopoverTarget/PopoverTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+react@0.27.20_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs","webpack://firmin-mail/./node_modules/.pnpm/@floating-ui+react@0.27.20_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react/dist/floating-ui.react.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/use-popover.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Popover/Popover.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/Menu.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuCheckboxGroup/MenuCheckboxGroup.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuCheckboxGroup/MenuCheckboxGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/Menu.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckIcon.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSub/MenuSub.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSelectableItem/MenuSelectableItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuCheckboxItem/MenuCheckboxItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuContextMenu/MenuContextMenu.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuDivider/MenuDivider.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/use-menu-type-ahead.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuDropdown/MenuDropdown.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuItem/MenuItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuLabel/MenuLabel.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuRadioGroup/MenuRadioGroup.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuRadioGroup/MenuRadioGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioIcon.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuRadioItem/MenuRadioItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSearch/MenuSearch.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSubDropdown/MenuSubDropdown.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Accordion/AccordionChevron.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSubItem/MenuSubItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSubTarget/MenuSubTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuSub/MenuSub.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/MenuTarget/MenuTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Menu/Menu.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/Floating/use-delayed-hover.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-context-item-index/get-context-item-index.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ActionIcon/ActionIconGroup/ActionIconGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Container/Container.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Container/Container.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Transition/get-transition-props/get-transition-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/TooltipGroup/TooltipGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/use-tooltip.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/building-complex.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/check.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/plus.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/user-round.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/globe.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/log-out.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/inbox.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/calendar-clock.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/settings.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/message-circle.mjs","webpack://firmin-mail/./django_project/portal/src/pwa.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/Modal.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBase.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBase.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseBody.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/use-modal-body-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/Modal.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalBody.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseCloseButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalCloseButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseContent.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/NativeScrollArea.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalContent.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseHeader.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalHeader.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/use-modal-transition.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseOverlay.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalOverlay.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/use-resize-observer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-ratio.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-size.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/linear-scale.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-thumb-offset-from-scroll.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/is-scrolling-within-scrollbar-bounds.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/to-int.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/compose-event-handlers.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/utils/use-callback-ref/use-callback-ref.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-debounced-callback/use-debounced-callback.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollbarX.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollbarY.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/get-scroll-position-from-pointer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarAuto.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarHover.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarScroll.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/utils/add-unlinked-scroll-listener.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ScrollArea/ScrollArea.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/use-modal.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/use-lock-scroll.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-window-event/use-window-event.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBase.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalRoot.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalStack.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/ModalBaseTitle.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/ModalBase/use-modal-title-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/ModalTitle.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Modal/Modal.mjs","webpack://firmin-mail/./django_project/portal/src/AddFirm.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/Drawer.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/Drawer.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerBody.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerCloseButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerContent.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerHeader.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerOverlay.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerRoot.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerStack.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/DrawerTitle.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Drawer/Drawer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/get-options-lockup/get-options-lockup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/find-element-in-shadow-dom/find-element-in-shadow-dom.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/use-combobox/use-combobox.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/use-combobox/get-index/get-index.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/Combobox.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxChevron/ComboboxChevron.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/Combobox.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxClearButton/ComboboxClearButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxEmpty/ComboboxEmpty.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/use-combobox-target-props/use-combobox-target-props.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxFooter/ComboboxFooter.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxGroup/ComboboxGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxHeader/ComboboxHeader.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxHiddenInput/ComboboxHiddenInput.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxOption/ComboboxOption.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxOptions/ComboboxOptions.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxSearch/ComboboxSearch.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/Combobox.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/is-options-group.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/default-options-filter.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/validate-options.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/OptionsDropdown.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/OptionsDropdown/is-empty-combobox-data.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Select/Select.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/get-combobox-label-id/get-combobox-label-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-previous/use-previous.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/is-external-input-change/is-external-input-change.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Combobox/get-options-lockup/get-option-by-label.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Textarea/Autosize.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Textarea/Textarea.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-env/get-env.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Divider/Divider.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Divider/Divider.mjs","webpack://firmin-mail/./django_project/portal/src/Contact.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Badge/Badge.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Badge/Badge.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/utils/get-safe-id/get-safe-id.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/Tabs.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/Tabs.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/TabsList/TabsList.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/TabsPanel/TabsPanel.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/TabsTab/TabsTab.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Tabs/Tabs.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/Pagination.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/Pagination.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationControl/PaginationControl.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/Pagination.icons.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationDots/PaginationDots.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationEdges/PaginationEdges.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationItems/PaginationItems.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationLabel/PaginationLabel.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-pagination/use-pagination.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/PaginationRoot/PaginationRoot.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Pagination/Pagination.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/eye.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/file-scan.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/shredder.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/CopyButton/CopyButton.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+hooks@9.8.2_react@19.3.1/node_modules/@mantine/hooks/esm/use-clipboard/use-clipboard.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Image/Image.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Image/Image.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/Table.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/Table.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/Table.components.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/TableDataRenderer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/TableScrollContainer.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Table/Table.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/copy.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-check.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/truck.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/send.mjs","webpack://firmin-mail/./django_project/portal/src/Forwarding.js","webpack://firmin-mail/./django_project/portal/src/MailPage.js","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/file-text.mjs","webpack://firmin-mail/./django_project/portal/src/RenewalPage.js","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/lock.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/List/List.context.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/List/List.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/List/ListItem/ListItem.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/List/List.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/InlineInput/InlineInput.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/InlineInput/InlineInput.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/utils/InputsGroupFieldset/InputsGroupFieldset.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Switch/SwitchGroup/SwitchGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Switch/Switch.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Switch/Switch.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/share.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/square-plus.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/download.mjs","webpack://firmin-mail/./django_project/portal/src/AppSettings.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioGroup/RadioGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioCard/RadioCard.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioCard/RadioCard.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/RadioIndicator/RadioIndicator.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/Radio.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Radio/Radio.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/map-pin.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/arrow-up.mjs","webpack://firmin-mail/./node_modules/.pnpm/lucide-react@1.79.0_@types+react@19.2.14_react@19.3.1/node_modules/lucide-react/dist/esm/icons/trash.mjs","webpack://firmin-mail/./django_project/portal/src/AddressEditor.js","webpack://firmin-mail/./django_project/portal/src/DeliverySettings.js","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckboxCard/CheckboxCard.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckboxCard/CheckboxCard.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/Checkbox.module.mjs","webpack://firmin-mail/./node_modules/.pnpm/@mantine+core@9.8.2_@mantine+hooks@9.8.2_react@19.3.1__@types+react@19.2.14_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@mantine/core/esm/components/Checkbox/Checkbox.mjs","webpack://firmin-mail/./django_project/portal/src/EmailsSettings.js","webpack://firmin-mail/./django_project/portal/src/SettingsPage.js","webpack://firmin-mail/./django_project/portal/src/Shell.js","webpack://firmin-mail/./django_project/portal/src/App.js","webpack://firmin-mail/./node_modules/.pnpm/@tanstack+query-core@5.108.4/node_modules/@tanstack/query-core/build/modern/queryClient.js","webpack://firmin-mail/./django_project/portal/src/index.js"],"sourcesContent":["// The module cache\nconst __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tconst cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tconst module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// wrap a concatenated module body as a lazy, memoized accessor; mod is\n// set before the body runs so re-entrant calls (require cycles) observe\n// the partial exports like Node.js\n__webpack_require__.cw = (body) => {\n\tvar mod;\n\treturn () => {\n\t\tif (body) {\n\t\t\tvar fn = body;\n\t\t\tbody = 0;\n\t\t\tmod = { exports: {} };\n\t\t\tfn.call(mod.exports, mod, mod.exports);\n\t\t}\n\t\treturn mod.exports;\n\t};\n};","const getProto = Object.getPrototypeOf;\nlet leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tconst ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tconst def = Object.create(null);\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter/value functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tObject.defineProperties(exports, { [Symbol.toStringTag]: { value: 'Module' }, __esModule: { value: true } });\n};","__webpack_require__.nc = undefined;","/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\nvar Scheduler = require(\"scheduler\"),\n  React = require(\"react\"),\n  ReactDOM = require(\"react-dom\");\nfunction formatProdErrorMessage(code) {\n  var url = \"https://react.dev/errors/\" + code;\n  if (1 < arguments.length) {\n    url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n    for (var i = 2; i < arguments.length; i++)\n      url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n  }\n  return (\n    \"Minified React error #\" +\n    code +\n    \"; visit \" +\n    url +\n    \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n  );\n}\nfunction isValidContainer(node) {\n  return !(\n    !node ||\n    (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n  );\n}\nfunction getNearestMountedFiber(fiber) {\n  for (var node = fiber, nextNode = node; nextNode && !nextNode.alternate; )\n    (node = nextNode),\n      0 !== (node.flags & 4098) && (fiber = node.return),\n      (nextNode = node.return);\n  for (; node.return; ) node = node.return;\n  return 3 === node.tag ? fiber : null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n  if (13 === fiber.tag) {\n    var suspenseState = fiber.memoizedState;\n    null === suspenseState &&\n      ((fiber = fiber.alternate),\n      null !== fiber && (suspenseState = fiber.memoizedState));\n    if (null !== suspenseState) return suspenseState.dehydrated;\n  }\n  return null;\n}\nfunction getActivityInstanceFromFiber(fiber) {\n  if (31 === fiber.tag) {\n    var activityState = fiber.memoizedState;\n    null === activityState &&\n      ((fiber = fiber.alternate),\n      null !== fiber && (activityState = fiber.memoizedState));\n    if (null !== activityState) return activityState.dehydrated;\n  }\n  return null;\n}\nfunction assertIsMounted(fiber) {\n  if (getNearestMountedFiber(fiber) !== fiber)\n    throw Error(formatProdErrorMessage(188));\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n  var alternate = fiber.alternate;\n  if (!alternate) {\n    alternate = getNearestMountedFiber(fiber);\n    if (null === alternate) throw Error(formatProdErrorMessage(188));\n    return alternate !== fiber ? null : fiber;\n  }\n  for (var a = fiber, b = alternate; ; ) {\n    var parentA = a.return;\n    if (null === parentA) break;\n    var parentB = parentA.alternate;\n    if (null === parentB) {\n      b = parentA.return;\n      if (null !== b) {\n        a = b;\n        continue;\n      }\n      break;\n    }\n    if (parentA.child === parentB.child) {\n      for (parentB = parentA.child; parentB; ) {\n        if (parentB === a) return assertIsMounted(parentA), fiber;\n        if (parentB === b) return assertIsMounted(parentA), alternate;\n        parentB = parentB.sibling;\n      }\n      throw Error(formatProdErrorMessage(188));\n    }\n    if (a.return !== b.return) (a = parentA), (b = parentB);\n    else {\n      for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {\n        if (child$0 === a) {\n          didFindChild = !0;\n          a = parentA;\n          b = parentB;\n          break;\n        }\n        if (child$0 === b) {\n          didFindChild = !0;\n          b = parentA;\n          a = parentB;\n          break;\n        }\n        child$0 = child$0.sibling;\n      }\n      if (!didFindChild) {\n        for (child$0 = parentB.child; child$0; ) {\n          if (child$0 === a) {\n            didFindChild = !0;\n            a = parentB;\n            b = parentA;\n            break;\n          }\n          if (child$0 === b) {\n            didFindChild = !0;\n            b = parentB;\n            a = parentA;\n            break;\n          }\n          child$0 = child$0.sibling;\n        }\n        if (!didFindChild) throw Error(formatProdErrorMessage(189));\n      }\n    }\n    if (a.alternate !== b) throw Error(formatProdErrorMessage(190));\n  }\n  if (3 !== a.tag) throw Error(formatProdErrorMessage(188));\n  return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiberImpl(node) {\n  var tag = node.tag;\n  if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;\n  for (node = node.child; null !== node; ) {\n    tag = findCurrentHostFiberImpl(node);\n    if (null !== tag) return tag;\n    node = node.sibling;\n  }\n  return null;\n}\nfunction traverseVisibleInstancesAndTextInstances(\n  child,\n  searchWithinHosts,\n  fn,\n  a,\n  b,\n  c\n) {\n  for (; null !== child; ) {\n    if (\n      ((5 === child.tag || 27 === child.tag || 6 === child.tag) &&\n        fn(child, a, b, c)) ||\n      ((22 !== child.tag || null === child.memoizedState) &&\n        (searchWithinHosts || (5 !== child.tag && 27 !== child.tag)) &&\n        traverseVisibleInstancesAndTextInstances(\n          child.child,\n          searchWithinHosts,\n          fn,\n          a,\n          b,\n          c\n        ))\n    )\n      return !0;\n    child = child.sibling;\n  }\n  return !1;\n}\nfunction getFragmentParentInstanceOrContainerFiber(fiber) {\n  for (fiber = fiber.return; null !== fiber; ) {\n    if (3 === fiber.tag || 5 === fiber.tag || 27 === fiber.tag) return fiber;\n    fiber = fiber.return;\n  }\n  return null;\n}\nfunction fiberIsPortaledIntoHost(fiber) {\n  var foundPortalParent = !1;\n  for (fiber = fiber.return; null !== fiber; ) {\n    4 === fiber.tag && (foundPortalParent = !0);\n    if (3 === fiber.tag || 5 === fiber.tag || 27 === fiber.tag) break;\n    fiber = fiber.return;\n  }\n  return foundPortalParent;\n}\nfunction getFragmentInstanceOrTextInstanceSiblings(fiber) {\n  var result = [null, null],\n    parentHostFiber = getFragmentParentInstanceOrContainerFiber(fiber);\n  if (null === parentHostFiber) return result;\n  findFragmentInstanceOrTextInstanceSiblings(\n    result,\n    fiber,\n    parentHostFiber.child,\n    { foundSelf: !1 }\n  );\n  return result;\n}\nfunction findFragmentInstanceOrTextInstanceSiblings(\n  result,\n  self,\n  child,\n  state\n) {\n  for (; null !== child; ) {\n    if (child === self) state.foundSelf = !0;\n    else if (5 === child.tag || 27 === child.tag || 6 === child.tag) {\n      if (state.foundSelf) return (result[1] = child), !0;\n      result[0] = child;\n    } else if (\n      (22 !== child.tag || null === child.memoizedState) &&\n      findFragmentInstanceOrTextInstanceSiblings(\n        result,\n        self,\n        child.child,\n        state\n      )\n    )\n      return !0;\n    child = child.sibling;\n  }\n  return !1;\n}\nfunction getInstanceFromHostFiber(fiber) {\n  switch (fiber.tag) {\n    case 5:\n    case 27:\n    case 6:\n      return fiber.stateNode;\n    case 3:\n      return fiber.stateNode.containerInfo;\n    default:\n      throw Error(formatProdErrorMessage(559));\n  }\n}\nvar searchTarget = null,\n  searchBoundary = null;\nfunction isFiberPrecedingCheck(child, target, boundary) {\n  return child === boundary\n    ? !0\n    : child === target\n      ? ((searchTarget = child), !0)\n      : !1;\n}\nfunction isFiberFollowingCheck(child, target, boundary) {\n  return child === boundary\n    ? ((searchBoundary = child), !1)\n    : child === target\n      ? (null !== searchBoundary && (searchTarget = child), !0)\n      : !1;\n}\nfunction getParentForFragmentAncestors(inst) {\n  if (null === inst) return null;\n  do inst = null === inst ? null : inst.return;\n  while (inst && 5 !== inst.tag && 27 !== inst.tag && 3 !== inst.tag);\n  return inst ? inst : null;\n}\nfunction getLowestCommonAncestor(instA, instB, getParent) {\n  for (var depthA = 0, tempA = instA; tempA; tempA = getParent(tempA)) depthA++;\n  tempA = 0;\n  for (var tempB = instB; tempB; tempB = getParent(tempB)) tempA++;\n  for (; 0 < depthA - tempA; ) (instA = getParent(instA)), depthA--;\n  for (; 0 < tempA - depthA; ) (instB = getParent(instB)), tempA--;\n  for (; depthA--; ) {\n    if (instA === instB || (null !== instB && instA === instB.alternate))\n      return instA;\n    instA = getParent(instA);\n    instB = getParent(instB);\n  }\n  return null;\n}\nvar assign = Object.assign,\n  REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n  REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n  REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n  REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n  REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n  REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n  REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n  REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n  REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n  REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n  REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n  REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n  REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nSymbol.for(\"react.scope\");\nvar REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n  REACT_LEGACY_HIDDEN_TYPE = Symbol.for(\"react.legacy_hidden\");\nSymbol.for(\"react.tracing_marker\");\nvar REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\"),\n  REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n  REACT_RECOVERABLE_TYPE = Symbol.for(\"react.recoverable\"),\n  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n  if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n  maybeIterable =\n    (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n    maybeIterable[\"@@iterator\"];\n  return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction getComponentNameFromType(type) {\n  if (null == type) return null;\n  if (\"function\" === typeof type)\n    return type.$$typeof === REACT_CLIENT_REFERENCE\n      ? null\n      : type.displayName || type.name || null;\n  if (\"string\" === typeof type) return type;\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return \"Fragment\";\n    case REACT_PROFILER_TYPE:\n      return \"Profiler\";\n    case REACT_STRICT_MODE_TYPE:\n      return \"StrictMode\";\n    case REACT_SUSPENSE_TYPE:\n      return \"Suspense\";\n    case REACT_SUSPENSE_LIST_TYPE:\n      return \"SuspenseList\";\n    case REACT_ACTIVITY_TYPE:\n      return \"Activity\";\n    case REACT_VIEW_TRANSITION_TYPE:\n      return \"ViewTransition\";\n  }\n  if (\"object\" === typeof type)\n    switch (type.$$typeof) {\n      case REACT_PORTAL_TYPE:\n        return \"Portal\";\n      case REACT_CONTEXT_TYPE:\n        return type.displayName || \"Context\";\n      case REACT_CONSUMER_TYPE:\n        return (type._context.displayName || \"Context\") + \".Consumer\";\n      case REACT_FORWARD_REF_TYPE:\n        var innerType = type.render;\n        type = type.displayName;\n        type ||\n          ((type = innerType.displayName || innerType.name || \"\"),\n          (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n        return type;\n      case REACT_MEMO_TYPE:\n        return (\n          (innerType = type.displayName || null),\n          null !== innerType\n            ? innerType\n            : getComponentNameFromType(type.type) || \"Memo\"\n        );\n      case REACT_LAZY_TYPE:\n        innerType = type._payload;\n        type = type._init;\n        try {\n          return getComponentNameFromType(type(innerType));\n        } catch (x) {}\n    }\n  return null;\n}\nvar isArrayImpl = Array.isArray,\n  ReactSharedInternals =\n    React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n  ReactDOMSharedInternals =\n    ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n  sharedNotPendingObject = {\n    pending: !1,\n    data: null,\n    method: null,\n    action: null\n  },\n  valueStack = [],\n  index = -1;\nfunction createCursor(defaultValue) {\n  return { current: defaultValue };\n}\nfunction pop(cursor) {\n  0 > index ||\n    ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n  index++;\n  valueStack[index] = cursor.current;\n  cursor.current = value;\n}\nvar contextStackCursor = createCursor(null),\n  contextFiberStackCursor = createCursor(null),\n  rootInstanceStackCursor = createCursor(null),\n  hostTransitionProviderCursor = createCursor(null);\nfunction pushHostContainer(fiber, nextRootInstance) {\n  push(rootInstanceStackCursor, nextRootInstance);\n  push(contextFiberStackCursor, fiber);\n  push(contextStackCursor, null);\n  switch (nextRootInstance.nodeType) {\n    case 9:\n    case 11:\n      fiber = (fiber = nextRootInstance.documentElement)\n        ? (fiber = fiber.namespaceURI)\n          ? getOwnHostContext(fiber)\n          : 0\n        : 0;\n      break;\n    default:\n      if (\n        ((fiber = nextRootInstance.tagName),\n        (nextRootInstance = nextRootInstance.namespaceURI))\n      )\n        (nextRootInstance = getOwnHostContext(nextRootInstance)),\n          (fiber = getChildHostContextProd(nextRootInstance, fiber));\n      else\n        switch (fiber) {\n          case \"svg\":\n            fiber = 1;\n            break;\n          case \"math\":\n            fiber = 2;\n            break;\n          default:\n            fiber = 0;\n        }\n  }\n  pop(contextStackCursor);\n  push(contextStackCursor, fiber);\n}\nfunction popHostContainer() {\n  pop(contextStackCursor);\n  pop(contextFiberStackCursor);\n  pop(rootInstanceStackCursor);\n}\nfunction pushHostContext(fiber) {\n  var stateHook = fiber.memoizedState;\n  null !== stateHook &&\n    ((HostTransitionContext._currentValue = stateHook.memoizedState),\n    push(hostTransitionProviderCursor, fiber));\n  stateHook = contextStackCursor.current;\n  var JSCompiler_inline_result = getChildHostContextProd(stateHook, fiber.type);\n  stateHook !== JSCompiler_inline_result &&\n    (push(contextFiberStackCursor, fiber),\n    push(contextStackCursor, JSCompiler_inline_result));\n}\nfunction popHostContext(fiber) {\n  contextFiberStackCursor.current === fiber &&\n    (pop(contextStackCursor), pop(contextFiberStackCursor));\n  hostTransitionProviderCursor.current === fiber &&\n    (pop(hostTransitionProviderCursor),\n    (HostTransitionContext._currentValue = sharedNotPendingObject));\n}\nvar prefix, suffix;\nfunction describeBuiltInComponentFrame(name) {\n  if (void 0 === prefix)\n    try {\n      throw Error();\n    } catch (x) {\n      var match = x.stack.trim().match(/\\n( *(at )?)/);\n      prefix = (match && match[1]) || \"\";\n      suffix =\n        -1 < x.stack.indexOf(\"\\n    at\")\n          ? \" (<anonymous>)\"\n          : -1 < x.stack.indexOf(\"@\")\n            ? \"@unknown:0:0\"\n            : \"\";\n    }\n  return \"\\n\" + prefix + name + suffix;\n}\nvar reentry = !1;\nfunction describeNativeComponentFrame(fn, construct) {\n  if (!fn || reentry) return \"\";\n  reentry = !0;\n  var previousPrepareStackTrace = Error.prepareStackTrace;\n  Error.prepareStackTrace = void 0;\n  try {\n    var RunInRootFrame = {\n      DetermineComponentFrameRoot: function () {\n        try {\n          if (construct) {\n            var Fake = function () {\n              throw Error();\n            };\n            Object.defineProperty(Fake.prototype, \"props\", {\n              set: function () {\n                throw Error();\n              }\n            });\n            if (\"object\" === typeof Reflect && Reflect.construct) {\n              try {\n                Reflect.construct(Fake, []);\n              } catch (x) {\n                var control = x;\n              }\n              Reflect.construct(fn, [], Fake);\n            } else {\n              try {\n                Fake.call();\n              } catch (x$1) {\n                control = x$1;\n              }\n              Fake = !1;\n              try {\n                var prevProps = Object.getOwnPropertyDescriptor(\n                  fn.prototype,\n                  \"props\"\n                );\n                Object.defineProperty(fn.prototype, \"props\", {\n                  configurable: !0,\n                  set: function () {\n                    throw Error();\n                  }\n                });\n                Fake = !0;\n                new fn();\n              } finally {\n                Fake &&\n                  (void 0 !== prevProps\n                    ? Object.defineProperty(fn.prototype, \"props\", prevProps)\n                    : delete fn.prototype.props);\n              }\n            }\n          } else {\n            try {\n              throw Error();\n            } catch (x$2) {\n              control = x$2;\n            }\n            (Fake = fn()) &&\n              \"function\" === typeof Fake.catch &&\n              Fake.catch(function () {});\n          }\n        } catch (sample) {\n          if (sample && control && \"string\" === typeof sample.stack)\n            return [sample.stack, control.stack];\n        }\n        return [null, null];\n      }\n    };\n    RunInRootFrame.DetermineComponentFrameRoot.displayName =\n      \"DetermineComponentFrameRoot\";\n    var namePropDescriptor = Object.getOwnPropertyDescriptor(\n      RunInRootFrame.DetermineComponentFrameRoot,\n      \"name\"\n    );\n    namePropDescriptor &&\n      namePropDescriptor.configurable &&\n      Object.defineProperty(\n        RunInRootFrame.DetermineComponentFrameRoot,\n        \"name\",\n        { value: \"DetermineComponentFrameRoot\" }\n      );\n    var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),\n      sampleStack = _RunInRootFrame$Deter[0],\n      controlStack = _RunInRootFrame$Deter[1];\n    if (sampleStack && controlStack) {\n      var sampleLines = sampleStack.split(\"\\n\"),\n        controlLines = controlStack.split(\"\\n\");\n      for (\n        namePropDescriptor = RunInRootFrame = 0;\n        RunInRootFrame < sampleLines.length &&\n        !sampleLines[RunInRootFrame].includes(\"DetermineComponentFrameRoot\");\n\n      )\n        RunInRootFrame++;\n      for (\n        ;\n        namePropDescriptor < controlLines.length &&\n        !controlLines[namePropDescriptor].includes(\n          \"DetermineComponentFrameRoot\"\n        );\n\n      )\n        namePropDescriptor++;\n      if (\n        RunInRootFrame === sampleLines.length ||\n        namePropDescriptor === controlLines.length\n      )\n        for (\n          RunInRootFrame = sampleLines.length - 1,\n            namePropDescriptor = controlLines.length - 1;\n          1 <= RunInRootFrame &&\n          0 <= namePropDescriptor &&\n          sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];\n\n        )\n          namePropDescriptor--;\n      for (\n        ;\n        1 <= RunInRootFrame && 0 <= namePropDescriptor;\n        RunInRootFrame--, namePropDescriptor--\n      )\n        if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {\n          if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {\n            do\n              if (\n                (RunInRootFrame--,\n                namePropDescriptor--,\n                0 > namePropDescriptor ||\n                  sampleLines[RunInRootFrame] !==\n                    controlLines[namePropDescriptor])\n              ) {\n                var frame =\n                  \"\\n\" +\n                  sampleLines[RunInRootFrame].replace(\" at new \", \" at \");\n                fn.displayName &&\n                  frame.includes(\"<anonymous>\") &&\n                  (frame = frame.replace(\"<anonymous>\", fn.displayName));\n                return frame;\n              }\n            while (1 <= RunInRootFrame && 0 <= namePropDescriptor);\n          }\n          break;\n        }\n    }\n  } finally {\n    (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);\n  }\n  return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : \"\")\n    ? describeBuiltInComponentFrame(previousPrepareStackTrace)\n    : \"\";\n}\nfunction describeFiber(fiber, childFiber) {\n  switch (fiber.tag) {\n    case 26:\n    case 27:\n    case 5:\n      return describeBuiltInComponentFrame(fiber.type);\n    case 16:\n      return describeBuiltInComponentFrame(\"Lazy\");\n    case 13:\n      return fiber.child !== childFiber && null !== childFiber\n        ? describeBuiltInComponentFrame(\"Suspense Fallback\")\n        : describeBuiltInComponentFrame(\"Suspense\");\n    case 19:\n      return describeBuiltInComponentFrame(\"SuspenseList\");\n    case 0:\n    case 15:\n      return describeNativeComponentFrame(fiber.type, !1);\n    case 11:\n      return describeNativeComponentFrame(fiber.type.render, !1);\n    case 1:\n      return describeNativeComponentFrame(fiber.type, !0);\n    case 31:\n      return describeBuiltInComponentFrame(\"Activity\");\n    case 30:\n      return describeBuiltInComponentFrame(\"ViewTransition\");\n    default:\n      return \"\";\n  }\n}\nfunction getStackByFiberInDevAndProd(workInProgress) {\n  try {\n    var info = \"\",\n      previous = null;\n    do\n      (info += describeFiber(workInProgress, previous)),\n        (previous = workInProgress),\n        (workInProgress = workInProgress.return);\n    while (workInProgress);\n    return info;\n  } catch (x) {\n    return \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n  }\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty,\n  scheduleCallback$3 = Scheduler.unstable_scheduleCallback,\n  cancelCallback$1 = Scheduler.unstable_cancelCallback,\n  shouldYield = Scheduler.unstable_shouldYield,\n  requestPaint = Scheduler.unstable_requestPaint,\n  now = Scheduler.unstable_now,\n  getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,\n  ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n  UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n  NormalPriority$1 = Scheduler.unstable_NormalPriority,\n  LowPriority = Scheduler.unstable_LowPriority,\n  IdlePriority = Scheduler.unstable_IdlePriority,\n  log$1 = Scheduler.log,\n  unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,\n  rendererID = null,\n  injectedHook = null;\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n  \"function\" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);\n  if (injectedHook && \"function\" === typeof injectedHook.setStrictMode)\n    try {\n      injectedHook.setStrictMode(rendererID, newIsStrictMode);\n    } catch (err) {}\n}\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,\n  log = Math.log,\n  LN2 = Math.LN2;\nfunction clz32Fallback(x) {\n  x >>>= 0;\n  return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;\n}\nvar nextTransitionUpdateLane = 256,\n  nextTransitionDeferredLane = 262144,\n  nextRetryLane = 4194304;\nfunction getHighestPriorityLanes(lanes) {\n  var pendingSyncLanes = lanes & 42;\n  if (0 !== pendingSyncLanes) return pendingSyncLanes;\n  switch (lanes & -lanes) {\n    case 1:\n      return 1;\n    case 2:\n      return 2;\n    case 4:\n      return 4;\n    case 8:\n      return 8;\n    case 16:\n      return 16;\n    case 32:\n      return 32;\n    case 64:\n      return 64;\n    case 128:\n      return 128;\n    case 256:\n    case 512:\n    case 1024:\n    case 2048:\n    case 4096:\n    case 8192:\n    case 16384:\n    case 32768:\n    case 65536:\n    case 131072:\n      return lanes & -lanes;\n    case 262144:\n    case 524288:\n    case 1048576:\n    case 2097152:\n      return lanes & 3932160;\n    case 4194304:\n    case 8388608:\n    case 16777216:\n    case 33554432:\n      return lanes & 62914560;\n    case 67108864:\n      return 67108864;\n    case 134217728:\n      return 134217728;\n    case 268435456:\n      return 268435456;\n    case 536870912:\n      return 536870912;\n    case 1073741824:\n      return 0;\n    default:\n      return lanes;\n  }\n}\nfunction getNextLanes(root, wipLanes, rootHasPendingCommit) {\n  var pendingLanes = root.pendingLanes;\n  if (0 === pendingLanes) return 0;\n  var nextLanes = 0,\n    suspendedLanes = root.suspendedLanes,\n    pingedLanes = root.pingedLanes;\n  root = root.warmLanes;\n  var nonIdlePendingLanes = pendingLanes & 134217727;\n  0 !== nonIdlePendingLanes\n    ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),\n      0 !== pendingLanes\n        ? (nextLanes = getHighestPriorityLanes(pendingLanes))\n        : ((pingedLanes &= nonIdlePendingLanes),\n          0 !== pingedLanes\n            ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n            : rootHasPendingCommit ||\n              ((rootHasPendingCommit = nonIdlePendingLanes & ~root),\n              0 !== rootHasPendingCommit &&\n                (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))\n    : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),\n      0 !== nonIdlePendingLanes\n        ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))\n        : 0 !== pingedLanes\n          ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n          : rootHasPendingCommit ||\n            ((rootHasPendingCommit = pendingLanes & ~root),\n            0 !== rootHasPendingCommit &&\n              (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));\n  return 0 === nextLanes\n    ? 0\n    : 0 !== wipLanes &&\n        wipLanes !== nextLanes &&\n        0 === (wipLanes & suspendedLanes) &&\n        ((suspendedLanes = nextLanes & -nextLanes),\n        (rootHasPendingCommit = wipLanes & -wipLanes),\n        suspendedLanes >= rootHasPendingCommit ||\n          (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)))\n      ? wipLanes\n      : nextLanes;\n}\nfunction checkIfRootIsPrerendering(root, renderLanes) {\n  return (\n    0 ===\n    (root.pendingLanes &\n      ~(root.suspendedLanes & ~root.pingedLanes) &\n      renderLanes)\n  );\n}\nfunction getEntangledLanes(root, renderLanes) {\n  0 !== (renderLanes & 8) && (renderLanes |= renderLanes & 32);\n  var allEntangledLanes = root.entangledLanes;\n  if (0 !== allEntangledLanes)\n    for (\n      root = root.entanglements, allEntangledLanes &= renderLanes;\n      0 < allEntangledLanes;\n\n    ) {\n      var index$4 = 31 - clz32(allEntangledLanes),\n        lane = 1 << index$4;\n      renderLanes |= root[index$4];\n      allEntangledLanes &= ~lane;\n    }\n  return renderLanes;\n}\nfunction computeExpirationTime(lane, currentTime) {\n  switch (lane) {\n    case 1:\n    case 2:\n    case 4:\n    case 8:\n    case 64:\n      return currentTime + 250;\n    case 16:\n    case 32:\n    case 128:\n    case 256:\n    case 512:\n    case 1024:\n    case 2048:\n    case 4096:\n    case 8192:\n    case 16384:\n    case 32768:\n    case 65536:\n    case 131072:\n    case 262144:\n    case 524288:\n    case 1048576:\n    case 2097152:\n      return currentTime + 5e3;\n    case 4194304:\n    case 8388608:\n    case 16777216:\n    case 33554432:\n      return -1;\n    case 67108864:\n    case 134217728:\n    case 268435456:\n    case 536870912:\n    case 1073741824:\n      return -1;\n    default:\n      return -1;\n  }\n}\nfunction claimNextRetryLane() {\n  var lane = nextRetryLane;\n  nextRetryLane <<= 1;\n  0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);\n  return lane;\n}\nfunction createLaneMap(initial) {\n  for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);\n  return laneMap;\n}\nfunction markRootUpdated$1(root, updateLane) {\n  root.pendingLanes |= updateLane;\n  268435456 !== updateLane &&\n    ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));\n}\nfunction markRootFinished(\n  root,\n  finishedLanes,\n  remainingLanes,\n  spawnedLane,\n  updatedLanes,\n  suspendedRetryLanes\n) {\n  var previouslyPendingLanes = root.pendingLanes;\n  root.pendingLanes = remainingLanes;\n  root.suspendedLanes = 0;\n  root.pingedLanes = 0;\n  root.warmLanes = 0;\n  root.expiredLanes &= remainingLanes;\n  root.entangledLanes &= remainingLanes;\n  root.errorRecoveryDisabledLanes &= remainingLanes;\n  root.shellSuspendCounter = 0;\n  var entanglements = root.entanglements,\n    expirationTimes = root.expirationTimes,\n    hiddenUpdates = root.hiddenUpdates;\n  for (\n    remainingLanes = previouslyPendingLanes & ~remainingLanes;\n    0 < remainingLanes;\n\n  ) {\n    var index$7 = 31 - clz32(remainingLanes),\n      lane = 1 << index$7;\n    entanglements[index$7] = 0;\n    expirationTimes[index$7] = -1;\n    var hiddenUpdatesForLane = hiddenUpdates[index$7];\n    if (null !== hiddenUpdatesForLane)\n      for (\n        hiddenUpdates[index$7] = null, index$7 = 0;\n        index$7 < hiddenUpdatesForLane.length;\n        index$7++\n      ) {\n        var update = hiddenUpdatesForLane[index$7];\n        null !== update && (update.lane &= -536870913);\n      }\n    remainingLanes &= ~lane;\n  }\n  0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);\n  0 !== suspendedRetryLanes &&\n    0 === updatedLanes &&\n    0 !== root.tag &&\n    (root.suspendedLanes |=\n      suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));\n}\nfunction markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {\n  root.pendingLanes |= spawnedLane;\n  root.suspendedLanes &= ~spawnedLane;\n  var spawnedLaneIndex = 31 - clz32(spawnedLane);\n  root.entangledLanes |= spawnedLane;\n  root.entanglements[spawnedLaneIndex] =\n    root.entanglements[spawnedLaneIndex] |\n    1073741824 |\n    (entangledLanes & 261930);\n}\nfunction markRootEntangled(root, entangledLanes) {\n  var rootEntangledLanes = (root.entangledLanes |= entangledLanes);\n  for (root = root.entanglements; rootEntangledLanes; ) {\n    var index$8 = 31 - clz32(rootEntangledLanes),\n      lane = 1 << index$8;\n    (lane & entangledLanes) | (root[index$8] & entangledLanes) &&\n      (root[index$8] |= entangledLanes);\n    rootEntangledLanes &= ~lane;\n  }\n}\nfunction getBumpedLaneForHydration(root, renderLanes) {\n  var renderLane = renderLanes & -renderLanes;\n  renderLane =\n    0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);\n  return 0 !== (renderLane & (root.suspendedLanes | renderLanes))\n    ? 0\n    : renderLane;\n}\nfunction getBumpedLaneForHydrationByLane(lane) {\n  switch (lane) {\n    case 2:\n      lane = 1;\n      break;\n    case 8:\n      lane = 4;\n      break;\n    case 32:\n      lane = 16;\n      break;\n    case 256:\n    case 512:\n    case 1024:\n    case 2048:\n    case 4096:\n    case 8192:\n    case 16384:\n    case 32768:\n    case 65536:\n    case 131072:\n    case 262144:\n    case 524288:\n    case 1048576:\n    case 2097152:\n    case 4194304:\n    case 8388608:\n    case 16777216:\n    case 33554432:\n      lane = 128;\n      break;\n    case 268435456:\n      lane = 134217728;\n      break;\n    default:\n      lane = 0;\n  }\n  return lane;\n}\nfunction lanesToEventPriority(lanes) {\n  lanes &= -lanes;\n  return 2 < lanes\n    ? 8 < lanes\n      ? 0 !== (lanes & 134217727)\n        ? 32\n        : 268435456\n      : 8\n    : 2;\n}\nfunction resolveUpdatePriority() {\n  var updatePriority = ReactDOMSharedInternals.p;\n  if (0 !== updatePriority) return updatePriority;\n  updatePriority = window.event;\n  return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);\n}\nfunction runWithPriority(priority, fn) {\n  var previousPriority = ReactDOMSharedInternals.p;\n  try {\n    return (ReactDOMSharedInternals.p = priority), fn();\n  } finally {\n    ReactDOMSharedInternals.p = previousPriority;\n  }\n}\nvar randomKey = Math.random().toString(36).slice(2),\n  internalInstanceKey = \"__reactFiber$\" + randomKey,\n  internalPropsKey = \"__reactProps$\" + randomKey,\n  internalContainerInstanceKey = \"__reactContainer$\" + randomKey,\n  internalEventHandlersKey = \"__reactEvents$\" + randomKey,\n  internalEventHandlerListenersKey = \"__reactListeners$\" + randomKey,\n  internalEventHandlesSetKey = \"__reactHandles$\" + randomKey,\n  internalRootNodeResourcesKey = \"__reactResources$\" + randomKey,\n  internalHoistableMarker = \"__reactMarker$\" + randomKey,\n  internalLoadPendingKey = \"__reactLoad$\" + randomKey;\nfunction detachDeletedInstance(node) {\n  delete node[internalInstanceKey];\n  delete node[internalPropsKey];\n  delete node[internalEventHandlerListenersKey];\n  delete node[internalEventHandlesSetKey];\n}\nfunction getClosestInstanceFromNode(targetNode) {\n  var targetInst;\n  if ((targetInst = targetNode[internalInstanceKey])) return targetInst;\n  for (var parentNode = targetNode.parentNode; parentNode; ) {\n    if (\n      (targetInst =\n        parentNode[internalContainerInstanceKey] ||\n        parentNode[internalInstanceKey])\n    ) {\n      parentNode = targetInst.alternate;\n      if (\n        null !== targetInst.child ||\n        (null !== parentNode && null !== parentNode.child)\n      )\n        for (\n          targetNode = getParentHydrationBoundary(targetNode);\n          null !== targetNode;\n\n        ) {\n          if ((parentNode = targetNode[internalInstanceKey])) return parentNode;\n          targetNode = getParentHydrationBoundary(targetNode);\n        }\n      return targetInst;\n    }\n    targetNode = parentNode;\n    parentNode = targetNode.parentNode;\n  }\n  return null;\n}\nfunction getInstanceFromNode(node) {\n  if (\n    (node = node[internalInstanceKey] || node[internalContainerInstanceKey])\n  ) {\n    var tag = node.tag;\n    if (\n      5 === tag ||\n      6 === tag ||\n      13 === tag ||\n      31 === tag ||\n      26 === tag ||\n      27 === tag ||\n      3 === tag\n    )\n      return node;\n  }\n  return null;\n}\nfunction getNodeFromInstance(inst) {\n  var tag = inst.tag;\n  if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;\n  throw Error(formatProdErrorMessage(33));\n}\nfunction getResourcesFromRoot(root) {\n  var resources = root[internalRootNodeResourcesKey];\n  resources ||\n    (resources = root[internalRootNodeResourcesKey] =\n      { hoistableStyles: new Map(), hoistableScripts: new Map() });\n  return resources;\n}\nfunction markNodeAsHoistable(node) {\n  node[internalHoistableMarker] = !0;\n}\nfunction clearPendingLoadOnNode(node) {\n  node[internalLoadPendingKey] = void 0;\n}\nvar allNativeEvents = new Set(),\n  registrationNameDependencies = {};\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n  registerDirectEvent(registrationName, dependencies);\n  registerDirectEvent(registrationName + \"Capture\", dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n  registrationNameDependencies[registrationName] = dependencies;\n  for (\n    registrationName = 0;\n    registrationName < dependencies.length;\n    registrationName++\n  )\n    allNativeEvents.add(dependencies[registrationName]);\n}\nvar VALID_ATTRIBUTE_NAME_REGEX = RegExp(\n    \"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"\n  ),\n  illegalAttributeNameCache = {},\n  validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))\n    return !0;\n  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;\n  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))\n    return (validatedAttributeNameCache[attributeName] = !0);\n  illegalAttributeNameCache[attributeName] = !0;\n  return !1;\n}\nvar viewTransitionMutationContext = !1;\nfunction pushMutationContext() {\n  var prev = viewTransitionMutationContext;\n  viewTransitionMutationContext = !1;\n  return prev;\n}\nfunction setValueForAttribute(node, name, value) {\n  if (isAttributeNameSafe(name))\n    if (null === value) node.removeAttribute(name);\n    else {\n      switch (typeof value) {\n        case \"undefined\":\n        case \"function\":\n        case \"symbol\":\n          node.removeAttribute(name);\n          return;\n        case \"boolean\":\n          var prefix$10 = name.toLowerCase().slice(0, 5);\n          if (\"data-\" !== prefix$10 && \"aria-\" !== prefix$10) {\n            node.removeAttribute(name);\n            return;\n          }\n      }\n      node.setAttribute(name, value);\n    }\n}\nfunction setValueForKnownAttribute(node, name, value) {\n  if (null === value) node.removeAttribute(name);\n  else {\n    switch (typeof value) {\n      case \"undefined\":\n      case \"function\":\n      case \"symbol\":\n      case \"boolean\":\n        node.removeAttribute(name);\n        return;\n    }\n    node.setAttribute(name, value);\n  }\n}\nfunction setValueForNamespacedAttribute(node, namespace, name, value) {\n  if (null === value) node.removeAttribute(name);\n  else {\n    switch (typeof value) {\n      case \"undefined\":\n      case \"function\":\n      case \"symbol\":\n      case \"boolean\":\n        node.removeAttribute(name);\n        return;\n    }\n    node.setAttributeNS(namespace, name, value);\n  }\n}\nfunction getToStringValue(value) {\n  switch (typeof value) {\n    case \"bigint\":\n    case \"boolean\":\n    case \"number\":\n    case \"string\":\n    case \"undefined\":\n      return value;\n    case \"object\":\n      return value;\n    default:\n      return \"\";\n  }\n}\nfunction isCheckable(elem) {\n  var type = elem.type;\n  return (\n    (elem = elem.nodeName) &&\n    \"input\" === elem.toLowerCase() &&\n    (\"checkbox\" === type || \"radio\" === type)\n  );\n}\nfunction trackValueOnNode(node, valueField, currentValue) {\n  var descriptor = Object.getOwnPropertyDescriptor(\n    node.constructor.prototype,\n    valueField\n  );\n  if (\n    !node.hasOwnProperty(valueField) &&\n    \"undefined\" !== typeof descriptor &&\n    \"function\" === typeof descriptor.get &&\n    \"function\" === typeof descriptor.set\n  ) {\n    var get = descriptor.get,\n      set = descriptor.set;\n    Object.defineProperty(node, valueField, {\n      configurable: !0,\n      get: function () {\n        return get.call(this);\n      },\n      set: function (value) {\n        currentValue = \"\" + value;\n        set.call(this, value);\n      }\n    });\n    Object.defineProperty(node, valueField, {\n      enumerable: descriptor.enumerable\n    });\n    return {\n      getValue: function () {\n        return currentValue;\n      },\n      setValue: function (value) {\n        currentValue = \"\" + value;\n      },\n      stopTracking: function () {\n        node._valueTracker = null;\n        delete node[valueField];\n      }\n    };\n  }\n}\nfunction track(node) {\n  if (!node._valueTracker) {\n    var valueField = isCheckable(node) ? \"checked\" : \"value\";\n    node._valueTracker = trackValueOnNode(\n      node,\n      valueField,\n      \"\" + node[valueField]\n    );\n  }\n}\nfunction updateValueIfChanged(node) {\n  if (!node) return !1;\n  var tracker = node._valueTracker;\n  if (!tracker) return !0;\n  var lastValue = tracker.getValue();\n  var value = \"\";\n  node &&\n    (value = isCheckable(node)\n      ? node.checked\n        ? \"true\"\n        : \"false\"\n      : node.value);\n  node = value;\n  return node !== lastValue ? (tracker.setValue(node), !0) : !1;\n}\nvar escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\\n\"\\\\]/g;\nfunction escapeSelectorAttributeValueInsideDoubleQuotes(value) {\n  return value.replace(\n    escapeSelectorAttributeValueInsideDoubleQuotesRegex,\n    function (ch) {\n      return \"\\\\\" + ch.charCodeAt(0).toString(16) + \" \";\n    }\n  );\n}\nfunction updateInput(\n  element,\n  value,\n  defaultValue,\n  lastDefaultValue,\n  checked,\n  defaultChecked,\n  type,\n  name\n) {\n  element.name = \"\";\n  null != type &&\n  \"function\" !== typeof type &&\n  \"symbol\" !== typeof type &&\n  \"boolean\" !== typeof type\n    ? (element.type = type)\n    : element.removeAttribute(\"type\");\n  if (null != value)\n    if (\"number\" === type) {\n      if ((0 === value && \"\" === element.value) || element.value != value)\n        element.value = \"\" + getToStringValue(value);\n    } else\n      element.value !== \"\" + getToStringValue(value) &&\n        (element.value = \"\" + getToStringValue(value));\n  else\n    (\"submit\" !== type && \"reset\" !== type) || element.removeAttribute(\"value\");\n  null != value\n    ? \"number\" === type && element.value == value\n      ? setDefaultValue(element, getToStringValue(element.value))\n      : setDefaultValue(element, getToStringValue(value))\n    : null != defaultValue\n      ? setDefaultValue(element, getToStringValue(defaultValue))\n      : null != lastDefaultValue && element.removeAttribute(\"value\");\n  null == checked &&\n    null != defaultChecked &&\n    (element.defaultChecked = !!defaultChecked);\n  null != checked &&\n    (element.checked =\n      checked && \"function\" !== typeof checked && \"symbol\" !== typeof checked);\n  null != name &&\n  \"function\" !== typeof name &&\n  \"symbol\" !== typeof name &&\n  \"boolean\" !== typeof name\n    ? (element.name = \"\" + getToStringValue(name))\n    : element.removeAttribute(\"name\");\n}\nfunction initInput(\n  element,\n  value,\n  defaultValue,\n  checked,\n  defaultChecked,\n  type,\n  name,\n  isHydrating\n) {\n  null != type &&\n    \"function\" !== typeof type &&\n    \"symbol\" !== typeof type &&\n    \"boolean\" !== typeof type &&\n    (element.type = type);\n  if (null != value || null != defaultValue) {\n    if (\n      !(\n        (\"submit\" !== type && \"reset\" !== type) ||\n        (void 0 !== value && null !== value)\n      )\n    ) {\n      track(element);\n      return;\n    }\n    defaultValue =\n      null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n    value = null != value ? \"\" + getToStringValue(value) : defaultValue;\n    isHydrating || value === element.value || (element.value = value);\n    element.defaultValue = value;\n  }\n  checked = null != checked ? checked : defaultChecked;\n  checked =\n    \"function\" !== typeof checked && \"symbol\" !== typeof checked && !!checked;\n  element.checked = isHydrating ? element.checked : !!checked;\n  element.defaultChecked = !!checked;\n  null != name &&\n    \"function\" !== typeof name &&\n    \"symbol\" !== typeof name &&\n    \"boolean\" !== typeof name &&\n    (element.name = name);\n  track(element);\n}\nfunction setDefaultValue(node, value) {\n  node.defaultValue !== \"\" + value && (node.defaultValue = \"\" + value);\n}\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n  node = node.options;\n  if (multiple) {\n    multiple = {};\n    for (var i = 0; i < propValue.length; i++)\n      multiple[\"$\" + propValue[i]] = !0;\n    for (propValue = 0; propValue < node.length; propValue++)\n      (i = multiple.hasOwnProperty(\"$\" + node[propValue].value)),\n        node[propValue].selected !== i && (node[propValue].selected = i),\n        i && setDefaultSelected && (node[propValue].defaultSelected = !0);\n  } else {\n    propValue = \"\" + getToStringValue(propValue);\n    multiple = null;\n    for (i = 0; i < node.length; i++) {\n      if (node[i].value === propValue) {\n        node[i].selected = !0;\n        setDefaultSelected && (node[i].defaultSelected = !0);\n        return;\n      }\n      null !== multiple || node[i].disabled || (multiple = node[i]);\n    }\n    null !== multiple && (multiple.selected = !0);\n  }\n}\nfunction updateTextarea(element, value, defaultValue) {\n  if (\n    null != value &&\n    ((value = \"\" + getToStringValue(value)),\n    value !== element.value && (element.value = value),\n    null == defaultValue)\n  ) {\n    element.defaultValue !== value && (element.defaultValue = value);\n    return;\n  }\n  element.defaultValue =\n    null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n}\nfunction initTextarea(element, value, defaultValue, children) {\n  if (null == value) {\n    if (null != children) {\n      if (null != defaultValue) throw Error(formatProdErrorMessage(92));\n      if (isArrayImpl(children)) {\n        if (1 < children.length) throw Error(formatProdErrorMessage(93));\n        children = children[0];\n      }\n      defaultValue = children;\n    }\n    null == defaultValue && (defaultValue = \"\");\n    value = defaultValue;\n  }\n  defaultValue = getToStringValue(value);\n  element.defaultValue = defaultValue;\n  children = element.textContent;\n  children === defaultValue &&\n    \"\" !== children &&\n    null !== children &&\n    (element.value = children);\n  track(element);\n}\nfunction setTextContent(node, text) {\n  if (text) {\n    var firstChild = node.firstChild;\n    if (\n      firstChild &&\n      firstChild === node.lastChild &&\n      3 === firstChild.nodeType\n    ) {\n      firstChild.nodeValue = text;\n      return;\n    }\n  }\n  node.textContent = text;\n}\nvar unitlessNumbers = new Set(\n  \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\n    \" \"\n  )\n);\nfunction setValueForStyle(style, styleName, value) {\n  var isCustomProperty = 0 === styleName.indexOf(\"--\");\n  null == value || \"boolean\" === typeof value || \"\" === value\n    ? isCustomProperty\n      ? style.setProperty(styleName, \"\")\n      : \"float\" === styleName\n        ? (style.cssFloat = \"\")\n        : (style[styleName] = \"\")\n    : isCustomProperty\n      ? style.setProperty(styleName, value)\n      : \"number\" !== typeof value ||\n          0 === value ||\n          unitlessNumbers.has(styleName)\n        ? \"float\" === styleName\n          ? (style.cssFloat = value)\n          : (style[styleName] = (\"\" + value).trim())\n        : (style[styleName] = value + \"px\");\n}\nfunction setValueForStyles(node, styles, prevStyles) {\n  if (null != styles && \"object\" !== typeof styles)\n    throw Error(formatProdErrorMessage(62));\n  node = node.style;\n  if (null != prevStyles) {\n    for (var styleName in prevStyles)\n      !prevStyles.hasOwnProperty(styleName) ||\n        (null != styles && styles.hasOwnProperty(styleName)) ||\n        (0 === styleName.indexOf(\"--\")\n          ? node.setProperty(styleName, \"\")\n          : \"float\" === styleName\n            ? (node.cssFloat = \"\")\n            : (node[styleName] = \"\"),\n        (viewTransitionMutationContext = !0));\n    for (var styleName$16 in styles)\n      (styleName = styles[styleName$16]),\n        styles.hasOwnProperty(styleName$16) &&\n          prevStyles[styleName$16] !== styleName &&\n          (setValueForStyle(node, styleName$16, styleName),\n          (viewTransitionMutationContext = !0));\n  } else\n    for (var styleName$17 in styles)\n      styles.hasOwnProperty(styleName$17) &&\n        setValueForStyle(node, styleName$17, styles[styleName$17]);\n}\nfunction isCustomElement(tagName) {\n  if (-1 === tagName.indexOf(\"-\")) return !1;\n  switch (tagName) {\n    case \"annotation-xml\":\n    case \"color-profile\":\n    case \"font-face\":\n    case \"font-face-src\":\n    case \"font-face-uri\":\n    case \"font-face-format\":\n    case \"font-face-name\":\n    case \"missing-glyph\":\n      return !1;\n    default:\n      return !0;\n  }\n}\nvar aliases = new Map([\n    [\"acceptCharset\", \"accept-charset\"],\n    [\"htmlFor\", \"for\"],\n    [\"httpEquiv\", \"http-equiv\"],\n    [\"crossOrigin\", \"crossorigin\"],\n    [\"accentHeight\", \"accent-height\"],\n    [\"alignmentBaseline\", \"alignment-baseline\"],\n    [\"arabicForm\", \"arabic-form\"],\n    [\"baselineShift\", \"baseline-shift\"],\n    [\"capHeight\", \"cap-height\"],\n    [\"clipPath\", \"clip-path\"],\n    [\"clipRule\", \"clip-rule\"],\n    [\"colorInterpolation\", \"color-interpolation\"],\n    [\"colorInterpolationFilters\", \"color-interpolation-filters\"],\n    [\"colorProfile\", \"color-profile\"],\n    [\"colorRendering\", \"color-rendering\"],\n    [\"dominantBaseline\", \"dominant-baseline\"],\n    [\"enableBackground\", \"enable-background\"],\n    [\"fillOpacity\", \"fill-opacity\"],\n    [\"fillRule\", \"fill-rule\"],\n    [\"floodColor\", \"flood-color\"],\n    [\"floodOpacity\", \"flood-opacity\"],\n    [\"fontFamily\", \"font-family\"],\n    [\"fontSize\", \"font-size\"],\n    [\"fontSizeAdjust\", \"font-size-adjust\"],\n    [\"fontStretch\", \"font-stretch\"],\n    [\"fontStyle\", \"font-style\"],\n    [\"fontVariant\", \"font-variant\"],\n    [\"fontWeight\", \"font-weight\"],\n    [\"glyphName\", \"glyph-name\"],\n    [\"glyphOrientationHorizontal\", \"glyph-orientation-horizontal\"],\n    [\"glyphOrientationVertical\", \"glyph-orientation-vertical\"],\n    [\"horizAdvX\", \"horiz-adv-x\"],\n    [\"horizOriginX\", \"horiz-origin-x\"],\n    [\"imageRendering\", \"image-rendering\"],\n    [\"letterSpacing\", \"letter-spacing\"],\n    [\"lightingColor\", \"lighting-color\"],\n    [\"markerEnd\", \"marker-end\"],\n    [\"markerMid\", \"marker-mid\"],\n    [\"markerStart\", \"marker-start\"],\n    [\"maskType\", \"mask-type\"],\n    [\"overlinePosition\", \"overline-position\"],\n    [\"overlineThickness\", \"overline-thickness\"],\n    [\"paintOrder\", \"paint-order\"],\n    [\"panose-1\", \"panose-1\"],\n    [\"pointerEvents\", \"pointer-events\"],\n    [\"renderingIntent\", \"rendering-intent\"],\n    [\"shapeRendering\", \"shape-rendering\"],\n    [\"stopColor\", \"stop-color\"],\n    [\"stopOpacity\", \"stop-opacity\"],\n    [\"strikethroughPosition\", \"strikethrough-position\"],\n    [\"strikethroughThickness\", \"strikethrough-thickness\"],\n    [\"strokeDasharray\", \"stroke-dasharray\"],\n    [\"strokeDashoffset\", \"stroke-dashoffset\"],\n    [\"strokeLinecap\", \"stroke-linecap\"],\n    [\"strokeLinejoin\", \"stroke-linejoin\"],\n    [\"strokeMiterlimit\", \"stroke-miterlimit\"],\n    [\"strokeOpacity\", \"stroke-opacity\"],\n    [\"strokeWidth\", \"stroke-width\"],\n    [\"textAnchor\", \"text-anchor\"],\n    [\"textDecoration\", \"text-decoration\"],\n    [\"textRendering\", \"text-rendering\"],\n    [\"transformOrigin\", \"transform-origin\"],\n    [\"underlinePosition\", \"underline-position\"],\n    [\"underlineThickness\", \"underline-thickness\"],\n    [\"unicodeBidi\", \"unicode-bidi\"],\n    [\"unicodeRange\", \"unicode-range\"],\n    [\"unitsPerEm\", \"units-per-em\"],\n    [\"vAlphabetic\", \"v-alphabetic\"],\n    [\"vHanging\", \"v-hanging\"],\n    [\"vIdeographic\", \"v-ideographic\"],\n    [\"vMathematical\", \"v-mathematical\"],\n    [\"vectorEffect\", \"vector-effect\"],\n    [\"vertAdvY\", \"vert-adv-y\"],\n    [\"vertOriginX\", \"vert-origin-x\"],\n    [\"vertOriginY\", \"vert-origin-y\"],\n    [\"wordSpacing\", \"word-spacing\"],\n    [\"writingMode\", \"writing-mode\"],\n    [\"xmlnsXlink\", \"xmlns:xlink\"],\n    [\"xHeight\", \"x-height\"]\n  ]),\n  isJavaScriptProtocol =\n    /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;\nfunction sanitizeURL(url) {\n  return isJavaScriptProtocol.test(\"\" + url)\n    ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n    : url;\n}\nfunction noop$1() {}\nvar currentReplayingEvent = null;\nfunction getEventTarget(nativeEvent) {\n  nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;\n  nativeEvent.correspondingUseElement &&\n    (nativeEvent = nativeEvent.correspondingUseElement);\n  return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;\n}\nvar restoreTarget = null,\n  restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n  var internalInstance = getInstanceFromNode(target);\n  if (internalInstance && (target = internalInstance.stateNode)) {\n    var props = target[internalPropsKey] || null;\n    a: switch (((target = internalInstance.stateNode), internalInstance.type)) {\n      case \"input\":\n        updateInput(\n          target,\n          props.value,\n          props.defaultValue,\n          props.defaultValue,\n          props.checked,\n          props.defaultChecked,\n          props.type,\n          props.name\n        );\n        internalInstance = props.name;\n        if (\"radio\" === props.type && null != internalInstance) {\n          for (props = target; props.parentNode; ) props = props.parentNode;\n          props = props.querySelectorAll(\n            'input[name=\"' +\n              escapeSelectorAttributeValueInsideDoubleQuotes(\n                \"\" + internalInstance\n              ) +\n              '\"][type=\"radio\"]'\n          );\n          for (\n            internalInstance = 0;\n            internalInstance < props.length;\n            internalInstance++\n          ) {\n            var otherNode = props[internalInstance];\n            if (otherNode !== target && otherNode.form === target.form) {\n              var otherProps = otherNode[internalPropsKey] || null;\n              if (!otherProps) throw Error(formatProdErrorMessage(90));\n              updateInput(\n                otherNode,\n                otherProps.value,\n                otherProps.defaultValue,\n                otherProps.defaultValue,\n                otherProps.checked,\n                otherProps.defaultChecked,\n                otherProps.type,\n                otherProps.name\n              );\n            }\n          }\n          for (\n            internalInstance = 0;\n            internalInstance < props.length;\n            internalInstance++\n          )\n            (otherNode = props[internalInstance]),\n              otherNode.form === target.form && updateValueIfChanged(otherNode);\n        }\n        break a;\n      case \"textarea\":\n        updateTextarea(target, props.value, props.defaultValue);\n        break a;\n      case \"select\":\n        (internalInstance = props.value),\n          null != internalInstance &&\n            updateOptions(target, !!props.multiple, internalInstance, !1);\n    }\n  }\n}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates$1(fn, a, b) {\n  if (isInsideEventHandler) return fn(a, b);\n  isInsideEventHandler = !0;\n  try {\n    var JSCompiler_inline_result = fn(a);\n    return JSCompiler_inline_result;\n  } finally {\n    if (\n      ((isInsideEventHandler = !1),\n      null !== restoreTarget || null !== restoreQueue)\n    )\n      if (\n        (flushSyncWork$1(),\n        restoreTarget &&\n          ((a = restoreTarget),\n          (fn = restoreQueue),\n          (restoreQueue = restoreTarget = null),\n          restoreStateOfTarget(a),\n          fn))\n      )\n        for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);\n  }\n}\nfunction getListener(inst, registrationName) {\n  var stateNode = inst.stateNode;\n  if (null === stateNode) return null;\n  var props = stateNode[internalPropsKey] || null;\n  if (null === props) return null;\n  stateNode = props[registrationName];\n  a: switch (registrationName) {\n    case \"onClick\":\n    case \"onClickCapture\":\n    case \"onDoubleClick\":\n    case \"onDoubleClickCapture\":\n    case \"onMouseDown\":\n    case \"onMouseDownCapture\":\n    case \"onMouseMove\":\n    case \"onMouseMoveCapture\":\n    case \"onMouseUp\":\n    case \"onMouseUpCapture\":\n    case \"onMouseEnter\":\n      (props = !props.disabled) ||\n        ((inst = inst.type),\n        (props = !(\n          \"button\" === inst ||\n          \"input\" === inst ||\n          \"select\" === inst ||\n          \"textarea\" === inst\n        )));\n      inst = !props;\n      break a;\n    default:\n      inst = !1;\n  }\n  if (inst) return null;\n  if (stateNode && \"function\" !== typeof stateNode)\n    throw Error(\n      formatProdErrorMessage(231, registrationName, typeof stateNode)\n    );\n  return stateNode;\n}\nvar canUseDOM = !(\n    \"undefined\" === typeof window ||\n    \"undefined\" === typeof window.document ||\n    \"undefined\" === typeof window.document.createElement\n  ),\n  passiveBrowserEventsSupported = !1;\nif (canUseDOM)\n  try {\n    var options = {};\n    Object.defineProperty(options, \"passive\", {\n      get: function () {\n        passiveBrowserEventsSupported = !0;\n      }\n    });\n    window.addEventListener(\"test\", options, options);\n    window.removeEventListener(\"test\", options, options);\n  } catch (e) {\n    passiveBrowserEventsSupported = !1;\n  }\nvar root = null,\n  startText = null,\n  fallbackText = null;\nfunction getData() {\n  if (fallbackText) return fallbackText;\n  var start,\n    startValue = startText,\n    startLength = startValue.length,\n    end,\n    endValue = \"value\" in root ? root.value : root.textContent,\n    endLength = endValue.length;\n  for (\n    start = 0;\n    start < startLength && startValue[start] === endValue[start];\n    start++\n  );\n  var minEnd = startLength - start;\n  for (\n    end = 1;\n    end <= minEnd &&\n    startValue[startLength - end] === endValue[endLength - end];\n    end++\n  );\n  return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));\n}\nfunction getEventCharCode(nativeEvent) {\n  var keyCode = nativeEvent.keyCode;\n  \"charCode\" in nativeEvent\n    ? ((nativeEvent = nativeEvent.charCode),\n      0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))\n    : (nativeEvent = keyCode);\n  10 === nativeEvent && (nativeEvent = 13);\n  return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;\n}\nfunction functionThatReturnsTrue() {\n  return !0;\n}\nfunction functionThatReturnsFalse() {\n  return !1;\n}\nfunction createSyntheticEvent(Interface) {\n  function SyntheticBaseEvent(\n    reactName,\n    reactEventType,\n    targetInst,\n    nativeEvent,\n    nativeEventTarget\n  ) {\n    this._reactName = reactName;\n    this._targetInst = targetInst;\n    this.type = reactEventType;\n    this.nativeEvent = nativeEvent;\n    this.target = nativeEventTarget;\n    this.currentTarget = null;\n    for (var propName in Interface)\n      Interface.hasOwnProperty(propName) &&\n        ((reactName = Interface[propName]),\n        (this[propName] = reactName\n          ? reactName(nativeEvent)\n          : nativeEvent[propName]));\n    this.isDefaultPrevented = (\n      null != nativeEvent.defaultPrevented\n        ? nativeEvent.defaultPrevented\n        : !1 === nativeEvent.returnValue\n    )\n      ? functionThatReturnsTrue\n      : functionThatReturnsFalse;\n    this.isPropagationStopped = functionThatReturnsFalse;\n    return this;\n  }\n  assign(SyntheticBaseEvent.prototype, {\n    preventDefault: function () {\n      this.defaultPrevented = !0;\n      var event = this.nativeEvent;\n      event &&\n        (event.preventDefault\n          ? event.preventDefault()\n          : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n        (this.isDefaultPrevented = functionThatReturnsTrue));\n    },\n    stopPropagation: function () {\n      var event = this.nativeEvent;\n      event &&\n        (event.stopPropagation\n          ? event.stopPropagation()\n          : \"unknown\" !== typeof event.cancelBubble &&\n            (event.cancelBubble = !0),\n        (this.isPropagationStopped = functionThatReturnsTrue));\n    },\n    persist: function () {},\n    isPersistent: functionThatReturnsTrue\n  });\n  return SyntheticBaseEvent;\n}\nvar EventInterface = {\n    eventPhase: 0,\n    bubbles: 0,\n    cancelable: 0,\n    timeStamp: function (event) {\n      return event.timeStamp || Date.now();\n    },\n    defaultPrevented: 0,\n    isTrusted: 0\n  },\n  SyntheticEvent = createSyntheticEvent(EventInterface),\n  UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }),\n  SyntheticUIEvent = createSyntheticEvent(UIEventInterface),\n  lastMovementX,\n  lastMovementY,\n  lastMouseEvent,\n  MouseEventInterface = assign({}, UIEventInterface, {\n    screenX: 0,\n    screenY: 0,\n    clientX: 0,\n    clientY: 0,\n    pageX: 0,\n    pageY: 0,\n    ctrlKey: 0,\n    shiftKey: 0,\n    altKey: 0,\n    metaKey: 0,\n    getModifierState: getEventModifierState,\n    button: 0,\n    buttons: 0,\n    relatedTarget: function (event) {\n      return void 0 === event.relatedTarget\n        ? event.fromElement === event.srcElement\n          ? event.toElement\n          : event.fromElement\n        : event.relatedTarget;\n    },\n    movementX: function (event) {\n      if (\"movementX\" in event) return event.movementX;\n      event !== lastMouseEvent &&\n        (lastMouseEvent && \"mousemove\" === event.type\n          ? ((lastMovementX = event.screenX - lastMouseEvent.screenX),\n            (lastMovementY = event.screenY - lastMouseEvent.screenY))\n          : (lastMovementY = lastMovementX = 0),\n        (lastMouseEvent = event));\n      return lastMovementX;\n    },\n    movementY: function (event) {\n      return \"movementY\" in event ? event.movementY : lastMovementY;\n    }\n  }),\n  SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface),\n  DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }),\n  SyntheticDragEvent = createSyntheticEvent(DragEventInterface),\n  FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }),\n  SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface),\n  AnimationEventInterface = assign({}, EventInterface, {\n    animationName: 0,\n    elapsedTime: 0,\n    pseudoElement: 0\n  }),\n  SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface),\n  ClipboardEventInterface = assign({}, EventInterface, {\n    clipboardData: function (event) {\n      return \"clipboardData\" in event\n        ? event.clipboardData\n        : window.clipboardData;\n    }\n  }),\n  SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface),\n  CompositionEventInterface = assign({}, EventInterface, { data: 0 }),\n  SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),\n  normalizeKey = {\n    Esc: \"Escape\",\n    Spacebar: \" \",\n    Left: \"ArrowLeft\",\n    Up: \"ArrowUp\",\n    Right: \"ArrowRight\",\n    Down: \"ArrowDown\",\n    Del: \"Delete\",\n    Win: \"OS\",\n    Menu: \"ContextMenu\",\n    Apps: \"ContextMenu\",\n    Scroll: \"ScrollLock\",\n    MozPrintableKey: \"Unidentified\"\n  },\n  translateToKey = {\n    8: \"Backspace\",\n    9: \"Tab\",\n    12: \"Clear\",\n    13: \"Enter\",\n    16: \"Shift\",\n    17: \"Control\",\n    18: \"Alt\",\n    19: \"Pause\",\n    20: \"CapsLock\",\n    27: \"Escape\",\n    32: \" \",\n    33: \"PageUp\",\n    34: \"PageDown\",\n    35: \"End\",\n    36: \"Home\",\n    37: \"ArrowLeft\",\n    38: \"ArrowUp\",\n    39: \"ArrowRight\",\n    40: \"ArrowDown\",\n    45: \"Insert\",\n    46: \"Delete\",\n    112: \"F1\",\n    113: \"F2\",\n    114: \"F3\",\n    115: \"F4\",\n    116: \"F5\",\n    117: \"F6\",\n    118: \"F7\",\n    119: \"F8\",\n    120: \"F9\",\n    121: \"F10\",\n    122: \"F11\",\n    123: \"F12\",\n    144: \"NumLock\",\n    145: \"ScrollLock\",\n    224: \"Meta\"\n  },\n  modifierKeyToProp = {\n    Alt: \"altKey\",\n    Control: \"ctrlKey\",\n    Meta: \"metaKey\",\n    Shift: \"shiftKey\"\n  };\nfunction modifierStateGetter(keyArg) {\n  var nativeEvent = this.nativeEvent;\n  return nativeEvent.getModifierState\n    ? nativeEvent.getModifierState(keyArg)\n    : (keyArg = modifierKeyToProp[keyArg])\n      ? !!nativeEvent[keyArg]\n      : !1;\n}\nfunction getEventModifierState() {\n  return modifierStateGetter;\n}\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n    key: function (nativeEvent) {\n      if (nativeEvent.key) {\n        var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n        if (\"Unidentified\" !== key) return key;\n      }\n      return \"keypress\" === nativeEvent.type\n        ? ((nativeEvent = getEventCharCode(nativeEvent)),\n          13 === nativeEvent ? \"Enter\" : String.fromCharCode(nativeEvent))\n        : \"keydown\" === nativeEvent.type || \"keyup\" === nativeEvent.type\n          ? translateToKey[nativeEvent.keyCode] || \"Unidentified\"\n          : \"\";\n    },\n    code: 0,\n    location: 0,\n    ctrlKey: 0,\n    shiftKey: 0,\n    altKey: 0,\n    metaKey: 0,\n    repeat: 0,\n    locale: 0,\n    getModifierState: getEventModifierState,\n    charCode: function (event) {\n      return \"keypress\" === event.type ? getEventCharCode(event) : 0;\n    },\n    keyCode: function (event) {\n      return \"keydown\" === event.type || \"keyup\" === event.type\n        ? event.keyCode\n        : 0;\n    },\n    which: function (event) {\n      return \"keypress\" === event.type\n        ? getEventCharCode(event)\n        : \"keydown\" === event.type || \"keyup\" === event.type\n          ? event.keyCode\n          : 0;\n    }\n  }),\n  SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface),\n  PointerEventInterface = assign({}, MouseEventInterface, {\n    pointerId: 0,\n    width: 0,\n    height: 0,\n    pressure: 0,\n    tangentialPressure: 0,\n    tiltX: 0,\n    tiltY: 0,\n    twist: 0,\n    pointerType: 0,\n    isPrimary: 0\n  }),\n  SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface),\n  SubmitEventInterface = assign({}, EventInterface, { submitter: 0 }),\n  SyntheticSubmitEvent = createSyntheticEvent(SubmitEventInterface),\n  TouchEventInterface = assign({}, UIEventInterface, {\n    touches: 0,\n    targetTouches: 0,\n    changedTouches: 0,\n    altKey: 0,\n    metaKey: 0,\n    ctrlKey: 0,\n    shiftKey: 0,\n    getModifierState: getEventModifierState\n  }),\n  SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface),\n  TransitionEventInterface = assign({}, EventInterface, {\n    propertyName: 0,\n    elapsedTime: 0,\n    pseudoElement: 0\n  }),\n  SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface),\n  WheelEventInterface = assign({}, MouseEventInterface, {\n    deltaX: function (event) {\n      return \"deltaX\" in event\n        ? event.deltaX\n        : \"wheelDeltaX\" in event\n          ? -event.wheelDeltaX\n          : 0;\n    },\n    deltaY: function (event) {\n      return \"deltaY\" in event\n        ? event.deltaY\n        : \"wheelDeltaY\" in event\n          ? -event.wheelDeltaY\n          : \"wheelDelta\" in event\n            ? -event.wheelDelta\n            : 0;\n    },\n    deltaZ: 0,\n    deltaMode: 0\n  }),\n  SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface),\n  ToggleEventInterface = assign({}, EventInterface, {\n    newState: 0,\n    oldState: 0,\n    source: 0\n  }),\n  SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface),\n  END_KEYCODES = [9, 13, 27, 32],\n  canUseCompositionEvent = canUseDOM && \"CompositionEvent\" in window,\n  documentMode = null;\ncanUseDOM &&\n  \"documentMode\" in document &&\n  (documentMode = document.documentMode);\nvar canUseTextInputEvent = canUseDOM && \"TextEvent\" in window && !documentMode,\n  useFallbackCompositionData =\n    canUseDOM &&\n    (!canUseCompositionEvent ||\n      (documentMode && 8 < documentMode && 11 >= documentMode)),\n  SPACEBAR_CHAR = String.fromCharCode(32),\n  hasSpaceKeypress = !1;\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case \"keyup\":\n      return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);\n    case \"keydown\":\n      return 229 !== nativeEvent.keyCode;\n    case \"keypress\":\n    case \"mousedown\":\n    case \"focusout\":\n      return !0;\n    default:\n      return !1;\n  }\n}\nfunction getDataFromCustomEvent(nativeEvent) {\n  nativeEvent = nativeEvent.detail;\n  return \"object\" === typeof nativeEvent && \"data\" in nativeEvent\n    ? nativeEvent.data\n    : null;\n}\nvar isComposing = !1;\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case \"compositionend\":\n      return getDataFromCustomEvent(nativeEvent);\n    case \"keypress\":\n      if (32 !== nativeEvent.which) return null;\n      hasSpaceKeypress = !0;\n      return SPACEBAR_CHAR;\n    case \"textInput\":\n      return (\n        (domEventName = nativeEvent.data),\n        domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName\n      );\n    default:\n      return null;\n  }\n}\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n  if (isComposing)\n    return \"compositionend\" === domEventName ||\n      (!canUseCompositionEvent &&\n        isFallbackCompositionEnd(domEventName, nativeEvent))\n      ? ((domEventName = getData()),\n        (fallbackText = startText = root = null),\n        (isComposing = !1),\n        domEventName)\n      : null;\n  switch (domEventName) {\n    case \"paste\":\n      return null;\n    case \"keypress\":\n      if (\n        !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) ||\n        (nativeEvent.ctrlKey && nativeEvent.altKey)\n      ) {\n        if (nativeEvent.char && 1 < nativeEvent.char.length)\n          return nativeEvent.char;\n        if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);\n      }\n      return null;\n    case \"compositionend\":\n      return useFallbackCompositionData && \"ko\" !== nativeEvent.locale\n        ? null\n        : nativeEvent.data;\n    default:\n      return null;\n  }\n}\nvar supportedInputTypes = {\n  color: !0,\n  date: !0,\n  datetime: !0,\n  \"datetime-local\": !0,\n  email: !0,\n  month: !0,\n  number: !0,\n  password: !0,\n  range: !0,\n  search: !0,\n  tel: !0,\n  text: !0,\n  time: !0,\n  url: !0,\n  week: !0\n};\nfunction isTextInputElement(elem) {\n  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n  return \"input\" === nodeName\n    ? !!supportedInputTypes[elem.type]\n    : \"textarea\" === nodeName\n      ? !0\n      : !1;\n}\nfunction createAndAccumulateChangeEvent(\n  dispatchQueue,\n  inst,\n  nativeEvent,\n  target\n) {\n  restoreTarget\n    ? restoreQueue\n      ? restoreQueue.push(target)\n      : (restoreQueue = [target])\n    : (restoreTarget = target);\n  inst = accumulateTwoPhaseListeners(inst, \"onChange\");\n  0 < inst.length &&\n    ((nativeEvent = new SyntheticEvent(\n      \"onChange\",\n      \"change\",\n      null,\n      nativeEvent,\n      target\n    )),\n    dispatchQueue.push({ event: nativeEvent, listeners: inst }));\n}\nvar activeElement$1 = null,\n  activeElementInst$1 = null;\nfunction runEventInBatch(dispatchQueue) {\n  processDispatchQueue(dispatchQueue, 0);\n}\nfunction getInstIfValueChanged(targetInst) {\n  var targetNode = getNodeFromInstance(targetInst);\n  if (updateValueIfChanged(targetNode)) return targetInst;\n}\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n  if (\"change\" === domEventName) return targetInst;\n}\nvar isInputEventSupported = !1;\nif (canUseDOM) {\n  var JSCompiler_inline_result$jscomp$318;\n  if (canUseDOM) {\n    var isSupported$jscomp$inline_474 = \"oninput\" in document;\n    if (!isSupported$jscomp$inline_474) {\n      var element$jscomp$inline_475 = document.createElement(\"div\");\n      element$jscomp$inline_475.setAttribute(\"oninput\", \"return;\");\n      isSupported$jscomp$inline_474 =\n        \"function\" === typeof element$jscomp$inline_475.oninput;\n    }\n    JSCompiler_inline_result$jscomp$318 = isSupported$jscomp$inline_474;\n  } else JSCompiler_inline_result$jscomp$318 = !1;\n  isInputEventSupported =\n    JSCompiler_inline_result$jscomp$318 &&\n    (!document.documentMode || 9 < document.documentMode);\n}\nfunction stopWatchingForValueChange() {\n  activeElement$1 &&\n    (activeElement$1.detachEvent(\"onpropertychange\", handlePropertyChange),\n    (activeElementInst$1 = activeElement$1 = null));\n}\nfunction handlePropertyChange(nativeEvent) {\n  if (\n    \"value\" === nativeEvent.propertyName &&\n    getInstIfValueChanged(activeElementInst$1)\n  ) {\n    var dispatchQueue = [];\n    createAndAccumulateChangeEvent(\n      dispatchQueue,\n      activeElementInst$1,\n      nativeEvent,\n      getEventTarget(nativeEvent)\n    );\n    batchedUpdates$1(runEventInBatch, dispatchQueue);\n  }\n}\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n  \"focusin\" === domEventName\n    ? (stopWatchingForValueChange(),\n      (activeElement$1 = target),\n      (activeElementInst$1 = targetInst),\n      activeElement$1.attachEvent(\"onpropertychange\", handlePropertyChange))\n    : \"focusout\" === domEventName && stopWatchingForValueChange();\n}\nfunction getTargetInstForInputEventPolyfill(domEventName) {\n  if (\n    \"selectionchange\" === domEventName ||\n    \"keyup\" === domEventName ||\n    \"keydown\" === domEventName\n  )\n    return getInstIfValueChanged(activeElementInst$1);\n}\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n  if (\"click\" === domEventName) return getInstIfValueChanged(targetInst);\n}\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n  if (\"input\" === domEventName || \"change\" === domEventName)\n    return getInstIfValueChanged(targetInst);\n}\nfunction is(x, y) {\n  return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is;\nfunction shallowEqual(objA, objB) {\n  if (objectIs(objA, objB)) return !0;\n  if (\n    \"object\" !== typeof objA ||\n    null === objA ||\n    \"object\" !== typeof objB ||\n    null === objB\n  )\n    return !1;\n  var keysA = Object.keys(objA),\n    keysB = Object.keys(objB);\n  if (keysA.length !== keysB.length) return !1;\n  for (keysB = 0; keysB < keysA.length; keysB++) {\n    var currentKey = keysA[keysB];\n    if (\n      !hasOwnProperty.call(objB, currentKey) ||\n      !objectIs(objA[currentKey], objB[currentKey])\n    )\n      return !1;\n  }\n  return !0;\n}\nfunction getActiveElement(doc) {\n  doc = doc || (\"undefined\" !== typeof document ? document : void 0);\n  if (\"undefined\" === typeof doc) return null;\n  try {\n    return doc.activeElement || doc.body;\n  } catch (e$20) {\n    return doc.body;\n  }\n}\nfunction getLeafNode(node) {\n  for (; node && node.firstChild; ) node = node.firstChild;\n  return node;\n}\nfunction getNodeForCharacterOffset(root, offset) {\n  var node = getLeafNode(root);\n  root = 0;\n  for (var nodeEnd; node; ) {\n    if (3 === node.nodeType) {\n      nodeEnd = root + node.textContent.length;\n      if (root <= offset && nodeEnd >= offset)\n        return { node: node, offset: offset - root };\n      root = nodeEnd;\n    }\n    a: {\n      for (; node; ) {\n        if (node.nextSibling) {\n          node = node.nextSibling;\n          break a;\n        }\n        node = node.parentNode;\n      }\n      node = void 0;\n    }\n    node = getLeafNode(node);\n  }\n}\nfunction containsNode(outerNode, innerNode) {\n  return outerNode && innerNode\n    ? outerNode === innerNode\n      ? !0\n      : outerNode && 3 === outerNode.nodeType\n        ? !1\n        : innerNode && 3 === innerNode.nodeType\n          ? containsNode(outerNode, innerNode.parentNode)\n          : \"contains\" in outerNode\n            ? outerNode.contains(innerNode)\n            : outerNode.compareDocumentPosition\n              ? !!(outerNode.compareDocumentPosition(innerNode) & 16)\n              : !1\n    : !1;\n}\nfunction getActiveElementDeep(containerInfo) {\n  containerInfo =\n    null != containerInfo &&\n    null != containerInfo.ownerDocument &&\n    null != containerInfo.ownerDocument.defaultView\n      ? containerInfo.ownerDocument.defaultView\n      : window;\n  for (\n    var element = getActiveElement(containerInfo.document);\n    element instanceof containerInfo.HTMLIFrameElement;\n\n  ) {\n    try {\n      var JSCompiler_inline_result =\n        \"string\" === typeof element.contentWindow.location.href;\n    } catch (err) {\n      JSCompiler_inline_result = !1;\n    }\n    if (JSCompiler_inline_result) containerInfo = element.contentWindow;\n    else break;\n    element = getActiveElement(containerInfo.document);\n  }\n  return element;\n}\nfunction hasSelectionCapabilities(elem) {\n  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n  return (\n    nodeName &&\n    ((\"input\" === nodeName &&\n      (\"text\" === elem.type ||\n        \"search\" === elem.type ||\n        \"tel\" === elem.type ||\n        \"url\" === elem.type ||\n        \"password\" === elem.type)) ||\n      \"textarea\" === nodeName ||\n      \"true\" === elem.contentEditable)\n  );\n}\nvar skipSelectionChangeEvent =\n    canUseDOM && \"documentMode\" in document && 11 >= document.documentMode,\n  activeElement = null,\n  activeElementInst = null,\n  lastSelection = null,\n  mouseDown = !1;\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n  var doc =\n    nativeEventTarget.window === nativeEventTarget\n      ? nativeEventTarget.document\n      : 9 === nativeEventTarget.nodeType\n        ? nativeEventTarget\n        : nativeEventTarget.ownerDocument;\n  mouseDown ||\n    null == activeElement ||\n    activeElement !== getActiveElement(doc) ||\n    ((doc = activeElement),\n    \"selectionStart\" in doc && hasSelectionCapabilities(doc)\n      ? (doc = { start: doc.selectionStart, end: doc.selectionEnd })\n      : ((doc = (\n          (doc.ownerDocument && doc.ownerDocument.defaultView) ||\n          window\n        ).getSelection()),\n        (doc = {\n          anchorNode: doc.anchorNode,\n          anchorOffset: doc.anchorOffset,\n          focusNode: doc.focusNode,\n          focusOffset: doc.focusOffset\n        })),\n    (lastSelection && shallowEqual(lastSelection, doc)) ||\n      ((lastSelection = doc),\n      (doc = accumulateTwoPhaseListeners(activeElementInst, \"onSelect\")),\n      0 < doc.length &&\n        ((nativeEvent = new SyntheticEvent(\n          \"onSelect\",\n          \"select\",\n          null,\n          nativeEvent,\n          nativeEventTarget\n        )),\n        dispatchQueue.push({ event: nativeEvent, listeners: doc }),\n        (nativeEvent.target = activeElement))));\n}\nfunction makePrefixMap(styleProp, eventName) {\n  var prefixes = {};\n  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n  prefixes[\"Webkit\" + styleProp] = \"webkit\" + eventName;\n  prefixes[\"Moz\" + styleProp] = \"moz\" + eventName;\n  return prefixes;\n}\nvar vendorPrefixes = {\n    animationend: makePrefixMap(\"Animation\", \"AnimationEnd\"),\n    animationiteration: makePrefixMap(\"Animation\", \"AnimationIteration\"),\n    animationstart: makePrefixMap(\"Animation\", \"AnimationStart\"),\n    transitionrun: makePrefixMap(\"Transition\", \"TransitionRun\"),\n    transitionstart: makePrefixMap(\"Transition\", \"TransitionStart\"),\n    transitioncancel: makePrefixMap(\"Transition\", \"TransitionCancel\"),\n    transitionend: makePrefixMap(\"Transition\", \"TransitionEnd\")\n  },\n  prefixedEventNames = {},\n  style = {};\ncanUseDOM &&\n  ((style = document.createElement(\"div\").style),\n  \"AnimationEvent\" in window ||\n    (delete vendorPrefixes.animationend.animation,\n    delete vendorPrefixes.animationiteration.animation,\n    delete vendorPrefixes.animationstart.animation),\n  \"TransitionEvent\" in window ||\n    delete vendorPrefixes.transitionend.transition);\nfunction getVendorPrefixedEventName(eventName) {\n  if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];\n  if (!vendorPrefixes[eventName]) return eventName;\n  var prefixMap = vendorPrefixes[eventName],\n    styleProp;\n  for (styleProp in prefixMap)\n    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)\n      return (prefixedEventNames[eventName] = prefixMap[styleProp]);\n  return eventName;\n}\nvar ANIMATION_END = getVendorPrefixedEventName(\"animationend\"),\n  ANIMATION_ITERATION = getVendorPrefixedEventName(\"animationiteration\"),\n  ANIMATION_START = getVendorPrefixedEventName(\"animationstart\"),\n  TRANSITION_RUN = getVendorPrefixedEventName(\"transitionrun\"),\n  TRANSITION_START = getVendorPrefixedEventName(\"transitionstart\"),\n  TRANSITION_CANCEL = getVendorPrefixedEventName(\"transitioncancel\"),\n  TRANSITION_END = getVendorPrefixedEventName(\"transitionend\"),\n  topLevelEventsToReactNames = new Map(),\n  simpleEventPluginEvents =\n    \"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\n      \" \"\n    );\nsimpleEventPluginEvents.push(\"scrollEnd\");\nfunction registerSimpleEvent(domEventName, reactName) {\n  topLevelEventsToReactNames.set(domEventName, reactName);\n  registerTwoPhaseEvent(reactName, [domEventName]);\n}\nvar globalClientIdCounter$1 = 0;\nfunction getViewTransitionName(props, instance) {\n  if (null != props.name && \"auto\" !== props.name) return props.name;\n  if (null !== instance.autoName) return instance.autoName;\n  props = pendingEffectsRoot.identifierPrefix;\n  var globalClientId = globalClientIdCounter$1++;\n  props = \"_\" + props + \"t_\" + globalClientId.toString(32) + \"_\";\n  return (instance.autoName = props);\n}\nfunction getClassNameByType(classByType) {\n  if (null == classByType || \"string\" === typeof classByType)\n    return classByType;\n  var className = null,\n    activeTypes = pendingTransitionTypes;\n  if (null !== activeTypes)\n    for (var i = 0; i < activeTypes.length; i++) {\n      var match = classByType[activeTypes[i]];\n      if (null != match) {\n        if (\"none\" === match) return \"none\";\n        className = null == className ? match : className + (\" \" + match);\n      }\n    }\n  return null == className ? classByType.default : className;\n}\nfunction getViewTransitionClassName(defaultClass, eventClass) {\n  defaultClass = getClassNameByType(defaultClass);\n  eventClass = getClassNameByType(eventClass);\n  return null == eventClass\n    ? \"auto\" === defaultClass\n      ? null\n      : defaultClass\n    : \"auto\" === eventClass\n      ? null\n      : eventClass;\n}\nvar reportGlobalError =\n    \"function\" === typeof reportError\n      ? reportError\n      : function (error) {\n          if (\n            \"object\" === typeof window &&\n            \"function\" === typeof window.ErrorEvent\n          ) {\n            var event = new window.ErrorEvent(\"error\", {\n              bubbles: !0,\n              cancelable: !0,\n              message:\n                \"object\" === typeof error &&\n                null !== error &&\n                \"string\" === typeof error.message\n                  ? String(error.message)\n                  : String(error),\n              error: error\n            });\n            if (!window.dispatchEvent(event)) return;\n          } else if (\n            \"object\" === typeof process &&\n            \"function\" === typeof process.emit\n          ) {\n            process.emit(\"uncaughtException\", error);\n            return;\n          }\n          console.error(error);\n        },\n  concurrentQueues = [],\n  concurrentQueuesIndex = 0,\n  concurrentlyUpdatedLanes = 0;\nfunction finishQueueingConcurrentUpdates() {\n  for (\n    var endIndex = concurrentQueuesIndex,\n      i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0);\n    i < endIndex;\n\n  ) {\n    var fiber = concurrentQueues[i];\n    concurrentQueues[i++] = null;\n    var queue = concurrentQueues[i];\n    concurrentQueues[i++] = null;\n    var update = concurrentQueues[i];\n    concurrentQueues[i++] = null;\n    var lane = concurrentQueues[i];\n    concurrentQueues[i++] = null;\n    if (null !== queue && null !== update) {\n      var pending = queue.pending;\n      null === pending\n        ? (update.next = update)\n        : ((update.next = pending.next), (pending.next = update));\n      queue.pending = update;\n    }\n    0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);\n  }\n}\nfunction enqueueUpdate$1(fiber, queue, update, lane) {\n  concurrentQueues[concurrentQueuesIndex++] = fiber;\n  concurrentQueues[concurrentQueuesIndex++] = queue;\n  concurrentQueues[concurrentQueuesIndex++] = update;\n  concurrentQueues[concurrentQueuesIndex++] = lane;\n  concurrentlyUpdatedLanes |= lane;\n  fiber.lanes |= lane;\n  fiber = fiber.alternate;\n  null !== fiber && (fiber.lanes |= lane);\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n  enqueueUpdate$1(fiber, queue, update, lane);\n  return getRootForUpdatedFiber(fiber);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n  enqueueUpdate$1(fiber, null, null, lane);\n  return getRootForUpdatedFiber(fiber);\n}\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {\n  sourceFiber.lanes |= lane;\n  var alternate = sourceFiber.alternate;\n  null !== alternate && (alternate.lanes |= lane);\n  for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )\n    (parent.childLanes |= lane),\n      (alternate = parent.alternate),\n      null !== alternate && (alternate.childLanes |= lane),\n      22 === parent.tag &&\n        ((sourceFiber = parent.stateNode),\n        null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),\n      (sourceFiber = parent),\n      (parent = parent.return);\n  return 3 === sourceFiber.tag\n    ? ((parent = sourceFiber.stateNode),\n      isHidden &&\n        null !== update &&\n        ((isHidden = 31 - clz32(lane)),\n        (sourceFiber = parent.hiddenUpdates),\n        (alternate = sourceFiber[isHidden]),\n        null === alternate\n          ? (sourceFiber[isHidden] = [update])\n          : alternate.push(update),\n        (update.lane = lane | 536870912)),\n      parent)\n    : null;\n}\nfunction getRootForUpdatedFiber(sourceFiber) {\n  if (50 < nestedUpdateCount)\n    throw (\n      ((nestedUpdateCount = 0),\n      (rootWithNestedUpdates = null),\n      Error(formatProdErrorMessage(185)))\n    );\n  for (var parent = sourceFiber.return; null !== parent; )\n    (sourceFiber = parent), (parent = sourceFiber.return);\n  return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;\n}\nvar emptyContextObject = {};\nfunction FiberNode(tag, pendingProps, key, mode) {\n  this.tag = tag;\n  this.key = key;\n  this.sibling =\n    this.child =\n    this.return =\n    this.stateNode =\n    this.type =\n    this.elementType =\n      null;\n  this.index = 0;\n  this.refCleanup = this.ref = null;\n  this.pendingProps = pendingProps;\n  this.dependencies =\n    this.memoizedState =\n    this.updateQueue =\n    this.memoizedProps =\n      null;\n  this.mode = mode;\n  this.subtreeFlags = this.flags = 0;\n  this.deletions = null;\n  this.childLanes = this.lanes = 0;\n  this.alternate = null;\n}\nfunction createFiberImplClass(tag, pendingProps, key, mode) {\n  return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n  Component = Component.prototype;\n  return !(!Component || !Component.isReactComponent);\n}\nfunction createWorkInProgress(current, pendingProps) {\n  var workInProgress = current.alternate;\n  null === workInProgress\n    ? ((workInProgress = createFiberImplClass(\n        current.tag,\n        pendingProps,\n        current.key,\n        current.mode\n      )),\n      (workInProgress.elementType = current.elementType),\n      (workInProgress.type = current.type),\n      (workInProgress.stateNode = current.stateNode),\n      (workInProgress.alternate = current),\n      (current.alternate = workInProgress))\n    : ((workInProgress.pendingProps = pendingProps),\n      (workInProgress.type = current.type),\n      (workInProgress.flags = 0),\n      (workInProgress.subtreeFlags = 0),\n      (workInProgress.deletions = null));\n  workInProgress.flags = current.flags & 1206910976;\n  workInProgress.childLanes = current.childLanes;\n  workInProgress.lanes = current.lanes;\n  workInProgress.child = current.child;\n  workInProgress.memoizedProps = current.memoizedProps;\n  workInProgress.memoizedState = current.memoizedState;\n  workInProgress.updateQueue = current.updateQueue;\n  pendingProps = current.dependencies;\n  workInProgress.dependencies =\n    null === pendingProps\n      ? null\n      : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };\n  workInProgress.sibling = current.sibling;\n  workInProgress.index = current.index;\n  workInProgress.ref = current.ref;\n  workInProgress.refCleanup = current.refCleanup;\n  return workInProgress;\n}\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n  workInProgress.flags &= 1206910978;\n  var current = workInProgress.alternate;\n  null === current\n    ? ((workInProgress.childLanes = 0),\n      (workInProgress.lanes = renderLanes),\n      (workInProgress.child = null),\n      (workInProgress.subtreeFlags = 0),\n      (workInProgress.memoizedProps = null),\n      (workInProgress.memoizedState = null),\n      (workInProgress.updateQueue = null),\n      (workInProgress.dependencies = null),\n      (workInProgress.stateNode = null))\n    : ((workInProgress.childLanes = current.childLanes),\n      (workInProgress.lanes = current.lanes),\n      (workInProgress.child = current.child),\n      (workInProgress.subtreeFlags = 0),\n      (workInProgress.deletions = null),\n      (workInProgress.memoizedProps = current.memoizedProps),\n      (workInProgress.memoizedState = current.memoizedState),\n      (workInProgress.updateQueue = current.updateQueue),\n      (workInProgress.type = current.type),\n      (renderLanes = current.dependencies),\n      (workInProgress.dependencies =\n        null === renderLanes\n          ? null\n          : {\n              lanes: renderLanes.lanes,\n              firstContext: renderLanes.firstContext\n            }));\n  return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n  type,\n  key,\n  pendingProps,\n  owner,\n  mode,\n  lanes\n) {\n  var fiberTag = 0;\n  owner = type;\n  if (\"function\" === typeof owner) shouldConstruct(owner) && (fiberTag = 1);\n  else if (\"string\" === typeof owner)\n    fiberTag = isHostHoistableType(\n      type,\n      pendingProps,\n      contextStackCursor.current\n    )\n      ? 26\n      : \"html\" === type || \"head\" === type || \"body\" === type\n        ? 27\n        : 5;\n  else\n    a: switch (owner) {\n      case REACT_ACTIVITY_TYPE:\n        return (\n          (type = createFiberImplClass(31, pendingProps, key, mode)),\n          (type.elementType = REACT_ACTIVITY_TYPE),\n          (type.lanes = lanes),\n          type\n        );\n      case REACT_FRAGMENT_TYPE:\n        return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n      case REACT_STRICT_MODE_TYPE:\n        fiberTag = 8;\n        mode |= 24;\n        break;\n      case REACT_PROFILER_TYPE:\n        return (\n          (type = createFiberImplClass(12, pendingProps, key, mode | 2)),\n          (type.elementType = REACT_PROFILER_TYPE),\n          (type.lanes = lanes),\n          type\n        );\n      case REACT_SUSPENSE_TYPE:\n        return (\n          (type = createFiberImplClass(13, pendingProps, key, mode)),\n          (type.elementType = REACT_SUSPENSE_TYPE),\n          (type.lanes = lanes),\n          type\n        );\n      case REACT_SUSPENSE_LIST_TYPE:\n        return (\n          (type = createFiberImplClass(19, pendingProps, key, mode)),\n          (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n          (type.lanes = lanes),\n          type\n        );\n      case REACT_LEGACY_HIDDEN_TYPE:\n      case REACT_VIEW_TRANSITION_TYPE:\n        return (\n          (type = mode | 32),\n          (type = createFiberImplClass(30, pendingProps, key, type)),\n          (type.elementType = REACT_VIEW_TRANSITION_TYPE),\n          (type.lanes = lanes),\n          (type.stateNode = {\n            autoName: null,\n            paired: null,\n            clones: null,\n            ref: null\n          }),\n          type\n        );\n      default:\n        if (\"object\" === typeof owner && null !== owner)\n          switch (owner.$$typeof) {\n            case REACT_CONTEXT_TYPE:\n              fiberTag = 10;\n              break a;\n            case REACT_CONSUMER_TYPE:\n              fiberTag = 9;\n              break a;\n            case REACT_FORWARD_REF_TYPE:\n              fiberTag = 11;\n              break a;\n            case REACT_MEMO_TYPE:\n              fiberTag = 14;\n              break a;\n            case REACT_LAZY_TYPE:\n              fiberTag = 16;\n              owner = null;\n              break a;\n          }\n        fiberTag = 29;\n        pendingProps = Error(\n          formatProdErrorMessage(130, null === type ? \"null\" : typeof type, \"\")\n        );\n        owner = null;\n    }\n  key = createFiberImplClass(fiberTag, pendingProps, key, mode);\n  key.elementType = type;\n  key.type = owner;\n  key.lanes = lanes;\n  return key;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n  elements = createFiberImplClass(7, elements, key, mode);\n  elements.lanes = lanes;\n  return elements;\n}\nfunction createFiberFromText(content, mode, lanes) {\n  content = createFiberImplClass(6, content, null, mode);\n  content.lanes = lanes;\n  return content;\n}\nfunction createFiberFromDehydratedFragment(dehydratedNode) {\n  var fiber = createFiberImplClass(18, null, null, 0);\n  fiber.stateNode = dehydratedNode;\n  return fiber;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n  mode = createFiberImplClass(\n    4,\n    null !== portal.children ? portal.children : [],\n    portal.key,\n    mode\n  );\n  mode.lanes = lanes;\n  mode.stateNode = {\n    containerInfo: portal.containerInfo,\n    pendingChildren: null,\n    implementation: portal.implementation\n  };\n  return mode;\n}\nvar CapturedStacks = new WeakMap();\nfunction createCapturedValueAtFiber(value, source) {\n  if (\"object\" === typeof value && null !== value) {\n    var existing = CapturedStacks.get(value);\n    if (void 0 !== existing) return existing;\n    source = {\n      value: value,\n      source: source,\n      stack: getStackByFiberInDevAndProd(source)\n    };\n    CapturedStacks.set(value, source);\n    return source;\n  }\n  return {\n    value: value,\n    source: source,\n    stack: getStackByFiberInDevAndProd(source)\n  };\n}\nvar forkStack = [],\n  forkStackIndex = 0,\n  treeForkProvider = null,\n  treeForkCount = 0,\n  idStack = [],\n  idStackIndex = 0,\n  treeContextProvider = null,\n  treeContextId = 1,\n  treeContextOverflow = \"\";\nfunction pushTreeFork(workInProgress, totalChildren) {\n  forkStack[forkStackIndex++] = treeForkCount;\n  forkStack[forkStackIndex++] = treeForkProvider;\n  treeForkProvider = workInProgress;\n  treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n  idStack[idStackIndex++] = treeContextId;\n  idStack[idStackIndex++] = treeContextOverflow;\n  idStack[idStackIndex++] = treeContextProvider;\n  treeContextProvider = workInProgress;\n  var baseIdWithLeadingBit = treeContextId;\n  workInProgress = treeContextOverflow;\n  var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;\n  baseIdWithLeadingBit &= ~(1 << baseLength);\n  index += 1;\n  var length = 32 - clz32(totalChildren) + baseLength;\n  if (30 < length) {\n    var numberOfOverflowBits = baseLength - (baseLength % 5);\n    length = (\n      baseIdWithLeadingBit &\n      ((1 << numberOfOverflowBits) - 1)\n    ).toString(32);\n    baseIdWithLeadingBit >>= numberOfOverflowBits;\n    baseLength -= numberOfOverflowBits;\n    treeContextId =\n      (1 << (32 - clz32(totalChildren) + baseLength)) |\n      (index << baseLength) |\n      baseIdWithLeadingBit;\n    treeContextOverflow = length + workInProgress;\n  } else\n    (treeContextId =\n      (1 << length) | (index << baseLength) | baseIdWithLeadingBit),\n      (treeContextOverflow = workInProgress);\n}\nfunction pushMaterializedTreeId(workInProgress) {\n  null !== workInProgress.return &&\n    (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));\n}\nfunction popTreeContext(workInProgress) {\n  for (; workInProgress === treeForkProvider; )\n    (treeForkProvider = forkStack[--forkStackIndex]),\n      (forkStack[forkStackIndex] = null),\n      (treeForkCount = forkStack[--forkStackIndex]),\n      (forkStack[forkStackIndex] = null);\n  for (; workInProgress === treeContextProvider; )\n    (treeContextProvider = idStack[--idStackIndex]),\n      (idStack[idStackIndex] = null),\n      (treeContextOverflow = idStack[--idStackIndex]),\n      (idStack[idStackIndex] = null),\n      (treeContextId = idStack[--idStackIndex]),\n      (idStack[idStackIndex] = null);\n}\nfunction restoreSuspendedTreeContext(workInProgress, suspendedContext) {\n  idStack[idStackIndex++] = treeContextId;\n  idStack[idStackIndex++] = treeContextOverflow;\n  idStack[idStackIndex++] = treeContextProvider;\n  treeContextId = suspendedContext.id;\n  treeContextOverflow = suspendedContext.overflow;\n  treeContextProvider = workInProgress;\n}\nvar hydrationParentFiber = null,\n  nextHydratableInstance = null,\n  isHydrating = !1,\n  hydrationErrors = null,\n  rootOrSingletonContext = !1,\n  HydrationMismatchException = Error(formatProdErrorMessage(519));\nfunction throwOnHydrationMismatch(fiber) {\n  var error = Error(\n    formatProdErrorMessage(\n      418,\n      1 < arguments.length && void 0 !== arguments[1] && arguments[1]\n        ? \"text\"\n        : \"HTML\",\n      \"\"\n    )\n  );\n  queueHydrationError(createCapturedValueAtFiber(error, fiber));\n  throw HydrationMismatchException;\n}\nfunction prepareToHydrateHostInstance(fiber) {\n  var instance = fiber.stateNode,\n    type = fiber.type,\n    props = fiber.memoizedProps;\n  instance[internalInstanceKey] = fiber;\n  instance[internalPropsKey] = props;\n  switch (type) {\n    case \"dialog\":\n      listenToNonDelegatedEvent(\"cancel\", instance);\n      listenToNonDelegatedEvent(\"close\", instance);\n      break;\n    case \"iframe\":\n    case \"object\":\n    case \"embed\":\n      listenToNonDelegatedEvent(\"load\", instance);\n      break;\n    case \"video\":\n    case \"audio\":\n      for (type = 0; type < mediaEventTypes.length; type++)\n        listenToNonDelegatedEvent(mediaEventTypes[type], instance);\n      break;\n    case \"source\":\n      listenToNonDelegatedEvent(\"error\", instance);\n      break;\n    case \"img\":\n    case \"image\":\n    case \"link\":\n      listenToNonDelegatedEvent(\"error\", instance);\n      listenToNonDelegatedEvent(\"load\", instance);\n      break;\n    case \"details\":\n      listenToNonDelegatedEvent(\"toggle\", instance);\n      break;\n    case \"input\":\n      listenToNonDelegatedEvent(\"invalid\", instance);\n      initInput(\n        instance,\n        props.value,\n        props.defaultValue,\n        props.checked,\n        props.defaultChecked,\n        props.type,\n        props.name,\n        !0\n      );\n      break;\n    case \"select\":\n      listenToNonDelegatedEvent(\"invalid\", instance);\n      break;\n    case \"textarea\":\n      listenToNonDelegatedEvent(\"invalid\", instance),\n        initTextarea(instance, props.value, props.defaultValue, props.children);\n  }\n  type = props.children;\n  (\"string\" !== typeof type &&\n    \"number\" !== typeof type &&\n    \"bigint\" !== typeof type) ||\n  instance.textContent === \"\" + type ||\n  !0 === props.suppressHydrationWarning ||\n  checkForUnmatchedText(instance.textContent, type)\n    ? (null != props.popover &&\n        (listenToNonDelegatedEvent(\"beforetoggle\", instance),\n        listenToNonDelegatedEvent(\"toggle\", instance)),\n      null != props.onScroll && listenToNonDelegatedEvent(\"scroll\", instance),\n      null != props.onScrollEnd &&\n        listenToNonDelegatedEvent(\"scrollend\", instance),\n      null != props.onClick && (instance.onclick = noop$1),\n      (instance = !0))\n    : (instance = !1);\n  instance || throwOnHydrationMismatch(fiber, !0);\n}\nfunction popToNextHostParent(fiber) {\n  for (hydrationParentFiber = fiber.return; hydrationParentFiber; )\n    switch (hydrationParentFiber.tag) {\n      case 5:\n      case 31:\n      case 13:\n        rootOrSingletonContext = !1;\n        return;\n      case 27:\n      case 3:\n        rootOrSingletonContext = !0;\n        return;\n      default:\n        hydrationParentFiber = hydrationParentFiber.return;\n    }\n}\nfunction popHydrationState(fiber) {\n  if (fiber !== hydrationParentFiber) return !1;\n  if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;\n  var tag = fiber.tag,\n    JSCompiler_temp;\n  if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {\n    if ((JSCompiler_temp = 5 === tag))\n      (JSCompiler_temp = fiber.type),\n        (JSCompiler_temp =\n          !(\"form\" !== JSCompiler_temp && \"button\" !== JSCompiler_temp) ||\n          shouldSetTextContent(fiber.type, fiber.memoizedProps));\n    JSCompiler_temp = !JSCompiler_temp;\n  }\n  JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);\n  popToNextHostParent(fiber);\n  if (13 === tag) {\n    fiber = fiber.memoizedState;\n    fiber = null !== fiber ? fiber.dehydrated : null;\n    if (!fiber) throw Error(formatProdErrorMessage(317));\n    nextHydratableInstance =\n      getNextHydratableInstanceAfterHydrationBoundary(fiber);\n  } else if (31 === tag) {\n    fiber = fiber.memoizedState;\n    fiber = null !== fiber ? fiber.dehydrated : null;\n    if (!fiber) throw Error(formatProdErrorMessage(317));\n    nextHydratableInstance =\n      getNextHydratableInstanceAfterHydrationBoundary(fiber);\n  } else\n    27 === tag\n      ? ((tag = nextHydratableInstance),\n        isSingletonScope(fiber.type)\n          ? ((fiber = previousHydratableOnEnteringScopedSingleton),\n            (previousHydratableOnEnteringScopedSingleton = null),\n            (nextHydratableInstance = fiber))\n          : (nextHydratableInstance = tag))\n      : (nextHydratableInstance = hydrationParentFiber\n          ? getNextHydratable(fiber.stateNode.nextSibling)\n          : null);\n  return !0;\n}\nfunction resetHydrationState() {\n  nextHydratableInstance = hydrationParentFiber = null;\n  isHydrating = !1;\n}\nfunction upgradeHydrationErrorsToRecoverable() {\n  var queuedErrors = hydrationErrors;\n  null !== queuedErrors &&\n    (null === workInProgressRootRecoverableErrors\n      ? (workInProgressRootRecoverableErrors = queuedErrors)\n      : workInProgressRootRecoverableErrors.push.apply(\n          workInProgressRootRecoverableErrors,\n          queuedErrors\n        ),\n    (hydrationErrors = null));\n  return queuedErrors;\n}\nfunction queueHydrationError(error) {\n  null === hydrationErrors\n    ? (hydrationErrors = [error])\n    : hydrationErrors.push(error);\n}\nvar valueCursor = createCursor(null),\n  currentlyRenderingFiber$1 = null,\n  lastContextDependency = null;\nfunction pushProvider(providerFiber, context, nextValue) {\n  push(valueCursor, context._currentValue);\n  context._currentValue = nextValue;\n}\nfunction popProvider(context) {\n  context._currentValue = valueCursor.current;\n  pop(valueCursor);\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n  for (; null !== parent; ) {\n    var alternate = parent.alternate;\n    (parent.childLanes & renderLanes) !== renderLanes\n      ? ((parent.childLanes |= renderLanes),\n        null !== alternate && (alternate.childLanes |= renderLanes))\n      : null !== alternate &&\n        (alternate.childLanes & renderLanes) !== renderLanes &&\n        (alternate.childLanes |= renderLanes);\n    if (parent === propagationRoot) break;\n    parent = parent.return;\n  }\n}\nfunction propagateContextChanges(\n  workInProgress,\n  contexts,\n  renderLanes,\n  forcePropagateEntireTree\n) {\n  var fiber = workInProgress.child;\n  null !== fiber && (fiber.return = workInProgress);\n  for (; null !== fiber; ) {\n    var list = fiber.dependencies;\n    if (null !== list) {\n      var nextFiber = fiber.child;\n      list = list.firstContext;\n      a: for (; null !== list; ) {\n        var dependency = list;\n        list = fiber;\n        for (var i = 0; i < contexts.length; i++)\n          if (dependency.context === contexts[i]) {\n            list.lanes |= renderLanes;\n            dependency = list.alternate;\n            null !== dependency && (dependency.lanes |= renderLanes);\n            scheduleContextWorkOnParentPath(\n              list.return,\n              renderLanes,\n              workInProgress\n            );\n            forcePropagateEntireTree || (nextFiber = null);\n            break a;\n          }\n        list = dependency.next;\n      }\n    } else if (18 === fiber.tag) {\n      nextFiber = fiber.return;\n      if (null === nextFiber) throw Error(formatProdErrorMessage(341));\n      nextFiber.lanes |= renderLanes;\n      list = nextFiber.alternate;\n      null !== list && (list.lanes |= renderLanes);\n      scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);\n      nextFiber = null;\n    } else\n      13 === fiber.tag &&\n      null !== fiber.memoizedState &&\n      null === fiber.memoizedState.dehydrated\n        ? ((fiber.lanes |= renderLanes),\n          (nextFiber = fiber.alternate),\n          null !== nextFiber && (nextFiber.lanes |= renderLanes),\n          scheduleContextWorkOnParentPath(\n            fiber.return,\n            renderLanes,\n            workInProgress\n          ),\n          (nextFiber = fiber.child),\n          (nextFiber = null !== nextFiber ? nextFiber.sibling : null))\n        : (nextFiber = fiber.child);\n    if (null !== nextFiber) nextFiber.return = fiber;\n    else\n      for (nextFiber = fiber; null !== nextFiber; ) {\n        if (nextFiber === workInProgress) {\n          nextFiber = null;\n          break;\n        }\n        fiber = nextFiber.sibling;\n        if (null !== fiber) {\n          fiber.return = nextFiber.return;\n          nextFiber = fiber;\n          break;\n        }\n        nextFiber = nextFiber.return;\n      }\n    fiber = nextFiber;\n  }\n}\nfunction propagateParentContextChanges(\n  current,\n  workInProgress,\n  renderLanes,\n  forcePropagateEntireTree\n) {\n  current = null;\n  for (\n    var parent = workInProgress, isInsidePropagationBailout = !1;\n    null !== parent;\n\n  ) {\n    if (!isInsidePropagationBailout)\n      if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;\n      else if (0 !== (parent.flags & 262144)) break;\n    if (10 === parent.tag) {\n      var currentParent = parent.alternate;\n      if (null === currentParent) throw Error(formatProdErrorMessage(387));\n      currentParent = currentParent.memoizedProps;\n      if (null !== currentParent) {\n        var context = parent.type;\n        objectIs(parent.pendingProps.value, currentParent.value) ||\n          (null !== current ? current.push(context) : (current = [context]));\n      }\n    } else if (parent === hostTransitionProviderCursor.current) {\n      currentParent = parent.alternate;\n      if (null === currentParent) throw Error(formatProdErrorMessage(387));\n      currentParent.memoizedState.memoizedState !==\n        parent.memoizedState.memoizedState &&\n        (null !== current\n          ? current.push(HostTransitionContext)\n          : (current = [HostTransitionContext]));\n    }\n    parent = parent.return;\n  }\n  null !== current &&\n    propagateContextChanges(\n      workInProgress,\n      current,\n      renderLanes,\n      forcePropagateEntireTree\n    );\n  workInProgress.flags |= 262144;\n  return null !== current;\n}\nfunction checkIfContextChanged(currentDependencies) {\n  for (\n    currentDependencies = currentDependencies.firstContext;\n    null !== currentDependencies;\n\n  ) {\n    if (\n      !objectIs(\n        currentDependencies.context._currentValue,\n        currentDependencies.memoizedValue\n      )\n    )\n      return !0;\n    currentDependencies = currentDependencies.next;\n  }\n  return !1;\n}\nfunction prepareToReadContext(workInProgress) {\n  currentlyRenderingFiber$1 = workInProgress;\n  lastContextDependency = null;\n  workInProgress = workInProgress.dependencies;\n  null !== workInProgress && (workInProgress.firstContext = null);\n}\nfunction readContext(context) {\n  return readContextForConsumer(currentlyRenderingFiber$1, context);\n}\nfunction readContextDuringReconciliation(consumer, context) {\n  null === currentlyRenderingFiber$1 && prepareToReadContext(consumer);\n  return readContextForConsumer(consumer, context);\n}\nfunction readContextForConsumer(consumer, context) {\n  var value = context._currentValue;\n  context = { context: context, memoizedValue: value, next: null };\n  if (null === lastContextDependency) {\n    if (null === consumer) throw Error(formatProdErrorMessage(308));\n    lastContextDependency = context;\n    consumer.dependencies = { lanes: 0, firstContext: context };\n    consumer.flags |= 524288;\n  } else lastContextDependency = lastContextDependency.next = context;\n  return value;\n}\nvar AbortControllerLocal =\n    \"undefined\" !== typeof AbortController\n      ? AbortController\n      : function () {\n          var listeners = [],\n            signal = (this.signal = {\n              aborted: !1,\n              addEventListener: function (type, listener) {\n                listeners.push(listener);\n              }\n            });\n          this.abort = function () {\n            signal.aborted = !0;\n            listeners.forEach(function (listener) {\n              return listener();\n            });\n          };\n        },\n  scheduleCallback$2 = Scheduler.unstable_scheduleCallback,\n  NormalPriority = Scheduler.unstable_NormalPriority,\n  CacheContext = {\n    $$typeof: REACT_CONTEXT_TYPE,\n    Consumer: null,\n    Provider: null,\n    _currentValue: null,\n    _currentValue2: null,\n    _threadCount: 0\n  };\nfunction createCache() {\n  return {\n    controller: new AbortControllerLocal(),\n    data: new Map(),\n    refCount: 0\n  };\n}\nfunction releaseCache(cache) {\n  cache.refCount--;\n  0 === cache.refCount &&\n    scheduleCallback$2(NormalPriority, function () {\n      cache.controller.abort();\n    });\n}\nfunction queueTransitionTypes(root, transitionTypes) {\n  if (0 !== (root.pendingLanes & 4194048)) {\n    var queued = root.transitionTypes;\n    null === queued && (queued = root.transitionTypes = []);\n    for (root = 0; root < transitionTypes.length; root++) {\n      var transitionType = transitionTypes[root];\n      -1 === queued.indexOf(transitionType) && queued.push(transitionType);\n    }\n  }\n}\nvar entangledTransitionTypes = null;\nfunction claimQueuedTransitionTypes(root) {\n  var claimed = root.transitionTypes;\n  root.transitionTypes = null;\n  return claimed;\n}\nvar currentEntangledListeners = null,\n  currentEntangledPendingCount = 0,\n  currentEntangledLane = 0,\n  currentEntangledActionThenable = null;\nfunction entangleAsyncAction(transition, thenable) {\n  if (null === currentEntangledListeners) {\n    var entangledListeners = (currentEntangledListeners = []);\n    currentEntangledPendingCount = 0;\n    currentEntangledLane = requestTransitionLane();\n    currentEntangledActionThenable = {\n      status: \"pending\",\n      value: void 0,\n      then: function (resolve) {\n        entangledListeners.push(resolve);\n      }\n    };\n  }\n  currentEntangledPendingCount++;\n  thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);\n  return thenable;\n}\nfunction pingEngtangledActionScope() {\n  if (\n    0 === --currentEntangledPendingCount &&\n    ((entangledTransitionTypes = null), null !== currentEntangledListeners)\n  ) {\n    null !== currentEntangledActionThenable &&\n      (currentEntangledActionThenable.status = \"fulfilled\");\n    var listeners = currentEntangledListeners;\n    currentEntangledListeners = null;\n    currentEntangledLane = 0;\n    currentEntangledActionThenable = null;\n    for (var i = 0; i < listeners.length; i++) (0, listeners[i])();\n  }\n}\nfunction chainThenableValue(thenable, result) {\n  var listeners = [],\n    thenableWithOverride = {\n      status: \"pending\",\n      value: null,\n      reason: null,\n      then: function (resolve) {\n        listeners.push(resolve);\n      }\n    };\n  thenable.then(\n    function () {\n      thenableWithOverride.status = \"fulfilled\";\n      thenableWithOverride.value = result;\n      for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);\n    },\n    function (error) {\n      thenableWithOverride.status = \"rejected\";\n      thenableWithOverride.reason = error;\n      for (error = 0; error < listeners.length; error++)\n        (0, listeners[error])(void 0);\n    }\n  );\n  return thenableWithOverride;\n}\nvar prevOnStartTransitionFinish = ReactSharedInternals.S;\nReactSharedInternals.S = function (transition, returnValue) {\n  globalMostRecentTransitionTime = now();\n  \"object\" === typeof returnValue &&\n    null !== returnValue &&\n    \"function\" === typeof returnValue.then &&\n    entangleAsyncAction(transition, returnValue);\n  if (null !== entangledTransitionTypes)\n    for (var root$28 = firstScheduledRoot; null !== root$28; )\n      queueTransitionTypes(root$28, entangledTransitionTypes),\n        (root$28 = root$28.next);\n  root$28 = transition.types;\n  if (null !== root$28) {\n    for (var root$29 = firstScheduledRoot; null !== root$29; )\n      queueTransitionTypes(root$29, root$28), (root$29 = root$29.next);\n    if (0 !== currentEntangledLane) {\n      root$29 = entangledTransitionTypes;\n      null === root$29 && (root$29 = entangledTransitionTypes = []);\n      for (var i = 0; i < root$28.length; i++) {\n        var transitionType = root$28[i];\n        -1 === root$29.indexOf(transitionType) && root$29.push(transitionType);\n      }\n    }\n  }\n  null !== prevOnStartTransitionFinish &&\n    prevOnStartTransitionFinish(transition, returnValue);\n};\nvar resumedCache = createCursor(null);\nfunction peekCacheFromPool() {\n  var cacheResumedFromPreviousRender = resumedCache.current;\n  return null !== cacheResumedFromPreviousRender\n    ? cacheResumedFromPreviousRender\n    : workInProgressRoot.pooledCache;\n}\nfunction pushTransition(offscreenWorkInProgress, prevCachePool) {\n  null === prevCachePool\n    ? push(resumedCache, resumedCache.current)\n    : push(resumedCache, prevCachePool.pool);\n}\nfunction getSuspendedCache() {\n  var cacheFromPool = peekCacheFromPool();\n  return null === cacheFromPool\n    ? null\n    : { parent: CacheContext._currentValue, pool: cacheFromPool };\n}\nvar SuspenseException = Error(formatProdErrorMessage(460)),\n  SuspenseyCommitException = Error(formatProdErrorMessage(474)),\n  SuspenseActionException = Error(formatProdErrorMessage(542)),\n  noopSuspenseyCommitThenable = { then: function () {} };\nfunction isThenableResolved(thenable) {\n  thenable = thenable.status;\n  return \"fulfilled\" === thenable || \"rejected\" === thenable;\n}\nfunction trackUsedThenable(thenableState, thenable, index) {\n  index = thenableState[index];\n  void 0 === index\n    ? thenableState.push(thenable)\n    : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index));\n  switch (thenable.status) {\n    case \"fulfilled\":\n      return thenable.value;\n    case \"rejected\":\n      thenableState = thenable.reason;\n      checkIfUseWrappedInAsyncCatch(thenableState);\n      if (void 0 === thenableState && !(\"reason\" in thenable))\n        throw Error(formatProdErrorMessage(600));\n      throw thenableState;\n    default:\n      if (\"string\" === typeof thenable.status) thenable.then(noop$1, noop$1);\n      else {\n        thenableState = workInProgressRoot;\n        if (null !== thenableState && 100 < thenableState.shellSuspendCounter)\n          throw Error(formatProdErrorMessage(482));\n        thenableState = thenable;\n        thenableState.status = \"pending\";\n        thenableState.then(\n          function (fulfilledValue) {\n            if (\"pending\" === thenable.status) {\n              var fulfilledThenable = thenable;\n              fulfilledThenable.status = \"fulfilled\";\n              fulfilledThenable.value = fulfilledValue;\n            }\n          },\n          function (error) {\n            if (\"pending\" === thenable.status) {\n              var rejectedThenable = thenable;\n              rejectedThenable.status = \"rejected\";\n              rejectedThenable.reason = error;\n            }\n          }\n        );\n      }\n      switch (thenable.status) {\n        case \"fulfilled\":\n          return thenable.value;\n        case \"rejected\":\n          throw (\n            ((thenableState = thenable.reason),\n            checkIfUseWrappedInAsyncCatch(thenableState),\n            thenableState)\n          );\n      }\n      suspendedThenable = thenable;\n      throw SuspenseException;\n  }\n}\nfunction resolveLazy(lazyType) {\n  try {\n    var init = lazyType._init;\n    return init(lazyType._payload);\n  } catch (x) {\n    if (null !== x && \"object\" === typeof x && \"function\" === typeof x.then)\n      throw ((suspendedThenable = x), SuspenseException);\n    throw x;\n  }\n}\nvar suspendedThenable = null;\nfunction getSuspendedThenable() {\n  if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));\n  var thenable = suspendedThenable;\n  suspendedThenable = null;\n  return thenable;\n}\nfunction checkIfUseWrappedInAsyncCatch(rejectedReason) {\n  if (\n    rejectedReason === SuspenseException ||\n    rejectedReason === SuspenseActionException\n  )\n    throw Error(formatProdErrorMessage(483));\n}\nvar thenableState$1 = null,\n  thenableIndexCounter$1 = 0;\nfunction unwrapThenable(thenable) {\n  var index = thenableIndexCounter$1;\n  thenableIndexCounter$1 += 1;\n  null === thenableState$1 && (thenableState$1 = []);\n  return trackUsedThenable(thenableState$1, thenable, index);\n}\nfunction coerceRef(workInProgress, element) {\n  element = element.props.ref;\n  workInProgress.ref = void 0 !== element ? element : null;\n}\nfunction throwOnInvalidObjectTypeImpl(returnFiber, newChild) {\n  if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)\n    throw Error(formatProdErrorMessage(525));\n  returnFiber = Object.prototype.toString.call(newChild);\n  throw Error(\n    formatProdErrorMessage(\n      31,\n      \"[object Object]\" === returnFiber\n        ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n        : returnFiber\n    )\n  );\n}\nfunction createChildReconciler(shouldTrackSideEffects) {\n  function deleteChild(returnFiber, childToDelete) {\n    if (shouldTrackSideEffects) {\n      var deletions = returnFiber.deletions;\n      null === deletions\n        ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))\n        : deletions.push(childToDelete);\n    }\n  }\n  function deleteRemainingChildren(returnFiber, currentFirstChild) {\n    if (!shouldTrackSideEffects) return null;\n    for (; null !== currentFirstChild; )\n      deleteChild(returnFiber, currentFirstChild),\n        (currentFirstChild = currentFirstChild.sibling);\n    return null;\n  }\n  function mapRemainingChildren(currentFirstChild) {\n    for (var existingChildren = new Map(); null !== currentFirstChild; )\n      null === currentFirstChild.key\n        ? existingChildren.set(currentFirstChild.index, currentFirstChild)\n        : existingChildren.set(currentFirstChild.key, currentFirstChild),\n        (currentFirstChild = currentFirstChild.sibling);\n    return existingChildren;\n  }\n  function useFiber(fiber, pendingProps) {\n    fiber = createWorkInProgress(fiber, pendingProps);\n    fiber.index = 0;\n    fiber.sibling = null;\n    return fiber;\n  }\n  function placeChild(newFiber, lastPlacedIndex, newIndex) {\n    newFiber.index = newIndex;\n    if (!shouldTrackSideEffects)\n      return (newFiber.flags |= 1048576), lastPlacedIndex;\n    newIndex = newFiber.alternate;\n    if (null !== newIndex)\n      return (\n        (newIndex = newIndex.index),\n        newIndex < lastPlacedIndex\n          ? ((newFiber.flags |= 2), lastPlacedIndex)\n          : newIndex\n      );\n    newFiber.flags |= 134217730;\n    return lastPlacedIndex;\n  }\n  function placeSingleChild(newFiber) {\n    shouldTrackSideEffects &&\n      null === newFiber.alternate &&\n      (newFiber.flags |= 134217730);\n    return newFiber;\n  }\n  function updateTextNode(returnFiber, current, textContent, lanes) {\n    if (null === current || 6 !== current.tag)\n      return (\n        (current = createFiberFromText(textContent, returnFiber.mode, lanes)),\n        (current.return = returnFiber),\n        current\n      );\n    current = useFiber(current, textContent);\n    current.return = returnFiber;\n    return current;\n  }\n  function updateElement(returnFiber, current, element, lanes) {\n    var elementType = element.type;\n    if (elementType === REACT_FRAGMENT_TYPE)\n      return (\n        (returnFiber = updateFragment(\n          returnFiber,\n          current,\n          element.props.children,\n          lanes,\n          element.key\n        )),\n        coerceRef(returnFiber, element),\n        returnFiber\n      );\n    if (\n      null !== current &&\n      (current.elementType === elementType ||\n        (\"object\" === typeof elementType &&\n          null !== elementType &&\n          elementType.$$typeof === REACT_LAZY_TYPE &&\n          resolveLazy(elementType) === current.type))\n    )\n      return (\n        (current = useFiber(current, element.props)),\n        coerceRef(current, element),\n        (current.return = returnFiber),\n        current\n      );\n    current = createFiberFromTypeAndProps(\n      element.type,\n      element.key,\n      element.props,\n      null,\n      returnFiber.mode,\n      lanes\n    );\n    coerceRef(current, element);\n    current.return = returnFiber;\n    return current;\n  }\n  function updatePortal(returnFiber, current, portal, lanes) {\n    if (\n      null === current ||\n      4 !== current.tag ||\n      current.stateNode.containerInfo !== portal.containerInfo ||\n      current.stateNode.implementation !== portal.implementation\n    )\n      return (\n        (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),\n        (current.return = returnFiber),\n        current\n      );\n    current = useFiber(current, portal.children || []);\n    current.return = returnFiber;\n    return current;\n  }\n  function updateFragment(returnFiber, current, fragment, lanes, key) {\n    if (null === current || 7 !== current.tag)\n      return (\n        (current = createFiberFromFragment(\n          fragment,\n          returnFiber.mode,\n          lanes,\n          key\n        )),\n        (current.return = returnFiber),\n        current\n      );\n    current = useFiber(current, fragment);\n    current.return = returnFiber;\n    return current;\n  }\n  function createChild(returnFiber, newChild, lanes) {\n    if (\n      (\"string\" === typeof newChild && \"\" !== newChild) ||\n      \"number\" === typeof newChild ||\n      \"bigint\" === typeof newChild\n    )\n      return (\n        (newChild = createFiberFromText(\n          \"\" + newChild,\n          returnFiber.mode,\n          lanes\n        )),\n        (newChild.return = returnFiber),\n        newChild\n      );\n    if (\"object\" === typeof newChild && null !== newChild) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          return (\n            (lanes = createFiberFromTypeAndProps(\n              newChild.type,\n              newChild.key,\n              newChild.props,\n              null,\n              returnFiber.mode,\n              lanes\n            )),\n            coerceRef(lanes, newChild),\n            (lanes.return = returnFiber),\n            lanes\n          );\n        case REACT_PORTAL_TYPE:\n          return (\n            (newChild = createFiberFromPortal(\n              newChild,\n              returnFiber.mode,\n              lanes\n            )),\n            (newChild.return = returnFiber),\n            newChild\n          );\n        case REACT_LAZY_TYPE:\n          return (\n            (newChild = resolveLazy(newChild)),\n            createChild(returnFiber, newChild, lanes)\n          );\n      }\n      if (isArrayImpl(newChild) || getIteratorFn(newChild))\n        return (\n          (newChild = createFiberFromFragment(\n            newChild,\n            returnFiber.mode,\n            lanes,\n            null\n          )),\n          (newChild.return = returnFiber),\n          newChild\n        );\n      if (\"function\" === typeof newChild.then)\n        return createChild(returnFiber, unwrapThenable(newChild), lanes);\n      if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n        return createChild(\n          returnFiber,\n          readContextDuringReconciliation(returnFiber, newChild),\n          lanes\n        );\n      throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n    }\n    return null;\n  }\n  function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n    var key = null !== oldFiber ? oldFiber.key : null;\n    if (\n      (\"string\" === typeof newChild && \"\" !== newChild) ||\n      \"number\" === typeof newChild ||\n      \"bigint\" === typeof newChild\n    )\n      return null !== key\n        ? null\n        : updateTextNode(returnFiber, oldFiber, \"\" + newChild, lanes);\n    if (\"object\" === typeof newChild && null !== newChild) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          return newChild.key === key\n            ? updateElement(returnFiber, oldFiber, newChild, lanes)\n            : null;\n        case REACT_PORTAL_TYPE:\n          return newChild.key === key\n            ? updatePortal(returnFiber, oldFiber, newChild, lanes)\n            : null;\n        case REACT_LAZY_TYPE:\n          return (\n            (newChild = resolveLazy(newChild)),\n            updateSlot(returnFiber, oldFiber, newChild, lanes)\n          );\n      }\n      if (isArrayImpl(newChild) || getIteratorFn(newChild))\n        return null !== key\n          ? null\n          : updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n      if (\"function\" === typeof newChild.then)\n        return updateSlot(\n          returnFiber,\n          oldFiber,\n          unwrapThenable(newChild),\n          lanes\n        );\n      if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n        return updateSlot(\n          returnFiber,\n          oldFiber,\n          readContextDuringReconciliation(returnFiber, newChild),\n          lanes\n        );\n      throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n    }\n    return null;\n  }\n  function updateFromMap(\n    existingChildren,\n    returnFiber,\n    newIdx,\n    newChild,\n    lanes\n  ) {\n    if (\n      (\"string\" === typeof newChild && \"\" !== newChild) ||\n      \"number\" === typeof newChild ||\n      \"bigint\" === typeof newChild\n    )\n      return (\n        (existingChildren = existingChildren.get(newIdx) || null),\n        updateTextNode(returnFiber, existingChildren, \"\" + newChild, lanes)\n      );\n    if (\"object\" === typeof newChild && null !== newChild) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          return (\n            (existingChildren =\n              existingChildren.get(\n                null === newChild.key ? newIdx : newChild.key\n              ) || null),\n            updateElement(returnFiber, existingChildren, newChild, lanes)\n          );\n        case REACT_PORTAL_TYPE:\n          return (\n            (existingChildren =\n              existingChildren.get(\n                null === newChild.key ? newIdx : newChild.key\n              ) || null),\n            updatePortal(returnFiber, existingChildren, newChild, lanes)\n          );\n        case REACT_LAZY_TYPE:\n          return (\n            (newChild = resolveLazy(newChild)),\n            updateFromMap(\n              existingChildren,\n              returnFiber,\n              newIdx,\n              newChild,\n              lanes\n            )\n          );\n      }\n      if (isArrayImpl(newChild) || getIteratorFn(newChild))\n        return (\n          (existingChildren = existingChildren.get(newIdx) || null),\n          updateFragment(returnFiber, existingChildren, newChild, lanes, null)\n        );\n      if (\"function\" === typeof newChild.then)\n        return updateFromMap(\n          existingChildren,\n          returnFiber,\n          newIdx,\n          unwrapThenable(newChild),\n          lanes\n        );\n      if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n        return updateFromMap(\n          existingChildren,\n          returnFiber,\n          newIdx,\n          readContextDuringReconciliation(returnFiber, newChild),\n          lanes\n        );\n      throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n    }\n    return null;\n  }\n  function reconcileChildrenArray(\n    returnFiber,\n    currentFirstChild,\n    newChildren,\n    lanes\n  ) {\n    for (\n      var resultingFirstChild = null,\n        previousNewFiber = null,\n        oldFiber = currentFirstChild,\n        newIdx = (currentFirstChild = 0),\n        nextOldFiber = null;\n      null !== oldFiber && newIdx < newChildren.length;\n      newIdx++\n    ) {\n      oldFiber.index > newIdx\n        ? ((nextOldFiber = oldFiber), (oldFiber = null))\n        : (nextOldFiber = oldFiber.sibling);\n      var newFiber = updateSlot(\n        returnFiber,\n        oldFiber,\n        newChildren[newIdx],\n        lanes\n      );\n      if (null === newFiber) {\n        null === oldFiber && (oldFiber = nextOldFiber);\n        break;\n      }\n      shouldTrackSideEffects &&\n        oldFiber &&\n        null === newFiber.alternate &&\n        deleteChild(returnFiber, oldFiber);\n      currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n      null === previousNewFiber\n        ? (resultingFirstChild = newFiber)\n        : (previousNewFiber.sibling = newFiber);\n      previousNewFiber = newFiber;\n      oldFiber = nextOldFiber;\n    }\n    if (newIdx === newChildren.length)\n      return (\n        deleteRemainingChildren(returnFiber, oldFiber),\n        isHydrating && pushTreeFork(returnFiber, newIdx),\n        resultingFirstChild\n      );\n    if (null === oldFiber) {\n      for (; newIdx < newChildren.length; newIdx++)\n        (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)),\n          null !== oldFiber &&\n            ((currentFirstChild = placeChild(\n              oldFiber,\n              currentFirstChild,\n              newIdx\n            )),\n            null === previousNewFiber\n              ? (resultingFirstChild = oldFiber)\n              : (previousNewFiber.sibling = oldFiber),\n            (previousNewFiber = oldFiber));\n      isHydrating && pushTreeFork(returnFiber, newIdx);\n      return resultingFirstChild;\n    }\n    for (\n      oldFiber = mapRemainingChildren(oldFiber);\n      newIdx < newChildren.length;\n      newIdx++\n    )\n      (nextOldFiber = updateFromMap(\n        oldFiber,\n        returnFiber,\n        newIdx,\n        newChildren[newIdx],\n        lanes\n      )),\n        null !== nextOldFiber &&\n          (shouldTrackSideEffects &&\n            ((newFiber = nextOldFiber.alternate),\n            null !== newFiber &&\n              oldFiber.delete(null === newFiber.key ? newIdx : newFiber.key)),\n          (currentFirstChild = placeChild(\n            nextOldFiber,\n            currentFirstChild,\n            newIdx\n          )),\n          null === previousNewFiber\n            ? (resultingFirstChild = nextOldFiber)\n            : (previousNewFiber.sibling = nextOldFiber),\n          (previousNewFiber = nextOldFiber));\n    shouldTrackSideEffects &&\n      oldFiber.forEach(function (child) {\n        return deleteChild(returnFiber, child);\n      });\n    isHydrating && pushTreeFork(returnFiber, newIdx);\n    return resultingFirstChild;\n  }\n  function reconcileChildrenIterator(\n    returnFiber,\n    currentFirstChild,\n    newChildren,\n    lanes\n  ) {\n    if (null == newChildren) throw Error(formatProdErrorMessage(151));\n    for (\n      var resultingFirstChild = null,\n        previousNewFiber = null,\n        oldFiber = currentFirstChild,\n        newIdx = (currentFirstChild = 0),\n        nextOldFiber = null,\n        step = newChildren.next();\n      null !== oldFiber && !step.done;\n      newIdx++, step = newChildren.next()\n    ) {\n      oldFiber.index > newIdx\n        ? ((nextOldFiber = oldFiber), (oldFiber = null))\n        : (nextOldFiber = oldFiber.sibling);\n      var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n      if (null === newFiber) {\n        null === oldFiber && (oldFiber = nextOldFiber);\n        break;\n      }\n      shouldTrackSideEffects &&\n        oldFiber &&\n        null === newFiber.alternate &&\n        deleteChild(returnFiber, oldFiber);\n      currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n      null === previousNewFiber\n        ? (resultingFirstChild = newFiber)\n        : (previousNewFiber.sibling = newFiber);\n      previousNewFiber = newFiber;\n      oldFiber = nextOldFiber;\n    }\n    if (step.done)\n      return (\n        deleteRemainingChildren(returnFiber, oldFiber),\n        isHydrating && pushTreeFork(returnFiber, newIdx),\n        resultingFirstChild\n      );\n    if (null === oldFiber) {\n      for (; !step.done; newIdx++, step = newChildren.next())\n        (step = createChild(returnFiber, step.value, lanes)),\n          null !== step &&\n            ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n            null === previousNewFiber\n              ? (resultingFirstChild = step)\n              : (previousNewFiber.sibling = step),\n            (previousNewFiber = step));\n      isHydrating && pushTreeFork(returnFiber, newIdx);\n      return resultingFirstChild;\n    }\n    for (\n      oldFiber = mapRemainingChildren(oldFiber);\n      !step.done;\n      newIdx++, step = newChildren.next()\n    )\n      (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),\n        null !== step &&\n          (shouldTrackSideEffects &&\n            ((nextOldFiber = step.alternate),\n            null !== nextOldFiber &&\n              oldFiber.delete(\n                null === nextOldFiber.key ? newIdx : nextOldFiber.key\n              )),\n          (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n          null === previousNewFiber\n            ? (resultingFirstChild = step)\n            : (previousNewFiber.sibling = step),\n          (previousNewFiber = step));\n    shouldTrackSideEffects &&\n      oldFiber.forEach(function (child) {\n        return deleteChild(returnFiber, child);\n      });\n    isHydrating && pushTreeFork(returnFiber, newIdx);\n    return resultingFirstChild;\n  }\n  function reconcileChildFibersImpl(\n    returnFiber,\n    currentFirstChild,\n    newChild,\n    lanes\n  ) {\n    \"object\" === typeof newChild &&\n      null !== newChild &&\n      newChild.type === REACT_FRAGMENT_TYPE &&\n      null === newChild.key &&\n      void 0 === newChild.props.ref &&\n      (newChild = newChild.props.children);\n    if (\"object\" === typeof newChild && null !== newChild) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          a: {\n            for (var key = newChild.key; null !== currentFirstChild; ) {\n              if (currentFirstChild.key === key) {\n                key = newChild.type;\n                if (key === REACT_FRAGMENT_TYPE) {\n                  if (7 === currentFirstChild.tag) {\n                    deleteRemainingChildren(\n                      returnFiber,\n                      currentFirstChild.sibling\n                    );\n                    lanes = useFiber(\n                      currentFirstChild,\n                      newChild.props.children\n                    );\n                    coerceRef(lanes, newChild);\n                    lanes.return = returnFiber;\n                    returnFiber = lanes;\n                    break a;\n                  }\n                } else if (\n                  currentFirstChild.elementType === key ||\n                  (\"object\" === typeof key &&\n                    null !== key &&\n                    key.$$typeof === REACT_LAZY_TYPE &&\n                    resolveLazy(key) === currentFirstChild.type)\n                ) {\n                  deleteRemainingChildren(\n                    returnFiber,\n                    currentFirstChild.sibling\n                  );\n                  lanes = useFiber(currentFirstChild, newChild.props);\n                  coerceRef(lanes, newChild);\n                  lanes.return = returnFiber;\n                  returnFiber = lanes;\n                  break a;\n                }\n                deleteRemainingChildren(returnFiber, currentFirstChild);\n                break;\n              } else deleteChild(returnFiber, currentFirstChild);\n              currentFirstChild = currentFirstChild.sibling;\n            }\n            newChild.type === REACT_FRAGMENT_TYPE\n              ? ((lanes = createFiberFromFragment(\n                  newChild.props.children,\n                  returnFiber.mode,\n                  lanes,\n                  newChild.key\n                )),\n                coerceRef(lanes, newChild),\n                (lanes.return = returnFiber),\n                (returnFiber = lanes))\n              : ((lanes = createFiberFromTypeAndProps(\n                  newChild.type,\n                  newChild.key,\n                  newChild.props,\n                  null,\n                  returnFiber.mode,\n                  lanes\n                )),\n                coerceRef(lanes, newChild),\n                (lanes.return = returnFiber),\n                (returnFiber = lanes));\n          }\n          return placeSingleChild(returnFiber);\n        case REACT_PORTAL_TYPE:\n          a: {\n            for (key = newChild.key; null !== currentFirstChild; ) {\n              if (currentFirstChild.key === key)\n                if (\n                  4 === currentFirstChild.tag &&\n                  currentFirstChild.stateNode.containerInfo ===\n                    newChild.containerInfo &&\n                  currentFirstChild.stateNode.implementation ===\n                    newChild.implementation\n                ) {\n                  deleteRemainingChildren(\n                    returnFiber,\n                    currentFirstChild.sibling\n                  );\n                  lanes = useFiber(currentFirstChild, newChild.children || []);\n                  lanes.return = returnFiber;\n                  returnFiber = lanes;\n                  break a;\n                } else {\n                  deleteRemainingChildren(returnFiber, currentFirstChild);\n                  break;\n                }\n              else deleteChild(returnFiber, currentFirstChild);\n              currentFirstChild = currentFirstChild.sibling;\n            }\n            lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n            lanes.return = returnFiber;\n            returnFiber = lanes;\n          }\n          return placeSingleChild(returnFiber);\n        case REACT_LAZY_TYPE:\n          return (\n            (newChild = resolveLazy(newChild)),\n            reconcileChildFibersImpl(\n              returnFiber,\n              currentFirstChild,\n              newChild,\n              lanes\n            )\n          );\n      }\n      if (isArrayImpl(newChild))\n        return reconcileChildrenArray(\n          returnFiber,\n          currentFirstChild,\n          newChild,\n          lanes\n        );\n      if (getIteratorFn(newChild)) {\n        key = getIteratorFn(newChild);\n        if (\"function\" !== typeof key) throw Error(formatProdErrorMessage(150));\n        newChild = key.call(newChild);\n        return reconcileChildrenIterator(\n          returnFiber,\n          currentFirstChild,\n          newChild,\n          lanes\n        );\n      }\n      if (\"function\" === typeof newChild.then)\n        return reconcileChildFibersImpl(\n          returnFiber,\n          currentFirstChild,\n          unwrapThenable(newChild),\n          lanes\n        );\n      if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n        return reconcileChildFibersImpl(\n          returnFiber,\n          currentFirstChild,\n          readContextDuringReconciliation(returnFiber, newChild),\n          lanes\n        );\n      throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n    }\n    return (\"string\" === typeof newChild && \"\" !== newChild) ||\n      \"number\" === typeof newChild ||\n      \"bigint\" === typeof newChild\n      ? ((newChild = \"\" + newChild),\n        null !== currentFirstChild && 6 === currentFirstChild.tag\n          ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n            (lanes = useFiber(currentFirstChild, newChild)),\n            (lanes.return = returnFiber),\n            (returnFiber = lanes))\n          : (deleteRemainingChildren(returnFiber, currentFirstChild),\n            (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)),\n            (lanes.return = returnFiber),\n            (returnFiber = lanes)),\n        placeSingleChild(returnFiber))\n      : deleteRemainingChildren(returnFiber, currentFirstChild);\n  }\n  return function (returnFiber, currentFirstChild, newChild, lanes) {\n    try {\n      thenableIndexCounter$1 = 0;\n      var firstChildFiber = reconcileChildFibersImpl(\n        returnFiber,\n        currentFirstChild,\n        newChild,\n        lanes\n      );\n      thenableState$1 = null;\n      return firstChildFiber;\n    } catch (x) {\n      if (x === SuspenseException || x === SuspenseActionException) throw x;\n      var fiber = createFiberImplClass(29, x, null, returnFiber.mode);\n      fiber.lanes = lanes;\n      fiber.return = returnFiber;\n      return fiber;\n    } finally {\n    }\n  };\n}\nvar reconcileChildFibers = createChildReconciler(!0),\n  mountChildFibers = createChildReconciler(!1),\n  hasForceUpdate = !1;\nfunction initializeUpdateQueue(fiber) {\n  fiber.updateQueue = {\n    baseState: fiber.memoizedState,\n    firstBaseUpdate: null,\n    lastBaseUpdate: null,\n    shared: { pending: null, lanes: 0, hiddenCallbacks: null },\n    callbacks: null\n  };\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n  current = current.updateQueue;\n  workInProgress.updateQueue === current &&\n    (workInProgress.updateQueue = {\n      baseState: current.baseState,\n      firstBaseUpdate: current.firstBaseUpdate,\n      lastBaseUpdate: current.lastBaseUpdate,\n      shared: current.shared,\n      callbacks: null\n    });\n}\nfunction createUpdate(lane) {\n  return { lane: lane, tag: 0, payload: null, callback: null, next: null };\n}\nfunction enqueueUpdate(fiber, update, lane) {\n  var updateQueue = fiber.updateQueue;\n  if (null === updateQueue) return null;\n  updateQueue = updateQueue.shared;\n  if (0 !== (executionContext & 2)) {\n    var pending = updateQueue.pending;\n    null === pending\n      ? (update.next = update)\n      : ((update.next = pending.next), (pending.next = update));\n    updateQueue.pending = update;\n    update = getRootForUpdatedFiber(fiber);\n    markUpdateLaneFromFiberToRoot(fiber, null, lane);\n    return update;\n  }\n  enqueueUpdate$1(fiber, updateQueue, update, lane);\n  return getRootForUpdatedFiber(fiber);\n}\nfunction entangleTransitions(root, fiber, lane) {\n  fiber = fiber.updateQueue;\n  if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194048))) {\n    var queueLanes = fiber.lanes;\n    queueLanes &= root.pendingLanes;\n    lane |= queueLanes;\n    fiber.lanes = lane;\n    markRootEntangled(root, lane);\n  }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n  var queue = workInProgress.updateQueue,\n    current = workInProgress.alternate;\n  if (\n    null !== current &&\n    ((current = current.updateQueue), queue === current)\n  ) {\n    var newFirst = null,\n      newLast = null;\n    queue = queue.firstBaseUpdate;\n    if (null !== queue) {\n      do {\n        var clone = {\n          lane: queue.lane,\n          tag: queue.tag,\n          payload: queue.payload,\n          callback: null,\n          next: null\n        };\n        null === newLast\n          ? (newFirst = newLast = clone)\n          : (newLast = newLast.next = clone);\n        queue = queue.next;\n      } while (null !== queue);\n      null === newLast\n        ? (newFirst = newLast = capturedUpdate)\n        : (newLast = newLast.next = capturedUpdate);\n    } else newFirst = newLast = capturedUpdate;\n    queue = {\n      baseState: current.baseState,\n      firstBaseUpdate: newFirst,\n      lastBaseUpdate: newLast,\n      shared: current.shared,\n      callbacks: current.callbacks\n    };\n    workInProgress.updateQueue = queue;\n    return;\n  }\n  workInProgress = queue.lastBaseUpdate;\n  null === workInProgress\n    ? (queue.firstBaseUpdate = capturedUpdate)\n    : (workInProgress.next = capturedUpdate);\n  queue.lastBaseUpdate = capturedUpdate;\n}\nvar didReadFromEntangledAsyncAction = !1;\nfunction suspendIfUpdateReadFromEntangledAsyncAction() {\n  if (didReadFromEntangledAsyncAction) {\n    var entangledActionThenable = currentEntangledActionThenable;\n    if (null !== entangledActionThenable) throw entangledActionThenable;\n  }\n}\nfunction processUpdateQueue(\n  workInProgress$jscomp$0,\n  props,\n  instance$jscomp$0,\n  renderLanes\n) {\n  didReadFromEntangledAsyncAction = !1;\n  var queue = workInProgress$jscomp$0.updateQueue;\n  hasForceUpdate = !1;\n  var firstBaseUpdate = queue.firstBaseUpdate,\n    lastBaseUpdate = queue.lastBaseUpdate,\n    pendingQueue = queue.shared.pending;\n  if (null !== pendingQueue) {\n    queue.shared.pending = null;\n    var lastPendingUpdate = pendingQueue,\n      firstPendingUpdate = lastPendingUpdate.next;\n    lastPendingUpdate.next = null;\n    null === lastBaseUpdate\n      ? (firstBaseUpdate = firstPendingUpdate)\n      : (lastBaseUpdate.next = firstPendingUpdate);\n    lastBaseUpdate = lastPendingUpdate;\n    var current = workInProgress$jscomp$0.alternate;\n    null !== current &&\n      ((current = current.updateQueue),\n      (pendingQueue = current.lastBaseUpdate),\n      pendingQueue !== lastBaseUpdate &&\n        (null === pendingQueue\n          ? (current.firstBaseUpdate = firstPendingUpdate)\n          : (pendingQueue.next = firstPendingUpdate),\n        (current.lastBaseUpdate = lastPendingUpdate)));\n  }\n  if (null !== firstBaseUpdate) {\n    var newState = queue.baseState;\n    lastBaseUpdate = 0;\n    current = firstPendingUpdate = lastPendingUpdate = null;\n    pendingQueue = firstBaseUpdate;\n    do {\n      var updateLane = pendingQueue.lane & -536870913,\n        isHiddenUpdate = updateLane !== pendingQueue.lane;\n      if (\n        isHiddenUpdate\n          ? (workInProgressRootRenderLanes & updateLane) === updateLane\n          : (renderLanes & updateLane) === updateLane\n      ) {\n        0 !== updateLane &&\n          updateLane === currentEntangledLane &&\n          (didReadFromEntangledAsyncAction = !0);\n        null !== current &&\n          (current = current.next =\n            {\n              lane: 0,\n              tag: pendingQueue.tag,\n              payload: pendingQueue.payload,\n              callback: null,\n              next: null\n            });\n        a: {\n          var workInProgress = workInProgress$jscomp$0,\n            update = pendingQueue;\n          updateLane = props;\n          var instance = instance$jscomp$0;\n          switch (update.tag) {\n            case 1:\n              workInProgress = update.payload;\n              if (\"function\" === typeof workInProgress) {\n                newState = workInProgress.call(instance, newState, updateLane);\n                break a;\n              }\n              newState = workInProgress;\n              break a;\n            case 3:\n              workInProgress.flags = (workInProgress.flags & -65537) | 128;\n            case 0:\n              workInProgress = update.payload;\n              updateLane =\n                \"function\" === typeof workInProgress\n                  ? workInProgress.call(instance, newState, updateLane)\n                  : workInProgress;\n              if (null === updateLane || void 0 === updateLane) break a;\n              newState = assign({}, newState, updateLane);\n              break a;\n            case 2:\n              hasForceUpdate = !0;\n          }\n        }\n        updateLane = pendingQueue.callback;\n        null !== updateLane &&\n          ((workInProgress$jscomp$0.flags |= 64),\n          isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192),\n          (isHiddenUpdate = queue.callbacks),\n          null === isHiddenUpdate\n            ? (queue.callbacks = [updateLane])\n            : isHiddenUpdate.push(updateLane));\n      } else\n        (isHiddenUpdate = {\n          lane: updateLane,\n          tag: pendingQueue.tag,\n          payload: pendingQueue.payload,\n          callback: pendingQueue.callback,\n          next: null\n        }),\n          null === current\n            ? ((firstPendingUpdate = current = isHiddenUpdate),\n              (lastPendingUpdate = newState))\n            : (current = current.next = isHiddenUpdate),\n          (lastBaseUpdate |= updateLane);\n      pendingQueue = pendingQueue.next;\n      if (null === pendingQueue)\n        if (((pendingQueue = queue.shared.pending), null === pendingQueue))\n          break;\n        else\n          (isHiddenUpdate = pendingQueue),\n            (pendingQueue = isHiddenUpdate.next),\n            (isHiddenUpdate.next = null),\n            (queue.lastBaseUpdate = isHiddenUpdate),\n            (queue.shared.pending = null);\n    } while (1);\n    null === current && (lastPendingUpdate = newState);\n    queue.baseState = lastPendingUpdate;\n    queue.firstBaseUpdate = firstPendingUpdate;\n    queue.lastBaseUpdate = current;\n    null === firstBaseUpdate && (queue.shared.lanes = 0);\n    workInProgressRootSkippedLanes |= lastBaseUpdate;\n    workInProgress$jscomp$0.lanes = lastBaseUpdate;\n    workInProgress$jscomp$0.memoizedState = newState;\n  }\n}\nfunction callCallback(callback, context) {\n  if (\"function\" !== typeof callback)\n    throw Error(formatProdErrorMessage(191, callback));\n  callback.call(context);\n}\nfunction commitCallbacks(updateQueue, context) {\n  var callbacks = updateQueue.callbacks;\n  if (null !== callbacks)\n    for (\n      updateQueue.callbacks = null, updateQueue = 0;\n      updateQueue < callbacks.length;\n      updateQueue++\n    )\n      callCallback(callbacks[updateQueue], context);\n}\nvar currentTreeHiddenStackCursor = createCursor(null),\n  prevEntangledRenderLanesCursor = createCursor(0);\nfunction pushHiddenContext(fiber, context) {\n  fiber = entangledRenderLanes;\n  push(prevEntangledRenderLanesCursor, fiber);\n  push(currentTreeHiddenStackCursor, context);\n  entangledRenderLanes = fiber | context.baseLanes;\n}\nfunction reuseHiddenContextOnStack() {\n  push(prevEntangledRenderLanesCursor, entangledRenderLanes);\n  push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);\n}\nfunction popHiddenContext() {\n  entangledRenderLanes = prevEntangledRenderLanesCursor.current;\n  pop(currentTreeHiddenStackCursor);\n  pop(prevEntangledRenderLanesCursor);\n}\nvar suspenseHandlerStackCursor = createCursor(null),\n  shellBoundary = null;\nfunction pushPrimaryTreeSuspenseHandler(handler) {\n  var current = handler.alternate;\n  push(suspenseStackCursor, suspenseStackCursor.current & 1);\n  push(suspenseHandlerStackCursor, handler);\n  null === shellBoundary &&\n    (null === current || null !== currentTreeHiddenStackCursor.current\n      ? (shellBoundary = handler)\n      : null !== current.memoizedState && (shellBoundary = handler));\n}\nfunction pushDehydratedActivitySuspenseHandler(fiber) {\n  push(suspenseStackCursor, suspenseStackCursor.current);\n  push(suspenseHandlerStackCursor, fiber);\n  null === shellBoundary && (shellBoundary = fiber);\n}\nfunction pushOffscreenSuspenseHandler(fiber) {\n  22 === fiber.tag\n    ? (push(suspenseStackCursor, suspenseStackCursor.current),\n      push(suspenseHandlerStackCursor, fiber),\n      null === shellBoundary && (shellBoundary = fiber))\n    : reuseSuspenseHandlerOnStack();\n}\nfunction reuseSuspenseHandlerOnStack() {\n  push(suspenseStackCursor, suspenseStackCursor.current);\n  push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n}\nfunction popSuspenseHandler(fiber) {\n  pop(suspenseHandlerStackCursor);\n  shellBoundary === fiber && (shellBoundary = null);\n  pop(suspenseStackCursor);\n}\nvar suspenseStackCursor = createCursor(0);\nfunction pushSuspenseListContext(fiber, newContext) {\n  push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n  push(suspenseStackCursor, newContext);\n}\nfunction popSuspenseListContext(fiber) {\n  pop(suspenseStackCursor);\n  pop(suspenseHandlerStackCursor);\n  shellBoundary === fiber && (shellBoundary = null);\n}\nfunction findFirstSuspended(row) {\n  for (var node = row; null !== node; ) {\n    if (13 === node.tag) {\n      var state = node.memoizedState;\n      if (\n        null !== state &&\n        ((state = state.dehydrated),\n        null === state ||\n          isSuspenseInstancePending(state) ||\n          isSuspenseInstanceFallback(state))\n      )\n        return node;\n    } else if (\n      19 === node.tag &&\n      \"independent\" !== node.memoizedProps.revealOrder\n    ) {\n      if (0 !== (node.flags & 128)) return node;\n    } else if (null !== node.child) {\n      node.child.return = node;\n      node = node.child;\n      continue;\n    }\n    if (node === row) break;\n    for (; null === node.sibling; ) {\n      if (null === node.return || node.return === row) return null;\n      node = node.return;\n    }\n    node.sibling.return = node.return;\n    node = node.sibling;\n  }\n  return null;\n}\nvar renderLanes = 0,\n  currentlyRenderingFiber = null,\n  currentHook = null,\n  workInProgressHook = null,\n  didScheduleRenderPhaseUpdate = !1,\n  didScheduleRenderPhaseUpdateDuringThisPass = !1,\n  shouldDoubleInvokeUserFnsInHooksDEV = !1,\n  localIdCounter = 0,\n  thenableIndexCounter = 0,\n  thenableState = null,\n  globalClientIdCounter = 0;\nfunction throwInvalidHookError() {\n  throw Error(formatProdErrorMessage(321));\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n  if (null === prevDeps) return !1;\n  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n    if (!objectIs(nextDeps[i], prevDeps[i])) return !1;\n  return !0;\n}\nfunction renderWithHooks(\n  current,\n  workInProgress,\n  Component,\n  props,\n  secondArg,\n  nextRenderLanes\n) {\n  renderLanes = nextRenderLanes;\n  currentlyRenderingFiber = workInProgress;\n  workInProgress.memoizedState = null;\n  workInProgress.updateQueue = null;\n  workInProgress.lanes = 0;\n  ReactSharedInternals.H =\n    null === current || null === current.memoizedState\n      ? HooksDispatcherOnMount\n      : HooksDispatcherOnUpdate;\n  shouldDoubleInvokeUserFnsInHooksDEV = !1;\n  nextRenderLanes = Component(props, secondArg);\n  shouldDoubleInvokeUserFnsInHooksDEV = !1;\n  didScheduleRenderPhaseUpdateDuringThisPass &&\n    (nextRenderLanes = renderWithHooksAgain(\n      workInProgress,\n      Component,\n      props,\n      secondArg\n    ));\n  finishRenderingHooks(current);\n  return nextRenderLanes;\n}\nfunction finishRenderingHooks(current) {\n  ReactSharedInternals.H = ContextOnlyDispatcher;\n  var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;\n  renderLanes = 0;\n  workInProgressHook = currentHook = currentlyRenderingFiber = null;\n  didScheduleRenderPhaseUpdate = !1;\n  thenableIndexCounter = 0;\n  thenableState = null;\n  if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));\n  null === current ||\n    didReceiveUpdate ||\n    ((current = current.dependencies),\n    null !== current &&\n      checkIfContextChanged(current) &&\n      (didReceiveUpdate = !0));\n}\nfunction renderWithHooksAgain(workInProgress, Component, props, secondArg) {\n  currentlyRenderingFiber = workInProgress;\n  var numberOfReRenders = 0;\n  do {\n    didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);\n    thenableIndexCounter = 0;\n    didScheduleRenderPhaseUpdateDuringThisPass = !1;\n    if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));\n    numberOfReRenders += 1;\n    workInProgressHook = currentHook = null;\n    if (null != workInProgress.updateQueue) {\n      var children = workInProgress.updateQueue;\n      children.lastEffect = null;\n      children.events = null;\n      children.stores = null;\n      null != children.memoCache && (children.memoCache.index = 0);\n    }\n    ReactSharedInternals.H = HooksDispatcherOnRerender;\n    children = Component(props, secondArg);\n  } while (didScheduleRenderPhaseUpdateDuringThisPass);\n  return children;\n}\nfunction TransitionAwareHostComponent() {\n  var dispatcher = ReactSharedInternals.H,\n    maybeThenable = dispatcher.useState()[0];\n  maybeThenable =\n    \"function\" === typeof maybeThenable.then\n      ? useThenable(maybeThenable)\n      : maybeThenable;\n  dispatcher = dispatcher.useState()[0];\n  (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher &&\n    (currentlyRenderingFiber.flags |= 1024);\n  return maybeThenable;\n}\nfunction checkDidRenderIdHook() {\n  var didRenderIdHook = 0 !== localIdCounter;\n  localIdCounter = 0;\n  return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n  workInProgress.updateQueue = current.updateQueue;\n  workInProgress.flags &= -2053;\n  current.lanes &= ~lanes;\n}\nfunction resetHooksOnUnwind(workInProgress) {\n  if (didScheduleRenderPhaseUpdate) {\n    for (\n      workInProgress = workInProgress.memoizedState;\n      null !== workInProgress;\n\n    ) {\n      var queue = workInProgress.queue;\n      null !== queue && (queue.pending = null);\n      workInProgress = workInProgress.next;\n    }\n    didScheduleRenderPhaseUpdate = !1;\n  }\n  renderLanes = 0;\n  workInProgressHook = currentHook = currentlyRenderingFiber = null;\n  didScheduleRenderPhaseUpdateDuringThisPass = !1;\n  thenableIndexCounter = localIdCounter = 0;\n  thenableState = null;\n}\nfunction mountWorkInProgressHook() {\n  var hook = {\n    memoizedState: null,\n    baseState: null,\n    baseQueue: null,\n    queue: null,\n    next: null\n  };\n  null === workInProgressHook\n    ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook)\n    : (workInProgressHook = workInProgressHook.next = hook);\n  return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n  if (null === currentHook) {\n    var nextCurrentHook = currentlyRenderingFiber.alternate;\n    nextCurrentHook =\n      null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;\n  } else nextCurrentHook = currentHook.next;\n  var nextWorkInProgressHook =\n    null === workInProgressHook\n      ? currentlyRenderingFiber.memoizedState\n      : workInProgressHook.next;\n  if (null !== nextWorkInProgressHook)\n    (workInProgressHook = nextWorkInProgressHook),\n      (currentHook = nextCurrentHook);\n  else {\n    if (null === nextCurrentHook) {\n      if (null === currentlyRenderingFiber.alternate)\n        throw Error(formatProdErrorMessage(467));\n      throw Error(formatProdErrorMessage(310));\n    }\n    currentHook = nextCurrentHook;\n    nextCurrentHook = {\n      memoizedState: currentHook.memoizedState,\n      baseState: currentHook.baseState,\n      baseQueue: currentHook.baseQueue,\n      queue: currentHook.queue,\n      next: null\n    };\n    null === workInProgressHook\n      ? (currentlyRenderingFiber.memoizedState = workInProgressHook =\n          nextCurrentHook)\n      : (workInProgressHook = workInProgressHook.next = nextCurrentHook);\n  }\n  return workInProgressHook;\n}\nfunction createFunctionComponentUpdateQueue() {\n  return { lastEffect: null, events: null, stores: null, memoCache: null };\n}\nfunction useThenable(thenable) {\n  var index = thenableIndexCounter;\n  thenableIndexCounter += 1;\n  null === thenableState && (thenableState = []);\n  thenable = trackUsedThenable(thenableState, thenable, index);\n  index = currentlyRenderingFiber;\n  null ===\n    (null === workInProgressHook\n      ? index.memoizedState\n      : workInProgressHook.next) &&\n    ((index = index.alternate),\n    (ReactSharedInternals.H =\n      null === index || null === index.memoizedState\n        ? HooksDispatcherOnMount\n        : HooksDispatcherOnUpdate));\n  return thenable;\n}\nfunction use(usable) {\n  if (null !== usable && \"object\" === typeof usable) {\n    if (\"function\" === typeof usable.then) return useThenable(usable);\n    if (usable.$$typeof === REACT_RECOVERABLE_TYPE) return;\n    if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);\n  }\n  throw Error(formatProdErrorMessage(438, String(usable)));\n}\nfunction useMemoCache(size) {\n  var memoCache = null,\n    updateQueue = currentlyRenderingFiber.updateQueue;\n  null !== updateQueue && (memoCache = updateQueue.memoCache);\n  if (null == memoCache) {\n    var current = currentlyRenderingFiber.alternate;\n    null !== current &&\n      ((current = current.updateQueue),\n      null !== current &&\n        ((current = current.memoCache),\n        null != current &&\n          (memoCache = {\n            data: current.data.map(function (array) {\n              return array.slice();\n            }),\n            index: 0\n          })));\n  }\n  null == memoCache && (memoCache = { data: [], index: 0 });\n  null === updateQueue &&\n    ((updateQueue = createFunctionComponentUpdateQueue()),\n    (currentlyRenderingFiber.updateQueue = updateQueue));\n  updateQueue.memoCache = memoCache;\n  updateQueue = memoCache.data[memoCache.index];\n  if (void 0 === updateQueue)\n    for (\n      updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0;\n      current < size;\n      current++\n    )\n      updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;\n  memoCache.index++;\n  return updateQueue;\n}\nfunction basicStateReducer(state, action) {\n  return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n  var hook = updateWorkInProgressHook();\n  return updateReducerImpl(hook, currentHook, reducer);\n}\nfunction updateReducerImpl(hook, current, reducer) {\n  var queue = hook.queue;\n  if (null === queue) throw Error(formatProdErrorMessage(311));\n  queue.lastRenderedReducer = reducer;\n  var baseQueue = hook.baseQueue,\n    pendingQueue = queue.pending;\n  if (null !== pendingQueue) {\n    if (null !== baseQueue) {\n      var baseFirst = baseQueue.next;\n      baseQueue.next = pendingQueue.next;\n      pendingQueue.next = baseFirst;\n    }\n    current.baseQueue = baseQueue = pendingQueue;\n    queue.pending = null;\n  }\n  pendingQueue = hook.baseState;\n  if (null === baseQueue) hook.memoizedState = pendingQueue;\n  else {\n    current = baseQueue.next;\n    var newBaseQueueFirst = (baseFirst = null),\n      newBaseQueueLast = null,\n      update = current,\n      didReadFromEntangledAsyncAction$64 = !1;\n    do {\n      var updateLane = update.lane & -536870913;\n      if (\n        updateLane !== update.lane\n          ? (workInProgressRootRenderLanes & updateLane) === updateLane\n          : (renderLanes & updateLane) === updateLane\n      ) {\n        var revertLane = update.revertLane;\n        if (0 === revertLane)\n          null !== newBaseQueueLast &&\n            (newBaseQueueLast = newBaseQueueLast.next =\n              {\n                lane: 0,\n                revertLane: 0,\n                gesture: null,\n                action: update.action,\n                hasEagerState: update.hasEagerState,\n                eagerState: update.eagerState,\n                next: null\n              }),\n            updateLane === currentEntangledLane &&\n              (didReadFromEntangledAsyncAction$64 = !0);\n        else if ((renderLanes & revertLane) === revertLane) {\n          update = update.next;\n          revertLane === currentEntangledLane &&\n            (didReadFromEntangledAsyncAction$64 = !0);\n          continue;\n        } else\n          (updateLane = {\n            lane: 0,\n            revertLane: update.revertLane,\n            gesture: null,\n            action: update.action,\n            hasEagerState: update.hasEagerState,\n            eagerState: update.eagerState,\n            next: null\n          }),\n            null === newBaseQueueLast\n              ? ((newBaseQueueFirst = newBaseQueueLast = updateLane),\n                (baseFirst = pendingQueue))\n              : (newBaseQueueLast = newBaseQueueLast.next = updateLane),\n            (currentlyRenderingFiber.lanes |= revertLane),\n            (workInProgressRootSkippedLanes |= revertLane);\n        updateLane = update.action;\n        shouldDoubleInvokeUserFnsInHooksDEV &&\n          reducer(pendingQueue, updateLane);\n        pendingQueue = update.hasEagerState\n          ? update.eagerState\n          : reducer(pendingQueue, updateLane);\n      } else\n        (revertLane = {\n          lane: updateLane,\n          revertLane: update.revertLane,\n          gesture: update.gesture,\n          action: update.action,\n          hasEagerState: update.hasEagerState,\n          eagerState: update.eagerState,\n          next: null\n        }),\n          null === newBaseQueueLast\n            ? ((newBaseQueueFirst = newBaseQueueLast = revertLane),\n              (baseFirst = pendingQueue))\n            : (newBaseQueueLast = newBaseQueueLast.next = revertLane),\n          (currentlyRenderingFiber.lanes |= updateLane),\n          (workInProgressRootSkippedLanes |= updateLane);\n      update = update.next;\n    } while (null !== update && update !== current);\n    null === newBaseQueueLast\n      ? (baseFirst = pendingQueue)\n      : (newBaseQueueLast.next = newBaseQueueFirst);\n    if (\n      !objectIs(pendingQueue, hook.memoizedState) &&\n      ((didReceiveUpdate = !0),\n      didReadFromEntangledAsyncAction$64 &&\n        ((reducer = currentEntangledActionThenable), null !== reducer))\n    )\n      throw reducer;\n    hook.memoizedState = pendingQueue;\n    hook.baseState = baseFirst;\n    hook.baseQueue = newBaseQueueLast;\n    queue.lastRenderedState = pendingQueue;\n  }\n  null === baseQueue && (queue.lanes = 0);\n  return [hook.memoizedState, queue.dispatch];\n}\nfunction rerenderReducer(reducer) {\n  var hook = updateWorkInProgressHook(),\n    queue = hook.queue;\n  if (null === queue) throw Error(formatProdErrorMessage(311));\n  queue.lastRenderedReducer = reducer;\n  var dispatch = queue.dispatch,\n    lastRenderPhaseUpdate = queue.pending,\n    newState = hook.memoizedState;\n  if (null !== lastRenderPhaseUpdate) {\n    queue.pending = null;\n    var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);\n    do (newState = reducer(newState, update.action)), (update = update.next);\n    while (update !== lastRenderPhaseUpdate);\n    objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n    hook.memoizedState = newState;\n    null === hook.baseQueue && (hook.baseState = newState);\n    queue.lastRenderedState = newState;\n  }\n  return [newState, dispatch];\n}\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  var fiber = currentlyRenderingFiber,\n    hook = updateWorkInProgressHook(),\n    isHydrating$jscomp$0 = isHydrating;\n  if (isHydrating$jscomp$0) {\n    if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));\n    getServerSnapshot = getServerSnapshot();\n  } else getServerSnapshot = getSnapshot();\n  var snapshotChanged = !objectIs(\n    (currentHook || hook).memoizedState,\n    getServerSnapshot\n  );\n  snapshotChanged &&\n    ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));\n  hook = hook.queue;\n  updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [\n    subscribe\n  ]);\n  subscribe =\n    hook.getSnapshot !== getSnapshot ||\n    snapshotChanged ||\n    (null !== workInProgressHook &&\n      0 !== (workInProgressHook.memoizedState.tag & 1));\n  pushSimpleEffect(\n    subscribe ? 9 : 8,\n    { destroy: void 0 },\n    updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot),\n    null\n  );\n  if (subscribe) {\n    fiber.flags |= 2048;\n    if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n    isHydrating$jscomp$0 ||\n      0 !== (renderLanes & 127) ||\n      pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n  }\n  return getServerSnapshot;\n}\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n  fiber.flags |= 16384;\n  fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };\n  getSnapshot = currentlyRenderingFiber.updateQueue;\n  null === getSnapshot\n    ? ((getSnapshot = createFunctionComponentUpdateQueue()),\n      (currentlyRenderingFiber.updateQueue = getSnapshot),\n      (getSnapshot.stores = [fiber]))\n    : ((renderedSnapshot = getSnapshot.stores),\n      null === renderedSnapshot\n        ? (getSnapshot.stores = [fiber])\n        : renderedSnapshot.push(fiber));\n}\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n  inst.value = nextSnapshot;\n  inst.getSnapshot = getSnapshot;\n  checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n}\nfunction subscribeToStore(fiber, inst, subscribe) {\n  return subscribe(function () {\n    checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n  });\n}\nfunction checkIfSnapshotChanged(inst) {\n  var latestGetSnapshot = inst.getSnapshot;\n  inst = inst.value;\n  try {\n    var nextValue = latestGetSnapshot();\n    return !objectIs(inst, nextValue);\n  } catch (error) {\n    return !0;\n  }\n}\nfunction forceStoreRerender(fiber) {\n  var root = enqueueConcurrentRenderForLane(fiber, 2);\n  null !== root && scheduleUpdateOnFiber(root, fiber, 2);\n}\nfunction mountStateImpl(initialState) {\n  var hook = mountWorkInProgressHook();\n  if (\"function\" === typeof initialState) {\n    var initialStateInitializer = initialState;\n    initialState = initialStateInitializer();\n    if (shouldDoubleInvokeUserFnsInHooksDEV) {\n      setIsStrictModeForDevtools(!0);\n      try {\n        initialStateInitializer();\n      } finally {\n        setIsStrictModeForDevtools(!1);\n      }\n    }\n  }\n  hook.memoizedState = hook.baseState = initialState;\n  hook.queue = {\n    pending: null,\n    lanes: 0,\n    dispatch: null,\n    lastRenderedReducer: basicStateReducer,\n    lastRenderedState: initialState\n  };\n  return hook;\n}\nfunction updateOptimisticImpl(hook, current, passthrough, reducer) {\n  hook.baseState = passthrough;\n  return updateReducerImpl(\n    hook,\n    currentHook,\n    \"function\" === typeof reducer ? reducer : basicStateReducer\n  );\n}\nfunction dispatchActionState(\n  fiber,\n  actionQueue,\n  setPendingState,\n  setState,\n  payload\n) {\n  if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));\n  fiber = actionQueue.action;\n  if (null !== fiber) {\n    var actionNode = {\n      payload: payload,\n      action: fiber,\n      next: null,\n      isTransition: !0,\n      status: \"pending\",\n      value: null,\n      reason: null,\n      listeners: [],\n      then: function (listener) {\n        actionNode.listeners.push(listener);\n      }\n    };\n    null !== ReactSharedInternals.T\n      ? setPendingState(!0)\n      : (actionNode.isTransition = !1);\n    setState(actionNode);\n    setPendingState = actionQueue.pending;\n    null === setPendingState\n      ? ((actionNode.next = actionQueue.pending = actionNode),\n        runActionStateAction(actionQueue, actionNode))\n      : ((actionNode.next = setPendingState.next),\n        (actionQueue.pending = setPendingState.next = actionNode));\n  }\n}\nfunction runActionStateAction(actionQueue, node) {\n  var action = node.action,\n    payload = node.payload,\n    prevState = actionQueue.state;\n  if (node.isTransition) {\n    var prevTransition = ReactSharedInternals.T,\n      currentTransition = {};\n    currentTransition.types =\n      null !== prevTransition ? prevTransition.types : null;\n    ReactSharedInternals.T = currentTransition;\n    try {\n      var returnValue = action(prevState, payload),\n        onStartTransitionFinish = ReactSharedInternals.S;\n      null !== onStartTransitionFinish &&\n        onStartTransitionFinish(currentTransition, returnValue);\n      handleActionReturnValue(actionQueue, node, returnValue);\n    } catch (error) {\n      onActionError(actionQueue, node, error);\n    } finally {\n      null !== prevTransition &&\n        null !== currentTransition.types &&\n        (prevTransition.types = currentTransition.types),\n        (ReactSharedInternals.T = prevTransition);\n    }\n  } else\n    try {\n      (prevTransition = action(prevState, payload)),\n        handleActionReturnValue(actionQueue, node, prevTransition);\n    } catch (error$70) {\n      onActionError(actionQueue, node, error$70);\n    }\n}\nfunction handleActionReturnValue(actionQueue, node, returnValue) {\n  null !== returnValue &&\n  \"object\" === typeof returnValue &&\n  \"function\" === typeof returnValue.then\n    ? returnValue.then(\n        function (nextState) {\n          onActionSuccess(actionQueue, node, nextState);\n        },\n        function (error) {\n          return onActionError(actionQueue, node, error);\n        }\n      )\n    : onActionSuccess(actionQueue, node, returnValue);\n}\nfunction onActionSuccess(actionQueue, actionNode, nextState) {\n  actionNode.status = \"fulfilled\";\n  actionNode.value = nextState;\n  notifyActionListeners(actionNode);\n  actionQueue.state = nextState;\n  actionNode = actionQueue.pending;\n  null !== actionNode &&\n    ((nextState = actionNode.next),\n    nextState === actionNode\n      ? (actionQueue.pending = null)\n      : ((nextState = nextState.next),\n        (actionNode.next = nextState),\n        runActionStateAction(actionQueue, nextState)));\n}\nfunction onActionError(actionQueue, actionNode, error) {\n  var last = actionQueue.pending;\n  actionQueue.pending = null;\n  if (null !== last) {\n    last = last.next;\n    do\n      (actionNode.status = \"rejected\"),\n        (actionNode.reason = error),\n        notifyActionListeners(actionNode),\n        (actionNode = actionNode.next);\n    while (actionNode !== last);\n  }\n  actionQueue.action = null;\n}\nfunction notifyActionListeners(actionNode) {\n  actionNode = actionNode.listeners;\n  for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();\n}\nfunction actionStateReducer(oldState, newState) {\n  return newState;\n}\nfunction mountActionState(action, initialStateProp) {\n  if (isHydrating) {\n    var ssrFormState = workInProgressRoot.formState;\n    if (null !== ssrFormState) {\n      a: {\n        var JSCompiler_inline_result = currentlyRenderingFiber;\n        if (isHydrating) {\n          if (nextHydratableInstance) {\n            b: {\n              var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;\n              for (\n                var inRootOrSingleton = rootOrSingletonContext;\n                8 !== JSCompiler_inline_result$jscomp$0.nodeType;\n\n              ) {\n                if (!inRootOrSingleton) {\n                  JSCompiler_inline_result$jscomp$0 = null;\n                  break b;\n                }\n                JSCompiler_inline_result$jscomp$0 = getNextHydratable(\n                  JSCompiler_inline_result$jscomp$0.nextSibling\n                );\n                if (null === JSCompiler_inline_result$jscomp$0) {\n                  JSCompiler_inline_result$jscomp$0 = null;\n                  break b;\n                }\n              }\n              inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;\n              JSCompiler_inline_result$jscomp$0 =\n                \"F!\" === inRootOrSingleton || \"F\" === inRootOrSingleton\n                  ? JSCompiler_inline_result$jscomp$0\n                  : null;\n            }\n            if (JSCompiler_inline_result$jscomp$0) {\n              nextHydratableInstance = getNextHydratable(\n                JSCompiler_inline_result$jscomp$0.nextSibling\n              );\n              JSCompiler_inline_result =\n                \"F!\" === JSCompiler_inline_result$jscomp$0.data;\n              break a;\n            }\n          }\n          throwOnHydrationMismatch(JSCompiler_inline_result);\n        }\n        JSCompiler_inline_result = !1;\n      }\n      JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);\n    }\n  }\n  ssrFormState = mountWorkInProgressHook();\n  ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;\n  JSCompiler_inline_result = {\n    pending: null,\n    lanes: 0,\n    dispatch: null,\n    lastRenderedReducer: actionStateReducer,\n    lastRenderedState: initialStateProp\n  };\n  ssrFormState.queue = JSCompiler_inline_result;\n  ssrFormState = dispatchSetState.bind(\n    null,\n    currentlyRenderingFiber,\n    JSCompiler_inline_result\n  );\n  JSCompiler_inline_result.dispatch = ssrFormState;\n  JSCompiler_inline_result = mountStateImpl(!1);\n  inRootOrSingleton = dispatchOptimisticSetState.bind(\n    null,\n    currentlyRenderingFiber,\n    !1,\n    JSCompiler_inline_result.queue\n  );\n  JSCompiler_inline_result = mountWorkInProgressHook();\n  JSCompiler_inline_result$jscomp$0 = {\n    state: initialStateProp,\n    dispatch: null,\n    action: action,\n    pending: null\n  };\n  JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;\n  ssrFormState = dispatchActionState.bind(\n    null,\n    currentlyRenderingFiber,\n    JSCompiler_inline_result$jscomp$0,\n    inRootOrSingleton,\n    ssrFormState\n  );\n  JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;\n  JSCompiler_inline_result.memoizedState = action;\n  return [initialStateProp, ssrFormState, !1];\n}\nfunction updateActionState(action) {\n  var stateHook = updateWorkInProgressHook();\n  return updateActionStateImpl(stateHook, currentHook, action);\n}\nfunction updateActionStateImpl(stateHook, currentStateHook, action) {\n  currentStateHook = updateReducerImpl(\n    stateHook,\n    currentStateHook,\n    actionStateReducer\n  )[0];\n  stateHook = updateReducer(basicStateReducer)[0];\n  if (\n    \"object\" === typeof currentStateHook &&\n    null !== currentStateHook &&\n    \"function\" === typeof currentStateHook.then\n  )\n    try {\n      var state = useThenable(currentStateHook);\n    } catch (x) {\n      if (x === SuspenseException) throw SuspenseActionException;\n      throw x;\n    }\n  else state = currentStateHook;\n  currentStateHook = updateWorkInProgressHook();\n  var actionQueue = currentStateHook.queue,\n    dispatch = actionQueue.dispatch;\n  action !== currentStateHook.memoizedState &&\n    ((currentlyRenderingFiber.flags |= 2048),\n    pushSimpleEffect(\n      9,\n      { destroy: void 0 },\n      actionStateActionEffect.bind(null, actionQueue, action),\n      null\n    ));\n  return [state, dispatch, stateHook];\n}\nfunction actionStateActionEffect(actionQueue, action) {\n  actionQueue.action = action;\n}\nfunction rerenderActionState(action) {\n  var stateHook = updateWorkInProgressHook(),\n    currentStateHook = currentHook;\n  if (null !== currentStateHook)\n    return updateActionStateImpl(stateHook, currentStateHook, action);\n  updateWorkInProgressHook();\n  stateHook = stateHook.memoizedState;\n  currentStateHook = updateWorkInProgressHook();\n  var dispatch = currentStateHook.queue.dispatch;\n  currentStateHook.memoizedState = action;\n  return [stateHook, dispatch, !1];\n}\nfunction pushSimpleEffect(tag, inst, create, deps) {\n  tag = { tag: tag, create: create, deps: deps, inst: inst, next: null };\n  inst = currentlyRenderingFiber.updateQueue;\n  null === inst &&\n    ((inst = createFunctionComponentUpdateQueue()),\n    (currentlyRenderingFiber.updateQueue = inst));\n  create = inst.lastEffect;\n  null === create\n    ? (inst.lastEffect = tag.next = tag)\n    : ((deps = create.next),\n      (create.next = tag),\n      (tag.next = deps),\n      (inst.lastEffect = tag));\n  return tag;\n}\nfunction updateRef() {\n  return updateWorkInProgressHook().memoizedState;\n}\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n  var hook = mountWorkInProgressHook();\n  currentlyRenderingFiber.flags |= fiberFlags;\n  hook.memoizedState = pushSimpleEffect(\n    1 | hookFlags,\n    { destroy: void 0 },\n    create,\n    void 0 === deps ? null : deps\n  );\n}\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n  var hook = updateWorkInProgressHook();\n  deps = void 0 === deps ? null : deps;\n  var inst = hook.memoizedState.inst;\n  null !== currentHook &&\n  null !== deps &&\n  areHookInputsEqual(deps, currentHook.memoizedState.deps)\n    ? (hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps))\n    : ((currentlyRenderingFiber.flags |= fiberFlags),\n      (hook.memoizedState = pushSimpleEffect(\n        1 | hookFlags,\n        inst,\n        create,\n        deps\n      )));\n}\nfunction mountEffect(create, deps) {\n  mountEffectImpl(8390656, 8, create, deps);\n}\nfunction updateEffect(create, deps) {\n  updateEffectImpl(2048, 8, create, deps);\n}\nfunction useEffectEventImpl(payload) {\n  currentlyRenderingFiber.flags |= 4;\n  var componentUpdateQueue = currentlyRenderingFiber.updateQueue;\n  if (null === componentUpdateQueue)\n    (componentUpdateQueue = createFunctionComponentUpdateQueue()),\n      (currentlyRenderingFiber.updateQueue = componentUpdateQueue),\n      (componentUpdateQueue.events = [payload]);\n  else {\n    var events = componentUpdateQueue.events;\n    null === events\n      ? (componentUpdateQueue.events = [payload])\n      : events.push(payload);\n  }\n}\nfunction updateEvent(callback) {\n  var ref = updateWorkInProgressHook().memoizedState;\n  useEffectEventImpl({ ref: ref, nextImpl: callback });\n  return function () {\n    if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440));\n    return ref.impl.apply(void 0, arguments);\n  };\n}\nfunction updateInsertionEffect(create, deps) {\n  return updateEffectImpl(4, 2, create, deps);\n}\nfunction updateLayoutEffect(create, deps) {\n  return updateEffectImpl(4, 4, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n  if (\"function\" === typeof ref) {\n    create = create();\n    var refCleanup = ref(create);\n    return function () {\n      \"function\" === typeof refCleanup ? refCleanup() : ref(null);\n    };\n  }\n  if (null !== ref && void 0 !== ref)\n    return (\n      (create = create()),\n      (ref.current = create),\n      function () {\n        ref.current = null;\n      }\n    );\n}\nfunction updateImperativeHandle(ref, create, deps) {\n  deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n  updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);\n}\nfunction mountDebugValue() {}\nfunction updateCallback(callback, deps) {\n  var hook = updateWorkInProgressHook();\n  deps = void 0 === deps ? null : deps;\n  var prevState = hook.memoizedState;\n  if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n    return prevState[0];\n  hook.memoizedState = [callback, deps];\n  return callback;\n}\nfunction updateMemo(nextCreate, deps) {\n  var hook = updateWorkInProgressHook();\n  deps = void 0 === deps ? null : deps;\n  var prevState = hook.memoizedState;\n  if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n    return prevState[0];\n  prevState = nextCreate();\n  if (shouldDoubleInvokeUserFnsInHooksDEV) {\n    setIsStrictModeForDevtools(!0);\n    try {\n      nextCreate();\n    } finally {\n      setIsStrictModeForDevtools(!1);\n    }\n  }\n  hook.memoizedState = [prevState, deps];\n  return prevState;\n}\nfunction mountDeferredValueImpl(hook, value, initialValue) {\n  if (\n    void 0 === initialValue ||\n    (0 !== (renderLanes & 1073741824) &&\n      0 === (workInProgressRootRenderLanes & 261930))\n  )\n    return (hook.memoizedState = value);\n  hook.memoizedState = initialValue;\n  hook = requestDeferredLane();\n  currentlyRenderingFiber.lanes |= hook;\n  workInProgressRootSkippedLanes |= hook;\n  return initialValue;\n}\nfunction updateDeferredValueImpl(hook, prevValue, value, initialValue) {\n  if (objectIs(value, prevValue)) return value;\n  if (null !== currentTreeHiddenStackCursor.current)\n    return (\n      (hook = mountDeferredValueImpl(hook, value, initialValue)),\n      objectIs(hook, prevValue) || (didReceiveUpdate = !0),\n      hook\n    );\n  if (\n    0 === (renderLanes & 106) ||\n    (0 !== (renderLanes & 1073741824) &&\n      0 === (workInProgressRootRenderLanes & 261930))\n  )\n    return (didReceiveUpdate = !0), (hook.memoizedState = value);\n  hook = requestDeferredLane();\n  currentlyRenderingFiber.lanes |= hook;\n  workInProgressRootSkippedLanes |= hook;\n  return prevValue;\n}\nfunction startTransition(fiber, queue, pendingState, finishedState, callback) {\n  var previousPriority = ReactDOMSharedInternals.p;\n  ReactDOMSharedInternals.p =\n    0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;\n  var prevTransition = ReactSharedInternals.T,\n    currentTransition = {};\n  currentTransition.types =\n    null !== prevTransition ? prevTransition.types : null;\n  ReactSharedInternals.T = currentTransition;\n  dispatchOptimisticSetState(fiber, !1, queue, pendingState);\n  try {\n    var returnValue = callback(),\n      onStartTransitionFinish = ReactSharedInternals.S;\n    null !== onStartTransitionFinish &&\n      onStartTransitionFinish(currentTransition, returnValue);\n    if (\n      null !== returnValue &&\n      \"object\" === typeof returnValue &&\n      \"function\" === typeof returnValue.then\n    ) {\n      var thenableForFinishedState = chainThenableValue(\n        returnValue,\n        finishedState\n      );\n      dispatchSetStateInternal(\n        fiber,\n        queue,\n        thenableForFinishedState,\n        requestUpdateLane(fiber)\n      );\n    } else\n      dispatchSetStateInternal(\n        fiber,\n        queue,\n        finishedState,\n        requestUpdateLane(fiber)\n      );\n  } catch (error) {\n    dispatchSetStateInternal(\n      fiber,\n      queue,\n      { then: function () {}, status: \"rejected\", reason: error },\n      requestUpdateLane()\n    );\n  } finally {\n    (ReactDOMSharedInternals.p = previousPriority),\n      null !== prevTransition &&\n        null !== currentTransition.types &&\n        (prevTransition.types = currentTransition.types),\n      (ReactSharedInternals.T = prevTransition);\n  }\n}\nfunction noop() {}\nfunction startHostTransition(formFiber, pendingState, action, formData) {\n  if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));\n  var queue = ensureFormComponentIsStateful(formFiber).queue;\n  startTransition(\n    formFiber,\n    queue,\n    pendingState,\n    sharedNotPendingObject,\n    null === action\n      ? noop\n      : function () {\n          requestFormReset$1(formFiber);\n          return action(formData);\n        }\n  );\n}\nfunction ensureFormComponentIsStateful(formFiber) {\n  var existingStateHook = formFiber.memoizedState;\n  if (null !== existingStateHook) return existingStateHook;\n  existingStateHook = {\n    memoizedState: sharedNotPendingObject,\n    baseState: sharedNotPendingObject,\n    baseQueue: null,\n    queue: {\n      pending: null,\n      lanes: 0,\n      dispatch: null,\n      lastRenderedReducer: basicStateReducer,\n      lastRenderedState: sharedNotPendingObject\n    },\n    next: null\n  };\n  var initialResetState = {};\n  existingStateHook.next = {\n    memoizedState: initialResetState,\n    baseState: initialResetState,\n    baseQueue: null,\n    queue: {\n      pending: null,\n      lanes: 0,\n      dispatch: null,\n      lastRenderedReducer: basicStateReducer,\n      lastRenderedState: initialResetState\n    },\n    next: null\n  };\n  formFiber.memoizedState = existingStateHook;\n  formFiber = formFiber.alternate;\n  null !== formFiber && (formFiber.memoizedState = existingStateHook);\n  return existingStateHook;\n}\nfunction requestFormReset$1(formFiber) {\n  var stateHook = ensureFormComponentIsStateful(formFiber);\n  null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);\n  dispatchSetStateInternal(\n    formFiber,\n    stateHook.next.queue,\n    {},\n    requestUpdateLane()\n  );\n}\nfunction useHostTransitionStatus() {\n  return readContext(HostTransitionContext);\n}\nfunction updateId() {\n  return updateWorkInProgressHook().memoizedState;\n}\nfunction updateRefresh() {\n  return updateWorkInProgressHook().memoizedState;\n}\nfunction refreshCache(fiber) {\n  for (var provider = fiber.return; null !== provider; ) {\n    switch (provider.tag) {\n      case 24:\n      case 3:\n        var lane = requestUpdateLane();\n        fiber = createUpdate(lane);\n        var root$73 = enqueueUpdate(provider, fiber, lane);\n        null !== root$73 &&\n          (scheduleUpdateOnFiber(root$73, provider, lane),\n          entangleTransitions(root$73, provider, lane));\n        provider = { cache: createCache() };\n        fiber.payload = provider;\n        return;\n    }\n    provider = provider.return;\n  }\n}\nfunction dispatchReducerAction(fiber, queue, action) {\n  var lane = requestUpdateLane();\n  action = {\n    lane: lane,\n    revertLane: 0,\n    gesture: null,\n    action: action,\n    hasEagerState: !1,\n    eagerState: null,\n    next: null\n  };\n  isRenderPhaseUpdate(fiber)\n    ? enqueueRenderPhaseUpdate(queue, action)\n    : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),\n      null !== action &&\n        (scheduleUpdateOnFiber(action, fiber, lane),\n        entangleTransitionUpdate(action, queue, lane)));\n}\nfunction dispatchSetState(fiber, queue, action) {\n  var lane = requestUpdateLane();\n  dispatchSetStateInternal(fiber, queue, action, lane);\n}\nfunction dispatchSetStateInternal(fiber, queue, action, lane) {\n  var update = {\n    lane: lane,\n    revertLane: 0,\n    gesture: null,\n    action: action,\n    hasEagerState: !1,\n    eagerState: null,\n    next: null\n  };\n  if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);\n  else {\n    var alternate = fiber.alternate;\n    if (\n      0 === fiber.lanes &&\n      (null === alternate || 0 === alternate.lanes) &&\n      ((alternate = queue.lastRenderedReducer), null !== alternate)\n    )\n      try {\n        var currentState = queue.lastRenderedState,\n          eagerState = alternate(currentState, action);\n        update.hasEagerState = !0;\n        update.eagerState = eagerState;\n        if (objectIs(eagerState, currentState))\n          return (\n            enqueueUpdate$1(fiber, queue, update, 0),\n            null === workInProgressRoot && finishQueueingConcurrentUpdates(),\n            !1\n          );\n      } catch (error) {\n      } finally {\n      }\n    action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n    if (null !== action)\n      return (\n        scheduleUpdateOnFiber(action, fiber, lane),\n        entangleTransitionUpdate(action, queue, lane),\n        !0\n      );\n  }\n  return !1;\n}\nfunction dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {\n  action = {\n    lane: 2,\n    revertLane: requestTransitionLane(),\n    gesture: null,\n    action: action,\n    hasEagerState: !1,\n    eagerState: null,\n    next: null\n  };\n  if (isRenderPhaseUpdate(fiber)) {\n    if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));\n  } else\n    (throwIfDuringRender = enqueueConcurrentHookUpdate(\n      fiber,\n      queue,\n      action,\n      2\n    )),\n      null !== throwIfDuringRender &&\n        scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);\n}\nfunction isRenderPhaseUpdate(fiber) {\n  var alternate = fiber.alternate;\n  return (\n    fiber === currentlyRenderingFiber ||\n    (null !== alternate && alternate === currentlyRenderingFiber)\n  );\n}\nfunction enqueueRenderPhaseUpdate(queue, update) {\n  didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =\n    !0;\n  var pending = queue.pending;\n  null === pending\n    ? (update.next = update)\n    : ((update.next = pending.next), (pending.next = update));\n  queue.pending = update;\n}\nfunction entangleTransitionUpdate(root, queue, lane) {\n  if (0 !== (lane & 4194048)) {\n    var queueLanes = queue.lanes;\n    queueLanes &= root.pendingLanes;\n    lane |= queueLanes;\n    queue.lanes = lane;\n    markRootEntangled(root, lane);\n  }\n}\nvar ContextOnlyDispatcher = {\n    readContext: readContext,\n    use: use,\n    useCallback: throwInvalidHookError,\n    useContext: throwInvalidHookError,\n    useEffect: throwInvalidHookError,\n    useImperativeHandle: throwInvalidHookError,\n    useLayoutEffect: throwInvalidHookError,\n    useInsertionEffect: throwInvalidHookError,\n    useMemo: throwInvalidHookError,\n    useReducer: throwInvalidHookError,\n    useRef: throwInvalidHookError,\n    useState: throwInvalidHookError,\n    useDebugValue: throwInvalidHookError,\n    useDeferredValue: throwInvalidHookError,\n    useTransition: throwInvalidHookError,\n    useSyncExternalStore: throwInvalidHookError,\n    useId: throwInvalidHookError,\n    useHostTransitionStatus: throwInvalidHookError,\n    useFormState: throwInvalidHookError,\n    useActionState: throwInvalidHookError,\n    useOptimistic: throwInvalidHookError,\n    useMemoCache: throwInvalidHookError,\n    useCacheRefresh: throwInvalidHookError,\n    useEffectEvent: throwInvalidHookError\n  },\n  HooksDispatcherOnMount = {\n    readContext: readContext,\n    use: use,\n    useCallback: function (callback, deps) {\n      mountWorkInProgressHook().memoizedState = [\n        callback,\n        void 0 === deps ? null : deps\n      ];\n      return callback;\n    },\n    useContext: readContext,\n    useEffect: mountEffect,\n    useImperativeHandle: function (ref, create, deps) {\n      deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n      mountEffectImpl(\n        4194308,\n        4,\n        imperativeHandleEffect.bind(null, create, ref),\n        deps\n      );\n    },\n    useLayoutEffect: function (create, deps) {\n      return mountEffectImpl(4194308, 4, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      mountEffectImpl(4, 2, create, deps);\n    },\n    useMemo: function (nextCreate, deps) {\n      var hook = mountWorkInProgressHook();\n      deps = void 0 === deps ? null : deps;\n      var nextValue = nextCreate();\n      if (shouldDoubleInvokeUserFnsInHooksDEV) {\n        setIsStrictModeForDevtools(!0);\n        try {\n          nextCreate();\n        } finally {\n          setIsStrictModeForDevtools(!1);\n        }\n      }\n      hook.memoizedState = [nextValue, deps];\n      return nextValue;\n    },\n    useReducer: function (reducer, initialArg, init) {\n      var hook = mountWorkInProgressHook();\n      if (void 0 !== init) {\n        var initialState = init(initialArg);\n        if (shouldDoubleInvokeUserFnsInHooksDEV) {\n          setIsStrictModeForDevtools(!0);\n          try {\n            init(initialArg);\n          } finally {\n            setIsStrictModeForDevtools(!1);\n          }\n        }\n      } else initialState = initialArg;\n      hook.memoizedState = hook.baseState = initialState;\n      reducer = {\n        pending: null,\n        lanes: 0,\n        dispatch: null,\n        lastRenderedReducer: reducer,\n        lastRenderedState: initialState\n      };\n      hook.queue = reducer;\n      reducer = reducer.dispatch = dispatchReducerAction.bind(\n        null,\n        currentlyRenderingFiber,\n        reducer\n      );\n      return [hook.memoizedState, reducer];\n    },\n    useRef: function (initialValue) {\n      var hook = mountWorkInProgressHook();\n      initialValue = { current: initialValue };\n      return (hook.memoizedState = initialValue);\n    },\n    useState: function (initialState) {\n      initialState = mountStateImpl(initialState);\n      var queue = initialState.queue,\n        dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);\n      queue.dispatch = dispatch;\n      return [initialState.memoizedState, dispatch];\n    },\n    useDebugValue: mountDebugValue,\n    useDeferredValue: function (value, initialValue) {\n      var hook = mountWorkInProgressHook();\n      return mountDeferredValueImpl(hook, value, initialValue);\n    },\n    useTransition: function () {\n      var stateHook = mountStateImpl(!1);\n      stateHook = startTransition.bind(\n        null,\n        currentlyRenderingFiber,\n        stateHook.queue,\n        !0,\n        !1\n      );\n      mountWorkInProgressHook().memoizedState = stateHook;\n      return [!1, stateHook];\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      var fiber = currentlyRenderingFiber,\n        hook = mountWorkInProgressHook();\n      if (isHydrating) {\n        if (void 0 === getServerSnapshot)\n          throw Error(formatProdErrorMessage(407));\n        getServerSnapshot = getServerSnapshot();\n      } else {\n        getServerSnapshot = getSnapshot();\n        if (null === workInProgressRoot)\n          throw Error(formatProdErrorMessage(349));\n        0 !== (workInProgressRootRenderLanes & 127) ||\n          pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n      }\n      hook.memoizedState = getServerSnapshot;\n      var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };\n      hook.queue = inst;\n      mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [\n        subscribe\n      ]);\n      fiber.flags |= 2048;\n      pushSimpleEffect(\n        9,\n        { destroy: void 0 },\n        updateStoreInstance.bind(\n          null,\n          fiber,\n          inst,\n          getServerSnapshot,\n          getSnapshot\n        ),\n        null\n      );\n      return getServerSnapshot;\n    },\n    useId: function () {\n      var hook = mountWorkInProgressHook(),\n        identifierPrefix = workInProgressRoot.identifierPrefix;\n      if (isHydrating) {\n        var JSCompiler_inline_result = treeContextOverflow;\n        var idWithLeadingBit = treeContextId;\n        JSCompiler_inline_result =\n          (\n            idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))\n          ).toString(32) + JSCompiler_inline_result;\n        identifierPrefix =\n          \"_\" + identifierPrefix + \"R_\" + JSCompiler_inline_result;\n        JSCompiler_inline_result = localIdCounter++;\n        0 < JSCompiler_inline_result &&\n          (identifierPrefix += \"H\" + JSCompiler_inline_result.toString(32));\n        identifierPrefix += \"_\";\n      } else\n        (JSCompiler_inline_result = globalClientIdCounter++),\n          (identifierPrefix =\n            \"_\" +\n            identifierPrefix +\n            \"r_\" +\n            JSCompiler_inline_result.toString(32) +\n            \"_\");\n      return (hook.memoizedState = identifierPrefix);\n    },\n    useHostTransitionStatus: useHostTransitionStatus,\n    useFormState: mountActionState,\n    useActionState: mountActionState,\n    useOptimistic: function (passthrough) {\n      var hook = mountWorkInProgressHook();\n      hook.memoizedState = hook.baseState = passthrough;\n      var queue = {\n        pending: null,\n        lanes: 0,\n        dispatch: null,\n        lastRenderedReducer: null,\n        lastRenderedState: null\n      };\n      hook.queue = queue;\n      hook = dispatchOptimisticSetState.bind(\n        null,\n        currentlyRenderingFiber,\n        !0,\n        queue\n      );\n      queue.dispatch = hook;\n      return [passthrough, hook];\n    },\n    useMemoCache: useMemoCache,\n    useCacheRefresh: function () {\n      return (mountWorkInProgressHook().memoizedState = refreshCache.bind(\n        null,\n        currentlyRenderingFiber\n      ));\n    },\n    useEffectEvent: function (callback) {\n      var hook = mountWorkInProgressHook(),\n        ref = { impl: callback };\n      hook.memoizedState = ref;\n      return function () {\n        if (0 !== (executionContext & 2))\n          throw Error(formatProdErrorMessage(440));\n        return ref.impl.apply(void 0, arguments);\n      };\n    }\n  },\n  HooksDispatcherOnUpdate = {\n    readContext: readContext,\n    use: use,\n    useCallback: updateCallback,\n    useContext: readContext,\n    useEffect: updateEffect,\n    useImperativeHandle: updateImperativeHandle,\n    useInsertionEffect: updateInsertionEffect,\n    useLayoutEffect: updateLayoutEffect,\n    useMemo: updateMemo,\n    useReducer: updateReducer,\n    useRef: updateRef,\n    useState: function () {\n      return updateReducer(basicStateReducer);\n    },\n    useDebugValue: mountDebugValue,\n    useDeferredValue: function (value, initialValue) {\n      var hook = updateWorkInProgressHook();\n      return updateDeferredValueImpl(\n        hook,\n        currentHook.memoizedState,\n        value,\n        initialValue\n      );\n    },\n    useTransition: function () {\n      var booleanOrThenable = updateReducer(basicStateReducer)[0],\n        start = updateWorkInProgressHook().memoizedState;\n      return [\n        \"boolean\" === typeof booleanOrThenable\n          ? booleanOrThenable\n          : useThenable(booleanOrThenable),\n        start\n      ];\n    },\n    useSyncExternalStore: updateSyncExternalStore,\n    useId: updateId,\n    useHostTransitionStatus: useHostTransitionStatus,\n    useFormState: updateActionState,\n    useActionState: updateActionState,\n    useOptimistic: function (passthrough, reducer) {\n      var hook = updateWorkInProgressHook();\n      return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n    },\n    useMemoCache: useMemoCache,\n    useCacheRefresh: updateRefresh,\n    useEffectEvent: updateEvent\n  },\n  HooksDispatcherOnRerender = {\n    readContext: readContext,\n    use: use,\n    useCallback: updateCallback,\n    useContext: readContext,\n    useEffect: updateEffect,\n    useImperativeHandle: updateImperativeHandle,\n    useInsertionEffect: updateInsertionEffect,\n    useLayoutEffect: updateLayoutEffect,\n    useMemo: updateMemo,\n    useReducer: rerenderReducer,\n    useRef: updateRef,\n    useState: function () {\n      return rerenderReducer(basicStateReducer);\n    },\n    useDebugValue: mountDebugValue,\n    useDeferredValue: function (value, initialValue) {\n      var hook = updateWorkInProgressHook();\n      return null === currentHook\n        ? mountDeferredValueImpl(hook, value, initialValue)\n        : updateDeferredValueImpl(\n            hook,\n            currentHook.memoizedState,\n            value,\n            initialValue\n          );\n    },\n    useTransition: function () {\n      var booleanOrThenable = rerenderReducer(basicStateReducer)[0],\n        start = updateWorkInProgressHook().memoizedState;\n      return [\n        \"boolean\" === typeof booleanOrThenable\n          ? booleanOrThenable\n          : useThenable(booleanOrThenable),\n        start\n      ];\n    },\n    useSyncExternalStore: updateSyncExternalStore,\n    useId: updateId,\n    useHostTransitionStatus: useHostTransitionStatus,\n    useFormState: rerenderActionState,\n    useActionState: rerenderActionState,\n    useOptimistic: function (passthrough, reducer) {\n      var hook = updateWorkInProgressHook();\n      if (null !== currentHook)\n        return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n      hook.baseState = passthrough;\n      return [passthrough, hook.queue.dispatch];\n    },\n    useMemoCache: useMemoCache,\n    useCacheRefresh: updateRefresh,\n    useEffectEvent: updateEvent\n  };\nfunction applyDerivedStateFromProps(\n  workInProgress,\n  ctor,\n  getDerivedStateFromProps,\n  nextProps\n) {\n  ctor = workInProgress.memoizedState;\n  getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n  getDerivedStateFromProps =\n    null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n      ? ctor\n      : assign({}, ctor, getDerivedStateFromProps);\n  workInProgress.memoizedState = getDerivedStateFromProps;\n  0 === workInProgress.lanes &&\n    (workInProgress.updateQueue.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n  enqueueSetState: function (inst, payload, callback) {\n    inst = inst._reactInternals;\n    var lane = requestUpdateLane(),\n      update = createUpdate(lane);\n    update.payload = payload;\n    void 0 !== callback && null !== callback && (update.callback = callback);\n    payload = enqueueUpdate(inst, update, lane);\n    null !== payload &&\n      (scheduleUpdateOnFiber(payload, inst, lane),\n      entangleTransitions(payload, inst, lane));\n  },\n  enqueueReplaceState: function (inst, payload, callback) {\n    inst = inst._reactInternals;\n    var lane = requestUpdateLane(),\n      update = createUpdate(lane);\n    update.tag = 1;\n    update.payload = payload;\n    void 0 !== callback && null !== callback && (update.callback = callback);\n    payload = enqueueUpdate(inst, update, lane);\n    null !== payload &&\n      (scheduleUpdateOnFiber(payload, inst, lane),\n      entangleTransitions(payload, inst, lane));\n  },\n  enqueueForceUpdate: function (inst, callback) {\n    inst = inst._reactInternals;\n    var lane = requestUpdateLane(),\n      update = createUpdate(lane);\n    update.tag = 2;\n    void 0 !== callback && null !== callback && (update.callback = callback);\n    callback = enqueueUpdate(inst, update, lane);\n    null !== callback &&\n      (scheduleUpdateOnFiber(callback, inst, lane),\n      entangleTransitions(callback, inst, lane));\n  }\n};\nfunction checkShouldComponentUpdate(\n  workInProgress,\n  ctor,\n  oldProps,\n  newProps,\n  oldState,\n  newState,\n  nextContext\n) {\n  workInProgress = workInProgress.stateNode;\n  return \"function\" === typeof workInProgress.shouldComponentUpdate\n    ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n    : ctor.prototype && ctor.prototype.isPureReactComponent\n      ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n      : !0;\n}\nfunction callComponentWillReceiveProps(\n  workInProgress,\n  instance,\n  newProps,\n  nextContext\n) {\n  workInProgress = instance.state;\n  \"function\" === typeof instance.componentWillReceiveProps &&\n    instance.componentWillReceiveProps(newProps, nextContext);\n  \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n  instance.state !== workInProgress &&\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction resolveClassComponentProps(Component, baseProps) {\n  var newProps = baseProps;\n  if (\"ref\" in baseProps) {\n    newProps = {};\n    for (var propName in baseProps)\n      \"ref\" !== propName && (newProps[propName] = baseProps[propName]);\n  }\n  if ((Component = Component.defaultProps)) {\n    newProps === baseProps && (newProps = assign({}, newProps));\n    for (var propName$77 in Component)\n      void 0 === newProps[propName$77] &&\n        (newProps[propName$77] = Component[propName$77]);\n  }\n  return newProps;\n}\nfunction defaultOnUncaughtError(error) {\n  reportGlobalError(error);\n}\nfunction defaultOnCaughtError(error) {\n  console.error(error);\n}\nfunction defaultOnRecoverableError(error) {\n  reportGlobalError(error);\n}\nfunction logUncaughtError(root, errorInfo) {\n  try {\n    var onUncaughtError = root.onUncaughtError;\n    onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });\n  } catch (e$78) {\n    setTimeout(function () {\n      throw e$78;\n    });\n  }\n}\nfunction logCaughtError(root, boundary, errorInfo) {\n  try {\n    var onCaughtError = root.onCaughtError;\n    onCaughtError(errorInfo.value, {\n      componentStack: errorInfo.stack,\n      errorBoundary: 1 === boundary.tag ? boundary.stateNode : null\n    });\n  } catch (e$79) {\n    setTimeout(function () {\n      throw e$79;\n    });\n  }\n}\nfunction createRootErrorUpdate(root, errorInfo, lane) {\n  lane = createUpdate(lane);\n  lane.tag = 3;\n  lane.payload = { element: null };\n  lane.callback = function () {\n    logUncaughtError(root, errorInfo);\n  };\n  return lane;\n}\nfunction createClassErrorUpdate(lane) {\n  lane = createUpdate(lane);\n  lane.tag = 3;\n  return lane;\n}\nfunction initializeClassErrorUpdate(update, root, fiber, errorInfo) {\n  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n  if (\"function\" === typeof getDerivedStateFromError) {\n    var error = errorInfo.value;\n    update.payload = function () {\n      return getDerivedStateFromError(error);\n    };\n    update.callback = function () {\n      logCaughtError(root, fiber, errorInfo);\n    };\n  }\n  var inst = fiber.stateNode;\n  null !== inst &&\n    \"function\" === typeof inst.componentDidCatch &&\n    (update.callback = function () {\n      logCaughtError(root, fiber, errorInfo);\n      \"function\" !== typeof getDerivedStateFromError &&\n        (null === legacyErrorBoundariesThatAlreadyFailed\n          ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n          : legacyErrorBoundariesThatAlreadyFailed.add(this));\n      var stack = errorInfo.stack;\n      this.componentDidCatch(errorInfo.value, {\n        componentStack: null !== stack ? stack : \"\"\n      });\n    });\n}\nfunction throwException(\n  root,\n  returnFiber,\n  sourceFiber,\n  value,\n  rootRenderLanes\n) {\n  sourceFiber.flags |= 32768;\n  if (\n    null !== value &&\n    \"object\" === typeof value &&\n    \"function\" === typeof value.then\n  ) {\n    returnFiber = sourceFiber.alternate;\n    null !== returnFiber &&\n      propagateParentContextChanges(\n        returnFiber,\n        sourceFiber,\n        rootRenderLanes,\n        !0\n      );\n    sourceFiber = suspenseHandlerStackCursor.current;\n    if (null !== sourceFiber) {\n      switch (sourceFiber.tag) {\n        case 31:\n        case 13:\n        case 19:\n          return (\n            null === shellBoundary\n              ? renderDidSuspendDelayIfPossible()\n              : null === sourceFiber.alternate &&\n                0 === workInProgressRootExitStatus &&\n                (workInProgressRootExitStatus = 3),\n            (sourceFiber.flags &= -257),\n            (sourceFiber.flags |= 65536),\n            (sourceFiber.lanes = rootRenderLanes),\n            value === noopSuspenseyCommitThenable\n              ? (sourceFiber.flags |= 16384)\n              : ((returnFiber = sourceFiber.updateQueue),\n                null === returnFiber\n                  ? (sourceFiber.updateQueue = new Set([value]))\n                  : returnFiber.add(value),\n                attachPingListener(root, value, rootRenderLanes)),\n            !1\n          );\n        case 22:\n          return (\n            (sourceFiber.flags |= 65536),\n            value === noopSuspenseyCommitThenable\n              ? (sourceFiber.flags |= 16384)\n              : ((returnFiber = sourceFiber.updateQueue),\n                null === returnFiber\n                  ? ((returnFiber = {\n                      transitions: null,\n                      markerInstances: null,\n                      retryQueue: new Set([value])\n                    }),\n                    (sourceFiber.updateQueue = returnFiber))\n                  : ((sourceFiber = returnFiber.retryQueue),\n                    null === sourceFiber\n                      ? (returnFiber.retryQueue = new Set([value]))\n                      : sourceFiber.add(value)),\n                attachPingListener(root, value, rootRenderLanes)),\n            !1\n          );\n      }\n      throw Error(formatProdErrorMessage(435, sourceFiber.tag));\n    }\n    attachPingListener(root, value, rootRenderLanes);\n    renderDidSuspendDelayIfPossible();\n    return !1;\n  }\n  if (isHydrating)\n    return (\n      (returnFiber = suspenseHandlerStackCursor.current),\n      null !== returnFiber\n        ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256),\n          (returnFiber.flags |= 65536),\n          (returnFiber.lanes = rootRenderLanes),\n          value !== HydrationMismatchException &&\n            ((root = Error(formatProdErrorMessage(422), { cause: value })),\n            queueHydrationError(createCapturedValueAtFiber(root, sourceFiber))))\n        : (value !== HydrationMismatchException &&\n            ((returnFiber = Error(formatProdErrorMessage(423), {\n              cause: value\n            })),\n            queueHydrationError(\n              createCapturedValueAtFiber(returnFiber, sourceFiber)\n            )),\n          (root = root.current.alternate),\n          (root.flags |= 65536),\n          (rootRenderLanes &= -rootRenderLanes),\n          (root.lanes |= rootRenderLanes),\n          (value = createCapturedValueAtFiber(value, sourceFiber)),\n          (rootRenderLanes = createRootErrorUpdate(\n            root.stateNode,\n            value,\n            rootRenderLanes\n          )),\n          enqueueCapturedUpdate(root, rootRenderLanes),\n          4 !== workInProgressRootExitStatus &&\n            (workInProgressRootExitStatus = 2)),\n      !1\n    );\n  var wrapperError = Error(formatProdErrorMessage(520), { cause: value });\n  wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);\n  null === workInProgressRootConcurrentErrors\n    ? (workInProgressRootConcurrentErrors = [wrapperError])\n    : workInProgressRootConcurrentErrors.push(wrapperError);\n  4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);\n  if (null === returnFiber) return !0;\n  value = createCapturedValueAtFiber(value, sourceFiber);\n  sourceFiber = returnFiber;\n  do {\n    switch (sourceFiber.tag) {\n      case 3:\n        return (\n          (sourceFiber.flags |= 65536),\n          (root = rootRenderLanes & -rootRenderLanes),\n          (sourceFiber.lanes |= root),\n          (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),\n          enqueueCapturedUpdate(sourceFiber, root),\n          !1\n        );\n      case 1:\n        returnFiber = sourceFiber.type;\n        wrapperError = sourceFiber.stateNode;\n        if (\n          0 === (sourceFiber.flags & 128) &&\n          (\"function\" === typeof returnFiber.getDerivedStateFromError ||\n            (null !== wrapperError &&\n              \"function\" === typeof wrapperError.componentDidCatch &&\n              (null === legacyErrorBoundariesThatAlreadyFailed ||\n                !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))\n        )\n          return (\n            (sourceFiber.flags |= 65536),\n            (rootRenderLanes &= -rootRenderLanes),\n            (sourceFiber.lanes |= rootRenderLanes),\n            (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)),\n            initializeClassErrorUpdate(\n              rootRenderLanes,\n              root,\n              sourceFiber,\n              value\n            ),\n            enqueueCapturedUpdate(sourceFiber, rootRenderLanes),\n            !1\n          );\n        break;\n      case 22:\n        if (null !== sourceFiber.memoizedState)\n          return (sourceFiber.flags |= 65536), !1;\n    }\n    sourceFiber = sourceFiber.return;\n  } while (null !== sourceFiber);\n  return !1;\n}\nvar SelectiveHydrationException = Error(formatProdErrorMessage(461)),\n  didReceiveUpdate = !1;\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n  workInProgress.child =\n    null === current\n      ? mountChildFibers(workInProgress, null, nextChildren, renderLanes)\n      : reconcileChildFibers(\n          workInProgress,\n          current.child,\n          nextChildren,\n          renderLanes\n        );\n}\nfunction updateForwardRef(\n  current,\n  workInProgress,\n  Component,\n  nextProps,\n  renderLanes\n) {\n  Component = Component.render;\n  var ref = workInProgress.ref;\n  if (\"ref\" in nextProps) {\n    var propsWithoutRef = {};\n    for (var key in nextProps)\n      \"ref\" !== key && (propsWithoutRef[key] = nextProps[key]);\n  } else propsWithoutRef = nextProps;\n  prepareToReadContext(workInProgress);\n  nextProps = renderWithHooks(\n    current,\n    workInProgress,\n    Component,\n    propsWithoutRef,\n    ref,\n    renderLanes\n  );\n  key = checkDidRenderIdHook();\n  if (null !== current && !didReceiveUpdate)\n    return (\n      bailoutHooks(current, workInProgress, renderLanes),\n      bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n    );\n  isHydrating && key && pushMaterializedTreeId(workInProgress);\n  workInProgress.flags |= 1;\n  reconcileChildren(current, workInProgress, nextProps, renderLanes);\n  return workInProgress.child;\n}\nfunction updateMemoComponent(\n  current,\n  workInProgress,\n  Component,\n  nextProps,\n  renderLanes\n) {\n  if (null === current) {\n    var type = Component.type;\n    if (\n      \"function\" === typeof type &&\n      !shouldConstruct(type) &&\n      void 0 === type.defaultProps &&\n      null === Component.compare\n    )\n      return (\n        (workInProgress.tag = 15),\n        (workInProgress.type = type),\n        updateSimpleMemoComponent(\n          current,\n          workInProgress,\n          type,\n          nextProps,\n          renderLanes\n        )\n      );\n    current = createFiberFromTypeAndProps(\n      Component.type,\n      null,\n      nextProps,\n      workInProgress,\n      workInProgress.mode,\n      renderLanes\n    );\n    current.ref = workInProgress.ref;\n    current.return = workInProgress;\n    return (workInProgress.child = current);\n  }\n  type = current.child;\n  if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n    var prevProps = type.memoizedProps;\n    Component = Component.compare;\n    Component = null !== Component ? Component : shallowEqual;\n    if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)\n      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n  }\n  workInProgress.flags |= 1;\n  current = createWorkInProgress(type, nextProps);\n  current.ref = workInProgress.ref;\n  current.return = workInProgress;\n  return (workInProgress.child = current);\n}\nfunction updateSimpleMemoComponent(\n  current,\n  workInProgress,\n  Component,\n  nextProps,\n  renderLanes\n) {\n  if (null !== current) {\n    var prevProps = current.memoizedProps;\n    if (\n      shallowEqual(prevProps, nextProps) &&\n      current.ref === workInProgress.ref\n    )\n      if (\n        ((didReceiveUpdate = !1),\n        (workInProgress.pendingProps = nextProps = prevProps),\n        checkScheduledUpdateOrContext(current, renderLanes))\n      )\n        0 !== (current.flags & 131072) && (didReceiveUpdate = !0);\n      else\n        return (\n          (workInProgress.lanes = current.lanes),\n          bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n        );\n  }\n  return updateFunctionComponent(\n    current,\n    workInProgress,\n    Component,\n    nextProps,\n    renderLanes\n  );\n}\nfunction updateOffscreenComponent(\n  current,\n  workInProgress,\n  renderLanes,\n  nextProps\n) {\n  var nextChildren = nextProps.children,\n    prevState = null !== current ? current.memoizedState : null;\n  null === current &&\n    null === workInProgress.stateNode &&\n    (workInProgress.stateNode = {\n      _visibility: 1,\n      _pendingMarkers: null,\n      _retryCache: null,\n      _transitions: null\n    });\n  if (\"hidden\" === nextProps.mode) {\n    if (0 !== (workInProgress.flags & 128)) {\n      prevState =\n        null !== prevState ? prevState.baseLanes | renderLanes : renderLanes;\n      if (null !== current) {\n        nextProps = workInProgress.child = current.child;\n        for (nextChildren = 0; null !== nextProps; )\n          (nextChildren =\n            nextChildren | nextProps.lanes | nextProps.childLanes),\n            (nextProps = nextProps.sibling);\n        nextProps = nextChildren & ~prevState;\n      } else (nextProps = 0), (workInProgress.child = null);\n      return deferHiddenOffscreenComponent(\n        current,\n        workInProgress,\n        prevState,\n        renderLanes,\n        nextProps\n      );\n    }\n    if (0 !== (renderLanes & 536870912))\n      (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),\n        null !== current &&\n          pushTransition(\n            workInProgress,\n            null !== prevState ? prevState.cachePool : null\n          ),\n        null !== prevState\n          ? pushHiddenContext(workInProgress, prevState)\n          : reuseHiddenContextOnStack(),\n        pushOffscreenSuspenseHandler(workInProgress);\n    else\n      return (\n        (nextProps = workInProgress.lanes = 536870912),\n        deferHiddenOffscreenComponent(\n          current,\n          workInProgress,\n          null !== prevState ? prevState.baseLanes | renderLanes : renderLanes,\n          renderLanes,\n          nextProps\n        )\n      );\n  } else\n    null !== prevState\n      ? (pushTransition(workInProgress, prevState.cachePool),\n        pushHiddenContext(workInProgress, prevState),\n        reuseSuspenseHandlerOnStack(),\n        (workInProgress.memoizedState = null))\n      : (null !== current && pushTransition(workInProgress, null),\n        reuseHiddenContextOnStack(),\n        reuseSuspenseHandlerOnStack());\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\nfunction bailoutOffscreenComponent(current, workInProgress) {\n  (null !== current && 22 === current.tag) ||\n    null !== workInProgress.stateNode ||\n    (workInProgress.stateNode = {\n      _visibility: 1,\n      _pendingMarkers: null,\n      _retryCache: null,\n      _transitions: null\n    });\n  return workInProgress.sibling;\n}\nfunction deferHiddenOffscreenComponent(\n  current,\n  workInProgress,\n  nextBaseLanes,\n  renderLanes,\n  remainingChildLanes\n) {\n  var JSCompiler_inline_result = peekCacheFromPool();\n  JSCompiler_inline_result =\n    null === JSCompiler_inline_result\n      ? null\n      : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };\n  workInProgress.memoizedState = {\n    baseLanes: nextBaseLanes,\n    cachePool: JSCompiler_inline_result\n  };\n  null !== current && pushTransition(workInProgress, null);\n  reuseHiddenContextOnStack();\n  pushOffscreenSuspenseHandler(workInProgress);\n  null !== current &&\n    propagateParentContextChanges(current, workInProgress, renderLanes, !0);\n  workInProgress.childLanes = remainingChildLanes;\n  return null;\n}\nfunction mountActivityChildren(workInProgress, nextProps) {\n  nextProps = mountWorkInProgressOffscreenFiber(\n    { mode: nextProps.mode, children: nextProps.children },\n    workInProgress.mode\n  );\n  nextProps.ref = workInProgress.ref;\n  workInProgress.child = nextProps;\n  nextProps.return = workInProgress;\n  return nextProps;\n}\nfunction retryActivityComponentWithoutHydrating(\n  current,\n  workInProgress,\n  renderLanes\n) {\n  reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n  current = mountActivityChildren(workInProgress, workInProgress.pendingProps);\n  current.flags |= 2;\n  popSuspenseHandler(workInProgress);\n  workInProgress.memoizedState = null;\n  return current;\n}\nfunction updateActivityComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps,\n    didSuspend = 0 !== (workInProgress.flags & 128);\n  workInProgress.flags &= -129;\n  if (null === current) {\n    if (isHydrating) {\n      if (\"hidden\" === nextProps.mode)\n        return (\n          (current = mountActivityChildren(workInProgress, nextProps)),\n          (workInProgress.lanes = 536870912),\n          (current.memoizedState = { baseLanes: 0, cachePool: null }),\n          bailoutOffscreenComponent(null, current)\n        );\n      pushDehydratedActivitySuspenseHandler(workInProgress);\n      (current = nextHydratableInstance)\n        ? ((current = canHydrateHydrationBoundary(\n            current,\n            rootOrSingletonContext\n          )),\n          (current = null !== current && \"&\" === current.data ? current : null),\n          null !== current &&\n            ((workInProgress.memoizedState = {\n              dehydrated: current,\n              treeContext:\n                null !== treeContextProvider\n                  ? { id: treeContextId, overflow: treeContextOverflow }\n                  : null,\n              retryLane: 536870912,\n              hydrationErrors: null\n            }),\n            (renderLanes = createFiberFromDehydratedFragment(current)),\n            (renderLanes.return = workInProgress),\n            (workInProgress.child = renderLanes),\n            (hydrationParentFiber = workInProgress),\n            (nextHydratableInstance = null)))\n        : (current = null);\n      if (null === current) throw throwOnHydrationMismatch(workInProgress);\n      workInProgress.lanes = 536870912;\n      return null;\n    }\n    return mountActivityChildren(workInProgress, nextProps);\n  }\n  var prevState = current.memoizedState;\n  if (null !== prevState) {\n    var dehydrated = prevState.dehydrated;\n    pushDehydratedActivitySuspenseHandler(workInProgress);\n    if (didSuspend)\n      if (workInProgress.flags & 256)\n        (workInProgress.flags &= -257),\n          (workInProgress = retryActivityComponentWithoutHydrating(\n            current,\n            workInProgress,\n            renderLanes\n          ));\n      else if (null !== workInProgress.memoizedState)\n        (workInProgress.child = current.child),\n          (workInProgress.flags |= 128),\n          (workInProgress = null);\n      else throw Error(formatProdErrorMessage(558));\n    else if (\n      (didReceiveUpdate ||\n        propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n      (didSuspend = 0 !== (renderLanes & current.childLanes)),\n      didReceiveUpdate || didSuspend)\n    ) {\n      if (null === currentTreeHiddenStackCursor.current) {\n        nextProps = workInProgressRoot;\n        if (\n          null !== nextProps &&\n          ((dehydrated = getBumpedLaneForHydration(nextProps, renderLanes)),\n          0 !== dehydrated && dehydrated !== prevState.retryLane)\n        )\n          throw (\n            ((prevState.retryLane = dehydrated),\n            enqueueConcurrentRenderForLane(current, dehydrated),\n            scheduleUpdateOnFiber(nextProps, current, dehydrated),\n            SelectiveHydrationException)\n          );\n        renderDidSuspendDelayIfPossible();\n      }\n      workInProgress = retryActivityComponentWithoutHydrating(\n        current,\n        workInProgress,\n        renderLanes\n      );\n    } else\n      (current = prevState.treeContext),\n        (nextHydratableInstance = getNextHydratable(dehydrated.nextSibling)),\n        (hydrationParentFiber = workInProgress),\n        (isHydrating = !0),\n        (hydrationErrors = null),\n        (rootOrSingletonContext = !1),\n        null !== current &&\n          restoreSuspendedTreeContext(workInProgress, current),\n        (workInProgress = mountActivityChildren(workInProgress, nextProps)),\n        (workInProgress.flags |= 134221824);\n    return workInProgress;\n  }\n  current = createWorkInProgress(current.child, {\n    mode: nextProps.mode,\n    children: nextProps.children\n  });\n  current.ref = workInProgress.ref;\n  workInProgress.child = current;\n  current.return = workInProgress;\n  return current;\n}\nfunction markRef(current, workInProgress) {\n  var ref = workInProgress.ref;\n  if (null === ref)\n    null !== current &&\n      null !== current.ref &&\n      (workInProgress.flags |= 4194816);\n  else {\n    if (\"function\" !== typeof ref && \"object\" !== typeof ref)\n      throw Error(formatProdErrorMessage(284));\n    if (null === current || current.ref !== ref)\n      workInProgress.flags |= 4194816;\n  }\n}\nfunction updateFunctionComponent(\n  current,\n  workInProgress,\n  Component,\n  nextProps,\n  renderLanes\n) {\n  prepareToReadContext(workInProgress);\n  Component = renderWithHooks(\n    current,\n    workInProgress,\n    Component,\n    nextProps,\n    void 0,\n    renderLanes\n  );\n  nextProps = checkDidRenderIdHook();\n  if (null !== current && !didReceiveUpdate)\n    return (\n      bailoutHooks(current, workInProgress, renderLanes),\n      bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n    );\n  isHydrating && nextProps && pushMaterializedTreeId(workInProgress);\n  workInProgress.flags |= 1;\n  reconcileChildren(current, workInProgress, Component, renderLanes);\n  return workInProgress.child;\n}\nfunction replayFunctionComponent(\n  current,\n  workInProgress,\n  nextProps,\n  Component,\n  secondArg,\n  renderLanes\n) {\n  prepareToReadContext(workInProgress);\n  workInProgress.updateQueue = null;\n  nextProps = renderWithHooksAgain(\n    workInProgress,\n    Component,\n    nextProps,\n    secondArg\n  );\n  finishRenderingHooks(current);\n  Component = checkDidRenderIdHook();\n  if (null !== current && !didReceiveUpdate)\n    return (\n      bailoutHooks(current, workInProgress, renderLanes),\n      bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n    );\n  isHydrating && Component && pushMaterializedTreeId(workInProgress);\n  workInProgress.flags |= 1;\n  reconcileChildren(current, workInProgress, nextProps, renderLanes);\n  return workInProgress.child;\n}\nfunction updateClassComponent(\n  current,\n  workInProgress,\n  Component,\n  nextProps,\n  renderLanes\n) {\n  prepareToReadContext(workInProgress);\n  if (null === workInProgress.stateNode) {\n    var context = emptyContextObject,\n      contextType = Component.contextType;\n    \"object\" === typeof contextType &&\n      null !== contextType &&\n      (context = readContext(contextType));\n    context = new Component(nextProps, context);\n    workInProgress.memoizedState =\n      null !== context.state && void 0 !== context.state ? context.state : null;\n    context.updater = classComponentUpdater;\n    workInProgress.stateNode = context;\n    context._reactInternals = workInProgress;\n    context = workInProgress.stateNode;\n    context.props = nextProps;\n    context.state = workInProgress.memoizedState;\n    context.refs = {};\n    initializeUpdateQueue(workInProgress);\n    contextType = Component.contextType;\n    context.context =\n      \"object\" === typeof contextType && null !== contextType\n        ? readContext(contextType)\n        : emptyContextObject;\n    context.state = workInProgress.memoizedState;\n    contextType = Component.getDerivedStateFromProps;\n    \"function\" === typeof contextType &&\n      (applyDerivedStateFromProps(\n        workInProgress,\n        Component,\n        contextType,\n        nextProps\n      ),\n      (context.state = workInProgress.memoizedState));\n    \"function\" === typeof Component.getDerivedStateFromProps ||\n      \"function\" === typeof context.getSnapshotBeforeUpdate ||\n      (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n        \"function\" !== typeof context.componentWillMount) ||\n      ((contextType = context.state),\n      \"function\" === typeof context.componentWillMount &&\n        context.componentWillMount(),\n      \"function\" === typeof context.UNSAFE_componentWillMount &&\n        context.UNSAFE_componentWillMount(),\n      contextType !== context.state &&\n        classComponentUpdater.enqueueReplaceState(context, context.state, null),\n      processUpdateQueue(workInProgress, nextProps, context, renderLanes),\n      suspendIfUpdateReadFromEntangledAsyncAction(),\n      (context.state = workInProgress.memoizedState));\n    \"function\" === typeof context.componentDidMount &&\n      (workInProgress.flags |= 4194308);\n    nextProps = !0;\n  } else if (null === current) {\n    context = workInProgress.stateNode;\n    var unresolvedOldProps = workInProgress.memoizedProps,\n      oldProps = resolveClassComponentProps(Component, unresolvedOldProps);\n    context.props = oldProps;\n    var oldContext = context.context,\n      contextType$jscomp$0 = Component.contextType;\n    contextType = emptyContextObject;\n    \"object\" === typeof contextType$jscomp$0 &&\n      null !== contextType$jscomp$0 &&\n      (contextType = readContext(contextType$jscomp$0));\n    var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n    contextType$jscomp$0 =\n      \"function\" === typeof getDerivedStateFromProps ||\n      \"function\" === typeof context.getSnapshotBeforeUpdate;\n    unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps;\n    contextType$jscomp$0 ||\n      (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n        \"function\" !== typeof context.componentWillReceiveProps) ||\n      ((unresolvedOldProps || oldContext !== contextType) &&\n        callComponentWillReceiveProps(\n          workInProgress,\n          context,\n          nextProps,\n          contextType\n        ));\n    hasForceUpdate = !1;\n    var oldState = workInProgress.memoizedState;\n    context.state = oldState;\n    processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n    suspendIfUpdateReadFromEntangledAsyncAction();\n    oldContext = workInProgress.memoizedState;\n    unresolvedOldProps || oldState !== oldContext || hasForceUpdate\n      ? (\"function\" === typeof getDerivedStateFromProps &&\n          (applyDerivedStateFromProps(\n            workInProgress,\n            Component,\n            getDerivedStateFromProps,\n            nextProps\n          ),\n          (oldContext = workInProgress.memoizedState)),\n        (oldProps =\n          hasForceUpdate ||\n          checkShouldComponentUpdate(\n            workInProgress,\n            Component,\n            oldProps,\n            nextProps,\n            oldState,\n            oldContext,\n            contextType\n          ))\n          ? (contextType$jscomp$0 ||\n              (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n                \"function\" !== typeof context.componentWillMount) ||\n              (\"function\" === typeof context.componentWillMount &&\n                context.componentWillMount(),\n              \"function\" === typeof context.UNSAFE_componentWillMount &&\n                context.UNSAFE_componentWillMount()),\n            \"function\" === typeof context.componentDidMount &&\n              (workInProgress.flags |= 4194308))\n          : (\"function\" === typeof context.componentDidMount &&\n              (workInProgress.flags |= 4194308),\n            (workInProgress.memoizedProps = nextProps),\n            (workInProgress.memoizedState = oldContext)),\n        (context.props = nextProps),\n        (context.state = oldContext),\n        (context.context = contextType),\n        (nextProps = oldProps))\n      : (\"function\" === typeof context.componentDidMount &&\n          (workInProgress.flags |= 4194308),\n        (nextProps = !1));\n  } else {\n    context = workInProgress.stateNode;\n    cloneUpdateQueue(current, workInProgress);\n    contextType = workInProgress.memoizedProps;\n    contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);\n    context.props = contextType$jscomp$0;\n    getDerivedStateFromProps = workInProgress.pendingProps;\n    oldState = context.context;\n    oldContext = Component.contextType;\n    oldProps = emptyContextObject;\n    \"object\" === typeof oldContext &&\n      null !== oldContext &&\n      (oldProps = readContext(oldContext));\n    unresolvedOldProps = Component.getDerivedStateFromProps;\n    (oldContext =\n      \"function\" === typeof unresolvedOldProps ||\n      \"function\" === typeof context.getSnapshotBeforeUpdate) ||\n      (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n        \"function\" !== typeof context.componentWillReceiveProps) ||\n      ((contextType !== getDerivedStateFromProps || oldState !== oldProps) &&\n        callComponentWillReceiveProps(\n          workInProgress,\n          context,\n          nextProps,\n          oldProps\n        ));\n    hasForceUpdate = !1;\n    oldState = workInProgress.memoizedState;\n    context.state = oldState;\n    processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n    suspendIfUpdateReadFromEntangledAsyncAction();\n    var newState = workInProgress.memoizedState;\n    contextType !== getDerivedStateFromProps ||\n    oldState !== newState ||\n    hasForceUpdate ||\n    (null !== current &&\n      null !== current.dependencies &&\n      checkIfContextChanged(current.dependencies))\n      ? (\"function\" === typeof unresolvedOldProps &&\n          (applyDerivedStateFromProps(\n            workInProgress,\n            Component,\n            unresolvedOldProps,\n            nextProps\n          ),\n          (newState = workInProgress.memoizedState)),\n        (contextType$jscomp$0 =\n          hasForceUpdate ||\n          checkShouldComponentUpdate(\n            workInProgress,\n            Component,\n            contextType$jscomp$0,\n            nextProps,\n            oldState,\n            newState,\n            oldProps\n          ) ||\n          (null !== current &&\n            null !== current.dependencies &&\n            checkIfContextChanged(current.dependencies)))\n          ? (oldContext ||\n              (\"function\" !== typeof context.UNSAFE_componentWillUpdate &&\n                \"function\" !== typeof context.componentWillUpdate) ||\n              (\"function\" === typeof context.componentWillUpdate &&\n                context.componentWillUpdate(nextProps, newState, oldProps),\n              \"function\" === typeof context.UNSAFE_componentWillUpdate &&\n                context.UNSAFE_componentWillUpdate(\n                  nextProps,\n                  newState,\n                  oldProps\n                )),\n            \"function\" === typeof context.componentDidUpdate &&\n              (workInProgress.flags |= 4),\n            \"function\" === typeof context.getSnapshotBeforeUpdate &&\n              (workInProgress.flags |= 1024))\n          : (\"function\" !== typeof context.componentDidUpdate ||\n              (contextType === current.memoizedProps &&\n                oldState === current.memoizedState) ||\n              (workInProgress.flags |= 4),\n            \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n              (contextType === current.memoizedProps &&\n                oldState === current.memoizedState) ||\n              (workInProgress.flags |= 1024),\n            (workInProgress.memoizedProps = nextProps),\n            (workInProgress.memoizedState = newState)),\n        (context.props = nextProps),\n        (context.state = newState),\n        (context.context = oldProps),\n        (nextProps = contextType$jscomp$0))\n      : (\"function\" !== typeof context.componentDidUpdate ||\n          (contextType === current.memoizedProps &&\n            oldState === current.memoizedState) ||\n          (workInProgress.flags |= 4),\n        \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n          (contextType === current.memoizedProps &&\n            oldState === current.memoizedState) ||\n          (workInProgress.flags |= 1024),\n        (nextProps = !1));\n  }\n  context = nextProps;\n  markRef(current, workInProgress);\n  nextProps = 0 !== (workInProgress.flags & 128);\n  context || nextProps\n    ? ((context = workInProgress.stateNode),\n      (Component =\n        nextProps && \"function\" !== typeof Component.getDerivedStateFromError\n          ? null\n          : context.render()),\n      (workInProgress.flags |= 1),\n      null !== current && nextProps\n        ? ((workInProgress.child = reconcileChildFibers(\n            workInProgress,\n            current.child,\n            null,\n            renderLanes\n          )),\n          (workInProgress.child = reconcileChildFibers(\n            workInProgress,\n            null,\n            Component,\n            renderLanes\n          )))\n        : reconcileChildren(current, workInProgress, Component, renderLanes),\n      (workInProgress.memoizedState = context.state),\n      (current = workInProgress.child))\n    : (current = bailoutOnAlreadyFinishedWork(\n        current,\n        workInProgress,\n        renderLanes\n      ));\n  return current;\n}\nfunction mountHostRootWithoutHydrating(\n  current,\n  workInProgress,\n  nextChildren,\n  renderLanes\n) {\n  resetHydrationState();\n  workInProgress.flags |= 256;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\nvar SUSPENDED_MARKER = {\n  dehydrated: null,\n  treeContext: null,\n  retryLane: 0,\n  hydrationErrors: null\n};\nfunction mountSuspenseOffscreenState(renderLanes) {\n  return { baseLanes: renderLanes, cachePool: getSuspendedCache() };\n}\nfunction getRemainingWorkInPrimaryTree(\n  current,\n  primaryTreeDidDefer,\n  renderLanes\n) {\n  current = null !== current ? current.childLanes & ~renderLanes : 0;\n  primaryTreeDidDefer && (current |= workInProgressDeferredLane);\n  return current;\n}\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps,\n    showFallback = !1,\n    didSuspend = 0 !== (workInProgress.flags & 128),\n    JSCompiler_temp;\n  (JSCompiler_temp = didSuspend) ||\n    (JSCompiler_temp =\n      null !== current && null === current.memoizedState\n        ? !1\n        : 0 !== (suspenseStackCursor.current & 2));\n  JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));\n  JSCompiler_temp = 0 !== (workInProgress.flags & 32);\n  workInProgress.flags &= -33;\n  if (null === current) {\n    if (isHydrating) {\n      showFallback\n        ? pushPrimaryTreeSuspenseHandler(workInProgress)\n        : reuseSuspenseHandlerOnStack();\n      (current = nextHydratableInstance)\n        ? ((current = canHydrateHydrationBoundary(\n            current,\n            rootOrSingletonContext\n          )),\n          (current = null !== current && \"&\" !== current.data ? current : null),\n          null !== current &&\n            ((workInProgress.memoizedState = {\n              dehydrated: current,\n              treeContext:\n                null !== treeContextProvider\n                  ? { id: treeContextId, overflow: treeContextOverflow }\n                  : null,\n              retryLane: 536870912,\n              hydrationErrors: null\n            }),\n            (renderLanes = createFiberFromDehydratedFragment(current)),\n            (renderLanes.return = workInProgress),\n            (workInProgress.child = renderLanes),\n            (hydrationParentFiber = workInProgress),\n            (nextHydratableInstance = null)))\n        : (current = null);\n      if (null === current) throw throwOnHydrationMismatch(workInProgress);\n      isSuspenseInstanceFallback(current)\n        ? (workInProgress.lanes = 32)\n        : (workInProgress.lanes = 536870912);\n      return null;\n    }\n    didSuspend = nextProps.children;\n    nextProps = nextProps.fallback;\n    if (showFallback)\n      return (\n        reuseSuspenseHandlerOnStack(),\n        (showFallback = workInProgress.mode),\n        (didSuspend = mountWorkInProgressOffscreenFiber(\n          { mode: \"hidden\", children: didSuspend },\n          showFallback\n        )),\n        (nextProps = createFiberFromFragment(\n          nextProps,\n          showFallback,\n          renderLanes,\n          null\n        )),\n        (didSuspend.return = workInProgress),\n        (nextProps.return = workInProgress),\n        (didSuspend.sibling = nextProps),\n        (workInProgress.child = didSuspend),\n        (nextProps = workInProgress.child),\n        (nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)),\n        (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n          current,\n          JSCompiler_temp,\n          renderLanes\n        )),\n        (workInProgress.memoizedState = SUSPENDED_MARKER),\n        bailoutOffscreenComponent(null, nextProps)\n      );\n    pushPrimaryTreeSuspenseHandler(workInProgress);\n    return mountSuspensePrimaryChildren(workInProgress, didSuspend);\n  }\n  var prevState = current.memoizedState;\n  if (null !== prevState) {\n    var dehydrated$96 = prevState.dehydrated;\n    if (null !== dehydrated$96)\n      return updateDehydratedSuspenseComponent(\n        current,\n        workInProgress,\n        didSuspend,\n        JSCompiler_temp,\n        nextProps,\n        dehydrated$96,\n        prevState,\n        renderLanes\n      );\n  }\n  if (showFallback)\n    return (\n      reuseSuspenseHandlerOnStack(),\n      (showFallback = nextProps.fallback),\n      (didSuspend = workInProgress.mode),\n      (prevState = current.child),\n      (dehydrated$96 = prevState.sibling),\n      (nextProps = createWorkInProgress(prevState, {\n        mode: \"hidden\",\n        children: nextProps.children\n      })),\n      (nextProps.subtreeFlags = prevState.subtreeFlags & 1206910976),\n      null !== dehydrated$96\n        ? (showFallback = createWorkInProgress(dehydrated$96, showFallback))\n        : ((showFallback = createFiberFromFragment(\n            showFallback,\n            didSuspend,\n            renderLanes,\n            null\n          )),\n          (showFallback.flags |= 2)),\n      (showFallback.return = workInProgress),\n      (nextProps.return = workInProgress),\n      (nextProps.sibling = showFallback),\n      (workInProgress.child = nextProps),\n      bailoutOffscreenComponent(null, nextProps),\n      (nextProps = workInProgress.child),\n      (showFallback = current.child.memoizedState),\n      null === showFallback\n        ? (showFallback = mountSuspenseOffscreenState(renderLanes))\n        : ((didSuspend = showFallback.cachePool),\n          null !== didSuspend\n            ? ((prevState = CacheContext._currentValue),\n              (didSuspend =\n                didSuspend.parent !== prevState\n                  ? { parent: prevState, pool: prevState }\n                  : didSuspend))\n            : (didSuspend = getSuspendedCache()),\n          (showFallback = {\n            baseLanes: showFallback.baseLanes | renderLanes,\n            cachePool: didSuspend\n          })),\n      (nextProps.memoizedState = showFallback),\n      (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n        current,\n        JSCompiler_temp,\n        renderLanes\n      )),\n      (workInProgress.memoizedState = SUSPENDED_MARKER),\n      bailoutOffscreenComponent(current.child, nextProps)\n    );\n  pushPrimaryTreeSuspenseHandler(workInProgress);\n  renderLanes = current.child;\n  current = renderLanes.sibling;\n  renderLanes = createWorkInProgress(renderLanes, {\n    mode: \"visible\",\n    children: nextProps.children\n  });\n  renderLanes.return = workInProgress;\n  renderLanes.sibling = null;\n  null !== current &&\n    ((JSCompiler_temp = workInProgress.deletions),\n    null === JSCompiler_temp\n      ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))\n      : JSCompiler_temp.push(current));\n  workInProgress.child = renderLanes;\n  workInProgress.memoizedState = null;\n  return renderLanes;\n}\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren) {\n  primaryChildren = mountWorkInProgressOffscreenFiber(\n    { mode: \"visible\", children: primaryChildren },\n    workInProgress.mode\n  );\n  primaryChildren.return = workInProgress;\n  return (workInProgress.child = primaryChildren);\n}\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode) {\n  offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);\n  offscreenProps.lanes = 0;\n  return offscreenProps;\n}\nfunction retrySuspenseComponentWithoutHydrating(\n  current,\n  workInProgress,\n  renderLanes\n) {\n  reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n  current = mountSuspensePrimaryChildren(\n    workInProgress,\n    workInProgress.pendingProps.children\n  );\n  current.flags |= 2;\n  workInProgress.memoizedState = null;\n  return current;\n}\nfunction updateDehydratedSuspenseComponent(\n  current,\n  workInProgress,\n  didSuspend,\n  didPrimaryChildrenDefer,\n  nextProps,\n  suspenseInstance,\n  suspenseState,\n  renderLanes\n) {\n  if (didSuspend) {\n    if (workInProgress.flags & 256)\n      return (\n        pushPrimaryTreeSuspenseHandler(workInProgress),\n        (workInProgress.flags &= -257),\n        retrySuspenseComponentWithoutHydrating(\n          current,\n          workInProgress,\n          renderLanes\n        )\n      );\n    if (null !== workInProgress.memoizedState)\n      return (\n        reuseSuspenseHandlerOnStack(),\n        (workInProgress.child = current.child),\n        (workInProgress.flags |= 128),\n        null\n      );\n    reuseSuspenseHandlerOnStack();\n    suspenseInstance = nextProps.fallback;\n    suspenseState = workInProgress.mode;\n    nextProps = mountWorkInProgressOffscreenFiber(\n      { mode: \"visible\", children: nextProps.children },\n      suspenseState\n    );\n    suspenseInstance = createFiberFromFragment(\n      suspenseInstance,\n      suspenseState,\n      renderLanes,\n      null\n    );\n    suspenseInstance.flags |= 2;\n    nextProps.return = workInProgress;\n    suspenseInstance.return = workInProgress;\n    nextProps.sibling = suspenseInstance;\n    workInProgress.child = nextProps;\n    reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n    nextProps = workInProgress.child;\n    nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes);\n    nextProps.childLanes = getRemainingWorkInPrimaryTree(\n      current,\n      didPrimaryChildrenDefer,\n      renderLanes\n    );\n    workInProgress.memoizedState = SUSPENDED_MARKER;\n    return bailoutOffscreenComponent(null, nextProps);\n  }\n  pushPrimaryTreeSuspenseHandler(workInProgress);\n  if (isSuspenseInstanceFallback(suspenseInstance)) {\n    didPrimaryChildrenDefer =\n      suspenseInstance.nextSibling && suspenseInstance.nextSibling.dataset;\n    if (didPrimaryChildrenDefer) var digest = didPrimaryChildrenDefer.dgst;\n    didPrimaryChildrenDefer = digest;\n    \"\" !== didPrimaryChildrenDefer &&\n      ((nextProps = Error(formatProdErrorMessage(419))),\n      (nextProps.stack = \"\"),\n      (nextProps.digest = didPrimaryChildrenDefer),\n      queueHydrationError({ value: nextProps, source: null, stack: null }));\n    return retrySuspenseComponentWithoutHydrating(\n      current,\n      workInProgress,\n      renderLanes\n    );\n  }\n  didReceiveUpdate ||\n    propagateParentContextChanges(current, workInProgress, renderLanes, !1);\n  didPrimaryChildrenDefer = 0 !== (renderLanes & current.childLanes);\n  if (didReceiveUpdate || didPrimaryChildrenDefer) {\n    if (null !== currentTreeHiddenStackCursor.current)\n      return retrySuspenseComponentWithoutHydrating(\n        current,\n        workInProgress,\n        renderLanes\n      );\n    didPrimaryChildrenDefer = workInProgressRoot;\n    if (\n      null !== didPrimaryChildrenDefer &&\n      ((nextProps = getBumpedLaneForHydration(\n        didPrimaryChildrenDefer,\n        renderLanes\n      )),\n      0 !== nextProps && nextProps !== suspenseState.retryLane)\n    )\n      throw (\n        ((suspenseState.retryLane = nextProps),\n        enqueueConcurrentRenderForLane(current, nextProps),\n        scheduleUpdateOnFiber(didPrimaryChildrenDefer, current, nextProps),\n        SelectiveHydrationException)\n      );\n    isSuspenseInstancePending(suspenseInstance) ||\n      renderDidSuspendDelayIfPossible();\n    return retrySuspenseComponentWithoutHydrating(\n      current,\n      workInProgress,\n      renderLanes\n    );\n  }\n  if (isSuspenseInstancePending(suspenseInstance))\n    return (\n      (workInProgress.flags |= 192),\n      (workInProgress.child = current.child),\n      null\n    );\n  current = suspenseState.treeContext;\n  nextHydratableInstance = getNextHydratable(suspenseInstance.nextSibling);\n  hydrationParentFiber = workInProgress;\n  isHydrating = !0;\n  hydrationErrors = null;\n  rootOrSingletonContext = !1;\n  null !== current && restoreSuspendedTreeContext(workInProgress, current);\n  workInProgress = mountSuspensePrimaryChildren(\n    workInProgress,\n    nextProps.children\n  );\n  workInProgress.flags |= 134221824;\n  return workInProgress;\n}\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n  fiber.lanes |= renderLanes;\n  var alternate = fiber.alternate;\n  null !== alternate && (alternate.lanes |= renderLanes);\n  scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\nfunction findLastContentRow(firstChild) {\n  for (var lastContentRow = null; null !== firstChild; ) {\n    var currentRow = firstChild.alternate;\n    null !== currentRow &&\n      null === findFirstSuspended(currentRow) &&\n      (lastContentRow = firstChild);\n    firstChild = firstChild.sibling;\n  }\n  return lastContentRow;\n}\nfunction initSuspenseListRenderState(\n  workInProgress,\n  isBackwards,\n  tail,\n  lastContentRow,\n  tailMode,\n  treeForkCount\n) {\n  var renderState = workInProgress.memoizedState;\n  null === renderState\n    ? (workInProgress.memoizedState = {\n        isBackwards: isBackwards,\n        rendering: null,\n        renderingStartTime: 0,\n        last: lastContentRow,\n        tail: tail,\n        tailMode: tailMode,\n        treeForkCount: treeForkCount\n      })\n    : ((renderState.isBackwards = isBackwards),\n      (renderState.rendering = null),\n      (renderState.renderingStartTime = 0),\n      (renderState.last = lastContentRow),\n      (renderState.tail = tail),\n      (renderState.tailMode = tailMode),\n      (renderState.treeForkCount = treeForkCount));\n}\nfunction reverseChildren(fiber) {\n  var row = fiber.child;\n  for (fiber.child = null; null !== row; ) {\n    var nextRow = row.sibling;\n    row.sibling = fiber.child;\n    fiber.child = row;\n    row = nextRow;\n  }\n}\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps,\n    revealOrder = nextProps.revealOrder,\n    tailMode = nextProps.tail;\n  nextProps = nextProps.children;\n  var suspenseContext = suspenseStackCursor.current;\n  if (workInProgress.flags & 128)\n    return pushSuspenseListContext(workInProgress, suspenseContext), null;\n  var shouldForceFallback = 0 !== (suspenseContext & 2);\n  shouldForceFallback\n    ? ((suspenseContext = (suspenseContext & 1) | 2),\n      (workInProgress.flags |= 128))\n    : (suspenseContext &= 1);\n  pushSuspenseListContext(workInProgress, suspenseContext);\n  \"backwards\" === revealOrder && null !== current\n    ? (reverseChildren(current),\n      reconcileChildren(current, workInProgress, nextProps, renderLanes),\n      reverseChildren(current))\n    : reconcileChildren(current, workInProgress, nextProps, renderLanes);\n  nextProps = isHydrating ? treeForkCount : 0;\n  if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))\n    a: for (current = workInProgress.child; null !== current; ) {\n      if (13 === current.tag)\n        null !== current.memoizedState &&\n          scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n      else if (19 === current.tag)\n        scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n      else if (null !== current.child) {\n        current.child.return = current;\n        current = current.child;\n        continue;\n      }\n      if (current === workInProgress) break a;\n      for (; null === current.sibling; ) {\n        if (null === current.return || current.return === workInProgress)\n          break a;\n        current = current.return;\n      }\n      current.sibling.return = current.return;\n      current = current.sibling;\n    }\n  switch (revealOrder) {\n    case \"backwards\":\n      renderLanes = findLastContentRow(workInProgress.child);\n      null === renderLanes\n        ? ((revealOrder = workInProgress.child), (workInProgress.child = null))\n        : ((revealOrder = renderLanes.sibling),\n          (renderLanes.sibling = null),\n          reverseChildren(workInProgress));\n      initSuspenseListRenderState(\n        workInProgress,\n        !0,\n        revealOrder,\n        null,\n        tailMode,\n        nextProps\n      );\n      break;\n    case \"unstable_legacy-backwards\":\n      renderLanes = null;\n      revealOrder = workInProgress.child;\n      for (workInProgress.child = null; null !== revealOrder; ) {\n        current = revealOrder.alternate;\n        if (null !== current && null === findFirstSuspended(current)) {\n          workInProgress.child = revealOrder;\n          break;\n        }\n        current = revealOrder.sibling;\n        revealOrder.sibling = renderLanes;\n        renderLanes = revealOrder;\n        revealOrder = current;\n      }\n      initSuspenseListRenderState(\n        workInProgress,\n        !0,\n        renderLanes,\n        null,\n        tailMode,\n        nextProps\n      );\n      break;\n    case \"together\":\n      initSuspenseListRenderState(\n        workInProgress,\n        !1,\n        null,\n        null,\n        void 0,\n        nextProps\n      );\n      break;\n    case \"independent\":\n      workInProgress.memoizedState = null;\n      break;\n    default:\n      (renderLanes = findLastContentRow(workInProgress.child)),\n        null === renderLanes\n          ? ((revealOrder = workInProgress.child),\n            (workInProgress.child = null))\n          : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null)),\n        initSuspenseListRenderState(\n          workInProgress,\n          !1,\n          revealOrder,\n          renderLanes,\n          tailMode,\n          nextProps\n        );\n  }\n  return workInProgress.child;\n}\nfunction updateContextProvider(current, workInProgress, renderLanes) {\n  var newProps = workInProgress.pendingProps;\n  pushProvider(workInProgress, workInProgress.type, newProps.value);\n  reconcileChildren(current, workInProgress, newProps.children, renderLanes);\n  return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n  null !== current && (workInProgress.dependencies = current.dependencies);\n  workInProgressRootSkippedLanes |= workInProgress.lanes;\n  if (0 === (renderLanes & workInProgress.childLanes))\n    if (null !== current) {\n      if (\n        (propagateParentContextChanges(\n          current,\n          workInProgress,\n          renderLanes,\n          !1\n        ),\n        0 === (renderLanes & workInProgress.childLanes))\n      )\n        return null;\n    } else return null;\n  if (null !== current && workInProgress.child !== current.child)\n    throw Error(formatProdErrorMessage(153));\n  if (null !== workInProgress.child) {\n    current = workInProgress.child;\n    renderLanes = createWorkInProgress(current, current.pendingProps);\n    workInProgress.child = renderLanes;\n    for (renderLanes.return = workInProgress; null !== current.sibling; )\n      (current = current.sibling),\n        (renderLanes = renderLanes.sibling =\n          createWorkInProgress(current, current.pendingProps)),\n        (renderLanes.return = workInProgress);\n    renderLanes.sibling = null;\n  }\n  return workInProgress.child;\n}\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n  if (0 !== (current.lanes & renderLanes)) return !0;\n  current = current.dependencies;\n  return null !== current && checkIfContextChanged(current) ? !0 : !1;\n}\nfunction attemptEarlyBailoutIfNoScheduledUpdate(\n  current,\n  workInProgress,\n  renderLanes\n) {\n  switch (workInProgress.tag) {\n    case 3:\n      pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n      pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n      resetHydrationState();\n      break;\n    case 27:\n    case 5:\n      pushHostContext(workInProgress);\n      break;\n    case 4:\n      pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n      break;\n    case 10:\n      pushProvider(\n        workInProgress,\n        workInProgress.type,\n        workInProgress.memoizedProps.value\n      );\n      break;\n    case 31:\n      if (null !== workInProgress.memoizedState)\n        return (\n          (workInProgress.flags |= 128),\n          pushDehydratedActivitySuspenseHandler(workInProgress),\n          null\n        );\n      break;\n    case 13:\n      var state$108 = workInProgress.memoizedState;\n      if (null !== state$108) {\n        if (null !== state$108.dehydrated)\n          return (\n            pushPrimaryTreeSuspenseHandler(workInProgress),\n            (workInProgress.flags |= 128),\n            null\n          );\n        state$108 = propagateParentContextChanges(\n          current,\n          workInProgress,\n          renderLanes,\n          !1\n        );\n        var primaryChildLanes = workInProgress.child.childLanes;\n        if (state$108 || 0 !== (renderLanes & primaryChildLanes))\n          return updateSuspenseComponent(current, workInProgress, renderLanes);\n        pushPrimaryTreeSuspenseHandler(workInProgress);\n        current = bailoutOnAlreadyFinishedWork(\n          current,\n          workInProgress,\n          renderLanes\n        );\n        return null !== current ? current.sibling : null;\n      }\n      pushPrimaryTreeSuspenseHandler(workInProgress);\n      break;\n    case 19:\n      if (workInProgress.flags & 128)\n        return updateSuspenseListComponent(\n          current,\n          workInProgress,\n          renderLanes\n        );\n      primaryChildLanes = 0 !== (current.flags & 128);\n      state$108 = 0 !== (renderLanes & workInProgress.childLanes);\n      state$108 ||\n        (propagateParentContextChanges(\n          current,\n          workInProgress,\n          renderLanes,\n          !1\n        ),\n        (state$108 = 0 !== (renderLanes & workInProgress.childLanes)));\n      if (primaryChildLanes) {\n        if (state$108)\n          return updateSuspenseListComponent(\n            current,\n            workInProgress,\n            renderLanes\n          );\n        workInProgress.flags |= 128;\n      }\n      primaryChildLanes = workInProgress.memoizedState;\n      null !== primaryChildLanes &&\n        ((primaryChildLanes.rendering = null),\n        (primaryChildLanes.tail = null),\n        (primaryChildLanes.lastEffect = null));\n      pushSuspenseListContext(workInProgress, suspenseStackCursor.current);\n      if (state$108) break;\n      else return null;\n    case 22:\n      return (\n        (workInProgress.lanes = 0),\n        updateOffscreenComponent(\n          current,\n          workInProgress,\n          renderLanes,\n          workInProgress.pendingProps\n        )\n      );\n    case 24:\n      pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n  }\n  return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\nfunction beginWork(current, workInProgress, renderLanes) {\n  if (null !== current)\n    if (current.memoizedProps !== workInProgress.pendingProps)\n      didReceiveUpdate = !0;\n    else {\n      if (\n        !checkScheduledUpdateOrContext(current, renderLanes) &&\n        0 === (workInProgress.flags & 128)\n      )\n        return (\n          (didReceiveUpdate = !1),\n          attemptEarlyBailoutIfNoScheduledUpdate(\n            current,\n            workInProgress,\n            renderLanes\n          )\n        );\n      didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;\n    }\n  else\n    (didReceiveUpdate = !1),\n      isHydrating &&\n        0 !== (workInProgress.flags & 1048576) &&\n        pushTreeId(workInProgress, treeForkCount, workInProgress.index);\n  workInProgress.lanes = 0;\n  switch (workInProgress.tag) {\n    case 16:\n      a: {\n        var props = workInProgress.pendingProps;\n        current = resolveLazy(workInProgress.elementType);\n        workInProgress.type = current;\n        if (\"function\" === typeof current)\n          shouldConstruct(current)\n            ? ((props = resolveClassComponentProps(current, props)),\n              (workInProgress.tag = 1),\n              (workInProgress = updateClassComponent(\n                null,\n                workInProgress,\n                current,\n                props,\n                renderLanes\n              )))\n            : ((workInProgress.tag = 0),\n              (workInProgress = updateFunctionComponent(\n                null,\n                workInProgress,\n                current,\n                props,\n                renderLanes\n              )));\n        else {\n          if (void 0 !== current && null !== current) {\n            var $$typeof = current.$$typeof;\n            if ($$typeof === REACT_FORWARD_REF_TYPE) {\n              workInProgress.tag = 11;\n              workInProgress = updateForwardRef(\n                null,\n                workInProgress,\n                current,\n                props,\n                renderLanes\n              );\n              break a;\n            } else if ($$typeof === REACT_MEMO_TYPE) {\n              workInProgress.tag = 14;\n              workInProgress = updateMemoComponent(\n                null,\n                workInProgress,\n                current,\n                props,\n                renderLanes\n              );\n              break a;\n            } else if ($$typeof === REACT_CONTEXT_TYPE) {\n              workInProgress.tag = 10;\n              workInProgress.type = current;\n              workInProgress = updateContextProvider(\n                null,\n                workInProgress,\n                renderLanes\n              );\n              break a;\n            }\n          }\n          workInProgress = getComponentNameFromType(current) || current;\n          throw Error(formatProdErrorMessage(306, workInProgress, \"\"));\n        }\n      }\n      return workInProgress;\n    case 0:\n      return updateFunctionComponent(\n        current,\n        workInProgress,\n        workInProgress.type,\n        workInProgress.pendingProps,\n        renderLanes\n      );\n    case 1:\n      return (\n        (props = workInProgress.type),\n        ($$typeof = resolveClassComponentProps(\n          props,\n          workInProgress.pendingProps\n        )),\n        updateClassComponent(\n          current,\n          workInProgress,\n          props,\n          $$typeof,\n          renderLanes\n        )\n      );\n    case 3:\n      a: {\n        pushHostContainer(\n          workInProgress,\n          workInProgress.stateNode.containerInfo\n        );\n        if (null === current) throw Error(formatProdErrorMessage(387));\n        props = workInProgress.pendingProps;\n        var prevState = workInProgress.memoizedState;\n        $$typeof = prevState.element;\n        cloneUpdateQueue(current, workInProgress);\n        processUpdateQueue(workInProgress, props, null, renderLanes);\n        var nextState = workInProgress.memoizedState;\n        props = nextState.cache;\n        pushProvider(workInProgress, CacheContext, props);\n        props !== prevState.cache &&\n          propagateContextChanges(\n            workInProgress,\n            [CacheContext],\n            renderLanes,\n            !0\n          );\n        suspendIfUpdateReadFromEntangledAsyncAction();\n        props = nextState.element;\n        if (prevState.isDehydrated)\n          if (\n            ((prevState = {\n              element: props,\n              isDehydrated: !1,\n              cache: nextState.cache\n            }),\n            (workInProgress.updateQueue.baseState = prevState),\n            (workInProgress.memoizedState = prevState),\n            workInProgress.flags & 256)\n          ) {\n            workInProgress = mountHostRootWithoutHydrating(\n              current,\n              workInProgress,\n              props,\n              renderLanes\n            );\n            break a;\n          } else if (props !== $$typeof) {\n            $$typeof = createCapturedValueAtFiber(\n              Error(formatProdErrorMessage(424)),\n              workInProgress\n            );\n            queueHydrationError($$typeof);\n            workInProgress = mountHostRootWithoutHydrating(\n              current,\n              workInProgress,\n              props,\n              renderLanes\n            );\n            break a;\n          } else {\n            current = workInProgress.stateNode.containerInfo;\n            switch (current.nodeType) {\n              case 9:\n                current = current.body;\n                break;\n              default:\n                current =\n                  \"HTML\" === current.nodeName\n                    ? current.ownerDocument.body\n                    : current;\n            }\n            nextHydratableInstance = getNextHydratable(current.firstChild);\n            hydrationParentFiber = workInProgress;\n            isHydrating = !0;\n            hydrationErrors = null;\n            rootOrSingletonContext = !0;\n            renderLanes = mountChildFibers(\n              workInProgress,\n              null,\n              props,\n              renderLanes\n            );\n            for (workInProgress.child = renderLanes; renderLanes; )\n              (renderLanes.flags = (renderLanes.flags & -3) | 134221824),\n                (renderLanes = renderLanes.sibling);\n          }\n        else {\n          resetHydrationState();\n          if (props === $$typeof) {\n            workInProgress = bailoutOnAlreadyFinishedWork(\n              current,\n              workInProgress,\n              renderLanes\n            );\n            break a;\n          }\n          reconcileChildren(current, workInProgress, props, renderLanes);\n        }\n        workInProgress = workInProgress.child;\n      }\n      return workInProgress;\n    case 26:\n      return (\n        markRef(current, workInProgress),\n        null === current\n          ? (renderLanes = getResource(\n              workInProgress.type,\n              null,\n              workInProgress.pendingProps,\n              null\n            ))\n            ? (workInProgress.memoizedState = renderLanes)\n            : isHydrating ||\n              (workInProgress.stateNode = createHoistableInstance(\n                workInProgress.type,\n                workInProgress.pendingProps,\n                rootInstanceStackCursor.current,\n                workInProgress\n              ))\n          : (workInProgress.memoizedState = getResource(\n              workInProgress.type,\n              current.memoizedProps,\n              workInProgress.pendingProps,\n              current.memoizedState\n            )),\n        null\n      );\n    case 27:\n      return (\n        pushHostContext(workInProgress),\n        null === current &&\n          isHydrating &&\n          ((props = workInProgress.stateNode =\n            resolveSingletonInstance(\n              workInProgress.type,\n              workInProgress.pendingProps,\n              rootInstanceStackCursor.current\n            )),\n          (hydrationParentFiber = workInProgress),\n          (rootOrSingletonContext = !0),\n          ($$typeof = nextHydratableInstance),\n          isSingletonScope(workInProgress.type)\n            ? ((previousHydratableOnEnteringScopedSingleton = $$typeof),\n              (nextHydratableInstance = getNextHydratable(props.firstChild)))\n            : (nextHydratableInstance = $$typeof)),\n        reconcileChildren(\n          current,\n          workInProgress,\n          workInProgress.pendingProps.children,\n          renderLanes\n        ),\n        markRef(current, workInProgress),\n        null === current && (workInProgress.flags |= 4194304),\n        workInProgress.child\n      );\n    case 5:\n      if (null === current && isHydrating) {\n        if (($$typeof = props = nextHydratableInstance))\n          (props = canHydrateInstance(\n            props,\n            workInProgress.type,\n            workInProgress.pendingProps,\n            rootOrSingletonContext\n          )),\n            null !== props\n              ? ((workInProgress.stateNode = props),\n                (hydrationParentFiber = workInProgress),\n                (nextHydratableInstance = getNextHydratable(props.firstChild)),\n                (rootOrSingletonContext = !1),\n                ($$typeof = !0))\n              : ($$typeof = !1);\n        $$typeof || throwOnHydrationMismatch(workInProgress);\n      }\n      pushHostContext(workInProgress);\n      $$typeof = workInProgress.type;\n      prevState = workInProgress.pendingProps;\n      nextState = null !== current ? current.memoizedProps : null;\n      props = prevState.children;\n      shouldSetTextContent($$typeof, prevState)\n        ? (props = null)\n        : null !== nextState &&\n          shouldSetTextContent($$typeof, nextState) &&\n          (workInProgress.flags |= 32);\n      null !== workInProgress.memoizedState &&\n        (($$typeof = renderWithHooks(\n          current,\n          workInProgress,\n          TransitionAwareHostComponent,\n          null,\n          null,\n          renderLanes\n        )),\n        (HostTransitionContext._currentValue = $$typeof));\n      markRef(current, workInProgress);\n      reconcileChildren(current, workInProgress, props, renderLanes);\n      return workInProgress.child;\n    case 6:\n      if (null === current && isHydrating) {\n        if ((current = renderLanes = nextHydratableInstance))\n          (renderLanes = canHydrateTextInstance(\n            renderLanes,\n            workInProgress.pendingProps,\n            rootOrSingletonContext\n          )),\n            null !== renderLanes\n              ? ((workInProgress.stateNode = renderLanes),\n                (hydrationParentFiber = workInProgress),\n                (nextHydratableInstance = null),\n                (current = !0))\n              : (current = !1);\n        current || throwOnHydrationMismatch(workInProgress);\n      }\n      return null;\n    case 13:\n      return updateSuspenseComponent(current, workInProgress, renderLanes);\n    case 4:\n      return (\n        pushHostContainer(\n          workInProgress,\n          workInProgress.stateNode.containerInfo\n        ),\n        (props = workInProgress.pendingProps),\n        null === current\n          ? (workInProgress.child = reconcileChildFibers(\n              workInProgress,\n              null,\n              props,\n              renderLanes\n            ))\n          : reconcileChildren(current, workInProgress, props, renderLanes),\n        workInProgress.child\n      );\n    case 11:\n      return updateForwardRef(\n        current,\n        workInProgress,\n        workInProgress.type,\n        workInProgress.pendingProps,\n        renderLanes\n      );\n    case 7:\n      return (\n        (props = workInProgress.pendingProps),\n        markRef(current, workInProgress),\n        reconcileChildren(current, workInProgress, props, renderLanes),\n        workInProgress.child\n      );\n    case 8:\n      return (\n        reconcileChildren(\n          current,\n          workInProgress,\n          workInProgress.pendingProps.children,\n          renderLanes\n        ),\n        workInProgress.child\n      );\n    case 12:\n      return (\n        reconcileChildren(\n          current,\n          workInProgress,\n          workInProgress.pendingProps.children,\n          renderLanes\n        ),\n        workInProgress.child\n      );\n    case 10:\n      return updateContextProvider(current, workInProgress, renderLanes);\n    case 9:\n      return (\n        ($$typeof = workInProgress.type._context),\n        (props = workInProgress.pendingProps.children),\n        prepareToReadContext(workInProgress),\n        ($$typeof = readContext($$typeof)),\n        (props = props($$typeof)),\n        (workInProgress.flags |= 1),\n        reconcileChildren(current, workInProgress, props, renderLanes),\n        workInProgress.child\n      );\n    case 14:\n      return updateMemoComponent(\n        current,\n        workInProgress,\n        workInProgress.type,\n        workInProgress.pendingProps,\n        renderLanes\n      );\n    case 15:\n      return updateSimpleMemoComponent(\n        current,\n        workInProgress,\n        workInProgress.type,\n        workInProgress.pendingProps,\n        renderLanes\n      );\n    case 19:\n      return updateSuspenseListComponent(current, workInProgress, renderLanes);\n    case 31:\n      return updateActivityComponent(current, workInProgress, renderLanes);\n    case 22:\n      return updateOffscreenComponent(\n        current,\n        workInProgress,\n        renderLanes,\n        workInProgress.pendingProps\n      );\n    case 24:\n      return (\n        prepareToReadContext(workInProgress),\n        (props = readContext(CacheContext)),\n        null === current\n          ? (($$typeof = peekCacheFromPool()),\n            null === $$typeof &&\n              (($$typeof = workInProgressRoot),\n              (prevState = createCache()),\n              ($$typeof.pooledCache = prevState),\n              prevState.refCount++,\n              null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes),\n              ($$typeof = prevState)),\n            (workInProgress.memoizedState = { parent: props, cache: $$typeof }),\n            initializeUpdateQueue(workInProgress),\n            pushProvider(workInProgress, CacheContext, $$typeof))\n          : (0 !== (current.lanes & renderLanes) &&\n              (cloneUpdateQueue(current, workInProgress),\n              processUpdateQueue(workInProgress, null, null, renderLanes),\n              suspendIfUpdateReadFromEntangledAsyncAction()),\n            ($$typeof = current.memoizedState),\n            (prevState = workInProgress.memoizedState),\n            $$typeof.parent !== props\n              ? (($$typeof = { parent: props, cache: props }),\n                (workInProgress.memoizedState = $$typeof),\n                0 === workInProgress.lanes &&\n                  (workInProgress.memoizedState =\n                    workInProgress.updateQueue.baseState =\n                      $$typeof),\n                pushProvider(workInProgress, CacheContext, props))\n              : ((props = prevState.cache),\n                pushProvider(workInProgress, CacheContext, props),\n                props !== $$typeof.cache &&\n                  propagateContextChanges(\n                    workInProgress,\n                    [CacheContext],\n                    renderLanes,\n                    !0\n                  ))),\n        reconcileChildren(\n          current,\n          workInProgress,\n          workInProgress.pendingProps.children,\n          renderLanes\n        ),\n        workInProgress.child\n      );\n    case 30:\n      return (\n        null === workInProgress.stateNode &&\n          (workInProgress.stateNode = {\n            autoName: null,\n            paired: null,\n            clones: null,\n            ref: null\n          }),\n        (props = workInProgress.pendingProps),\n        null != props.name && \"auto\" !== props.name\n          ? (workInProgress.flags |= null === current ? 18882560 : 18874368)\n          : isHydrating && pushMaterializedTreeId(workInProgress),\n        null !== current && current.memoizedProps.name !== props.name\n          ? (workInProgress.flags |= 4194816)\n          : markRef(current, workInProgress),\n        reconcileChildren(current, workInProgress, props.children, renderLanes),\n        workInProgress.child\n      );\n    case 29:\n      throw workInProgress.pendingProps;\n  }\n  throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction markUpdate(workInProgress) {\n  workInProgress.flags |= 4;\n}\nfunction preloadInstanceAndSuspendIfNeeded(\n  workInProgress,\n  type,\n  oldProps,\n  newProps,\n  renderLanes\n) {\n  var JSCompiler_temp;\n  if ((JSCompiler_temp = 0 !== (workInProgress.mode & 32)))\n    JSCompiler_temp =\n      null === oldProps\n        ? maySuspendCommit(type, newProps)\n        : maySuspendCommit(type, newProps) &&\n          (newProps.src !== oldProps.src ||\n            newProps.srcSet !== oldProps.srcSet);\n  if (JSCompiler_temp) {\n    if (\n      ((workInProgress.flags |= 16777216),\n      (renderLanes & 335544128) === renderLanes)\n    )\n      if (workInProgress.stateNode.complete) workInProgress.flags |= 8192;\n      else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n      else\n        throw (\n          ((suspendedThenable = noopSuspenseyCommitThenable),\n          SuspenseyCommitException)\n        );\n  } else workInProgress.flags &= -16777217;\n}\nfunction preloadResourceAndSuspendIfNeeded(workInProgress, resource) {\n  if (\"stylesheet\" !== resource.type || 0 !== (resource.state.loading & 4))\n    workInProgress.flags &= -16777217;\n  else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))\n    if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n    else\n      throw (\n        ((suspendedThenable = noopSuspenseyCommitThenable),\n        SuspenseyCommitException)\n      );\n}\nfunction scheduleRetryEffect(workInProgress, retryQueue) {\n  null !== retryQueue && (workInProgress.flags |= 4);\n  workInProgress.flags & 16384 &&\n    ((retryQueue =\n      22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),\n    (workInProgress.lanes |= retryQueue),\n    (workInProgressSuspendedRetryLanes |= retryQueue));\n}\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n  if (!isHydrating)\n    switch (renderState.tailMode) {\n      case \"visible\":\n        break;\n      case \"collapsed\":\n        for (\n          var tailNode = renderState.tail, lastTailNode = null;\n          null !== tailNode;\n\n        )\n          null !== tailNode.alternate && (lastTailNode = tailNode),\n            (tailNode = tailNode.sibling);\n        null === lastTailNode\n          ? hasRenderedATailFallback || null === renderState.tail\n            ? (renderState.tail = null)\n            : (renderState.tail.sibling = null)\n          : (lastTailNode.sibling = null);\n        break;\n      default:\n        hasRenderedATailFallback = renderState.tail;\n        for (tailNode = null; null !== hasRenderedATailFallback; )\n          null !== hasRenderedATailFallback.alternate &&\n            (tailNode = hasRenderedATailFallback),\n            (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n        null === tailNode\n          ? (renderState.tail = null)\n          : (tailNode.sibling = null);\n    }\n}\nfunction bubbleProperties(completedWork) {\n  var didBailout =\n      null !== completedWork.alternate &&\n      completedWork.alternate.child === completedWork.child,\n    newChildLanes = 0,\n    subtreeFlags = 0;\n  if (didBailout)\n    for (var child$113 = completedWork.child; null !== child$113; )\n      (newChildLanes |= child$113.lanes | child$113.childLanes),\n        (subtreeFlags |= child$113.subtreeFlags & 1206910976),\n        (subtreeFlags |= child$113.flags & 1206910976),\n        (child$113.return = completedWork),\n        (child$113 = child$113.sibling);\n  else\n    for (child$113 = completedWork.child; null !== child$113; )\n      (newChildLanes |= child$113.lanes | child$113.childLanes),\n        (subtreeFlags |= child$113.subtreeFlags),\n        (subtreeFlags |= child$113.flags),\n        (child$113.return = completedWork),\n        (child$113 = child$113.sibling);\n  completedWork.subtreeFlags |= subtreeFlags;\n  completedWork.childLanes = newChildLanes;\n  return didBailout;\n}\nfunction completeWork(current, workInProgress, renderLanes) {\n  var newProps = workInProgress.pendingProps;\n  popTreeContext(workInProgress);\n  switch (workInProgress.tag) {\n    case 16:\n    case 15:\n    case 0:\n    case 11:\n    case 7:\n    case 8:\n    case 12:\n    case 9:\n    case 14:\n      return bubbleProperties(workInProgress), null;\n    case 1:\n      return bubbleProperties(workInProgress), null;\n    case 3:\n      renderLanes = workInProgress.stateNode;\n      newProps = null;\n      null !== current && (newProps = current.memoizedState.cache);\n      workInProgress.memoizedState.cache !== newProps &&\n        (workInProgress.flags |= 2048);\n      popProvider(CacheContext);\n      popHostContainer();\n      renderLanes.pendingContext &&\n        ((renderLanes.context = renderLanes.pendingContext),\n        (renderLanes.pendingContext = null));\n      if (null === current || null === current.child)\n        popHydrationState(workInProgress)\n          ? markUpdate(workInProgress)\n          : null === current ||\n            (current.memoizedState.isDehydrated &&\n              0 === (workInProgress.flags & 256)) ||\n            ((workInProgress.flags |= 1024),\n            upgradeHydrationErrorsToRecoverable());\n      bubbleProperties(workInProgress);\n      return null;\n    case 26:\n      var type = workInProgress.type,\n        nextResource = workInProgress.memoizedState;\n      null === current\n        ? (markUpdate(workInProgress),\n          null !== nextResource\n            ? (bubbleProperties(workInProgress),\n              preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n            : (bubbleProperties(workInProgress),\n              preloadInstanceAndSuspendIfNeeded(\n                workInProgress,\n                type,\n                null,\n                newProps,\n                renderLanes\n              )))\n        : nextResource\n          ? nextResource !== current.memoizedState\n            ? (markUpdate(workInProgress),\n              bubbleProperties(workInProgress),\n              preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n            : (bubbleProperties(workInProgress),\n              (workInProgress.flags &= -16777217))\n          : ((current = current.memoizedProps),\n            current !== newProps && markUpdate(workInProgress),\n            bubbleProperties(workInProgress),\n            preloadInstanceAndSuspendIfNeeded(\n              workInProgress,\n              type,\n              current,\n              newProps,\n              renderLanes\n            ));\n      return null;\n    case 27:\n      popHostContext(workInProgress);\n      renderLanes = rootInstanceStackCursor.current;\n      type = workInProgress.type;\n      if (null !== current && null != workInProgress.stateNode)\n        current.memoizedProps !== newProps && markUpdate(workInProgress);\n      else {\n        if (!newProps) {\n          if (null === workInProgress.stateNode)\n            throw Error(formatProdErrorMessage(166));\n          bubbleProperties(workInProgress);\n          workInProgress.subtreeFlags &= -33554433;\n          return null;\n        }\n        current = contextStackCursor.current;\n        popHydrationState(workInProgress)\n          ? prepareToHydrateHostInstance(workInProgress, current)\n          : ((current = resolveSingletonInstance(type, newProps, renderLanes)),\n            (workInProgress.stateNode = current),\n            markUpdate(workInProgress));\n      }\n      bubbleProperties(workInProgress);\n      workInProgress.subtreeFlags &= -33554433;\n      return null;\n    case 5:\n      popHostContext(workInProgress);\n      type = workInProgress.type;\n      if (null !== current && null != workInProgress.stateNode)\n        current.memoizedProps !== newProps && markUpdate(workInProgress);\n      else {\n        if (!newProps) {\n          if (null === workInProgress.stateNode)\n            throw Error(formatProdErrorMessage(166));\n          bubbleProperties(workInProgress);\n          workInProgress.subtreeFlags &= -33554433;\n          return null;\n        }\n        nextResource = contextStackCursor.current;\n        if (popHydrationState(workInProgress))\n          prepareToHydrateHostInstance(workInProgress, nextResource);\n        else {\n          var ownerDocument = getOwnerDocumentFromRootContainer(\n            rootInstanceStackCursor.current\n          );\n          switch (nextResource) {\n            case 1:\n              nextResource = ownerDocument.createElementNS(\n                \"http://www.w3.org/2000/svg\",\n                type\n              );\n              break;\n            case 2:\n              nextResource = ownerDocument.createElementNS(\n                \"http://www.w3.org/1998/Math/MathML\",\n                type\n              );\n              break;\n            default:\n              switch (type) {\n                case \"svg\":\n                  nextResource = ownerDocument.createElementNS(\n                    \"http://www.w3.org/2000/svg\",\n                    type\n                  );\n                  break;\n                case \"math\":\n                  nextResource = ownerDocument.createElementNS(\n                    \"http://www.w3.org/1998/Math/MathML\",\n                    type\n                  );\n                  break;\n                case \"script\":\n                  nextResource = ownerDocument.createElement(\"div\");\n                  nextResource.innerHTML = \"<script>\\x3c/script>\";\n                  nextResource = nextResource.removeChild(\n                    nextResource.firstChild\n                  );\n                  break;\n                case \"select\":\n                  nextResource =\n                    \"string\" === typeof newProps.is\n                      ? ownerDocument.createElement(\"select\", {\n                          is: newProps.is\n                        })\n                      : ownerDocument.createElement(\"select\");\n                  newProps.multiple\n                    ? (nextResource.multiple = !0)\n                    : newProps.size && (nextResource.size = newProps.size);\n                  break;\n                default:\n                  nextResource =\n                    \"string\" === typeof newProps.is\n                      ? ownerDocument.createElement(type, { is: newProps.is })\n                      : ownerDocument.createElement(type);\n              }\n          }\n          nextResource[internalInstanceKey] = workInProgress;\n          nextResource[internalPropsKey] = newProps;\n          a: for (\n            ownerDocument = workInProgress.child;\n            null !== ownerDocument;\n\n          ) {\n            if (5 === ownerDocument.tag || 6 === ownerDocument.tag)\n              nextResource.appendChild(ownerDocument.stateNode);\n            else if (\n              4 !== ownerDocument.tag &&\n              27 !== ownerDocument.tag &&\n              null !== ownerDocument.child\n            ) {\n              ownerDocument.child.return = ownerDocument;\n              ownerDocument = ownerDocument.child;\n              continue;\n            }\n            if (ownerDocument === workInProgress) break a;\n            for (; null === ownerDocument.sibling; ) {\n              if (\n                null === ownerDocument.return ||\n                ownerDocument.return === workInProgress\n              )\n                break a;\n              ownerDocument = ownerDocument.return;\n            }\n            ownerDocument.sibling.return = ownerDocument.return;\n            ownerDocument = ownerDocument.sibling;\n          }\n          workInProgress.stateNode = nextResource;\n          a: switch (\n            (setInitialProperties(nextResource, type, newProps), type)\n          ) {\n            case \"button\":\n            case \"input\":\n            case \"select\":\n            case \"textarea\":\n              newProps = !!newProps.autoFocus;\n              break a;\n            case \"img\":\n              newProps = !0;\n              break a;\n            default:\n              newProps = !1;\n          }\n          newProps && markUpdate(workInProgress);\n        }\n      }\n      bubbleProperties(workInProgress);\n      workInProgress.subtreeFlags &= -33554433;\n      preloadInstanceAndSuspendIfNeeded(\n        workInProgress,\n        workInProgress.type,\n        null === current ? null : current.memoizedProps,\n        workInProgress.pendingProps,\n        renderLanes\n      );\n      return null;\n    case 6:\n      if (current && null != workInProgress.stateNode)\n        current.memoizedProps !== newProps && markUpdate(workInProgress);\n      else {\n        if (\"string\" !== typeof newProps && null === workInProgress.stateNode)\n          throw Error(formatProdErrorMessage(166));\n        current = rootInstanceStackCursor.current;\n        if (popHydrationState(workInProgress)) {\n          current = workInProgress.stateNode;\n          renderLanes = workInProgress.memoizedProps;\n          newProps = null;\n          type = hydrationParentFiber;\n          if (null !== type)\n            switch (type.tag) {\n              case 27:\n              case 5:\n                newProps = type.memoizedProps;\n            }\n          current[internalInstanceKey] = workInProgress;\n          current =\n            current.nodeValue === renderLanes ||\n            (null !== newProps && !0 === newProps.suppressHydrationWarning) ||\n            checkForUnmatchedText(current.nodeValue, renderLanes)\n              ? !0\n              : !1;\n          current || throwOnHydrationMismatch(workInProgress, !0);\n        } else\n          (current =\n            getOwnerDocumentFromRootContainer(current).createTextNode(\n              newProps\n            )),\n            (current[internalInstanceKey] = workInProgress),\n            (workInProgress.stateNode = current);\n      }\n      bubbleProperties(workInProgress);\n      return null;\n    case 31:\n      renderLanes = workInProgress.memoizedState;\n      if (null === current || null !== current.memoizedState) {\n        newProps = popHydrationState(workInProgress);\n        if (null !== renderLanes) {\n          if (null === current) {\n            if (!newProps) throw Error(formatProdErrorMessage(318));\n            current = workInProgress.memoizedState;\n            current = null !== current ? current.dehydrated : null;\n            if (!current) throw Error(formatProdErrorMessage(557));\n            current[internalInstanceKey] = workInProgress;\n          } else\n            resetHydrationState(),\n              0 === (workInProgress.flags & 128) &&\n                (workInProgress.memoizedState = null),\n              (workInProgress.flags |= 4);\n          bubbleProperties(workInProgress);\n          current = !1;\n        } else\n          (renderLanes = upgradeHydrationErrorsToRecoverable()),\n            null !== current &&\n              null !== current.memoizedState &&\n              (current.memoizedState.hydrationErrors = renderLanes),\n            (current = !0);\n        if (!current) {\n          if (workInProgress.flags & 256)\n            return popSuspenseHandler(workInProgress), workInProgress;\n          popSuspenseHandler(workInProgress);\n          return null;\n        }\n        if (0 !== (workInProgress.flags & 128))\n          throw Error(formatProdErrorMessage(558));\n      }\n      bubbleProperties(workInProgress);\n      return null;\n    case 13:\n      newProps = workInProgress.memoizedState;\n      if (\n        null === current ||\n        (null !== current.memoizedState &&\n          null !== current.memoizedState.dehydrated)\n      ) {\n        type = popHydrationState(workInProgress);\n        if (null !== newProps && null !== newProps.dehydrated) {\n          if (null === current) {\n            if (!type) throw Error(formatProdErrorMessage(318));\n            type = workInProgress.memoizedState;\n            type = null !== type ? type.dehydrated : null;\n            if (!type) throw Error(formatProdErrorMessage(317));\n            type[internalInstanceKey] = workInProgress;\n          } else\n            resetHydrationState(),\n              0 === (workInProgress.flags & 128) &&\n                (workInProgress.memoizedState = null),\n              (workInProgress.flags |= 4);\n          bubbleProperties(workInProgress);\n          type = !1;\n        } else\n          (type = upgradeHydrationErrorsToRecoverable()),\n            null !== current &&\n              null !== current.memoizedState &&\n              (current.memoizedState.hydrationErrors = type),\n            (type = !0);\n        if (!type) {\n          if (workInProgress.flags & 256)\n            return popSuspenseHandler(workInProgress), workInProgress;\n          popSuspenseHandler(workInProgress);\n          return null;\n        }\n      }\n      popSuspenseHandler(workInProgress);\n      if (0 !== (workInProgress.flags & 128))\n        return (workInProgress.lanes = renderLanes), workInProgress;\n      renderLanes = null !== newProps;\n      current = null !== current && null !== current.memoizedState;\n      renderLanes &&\n        ((newProps = workInProgress.child),\n        (type = null),\n        null !== newProps.alternate &&\n          null !== newProps.alternate.memoizedState &&\n          null !== newProps.alternate.memoizedState.cachePool &&\n          (type = newProps.alternate.memoizedState.cachePool.pool),\n        (nextResource = null),\n        null !== newProps.memoizedState &&\n          null !== newProps.memoizedState.cachePool &&\n          (nextResource = newProps.memoizedState.cachePool.pool),\n        nextResource !== type && (newProps.flags |= 2048));\n      renderLanes !== current &&\n        renderLanes &&\n        (workInProgress.child.flags |= 8192);\n      scheduleRetryEffect(workInProgress, workInProgress.updateQueue);\n      bubbleProperties(workInProgress);\n      return null;\n    case 4:\n      return (\n        popHostContainer(),\n        null === current &&\n          listenToAllSupportedEvents(workInProgress.stateNode.containerInfo),\n        (workInProgress.flags |= 67108864),\n        bubbleProperties(workInProgress),\n        null\n      );\n    case 10:\n      return (\n        popProvider(workInProgress.type), bubbleProperties(workInProgress), null\n      );\n    case 19:\n      popSuspenseListContext(workInProgress);\n      newProps = workInProgress.memoizedState;\n      if (null === newProps) return bubbleProperties(workInProgress), null;\n      type = 0 !== (workInProgress.flags & 128);\n      nextResource = newProps.rendering;\n      if (null === nextResource)\n        if (type) cutOffTailIfNeeded(newProps, !1);\n        else {\n          if (\n            0 !== workInProgressRootExitStatus ||\n            (null !== current && 0 !== (current.flags & 128))\n          )\n            for (current = workInProgress.child; null !== current; ) {\n              nextResource = findFirstSuspended(current);\n              if (null !== nextResource) {\n                workInProgress.flags |= 128;\n                cutOffTailIfNeeded(newProps, !1);\n                current = nextResource.updateQueue;\n                workInProgress.updateQueue = current;\n                scheduleRetryEffect(workInProgress, current);\n                workInProgress.subtreeFlags = 0;\n                current = renderLanes;\n                for (renderLanes = workInProgress.child; null !== renderLanes; )\n                  resetWorkInProgress(renderLanes, current),\n                    (renderLanes = renderLanes.sibling);\n                pushSuspenseListContext(\n                  workInProgress,\n                  (suspenseStackCursor.current & 1) | 2\n                );\n                isHydrating &&\n                  pushTreeFork(workInProgress, newProps.treeForkCount);\n                return workInProgress.child;\n              }\n              current = current.sibling;\n            }\n          null !== newProps.tail &&\n            now() > workInProgressRootRenderTargetTime &&\n            ((workInProgress.flags |= 128),\n            (type = !0),\n            cutOffTailIfNeeded(newProps, !1),\n            (workInProgress.lanes = 4194304));\n        }\n      else {\n        if (!type)\n          if (\n            ((current = findFirstSuspended(nextResource)), null !== current)\n          ) {\n            if (\n              ((workInProgress.flags |= 128),\n              (type = !0),\n              (current = current.updateQueue),\n              (workInProgress.updateQueue = current),\n              scheduleRetryEffect(workInProgress, current),\n              cutOffTailIfNeeded(newProps, !0),\n              null === newProps.tail &&\n                \"collapsed\" !== newProps.tailMode &&\n                \"visible\" !== newProps.tailMode &&\n                !nextResource.alternate &&\n                !isHydrating)\n            )\n              return bubbleProperties(workInProgress), null;\n          } else\n            2 * now() - newProps.renderingStartTime >\n              workInProgressRootRenderTargetTime &&\n              536870912 !== renderLanes &&\n              ((workInProgress.flags |= 128),\n              (type = !0),\n              cutOffTailIfNeeded(newProps, !1),\n              (workInProgress.lanes = 4194304));\n        newProps.isBackwards\n          ? ((nextResource.sibling = workInProgress.child),\n            (workInProgress.child = nextResource))\n          : ((current = newProps.last),\n            null !== current\n              ? (current.sibling = nextResource)\n              : (workInProgress.child = nextResource),\n            (newProps.last = nextResource));\n      }\n      if (null !== newProps.tail) {\n        current = newProps.tail;\n        a: {\n          for (renderLanes = current; null !== renderLanes; ) {\n            if (null !== renderLanes.alternate) {\n              renderLanes = !1;\n              break a;\n            }\n            renderLanes = renderLanes.sibling;\n          }\n          renderLanes = !0;\n        }\n        newProps.rendering = current;\n        newProps.tail = current.sibling;\n        newProps.renderingStartTime = now();\n        current.sibling = null;\n        nextResource = suspenseStackCursor.current;\n        nextResource = type ? (nextResource & 1) | 2 : nextResource & 1;\n        \"visible\" === newProps.tailMode ||\n        \"collapsed\" === newProps.tailMode ||\n        !renderLanes ||\n        isHydrating\n          ? pushSuspenseListContext(workInProgress, nextResource)\n          : ((renderLanes = nextResource),\n            push(suspenseHandlerStackCursor, workInProgress),\n            push(suspenseStackCursor, renderLanes),\n            null === shellBoundary && (shellBoundary = workInProgress));\n        isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount);\n        return current;\n      }\n      bubbleProperties(workInProgress);\n      return null;\n    case 22:\n    case 23:\n      return (\n        popSuspenseHandler(workInProgress),\n        popHiddenContext(),\n        (newProps = null !== workInProgress.memoizedState),\n        null !== current\n          ? (null !== current.memoizedState) !== newProps &&\n            (workInProgress.flags |= 8192)\n          : newProps && (workInProgress.flags |= 8192),\n        newProps\n          ? 0 !== (renderLanes & 536870912) &&\n            0 === (workInProgress.flags & 128) &&\n            (bubbleProperties(workInProgress),\n            workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192))\n          : bubbleProperties(workInProgress),\n        (renderLanes = workInProgress.updateQueue),\n        null !== renderLanes &&\n          scheduleRetryEffect(workInProgress, renderLanes.retryQueue),\n        (renderLanes = null),\n        null !== current &&\n          null !== current.memoizedState &&\n          null !== current.memoizedState.cachePool &&\n          (renderLanes = current.memoizedState.cachePool.pool),\n        (newProps = null),\n        null !== workInProgress.memoizedState &&\n          null !== workInProgress.memoizedState.cachePool &&\n          (newProps = workInProgress.memoizedState.cachePool.pool),\n        newProps !== renderLanes && (workInProgress.flags |= 2048),\n        null !== current && pop(resumedCache),\n        null\n      );\n    case 24:\n      return (\n        (renderLanes = null),\n        null !== current && (renderLanes = current.memoizedState.cache),\n        workInProgress.memoizedState.cache !== renderLanes &&\n          (workInProgress.flags |= 2048),\n        popProvider(CacheContext),\n        bubbleProperties(workInProgress),\n        null\n      );\n    case 25:\n      return null;\n    case 30:\n      return (\n        (workInProgress.flags |= 33554432),\n        bubbleProperties(workInProgress),\n        null\n      );\n  }\n  throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction unwindWork(current, workInProgress) {\n  popTreeContext(workInProgress);\n  switch (workInProgress.tag) {\n    case 1:\n      return (\n        (current = workInProgress.flags),\n        current & 65536\n          ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n          : null\n      );\n    case 3:\n      return (\n        popProvider(CacheContext),\n        popHostContainer(),\n        (current = workInProgress.flags),\n        0 !== (current & 65536) && 0 === (current & 128)\n          ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n          : null\n      );\n    case 26:\n    case 27:\n    case 5:\n      return popHostContext(workInProgress), null;\n    case 31:\n      if (null !== workInProgress.memoizedState) {\n        popSuspenseHandler(workInProgress);\n        if (null === workInProgress.alternate)\n          throw Error(formatProdErrorMessage(340));\n        resetHydrationState();\n      }\n      current = workInProgress.flags;\n      return current & 65536\n        ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n        : null;\n    case 13:\n      popSuspenseHandler(workInProgress);\n      current = workInProgress.memoizedState;\n      if (null !== current && null !== current.dehydrated) {\n        if (null === workInProgress.alternate)\n          throw Error(formatProdErrorMessage(340));\n        resetHydrationState();\n      }\n      current = workInProgress.flags;\n      return current & 65536\n        ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n        : null;\n    case 19:\n      return (\n        popSuspenseListContext(workInProgress),\n        (current = workInProgress.flags),\n        current & 65536\n          ? ((workInProgress.flags = (current & -65537) | 128),\n            (current = workInProgress.memoizedState),\n            null !== current &&\n              ((current.rendering = null), (current.tail = null)),\n            (workInProgress.flags |= 4),\n            workInProgress)\n          : null\n      );\n    case 4:\n      return popHostContainer(), null;\n    case 10:\n      return popProvider(workInProgress.type), null;\n    case 22:\n    case 23:\n      return (\n        popSuspenseHandler(workInProgress),\n        popHiddenContext(),\n        null !== current && pop(resumedCache),\n        (current = workInProgress.flags),\n        current & 65536\n          ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n          : null\n      );\n    case 24:\n      return popProvider(CacheContext), null;\n    case 25:\n      return null;\n    default:\n      return null;\n  }\n}\nfunction unwindInterruptedWork(current, interruptedWork) {\n  popTreeContext(interruptedWork);\n  switch (interruptedWork.tag) {\n    case 3:\n      popProvider(CacheContext);\n      popHostContainer();\n      break;\n    case 26:\n    case 27:\n    case 5:\n      popHostContext(interruptedWork);\n      break;\n    case 4:\n      popHostContainer();\n      break;\n    case 31:\n      null !== interruptedWork.memoizedState &&\n        popSuspenseHandler(interruptedWork);\n      break;\n    case 13:\n      popSuspenseHandler(interruptedWork);\n      break;\n    case 19:\n      popSuspenseListContext(interruptedWork);\n      break;\n    case 10:\n      popProvider(interruptedWork.type);\n      break;\n    case 22:\n    case 23:\n      popSuspenseHandler(interruptedWork);\n      popHiddenContext();\n      null !== current && pop(resumedCache);\n      break;\n    case 24:\n      popProvider(CacheContext);\n  }\n}\nfunction commitHookEffectListMount(flags, finishedWork) {\n  try {\n    var updateQueue = finishedWork.updateQueue,\n      lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n    if (null !== lastEffect) {\n      var firstEffect = lastEffect.next;\n      updateQueue = firstEffect;\n      do {\n        if ((updateQueue.tag & flags) === flags) {\n          lastEffect = void 0;\n          var create = updateQueue.create,\n            inst = updateQueue.inst;\n          lastEffect = create();\n          inst.destroy = lastEffect;\n        }\n        updateQueue = updateQueue.next;\n      } while (updateQueue !== firstEffect);\n    }\n  } catch (error) {\n    captureCommitPhaseError(finishedWork, finishedWork.return, error);\n  }\n}\nfunction commitHookEffectListUnmount(\n  flags,\n  finishedWork,\n  nearestMountedAncestor$jscomp$0\n) {\n  try {\n    var updateQueue = finishedWork.updateQueue,\n      lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n    if (null !== lastEffect) {\n      var firstEffect = lastEffect.next;\n      updateQueue = firstEffect;\n      do {\n        if ((updateQueue.tag & flags) === flags) {\n          var inst = updateQueue.inst,\n            destroy = inst.destroy;\n          if (void 0 !== destroy) {\n            inst.destroy = void 0;\n            lastEffect = finishedWork;\n            var nearestMountedAncestor = nearestMountedAncestor$jscomp$0,\n              destroy_ = destroy;\n            try {\n              destroy_();\n            } catch (error) {\n              captureCommitPhaseError(\n                lastEffect,\n                nearestMountedAncestor,\n                error\n              );\n            }\n          }\n        }\n        updateQueue = updateQueue.next;\n      } while (updateQueue !== firstEffect);\n    }\n  } catch (error) {\n    captureCommitPhaseError(finishedWork, finishedWork.return, error);\n  }\n}\nfunction commitClassCallbacks(finishedWork) {\n  var updateQueue = finishedWork.updateQueue;\n  if (null !== updateQueue) {\n    var instance = finishedWork.stateNode;\n    try {\n      commitCallbacks(updateQueue, instance);\n    } catch (error) {\n      captureCommitPhaseError(finishedWork, finishedWork.return, error);\n    }\n  }\n}\nfunction safelyCallComponentWillUnmount(\n  current,\n  nearestMountedAncestor,\n  instance\n) {\n  instance.props = resolveClassComponentProps(\n    current.type,\n    current.memoizedProps\n  );\n  instance.state = current.memoizedState;\n  try {\n    instance.componentWillUnmount();\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n}\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n  try {\n    var ref = current.ref;\n    if (null !== ref) {\n      switch (current.tag) {\n        case 26:\n        case 27:\n        case 5:\n          var instanceToUse = current.stateNode;\n          break;\n        case 30:\n          var instance = current.stateNode,\n            name = getViewTransitionName(current.memoizedProps, instance);\n          if (null === instance.ref || instance.ref.name !== name)\n            instance.ref = createViewTransitionInstance(name);\n          instanceToUse = instance.ref;\n          break;\n        case 7:\n          if (null === current.stateNode) {\n            var fragmentInstance = new FragmentInstance(current);\n            traverseVisibleInstancesAndTextInstances(\n              current.child,\n              !1,\n              addFragmentHandleToFiber,\n              fragmentInstance,\n              void 0,\n              void 0\n            );\n            current.stateNode = fragmentInstance;\n          }\n          instanceToUse = current.stateNode;\n          break;\n        default:\n          instanceToUse = current.stateNode;\n      }\n      \"function\" === typeof ref\n        ? (current.refCleanup = ref(instanceToUse))\n        : (ref.current = instanceToUse);\n    }\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n}\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n  var ref = current.ref,\n    refCleanup = current.refCleanup;\n  if (null !== ref)\n    if (\"function\" === typeof refCleanup)\n      try {\n        refCleanup();\n      } catch (error) {\n        captureCommitPhaseError(current, nearestMountedAncestor, error);\n      } finally {\n        (current.refCleanup = null),\n          (current = current.alternate),\n          null != current && (current.refCleanup = null);\n      }\n    else if (\"function\" === typeof ref)\n      try {\n        ref(null);\n      } catch (error$148) {\n        captureCommitPhaseError(current, nearestMountedAncestor, error$148);\n      }\n    else ref.current = null;\n}\nfunction commitNewChildToFragmentInstances(fiber, parentFragmentInstances) {\n  if (\n    (5 === fiber.tag || 27 === fiber.tag || 6 === fiber.tag) &&\n    null === fiber.alternate &&\n    null !== parentFragmentInstances\n  )\n    for (var i = 0; i < parentFragmentInstances.length; i++)\n      commitNewChildToFragmentInstance(\n        fiber.stateNode,\n        parentFragmentInstances[i]\n      );\n}\nfunction commitFragmentInstanceInsertionEffects(fiber) {\n  for (var parent = fiber.return; null !== parent; ) {\n    isFragmentInstanceParent(parent) &&\n      commitNewChildToFragmentInstance(fiber.stateNode, parent.stateNode);\n    if (isFragmentInstanceHostBoundary(parent)) break;\n    parent = parent.return;\n  }\n}\nfunction commitFragmentInstanceDeletionEffects(fiber) {\n  for (var parent = fiber.return; null !== parent; ) {\n    isFragmentInstanceParent(parent) &&\n      deleteChildFromFragmentInstance(fiber.stateNode, parent.stateNode);\n    if (isFragmentInstanceHostBoundary(parent)) break;\n    parent = parent.return;\n  }\n}\nfunction isFragmentInstanceHostBoundary(fiber) {\n  return 5 === fiber.tag || 3 === fiber.tag || 27 === fiber.tag;\n}\nfunction isFragmentInstanceParent(fiber) {\n  return fiber && 7 === fiber.tag && null !== fiber.stateNode;\n}\nfunction commitHostMount(finishedWork) {\n  var type = finishedWork.type,\n    props = finishedWork.memoizedProps,\n    instance = finishedWork.stateNode;\n  try {\n    a: switch (type) {\n      case \"button\":\n      case \"input\":\n      case \"select\":\n      case \"textarea\":\n        props.autoFocus && instance.focus();\n        break a;\n      case \"img\":\n        props.src\n          ? (instance.src = props.src)\n          : props.srcSet && (instance.srcset = props.srcSet);\n    }\n  } catch (error) {\n    captureCommitPhaseError(finishedWork, finishedWork.return, error);\n  }\n}\nfunction commitHostUpdate(finishedWork, newProps, oldProps) {\n  try {\n    var domElement = finishedWork.stateNode;\n    updateProperties(domElement, finishedWork.type, oldProps, newProps);\n    domElement[internalPropsKey] = newProps;\n  } catch (error) {\n    captureCommitPhaseError(finishedWork, finishedWork.return, error);\n  }\n}\nfunction isHostParent(fiber) {\n  return (\n    5 === fiber.tag ||\n    3 === fiber.tag ||\n    26 === fiber.tag ||\n    (27 === fiber.tag && isSingletonScope(fiber.type)) ||\n    4 === fiber.tag\n  );\n}\nfunction getHostSibling(fiber) {\n  a: for (;;) {\n    for (; null === fiber.sibling; ) {\n      if (null === fiber.return || isHostParent(fiber.return)) return null;\n      fiber = fiber.return;\n    }\n    fiber.sibling.return = fiber.return;\n    for (\n      fiber = fiber.sibling;\n      5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;\n\n    ) {\n      if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;\n      if (fiber.flags & 2) continue a;\n      if (null === fiber.child || 4 === fiber.tag) continue a;\n      else (fiber.child.return = fiber), (fiber = fiber.child);\n    }\n    if (!(fiber.flags & 2)) return fiber.stateNode;\n  }\n}\nfunction insertOrAppendPlacementNodeIntoContainer(\n  node,\n  before,\n  parent,\n  parentFragmentInstances\n) {\n  var tag = node.tag;\n  if (5 === tag || 6 === tag)\n    (tag = node.stateNode),\n      before\n        ? (9 === parent.nodeType\n            ? parent.body\n            : \"HTML\" === parent.nodeName\n              ? parent.ownerDocument.body\n              : parent\n          ).insertBefore(tag, before)\n        : ((before =\n            9 === parent.nodeType\n              ? parent.body\n              : \"HTML\" === parent.nodeName\n                ? parent.ownerDocument.body\n                : parent),\n          before.appendChild(tag),\n          (parent = parent._reactRootContainer),\n          (null !== parent && void 0 !== parent) ||\n            null !== before.onclick ||\n            (before.onclick = noop$1)),\n      commitNewChildToFragmentInstances(node, parentFragmentInstances),\n      (viewTransitionMutationContext = !0);\n  else if (\n    4 !== tag &&\n    (27 === tag &&\n      (commitNewChildToFragmentInstances(node, parentFragmentInstances),\n      (parentFragmentInstances = null),\n      isSingletonScope(node.type) &&\n        ((parent = node.stateNode), (before = null))),\n    (node = node.child),\n    null !== node)\n  )\n    for (\n      insertOrAppendPlacementNodeIntoContainer(\n        node,\n        before,\n        parent,\n        parentFragmentInstances\n      ),\n        node = node.sibling;\n      null !== node;\n\n    )\n      insertOrAppendPlacementNodeIntoContainer(\n        node,\n        before,\n        parent,\n        parentFragmentInstances\n      ),\n        (node = node.sibling);\n}\nfunction insertOrAppendPlacementNode(\n  node,\n  before,\n  parent,\n  parentFragmentInstances\n) {\n  var tag = node.tag;\n  if (5 === tag || 6 === tag)\n    (tag = node.stateNode),\n      before ? parent.insertBefore(tag, before) : parent.appendChild(tag),\n      commitNewChildToFragmentInstances(node, parentFragmentInstances),\n      (viewTransitionMutationContext = !0);\n  else if (\n    4 !== tag &&\n    (27 === tag &&\n      (commitNewChildToFragmentInstances(node, parentFragmentInstances),\n      (parentFragmentInstances = null),\n      isSingletonScope(node.type) && (parent = node.stateNode)),\n    (node = node.child),\n    null !== node)\n  )\n    for (\n      insertOrAppendPlacementNode(\n        node,\n        before,\n        parent,\n        parentFragmentInstances\n      ),\n        node = node.sibling;\n      null !== node;\n\n    )\n      insertOrAppendPlacementNode(\n        node,\n        before,\n        parent,\n        parentFragmentInstances\n      ),\n        (node = node.sibling);\n}\nfunction commitHostSingletonAcquisition(finishedWork) {\n  var singleton = finishedWork.stateNode,\n    props = finishedWork.memoizedProps;\n  try {\n    for (\n      var type = finishedWork.type, attributes = singleton.attributes;\n      attributes.length;\n\n    )\n      singleton.removeAttributeNode(attributes[0]);\n    setInitialProperties(singleton, type, props);\n    singleton[internalInstanceKey] = finishedWork;\n    singleton[internalPropsKey] = props;\n  } catch (error) {\n    captureCommitPhaseError(finishedWork, finishedWork.return, error);\n  }\n}\nvar shouldStartViewTransition = !1,\n  appearingViewTransitions = null;\nfunction trackEnterViewTransitions(placement) {\n  if (30 === placement.tag || 0 !== (placement.subtreeFlags & 33554432))\n    shouldStartViewTransition = !0;\n}\nvar viewTransitionCancelableChildren = null;\nfunction pushViewTransitionCancelableScope() {\n  var prevChildren = viewTransitionCancelableChildren;\n  viewTransitionCancelableChildren = null;\n  return prevChildren;\n}\nvar viewTransitionHostInstanceIdx = 0;\nfunction applyViewTransitionToHostInstances(\n  fiber,\n  name,\n  className,\n  collectMeasurements,\n  stopAtNestedViewTransitions\n) {\n  viewTransitionHostInstanceIdx = 0;\n  return applyViewTransitionToHostInstancesRecursive(\n    fiber.child,\n    name,\n    className,\n    collectMeasurements,\n    stopAtNestedViewTransitions\n  );\n}\nfunction applyViewTransitionToHostInstancesRecursive(\n  child,\n  name,\n  className,\n  collectMeasurements,\n  stopAtNestedViewTransitions\n) {\n  for (var inViewport = !1; null !== child; ) {\n    if (5 === child.tag) {\n      var instance = child.stateNode;\n      if (null !== collectMeasurements) {\n        var measurement = measureInstance(instance);\n        collectMeasurements.push(measurement);\n        measurement.view && (inViewport = !0);\n      } else\n        inViewport || (measureInstance(instance).view && (inViewport = !0));\n      shouldStartViewTransition = !0;\n      applyViewTransitionName(\n        instance,\n        0 === viewTransitionHostInstanceIdx\n          ? name\n          : name + \"_\" + viewTransitionHostInstanceIdx,\n        className\n      );\n      viewTransitionHostInstanceIdx++;\n    } else if (22 !== child.tag || null === child.memoizedState)\n      (30 === child.tag && stopAtNestedViewTransitions) ||\n        (applyViewTransitionToHostInstancesRecursive(\n          child.child,\n          name,\n          className,\n          collectMeasurements,\n          stopAtNestedViewTransitions\n        ) &&\n          (inViewport = !0));\n    child = child.sibling;\n  }\n  return inViewport;\n}\nfunction restoreViewTransitionOnHostInstances(\n  child,\n  stopAtNestedViewTransitions\n) {\n  for (; null !== child; ) {\n    if (5 === child.tag)\n      restoreViewTransitionName(child.stateNode, child.memoizedProps);\n    else if (22 !== child.tag || null === child.memoizedState)\n      (30 === child.tag && stopAtNestedViewTransitions) ||\n        restoreViewTransitionOnHostInstances(\n          child.child,\n          stopAtNestedViewTransitions\n        );\n    child = child.sibling;\n  }\n}\nfunction commitAppearingPairViewTransitions(placement) {\n  if (0 !== (placement.subtreeFlags & 18874368))\n    for (placement = placement.child; null !== placement; ) {\n      if (22 !== placement.tag || null === placement.memoizedState)\n        if (\n          (commitAppearingPairViewTransitions(placement),\n          30 === placement.tag &&\n            0 !== (placement.flags & 18874368) &&\n            placement.stateNode.paired)\n        ) {\n          var props = placement.memoizedProps;\n          if (null == props.name || \"auto\" === props.name)\n            throw Error(formatProdErrorMessage(544));\n          var name = props.name;\n          props = getViewTransitionClassName(props.default, props.share);\n          \"none\" !== props &&\n            (applyViewTransitionToHostInstances(\n              placement,\n              name,\n              props,\n              null,\n              !1\n            ) ||\n              restoreViewTransitionOnHostInstances(placement.child, !1));\n        }\n      placement = placement.sibling;\n    }\n}\nfunction commitEnterViewTransitions(placement, gesture) {\n  if (30 === placement.tag) {\n    var state = placement.stateNode,\n      props = placement.memoizedProps,\n      name = getViewTransitionName(props, state),\n      className = getViewTransitionClassName(\n        props.default,\n        state.paired ? props.share : props.enter\n      );\n    \"none\" !== className\n      ? applyViewTransitionToHostInstances(placement, name, className, null, !1)\n        ? (commitAppearingPairViewTransitions(placement),\n          state.paired ||\n            gesture ||\n            scheduleViewTransitionEvent(placement, props.onEnter))\n        : restoreViewTransitionOnHostInstances(placement.child, !1)\n      : commitAppearingPairViewTransitions(placement);\n  } else if (0 !== (placement.subtreeFlags & 33554432))\n    for (placement = placement.child; null !== placement; )\n      commitEnterViewTransitions(placement, gesture),\n        (placement = placement.sibling);\n  else commitAppearingPairViewTransitions(placement);\n}\nfunction commitDeletedPairViewTransitions(deletion) {\n  if (\n    null !== appearingViewTransitions &&\n    0 !== appearingViewTransitions.size\n  ) {\n    var pairs = appearingViewTransitions;\n    if (0 !== (deletion.subtreeFlags & 18874368))\n      for (deletion = deletion.child; null !== deletion; ) {\n        if (22 !== deletion.tag || null === deletion.memoizedState) {\n          if (30 === deletion.tag && 0 !== (deletion.flags & 18874368)) {\n            var props = deletion.memoizedProps,\n              name = props.name;\n            if (null != name && \"auto\" !== name) {\n              var pair = pairs.get(name);\n              if (void 0 !== pair) {\n                var className = getViewTransitionClassName(\n                  props.default,\n                  props.share\n                );\n                \"none\" !== className &&\n                  (applyViewTransitionToHostInstances(\n                    deletion,\n                    name,\n                    className,\n                    null,\n                    !1\n                  )\n                    ? ((className = deletion.stateNode),\n                      (pair.paired = className),\n                      (className.paired = pair),\n                      scheduleViewTransitionEvent(deletion, props.onShare))\n                    : restoreViewTransitionOnHostInstances(deletion.child, !1));\n                pairs.delete(name);\n                if (0 === pairs.size) break;\n              }\n            }\n          }\n          commitDeletedPairViewTransitions(deletion);\n        }\n        deletion = deletion.sibling;\n      }\n  }\n}\nfunction commitExitViewTransitions(deletion) {\n  if (30 === deletion.tag) {\n    var props = deletion.memoizedProps,\n      name = getViewTransitionName(props, deletion.stateNode),\n      pair =\n        null !== appearingViewTransitions\n          ? appearingViewTransitions.get(name)\n          : void 0,\n      className = getViewTransitionClassName(\n        props.default,\n        void 0 !== pair ? props.share : props.exit\n      );\n    \"none\" !== className &&\n      (applyViewTransitionToHostInstances(deletion, name, className, null, !1)\n        ? void 0 !== pair\n          ? ((className = deletion.stateNode),\n            (pair.paired = className),\n            (className.paired = pair),\n            appearingViewTransitions.delete(name),\n            scheduleViewTransitionEvent(deletion, props.onShare))\n          : scheduleViewTransitionEvent(deletion, props.onExit)\n        : restoreViewTransitionOnHostInstances(deletion.child, !1));\n    null !== appearingViewTransitions &&\n      commitDeletedPairViewTransitions(deletion);\n  } else if (0 !== (deletion.subtreeFlags & 33554432))\n    for (deletion = deletion.child; null !== deletion; )\n      commitExitViewTransitions(deletion), (deletion = deletion.sibling);\n  else\n    null !== appearingViewTransitions &&\n      commitDeletedPairViewTransitions(deletion);\n}\nfunction commitNestedViewTransitions(changedParent) {\n  for (changedParent = changedParent.child; null !== changedParent; ) {\n    if (30 === changedParent.tag) {\n      var props = changedParent.memoizedProps,\n        name = getViewTransitionName(props, changedParent.stateNode);\n      props = getViewTransitionClassName(props.default, props.update);\n      changedParent.flags &= -5;\n      \"none\" !== props &&\n        applyViewTransitionToHostInstances(\n          changedParent,\n          name,\n          props,\n          (changedParent.memoizedState = []),\n          !1\n        );\n    } else\n      0 !== (changedParent.subtreeFlags & 33554432) &&\n        commitNestedViewTransitions(changedParent);\n    changedParent = changedParent.sibling;\n  }\n}\nfunction restorePairedViewTransitions(parent) {\n  if (0 !== (parent.subtreeFlags & 18874368))\n    for (parent = parent.child; null !== parent; ) {\n      if (22 !== parent.tag || null === parent.memoizedState) {\n        if (30 === parent.tag && 0 !== (parent.flags & 18874368)) {\n          var instance = parent.stateNode;\n          null !== instance.paired &&\n            ((instance.paired = null),\n            restoreViewTransitionOnHostInstances(parent.child, !1));\n        }\n        restorePairedViewTransitions(parent);\n      }\n      parent = parent.sibling;\n    }\n}\nfunction restoreEnterOrExitViewTransitions(fiber) {\n  if (30 === fiber.tag)\n    (fiber.stateNode.paired = null),\n      restoreViewTransitionOnHostInstances(fiber.child, !1),\n      restorePairedViewTransitions(fiber);\n  else if (0 !== (fiber.subtreeFlags & 33554432))\n    for (fiber = fiber.child; null !== fiber; )\n      restoreEnterOrExitViewTransitions(fiber), (fiber = fiber.sibling);\n  else restorePairedViewTransitions(fiber);\n}\nfunction restoreNestedViewTransitions(changedParent) {\n  for (changedParent = changedParent.child; null !== changedParent; )\n    30 === changedParent.tag\n      ? restoreViewTransitionOnHostInstances(changedParent.child, !1)\n      : 0 !== (changedParent.subtreeFlags & 33554432) &&\n        restoreNestedViewTransitions(changedParent),\n      (changedParent = changedParent.sibling);\n}\nfunction measureViewTransitionHostInstancesRecursive(\n  parentViewTransition,\n  child,\n  newName,\n  oldName,\n  className,\n  previousMeasurements,\n  stopAtNestedViewTransitions\n) {\n  for (var inViewport = !1; null !== child; ) {\n    if (5 === child.tag) {\n      var instance = child.stateNode;\n      if (\n        null !== previousMeasurements &&\n        viewTransitionHostInstanceIdx < previousMeasurements.length\n      ) {\n        var previousMeasurement =\n            previousMeasurements[viewTransitionHostInstanceIdx],\n          nextMeasurement = measureInstance(instance);\n        if (previousMeasurement.view || nextMeasurement.view) inViewport = !0;\n        var JSCompiler_temp;\n        if ((JSCompiler_temp = 0 === (parentViewTransition.flags & 4)))\n          if (nextMeasurement.clip) JSCompiler_temp = !0;\n          else {\n            JSCompiler_temp = previousMeasurement.rect;\n            var newRect = nextMeasurement.rect;\n            JSCompiler_temp =\n              JSCompiler_temp.y !== newRect.y ||\n              JSCompiler_temp.x !== newRect.x ||\n              JSCompiler_temp.height !== newRect.height ||\n              JSCompiler_temp.width !== newRect.width;\n          }\n        JSCompiler_temp && (parentViewTransition.flags |= 4);\n        nextMeasurement.abs\n          ? (nextMeasurement = !previousMeasurement.abs)\n          : ((previousMeasurement = previousMeasurement.rect),\n            (nextMeasurement = nextMeasurement.rect),\n            (nextMeasurement =\n              previousMeasurement.height !== nextMeasurement.height ||\n              previousMeasurement.width !== nextMeasurement.width));\n        nextMeasurement && (parentViewTransition.flags |= 32);\n      } else parentViewTransition.flags |= 32;\n      0 !== (parentViewTransition.flags & 4) &&\n        applyViewTransitionName(\n          instance,\n          0 === viewTransitionHostInstanceIdx\n            ? newName\n            : newName + \"_\" + viewTransitionHostInstanceIdx,\n          className\n        );\n      (inViewport && 0 !== (parentViewTransition.flags & 4)) ||\n        (null === viewTransitionCancelableChildren &&\n          (viewTransitionCancelableChildren = []),\n        viewTransitionCancelableChildren.push(\n          instance,\n          0 === viewTransitionHostInstanceIdx\n            ? oldName\n            : oldName + \"_\" + viewTransitionHostInstanceIdx,\n          child.memoizedProps\n        ));\n      viewTransitionHostInstanceIdx++;\n    } else if (22 !== child.tag || null === child.memoizedState)\n      30 === child.tag && stopAtNestedViewTransitions\n        ? (parentViewTransition.flags |= child.flags & 32)\n        : measureViewTransitionHostInstancesRecursive(\n            parentViewTransition,\n            child.child,\n            newName,\n            oldName,\n            className,\n            previousMeasurements,\n            stopAtNestedViewTransitions\n          ) && (inViewport = !0);\n    child = child.sibling;\n  }\n  return inViewport;\n}\nfunction measureNestedViewTransitions(changedParent, gesture) {\n  for (changedParent = changedParent.child; null !== changedParent; ) {\n    if (30 === changedParent.tag) {\n      var props = changedParent.memoizedProps,\n        state = changedParent.stateNode,\n        name = getViewTransitionName(props, state),\n        className = getViewTransitionClassName(props.default, props.update);\n      if (gesture) {\n        state = state.clones;\n        var previousMeasurements =\n          null === state ? null : state.map(measureClonedInstance);\n      } else\n        (previousMeasurements = changedParent.memoizedState),\n          (changedParent.memoizedState = null);\n      state = changedParent;\n      var child = changedParent.child;\n      viewTransitionHostInstanceIdx = 0;\n      name = measureViewTransitionHostInstancesRecursive(\n        state,\n        child,\n        name,\n        name,\n        className,\n        previousMeasurements,\n        !1\n      );\n      0 !== (changedParent.flags & 4) &&\n        name &&\n        (gesture || scheduleViewTransitionEvent(changedParent, props.onUpdate));\n    } else\n      0 !== (changedParent.subtreeFlags & 33554432) &&\n        measureNestedViewTransitions(changedParent, gesture);\n    changedParent = changedParent.sibling;\n  }\n}\nvar offscreenSubtreeIsHidden = !1,\n  offscreenSubtreeWasHidden = !1,\n  offscreenDirectParentIsHidden = !1,\n  needsFormReset = !1,\n  PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set,\n  nextEffect = null,\n  viewTransitionContextChanged = !1,\n  inUpdateViewTransition = !1,\n  rootViewTransitionAffected = !1,\n  rootViewTransitionNameCanceled = !1;\nfunction commitBeforeMutationEffects(root, firstChild, committedLanes) {\n  root = root.containerInfo;\n  eventsEnabled = _enabled;\n  root = getActiveElementDeep(root);\n  if (hasSelectionCapabilities(root)) {\n    if (\"selectionStart\" in root)\n      var JSCompiler_temp = {\n        start: root.selectionStart,\n        end: root.selectionEnd\n      };\n    else\n      a: {\n        JSCompiler_temp =\n          ((JSCompiler_temp = root.ownerDocument) &&\n            JSCompiler_temp.defaultView) ||\n          window;\n        var selection =\n          JSCompiler_temp.getSelection && JSCompiler_temp.getSelection();\n        if (selection && 0 !== selection.rangeCount) {\n          JSCompiler_temp = selection.anchorNode;\n          var anchorOffset = selection.anchorOffset,\n            focusNode = selection.focusNode;\n          selection = selection.focusOffset;\n          try {\n            JSCompiler_temp.nodeType, focusNode.nodeType;\n          } catch (e$21) {\n            JSCompiler_temp = null;\n            break a;\n          }\n          var length = 0,\n            start = -1,\n            end = -1,\n            indexWithinAnchor = 0,\n            indexWithinFocus = 0,\n            node = root,\n            parentNode = null;\n          b: for (;;) {\n            for (var next; ; ) {\n              node !== JSCompiler_temp ||\n                (0 !== anchorOffset && 3 !== node.nodeType) ||\n                (start = length + anchorOffset);\n              node !== focusNode ||\n                (0 !== selection && 3 !== node.nodeType) ||\n                (end = length + selection);\n              3 === node.nodeType && (length += node.nodeValue.length);\n              if (null === (next = node.firstChild)) break;\n              parentNode = node;\n              node = next;\n            }\n            for (;;) {\n              if (node === root) break b;\n              parentNode === JSCompiler_temp &&\n                ++indexWithinAnchor === anchorOffset &&\n                (start = length);\n              parentNode === focusNode &&\n                ++indexWithinFocus === selection &&\n                (end = length);\n              if (null !== (next = node.nextSibling)) break;\n              node = parentNode;\n              parentNode = node.parentNode;\n            }\n            node = next;\n          }\n          JSCompiler_temp =\n            -1 === start || -1 === end ? null : { start: start, end: end };\n        } else JSCompiler_temp = null;\n      }\n    JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };\n  } else JSCompiler_temp = null;\n  selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };\n  _enabled = !1;\n  committedLanes = (committedLanes & 335544064) === committedLanes;\n  nextEffect = firstChild;\n  for (firstChild = committedLanes ? 9270 : 1024; null !== nextEffect; ) {\n    root = nextEffect;\n    if (\n      committedLanes &&\n      ((JSCompiler_temp = root.deletions), null !== JSCompiler_temp)\n    )\n      for (\n        anchorOffset = 0;\n        anchorOffset < JSCompiler_temp.length;\n        anchorOffset++\n      )\n        committedLanes &&\n          commitExitViewTransitions(JSCompiler_temp[anchorOffset]);\n    if (null === root.alternate && 0 !== (root.flags & 2))\n      committedLanes && trackEnterViewTransitions(root),\n        commitBeforeMutationEffects_complete(committedLanes);\n    else {\n      if (22 === root.tag)\n        if (((JSCompiler_temp = root.alternate), null !== root.memoizedState)) {\n          null !== JSCompiler_temp &&\n            null === JSCompiler_temp.memoizedState &&\n            committedLanes &&\n            commitExitViewTransitions(JSCompiler_temp);\n          commitBeforeMutationEffects_complete(committedLanes);\n          continue;\n        } else if (\n          null !== JSCompiler_temp &&\n          null !== JSCompiler_temp.memoizedState\n        ) {\n          committedLanes && trackEnterViewTransitions(root);\n          commitBeforeMutationEffects_complete(committedLanes);\n          continue;\n        }\n      JSCompiler_temp = root.child;\n      0 !== (root.subtreeFlags & firstChild) && null !== JSCompiler_temp\n        ? ((JSCompiler_temp.return = root), (nextEffect = JSCompiler_temp))\n        : (committedLanes && commitNestedViewTransitions(root),\n          commitBeforeMutationEffects_complete(committedLanes));\n    }\n  }\n  appearingViewTransitions = null;\n}\nfunction commitBeforeMutationEffects_complete(\n  isViewTransitionEligible$jscomp$0\n) {\n  for (; null !== nextEffect; ) {\n    var fiber = nextEffect,\n      isViewTransitionEligible = isViewTransitionEligible$jscomp$0,\n      current = fiber.alternate,\n      flags = fiber.flags;\n    switch (fiber.tag) {\n      case 0:\n      case 11:\n      case 15:\n        break;\n      case 1:\n        if (0 !== (flags & 1024) && null !== current) {\n          isViewTransitionEligible = void 0;\n          flags = current.memoizedProps;\n          current = current.memoizedState;\n          var instance = fiber.stateNode;\n          try {\n            var resolvedPrevProps = resolveClassComponentProps(\n              fiber.type,\n              flags\n            );\n            isViewTransitionEligible = instance.getSnapshotBeforeUpdate(\n              resolvedPrevProps,\n              current\n            );\n            instance.__reactInternalSnapshotBeforeUpdate =\n              isViewTransitionEligible;\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n        }\n        break;\n      case 3:\n        if (0 !== (flags & 1024))\n          if (\n            ((current = fiber.stateNode.containerInfo),\n            (isViewTransitionEligible = current.nodeType),\n            9 === isViewTransitionEligible)\n          )\n            clearContainerSparingly(current);\n          else if (1 === isViewTransitionEligible)\n            switch (current.nodeName) {\n              case \"HEAD\":\n              case \"HTML\":\n              case \"BODY\":\n                clearContainerSparingly(current);\n                break;\n              default:\n                current.textContent = \"\";\n            }\n        break;\n      case 5:\n      case 26:\n      case 27:\n      case 6:\n      case 4:\n      case 17:\n        break;\n      case 30:\n        isViewTransitionEligible &&\n          null !== current &&\n          ((isViewTransitionEligible = getViewTransitionName(\n            current.memoizedProps,\n            current.stateNode\n          )),\n          (flags = fiber.memoizedProps),\n          (flags = getViewTransitionClassName(flags.default, flags.update)),\n          \"none\" !== flags &&\n            applyViewTransitionToHostInstances(\n              current,\n              isViewTransitionEligible,\n              flags,\n              (current.memoizedState = []),\n              !0\n            ));\n        break;\n      default:\n        if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163));\n    }\n    current = fiber.sibling;\n    if (null !== current) {\n      current.return = fiber.return;\n      nextEffect = current;\n      break;\n    }\n    nextEffect = fiber.return;\n  }\n}\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {\n  var flags = finishedWork.flags;\n  switch (finishedWork.tag) {\n    case 0:\n    case 11:\n    case 15:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      flags & 4 && commitHookEffectListMount(5, finishedWork);\n      break;\n    case 1:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      if (flags & 4)\n        if (((finishedRoot = finishedWork.stateNode), null === current))\n          try {\n            finishedRoot.componentDidMount();\n          } catch (error) {\n            captureCommitPhaseError(finishedWork, finishedWork.return, error);\n          }\n        else {\n          var prevProps = resolveClassComponentProps(\n            finishedWork.type,\n            current.memoizedProps\n          );\n          current = current.memoizedState;\n          try {\n            finishedRoot.componentDidUpdate(\n              prevProps,\n              current,\n              finishedRoot.__reactInternalSnapshotBeforeUpdate\n            );\n          } catch (error$146) {\n            captureCommitPhaseError(\n              finishedWork,\n              finishedWork.return,\n              error$146\n            );\n          }\n        }\n      flags & 64 && commitClassCallbacks(finishedWork);\n      flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n      break;\n    case 3:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      if (\n        flags & 64 &&\n        ((finishedRoot = finishedWork.updateQueue), null !== finishedRoot)\n      ) {\n        current = null;\n        if (null !== finishedWork.child)\n          switch (finishedWork.child.tag) {\n            case 27:\n            case 5:\n              current = finishedWork.child.stateNode;\n              break;\n            case 1:\n              current = finishedWork.child.stateNode;\n          }\n        try {\n          commitCallbacks(finishedRoot, current);\n        } catch (error) {\n          captureCommitPhaseError(finishedWork, finishedWork.return, error);\n        }\n      }\n      break;\n    case 27:\n      null === current &&\n        flags & 4 &&\n        commitHostSingletonAcquisition(finishedWork);\n    case 26:\n    case 5:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      null === current && flags & 4 && commitHostMount(finishedWork);\n      flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n      break;\n    case 12:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      break;\n    case 31:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);\n      break;\n    case 13:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n      flags & 64 &&\n        ((finishedRoot = finishedWork.memoizedState),\n        null !== finishedRoot &&\n          ((finishedRoot = finishedRoot.dehydrated),\n          null !== finishedRoot &&\n            ((finishedWork = retryDehydratedSuspenseBoundary.bind(\n              null,\n              finishedWork\n            )),\n            registerSuspenseInstanceRetry(finishedRoot, finishedWork))));\n      break;\n    case 22:\n      flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden;\n      if (!flags) {\n        var newOffscreenSubtreeWasHidden =\n          (null !== current && null !== current.memoizedState) ||\n          offscreenSubtreeWasHidden;\n        current = offscreenSubtreeIsHidden;\n        prevProps = offscreenSubtreeWasHidden;\n        offscreenSubtreeIsHidden = flags;\n        (offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden) && !prevProps\n          ? ((flags = 2),\n            0 !== (finishedWork.subtreeFlags & 8772) && (flags |= 1),\n            recursivelyTraverseReappearLayoutEffects(\n              finishedRoot,\n              finishedWork,\n              flags\n            ))\n          : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n        offscreenSubtreeIsHidden = current;\n        offscreenSubtreeWasHidden = prevProps;\n      }\n      break;\n    case 30:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n      flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n      break;\n    case 7:\n      flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n    default:\n      recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n  }\n}\nfunction hideOrUnhideAllChildren(parentFiber, isHidden) {\n  for (parentFiber = parentFiber.child; null !== parentFiber; )\n    hideOrUnhideAllChildrenOnFiber(parentFiber, isHidden),\n      (parentFiber = parentFiber.sibling);\n}\nfunction hideOrUnhideAllChildrenOnFiber(fiber, isHidden) {\n  switch (fiber.tag) {\n    case 5:\n    case 26:\n      try {\n        var instance = fiber.stateNode;\n        if (isHidden) {\n          var style = instance.style;\n          \"function\" === typeof style.setProperty\n            ? style.setProperty(\"display\", \"none\", \"important\")\n            : (style.display = \"none\");\n        } else {\n          var instance$jscomp$0 = fiber.stateNode,\n            styleProp = fiber.memoizedProps.style,\n            display =\n              void 0 !== styleProp &&\n              null !== styleProp &&\n              styleProp.hasOwnProperty(\"display\")\n                ? styleProp.display\n                : null;\n          instance$jscomp$0.style.display =\n            null == display || \"boolean\" === typeof display\n              ? \"\"\n              : (\"\" + display).trim();\n        }\n      } catch (error) {\n        captureCommitPhaseError(fiber, fiber.return, error);\n      }\n      hideOrUnhideNearestPortals(fiber, isHidden);\n      break;\n    case 6:\n      try {\n        (fiber.stateNode.nodeValue = isHidden ? \"\" : fiber.memoizedProps),\n          (viewTransitionMutationContext = !0);\n      } catch (error) {\n        captureCommitPhaseError(fiber, fiber.return, error);\n      }\n      break;\n    case 18:\n      try {\n        var instance$jscomp$1 = fiber.stateNode;\n        isHidden\n          ? hideOrUnhideDehydratedBoundary(instance$jscomp$1, !0)\n          : hideOrUnhideDehydratedBoundary(fiber.stateNode, !1);\n      } catch (error) {\n        captureCommitPhaseError(fiber, fiber.return, error);\n      }\n      break;\n    case 22:\n    case 23:\n      null === fiber.memoizedState && hideOrUnhideAllChildren(fiber, isHidden);\n      break;\n    default:\n      hideOrUnhideAllChildren(fiber, isHidden);\n  }\n}\nfunction hideOrUnhideNearestPortals(parentFiber, isHidden$jscomp$0) {\n  if (parentFiber.subtreeFlags & 67108864)\n    for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n      a: {\n        var fiber = parentFiber,\n          isHidden = isHidden$jscomp$0;\n        switch (fiber.tag) {\n          case 4:\n            hideOrUnhideAllChildrenOnFiber(fiber, isHidden);\n            break a;\n          case 22:\n            null === fiber.memoizedState &&\n              hideOrUnhideNearestPortals(fiber, isHidden);\n            break a;\n          default:\n            hideOrUnhideNearestPortals(fiber, isHidden);\n        }\n      }\n      parentFiber = parentFiber.sibling;\n    }\n}\nfunction detachFiberAfterEffects(fiber) {\n  var alternate = fiber.alternate;\n  null !== alternate &&\n    ((fiber.alternate = null), detachFiberAfterEffects(alternate));\n  fiber.child = null;\n  fiber.deletions = null;\n  fiber.sibling = null;\n  5 === fiber.tag &&\n    ((alternate = fiber.stateNode),\n    null !== alternate && detachDeletedInstance(alternate));\n  fiber.stateNode = null;\n  fiber.return = null;\n  fiber.dependencies = null;\n  fiber.memoizedProps = null;\n  fiber.memoizedState = null;\n  fiber.pendingProps = null;\n  fiber.stateNode = null;\n  fiber.updateQueue = null;\n}\nvar hostParent = null,\n  hostParentIsContainer = !1;\nfunction recursivelyTraverseDeletionEffects(\n  finishedRoot,\n  nearestMountedAncestor,\n  parent\n) {\n  for (parent = parent.child; null !== parent; )\n    commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),\n      (parent = parent.sibling);\n}\nfunction commitDeletionEffectsOnFiber(\n  finishedRoot,\n  nearestMountedAncestor,\n  deletedFiber\n) {\n  if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberUnmount)\n    try {\n      injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);\n    } catch (err) {}\n  switch (deletedFiber.tag) {\n    case 26:\n      offscreenSubtreeWasHidden ||\n        safelyDetachRef(deletedFiber, nearestMountedAncestor);\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      deletedFiber.memoizedState\n        ? deletedFiber.memoizedState.count--\n        : deletedFiber.stateNode &&\n          !offscreenSubtreeWasHidden &&\n          ((deletedFiber = deletedFiber.stateNode),\n          deletedFiber.parentNode.removeChild(deletedFiber));\n      break;\n    case 27:\n      offscreenSubtreeWasHidden ||\n        safelyDetachRef(deletedFiber, nearestMountedAncestor);\n      commitFragmentInstanceDeletionEffects(deletedFiber);\n      var prevHostParent = hostParent,\n        prevHostParentIsContainer = hostParentIsContainer;\n      isSingletonScope(deletedFiber.type) &&\n        ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1));\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      releaseSingletonInstance(\n        deletedFiber.stateNode,\n        deletedFiber.type,\n        deletedFiber.memoizedProps\n      );\n      hostParent = prevHostParent;\n      hostParentIsContainer = prevHostParentIsContainer;\n      break;\n    case 5:\n      offscreenSubtreeWasHidden ||\n        safelyDetachRef(deletedFiber, nearestMountedAncestor),\n        commitFragmentInstanceDeletionEffects(deletedFiber);\n    case 6:\n      6 === deletedFiber.tag &&\n        commitFragmentInstanceDeletionEffects(deletedFiber);\n      prevHostParent = hostParent;\n      prevHostParentIsContainer = hostParentIsContainer;\n      hostParent = null;\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      hostParent = prevHostParent;\n      hostParentIsContainer = prevHostParentIsContainer;\n      if (null !== hostParent)\n        if (hostParentIsContainer)\n          try {\n            (9 === hostParent.nodeType\n              ? hostParent.body\n              : \"HTML\" === hostParent.nodeName\n                ? hostParent.ownerDocument.body\n                : hostParent\n            ).removeChild(deletedFiber.stateNode),\n              (viewTransitionMutationContext = !0);\n          } catch (error) {\n            captureCommitPhaseError(\n              deletedFiber,\n              nearestMountedAncestor,\n              error\n            );\n          }\n        else\n          try {\n            hostParent.removeChild(deletedFiber.stateNode),\n              (viewTransitionMutationContext = !0);\n          } catch (error) {\n            captureCommitPhaseError(\n              deletedFiber,\n              nearestMountedAncestor,\n              error\n            );\n          }\n      break;\n    case 18:\n      null !== hostParent &&\n        (hostParentIsContainer\n          ? ((finishedRoot = hostParent),\n            clearHydrationBoundary(\n              9 === finishedRoot.nodeType\n                ? finishedRoot.body\n                : \"HTML\" === finishedRoot.nodeName\n                  ? finishedRoot.ownerDocument.body\n                  : finishedRoot,\n              deletedFiber.stateNode\n            ),\n            retryIfBlockedOn(finishedRoot))\n          : clearHydrationBoundary(hostParent, deletedFiber.stateNode));\n      break;\n    case 4:\n      prevHostParent = hostParent;\n      prevHostParentIsContainer = hostParentIsContainer;\n      hostParent = deletedFiber.stateNode.containerInfo;\n      hostParentIsContainer = !0;\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      hostParent = prevHostParent;\n      hostParentIsContainer = prevHostParentIsContainer;\n      break;\n    case 0:\n    case 11:\n    case 14:\n    case 15:\n      commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);\n      offscreenSubtreeWasHidden ||\n        commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      break;\n    case 1:\n      offscreenSubtreeWasHidden ||\n        (safelyDetachRef(deletedFiber, nearestMountedAncestor),\n        (prevHostParent = deletedFiber.stateNode),\n        \"function\" === typeof prevHostParent.componentWillUnmount &&\n          safelyCallComponentWillUnmount(\n            deletedFiber,\n            nearestMountedAncestor,\n            prevHostParent\n          ));\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      break;\n    case 21:\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      break;\n    case 22:\n      offscreenSubtreeWasHidden =\n        (prevHostParent = offscreenSubtreeWasHidden) ||\n        null !== deletedFiber.memoizedState;\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      offscreenSubtreeWasHidden = prevHostParent;\n      break;\n    case 30:\n      safelyDetachRef(deletedFiber, nearestMountedAncestor);\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      break;\n    case 7:\n      offscreenSubtreeWasHidden ||\n        safelyDetachRef(deletedFiber, nearestMountedAncestor);\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n      break;\n    default:\n      recursivelyTraverseDeletionEffects(\n        finishedRoot,\n        nearestMountedAncestor,\n        deletedFiber\n      );\n  }\n}\nfunction commitActivityHydrationCallbacks(finishedRoot, finishedWork) {\n  if (\n    null === finishedWork.memoizedState &&\n    ((finishedRoot = finishedWork.alternate),\n    null !== finishedRoot &&\n      ((finishedRoot = finishedRoot.memoizedState), null !== finishedRoot))\n  ) {\n    finishedRoot = finishedRoot.dehydrated;\n    try {\n      retryIfBlockedOn(finishedRoot);\n    } catch (error) {\n      captureCommitPhaseError(finishedWork, finishedWork.return, error);\n    }\n  }\n}\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n  if (\n    null === finishedWork.memoizedState &&\n    ((finishedRoot = finishedWork.alternate),\n    null !== finishedRoot &&\n      ((finishedRoot = finishedRoot.memoizedState),\n      null !== finishedRoot &&\n        ((finishedRoot = finishedRoot.dehydrated), null !== finishedRoot)))\n  )\n    try {\n      retryIfBlockedOn(finishedRoot);\n    } catch (error) {\n      captureCommitPhaseError(finishedWork, finishedWork.return, error);\n    }\n}\nfunction getRetryCache(finishedWork) {\n  switch (finishedWork.tag) {\n    case 31:\n    case 13:\n    case 19:\n      var retryCache = finishedWork.stateNode;\n      null === retryCache &&\n        (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n      return retryCache;\n    case 22:\n      return (\n        (finishedWork = finishedWork.stateNode),\n        (retryCache = finishedWork._retryCache),\n        null === retryCache &&\n          (retryCache = finishedWork._retryCache = new PossiblyWeakSet()),\n        retryCache\n      );\n    default:\n      throw Error(formatProdErrorMessage(435, finishedWork.tag));\n  }\n}\nfunction attachSuspenseRetryListeners(finishedWork, wakeables) {\n  var retryCache = getRetryCache(finishedWork);\n  wakeables.forEach(function (wakeable) {\n    if (!retryCache.has(wakeable)) {\n      retryCache.add(wakeable);\n      var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n      wakeable.then(retry, retry);\n    }\n  });\n}\nfunction recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber, lanes) {\n  var deletions = parentFiber.deletions;\n  if (null !== deletions)\n    for (var i = 0; i < deletions.length; i++) {\n      var childToDelete = deletions[i],\n        root = root$jscomp$0,\n        returnFiber = parentFiber,\n        parent = returnFiber;\n      a: for (; null !== parent; ) {\n        switch (parent.tag) {\n          case 27:\n            if (isSingletonScope(parent.type)) {\n              hostParent = parent.stateNode;\n              hostParentIsContainer = !1;\n              break a;\n            }\n            break;\n          case 5:\n            hostParent = parent.stateNode;\n            hostParentIsContainer = !1;\n            break a;\n          case 3:\n          case 4:\n            hostParent = parent.stateNode.containerInfo;\n            hostParentIsContainer = !0;\n            break a;\n        }\n        parent = parent.return;\n      }\n      if (null === hostParent) throw Error(formatProdErrorMessage(160));\n      commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);\n      hostParent = null;\n      hostParentIsContainer = !1;\n      root = childToDelete.alternate;\n      null !== root && (root.return = null);\n      childToDelete.return = null;\n    }\n  if (parentFiber.subtreeFlags & 13886)\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      commitMutationEffectsOnFiber(parentFiber, root$jscomp$0, lanes),\n        (parentFiber = parentFiber.sibling);\n}\nvar currentHoistableRoot = null;\nfunction commitMutationEffectsOnFiber(finishedWork, root, lanes) {\n  var current = finishedWork.alternate,\n    flags = finishedWork.flags;\n  switch (finishedWork.tag) {\n    case 0:\n    case 11:\n    case 14:\n    case 15:\n      if (\n        flags & 4 &&\n        ((current = finishedWork.updateQueue),\n        (current = null !== current ? current.events : null),\n        null !== current)\n      )\n        for (var ii = 0; ii < current.length; ii++) {\n          var _eventPayloads$ii2 = current[ii];\n          _eventPayloads$ii2.ref.impl = _eventPayloads$ii2.nextImpl;\n        }\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 4 &&\n        (commitHookEffectListUnmount(3, finishedWork, finishedWork.return),\n        commitHookEffectListMount(3, finishedWork),\n        commitHookEffectListUnmount(5, finishedWork, finishedWork.return));\n      break;\n    case 1:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return));\n      flags & 64 &&\n        offscreenSubtreeIsHidden &&\n        ((finishedWork = finishedWork.updateQueue),\n        null !== finishedWork &&\n          ((root = finishedWork.callbacks),\n          null !== root &&\n            ((lanes = finishedWork.shared.hiddenCallbacks),\n            (finishedWork.shared.hiddenCallbacks =\n              null === lanes ? root : lanes.concat(root)))));\n      break;\n    case 26:\n      ii = currentHoistableRoot;\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return));\n      if (flags & 4)\n        if (\n          ((flags = null !== current ? current.memoizedState : null),\n          (lanes = finishedWork.memoizedState),\n          null === current)\n        )\n          if (null === lanes)\n            if (null === finishedWork.stateNode)\n              if (offscreenSubtreeIsHidden)\n                finishedWork.stateNode = createHoistableInstance(\n                  finishedWork.type,\n                  finishedWork.memoizedProps,\n                  root.containerInfo,\n                  finishedWork\n                );\n              else {\n                a: {\n                  root = finishedWork.type;\n                  lanes = finishedWork.memoizedProps;\n                  flags = ii.ownerDocument || ii;\n                  b: switch (root) {\n                    case \"title\":\n                      current = flags.getElementsByTagName(\"title\")[0];\n                      if (\n                        !current ||\n                        current[internalHoistableMarker] ||\n                        current[internalInstanceKey] ||\n                        \"http://www.w3.org/2000/svg\" === current.namespaceURI ||\n                        current.hasAttribute(\"itemprop\")\n                      )\n                        (current = flags.createElement(root)),\n                          flags.head.insertBefore(\n                            current,\n                            flags.querySelector(\"head > title\")\n                          );\n                      setInitialProperties(current, root, lanes);\n                      current[internalInstanceKey] = finishedWork;\n                      markNodeAsHoistable(current);\n                      root = current;\n                      break a;\n                    case \"link\":\n                      if (\n                        (ii = getHydratableHoistableCache(\n                          \"link\",\n                          \"href\",\n                          flags\n                        ).get(root + (lanes.href || \"\")))\n                      )\n                        for (\n                          _eventPayloads$ii2 = 0;\n                          _eventPayloads$ii2 < ii.length;\n                          _eventPayloads$ii2++\n                        )\n                          if (\n                            ((current = ii[_eventPayloads$ii2]),\n                            current.getAttribute(\"href\") ===\n                              (null == lanes.href || \"\" === lanes.href\n                                ? null\n                                : lanes.href) &&\n                              current.getAttribute(\"rel\") ===\n                                (null == lanes.rel ? null : lanes.rel) &&\n                              current.getAttribute(\"title\") ===\n                                (null == lanes.title ? null : lanes.title) &&\n                              current.getAttribute(\"crossorigin\") ===\n                                (null == lanes.crossOrigin\n                                  ? null\n                                  : lanes.crossOrigin))\n                          ) {\n                            ii.splice(_eventPayloads$ii2, 1);\n                            break b;\n                          }\n                      current = flags.createElement(root);\n                      setInitialProperties(current, root, lanes);\n                      flags.head.appendChild(current);\n                      break;\n                    case \"meta\":\n                      if (\n                        (ii = getHydratableHoistableCache(\n                          \"meta\",\n                          \"content\",\n                          flags\n                        ).get(root + (lanes.content || \"\")))\n                      )\n                        for (\n                          _eventPayloads$ii2 = 0;\n                          _eventPayloads$ii2 < ii.length;\n                          _eventPayloads$ii2++\n                        )\n                          if (\n                            ((current = ii[_eventPayloads$ii2]),\n                            current.getAttribute(\"content\") ===\n                              (null == lanes.content\n                                ? null\n                                : \"\" + lanes.content) &&\n                              current.getAttribute(\"name\") ===\n                                (null == lanes.name ? null : lanes.name) &&\n                              current.getAttribute(\"property\") ===\n                                (null == lanes.property\n                                  ? null\n                                  : lanes.property) &&\n                              current.getAttribute(\"http-equiv\") ===\n                                (null == lanes.httpEquiv\n                                  ? null\n                                  : lanes.httpEquiv) &&\n                              current.getAttribute(\"charset\") ===\n                                (null == lanes.charSet ? null : lanes.charSet))\n                          ) {\n                            ii.splice(_eventPayloads$ii2, 1);\n                            break b;\n                          }\n                      current = flags.createElement(root);\n                      setInitialProperties(current, root, lanes);\n                      flags.head.appendChild(current);\n                      break;\n                    default:\n                      throw Error(formatProdErrorMessage(468, root));\n                  }\n                  current[internalInstanceKey] = finishedWork;\n                  markNodeAsHoistable(current);\n                  root = current;\n                }\n                finishedWork.stateNode = root;\n              }\n            else\n              offscreenSubtreeIsHidden ||\n                mountHoistable(ii, finishedWork.type, finishedWork.stateNode);\n          else\n            finishedWork.stateNode = acquireResource(\n              ii,\n              lanes,\n              finishedWork.memoizedProps\n            );\n        else\n          flags !== lanes\n            ? (null === flags\n                ? ((root = current.stateNode),\n                  null === root ||\n                    offscreenSubtreeWasHidden ||\n                    root.parentNode.removeChild(root))\n                : flags.count--,\n              null === lanes\n                ? offscreenSubtreeIsHidden ||\n                  mountHoistable(ii, finishedWork.type, finishedWork.stateNode)\n                : acquireResource(ii, lanes, finishedWork.memoizedProps))\n            : null === lanes &&\n              null !== finishedWork.stateNode &&\n              commitHostUpdate(\n                finishedWork,\n                finishedWork.memoizedProps,\n                current.memoizedProps\n              );\n      break;\n    case 27:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return));\n      null !== current &&\n        flags & 4 &&\n        commitHostUpdate(\n          finishedWork,\n          finishedWork.memoizedProps,\n          current.memoizedProps\n        );\n      break;\n    case 5:\n      ii = offscreenDirectParentIsHidden;\n      offscreenDirectParentIsHidden = !1;\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      offscreenDirectParentIsHidden = ii;\n      commitReconciliationEffects(finishedWork);\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return));\n      if (finishedWork.flags & 32) {\n        root = finishedWork.stateNode;\n        try {\n          setTextContent(root, \"\"), (viewTransitionMutationContext = !0);\n        } catch (error) {\n          captureCommitPhaseError(finishedWork, finishedWork.return, error);\n        }\n      }\n      flags & 4 &&\n        null != finishedWork.stateNode &&\n        ((root = finishedWork.memoizedProps),\n        commitHostUpdate(\n          finishedWork,\n          root,\n          null !== current ? current.memoizedProps : root\n        ));\n      flags & 1024 && (needsFormReset = !0);\n      break;\n    case 6:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      if (flags & 4) {\n        if (null === finishedWork.stateNode)\n          throw Error(formatProdErrorMessage(162));\n        root = finishedWork.memoizedProps;\n        lanes = finishedWork.stateNode;\n        try {\n          (lanes.nodeValue = root), (viewTransitionMutationContext = !0);\n        } catch (error) {\n          captureCommitPhaseError(finishedWork, finishedWork.return, error);\n        }\n      }\n      break;\n    case 3:\n      viewTransitionMutationContext = !1;\n      tagCaches = null;\n      ii = currentHoistableRoot;\n      currentHoistableRoot = getHoistableRoot(root.containerInfo);\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      currentHoistableRoot = ii;\n      commitReconciliationEffects(finishedWork);\n      if (flags & 4 && null !== current && current.memoizedState.isDehydrated)\n        try {\n          retryIfBlockedOn(root.containerInfo);\n        } catch (error) {\n          captureCommitPhaseError(finishedWork, finishedWork.return, error);\n        }\n      needsFormReset &&\n        ((needsFormReset = !1), recursivelyResetForms(finishedWork));\n      viewTransitionMutationContext = !1;\n      break;\n    case 4:\n      flags = offscreenDirectParentIsHidden;\n      offscreenDirectParentIsHidden = offscreenSubtreeIsHidden;\n      current = pushMutationContext();\n      ii = currentHoistableRoot;\n      currentHoistableRoot = getHoistableRoot(\n        finishedWork.stateNode.containerInfo\n      );\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      currentHoistableRoot = ii;\n      viewTransitionMutationContext &&\n        inUpdateViewTransition &&\n        (rootViewTransitionAffected = !0);\n      viewTransitionMutationContext = current;\n      offscreenDirectParentIsHidden = flags;\n      break;\n    case 12:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      break;\n    case 31:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 4 &&\n        ((root = finishedWork.updateQueue),\n        null !== root &&\n          ((finishedWork.updateQueue = null),\n          attachSuspenseRetryListeners(finishedWork, root)));\n      break;\n    case 13:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      finishedWork.child.flags & 8192 &&\n        (null !== finishedWork.memoizedState) !==\n          (null !== current && null !== current.memoizedState) &&\n        (globalMostRecentFallbackTime = now());\n      flags & 4 &&\n        ((root = finishedWork.updateQueue),\n        null !== root &&\n          ((finishedWork.updateQueue = null),\n          attachSuspenseRetryListeners(finishedWork, root)));\n      break;\n    case 22:\n      ii = null !== finishedWork.memoizedState;\n      _eventPayloads$ii2 = null !== current && null !== current.memoizedState;\n      var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,\n        prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden,\n        prevOffscreenDirectParentIsHidden$166 = offscreenDirectParentIsHidden;\n      offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || ii;\n      offscreenDirectParentIsHidden =\n        prevOffscreenDirectParentIsHidden$166 || ii;\n      offscreenSubtreeWasHidden =\n        prevOffscreenSubtreeWasHidden || _eventPayloads$ii2;\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n      offscreenDirectParentIsHidden = prevOffscreenDirectParentIsHidden$166;\n      offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n      commitReconciliationEffects(finishedWork);\n      flags & 8192 &&\n        ((root = finishedWork.stateNode),\n        (root._visibility = ii ? root._visibility & -2 : root._visibility | 1),\n        !ii ||\n          null === current ||\n          _eventPayloads$ii2 ||\n          offscreenSubtreeIsHidden ||\n          offscreenSubtreeWasHidden ||\n          ((root = _eventPayloads$ii2 || offscreenSubtreeWasHidden),\n          (lanes = offscreenSubtreeIsHidden),\n          (current = offscreenSubtreeWasHidden),\n          (offscreenSubtreeIsHidden = ii || offscreenSubtreeIsHidden),\n          (offscreenSubtreeWasHidden = root),\n          recursivelyTraverseDisappearLayoutEffects(finishedWork, 2),\n          (offscreenSubtreeIsHidden = lanes),\n          (offscreenSubtreeWasHidden = current)),\n        (!ii && offscreenDirectParentIsHidden) ||\n          hideOrUnhideAllChildren(finishedWork, ii));\n      flags & 4 &&\n        ((root = finishedWork.updateQueue),\n        null !== root &&\n          ((lanes = root.retryQueue),\n          null !== lanes &&\n            ((root.retryQueue = null),\n            attachSuspenseRetryListeners(finishedWork, lanes))));\n      break;\n    case 19:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      flags & 4 &&\n        ((root = finishedWork.updateQueue),\n        null !== root &&\n          ((finishedWork.updateQueue = null),\n          attachSuspenseRetryListeners(finishedWork, root)));\n      break;\n    case 30:\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return));\n      flags = pushMutationContext();\n      ii = inUpdateViewTransition;\n      _eventPayloads$ii2 = (lanes & 335544064) === lanes;\n      prevOffscreenSubtreeIsHidden = finishedWork.memoizedProps;\n      inUpdateViewTransition =\n        _eventPayloads$ii2 &&\n        \"none\" !==\n          getViewTransitionClassName(\n            prevOffscreenSubtreeIsHidden.default,\n            prevOffscreenSubtreeIsHidden.update\n          );\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes);\n      commitReconciliationEffects(finishedWork);\n      _eventPayloads$ii2 &&\n        null !== current &&\n        viewTransitionMutationContext &&\n        (finishedWork.flags |= 4);\n      inUpdateViewTransition = ii;\n      viewTransitionMutationContext = flags;\n      break;\n    case 21:\n      break;\n    case 7:\n      flags & 512 &&\n        (offscreenSubtreeWasHidden ||\n          null === current ||\n          safelyDetachRef(current, current.return)),\n        current &&\n          null !== current.stateNode &&\n          (current.stateNode._fragmentFiber = finishedWork);\n    default:\n      recursivelyTraverseMutationEffects(root, finishedWork, lanes),\n        commitReconciliationEffects(finishedWork);\n  }\n}\nfunction commitReconciliationEffects(finishedWork) {\n  var flags = finishedWork.flags;\n  if (flags & 2) {\n    try {\n      for (\n        var hostParentFiber, parentFiber = finishedWork.return;\n        null !== parentFiber;\n\n      ) {\n        if (isHostParent(parentFiber)) {\n          hostParentFiber = parentFiber;\n          break;\n        }\n        parentFiber = parentFiber.return;\n      }\n      parentFiber = null;\n      for (var parent = finishedWork.return; null !== parent; ) {\n        if (isFragmentInstanceParent(parent)) {\n          var fragmentInstance = parent.stateNode;\n          null === parentFiber\n            ? (parentFiber = [fragmentInstance])\n            : parentFiber.push(fragmentInstance);\n        }\n        if (isFragmentInstanceHostBoundary(parent)) break;\n        parent = parent.return;\n      }\n      var JSCompiler_inline_result = parentFiber;\n      if (null == hostParentFiber) throw Error(formatProdErrorMessage(160));\n      switch (hostParentFiber.tag) {\n        case 27:\n          var parent$jscomp$0 = hostParentFiber.stateNode,\n            before = getHostSibling(finishedWork);\n          insertOrAppendPlacementNode(\n            finishedWork,\n            before,\n            parent$jscomp$0,\n            JSCompiler_inline_result\n          );\n          break;\n        case 5:\n          var parent$149 = hostParentFiber.stateNode;\n          hostParentFiber.flags & 32 &&\n            (setTextContent(parent$149, \"\"), (hostParentFiber.flags &= -33));\n          var before$150 = getHostSibling(finishedWork);\n          insertOrAppendPlacementNode(\n            finishedWork,\n            before$150,\n            parent$149,\n            JSCompiler_inline_result\n          );\n          break;\n        case 3:\n        case 4:\n          var parent$151 = hostParentFiber.stateNode.containerInfo,\n            before$152 = getHostSibling(finishedWork);\n          insertOrAppendPlacementNodeIntoContainer(\n            finishedWork,\n            before$152,\n            parent$151,\n            JSCompiler_inline_result\n          );\n          break;\n        default:\n          throw Error(formatProdErrorMessage(161));\n      }\n    } catch (error) {\n      captureCommitPhaseError(finishedWork, finishedWork.return, error);\n    }\n    finishedWork.flags &= -3;\n  }\n  flags & 4096 && (finishedWork.flags &= -4097);\n}\nfunction recursivelyResetForms(parentFiber) {\n  if (parentFiber.subtreeFlags & 1024)\n    for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n      var fiber = parentFiber;\n      recursivelyResetForms(fiber);\n      5 === fiber.tag &&\n        fiber.flags & 1024 &&\n        ((fiber = fiber.stateNode),\n        (_enabled = !0),\n        fiber.reset(),\n        (_enabled = !1));\n      parentFiber = parentFiber.sibling;\n    }\n}\nfunction recursivelyTraverseAfterMutationEffects(root, parentFiber) {\n  if (parentFiber.subtreeFlags & 9270)\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      commitAfterMutationEffectsOnFiber(parentFiber, root),\n        (parentFiber = parentFiber.sibling);\n  else measureNestedViewTransitions(parentFiber, !1);\n}\nfunction commitAfterMutationEffectsOnFiber(finishedWork, root) {\n  var current = finishedWork.alternate;\n  if (null === current) commitEnterViewTransitions(finishedWork, !1);\n  else\n    switch (finishedWork.tag) {\n      case 3:\n        rootViewTransitionNameCanceled = viewTransitionContextChanged = !1;\n        pushViewTransitionCancelableScope();\n        recursivelyTraverseAfterMutationEffects(root, finishedWork);\n        if (!viewTransitionContextChanged && !rootViewTransitionAffected) {\n          finishedWork = viewTransitionCancelableChildren;\n          if (null !== finishedWork)\n            for (var i = 0; i < finishedWork.length; i += 3) {\n              current = finishedWork[i];\n              var oldName = finishedWork[i + 1];\n              restoreViewTransitionName(current, finishedWork[i + 2]);\n              current = current.ownerDocument.documentElement;\n              null !== current &&\n                current.animate(\n                  { opacity: [0, 0], pointerEvents: [\"none\", \"none\"] },\n                  {\n                    duration: 0,\n                    fill: \"forwards\",\n                    pseudoElement: \"::view-transition-group(\" + oldName + \")\"\n                  }\n                );\n            }\n          finishedWork = root.containerInfo;\n          finishedWork =\n            9 === finishedWork.nodeType\n              ? finishedWork.documentElement\n              : finishedWork.ownerDocument.documentElement;\n          null !== finishedWork &&\n            \"\" === finishedWork.style.viewTransitionName &&\n            ((finishedWork.style.viewTransitionName = \"none\"),\n            finishedWork.animate(\n              { opacity: [0, 0], pointerEvents: [\"none\", \"none\"] },\n              {\n                duration: 0,\n                fill: \"forwards\",\n                pseudoElement: \"::view-transition-group(root)\"\n              }\n            ),\n            finishedWork.animate(\n              { width: [0, 0], height: [0, 0] },\n              {\n                duration: 0,\n                fill: \"forwards\",\n                pseudoElement: \"::view-transition\"\n              }\n            ));\n          rootViewTransitionNameCanceled = !0;\n        }\n        viewTransitionCancelableChildren = null;\n        break;\n      case 5:\n        recursivelyTraverseAfterMutationEffects(root, finishedWork);\n        break;\n      case 4:\n        i = viewTransitionContextChanged;\n        viewTransitionContextChanged = !1;\n        recursivelyTraverseAfterMutationEffects(root, finishedWork);\n        viewTransitionContextChanged && (rootViewTransitionAffected = !0);\n        viewTransitionContextChanged = i;\n        break;\n      case 22:\n        null === finishedWork.memoizedState &&\n          (null !== current.memoizedState\n            ? commitEnterViewTransitions(finishedWork, !1)\n            : recursivelyTraverseAfterMutationEffects(root, finishedWork));\n        break;\n      case 30:\n        i = viewTransitionContextChanged;\n        oldName = pushViewTransitionCancelableScope();\n        viewTransitionContextChanged = !1;\n        recursivelyTraverseAfterMutationEffects(root, finishedWork);\n        viewTransitionContextChanged && (finishedWork.flags |= 4);\n        var props = finishedWork.memoizedProps,\n          state = finishedWork.stateNode;\n        root = getViewTransitionName(props, state);\n        state = getViewTransitionName(current.memoizedProps, state);\n        var className = getViewTransitionClassName(props.default, props.update);\n        \"none\" === className\n          ? (root = !1)\n          : ((props = current.memoizedState),\n            (current.memoizedState = null),\n            (current = finishedWork.child),\n            (viewTransitionHostInstanceIdx = 0),\n            (root = measureViewTransitionHostInstancesRecursive(\n              finishedWork,\n              current,\n              root,\n              state,\n              className,\n              props,\n              !0\n            )),\n            viewTransitionHostInstanceIdx !==\n              (null === props ? 0 : props.length) &&\n              (finishedWork.flags |= 32));\n        0 !== (finishedWork.flags & 4) && root\n          ? (scheduleViewTransitionEvent(\n              finishedWork,\n              finishedWork.memoizedProps.onUpdate\n            ),\n            (viewTransitionCancelableChildren = oldName))\n          : null !== oldName &&\n            (oldName.push.apply(oldName, viewTransitionCancelableChildren),\n            (viewTransitionCancelableChildren = oldName));\n        viewTransitionContextChanged = 0 !== (finishedWork.flags & 32) ? !0 : i;\n        break;\n      default:\n        recursivelyTraverseAfterMutationEffects(root, finishedWork);\n    }\n}\nfunction recursivelyTraverseLayoutEffects(root, parentFiber) {\n  if (parentFiber.subtreeFlags & 8772)\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber),\n        (parentFiber = parentFiber.sibling);\n}\nfunction recursivelyTraverseDisappearLayoutEffects(\n  parentFiber,\n  layoutEffectTraversalFlags$jscomp$0\n) {\n  for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n    var finishedWork = parentFiber,\n      layoutEffectTraversalFlags = layoutEffectTraversalFlags$jscomp$0;\n    switch (finishedWork.tag) {\n      case 0:\n      case 11:\n      case 14:\n      case 15:\n        commitHookEffectListUnmount(4, finishedWork, finishedWork.return);\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 1:\n        safelyDetachRef(finishedWork, finishedWork.return);\n        var instance = finishedWork.stateNode;\n        \"function\" === typeof instance.componentWillUnmount &&\n          safelyCallComponentWillUnmount(\n            finishedWork,\n            finishedWork.return,\n            instance\n          );\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 27:\n        0 !== (layoutEffectTraversalFlags & 2) &&\n          releaseSingletonInstance(\n            finishedWork.stateNode,\n            finishedWork.type,\n            finishedWork.memoizedProps\n          );\n      case 5:\n        safelyDetachRef(finishedWork, finishedWork.return);\n        (5 !== finishedWork.tag && 27 !== finishedWork.tag) ||\n          commitFragmentInstanceDeletionEffects(finishedWork);\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 6:\n        commitFragmentInstanceDeletionEffects(finishedWork);\n        break;\n      case 26:\n        safelyDetachRef(finishedWork, finishedWork.return);\n        instance = finishedWork.stateNode;\n        null !== finishedWork.memoizedState ||\n          null === instance ||\n          offscreenSubtreeWasHidden ||\n          instance.parentNode.removeChild(instance);\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 22:\n        null === finishedWork.memoizedState &&\n          recursivelyTraverseDisappearLayoutEffects(\n            finishedWork,\n            layoutEffectTraversalFlags\n          );\n        break;\n      case 30:\n        safelyDetachRef(finishedWork, finishedWork.return);\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 7:\n        safelyDetachRef(finishedWork, finishedWork.return);\n      default:\n        recursivelyTraverseDisappearLayoutEffects(\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n    }\n    parentFiber = parentFiber.sibling;\n  }\n}\nfunction recursivelyTraverseReappearLayoutEffects(\n  finishedRoot$jscomp$0,\n  parentFiber,\n  layoutEffectTraversalFlags\n) {\n  layoutEffectTraversalFlags =\n    0 !== (parentFiber.subtreeFlags & 8772)\n      ? layoutEffectTraversalFlags\n      : layoutEffectTraversalFlags & -2;\n  for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n    var current = parentFiber.alternate,\n      finishedRoot = finishedRoot$jscomp$0,\n      finishedWork = parentFiber,\n      flags = finishedWork.flags,\n      includeWorkInProgressEffects = 0 !== (layoutEffectTraversalFlags & 1);\n    switch (finishedWork.tag) {\n      case 0:\n      case 11:\n      case 15:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        commitHookEffectListMount(4, finishedWork);\n        break;\n      case 1:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        current = finishedWork;\n        finishedRoot = current.stateNode;\n        if (\"function\" === typeof finishedRoot.componentDidMount)\n          try {\n            finishedRoot.componentDidMount();\n          } catch (error) {\n            captureCommitPhaseError(current, current.return, error);\n          }\n        current = finishedWork;\n        finishedRoot = current.updateQueue;\n        if (null !== finishedRoot) {\n          var instance = current.stateNode;\n          try {\n            var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;\n            if (null !== hiddenCallbacks)\n              for (\n                finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0;\n                finishedRoot < hiddenCallbacks.length;\n                finishedRoot++\n              )\n                callCallback(hiddenCallbacks[finishedRoot], instance);\n          } catch (error) {\n            captureCommitPhaseError(current, current.return, error);\n          }\n        }\n        includeWorkInProgressEffects &&\n          flags & 64 &&\n          commitClassCallbacks(finishedWork);\n        safelyAttachRef(finishedWork, finishedWork.return);\n        break;\n      case 27:\n        0 !== (layoutEffectTraversalFlags & 2) &&\n          commitHostSingletonAcquisition(finishedWork);\n      case 5:\n        (5 !== finishedWork.tag && 27 !== finishedWork.tag) ||\n          commitFragmentInstanceInsertionEffects(finishedWork);\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        includeWorkInProgressEffects &&\n          null === current &&\n          flags & 4 &&\n          commitHostMount(finishedWork);\n        safelyAttachRef(finishedWork, finishedWork.return);\n        break;\n      case 6:\n        commitFragmentInstanceInsertionEffects(finishedWork);\n        break;\n      case 26:\n        instance = finishedWork.stateNode;\n        null !== finishedWork.memoizedState ||\n          null === instance ||\n          offscreenSubtreeIsHidden ||\n          mountHoistable(\n            getHoistableRoot(instance.ownerDocument),\n            finishedWork.type,\n            instance\n          );\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        includeWorkInProgressEffects &&\n          null === current &&\n          flags & 4 &&\n          commitHostMount(finishedWork);\n        safelyAttachRef(finishedWork, finishedWork.return);\n        break;\n      case 12:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        break;\n      case 31:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        includeWorkInProgressEffects &&\n          flags & 4 &&\n          commitActivityHydrationCallbacks(finishedRoot, finishedWork);\n        break;\n      case 13:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        includeWorkInProgressEffects &&\n          flags & 4 &&\n          commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n        break;\n      case 22:\n        null === finishedWork.memoizedState &&\n          recursivelyTraverseReappearLayoutEffects(\n            finishedRoot,\n            finishedWork,\n            layoutEffectTraversalFlags\n          );\n        safelyAttachRef(finishedWork, finishedWork.return);\n        break;\n      case 30:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n        safelyAttachRef(finishedWork, finishedWork.return);\n        break;\n      case 7:\n        safelyAttachRef(finishedWork, finishedWork.return);\n      default:\n        recursivelyTraverseReappearLayoutEffects(\n          finishedRoot,\n          finishedWork,\n          layoutEffectTraversalFlags\n        );\n    }\n    parentFiber = parentFiber.sibling;\n  }\n}\nfunction commitOffscreenPassiveMountEffects(current, finishedWork) {\n  var previousCache = null;\n  null !== current &&\n    null !== current.memoizedState &&\n    null !== current.memoizedState.cachePool &&\n    (previousCache = current.memoizedState.cachePool.pool);\n  current = null;\n  null !== finishedWork.memoizedState &&\n    null !== finishedWork.memoizedState.cachePool &&\n    (current = finishedWork.memoizedState.cachePool.pool);\n  current !== previousCache &&\n    (null != current && current.refCount++,\n    null != previousCache && releaseCache(previousCache));\n}\nfunction commitCachePassiveMountEffect(current, finishedWork) {\n  current = null;\n  null !== finishedWork.alternate &&\n    (current = finishedWork.alternate.memoizedState.cache);\n  finishedWork = finishedWork.memoizedState.cache;\n  finishedWork !== current &&\n    (finishedWork.refCount++, null != current && releaseCache(current));\n}\nfunction recursivelyTraversePassiveMountEffects(\n  root,\n  parentFiber,\n  committedLanes,\n  committedTransitions\n) {\n  var isViewTransitionEligible =\n    (committedLanes & 335544064) === committedLanes;\n  if (parentFiber.subtreeFlags & (isViewTransitionEligible ? 10262 : 10256))\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      commitPassiveMountOnFiber(\n        root,\n        parentFiber,\n        committedLanes,\n        committedTransitions\n      ),\n        (parentFiber = parentFiber.sibling);\n  else isViewTransitionEligible && restoreNestedViewTransitions(parentFiber);\n}\nfunction commitPassiveMountOnFiber(\n  finishedRoot,\n  finishedWork,\n  committedLanes,\n  committedTransitions\n) {\n  var isViewTransitionEligible =\n    (committedLanes & 335544064) === committedLanes;\n  isViewTransitionEligible &&\n    null === finishedWork.alternate &&\n    null !== finishedWork.return &&\n    null !== finishedWork.return.alternate &&\n    restoreEnterOrExitViewTransitions(finishedWork);\n  var flags = finishedWork.flags;\n  switch (finishedWork.tag) {\n    case 0:\n    case 11:\n    case 15:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      flags & 2048 && commitHookEffectListMount(9, finishedWork);\n      break;\n    case 1:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      break;\n    case 3:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      isViewTransitionEligible &&\n        rootViewTransitionNameCanceled &&\n        ((finishedRoot = finishedRoot.containerInfo),\n        (finishedRoot =\n          9 === finishedRoot.nodeType\n            ? finishedRoot.body\n            : \"HTML\" === finishedRoot.nodeName\n              ? finishedRoot.ownerDocument.body\n              : finishedRoot),\n        \"root\" === finishedRoot.style.viewTransitionName &&\n          (finishedRoot.style.viewTransitionName = \"\"),\n        (finishedRoot = finishedRoot.ownerDocument.documentElement),\n        null !== finishedRoot &&\n          \"none\" === finishedRoot.style.viewTransitionName &&\n          (finishedRoot.style.viewTransitionName = \"\"));\n      flags & 2048 &&\n        ((flags = null),\n        null !== finishedWork.alternate &&\n          (flags = finishedWork.alternate.memoizedState.cache),\n        (finishedWork = finishedWork.memoizedState.cache),\n        finishedWork !== flags &&\n          (finishedWork.refCount++, null != flags && releaseCache(flags)));\n      break;\n    case 12:\n      if (flags & 2048) {\n        recursivelyTraversePassiveMountEffects(\n          finishedRoot,\n          finishedWork,\n          committedLanes,\n          committedTransitions\n        );\n        flags = finishedWork.stateNode;\n        try {\n          var _finishedWork$memoize2 = finishedWork.memoizedProps,\n            id = _finishedWork$memoize2.id,\n            onPostCommit = _finishedWork$memoize2.onPostCommit;\n          \"function\" === typeof onPostCommit &&\n            onPostCommit(\n              id,\n              null === finishedWork.alternate ? \"mount\" : \"update\",\n              flags.passiveEffectDuration,\n              -0\n            );\n        } catch (error) {\n          captureCommitPhaseError(finishedWork, finishedWork.return, error);\n        }\n      } else\n        recursivelyTraversePassiveMountEffects(\n          finishedRoot,\n          finishedWork,\n          committedLanes,\n          committedTransitions\n        );\n      break;\n    case 31:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      break;\n    case 13:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      break;\n    case 23:\n      break;\n    case 22:\n      _finishedWork$memoize2 = finishedWork.stateNode;\n      id = finishedWork.alternate;\n      null !== finishedWork.memoizedState\n        ? (isViewTransitionEligible &&\n            null !== id &&\n            null === id.memoizedState &&\n            restoreEnterOrExitViewTransitions(id),\n          _finishedWork$memoize2._visibility & 2\n            ? recursivelyTraversePassiveMountEffects(\n                finishedRoot,\n                finishedWork,\n                committedLanes,\n                committedTransitions\n              )\n            : recursivelyTraverseAtomicPassiveEffects(\n                finishedRoot,\n                finishedWork\n              ))\n        : (isViewTransitionEligible &&\n            null !== id &&\n            null !== id.memoizedState &&\n            restoreEnterOrExitViewTransitions(finishedWork),\n          _finishedWork$memoize2._visibility & 2\n            ? recursivelyTraversePassiveMountEffects(\n                finishedRoot,\n                finishedWork,\n                committedLanes,\n                committedTransitions\n              )\n            : ((_finishedWork$memoize2._visibility |= 2),\n              recursivelyTraverseReconnectPassiveEffects(\n                finishedRoot,\n                finishedWork,\n                committedLanes,\n                committedTransitions,\n                0 !== (finishedWork.subtreeFlags & 10256) || !1\n              )));\n      flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);\n      break;\n    case 24:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      flags & 2048 &&\n        commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n      break;\n    case 30:\n      isViewTransitionEligible &&\n        ((flags = finishedWork.alternate),\n        null !== flags &&\n          (restoreViewTransitionOnHostInstances(flags.child, !0),\n          restoreViewTransitionOnHostInstances(finishedWork.child, !0)));\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n      break;\n    default:\n      recursivelyTraversePassiveMountEffects(\n        finishedRoot,\n        finishedWork,\n        committedLanes,\n        committedTransitions\n      );\n  }\n}\nfunction recursivelyTraverseReconnectPassiveEffects(\n  finishedRoot$jscomp$0,\n  parentFiber,\n  committedLanes$jscomp$0,\n  committedTransitions$jscomp$0,\n  includeWorkInProgressEffects\n) {\n  includeWorkInProgressEffects =\n    includeWorkInProgressEffects &&\n    (0 !== (parentFiber.subtreeFlags & 10256) || !1);\n  for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n    var finishedRoot = finishedRoot$jscomp$0,\n      finishedWork = parentFiber,\n      committedLanes = committedLanes$jscomp$0,\n      committedTransitions = committedTransitions$jscomp$0,\n      flags = finishedWork.flags;\n    switch (finishedWork.tag) {\n      case 0:\n      case 11:\n      case 15:\n        recursivelyTraverseReconnectPassiveEffects(\n          finishedRoot,\n          finishedWork,\n          committedLanes,\n          committedTransitions,\n          includeWorkInProgressEffects\n        );\n        commitHookEffectListMount(8, finishedWork);\n        break;\n      case 23:\n        break;\n      case 22:\n        var instance = finishedWork.stateNode;\n        null !== finishedWork.memoizedState\n          ? instance._visibility & 2\n            ? recursivelyTraverseReconnectPassiveEffects(\n                finishedRoot,\n                finishedWork,\n                committedLanes,\n                committedTransitions,\n                includeWorkInProgressEffects\n              )\n            : recursivelyTraverseAtomicPassiveEffects(\n                finishedRoot,\n                finishedWork\n              )\n          : ((instance._visibility |= 2),\n            recursivelyTraverseReconnectPassiveEffects(\n              finishedRoot,\n              finishedWork,\n              committedLanes,\n              committedTransitions,\n              includeWorkInProgressEffects\n            ));\n        includeWorkInProgressEffects &&\n          flags & 2048 &&\n          commitOffscreenPassiveMountEffects(\n            finishedWork.alternate,\n            finishedWork\n          );\n        break;\n      case 24:\n        recursivelyTraverseReconnectPassiveEffects(\n          finishedRoot,\n          finishedWork,\n          committedLanes,\n          committedTransitions,\n          includeWorkInProgressEffects\n        );\n        includeWorkInProgressEffects &&\n          flags & 2048 &&\n          commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n        break;\n      default:\n        recursivelyTraverseReconnectPassiveEffects(\n          finishedRoot,\n          finishedWork,\n          committedLanes,\n          committedTransitions,\n          includeWorkInProgressEffects\n        );\n    }\n    parentFiber = parentFiber.sibling;\n  }\n}\nfunction recursivelyTraverseAtomicPassiveEffects(\n  finishedRoot$jscomp$0,\n  parentFiber\n) {\n  if (parentFiber.subtreeFlags & 10256)\n    for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n      var finishedRoot = finishedRoot$jscomp$0,\n        finishedWork = parentFiber,\n        flags = finishedWork.flags;\n      switch (finishedWork.tag) {\n        case 22:\n          recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n          flags & 2048 &&\n            commitOffscreenPassiveMountEffects(\n              finishedWork.alternate,\n              finishedWork\n            );\n          break;\n        case 24:\n          recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n          flags & 2048 &&\n            commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n          break;\n        default:\n          recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n      }\n      parentFiber = parentFiber.sibling;\n    }\n}\nvar suspenseyCommitFlag = 8192;\nfunction recursivelyAccumulateSuspenseyCommit(\n  parentFiber,\n  committedLanes,\n  suspendedState\n) {\n  if (parentFiber.subtreeFlags & suspenseyCommitFlag)\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      accumulateSuspenseyCommitOnFiber(\n        parentFiber,\n        committedLanes,\n        suspendedState\n      ),\n        (parentFiber = parentFiber.sibling);\n}\nfunction accumulateSuspenseyCommitOnFiber(\n  fiber,\n  committedLanes,\n  suspendedState\n) {\n  switch (fiber.tag) {\n    case 26:\n      recursivelyAccumulateSuspenseyCommit(\n        fiber,\n        committedLanes,\n        suspendedState\n      );\n      fiber.flags & suspenseyCommitFlag &&\n        (null !== fiber.memoizedState\n          ? suspendResource(\n              suspendedState,\n              currentHoistableRoot,\n              fiber.memoizedState,\n              fiber.memoizedProps\n            )\n          : ((fiber = fiber.stateNode),\n            (committedLanes & 335544128) === committedLanes &&\n              suspendInstance(suspendedState, fiber)));\n      break;\n    case 5:\n      recursivelyAccumulateSuspenseyCommit(\n        fiber,\n        committedLanes,\n        suspendedState\n      );\n      fiber.flags & suspenseyCommitFlag &&\n        ((fiber = fiber.stateNode),\n        (committedLanes & 335544128) === committedLanes &&\n          suspendInstance(suspendedState, fiber));\n      break;\n    case 3:\n    case 4:\n      var previousHoistableRoot = currentHoistableRoot;\n      currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);\n      recursivelyAccumulateSuspenseyCommit(\n        fiber,\n        committedLanes,\n        suspendedState\n      );\n      currentHoistableRoot = previousHoistableRoot;\n      break;\n    case 22:\n      null === fiber.memoizedState &&\n        ((previousHoistableRoot = fiber.alternate),\n        null !== previousHoistableRoot &&\n        null !== previousHoistableRoot.memoizedState\n          ? ((previousHoistableRoot = suspenseyCommitFlag),\n            (suspenseyCommitFlag = 16777216),\n            recursivelyAccumulateSuspenseyCommit(\n              fiber,\n              committedLanes,\n              suspendedState\n            ),\n            (suspenseyCommitFlag = previousHoistableRoot))\n          : recursivelyAccumulateSuspenseyCommit(\n              fiber,\n              committedLanes,\n              suspendedState\n            ));\n      break;\n    case 30:\n      if (\n        0 !== (fiber.flags & suspenseyCommitFlag) &&\n        ((previousHoistableRoot = fiber.memoizedProps.name),\n        null != previousHoistableRoot && \"auto\" !== previousHoistableRoot)\n      ) {\n        var state = fiber.stateNode;\n        state.paired = null;\n        null === appearingViewTransitions &&\n          (appearingViewTransitions = new Map());\n        appearingViewTransitions.set(previousHoistableRoot, state);\n      }\n      recursivelyAccumulateSuspenseyCommit(\n        fiber,\n        committedLanes,\n        suspendedState\n      );\n      break;\n    default:\n      recursivelyAccumulateSuspenseyCommit(\n        fiber,\n        committedLanes,\n        suspendedState\n      );\n  }\n}\nfunction detachAlternateSiblings(parentFiber) {\n  var previousFiber = parentFiber.alternate;\n  if (\n    null !== previousFiber &&\n    ((parentFiber = previousFiber.child), null !== parentFiber)\n  ) {\n    previousFiber.child = null;\n    do\n      (previousFiber = parentFiber.sibling),\n        (parentFiber.sibling = null),\n        (parentFiber = previousFiber);\n    while (null !== parentFiber);\n  }\n}\nfunction recursivelyTraversePassiveUnmountEffects(parentFiber) {\n  var deletions = parentFiber.deletions;\n  if (0 !== (parentFiber.flags & 16)) {\n    if (null !== deletions)\n      for (var i = 0; i < deletions.length; i++) {\n        var childToDelete = deletions[i];\n        nextEffect = childToDelete;\n        commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n          childToDelete,\n          parentFiber\n        );\n      }\n    detachAlternateSiblings(parentFiber);\n  }\n  if (parentFiber.subtreeFlags & 10256)\n    for (parentFiber = parentFiber.child; null !== parentFiber; )\n      commitPassiveUnmountOnFiber(parentFiber),\n        (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n  switch (finishedWork.tag) {\n    case 0:\n    case 11:\n    case 15:\n      recursivelyTraversePassiveUnmountEffects(finishedWork);\n      finishedWork.flags & 2048 &&\n        commitHookEffectListUnmount(9, finishedWork, finishedWork.return);\n      break;\n    case 3:\n      recursivelyTraversePassiveUnmountEffects(finishedWork);\n      break;\n    case 12:\n      recursivelyTraversePassiveUnmountEffects(finishedWork);\n      break;\n    case 22:\n      var instance = finishedWork.stateNode;\n      null !== finishedWork.memoizedState &&\n      instance._visibility & 2 &&\n      (null === finishedWork.return || 13 !== finishedWork.return.tag)\n        ? ((instance._visibility &= -3),\n          recursivelyTraverseDisconnectPassiveEffects(finishedWork))\n        : recursivelyTraversePassiveUnmountEffects(finishedWork);\n      break;\n    default:\n      recursivelyTraversePassiveUnmountEffects(finishedWork);\n  }\n}\nfunction recursivelyTraverseDisconnectPassiveEffects(parentFiber) {\n  var deletions = parentFiber.deletions;\n  if (0 !== (parentFiber.flags & 16)) {\n    if (null !== deletions)\n      for (var i = 0; i < deletions.length; i++) {\n        var childToDelete = deletions[i];\n        nextEffect = childToDelete;\n        commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n          childToDelete,\n          parentFiber\n        );\n      }\n    detachAlternateSiblings(parentFiber);\n  }\n  for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n    deletions = parentFiber;\n    switch (deletions.tag) {\n      case 0:\n      case 11:\n      case 15:\n        commitHookEffectListUnmount(8, deletions, deletions.return);\n        recursivelyTraverseDisconnectPassiveEffects(deletions);\n        break;\n      case 22:\n        i = deletions.stateNode;\n        i._visibility & 2 &&\n          ((i._visibility &= -3),\n          recursivelyTraverseDisconnectPassiveEffects(deletions));\n        break;\n      default:\n        recursivelyTraverseDisconnectPassiveEffects(deletions);\n    }\n    parentFiber = parentFiber.sibling;\n  }\n}\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n  deletedSubtreeRoot,\n  nearestMountedAncestor\n) {\n  for (; null !== nextEffect; ) {\n    var fiber = nextEffect;\n    switch (fiber.tag) {\n      case 0:\n      case 11:\n      case 15:\n        commitHookEffectListUnmount(8, fiber, nearestMountedAncestor);\n        break;\n      case 23:\n      case 22:\n        if (\n          null !== fiber.memoizedState &&\n          null !== fiber.memoizedState.cachePool\n        ) {\n          var cache = fiber.memoizedState.cachePool.pool;\n          null != cache && cache.refCount++;\n        }\n        break;\n      case 24:\n        releaseCache(fiber.memoizedState.cache);\n    }\n    cache = fiber.child;\n    if (null !== cache) (cache.return = fiber), (nextEffect = cache);\n    else\n      a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {\n        cache = nextEffect;\n        var sibling = cache.sibling,\n          returnFiber = cache.return;\n        detachFiberAfterEffects(cache);\n        if (cache === fiber) {\n          nextEffect = null;\n          break a;\n        }\n        if (null !== sibling) {\n          sibling.return = returnFiber;\n          nextEffect = sibling;\n          break a;\n        }\n        nextEffect = returnFiber;\n      }\n  }\n}\nvar DefaultAsyncDispatcher = {\n    getCacheForType: function (resourceType) {\n      var cache = readContext(CacheContext),\n        cacheForType = cache.data.get(resourceType);\n      void 0 === cacheForType &&\n        ((cacheForType = resourceType()),\n        cache.data.set(resourceType, cacheForType));\n      return cacheForType;\n    },\n    cacheSignal: function () {\n      return readContext(CacheContext).controller.signal;\n    }\n  },\n  PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map,\n  executionContext = 0,\n  workInProgressRoot = null,\n  workInProgress = null,\n  workInProgressRootRenderLanes = 0,\n  workInProgressSuspendedReason = 0,\n  workInProgressThrownValue = null,\n  workInProgressRootDidSkipSuspendedSiblings = !1,\n  workInProgressRootIsPrerendering = !1,\n  workInProgressRootDidAttachPingListener = !1,\n  entangledRenderLanes = 0,\n  workInProgressRootExitStatus = 0,\n  workInProgressRootSkippedLanes = 0,\n  workInProgressRootInterleavedUpdatedLanes = 0,\n  workInProgressRootPingedLanes = 0,\n  workInProgressDeferredLane = 0,\n  workInProgressSuspendedRetryLanes = 0,\n  workInProgressRootConcurrentErrors = null,\n  workInProgressRootRecoverableErrors = null,\n  workInProgressRootDidIncludeRecursiveRenderUpdate = !1,\n  globalMostRecentFallbackTime = 0,\n  globalMostRecentTransitionTime = 0,\n  workInProgressRootRenderTargetTime = Infinity,\n  workInProgressTransitions = null,\n  legacyErrorBoundariesThatAlreadyFailed = null,\n  pendingEffectsStatus = 0,\n  pendingEffectsRoot = null,\n  pendingFinishedWork = null,\n  pendingEffectsLanes = 0,\n  pendingEffectsRemainingLanes = 0,\n  pendingPassiveTransitions = null,\n  pendingRecoverableErrors = null,\n  pendingViewTransition = null,\n  pendingViewTransitionEvents = null,\n  pendingTransitionTypes = null,\n  nestedUpdateCount = 0,\n  rootWithNestedUpdates = null;\nfunction requestUpdateLane() {\n  return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes\n    ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes\n    : null !== ReactSharedInternals.T\n      ? requestTransitionLane()\n      : resolveUpdatePriority();\n}\nfunction requestDeferredLane() {\n  if (0 === workInProgressDeferredLane)\n    if (0 === (workInProgressRootRenderLanes & 536870912) || isHydrating) {\n      var lane = nextTransitionDeferredLane;\n      nextTransitionDeferredLane <<= 1;\n      0 === (nextTransitionDeferredLane & 3932160) &&\n        (nextTransitionDeferredLane = 262144);\n      workInProgressDeferredLane = lane;\n    } else workInProgressDeferredLane = 536870912;\n  lane = suspenseHandlerStackCursor.current;\n  null !== lane && (lane.flags |= 32);\n  return workInProgressDeferredLane;\n}\nfunction scheduleViewTransitionEvent(fiber, callback) {\n  if (null != callback) {\n    var state = fiber.stateNode,\n      instance = state.ref;\n    null === instance &&\n      (instance = state.ref =\n        createViewTransitionInstance(\n          getViewTransitionName(fiber.memoizedProps, state)\n        ));\n    null === pendingViewTransitionEvents && (pendingViewTransitionEvents = []);\n    pendingViewTransitionEvents.push(callback.bind(null, instance));\n  }\n}\nfunction scheduleUpdateOnFiber(root, fiber, lane) {\n  if (\n    (root === workInProgressRoot &&\n      (2 === workInProgressSuspendedReason ||\n        9 === workInProgressSuspendedReason)) ||\n    null !== root.cancelPendingCommit\n  )\n    prepareFreshStack(root, 0),\n      markRootSuspended(\n        root,\n        workInProgressRootRenderLanes,\n        workInProgressDeferredLane,\n        !1\n      );\n  markRootUpdated$1(root, lane);\n  if (0 === (executionContext & 2) || root !== workInProgressRoot)\n    root === workInProgressRoot &&\n      (0 === (executionContext & 2) &&\n        (workInProgressRootInterleavedUpdatedLanes |= lane),\n      4 === workInProgressRootExitStatus &&\n        markRootSuspended(\n          root,\n          workInProgressRootRenderLanes,\n          workInProgressDeferredLane,\n          !1\n        )),\n      ensureRootIsScheduled(root);\n}\nfunction performWorkOnRoot(root$jscomp$0, lanes, forceSync) {\n  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n  var shouldTimeSlice =\n      (!forceSync &&\n        0 === (lanes & 127) &&\n        0 === (lanes & root$jscomp$0.expiredLanes)) ||\n      checkIfRootIsPrerendering(root$jscomp$0, lanes),\n    exitStatus = shouldTimeSlice\n      ? renderRootConcurrent(root$jscomp$0, lanes)\n      : renderRootSync(root$jscomp$0, lanes, !0),\n    renderWasConcurrent = shouldTimeSlice;\n  do {\n    if (0 === exitStatus) {\n      workInProgressRootIsPrerendering &&\n        !shouldTimeSlice &&\n        markRootSuspended(root$jscomp$0, lanes, 0, !1);\n      break;\n    } else {\n      forceSync = root$jscomp$0.current.alternate;\n      if (\n        renderWasConcurrent &&\n        !isRenderConsistentWithExternalStores(forceSync)\n      ) {\n        exitStatus = renderRootSync(root$jscomp$0, lanes, !1);\n        renderWasConcurrent = !1;\n        continue;\n      }\n      if (2 === exitStatus) {\n        renderWasConcurrent = lanes;\n        if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)\n          var JSCompiler_inline_result = 0;\n        else\n          (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),\n            (JSCompiler_inline_result =\n              0 !== JSCompiler_inline_result\n                ? JSCompiler_inline_result\n                : JSCompiler_inline_result & 536870912\n                  ? 536870912\n                  : 0);\n        if (0 !== JSCompiler_inline_result) {\n          lanes = JSCompiler_inline_result;\n          a: {\n            var root = root$jscomp$0;\n            exitStatus = workInProgressRootConcurrentErrors;\n            var wasRootDehydrated = root.current.memoizedState.isDehydrated;\n            wasRootDehydrated &&\n              (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256);\n            JSCompiler_inline_result = renderRootSync(\n              root,\n              JSCompiler_inline_result,\n              !1\n            );\n            if (\n              2 !== JSCompiler_inline_result &&\n              6 !== JSCompiler_inline_result\n            ) {\n              if (\n                workInProgressRootDidAttachPingListener &&\n                !wasRootDehydrated\n              ) {\n                root.errorRecoveryDisabledLanes |= renderWasConcurrent;\n                workInProgressRootInterleavedUpdatedLanes |=\n                  renderWasConcurrent;\n                exitStatus = 4;\n                break a;\n              }\n              renderWasConcurrent = workInProgressRootRecoverableErrors;\n              workInProgressRootRecoverableErrors = exitStatus;\n              null !== renderWasConcurrent &&\n                (null === workInProgressRootRecoverableErrors\n                  ? (workInProgressRootRecoverableErrors = renderWasConcurrent)\n                  : workInProgressRootRecoverableErrors.push.apply(\n                      workInProgressRootRecoverableErrors,\n                      renderWasConcurrent\n                    ));\n            }\n            exitStatus = JSCompiler_inline_result;\n          }\n          renderWasConcurrent = !1;\n          if (2 !== exitStatus) continue;\n        }\n      }\n      if (1 === exitStatus) {\n        prepareFreshStack(root$jscomp$0, 0);\n        markRootSuspended(root$jscomp$0, lanes, 0, !0);\n        break;\n      }\n      a: {\n        shouldTimeSlice = root$jscomp$0;\n        renderWasConcurrent = exitStatus;\n        switch (renderWasConcurrent) {\n          case 0:\n          case 1:\n            throw Error(formatProdErrorMessage(345));\n          case 4:\n            if ((lanes & 4194048) !== lanes && (lanes & 62914560) !== lanes)\n              break;\n          case 6:\n            markRootSuspended(\n              shouldTimeSlice,\n              lanes,\n              workInProgressDeferredLane,\n              !workInProgressRootDidSkipSuspendedSiblings\n            );\n            break a;\n          case 2:\n            workInProgressRootRecoverableErrors = null;\n            break;\n          case 3:\n          case 5:\n            break;\n          default:\n            throw Error(formatProdErrorMessage(329));\n        }\n        if (\n          (lanes & 62914560) === lanes &&\n          ((exitStatus = globalMostRecentFallbackTime + 300 - now()),\n          10 < exitStatus)\n        ) {\n          markRootSuspended(\n            shouldTimeSlice,\n            lanes,\n            workInProgressDeferredLane,\n            !workInProgressRootDidSkipSuspendedSiblings\n          );\n          if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;\n          pendingEffectsLanes = lanes;\n          shouldTimeSlice.timeoutHandle = scheduleTimeout(\n            completeRootWhenReady.bind(\n              null,\n              shouldTimeSlice,\n              forceSync,\n              workInProgressRootRecoverableErrors,\n              workInProgressTransitions,\n              workInProgressRootDidIncludeRecursiveRenderUpdate,\n              lanes,\n              workInProgressDeferredLane,\n              workInProgressRootInterleavedUpdatedLanes,\n              workInProgressSuspendedRetryLanes,\n              workInProgressRootDidSkipSuspendedSiblings,\n              renderWasConcurrent,\n              \"Throttled\",\n              -0,\n              0\n            ),\n            exitStatus\n          );\n          break a;\n        }\n        completeRootWhenReady(\n          shouldTimeSlice,\n          forceSync,\n          workInProgressRootRecoverableErrors,\n          workInProgressTransitions,\n          workInProgressRootDidIncludeRecursiveRenderUpdate,\n          lanes,\n          workInProgressDeferredLane,\n          workInProgressRootInterleavedUpdatedLanes,\n          workInProgressSuspendedRetryLanes,\n          workInProgressRootDidSkipSuspendedSiblings,\n          renderWasConcurrent,\n          null,\n          -0,\n          0\n        );\n      }\n    }\n    break;\n  } while (1);\n  ensureRootIsScheduled(root$jscomp$0);\n}\nfunction completeRootWhenReady(\n  root,\n  finishedWork,\n  recoverableErrors,\n  transitions,\n  didIncludeRenderPhaseUpdate,\n  lanes,\n  spawnedLane,\n  updatedLanes,\n  suspendedRetryLanes,\n  didSkipSuspendedSiblings,\n  exitStatus,\n  suspendedCommitReason,\n  completedRenderStartTime,\n  completedRenderEndTime\n) {\n  root.timeoutHandle = -1;\n  var subtreeFlags = finishedWork.subtreeFlags,\n    isViewTransitionEligible = (lanes & 335544064) === lanes;\n  suspendedCommitReason = null;\n  if (\n    isViewTransitionEligible ||\n    subtreeFlags & 8192 ||\n    16785408 === (subtreeFlags & 16785408)\n  )\n    if (\n      ((suspendedCommitReason = {\n        stylesheets: null,\n        count: 0,\n        imgCount: 0,\n        imgBytes: 0,\n        suspenseyImages: [],\n        waitingForImages: !0,\n        waitingForViewTransition: !1,\n        unsuspend: noop$1\n      }),\n      (appearingViewTransitions = null),\n      accumulateSuspenseyCommitOnFiber(\n        finishedWork,\n        lanes,\n        suspendedCommitReason\n      ),\n      isViewTransitionEligible &&\n        ((subtreeFlags = suspendedCommitReason),\n        (isViewTransitionEligible = root.containerInfo),\n        (isViewTransitionEligible = (\n          9 === isViewTransitionEligible.nodeType\n            ? isViewTransitionEligible\n            : isViewTransitionEligible.ownerDocument\n        ).__reactViewTransition),\n        null != isViewTransitionEligible &&\n          (subtreeFlags.count++,\n          (subtreeFlags.waitingForViewTransition = !0),\n          (subtreeFlags = onUnsuspend.bind(subtreeFlags)),\n          isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))),\n      (subtreeFlags =\n        (lanes & 62914560) === lanes\n          ? globalMostRecentFallbackTime - now()\n          : (lanes & 4194048) === lanes\n            ? globalMostRecentTransitionTime - now()\n            : 0),\n      (subtreeFlags = waitForCommitToBeReady(\n        suspendedCommitReason,\n        subtreeFlags\n      )),\n      null !== subtreeFlags)\n    ) {\n      pendingEffectsLanes = lanes;\n      root.cancelPendingCommit = subtreeFlags(\n        completeRoot.bind(\n          null,\n          root,\n          finishedWork,\n          lanes,\n          recoverableErrors,\n          transitions,\n          didIncludeRenderPhaseUpdate,\n          spawnedLane,\n          updatedLanes,\n          suspendedRetryLanes,\n          didSkipSuspendedSiblings,\n          exitStatus,\n          suspendedCommitReason,\n          null,\n          completedRenderStartTime,\n          completedRenderEndTime\n        )\n      );\n      markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);\n      return;\n    }\n  completeRoot(\n    root,\n    finishedWork,\n    lanes,\n    recoverableErrors,\n    transitions,\n    didIncludeRenderPhaseUpdate,\n    spawnedLane,\n    updatedLanes,\n    suspendedRetryLanes,\n    didSkipSuspendedSiblings,\n    exitStatus,\n    suspendedCommitReason\n  );\n}\nfunction isRenderConsistentWithExternalStores(finishedWork) {\n  for (var node = finishedWork; ; ) {\n    var tag = node.tag;\n    if (\n      (0 === tag || 11 === tag || 15 === tag) &&\n      node.flags & 16384 &&\n      ((tag = node.updateQueue),\n      null !== tag && ((tag = tag.stores), null !== tag))\n    )\n      for (var i = 0; i < tag.length; i++) {\n        var check = tag[i],\n          getSnapshot = check.getSnapshot;\n        check = check.value;\n        try {\n          if (!objectIs(getSnapshot(), check)) return !1;\n        } catch (error) {\n          return !1;\n        }\n      }\n    tag = node.child;\n    if (node.subtreeFlags & 16384 && null !== tag)\n      (tag.return = node), (node = tag);\n    else {\n      if (node === finishedWork) break;\n      for (; null === node.sibling; ) {\n        if (null === node.return || node.return === finishedWork) return !0;\n        node = node.return;\n      }\n      node.sibling.return = node.return;\n      node = node.sibling;\n    }\n  }\n  return !0;\n}\nfunction markRootSuspended(\n  root,\n  suspendedLanes,\n  spawnedLane,\n  didAttemptEntireTree\n) {\n  suspendedLanes = getEntangledLanes(root, suspendedLanes);\n  suspendedLanes &= ~workInProgressRootPingedLanes;\n  suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;\n  root.suspendedLanes |= suspendedLanes;\n  root.pingedLanes &= ~suspendedLanes;\n  didAttemptEntireTree && (root.warmLanes |= suspendedLanes);\n  didAttemptEntireTree = root.expirationTimes;\n  for (var lanes = suspendedLanes; 0 < lanes; ) {\n    var index$6 = 31 - clz32(lanes),\n      lane = 1 << index$6;\n    didAttemptEntireTree[index$6] = -1;\n    lanes &= ~lane;\n  }\n  0 !== spawnedLane &&\n    markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);\n}\nfunction flushSyncWork$1() {\n  return 0 === (executionContext & 6)\n    ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)\n    : !0;\n}\nfunction resetWorkInProgressStack() {\n  if (null !== workInProgress) {\n    if (0 === workInProgressSuspendedReason)\n      var interruptedWork = workInProgress.return;\n    else\n      (interruptedWork = workInProgress),\n        (lastContextDependency = currentlyRenderingFiber$1 = null),\n        resetHooksOnUnwind(interruptedWork),\n        (thenableState$1 = null),\n        (thenableIndexCounter$1 = 0),\n        (interruptedWork = workInProgress);\n    for (; null !== interruptedWork; )\n      unwindInterruptedWork(interruptedWork.alternate, interruptedWork),\n        (interruptedWork = interruptedWork.return);\n    workInProgress = null;\n  }\n}\nfunction prepareFreshStack(root, lanes) {\n  var timeoutHandle = root.timeoutHandle;\n  -1 !== timeoutHandle &&\n    ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));\n  timeoutHandle = root.cancelPendingCommit;\n  null !== timeoutHandle &&\n    ((root.cancelPendingCommit = null), timeoutHandle());\n  pendingEffectsLanes = 0;\n  resetWorkInProgressStack();\n  workInProgressRoot = root;\n  workInProgress = timeoutHandle = createWorkInProgress(root.current, null);\n  workInProgressRootRenderLanes = lanes;\n  workInProgressSuspendedReason = 0;\n  workInProgressThrownValue = null;\n  workInProgressRootDidSkipSuspendedSiblings = !1;\n  workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);\n  workInProgressRootDidAttachPingListener = !1;\n  workInProgressSuspendedRetryLanes =\n    workInProgressDeferredLane =\n    workInProgressRootPingedLanes =\n    workInProgressRootInterleavedUpdatedLanes =\n    workInProgressRootSkippedLanes =\n    workInProgressRootExitStatus =\n      0;\n  workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =\n    null;\n  workInProgressRootDidIncludeRecursiveRenderUpdate = !1;\n  entangledRenderLanes = getEntangledLanes(root, lanes);\n  finishQueueingConcurrentUpdates();\n  return timeoutHandle;\n}\nfunction handleThrow(root, thrownValue) {\n  currentlyRenderingFiber = null;\n  ReactSharedInternals.H = ContextOnlyDispatcher;\n  thrownValue === SuspenseException || thrownValue === SuspenseActionException\n    ? ((thrownValue = getSuspendedThenable()),\n      (workInProgressSuspendedReason = 3))\n    : thrownValue === SuspenseyCommitException\n      ? ((thrownValue = getSuspendedThenable()),\n        (workInProgressSuspendedReason = 4))\n      : (workInProgressSuspendedReason =\n          thrownValue === SelectiveHydrationException\n            ? 8\n            : null !== thrownValue &&\n                \"object\" === typeof thrownValue &&\n                \"function\" === typeof thrownValue.then\n              ? 6\n              : 1);\n  workInProgressThrownValue = thrownValue;\n  null === workInProgress &&\n    ((workInProgressRootExitStatus = 1),\n    logUncaughtError(\n      root,\n      createCapturedValueAtFiber(thrownValue, root.current)\n    ));\n}\nfunction shouldRemainOnPreviousScreen() {\n  var handler = suspenseHandlerStackCursor.current;\n  return null === handler\n    ? !0\n    : (workInProgressRootRenderLanes & 4194048) ===\n        workInProgressRootRenderLanes\n      ? null === shellBoundary\n        ? !0\n        : !1\n      : (workInProgressRootRenderLanes & 62914560) ===\n            workInProgressRootRenderLanes ||\n          0 !== (workInProgressRootRenderLanes & 536870912)\n        ? handler === shellBoundary\n        : !1;\n}\nfunction pushDispatcher() {\n  var prevDispatcher = ReactSharedInternals.H;\n  ReactSharedInternals.H = ContextOnlyDispatcher;\n  return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;\n}\nfunction pushAsyncDispatcher() {\n  var prevAsyncDispatcher = ReactSharedInternals.A;\n  ReactSharedInternals.A = DefaultAsyncDispatcher;\n  return prevAsyncDispatcher;\n}\nfunction renderDidSuspendDelayIfPossible() {\n  workInProgressRootExitStatus = 4;\n  workInProgressRootDidSkipSuspendedSiblings ||\n    ((workInProgressRootRenderLanes & 4194048) !==\n      workInProgressRootRenderLanes &&\n      null !== suspenseHandlerStackCursor.current) ||\n    (workInProgressRootIsPrerendering = !0);\n  (0 === (workInProgressRootSkippedLanes & 134217727) &&\n    0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||\n    null === workInProgressRoot ||\n    markRootSuspended(\n      workInProgressRoot,\n      workInProgressRootRenderLanes,\n      workInProgressDeferredLane,\n      !1\n    );\n}\nfunction renderRootSync(root, lanes, shouldYieldForPrerendering) {\n  var prevExecutionContext = executionContext;\n  executionContext |= 2;\n  var prevDispatcher = pushDispatcher(),\n    prevAsyncDispatcher = pushAsyncDispatcher();\n  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)\n    (workInProgressTransitions = null), prepareFreshStack(root, lanes);\n  lanes = !1;\n  var exitStatus = workInProgressRootExitStatus;\n  a: do\n    try {\n      if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n        var unitOfWork = workInProgress,\n          thrownValue = workInProgressThrownValue;\n        switch (workInProgressSuspendedReason) {\n          case 8:\n            resetWorkInProgressStack();\n            exitStatus = 6;\n            break a;\n          case 3:\n          case 2:\n          case 9:\n          case 6:\n            null === suspenseHandlerStackCursor.current && (lanes = !0);\n            var reason = workInProgressSuspendedReason;\n            workInProgressSuspendedReason = 0;\n            workInProgressThrownValue = null;\n            throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n            if (\n              shouldYieldForPrerendering &&\n              workInProgressRootIsPrerendering\n            ) {\n              exitStatus = 0;\n              break a;\n            }\n            break;\n          default:\n            (reason = workInProgressSuspendedReason),\n              (workInProgressSuspendedReason = 0),\n              (workInProgressThrownValue = null),\n              throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n        }\n      }\n      workLoopSync();\n      exitStatus = workInProgressRootExitStatus;\n      break;\n    } catch (thrownValue$184) {\n      handleThrow(root, thrownValue$184);\n    }\n  while (1);\n  lanes && root.shellSuspendCounter++;\n  lastContextDependency = currentlyRenderingFiber$1 = null;\n  executionContext = prevExecutionContext;\n  ReactSharedInternals.H = prevDispatcher;\n  ReactSharedInternals.A = prevAsyncDispatcher;\n  null === workInProgress &&\n    ((workInProgressRoot = null),\n    (workInProgressRootRenderLanes = 0),\n    finishQueueingConcurrentUpdates());\n  return exitStatus;\n}\nfunction workLoopSync() {\n  for (; null !== workInProgress; ) performUnitOfWork(workInProgress);\n}\nfunction renderRootConcurrent(root, lanes) {\n  var prevExecutionContext = executionContext;\n  executionContext |= 2;\n  var prevDispatcher = pushDispatcher(),\n    prevAsyncDispatcher = pushAsyncDispatcher();\n  workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes\n    ? ((workInProgressTransitions = null),\n      (workInProgressRootRenderTargetTime = now() + 500),\n      prepareFreshStack(root, lanes))\n    : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(\n        root,\n        lanes\n      ));\n  a: do\n    try {\n      if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n        lanes = workInProgress;\n        var thrownValue = workInProgressThrownValue;\n        b: switch (workInProgressSuspendedReason) {\n          case 1:\n            workInProgressSuspendedReason = 0;\n            workInProgressThrownValue = null;\n            throwAndUnwindWorkLoop(root, lanes, thrownValue, 1);\n            break;\n          case 2:\n          case 9:\n            if (isThenableResolved(thrownValue)) {\n              workInProgressSuspendedReason = 0;\n              workInProgressThrownValue = null;\n              replaySuspendedUnitOfWork(lanes);\n              break;\n            }\n            lanes = function () {\n              (2 !== workInProgressSuspendedReason &&\n                9 !== workInProgressSuspendedReason) ||\n                workInProgressRoot !== root ||\n                (workInProgressSuspendedReason = 7);\n              ensureRootIsScheduled(root);\n            };\n            thrownValue.then(lanes, lanes);\n            break a;\n          case 3:\n            workInProgressSuspendedReason = 7;\n            break a;\n          case 4:\n            workInProgressSuspendedReason = 5;\n            break a;\n          case 7:\n            isThenableResolved(thrownValue)\n              ? ((workInProgressSuspendedReason = 0),\n                (workInProgressThrownValue = null),\n                replaySuspendedUnitOfWork(lanes))\n              : ((workInProgressSuspendedReason = 0),\n                (workInProgressThrownValue = null),\n                throwAndUnwindWorkLoop(root, lanes, thrownValue, 7));\n            break;\n          case 5:\n            var resource = null;\n            switch (workInProgress.tag) {\n              case 26:\n                resource = workInProgress.memoizedState;\n              case 5:\n              case 27:\n                var hostFiber = workInProgress;\n                if (\n                  resource\n                    ? preloadResource(resource)\n                    : hostFiber.stateNode.complete\n                ) {\n                  workInProgressSuspendedReason = 0;\n                  workInProgressThrownValue = null;\n                  var sibling = hostFiber.sibling;\n                  if (null !== sibling) workInProgress = sibling;\n                  else {\n                    var returnFiber = hostFiber.return;\n                    null !== returnFiber\n                      ? ((workInProgress = returnFiber),\n                        completeUnitOfWork(returnFiber))\n                      : (workInProgress = null);\n                  }\n                  break b;\n                }\n            }\n            workInProgressSuspendedReason = 0;\n            workInProgressThrownValue = null;\n            throwAndUnwindWorkLoop(root, lanes, thrownValue, 5);\n            break;\n          case 6:\n            workInProgressSuspendedReason = 0;\n            workInProgressThrownValue = null;\n            throwAndUnwindWorkLoop(root, lanes, thrownValue, 6);\n            break;\n          case 8:\n            resetWorkInProgressStack();\n            workInProgressRootExitStatus = 6;\n            break a;\n          default:\n            throw Error(formatProdErrorMessage(462));\n        }\n      }\n      workLoopConcurrentByScheduler();\n      break;\n    } catch (thrownValue$186) {\n      handleThrow(root, thrownValue$186);\n    }\n  while (1);\n  lastContextDependency = currentlyRenderingFiber$1 = null;\n  ReactSharedInternals.H = prevDispatcher;\n  ReactSharedInternals.A = prevAsyncDispatcher;\n  executionContext = prevExecutionContext;\n  if (null !== workInProgress) return 0;\n  workInProgressRoot = null;\n  workInProgressRootRenderLanes = 0;\n  finishQueueingConcurrentUpdates();\n  return workInProgressRootExitStatus;\n}\nfunction workLoopConcurrentByScheduler() {\n  for (; null !== workInProgress && !shouldYield(); )\n    performUnitOfWork(workInProgress);\n}\nfunction performUnitOfWork(unitOfWork) {\n  var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);\n  unitOfWork.memoizedProps = unitOfWork.pendingProps;\n  null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction replaySuspendedUnitOfWork(unitOfWork) {\n  var next = unitOfWork;\n  var current = next.alternate;\n  switch (next.tag) {\n    case 15:\n    case 0:\n      next = replayFunctionComponent(\n        current,\n        next,\n        next.pendingProps,\n        next.type,\n        void 0,\n        workInProgressRootRenderLanes\n      );\n      break;\n    case 11:\n      next = replayFunctionComponent(\n        current,\n        next,\n        next.pendingProps,\n        next.type.render,\n        next.ref,\n        workInProgressRootRenderLanes\n      );\n      break;\n    case 5:\n      resetHooksOnUnwind(next);\n      var fiber = next;\n      fiber === hydrationParentFiber &&\n        (isHydrating\n          ? (popToNextHostParent(fiber),\n            5 === fiber.tag &&\n              null != fiber.stateNode &&\n              (nextHydratableInstance = fiber.stateNode))\n          : (popToNextHostParent(fiber), (isHydrating = !0)));\n    default:\n      unwindInterruptedWork(current, next),\n        (next = workInProgress =\n          resetWorkInProgress(next, entangledRenderLanes)),\n        (next = beginWork(current, next, entangledRenderLanes));\n  }\n  unitOfWork.memoizedProps = unitOfWork.pendingProps;\n  null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction throwAndUnwindWorkLoop(\n  root,\n  unitOfWork,\n  thrownValue,\n  suspendedReason\n) {\n  lastContextDependency = currentlyRenderingFiber$1 = null;\n  resetHooksOnUnwind(unitOfWork);\n  thenableState$1 = null;\n  thenableIndexCounter$1 = 0;\n  var returnFiber = unitOfWork.return;\n  try {\n    if (\n      throwException(\n        root,\n        returnFiber,\n        unitOfWork,\n        thrownValue,\n        workInProgressRootRenderLanes\n      )\n    ) {\n      workInProgressRootExitStatus = 1;\n      logUncaughtError(\n        root,\n        createCapturedValueAtFiber(thrownValue, root.current)\n      );\n      workInProgress = null;\n      return;\n    }\n  } catch (error) {\n    if (null !== returnFiber) throw ((workInProgress = returnFiber), error);\n    workInProgressRootExitStatus = 1;\n    logUncaughtError(\n      root,\n      createCapturedValueAtFiber(thrownValue, root.current)\n    );\n    workInProgress = null;\n    return;\n  }\n  if (unitOfWork.flags & 32768) {\n    if (isHydrating || 1 === suspendedReason) root = !0;\n    else if (\n      workInProgressRootIsPrerendering ||\n      0 !== (workInProgressRootRenderLanes & 536870912)\n    )\n      root = !1;\n    else if (\n      ((workInProgressRootDidSkipSuspendedSiblings = root = !0),\n      2 === suspendedReason ||\n        9 === suspendedReason ||\n        3 === suspendedReason ||\n        6 === suspendedReason)\n    )\n      (suspendedReason = suspenseHandlerStackCursor.current),\n        null !== suspendedReason &&\n          13 === suspendedReason.tag &&\n          (suspendedReason.flags |= 16384);\n    unwindUnitOfWork(unitOfWork, root);\n  } else completeUnitOfWork(unitOfWork);\n}\nfunction completeUnitOfWork(unitOfWork) {\n  var completedWork = unitOfWork;\n  do {\n    if (0 !== (completedWork.flags & 32768)) {\n      unwindUnitOfWork(\n        completedWork,\n        workInProgressRootDidSkipSuspendedSiblings\n      );\n      return;\n    }\n    unitOfWork = completedWork.return;\n    var next = completeWork(\n      completedWork.alternate,\n      completedWork,\n      entangledRenderLanes\n    );\n    if (null !== next) {\n      workInProgress = next;\n      return;\n    }\n    completedWork = completedWork.sibling;\n    if (null !== completedWork) {\n      workInProgress = completedWork;\n      return;\n    }\n    workInProgress = completedWork = unitOfWork;\n  } while (null !== completedWork);\n  0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);\n}\nfunction unwindUnitOfWork(unitOfWork, skipSiblings) {\n  do {\n    var next = unwindWork(unitOfWork.alternate, unitOfWork);\n    if (null !== next) {\n      next.flags &= 32767;\n      workInProgress = next;\n      return;\n    }\n    next = unitOfWork.return;\n    null !== next &&\n      ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null));\n    if (\n      !skipSiblings &&\n      ((unitOfWork = unitOfWork.sibling), null !== unitOfWork)\n    ) {\n      workInProgress = unitOfWork;\n      return;\n    }\n    workInProgress = unitOfWork = next;\n  } while (null !== unitOfWork);\n  workInProgressRootExitStatus = 6;\n  workInProgress = null;\n}\nfunction completeRoot(\n  root,\n  finishedWork,\n  lanes,\n  recoverableErrors,\n  transitions,\n  didIncludeRenderPhaseUpdate,\n  spawnedLane,\n  updatedLanes,\n  suspendedRetryLanes,\n  didSkipSuspendedSiblings,\n  exitStatus,\n  suspendedState\n) {\n  root.cancelPendingCommit = null;\n  do flushPendingEffects();\n  while (0 !== pendingEffectsStatus);\n  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n  if (null !== finishedWork) {\n    if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));\n    root === workInProgressRoot &&\n      ((workInProgress = workInProgressRoot = null),\n      (workInProgressRootRenderLanes = 0));\n    pendingFinishedWork = finishedWork;\n    pendingEffectsRoot = root;\n    pendingEffectsLanes = lanes;\n    pendingPassiveTransitions = transitions;\n    pendingRecoverableErrors = recoverableErrors;\n    commitRoot(\n      root,\n      finishedWork,\n      lanes,\n      spawnedLane,\n      updatedLanes,\n      suspendedRetryLanes,\n      suspendedState\n    );\n  }\n}\nfunction commitRoot(\n  root,\n  finishedWork,\n  lanes,\n  spawnedLane,\n  updatedLanes,\n  suspendedRetryLanes,\n  suspendedState\n) {\n  var remainingLanes = finishedWork.lanes | finishedWork.childLanes;\n  pendingEffectsRemainingLanes = remainingLanes;\n  remainingLanes |= concurrentlyUpdatedLanes;\n  markRootFinished(\n    root,\n    lanes,\n    remainingLanes,\n    spawnedLane,\n    updatedLanes,\n    suspendedRetryLanes\n  );\n  pendingViewTransitionEvents = null;\n  (lanes & 335544064) === lanes\n    ? ((pendingTransitionTypes = claimQueuedTransitionTypes(root)),\n      (spawnedLane = 10262))\n    : ((pendingTransitionTypes = null), (spawnedLane = 10256));\n  0 !== (finishedWork.subtreeFlags & spawnedLane) ||\n  0 !== (finishedWork.flags & spawnedLane)\n    ? ((root.callbackNode = null),\n      (root.callbackPriority = 0),\n      scheduleCallback$1(NormalPriority$1, function () {\n        flushPassiveEffects();\n        return null;\n      }))\n    : ((root.callbackNode = null), (root.callbackPriority = 0));\n  shouldStartViewTransition = !1;\n  spawnedLane = 0 !== (finishedWork.flags & 13878);\n  if (0 !== (finishedWork.subtreeFlags & 13878) || spawnedLane) {\n    spawnedLane = ReactSharedInternals.T;\n    ReactSharedInternals.T = null;\n    updatedLanes = ReactDOMSharedInternals.p;\n    ReactDOMSharedInternals.p = 2;\n    suspendedRetryLanes = executionContext;\n    executionContext |= 4;\n    try {\n      commitBeforeMutationEffects(root, finishedWork, lanes);\n    } finally {\n      (executionContext = suspendedRetryLanes),\n        (ReactDOMSharedInternals.p = updatedLanes),\n        (ReactSharedInternals.T = spawnedLane);\n    }\n  }\n  pendingEffectsStatus = 1;\n  shouldStartViewTransition\n    ? (pendingViewTransition = startViewTransition(\n        suspendedState,\n        root.containerInfo,\n        pendingTransitionTypes,\n        flushMutationEffects,\n        flushLayoutEffects,\n        flushAfterMutationEffects,\n        flushSpawnedWork,\n        flushPassiveEffects,\n        reportViewTransitionError,\n        null,\n        null\n      ))\n    : (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());\n}\nfunction reportViewTransitionError(error) {\n  if (0 !== pendingEffectsStatus) {\n    var onRecoverableError = pendingEffectsRoot.onRecoverableError;\n    onRecoverableError(error, { componentStack: null });\n  }\n}\nfunction flushAfterMutationEffects() {\n  3 === pendingEffectsStatus &&\n    ((pendingEffectsStatus = 0),\n    commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot),\n    (pendingEffectsStatus = 4));\n}\nfunction flushMutationEffects() {\n  if (1 === pendingEffectsStatus) {\n    pendingEffectsStatus = 0;\n    var root = pendingEffectsRoot,\n      finishedWork = pendingFinishedWork,\n      lanes = pendingEffectsLanes,\n      rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);\n    if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {\n      rootMutationHasEffect = ReactSharedInternals.T;\n      ReactSharedInternals.T = null;\n      var previousPriority = ReactDOMSharedInternals.p;\n      ReactDOMSharedInternals.p = 2;\n      var prevExecutionContext = executionContext;\n      executionContext |= 4;\n      try {\n        inUpdateViewTransition = rootViewTransitionAffected = !1;\n        commitMutationEffectsOnFiber(finishedWork, root, lanes);\n        lanes = selectionInformation;\n        var curFocusedElem = getActiveElementDeep(root.containerInfo),\n          priorFocusedElem = lanes.focusedElem,\n          priorSelectionRange = lanes.selectionRange;\n        if (\n          curFocusedElem !== priorFocusedElem &&\n          priorFocusedElem &&\n          priorFocusedElem.ownerDocument &&\n          containsNode(\n            priorFocusedElem.ownerDocument.documentElement,\n            priorFocusedElem\n          )\n        ) {\n          if (\n            null !== priorSelectionRange &&\n            hasSelectionCapabilities(priorFocusedElem)\n          ) {\n            var start = priorSelectionRange.start,\n              end = priorSelectionRange.end;\n            void 0 === end && (end = start);\n            if (\"selectionStart\" in priorFocusedElem)\n              (priorFocusedElem.selectionStart = start),\n                (priorFocusedElem.selectionEnd = Math.min(\n                  end,\n                  priorFocusedElem.value.length\n                ));\n            else {\n              var doc = priorFocusedElem.ownerDocument || document,\n                win = (doc && doc.defaultView) || window;\n              if (win.getSelection) {\n                var selection = win.getSelection(),\n                  length = priorFocusedElem.textContent.length,\n                  start$jscomp$0 = Math.min(priorSelectionRange.start, length),\n                  end$jscomp$0 =\n                    void 0 === priorSelectionRange.end\n                      ? start$jscomp$0\n                      : Math.min(priorSelectionRange.end, length);\n                !selection.extend &&\n                  start$jscomp$0 > end$jscomp$0 &&\n                  ((curFocusedElem = end$jscomp$0),\n                  (end$jscomp$0 = start$jscomp$0),\n                  (start$jscomp$0 = curFocusedElem));\n                var startMarker = getNodeForCharacterOffset(\n                    priorFocusedElem,\n                    start$jscomp$0\n                  ),\n                  endMarker = getNodeForCharacterOffset(\n                    priorFocusedElem,\n                    end$jscomp$0\n                  );\n                if (\n                  startMarker &&\n                  endMarker &&\n                  (1 !== selection.rangeCount ||\n                    selection.anchorNode !== startMarker.node ||\n                    selection.anchorOffset !== startMarker.offset ||\n                    selection.focusNode !== endMarker.node ||\n                    selection.focusOffset !== endMarker.offset)\n                ) {\n                  var range = doc.createRange();\n                  range.setStart(startMarker.node, startMarker.offset);\n                  selection.removeAllRanges();\n                  start$jscomp$0 > end$jscomp$0\n                    ? (selection.addRange(range),\n                      selection.extend(endMarker.node, endMarker.offset))\n                    : (range.setEnd(endMarker.node, endMarker.offset),\n                      selection.addRange(range));\n                }\n              }\n            }\n          }\n          doc = [];\n          for (\n            selection = priorFocusedElem;\n            (selection = selection.parentNode);\n\n          )\n            1 === selection.nodeType &&\n              doc.push({\n                element: selection,\n                left: selection.scrollLeft,\n                top: selection.scrollTop\n              });\n          \"function\" === typeof priorFocusedElem.focus &&\n            priorFocusedElem.focus();\n          for (\n            priorFocusedElem = 0;\n            priorFocusedElem < doc.length;\n            priorFocusedElem++\n          ) {\n            var info = doc[priorFocusedElem];\n            info.element.scrollLeft = info.left;\n            info.element.scrollTop = info.top;\n          }\n        }\n        _enabled = !!eventsEnabled;\n        selectionInformation = eventsEnabled = null;\n      } finally {\n        (executionContext = prevExecutionContext),\n          (ReactDOMSharedInternals.p = previousPriority),\n          (ReactSharedInternals.T = rootMutationHasEffect);\n      }\n    }\n    root.current = finishedWork;\n    pendingEffectsStatus = 2;\n  }\n}\nfunction flushLayoutEffects() {\n  if (2 === pendingEffectsStatus) {\n    pendingEffectsStatus = 0;\n    var root = pendingEffectsRoot,\n      finishedWork = pendingFinishedWork,\n      rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);\n    if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {\n      rootHasLayoutEffect = ReactSharedInternals.T;\n      ReactSharedInternals.T = null;\n      var previousPriority = ReactDOMSharedInternals.p;\n      ReactDOMSharedInternals.p = 2;\n      var prevExecutionContext = executionContext;\n      executionContext |= 4;\n      try {\n        commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);\n      } finally {\n        (executionContext = prevExecutionContext),\n          (ReactDOMSharedInternals.p = previousPriority),\n          (ReactSharedInternals.T = rootHasLayoutEffect);\n      }\n    }\n    pendingEffectsStatus = 3;\n  }\n}\nfunction flushSpawnedWork() {\n  if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {\n    pendingEffectsStatus = 0;\n    var committedViewTransition = pendingViewTransition;\n    pendingViewTransition = null;\n    requestPaint();\n    var root = pendingEffectsRoot,\n      finishedWork = pendingFinishedWork,\n      lanes = pendingEffectsLanes,\n      recoverableErrors = pendingRecoverableErrors,\n      passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;\n    0 !== (finishedWork.subtreeFlags & passiveSubtreeMask) ||\n    0 !== (finishedWork.flags & passiveSubtreeMask)\n      ? (pendingEffectsStatus = 5)\n      : ((pendingEffectsStatus = 0),\n        (pendingFinishedWork = pendingEffectsRoot = null),\n        releaseRootPooledCache(root, root.pendingLanes));\n    passiveSubtreeMask = root.pendingLanes;\n    0 === passiveSubtreeMask && (legacyErrorBoundariesThatAlreadyFailed = null);\n    lanesToEventPriority(lanes);\n    finishedWork = finishedWork.stateNode;\n    if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberRoot)\n      try {\n        injectedHook.onCommitFiberRoot(\n          rendererID,\n          finishedWork,\n          void 0,\n          128 === (finishedWork.current.flags & 128)\n        );\n      } catch (err) {}\n    if (null !== recoverableErrors) {\n      finishedWork = ReactSharedInternals.T;\n      passiveSubtreeMask = ReactDOMSharedInternals.p;\n      ReactDOMSharedInternals.p = 2;\n      ReactSharedInternals.T = null;\n      try {\n        for (\n          var onRecoverableError = root.onRecoverableError, i = 0;\n          i < recoverableErrors.length;\n          i++\n        ) {\n          var recoverableError = recoverableErrors[i];\n          onRecoverableError(recoverableError.value, {\n            componentStack: recoverableError.stack\n          });\n        }\n      } finally {\n        (ReactSharedInternals.T = finishedWork),\n          (ReactDOMSharedInternals.p = passiveSubtreeMask);\n      }\n    }\n    recoverableErrors = pendingViewTransitionEvents;\n    onRecoverableError = pendingTransitionTypes;\n    pendingTransitionTypes = null;\n    if (\n      null !== recoverableErrors &&\n      ((pendingViewTransitionEvents = null),\n      null === onRecoverableError && (onRecoverableError = []),\n      null !== committedViewTransition)\n    )\n      for (\n        recoverableError = 0;\n        recoverableError < recoverableErrors.length;\n        recoverableError++\n      )\n        (finishedWork = (0, recoverableErrors[recoverableError])(\n          onRecoverableError\n        )),\n          void 0 !== finishedWork &&\n            committedViewTransition.finished.finally(finishedWork);\n    0 !== (pendingEffectsLanes & 3) && flushPendingEffects();\n    ensureRootIsScheduled(root);\n    passiveSubtreeMask = root.pendingLanes;\n    0 !== (lanes & 261930) && 0 !== (passiveSubtreeMask & 42)\n      ? root === rootWithNestedUpdates\n        ? nestedUpdateCount++\n        : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))\n      : ((nestedUpdateCount = 0), (rootWithNestedUpdates = null));\n    flushSyncWorkAcrossRoots_impl(0, !1);\n  }\n}\nfunction releaseRootPooledCache(root, remainingLanes) {\n  0 === (root.pooledCacheLanes &= remainingLanes) &&\n    ((remainingLanes = root.pooledCache),\n    null != remainingLanes &&\n      ((root.pooledCache = null), releaseCache(remainingLanes)));\n}\nfunction flushPendingEffects() {\n  null !== pendingViewTransition &&\n    (pendingViewTransition.skipTransition(), (pendingViewTransition = null));\n  flushMutationEffects();\n  flushLayoutEffects();\n  flushSpawnedWork();\n  return flushPassiveEffects();\n}\nfunction flushPassiveEffects() {\n  if (5 !== pendingEffectsStatus) return !1;\n  var root = pendingEffectsRoot,\n    remainingLanes = pendingEffectsRemainingLanes;\n  pendingEffectsRemainingLanes = 0;\n  var renderPriority = lanesToEventPriority(pendingEffectsLanes),\n    prevTransition = ReactSharedInternals.T,\n    previousPriority = ReactDOMSharedInternals.p;\n  try {\n    ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority;\n    ReactSharedInternals.T = null;\n    renderPriority = pendingPassiveTransitions;\n    pendingPassiveTransitions = null;\n    var root$jscomp$0 = pendingEffectsRoot,\n      lanes = pendingEffectsLanes;\n    pendingEffectsStatus = 0;\n    pendingFinishedWork = pendingEffectsRoot = null;\n    pendingEffectsLanes = 0;\n    if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));\n    var prevExecutionContext = executionContext;\n    executionContext |= 4;\n    commitPassiveUnmountOnFiber(root$jscomp$0.current);\n    commitPassiveMountOnFiber(\n      root$jscomp$0,\n      root$jscomp$0.current,\n      lanes,\n      renderPriority\n    );\n    executionContext = prevExecutionContext;\n    flushSyncWorkAcrossRoots_impl(0, !1);\n    if (\n      injectedHook &&\n      \"function\" === typeof injectedHook.onPostCommitFiberRoot\n    )\n      try {\n        injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);\n      } catch (err) {}\n    return !0;\n  } finally {\n    (ReactDOMSharedInternals.p = previousPriority),\n      (ReactSharedInternals.T = prevTransition),\n      releaseRootPooledCache(root, remainingLanes);\n  }\n}\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n  sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n  sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);\n  rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);\n  null !== rootFiber &&\n    (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));\n}\nfunction captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {\n  if (3 === sourceFiber.tag)\n    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n  else\n    for (; null !== nearestMountedAncestor; ) {\n      if (3 === nearestMountedAncestor.tag) {\n        captureCommitPhaseErrorOnRoot(\n          nearestMountedAncestor,\n          sourceFiber,\n          error\n        );\n        break;\n      } else if (1 === nearestMountedAncestor.tag) {\n        var instance = nearestMountedAncestor.stateNode;\n        if (\n          \"function\" ===\n            typeof nearestMountedAncestor.type.getDerivedStateFromError ||\n          (\"function\" === typeof instance.componentDidCatch &&\n            (null === legacyErrorBoundariesThatAlreadyFailed ||\n              !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n        ) {\n          sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n          error = createClassErrorUpdate(2);\n          instance = enqueueUpdate(nearestMountedAncestor, error, 2);\n          null !== instance &&\n            (initializeClassErrorUpdate(\n              error,\n              instance,\n              nearestMountedAncestor,\n              sourceFiber\n            ),\n            markRootUpdated$1(instance, 2),\n            ensureRootIsScheduled(instance));\n          break;\n        }\n      }\n      nearestMountedAncestor = nearestMountedAncestor.return;\n    }\n}\nfunction attachPingListener(root, wakeable, lanes) {\n  var pingCache = root.pingCache;\n  if (null === pingCache) {\n    pingCache = root.pingCache = new PossiblyWeakMap();\n    var threadIDs = new Set();\n    pingCache.set(wakeable, threadIDs);\n  } else\n    (threadIDs = pingCache.get(wakeable)),\n      void 0 === threadIDs &&\n        ((threadIDs = new Set()), pingCache.set(wakeable, threadIDs));\n  threadIDs.has(lanes) ||\n    ((workInProgressRootDidAttachPingListener = !0),\n    threadIDs.add(lanes),\n    (root = pingSuspendedRoot.bind(null, root, wakeable, lanes)),\n    wakeable.then(root, root));\n}\nfunction pingSuspendedRoot(root, wakeable, pingedLanes) {\n  var pingCache = root.pingCache;\n  null !== pingCache && pingCache.delete(wakeable);\n  root.pingedLanes |= root.suspendedLanes & pingedLanes;\n  root.warmLanes &= ~pingedLanes;\n  workInProgressRoot === root &&\n    (workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&\n    (4 === workInProgressRootExitStatus ||\n    (3 === workInProgressRootExitStatus &&\n      (workInProgressRootRenderLanes & 62914560) ===\n        workInProgressRootRenderLanes &&\n      300 > now() - globalMostRecentFallbackTime)\n      ? 0 === (executionContext & 2)\n        ? prepareFreshStack(root, 0)\n        : (workInProgressRootPingedLanes |= pingedLanes)\n      : (workInProgressRootPingedLanes |= pingedLanes),\n    workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes &&\n      (workInProgressSuspendedRetryLanes = 0));\n  ensureRootIsScheduled(root);\n}\nfunction retryTimedOutBoundary(boundaryFiber, retryLane) {\n  0 === retryLane && (retryLane = claimNextRetryLane());\n  boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);\n  null !== boundaryFiber &&\n    (markRootUpdated$1(boundaryFiber, retryLane),\n    ensureRootIsScheduled(boundaryFiber));\n}\nfunction retryDehydratedSuspenseBoundary(boundaryFiber) {\n  var suspenseState = boundaryFiber.memoizedState,\n    retryLane = 0;\n  null !== suspenseState && (retryLane = suspenseState.retryLane);\n  retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction resolveRetryWakeable(boundaryFiber, wakeable) {\n  var retryLane = 0;\n  switch (boundaryFiber.tag) {\n    case 31:\n    case 13:\n      var retryCache = boundaryFiber.stateNode;\n      var suspenseState = boundaryFiber.memoizedState;\n      null !== suspenseState && (retryLane = suspenseState.retryLane);\n      break;\n    case 19:\n      retryCache = boundaryFiber.stateNode;\n      break;\n    case 22:\n      retryCache = boundaryFiber.stateNode._retryCache;\n      break;\n    default:\n      throw Error(formatProdErrorMessage(314));\n  }\n  null !== retryCache && retryCache.delete(wakeable);\n  retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction scheduleCallback$1(priorityLevel, callback) {\n  return scheduleCallback$3(priorityLevel, callback);\n}\nvar firstScheduledRoot = null,\n  lastScheduledRoot = null,\n  didScheduleMicrotask = !1,\n  mightHavePendingSyncWork = !1,\n  isFlushingWork = !1,\n  currentEventTransitionLane = 0;\nfunction ensureRootIsScheduled(root) {\n  root !== lastScheduledRoot &&\n    null === root.next &&\n    (null === lastScheduledRoot\n      ? (firstScheduledRoot = lastScheduledRoot = root)\n      : (lastScheduledRoot = lastScheduledRoot.next = root));\n  mightHavePendingSyncWork = !0;\n  didScheduleMicrotask ||\n    ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());\n}\nfunction flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {\n  if (!isFlushingWork && mightHavePendingSyncWork) {\n    isFlushingWork = !0;\n    do {\n      var didPerformSomeWork = !1;\n      for (var root$190 = firstScheduledRoot; null !== root$190; ) {\n        if (!onlyLegacy)\n          if (0 !== syncTransitionLanes) {\n            var pendingLanes = root$190.pendingLanes;\n            if (0 === pendingLanes) var JSCompiler_inline_result = 0;\n            else {\n              var suspendedLanes = root$190.suspendedLanes,\n                pingedLanes = root$190.pingedLanes;\n              JSCompiler_inline_result =\n                (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;\n              JSCompiler_inline_result &=\n                pendingLanes & ~(suspendedLanes & ~pingedLanes);\n              JSCompiler_inline_result =\n                JSCompiler_inline_result & 201326741\n                  ? (JSCompiler_inline_result & 201326741) | 1\n                  : JSCompiler_inline_result\n                    ? JSCompiler_inline_result | 2\n                    : 0;\n            }\n            0 !== JSCompiler_inline_result &&\n              ((didPerformSomeWork = !0),\n              performSyncWorkOnRoot(root$190, JSCompiler_inline_result));\n          } else\n            (JSCompiler_inline_result = workInProgressRootRenderLanes),\n              (JSCompiler_inline_result = getNextLanes(\n                root$190,\n                root$190 === workInProgressRoot ? JSCompiler_inline_result : 0,\n                null !== root$190.cancelPendingCommit ||\n                  -1 !== root$190.timeoutHandle\n              )),\n              0 === (JSCompiler_inline_result & 3) ||\n                checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) ||\n                ((didPerformSomeWork = !0),\n                performSyncWorkOnRoot(root$190, JSCompiler_inline_result));\n        root$190 = root$190.next;\n      }\n    } while (didPerformSomeWork);\n    isFlushingWork = !1;\n  }\n}\nfunction processRootScheduleInImmediateTask() {\n  processRootScheduleInMicrotask();\n}\nfunction processRootScheduleInMicrotask() {\n  mightHavePendingSyncWork = didScheduleMicrotask = !1;\n  var syncTransitionLanes = 0;\n  0 !== currentEventTransitionLane &&\n    shouldAttemptEagerTransition() &&\n    (syncTransitionLanes = currentEventTransitionLane);\n  for (\n    var currentTime = now(), prev = null, root = firstScheduledRoot;\n    null !== root;\n\n  ) {\n    var next = root.next,\n      nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime);\n    if (0 === nextLanes)\n      (root.next = null),\n        null === prev ? (firstScheduledRoot = next) : (prev.next = next),\n        null === next && (lastScheduledRoot = prev);\n    else if (\n      ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))\n    )\n      mightHavePendingSyncWork = !0;\n    root = next;\n  }\n  (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus) ||\n    flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);\n  0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);\n}\nfunction scheduleTaskForRootDuringMicrotask(root, currentTime) {\n  for (\n    var suspendedLanes = root.suspendedLanes,\n      pingedLanes = root.pingedLanes,\n      expirationTimes = root.expirationTimes,\n      lanes = root.pendingLanes & -62914561;\n    0 < lanes;\n\n  ) {\n    var index$5 = 31 - clz32(lanes),\n      lane = 1 << index$5,\n      expirationTime = expirationTimes[index$5];\n    if (-1 === expirationTime) {\n      if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))\n        expirationTimes[index$5] = computeExpirationTime(lane, currentTime);\n    } else expirationTime <= currentTime && (root.expiredLanes |= lane);\n    lanes &= ~lane;\n  }\n  currentTime = workInProgressRoot;\n  suspendedLanes = workInProgressRootRenderLanes;\n  suspendedLanes = getNextLanes(\n    root,\n    root === currentTime ? suspendedLanes : 0,\n    null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n  );\n  pingedLanes = root.callbackNode;\n  if (\n    0 === suspendedLanes ||\n    (root === currentTime &&\n      (2 === workInProgressSuspendedReason ||\n        9 === workInProgressSuspendedReason)) ||\n    null !== root.cancelPendingCommit\n  )\n    return (\n      null !== pingedLanes &&\n        null !== pingedLanes &&\n        cancelCallback$1(pingedLanes),\n      (root.callbackNode = null),\n      (root.callbackPriority = 0)\n    );\n  if (\n    0 === (suspendedLanes & 3) ||\n    checkIfRootIsPrerendering(root, suspendedLanes)\n  ) {\n    currentTime = suspendedLanes & -suspendedLanes;\n    if (currentTime === root.callbackPriority) return currentTime;\n    null !== pingedLanes && cancelCallback$1(pingedLanes);\n    switch (lanesToEventPriority(suspendedLanes)) {\n      case 2:\n      case 8:\n        suspendedLanes = UserBlockingPriority;\n        break;\n      case 32:\n        suspendedLanes = NormalPriority$1;\n        break;\n      case 268435456:\n        suspendedLanes = IdlePriority;\n        break;\n      default:\n        suspendedLanes = NormalPriority$1;\n    }\n    pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);\n    suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);\n    root.callbackPriority = currentTime;\n    root.callbackNode = suspendedLanes;\n    return currentTime;\n  }\n  null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);\n  root.callbackPriority = 2;\n  root.callbackNode = null;\n  return 2;\n}\nfunction performWorkOnRootViaSchedulerTask(root, didTimeout) {\n  if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus)\n    return (root.callbackNode = null), (root.callbackPriority = 0), null;\n  var originalCallbackNode = root.callbackNode;\n  if (flushPendingEffects() && root.callbackNode !== originalCallbackNode)\n    return null;\n  var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;\n  workInProgressRootRenderLanes$jscomp$0 = getNextLanes(\n    root,\n    root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,\n    null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n  );\n  if (0 === workInProgressRootRenderLanes$jscomp$0) return null;\n  performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);\n  scheduleTaskForRootDuringMicrotask(root, now());\n  return null != root.callbackNode && root.callbackNode === originalCallbackNode\n    ? performWorkOnRootViaSchedulerTask.bind(null, root)\n    : null;\n}\nfunction performSyncWorkOnRoot(root, lanes) {\n  if (flushPendingEffects()) return null;\n  performWorkOnRoot(root, lanes, !0);\n}\nfunction scheduleImmediateRootScheduleTask() {\n  scheduleMicrotask(function () {\n    0 !== (executionContext & 6)\n      ? scheduleCallback$3(\n          ImmediatePriority,\n          processRootScheduleInImmediateTask\n        )\n      : processRootScheduleInMicrotask();\n  });\n}\nfunction requestTransitionLane() {\n  if (0 === currentEventTransitionLane) {\n    var actionScopeLane = currentEntangledLane;\n    0 === actionScopeLane &&\n      ((actionScopeLane = nextTransitionUpdateLane),\n      (nextTransitionUpdateLane <<= 1),\n      0 === (nextTransitionUpdateLane & 261888) &&\n        (nextTransitionUpdateLane = 256));\n    currentEventTransitionLane = actionScopeLane;\n  }\n  return currentEventTransitionLane;\n}\nfunction coerceFormActionProp(actionProp) {\n  return null == actionProp ||\n    \"symbol\" === typeof actionProp ||\n    \"boolean\" === typeof actionProp\n    ? null\n    : \"function\" === typeof actionProp\n      ? actionProp\n      : sanitizeURL(actionProp);\n}\nfunction extractEvents$1(\n  dispatchQueue,\n  domEventName,\n  maybeTargetInst,\n  nativeEvent,\n  nativeEventTarget\n) {\n  if (\n    \"submit\" === domEventName &&\n    maybeTargetInst &&\n    maybeTargetInst.stateNode === nativeEventTarget\n  ) {\n    var action = coerceFormActionProp(\n        (nativeEventTarget[internalPropsKey] || null).action\n      ),\n      submitter = nativeEvent.submitter;\n    submitter &&\n      ((domEventName = (domEventName = submitter[internalPropsKey] || null)\n        ? coerceFormActionProp(domEventName.formAction)\n        : submitter.getAttribute(\"formAction\")),\n      null !== domEventName && ((action = domEventName), (submitter = null)));\n    var event = new SyntheticEvent(\n      \"action\",\n      \"action\",\n      null,\n      nativeEvent,\n      nativeEventTarget\n    );\n    dispatchQueue.push({\n      event: event,\n      listeners: [\n        {\n          instance: null,\n          listener: function () {\n            if (nativeEvent.defaultPrevented) {\n              if (0 !== currentEventTransitionLane) {\n                var formData = new FormData(nativeEventTarget, submitter);\n                startHostTransition(\n                  maybeTargetInst,\n                  {\n                    pending: !0,\n                    data: formData,\n                    method: nativeEventTarget.method,\n                    action: action\n                  },\n                  null,\n                  formData\n                );\n              }\n            } else\n              \"function\" === typeof action &&\n                (event.preventDefault(),\n                (formData = new FormData(nativeEventTarget, submitter)),\n                startHostTransition(\n                  maybeTargetInst,\n                  {\n                    pending: !0,\n                    data: formData,\n                    method: nativeEventTarget.method,\n                    action: action\n                  },\n                  action,\n                  formData\n                ));\n          },\n          currentTarget: nativeEventTarget\n        }\n      ]\n    });\n  }\n}\nfor (\n  var i$jscomp$inline_1667 = 0;\n  i$jscomp$inline_1667 < simpleEventPluginEvents.length;\n  i$jscomp$inline_1667++\n) {\n  var eventName$jscomp$inline_1668 =\n      simpleEventPluginEvents[i$jscomp$inline_1667],\n    domEventName$jscomp$inline_1669 =\n      eventName$jscomp$inline_1668.toLowerCase(),\n    capitalizedEvent$jscomp$inline_1670 =\n      eventName$jscomp$inline_1668[0].toUpperCase() +\n      eventName$jscomp$inline_1668.slice(1);\n  registerSimpleEvent(\n    domEventName$jscomp$inline_1669,\n    \"on\" + capitalizedEvent$jscomp$inline_1670\n  );\n}\nregisterSimpleEvent(ANIMATION_END, \"onAnimationEnd\");\nregisterSimpleEvent(ANIMATION_ITERATION, \"onAnimationIteration\");\nregisterSimpleEvent(ANIMATION_START, \"onAnimationStart\");\nregisterSimpleEvent(\"dblclick\", \"onDoubleClick\");\nregisterSimpleEvent(\"focusin\", \"onFocus\");\nregisterSimpleEvent(\"focusout\", \"onBlur\");\nregisterSimpleEvent(TRANSITION_RUN, \"onTransitionRun\");\nregisterSimpleEvent(TRANSITION_START, \"onTransitionStart\");\nregisterSimpleEvent(TRANSITION_CANCEL, \"onTransitionCancel\");\nregisterSimpleEvent(TRANSITION_END, \"onTransitionEnd\");\nregisterDirectEvent(\"onMouseEnter\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onMouseLeave\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onPointerEnter\", [\"pointerout\", \"pointerover\"]);\nregisterDirectEvent(\"onPointerLeave\", [\"pointerout\", \"pointerover\"]);\nregisterTwoPhaseEvent(\n  \"onChange\",\n  \"change click focusin focusout input keydown keyup selectionchange\".split(\" \")\n);\nregisterTwoPhaseEvent(\n  \"onSelect\",\n  \"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\n    \" \"\n  )\n);\nregisterTwoPhaseEvent(\"onBeforeInput\", [\n  \"compositionend\",\n  \"keypress\",\n  \"textInput\",\n  \"paste\"\n]);\nregisterTwoPhaseEvent(\n  \"onCompositionEnd\",\n  \"compositionend focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n  \"onCompositionStart\",\n  \"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n  \"onCompositionUpdate\",\n  \"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \")\n);\nvar mediaEventTypes =\n    \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\n      \" \"\n    ),\n  nonDelegatedEvents = new Set(\n    \"beforetoggle cancel close invalid load scroll scrollend toggle\"\n      .split(\" \")\n      .concat(mediaEventTypes)\n  );\nfunction processDispatchQueue(dispatchQueue, eventSystemFlags) {\n  eventSystemFlags = 0 !== (eventSystemFlags & 4);\n  for (var i = 0; i < dispatchQueue.length; i++) {\n    var _dispatchQueue$i = dispatchQueue[i],\n      event = _dispatchQueue$i.event;\n    _dispatchQueue$i = _dispatchQueue$i.listeners;\n    a: {\n      var previousInstance = void 0;\n      if (eventSystemFlags)\n        for (\n          var i$jscomp$0 = _dispatchQueue$i.length - 1;\n          0 <= i$jscomp$0;\n          i$jscomp$0--\n        ) {\n          var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0],\n            instance = _dispatchListeners$i.instance,\n            currentTarget = _dispatchListeners$i.currentTarget;\n          _dispatchListeners$i = _dispatchListeners$i.listener;\n          if (instance !== previousInstance && event.isPropagationStopped())\n            break a;\n          previousInstance = _dispatchListeners$i;\n          event.currentTarget = currentTarget;\n          try {\n            previousInstance(event);\n          } catch (error) {\n            reportGlobalError(error);\n          }\n          event.currentTarget = null;\n          previousInstance = instance;\n        }\n      else\n        for (\n          i$jscomp$0 = 0;\n          i$jscomp$0 < _dispatchQueue$i.length;\n          i$jscomp$0++\n        ) {\n          _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0];\n          instance = _dispatchListeners$i.instance;\n          currentTarget = _dispatchListeners$i.currentTarget;\n          _dispatchListeners$i = _dispatchListeners$i.listener;\n          if (instance !== previousInstance && event.isPropagationStopped())\n            break a;\n          previousInstance = _dispatchListeners$i;\n          event.currentTarget = currentTarget;\n          try {\n            previousInstance(event);\n          } catch (error) {\n            reportGlobalError(error);\n          }\n          event.currentTarget = null;\n          previousInstance = instance;\n        }\n    }\n  }\n}\nfunction listenToNonDelegatedEvent(domEventName, targetElement) {\n  var JSCompiler_inline_result = targetElement[internalEventHandlersKey];\n  void 0 === JSCompiler_inline_result &&\n    (JSCompiler_inline_result = targetElement[internalEventHandlersKey] =\n      new Set());\n  var listenerSetKey = domEventName + \"__bubble\";\n  JSCompiler_inline_result.has(listenerSetKey) ||\n    (addTrappedEventListener(targetElement, domEventName, 2, !1),\n    JSCompiler_inline_result.add(listenerSetKey));\n}\nfunction listenToNativeEvent(domEventName, isCapturePhaseListener, target) {\n  var eventSystemFlags = 0;\n  isCapturePhaseListener && (eventSystemFlags |= 4);\n  addTrappedEventListener(\n    target,\n    domEventName,\n    eventSystemFlags,\n    isCapturePhaseListener\n  );\n}\nvar listeningMarker = \"_reactListening\" + Math.random().toString(36).slice(2);\nfunction listenToAllSupportedEvents(rootContainerElement) {\n  if (!rootContainerElement[listeningMarker]) {\n    rootContainerElement[listeningMarker] = !0;\n    allNativeEvents.forEach(function (domEventName) {\n      \"selectionchange\" !== domEventName &&\n        (nonDelegatedEvents.has(domEventName) ||\n          listenToNativeEvent(domEventName, !1, rootContainerElement),\n        listenToNativeEvent(domEventName, !0, rootContainerElement));\n    });\n    var ownerDocument =\n      9 === rootContainerElement.nodeType\n        ? rootContainerElement\n        : rootContainerElement.ownerDocument;\n    null === ownerDocument ||\n      ownerDocument[listeningMarker] ||\n      ((ownerDocument[listeningMarker] = !0),\n      listenToNativeEvent(\"selectionchange\", !1, ownerDocument));\n  }\n}\nfunction addTrappedEventListener(\n  targetContainer,\n  domEventName,\n  eventSystemFlags,\n  isCapturePhaseListener\n) {\n  switch (getEventPriority(domEventName)) {\n    case 2:\n      var listenerWrapper = dispatchDiscreteEvent;\n      break;\n    case 8:\n      listenerWrapper = dispatchContinuousEvent;\n      break;\n    default:\n      listenerWrapper = dispatchEvent;\n  }\n  eventSystemFlags = listenerWrapper.bind(\n    null,\n    domEventName,\n    eventSystemFlags,\n    targetContainer\n  );\n  listenerWrapper = void 0;\n  !passiveBrowserEventsSupported ||\n    (\"touchstart\" !== domEventName &&\n      \"touchmove\" !== domEventName &&\n      \"wheel\" !== domEventName) ||\n    (listenerWrapper = !0);\n  isCapturePhaseListener\n    ? void 0 !== listenerWrapper\n      ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n          capture: !0,\n          passive: listenerWrapper\n        })\n      : targetContainer.addEventListener(domEventName, eventSystemFlags, !0)\n    : void 0 !== listenerWrapper\n      ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n          passive: listenerWrapper\n        })\n      : targetContainer.addEventListener(domEventName, eventSystemFlags, !1);\n}\nfunction dispatchEventForPluginEventSystem(\n  domEventName,\n  eventSystemFlags,\n  nativeEvent,\n  targetInst$jscomp$0,\n  targetContainer\n) {\n  var ancestorInst = targetInst$jscomp$0;\n  if (\n    0 === (eventSystemFlags & 1) &&\n    0 === (eventSystemFlags & 2) &&\n    null !== targetInst$jscomp$0\n  )\n    a: for (;;) {\n      if (null === targetInst$jscomp$0) return;\n      var nodeTag = targetInst$jscomp$0.tag;\n      if (3 === nodeTag || 4 === nodeTag) {\n        var container = targetInst$jscomp$0.stateNode.containerInfo;\n        if (container === targetContainer) break;\n        if (4 === nodeTag)\n          for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {\n            var grandTag = nodeTag.tag;\n            if (\n              (3 === grandTag || 4 === grandTag) &&\n              nodeTag.stateNode.containerInfo === targetContainer\n            )\n              return;\n            nodeTag = nodeTag.return;\n          }\n        for (; null !== container; ) {\n          nodeTag = getClosestInstanceFromNode(container);\n          if (null === nodeTag) return;\n          grandTag = nodeTag.tag;\n          if (\n            5 === grandTag ||\n            6 === grandTag ||\n            26 === grandTag ||\n            27 === grandTag\n          ) {\n            targetInst$jscomp$0 = ancestorInst = nodeTag;\n            continue a;\n          }\n          container = container.parentNode;\n        }\n      }\n      targetInst$jscomp$0 = targetInst$jscomp$0.return;\n    }\n  batchedUpdates$1(function () {\n    var targetInst = ancestorInst,\n      nativeEventTarget = getEventTarget(nativeEvent),\n      dispatchQueue = [];\n    a: {\n      var reactName = topLevelEventsToReactNames.get(domEventName);\n      if (void 0 !== reactName) {\n        var SyntheticEventCtor = SyntheticEvent,\n          reactEventType = domEventName;\n        switch (domEventName) {\n          case \"keypress\":\n            if (0 === getEventCharCode(nativeEvent)) break a;\n          case \"keydown\":\n          case \"keyup\":\n            SyntheticEventCtor = SyntheticKeyboardEvent;\n            break;\n          case \"focusin\":\n            reactEventType = \"focus\";\n            SyntheticEventCtor = SyntheticFocusEvent;\n            break;\n          case \"focusout\":\n            reactEventType = \"blur\";\n            SyntheticEventCtor = SyntheticFocusEvent;\n            break;\n          case \"beforeblur\":\n          case \"afterblur\":\n            SyntheticEventCtor = SyntheticFocusEvent;\n            break;\n          case \"click\":\n            if (2 === nativeEvent.button) break a;\n          case \"auxclick\":\n          case \"dblclick\":\n          case \"mousedown\":\n          case \"mousemove\":\n          case \"mouseup\":\n          case \"mouseout\":\n          case \"mouseover\":\n          case \"contextmenu\":\n            SyntheticEventCtor = SyntheticMouseEvent;\n            break;\n          case \"drag\":\n          case \"dragend\":\n          case \"dragenter\":\n          case \"dragexit\":\n          case \"dragleave\":\n          case \"dragover\":\n          case \"dragstart\":\n          case \"drop\":\n            SyntheticEventCtor = SyntheticDragEvent;\n            break;\n          case \"touchcancel\":\n          case \"touchend\":\n          case \"touchmove\":\n          case \"touchstart\":\n            SyntheticEventCtor = SyntheticTouchEvent;\n            break;\n          case ANIMATION_END:\n          case ANIMATION_ITERATION:\n          case ANIMATION_START:\n            SyntheticEventCtor = SyntheticAnimationEvent;\n            break;\n          case TRANSITION_END:\n            SyntheticEventCtor = SyntheticTransitionEvent;\n            break;\n          case \"scroll\":\n          case \"scrollend\":\n            SyntheticEventCtor = SyntheticUIEvent;\n            break;\n          case \"wheel\":\n            SyntheticEventCtor = SyntheticWheelEvent;\n            break;\n          case \"copy\":\n          case \"cut\":\n          case \"paste\":\n            SyntheticEventCtor = SyntheticClipboardEvent;\n            break;\n          case \"gotpointercapture\":\n          case \"lostpointercapture\":\n          case \"pointercancel\":\n          case \"pointerdown\":\n          case \"pointermove\":\n          case \"pointerout\":\n          case \"pointerover\":\n          case \"pointerup\":\n            SyntheticEventCtor = SyntheticPointerEvent;\n            break;\n          case \"submit\":\n            SyntheticEventCtor = SyntheticSubmitEvent;\n            break;\n          case \"toggle\":\n          case \"beforetoggle\":\n            SyntheticEventCtor = SyntheticToggleEvent;\n        }\n        var inCapturePhase = 0 !== (eventSystemFlags & 4),\n          accumulateTargetOnly =\n            !inCapturePhase &&\n            (\"scroll\" === domEventName || \"scrollend\" === domEventName),\n          reactEventName = inCapturePhase\n            ? null !== reactName\n              ? reactName + \"Capture\"\n              : null\n            : reactName;\n        inCapturePhase = [];\n        for (\n          var instance = targetInst, lastHostComponent;\n          null !== instance;\n\n        ) {\n          var _instance = instance;\n          lastHostComponent = _instance.stateNode;\n          _instance = _instance.tag;\n          (5 !== _instance && 26 !== _instance && 27 !== _instance) ||\n            null === lastHostComponent ||\n            null === reactEventName ||\n            ((_instance = getListener(instance, reactEventName)),\n            null != _instance &&\n              inCapturePhase.push(\n                createDispatchListener(instance, _instance, lastHostComponent)\n              ));\n          if (accumulateTargetOnly) break;\n          instance = instance.return;\n        }\n        0 < inCapturePhase.length &&\n          ((reactName = new SyntheticEventCtor(\n            reactName,\n            reactEventType,\n            null,\n            nativeEvent,\n            nativeEventTarget\n          )),\n          dispatchQueue.push({ event: reactName, listeners: inCapturePhase }));\n      }\n    }\n    if (0 === (eventSystemFlags & 7)) {\n      a: {\n        SyntheticEventCtor =\n          \"mouseover\" === domEventName || \"pointerover\" === domEventName;\n        reactName =\n          \"mouseout\" === domEventName || \"pointerout\" === domEventName;\n        if (\n          SyntheticEventCtor &&\n          nativeEvent !== currentReplayingEvent &&\n          (reactEventType =\n            nativeEvent.relatedTarget || nativeEvent.fromElement) &&\n          (getClosestInstanceFromNode(reactEventType) ||\n            reactEventType[internalContainerInstanceKey])\n        )\n          break a;\n        if (reactName || SyntheticEventCtor) {\n          reactEventType =\n            nativeEventTarget.window === nativeEventTarget\n              ? nativeEventTarget\n              : (SyntheticEventCtor = nativeEventTarget.ownerDocument)\n                ? SyntheticEventCtor.defaultView ||\n                  SyntheticEventCtor.parentWindow\n                : window;\n          if (reactName) {\n            if (\n              ((SyntheticEventCtor =\n                nativeEvent.relatedTarget || nativeEvent.toElement),\n              (reactName = targetInst),\n              (SyntheticEventCtor = SyntheticEventCtor\n                ? getClosestInstanceFromNode(SyntheticEventCtor)\n                : null),\n              null !== SyntheticEventCtor &&\n                ((accumulateTargetOnly =\n                  getNearestMountedFiber(SyntheticEventCtor)),\n                (inCapturePhase = SyntheticEventCtor.tag),\n                SyntheticEventCtor !== accumulateTargetOnly ||\n                  (5 !== inCapturePhase &&\n                    27 !== inCapturePhase &&\n                    6 !== inCapturePhase)))\n            )\n              SyntheticEventCtor = null;\n          } else (reactName = null), (SyntheticEventCtor = targetInst);\n          if (reactName !== SyntheticEventCtor) {\n            inCapturePhase = SyntheticMouseEvent;\n            _instance = \"onMouseLeave\";\n            reactEventName = \"onMouseEnter\";\n            instance = \"mouse\";\n            if (\"pointerout\" === domEventName || \"pointerover\" === domEventName)\n              (inCapturePhase = SyntheticPointerEvent),\n                (_instance = \"onPointerLeave\"),\n                (reactEventName = \"onPointerEnter\"),\n                (instance = \"pointer\");\n            accumulateTargetOnly =\n              null == reactName\n                ? reactEventType\n                : getNodeFromInstance(reactName);\n            lastHostComponent =\n              null == SyntheticEventCtor\n                ? reactEventType\n                : getNodeFromInstance(SyntheticEventCtor);\n            reactEventType = new inCapturePhase(\n              _instance,\n              instance + \"leave\",\n              reactName,\n              nativeEvent,\n              nativeEventTarget\n            );\n            reactEventType.target = accumulateTargetOnly;\n            reactEventType.relatedTarget = lastHostComponent;\n            _instance = null;\n            getClosestInstanceFromNode(nativeEventTarget) === targetInst &&\n              ((inCapturePhase = new inCapturePhase(\n                reactEventName,\n                instance + \"enter\",\n                SyntheticEventCtor,\n                nativeEvent,\n                nativeEventTarget\n              )),\n              (inCapturePhase.target = lastHostComponent),\n              (inCapturePhase.relatedTarget = accumulateTargetOnly),\n              (_instance = inCapturePhase));\n            accumulateTargetOnly = _instance;\n            inCapturePhase =\n              reactName && SyntheticEventCtor\n                ? getLowestCommonAncestor(\n                    reactName,\n                    SyntheticEventCtor,\n                    getParent\n                  )\n                : null;\n            null !== reactName &&\n              accumulateEnterLeaveListenersForEvent(\n                dispatchQueue,\n                reactEventType,\n                reactName,\n                inCapturePhase,\n                !1\n              );\n            null !== SyntheticEventCtor &&\n              null !== accumulateTargetOnly &&\n              accumulateEnterLeaveListenersForEvent(\n                dispatchQueue,\n                accumulateTargetOnly,\n                SyntheticEventCtor,\n                inCapturePhase,\n                !0\n              );\n          }\n        }\n      }\n      a: {\n        reactName = targetInst ? getNodeFromInstance(targetInst) : window;\n        SyntheticEventCtor =\n          reactName.nodeName && reactName.nodeName.toLowerCase();\n        if (\n          \"select\" === SyntheticEventCtor ||\n          (\"input\" === SyntheticEventCtor && \"file\" === reactName.type)\n        )\n          var getTargetInstFunc = getTargetInstForChangeEvent;\n        else if (isTextInputElement(reactName))\n          if (isInputEventSupported)\n            getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n          else {\n            getTargetInstFunc = getTargetInstForInputEventPolyfill;\n            var handleEventFunc = handleEventsForInputEventPolyfill;\n          }\n        else\n          (SyntheticEventCtor = reactName.nodeName),\n            !SyntheticEventCtor ||\n            \"input\" !== SyntheticEventCtor.toLowerCase() ||\n            (\"checkbox\" !== reactName.type && \"radio\" !== reactName.type)\n              ? targetInst &&\n                isCustomElement(targetInst.elementType) &&\n                (getTargetInstFunc = getTargetInstForChangeEvent)\n              : (getTargetInstFunc = getTargetInstForClickEvent);\n        if (\n          getTargetInstFunc &&\n          (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))\n        ) {\n          createAndAccumulateChangeEvent(\n            dispatchQueue,\n            getTargetInstFunc,\n            nativeEvent,\n            nativeEventTarget\n          );\n          break a;\n        }\n        handleEventFunc && handleEventFunc(domEventName, reactName, targetInst);\n      }\n      handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window;\n      switch (domEventName) {\n        case \"focusin\":\n          if (\n            isTextInputElement(handleEventFunc) ||\n            \"true\" === handleEventFunc.contentEditable\n          )\n            (activeElement = handleEventFunc),\n              (activeElementInst = targetInst),\n              (lastSelection = null);\n          break;\n        case \"focusout\":\n          lastSelection = activeElementInst = activeElement = null;\n          break;\n        case \"mousedown\":\n          mouseDown = !0;\n          break;\n        case \"contextmenu\":\n        case \"mouseup\":\n        case \"dragend\":\n          mouseDown = !1;\n          constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n          break;\n        case \"selectionchange\":\n          if (skipSelectionChangeEvent) break;\n        case \"keydown\":\n        case \"keyup\":\n          constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n      }\n      var fallbackData;\n      if (canUseCompositionEvent)\n        b: {\n          switch (domEventName) {\n            case \"compositionstart\":\n              var eventType = \"onCompositionStart\";\n              break b;\n            case \"compositionend\":\n              eventType = \"onCompositionEnd\";\n              break b;\n            case \"compositionupdate\":\n              eventType = \"onCompositionUpdate\";\n              break b;\n          }\n          eventType = void 0;\n        }\n      else\n        isComposing\n          ? isFallbackCompositionEnd(domEventName, nativeEvent) &&\n            (eventType = \"onCompositionEnd\")\n          : \"keydown\" === domEventName &&\n            229 === nativeEvent.keyCode &&\n            (eventType = \"onCompositionStart\");\n      eventType &&\n        (useFallbackCompositionData &&\n          \"ko\" !== nativeEvent.locale &&\n          (isComposing || \"onCompositionStart\" !== eventType\n            ? \"onCompositionEnd\" === eventType &&\n              isComposing &&\n              (fallbackData = getData())\n            : ((root = nativeEventTarget),\n              (startText = \"value\" in root ? root.value : root.textContent),\n              (isComposing = !0))),\n        (handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType)),\n        0 < handleEventFunc.length &&\n          ((eventType = new SyntheticCompositionEvent(\n            eventType,\n            domEventName,\n            null,\n            nativeEvent,\n            nativeEventTarget\n          )),\n          dispatchQueue.push({ event: eventType, listeners: handleEventFunc }),\n          fallbackData\n            ? (eventType.data = fallbackData)\n            : ((fallbackData = getDataFromCustomEvent(nativeEvent)),\n              null !== fallbackData && (eventType.data = fallbackData))));\n      if (\n        (fallbackData = canUseTextInputEvent\n          ? getNativeBeforeInputChars(domEventName, nativeEvent)\n          : getFallbackBeforeInputChars(domEventName, nativeEvent))\n      )\n        (eventType = accumulateTwoPhaseListeners(targetInst, \"onBeforeInput\")),\n          0 < eventType.length &&\n            ((handleEventFunc = new SyntheticCompositionEvent(\n              \"onBeforeInput\",\n              \"beforeinput\",\n              null,\n              nativeEvent,\n              nativeEventTarget\n            )),\n            dispatchQueue.push({\n              event: handleEventFunc,\n              listeners: eventType\n            }),\n            (handleEventFunc.data = fallbackData));\n      extractEvents$1(\n        dispatchQueue,\n        domEventName,\n        targetInst,\n        nativeEvent,\n        nativeEventTarget\n      );\n    }\n    processDispatchQueue(dispatchQueue, eventSystemFlags);\n  });\n}\nfunction createDispatchListener(instance, listener, currentTarget) {\n  return {\n    instance: instance,\n    listener: listener,\n    currentTarget: currentTarget\n  };\n}\nfunction accumulateTwoPhaseListeners(targetFiber, reactName) {\n  for (\n    var captureName = reactName + \"Capture\", listeners = [];\n    null !== targetFiber;\n\n  ) {\n    var _instance2 = targetFiber,\n      stateNode = _instance2.stateNode;\n    _instance2 = _instance2.tag;\n    (5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2) ||\n      null === stateNode ||\n      ((_instance2 = getListener(targetFiber, captureName)),\n      null != _instance2 &&\n        listeners.unshift(\n          createDispatchListener(targetFiber, _instance2, stateNode)\n        ),\n      (_instance2 = getListener(targetFiber, reactName)),\n      null != _instance2 &&\n        listeners.push(\n          createDispatchListener(targetFiber, _instance2, stateNode)\n        ));\n    if (3 === targetFiber.tag) return listeners;\n    targetFiber = targetFiber.return;\n  }\n  return [];\n}\nfunction getParent(inst) {\n  if (null === inst) return null;\n  do inst = inst.return;\n  while (inst && 5 !== inst.tag && 27 !== inst.tag);\n  return inst ? inst : null;\n}\nfunction accumulateEnterLeaveListenersForEvent(\n  dispatchQueue,\n  event,\n  target,\n  common,\n  inCapturePhase\n) {\n  for (\n    var registrationName = event._reactName, listeners = [];\n    null !== target && target !== common;\n\n  ) {\n    var _instance3 = target,\n      alternate = _instance3.alternate,\n      stateNode = _instance3.stateNode;\n    _instance3 = _instance3.tag;\n    if (null !== alternate && alternate === common) break;\n    (5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3) ||\n      null === stateNode ||\n      ((alternate = stateNode),\n      inCapturePhase\n        ? ((stateNode = getListener(target, registrationName)),\n          null != stateNode &&\n            listeners.unshift(\n              createDispatchListener(target, stateNode, alternate)\n            ))\n        : inCapturePhase ||\n          ((stateNode = getListener(target, registrationName)),\n          null != stateNode &&\n            listeners.push(\n              createDispatchListener(target, stateNode, alternate)\n            )));\n    target = target.return;\n  }\n  0 !== listeners.length &&\n    dispatchQueue.push({ event: event, listeners: listeners });\n}\nvar NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g,\n  NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\nfunction normalizeMarkupForTextOrAttribute(markup) {\n  return (\"string\" === typeof markup ? markup : \"\" + markup)\n    .replace(NORMALIZE_NEWLINES_REGEX, \"\\n\")\n    .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, \"\");\n}\nfunction checkForUnmatchedText(serverText, clientText) {\n  clientText = normalizeMarkupForTextOrAttribute(clientText);\n  return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;\n}\nfunction setProp(domElement, tag, key, value, props, prevValue) {\n  switch (key) {\n    case \"children\":\n      if (\"string\" === typeof value)\n        \"body\" === tag ||\n          (\"textarea\" === tag && \"\" === value) ||\n          setTextContent(domElement, value);\n      else if (\"number\" === typeof value || \"bigint\" === typeof value)\n        \"body\" !== tag && setTextContent(domElement, \"\" + value);\n      else return;\n      break;\n    case \"className\":\n      setValueForKnownAttribute(domElement, \"class\", value);\n      break;\n    case \"tabIndex\":\n      setValueForKnownAttribute(domElement, \"tabindex\", value);\n      break;\n    case \"dir\":\n    case \"role\":\n    case \"viewBox\":\n    case \"width\":\n    case \"height\":\n      setValueForKnownAttribute(domElement, key, value);\n      break;\n    case \"style\":\n      setValueForStyles(domElement, value, prevValue);\n      return;\n    case \"data\":\n      if (\"object\" !== tag) {\n        setValueForKnownAttribute(domElement, \"data\", value);\n        break;\n      }\n    case \"src\":\n    case \"href\":\n      if (\"\" === value && (\"a\" !== tag || \"href\" !== key)) {\n        domElement.removeAttribute(key);\n        break;\n      }\n      if (\n        null == value ||\n        \"function\" === typeof value ||\n        \"symbol\" === typeof value ||\n        \"boolean\" === typeof value\n      ) {\n        domElement.removeAttribute(key);\n        break;\n      }\n      value = sanitizeURL(value);\n      domElement.setAttribute(key, value);\n      break;\n    case \"action\":\n    case \"formAction\":\n      if (\"function\" === typeof value) {\n        domElement.setAttribute(\n          key,\n          \"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\"\n        );\n        break;\n      } else\n        \"function\" === typeof prevValue &&\n          (\"formAction\" === key\n            ? (\"input\" !== tag &&\n                setProp(domElement, tag, \"name\", props.name, props, null),\n              setProp(\n                domElement,\n                tag,\n                \"formEncType\",\n                props.formEncType,\n                props,\n                null\n              ),\n              setProp(\n                domElement,\n                tag,\n                \"formMethod\",\n                props.formMethod,\n                props,\n                null\n              ),\n              setProp(\n                domElement,\n                tag,\n                \"formTarget\",\n                props.formTarget,\n                props,\n                null\n              ))\n            : (setProp(domElement, tag, \"encType\", props.encType, props, null),\n              setProp(domElement, tag, \"method\", props.method, props, null),\n              setProp(domElement, tag, \"target\", props.target, props, null)));\n      if (\n        null == value ||\n        \"symbol\" === typeof value ||\n        \"boolean\" === typeof value\n      ) {\n        domElement.removeAttribute(key);\n        break;\n      }\n      value = sanitizeURL(value);\n      domElement.setAttribute(key, value);\n      break;\n    case \"onClick\":\n      null != value && (domElement.onclick = noop$1);\n      return;\n    case \"onScroll\":\n      null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n      return;\n    case \"onScrollEnd\":\n      null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n      return;\n    case \"dangerouslySetInnerHTML\":\n      if (null != value) {\n        if (\"object\" !== typeof value || !(\"__html\" in value))\n          throw Error(formatProdErrorMessage(61));\n        key = value.__html;\n        if (null != key) {\n          if (null != props.children) throw Error(formatProdErrorMessage(60));\n          (null != prevValue ? prevValue.__html : void 0) !== key &&\n            (domElement.innerHTML = key);\n        }\n      }\n      break;\n    case \"multiple\":\n      domElement.multiple =\n        value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n      break;\n    case \"muted\":\n      domElement.muted =\n        value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n      break;\n    case \"suppressContentEditableWarning\":\n    case \"suppressHydrationWarning\":\n    case \"defaultValue\":\n    case \"defaultChecked\":\n    case \"innerHTML\":\n    case \"ref\":\n      break;\n    case \"autoFocus\":\n      break;\n    case \"xlinkHref\":\n      if (\n        null == value ||\n        \"function\" === typeof value ||\n        \"boolean\" === typeof value ||\n        \"symbol\" === typeof value\n      ) {\n        domElement.removeAttribute(\"xlink:href\");\n        break;\n      }\n      key = sanitizeURL(value);\n      domElement.setAttributeNS(\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:href\",\n        key\n      );\n      break;\n    case \"contentEditable\":\n    case \"spellCheck\":\n    case \"draggable\":\n    case \"value\":\n    case \"autoReverse\":\n    case \"externalResourcesRequired\":\n    case \"focusable\":\n    case \"preserveAlpha\":\n      null != value && \"function\" !== typeof value && \"symbol\" !== typeof value\n        ? domElement.setAttribute(key, value)\n        : domElement.removeAttribute(key);\n      break;\n    case \"inert\":\n    case \"allowFullScreen\":\n    case \"async\":\n    case \"autoPlay\":\n    case \"controls\":\n    case \"credentialless\":\n    case \"default\":\n    case \"defer\":\n    case \"disabled\":\n    case \"disablePictureInPicture\":\n    case \"disableRemotePlayback\":\n    case \"formNoValidate\":\n    case \"hidden\":\n    case \"loop\":\n    case \"noModule\":\n    case \"noValidate\":\n    case \"open\":\n    case \"playsInline\":\n    case \"readOnly\":\n    case \"required\":\n    case \"reversed\":\n    case \"scoped\":\n    case \"seamless\":\n    case \"itemScope\":\n      value && \"function\" !== typeof value && \"symbol\" !== typeof value\n        ? domElement.setAttribute(key, \"\")\n        : domElement.removeAttribute(key);\n      break;\n    case \"capture\":\n    case \"download\":\n      !0 === value\n        ? domElement.setAttribute(key, \"\")\n        : !1 !== value &&\n            null != value &&\n            \"function\" !== typeof value &&\n            \"symbol\" !== typeof value\n          ? domElement.setAttribute(key, value)\n          : domElement.removeAttribute(key);\n      break;\n    case \"cols\":\n    case \"rows\":\n    case \"size\":\n    case \"span\":\n      null != value &&\n      \"function\" !== typeof value &&\n      \"symbol\" !== typeof value &&\n      !isNaN(value) &&\n      1 <= value\n        ? domElement.setAttribute(key, value)\n        : domElement.removeAttribute(key);\n      break;\n    case \"rowSpan\":\n    case \"start\":\n      null == value ||\n      \"function\" === typeof value ||\n      \"symbol\" === typeof value ||\n      isNaN(value)\n        ? domElement.removeAttribute(key)\n        : domElement.setAttribute(key, value);\n      break;\n    case \"popover\":\n      listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n      listenToNonDelegatedEvent(\"toggle\", domElement);\n      setValueForAttribute(domElement, \"popover\", value);\n      break;\n    case \"xlinkActuate\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:actuate\",\n        value\n      );\n      break;\n    case \"xlinkArcrole\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:arcrole\",\n        value\n      );\n      break;\n    case \"xlinkRole\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:role\",\n        value\n      );\n      break;\n    case \"xlinkShow\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:show\",\n        value\n      );\n      break;\n    case \"xlinkTitle\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:title\",\n        value\n      );\n      break;\n    case \"xlinkType\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/1999/xlink\",\n        \"xlink:type\",\n        value\n      );\n      break;\n    case \"xmlBase\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/XML/1998/namespace\",\n        \"xml:base\",\n        value\n      );\n      break;\n    case \"xmlLang\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/XML/1998/namespace\",\n        \"xml:lang\",\n        value\n      );\n      break;\n    case \"xmlSpace\":\n      setValueForNamespacedAttribute(\n        domElement,\n        \"http://www.w3.org/XML/1998/namespace\",\n        \"xml:space\",\n        value\n      );\n      break;\n    case \"is\":\n      setValueForAttribute(domElement, \"is\", value);\n      break;\n    case \"innerText\":\n    case \"textContent\":\n      return;\n    default:\n      if (\n        !(2 < key.length) ||\n        (\"o\" !== key[0] && \"O\" !== key[0]) ||\n        (\"n\" !== key[1] && \"N\" !== key[1])\n      )\n        (key = aliases.get(key) || key),\n          setValueForAttribute(domElement, key, value);\n      else return;\n  }\n  viewTransitionMutationContext = !0;\n}\nfunction setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {\n  switch (key) {\n    case \"style\":\n      setValueForStyles(domElement, value, prevValue);\n      return;\n    case \"dangerouslySetInnerHTML\":\n      if (null != value) {\n        if (\"object\" !== typeof value || !(\"__html\" in value))\n          throw Error(formatProdErrorMessage(61));\n        key = value.__html;\n        if (null != key) {\n          if (null != props.children) throw Error(formatProdErrorMessage(60));\n          (null != prevValue ? prevValue.__html : void 0) !== key &&\n            (domElement.innerHTML = key);\n        }\n      }\n      break;\n    case \"children\":\n      if (\"string\" === typeof value) setTextContent(domElement, value);\n      else if (\"number\" === typeof value || \"bigint\" === typeof value)\n        setTextContent(domElement, \"\" + value);\n      else return;\n      break;\n    case \"onScroll\":\n      null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n      return;\n    case \"onScrollEnd\":\n      null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n      return;\n    case \"onClick\":\n      null != value && (domElement.onclick = noop$1);\n      return;\n    case \"suppressContentEditableWarning\":\n    case \"suppressHydrationWarning\":\n    case \"innerHTML\":\n    case \"ref\":\n      return;\n    case \"innerText\":\n    case \"textContent\":\n      return;\n    default:\n      if (!registrationNameDependencies.hasOwnProperty(key))\n        a: {\n          if (\n            \"o\" === key[0] &&\n            \"n\" === key[1] &&\n            ((props = key.endsWith(\"Capture\")),\n            (prevValue = key.slice(2, props ? key.length - 7 : void 0)),\n            (tag = domElement[internalPropsKey] || null),\n            (tag = null != tag ? tag[key] : null),\n            \"function\" === typeof tag &&\n              domElement.removeEventListener(prevValue, tag, props),\n            \"function\" === typeof value)\n          ) {\n            \"function\" !== typeof tag &&\n              null !== tag &&\n              (key in domElement\n                ? (domElement[key] = null)\n                : domElement.hasAttribute(key) &&\n                  domElement.removeAttribute(key));\n            domElement.addEventListener(prevValue, value, props);\n            break a;\n          }\n          viewTransitionMutationContext = !0;\n          key in domElement\n            ? (domElement[key] = value)\n            : !0 === value\n              ? domElement.setAttribute(key, \"\")\n              : setValueForAttribute(domElement, key, value);\n        }\n      return;\n  }\n  viewTransitionMutationContext = !0;\n}\nfunction setInitialProperties(domElement, tag, props) {\n  switch (tag) {\n    case \"div\":\n    case \"span\":\n    case \"svg\":\n    case \"path\":\n    case \"a\":\n    case \"g\":\n    case \"p\":\n    case \"li\":\n      break;\n    case \"img\":\n      listenToNonDelegatedEvent(\"error\", domElement);\n      listenToNonDelegatedEvent(\"load\", domElement);\n      var hasSrc = !1,\n        hasSrcSet = !1,\n        propKey;\n      for (propKey in props)\n        if (props.hasOwnProperty(propKey)) {\n          var propValue = props[propKey];\n          if (null != propValue)\n            switch (propKey) {\n              case \"src\":\n                hasSrc = !0;\n                break;\n              case \"srcSet\":\n                hasSrcSet = !0;\n                break;\n              case \"children\":\n              case \"dangerouslySetInnerHTML\":\n                throw Error(formatProdErrorMessage(137, tag));\n              default:\n                setProp(domElement, tag, propKey, propValue, props, null);\n            }\n        }\n      hasSrcSet &&\n        setProp(domElement, tag, \"srcSet\", props.srcSet, props, null);\n      hasSrc && setProp(domElement, tag, \"src\", props.src, props, null);\n      return;\n    case \"input\":\n      listenToNonDelegatedEvent(\"invalid\", domElement);\n      var defaultValue = (propKey = propValue = hasSrcSet = null),\n        checked = null,\n        defaultChecked = null;\n      for (hasSrc in props)\n        if (props.hasOwnProperty(hasSrc)) {\n          var propValue$204 = props[hasSrc];\n          if (null != propValue$204)\n            switch (hasSrc) {\n              case \"name\":\n                hasSrcSet = propValue$204;\n                break;\n              case \"type\":\n                propValue = propValue$204;\n                break;\n              case \"checked\":\n                checked = propValue$204;\n                break;\n              case \"defaultChecked\":\n                defaultChecked = propValue$204;\n                break;\n              case \"value\":\n                propKey = propValue$204;\n                break;\n              case \"defaultValue\":\n                defaultValue = propValue$204;\n                break;\n              case \"children\":\n              case \"dangerouslySetInnerHTML\":\n                if (null != propValue$204)\n                  throw Error(formatProdErrorMessage(137, tag));\n                break;\n              default:\n                setProp(domElement, tag, hasSrc, propValue$204, props, null);\n            }\n        }\n      initInput(\n        domElement,\n        propKey,\n        defaultValue,\n        checked,\n        defaultChecked,\n        propValue,\n        hasSrcSet,\n        !1\n      );\n      return;\n    case \"select\":\n      listenToNonDelegatedEvent(\"invalid\", domElement);\n      hasSrc = propValue = propKey = null;\n      for (hasSrcSet in props)\n        if (\n          props.hasOwnProperty(hasSrcSet) &&\n          ((defaultValue = props[hasSrcSet]), null != defaultValue)\n        )\n          switch (hasSrcSet) {\n            case \"value\":\n              propKey = defaultValue;\n              break;\n            case \"defaultValue\":\n              propValue = defaultValue;\n              break;\n            case \"multiple\":\n              hasSrc = defaultValue;\n            default:\n              setProp(domElement, tag, hasSrcSet, defaultValue, props, null);\n          }\n      tag = propKey;\n      props = propValue;\n      domElement.multiple = !!hasSrc;\n      null != tag\n        ? updateOptions(domElement, !!hasSrc, tag, !1)\n        : null != props && updateOptions(domElement, !!hasSrc, props, !0);\n      return;\n    case \"textarea\":\n      listenToNonDelegatedEvent(\"invalid\", domElement);\n      propKey = hasSrcSet = hasSrc = null;\n      for (propValue in props)\n        if (\n          props.hasOwnProperty(propValue) &&\n          ((defaultValue = props[propValue]), null != defaultValue)\n        )\n          switch (propValue) {\n            case \"value\":\n              hasSrc = defaultValue;\n              break;\n            case \"defaultValue\":\n              hasSrcSet = defaultValue;\n              break;\n            case \"children\":\n              propKey = defaultValue;\n              break;\n            case \"dangerouslySetInnerHTML\":\n              if (null != defaultValue) throw Error(formatProdErrorMessage(91));\n              break;\n            default:\n              setProp(domElement, tag, propValue, defaultValue, props, null);\n          }\n      initTextarea(domElement, hasSrc, hasSrcSet, propKey);\n      return;\n    case \"option\":\n      for (checked in props)\n        if (\n          props.hasOwnProperty(checked) &&\n          ((hasSrc = props[checked]), null != hasSrc)\n        )\n          switch (checked) {\n            case \"selected\":\n              domElement.selected =\n                hasSrc &&\n                \"function\" !== typeof hasSrc &&\n                \"symbol\" !== typeof hasSrc;\n              break;\n            default:\n              setProp(domElement, tag, checked, hasSrc, props, null);\n          }\n      return;\n    case \"dialog\":\n      listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n      listenToNonDelegatedEvent(\"toggle\", domElement);\n      listenToNonDelegatedEvent(\"cancel\", domElement);\n      listenToNonDelegatedEvent(\"close\", domElement);\n      break;\n    case \"iframe\":\n    case \"object\":\n      listenToNonDelegatedEvent(\"load\", domElement);\n      break;\n    case \"video\":\n    case \"audio\":\n      for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++)\n        listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement);\n      break;\n    case \"image\":\n      listenToNonDelegatedEvent(\"error\", domElement);\n      listenToNonDelegatedEvent(\"load\", domElement);\n      break;\n    case \"details\":\n      listenToNonDelegatedEvent(\"toggle\", domElement);\n      break;\n    case \"embed\":\n    case \"source\":\n    case \"link\":\n      listenToNonDelegatedEvent(\"error\", domElement),\n        listenToNonDelegatedEvent(\"load\", domElement);\n    case \"area\":\n    case \"base\":\n    case \"br\":\n    case \"col\":\n    case \"hr\":\n    case \"keygen\":\n    case \"meta\":\n    case \"param\":\n    case \"track\":\n    case \"wbr\":\n    case \"menuitem\":\n      for (defaultChecked in props)\n        if (\n          props.hasOwnProperty(defaultChecked) &&\n          ((hasSrc = props[defaultChecked]), null != hasSrc)\n        )\n          switch (defaultChecked) {\n            case \"children\":\n            case \"dangerouslySetInnerHTML\":\n              throw Error(formatProdErrorMessage(137, tag));\n            default:\n              setProp(domElement, tag, defaultChecked, hasSrc, props, null);\n          }\n      return;\n    default:\n      if (isCustomElement(tag)) {\n        for (propValue$204 in props)\n          props.hasOwnProperty(propValue$204) &&\n            ((hasSrc = props[propValue$204]),\n            void 0 !== hasSrc &&\n              setPropOnCustomElement(\n                domElement,\n                tag,\n                propValue$204,\n                hasSrc,\n                props,\n                void 0\n              ));\n        return;\n      }\n  }\n  for (defaultValue in props)\n    props.hasOwnProperty(defaultValue) &&\n      ((hasSrc = props[defaultValue]),\n      null != hasSrc &&\n        setProp(domElement, tag, defaultValue, hasSrc, props, null));\n}\nvar emptyProps = {};\nfunction updateProperties(domElement, tag, lastProps, nextProps) {\n  switch (tag) {\n    case \"div\":\n    case \"span\":\n    case \"svg\":\n    case \"path\":\n    case \"a\":\n    case \"g\":\n    case \"p\":\n    case \"li\":\n      break;\n    case \"input\":\n      var name = null,\n        type = null,\n        value = null,\n        defaultValue = null,\n        lastDefaultValue = null,\n        checked = null,\n        defaultChecked = null;\n      for (propKey in lastProps) {\n        var lastProp = lastProps[propKey];\n        if (lastProps.hasOwnProperty(propKey) && null != lastProp)\n          switch (propKey) {\n            case \"checked\":\n              break;\n            case \"value\":\n              break;\n            case \"defaultValue\":\n              lastDefaultValue = lastProp;\n            default:\n              nextProps.hasOwnProperty(propKey) ||\n                setProp(domElement, tag, propKey, null, nextProps, lastProp);\n          }\n      }\n      for (var propKey$221 in nextProps) {\n        var propKey = nextProps[propKey$221];\n        lastProp = lastProps[propKey$221];\n        if (\n          nextProps.hasOwnProperty(propKey$221) &&\n          (null != propKey || null != lastProp)\n        )\n          switch (propKey$221) {\n            case \"type\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              type = propKey;\n              break;\n            case \"name\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              name = propKey;\n              break;\n            case \"checked\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              checked = propKey;\n              break;\n            case \"defaultChecked\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              defaultChecked = propKey;\n              break;\n            case \"value\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              value = propKey;\n              break;\n            case \"defaultValue\":\n              propKey !== lastProp && (viewTransitionMutationContext = !0);\n              defaultValue = propKey;\n              break;\n            case \"children\":\n            case \"dangerouslySetInnerHTML\":\n              if (null != propKey)\n                throw Error(formatProdErrorMessage(137, tag));\n              break;\n            default:\n              propKey !== lastProp &&\n                setProp(\n                  domElement,\n                  tag,\n                  propKey$221,\n                  propKey,\n                  nextProps,\n                  lastProp\n                );\n          }\n      }\n      updateInput(\n        domElement,\n        value,\n        defaultValue,\n        lastDefaultValue,\n        checked,\n        defaultChecked,\n        type,\n        name\n      );\n      return;\n    case \"select\":\n      propKey = value = defaultValue = propKey$221 = null;\n      for (type in lastProps)\n        if (\n          ((lastDefaultValue = lastProps[type]),\n          lastProps.hasOwnProperty(type) && null != lastDefaultValue)\n        )\n          switch (type) {\n            case \"value\":\n              break;\n            case \"multiple\":\n              propKey = lastDefaultValue;\n            default:\n              nextProps.hasOwnProperty(type) ||\n                setProp(\n                  domElement,\n                  tag,\n                  type,\n                  null,\n                  nextProps,\n                  lastDefaultValue\n                );\n          }\n      for (name in nextProps)\n        if (\n          ((type = nextProps[name]),\n          (lastDefaultValue = lastProps[name]),\n          nextProps.hasOwnProperty(name) &&\n            (null != type || null != lastDefaultValue))\n        )\n          switch (name) {\n            case \"value\":\n              type !== lastDefaultValue && (viewTransitionMutationContext = !0);\n              propKey$221 = type;\n              break;\n            case \"defaultValue\":\n              type !== lastDefaultValue && (viewTransitionMutationContext = !0);\n              defaultValue = type;\n              break;\n            case \"multiple\":\n              type !== lastDefaultValue && (viewTransitionMutationContext = !0),\n                (value = type);\n            default:\n              type !== lastDefaultValue &&\n                setProp(\n                  domElement,\n                  tag,\n                  name,\n                  type,\n                  nextProps,\n                  lastDefaultValue\n                );\n          }\n      tag = defaultValue;\n      lastProps = value;\n      nextProps = propKey;\n      null != propKey$221\n        ? updateOptions(domElement, !!lastProps, propKey$221, !1)\n        : !!nextProps !== !!lastProps &&\n          (null != tag\n            ? updateOptions(domElement, !!lastProps, tag, !0)\n            : updateOptions(domElement, !!lastProps, lastProps ? [] : \"\", !1));\n      return;\n    case \"textarea\":\n      propKey = propKey$221 = null;\n      for (defaultValue in lastProps)\n        if (\n          ((name = lastProps[defaultValue]),\n          lastProps.hasOwnProperty(defaultValue) &&\n            null != name &&\n            !nextProps.hasOwnProperty(defaultValue))\n        )\n          switch (defaultValue) {\n            case \"value\":\n              break;\n            case \"children\":\n              break;\n            default:\n              setProp(domElement, tag, defaultValue, null, nextProps, name);\n          }\n      for (value in nextProps)\n        if (\n          ((name = nextProps[value]),\n          (type = lastProps[value]),\n          nextProps.hasOwnProperty(value) && (null != name || null != type))\n        )\n          switch (value) {\n            case \"value\":\n              name !== type && (viewTransitionMutationContext = !0);\n              propKey$221 = name;\n              break;\n            case \"defaultValue\":\n              name !== type && (viewTransitionMutationContext = !0);\n              propKey = name;\n              break;\n            case \"children\":\n              break;\n            case \"dangerouslySetInnerHTML\":\n              if (null != name) throw Error(formatProdErrorMessage(91));\n              break;\n            default:\n              name !== type &&\n                setProp(domElement, tag, value, name, nextProps, type);\n          }\n      updateTextarea(domElement, propKey$221, propKey);\n      return;\n    case \"option\":\n      for (var propKey$237 in lastProps)\n        if (\n          ((propKey$221 = lastProps[propKey$237]),\n          lastProps.hasOwnProperty(propKey$237) &&\n            null != propKey$221 &&\n            !nextProps.hasOwnProperty(propKey$237))\n        )\n          switch (propKey$237) {\n            case \"selected\":\n              domElement.selected = !1;\n              break;\n            default:\n              setProp(\n                domElement,\n                tag,\n                propKey$237,\n                null,\n                nextProps,\n                propKey$221\n              );\n          }\n      for (lastDefaultValue in nextProps)\n        if (\n          ((propKey$221 = nextProps[lastDefaultValue]),\n          (propKey = lastProps[lastDefaultValue]),\n          nextProps.hasOwnProperty(lastDefaultValue) &&\n            propKey$221 !== propKey &&\n            (null != propKey$221 || null != propKey))\n        )\n          switch (lastDefaultValue) {\n            case \"selected\":\n              propKey$221 !== propKey && (viewTransitionMutationContext = !0);\n              domElement.selected =\n                propKey$221 &&\n                \"function\" !== typeof propKey$221 &&\n                \"symbol\" !== typeof propKey$221;\n              break;\n            default:\n              setProp(\n                domElement,\n                tag,\n                lastDefaultValue,\n                propKey$221,\n                nextProps,\n                propKey\n              );\n          }\n      return;\n    case \"img\":\n    case \"link\":\n    case \"area\":\n    case \"base\":\n    case \"br\":\n    case \"col\":\n    case \"embed\":\n    case \"hr\":\n    case \"keygen\":\n    case \"meta\":\n    case \"param\":\n    case \"source\":\n    case \"track\":\n    case \"wbr\":\n    case \"menuitem\":\n      for (var propKey$242 in lastProps)\n        (propKey$221 = lastProps[propKey$242]),\n          lastProps.hasOwnProperty(propKey$242) &&\n            null != propKey$221 &&\n            !nextProps.hasOwnProperty(propKey$242) &&\n            setProp(domElement, tag, propKey$242, null, nextProps, propKey$221);\n      for (checked in nextProps)\n        if (\n          ((propKey$221 = nextProps[checked]),\n          (propKey = lastProps[checked]),\n          nextProps.hasOwnProperty(checked) &&\n            propKey$221 !== propKey &&\n            (null != propKey$221 || null != propKey))\n        )\n          switch (checked) {\n            case \"children\":\n            case \"dangerouslySetInnerHTML\":\n              if (null != propKey$221)\n                throw Error(formatProdErrorMessage(137, tag));\n              break;\n            default:\n              setProp(\n                domElement,\n                tag,\n                checked,\n                propKey$221,\n                nextProps,\n                propKey\n              );\n          }\n      return;\n    default:\n      if (isCustomElement(tag)) {\n        for (var propKey$247 in lastProps)\n          (propKey$221 = lastProps[propKey$247]),\n            lastProps.hasOwnProperty(propKey$247) &&\n              void 0 !== propKey$221 &&\n              !nextProps.hasOwnProperty(propKey$247) &&\n              setPropOnCustomElement(\n                domElement,\n                tag,\n                propKey$247,\n                void 0,\n                nextProps,\n                propKey$221\n              );\n        for (defaultChecked in nextProps)\n          (propKey$221 = nextProps[defaultChecked]),\n            (propKey = lastProps[defaultChecked]),\n            !nextProps.hasOwnProperty(defaultChecked) ||\n              propKey$221 === propKey ||\n              (void 0 === propKey$221 && void 0 === propKey) ||\n              setPropOnCustomElement(\n                domElement,\n                tag,\n                defaultChecked,\n                propKey$221,\n                nextProps,\n                propKey\n              );\n        return;\n      }\n  }\n  for (var propKey$252 in lastProps)\n    (propKey$221 = lastProps[propKey$252]),\n      lastProps.hasOwnProperty(propKey$252) &&\n        null != propKey$221 &&\n        !nextProps.hasOwnProperty(propKey$252) &&\n        setProp(domElement, tag, propKey$252, null, nextProps, propKey$221);\n  for (lastProp in nextProps)\n    (propKey$221 = nextProps[lastProp]),\n      (propKey = lastProps[lastProp]),\n      !nextProps.hasOwnProperty(lastProp) ||\n        propKey$221 === propKey ||\n        (null == propKey$221 && null == propKey) ||\n        setProp(domElement, tag, lastProp, propKey$221, nextProps, propKey);\n}\nfunction isLikelyStaticResource(initiatorType) {\n  switch (initiatorType) {\n    case \"css\":\n    case \"script\":\n    case \"font\":\n    case \"img\":\n    case \"image\":\n    case \"input\":\n    case \"link\":\n      return !0;\n    default:\n      return !1;\n  }\n}\nfunction estimateBandwidth() {\n  if (\"function\" === typeof performance.getEntriesByType) {\n    for (\n      var count = 0,\n        bits = 0,\n        resourceEntries = performance.getEntriesByType(\"resource\"),\n        i = 0;\n      i < resourceEntries.length;\n      i++\n    ) {\n      var entry = resourceEntries[i],\n        transferSize = entry.transferSize,\n        initiatorType = entry.initiatorType,\n        duration = entry.duration;\n      if (transferSize && duration && isLikelyStaticResource(initiatorType)) {\n        initiatorType = 0;\n        duration = entry.responseEnd;\n        for (i += 1; i < resourceEntries.length; i++) {\n          var overlapEntry = resourceEntries[i],\n            overlapStartTime = overlapEntry.startTime;\n          if (overlapStartTime > duration) break;\n          var overlapTransferSize = overlapEntry.transferSize,\n            overlapInitiatorType = overlapEntry.initiatorType;\n          overlapTransferSize &&\n            isLikelyStaticResource(overlapInitiatorType) &&\n            ((overlapEntry = overlapEntry.responseEnd),\n            (initiatorType +=\n              overlapTransferSize *\n              (overlapEntry < duration\n                ? 1\n                : (duration - overlapStartTime) /\n                  (overlapEntry - overlapStartTime))));\n        }\n        --i;\n        bits += (8 * (transferSize + initiatorType)) / (entry.duration / 1e3);\n        count++;\n        if (10 < count) break;\n      }\n    }\n    if (0 < count) return bits / count / 1e6;\n  }\n  return navigator.connection &&\n    ((count = navigator.connection.downlink), \"number\" === typeof count)\n    ? count\n    : 5;\n}\nvar eventsEnabled = null,\n  selectionInformation = null;\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n  return 9 === rootContainerElement.nodeType\n    ? rootContainerElement\n    : rootContainerElement.ownerDocument;\n}\nfunction getOwnHostContext(namespaceURI) {\n  switch (namespaceURI) {\n    case \"http://www.w3.org/2000/svg\":\n      return 1;\n    case \"http://www.w3.org/1998/Math/MathML\":\n      return 2;\n    default:\n      return 0;\n  }\n}\nfunction getChildHostContextProd(parentNamespace, type) {\n  if (0 === parentNamespace)\n    switch (type) {\n      case \"svg\":\n        return 1;\n      case \"math\":\n        return 2;\n      default:\n        return 0;\n    }\n  return 1 === parentNamespace && \"foreignObject\" === type\n    ? 0\n    : parentNamespace;\n}\nfunction createHoistableInstance(\n  type,\n  props,\n  rootContainerInstance,\n  internalInstanceHandle\n) {\n  rootContainerInstance = getOwnerDocumentFromRootContainer(\n    rootContainerInstance\n  ).createElement(type);\n  rootContainerInstance[internalInstanceKey] = internalInstanceHandle;\n  rootContainerInstance[internalPropsKey] = props;\n  setInitialProperties(rootContainerInstance, type, props);\n  markNodeAsHoistable(rootContainerInstance);\n  return rootContainerInstance;\n}\nfunction shouldSetTextContent(type, props) {\n  return (\n    \"textarea\" === type ||\n    \"noscript\" === type ||\n    \"string\" === typeof props.children ||\n    \"number\" === typeof props.children ||\n    \"bigint\" === typeof props.children ||\n    (\"object\" === typeof props.dangerouslySetInnerHTML &&\n      null !== props.dangerouslySetInnerHTML &&\n      null != props.dangerouslySetInnerHTML.__html)\n  );\n}\nvar currentPopstateTransitionEvent = null;\nfunction shouldAttemptEagerTransition() {\n  var event = window.event;\n  if (event && \"popstate\" === event.type) {\n    if (event === currentPopstateTransitionEvent) return !1;\n    currentPopstateTransitionEvent = event;\n    return !0;\n  }\n  currentPopstateTransitionEvent = null;\n  return !1;\n}\nvar scheduleTimeout = \"function\" === typeof setTimeout ? setTimeout : void 0,\n  cancelTimeout = \"function\" === typeof clearTimeout ? clearTimeout : void 0,\n  localPromise = \"function\" === typeof Promise ? Promise : void 0,\n  localRequestAnimationFrame =\n    \"function\" === typeof requestAnimationFrame\n      ? requestAnimationFrame\n      : scheduleTimeout,\n  scheduleMicrotask =\n    \"function\" === typeof queueMicrotask\n      ? queueMicrotask\n      : \"undefined\" !== typeof localPromise\n        ? function (callback) {\n            return localPromise\n              .resolve(null)\n              .then(callback)\n              .catch(handleErrorInNextTick);\n          }\n        : scheduleTimeout;\nfunction handleErrorInNextTick(error) {\n  setTimeout(function () {\n    throw error;\n  });\n}\nfunction isSingletonScope(type) {\n  return \"head\" === type;\n}\nfunction clearHydrationBoundary(parentInstance, hydrationInstance) {\n  var node = hydrationInstance,\n    depth = 0;\n  do {\n    var nextNode = node.nextSibling;\n    parentInstance.removeChild(node);\n    if (nextNode && 8 === nextNode.nodeType)\n      if (((node = nextNode.data), \"/$\" === node || \"/&\" === node)) {\n        if (0 === depth) {\n          parentInstance.removeChild(nextNode);\n          retryIfBlockedOn(hydrationInstance);\n          return;\n        }\n        depth--;\n      } else if (\n        \"$\" === node ||\n        \"$?\" === node ||\n        \"$~\" === node ||\n        \"$!\" === node ||\n        \"&\" === node\n      )\n        depth++;\n      else if (\"html\" === node)\n        clearSingletonPreambleContribution(\n          parentInstance.ownerDocument.documentElement\n        );\n      else if (\"head\" === node) {\n        node = parentInstance.ownerDocument.head;\n        clearSingletonPreambleContribution(node);\n        for (var node$jscomp$0 = node.firstChild; node$jscomp$0; ) {\n          var nextNode$jscomp$0 = node$jscomp$0.nextSibling,\n            nodeName = node$jscomp$0.nodeName;\n          node$jscomp$0[internalHoistableMarker] ||\n            \"SCRIPT\" === nodeName ||\n            \"STYLE\" === nodeName ||\n            (\"LINK\" === nodeName &&\n              \"stylesheet\" === node$jscomp$0.rel.toLowerCase()) ||\n            node.removeChild(node$jscomp$0);\n          node$jscomp$0 = nextNode$jscomp$0;\n        }\n      } else\n        \"body\" === node &&\n          clearSingletonPreambleContribution(parentInstance.ownerDocument.body);\n    node = nextNode;\n  } while (node);\n  retryIfBlockedOn(hydrationInstance);\n}\nfunction hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {\n  var node = suspenseInstance;\n  suspenseInstance = 0;\n  do {\n    var nextNode = node.nextSibling;\n    1 === node.nodeType\n      ? isHidden\n        ? ((node._stashedDisplay = node.style.display),\n          (node.style.display = \"none\"))\n        : ((node.style.display = node._stashedDisplay || \"\"),\n          \"\" === node.getAttribute(\"style\") && node.removeAttribute(\"style\"))\n      : 3 === node.nodeType &&\n        (isHidden\n          ? ((node._stashedText = node.nodeValue), (node.nodeValue = \"\"))\n          : (node.nodeValue = node._stashedText || \"\"));\n    if (nextNode && 8 === nextNode.nodeType)\n      if (((node = nextNode.data), \"/$\" === node))\n        if (0 === suspenseInstance) break;\n        else suspenseInstance--;\n      else\n        (\"$\" !== node && \"$?\" !== node && \"$~\" !== node && \"$!\" !== node) ||\n          suspenseInstance++;\n    node = nextNode;\n  } while (node);\n}\nfunction applyViewTransitionName(instance, name, className) {\n  name = CSS.escape(name) !== name ? \"r-\" + btoa(name).replace(/=/g, \"\") : name;\n  instance.style.viewTransitionName = name;\n  null != className && (instance.style.viewTransitionClass = className);\n  className = getComputedStyle(instance);\n  if (\"inline\" === className.display) {\n    name = instance.getClientRects();\n    if (1 === name.length) var JSCompiler_inline_result = 1;\n    else\n      for (var i = (JSCompiler_inline_result = 0); i < name.length; i++) {\n        var rect = name[i];\n        0 < rect.width && 0 < rect.height && JSCompiler_inline_result++;\n      }\n    1 === JSCompiler_inline_result &&\n      ((instance = instance.style),\n      (instance.display = 1 === name.length ? \"inline-block\" : \"block\"),\n      (instance.marginTop = \"-\" + className.paddingTop),\n      (instance.marginBottom = \"-\" + className.paddingBottom));\n  }\n}\nfunction restoreViewTransitionName(instance, props) {\n  instance = instance.style;\n  props = props.style;\n  var viewTransitionName =\n    null != props\n      ? props.hasOwnProperty(\"viewTransitionName\")\n        ? props.viewTransitionName\n        : props.hasOwnProperty(\"view-transition-name\")\n          ? props[\"view-transition-name\"]\n          : null\n      : null;\n  instance.viewTransitionName =\n    null == viewTransitionName || \"boolean\" === typeof viewTransitionName\n      ? \"\"\n      : (\"\" + viewTransitionName).trim();\n  viewTransitionName =\n    null != props\n      ? props.hasOwnProperty(\"viewTransitionClass\")\n        ? props.viewTransitionClass\n        : props.hasOwnProperty(\"view-transition-class\")\n          ? props[\"view-transition-class\"]\n          : null\n      : null;\n  instance.viewTransitionClass =\n    null == viewTransitionName || \"boolean\" === typeof viewTransitionName\n      ? \"\"\n      : (\"\" + viewTransitionName).trim();\n  \"inline-block\" === instance.display &&\n    (null == props\n      ? (instance.display = instance.margin = \"\")\n      : ((viewTransitionName = props.display),\n        (instance.display =\n          null == viewTransitionName || \"boolean\" === typeof viewTransitionName\n            ? \"\"\n            : viewTransitionName),\n        (viewTransitionName = props.margin),\n        null != viewTransitionName\n          ? (instance.margin = viewTransitionName)\n          : ((viewTransitionName = props.hasOwnProperty(\"marginTop\")\n              ? props.marginTop\n              : props[\"margin-top\"]),\n            (instance.marginTop =\n              null == viewTransitionName ||\n              \"boolean\" === typeof viewTransitionName\n                ? \"\"\n                : viewTransitionName),\n            (props = props.hasOwnProperty(\"marginBottom\")\n              ? props.marginBottom\n              : props[\"margin-bottom\"]),\n            (instance.marginBottom =\n              null == props || \"boolean\" === typeof props ? \"\" : props))));\n}\nfunction createMeasurement(rect, computedStyle, element) {\n  element = element.ownerDocument.defaultView;\n  return {\n    rect: rect,\n    abs:\n      \"absolute\" === computedStyle.position ||\n      \"fixed\" === computedStyle.position,\n    clip:\n      \"none\" !== computedStyle.clipPath ||\n      \"visible\" !== computedStyle.overflow ||\n      \"none\" !== computedStyle.filter ||\n      \"none\" !== computedStyle.mask ||\n      \"none\" !== computedStyle.mask ||\n      \"0px\" !== computedStyle.borderRadius,\n    view:\n      0 <= rect.bottom &&\n      0 <= rect.right &&\n      rect.top <= element.innerHeight &&\n      rect.left <= element.innerWidth\n  };\n}\nfunction measureInstance(instance) {\n  var rect = instance.getBoundingClientRect(),\n    computedStyle = getComputedStyle(instance);\n  return createMeasurement(rect, computedStyle, instance);\n}\nfunction measureClonedInstance(instance) {\n  var measuredRect = instance.getBoundingClientRect();\n  measuredRect = new DOMRect(\n    measuredRect.x + 2e4,\n    measuredRect.y + 2e4,\n    measuredRect.width,\n    measuredRect.height\n  );\n  var computedStyle = getComputedStyle(instance);\n  return createMeasurement(measuredRect, computedStyle, instance);\n}\nfunction forceLayout(ownerDocument) {\n  return ownerDocument.documentElement.clientHeight;\n}\nfunction waitForImageToLoad(resolve) {\n  this.addEventListener(\"load\", resolve);\n  this.addEventListener(\"error\", resolve);\n}\nfunction startViewTransition(\n  suspendedState,\n  rootContainer,\n  transitionTypes,\n  mutationCallback,\n  layoutCallback,\n  afterMutationCallback,\n  spawnedWorkCallback,\n  passiveCallback,\n  errorCallback\n) {\n  var ownerDocument =\n    9 === rootContainer.nodeType ? rootContainer : rootContainer.ownerDocument;\n  try {\n    var transition = ownerDocument.startViewTransition({\n      update: function () {\n        var ownerWindow = ownerDocument.defaultView,\n          pendingNavigation =\n            ownerWindow.navigation && ownerWindow.navigation.transition,\n          previousFontLoadingStatus = ownerDocument.fonts.status;\n        mutationCallback();\n        var blockingPromises = [];\n        \"loaded\" === previousFontLoadingStatus &&\n          (forceLayout(ownerDocument),\n          \"loading\" === ownerDocument.fonts.status &&\n            blockingPromises.push(ownerDocument.fonts.ready));\n        previousFontLoadingStatus = blockingPromises.length;\n        if (null !== suspendedState)\n          for (\n            var suspenseyImages = suspendedState.suspenseyImages,\n              imgBytes = 0,\n              i = 0;\n            i < suspenseyImages.length;\n            i++\n          ) {\n            var suspenseyImage = suspenseyImages[i];\n            if (!suspenseyImage.complete) {\n              var rect = suspenseyImage.getBoundingClientRect();\n              if (\n                0 < rect.bottom &&\n                0 < rect.right &&\n                rect.top < ownerWindow.innerHeight &&\n                rect.left < ownerWindow.innerWidth\n              ) {\n                imgBytes += estimateImageBytes(suspenseyImage);\n                if (imgBytes > estimatedBytesWithinLimit) {\n                  blockingPromises.length = previousFontLoadingStatus;\n                  break;\n                }\n                suspenseyImage = new Promise(\n                  waitForImageToLoad.bind(suspenseyImage)\n                );\n                blockingPromises.push(suspenseyImage);\n              }\n            }\n          }\n        if (0 < blockingPromises.length)\n          return (\n            (ownerWindow = Promise.race([\n              Promise.all(blockingPromises),\n              new Promise(function (resolve) {\n                return setTimeout(resolve, 500);\n              })\n            ]).then(layoutCallback, layoutCallback)),\n            (pendingNavigation\n              ? Promise.allSettled([pendingNavigation.finished, ownerWindow])\n              : ownerWindow\n            ).then(afterMutationCallback, afterMutationCallback)\n          );\n        layoutCallback();\n        if (pendingNavigation)\n          return pendingNavigation.finished.then(\n            afterMutationCallback,\n            afterMutationCallback\n          );\n        afterMutationCallback();\n      },\n      types: transitionTypes\n    });\n    ownerDocument.__reactViewTransition = transition;\n    var viewTransitionAnimations = [];\n    transition.ready.then(\n      function () {\n        for (\n          var animations = ownerDocument.documentElement.getAnimations({\n              subtree: !0\n            }),\n            i = 0;\n          i < animations.length;\n          i++\n        ) {\n          var animation = animations[i],\n            effect = animation.effect,\n            pseudoElement = effect.pseudoElement;\n          if (\n            null != pseudoElement &&\n            pseudoElement.startsWith(\"::view-transition\")\n          ) {\n            viewTransitionAnimations.push(animation);\n            animation = effect.getKeyframes();\n            for (\n              var height = (pseudoElement = void 0),\n                unchangedDimensions = !0,\n                j = 0;\n              j < animation.length;\n              j++\n            ) {\n              var keyframe = animation[j],\n                w = keyframe.width;\n              if (void 0 === pseudoElement) pseudoElement = w;\n              else if (pseudoElement !== w) {\n                unchangedDimensions = !1;\n                break;\n              }\n              w = keyframe.height;\n              if (void 0 === height) height = w;\n              else if (height !== w) {\n                unchangedDimensions = !1;\n                break;\n              }\n              delete keyframe.width;\n              delete keyframe.height;\n              \"none\" === keyframe.transform && delete keyframe.transform;\n            }\n            unchangedDimensions &&\n              void 0 !== pseudoElement &&\n              void 0 !== height &&\n              (effect.setKeyframes(animation),\n              (unchangedDimensions = getComputedStyle(\n                effect.target,\n                effect.pseudoElement\n              )),\n              unchangedDimensions.width !== pseudoElement ||\n                unchangedDimensions.height !== height) &&\n              ((unchangedDimensions = animation[0]),\n              (unchangedDimensions.width = pseudoElement),\n              (unchangedDimensions.height = height),\n              (unchangedDimensions = animation[animation.length - 1]),\n              (unchangedDimensions.width = pseudoElement),\n              (unchangedDimensions.height = height),\n              effect.setKeyframes(animation));\n          }\n        }\n        spawnedWorkCallback();\n      },\n      function (error) {\n        ownerDocument.__reactViewTransition === transition &&\n          (ownerDocument.__reactViewTransition = null);\n        try {\n          if (\"object\" === typeof error && null !== error)\n            switch (error.name) {\n              case \"InvalidStateError\":\n                if (\n                  \"View transition was skipped because document visibility state is hidden.\" ===\n                    error.message ||\n                  \"Skipping view transition because document visibility state has become hidden.\" ===\n                    error.message ||\n                  \"Skipping view transition because viewport size changed.\" ===\n                    error.message ||\n                  \"Transition was aborted because of invalid state\" ===\n                    error.message\n                )\n                  error = null;\n            }\n          null !== error && errorCallback(error);\n        } finally {\n          mutationCallback(), layoutCallback(), spawnedWorkCallback();\n        }\n      }\n    );\n    transition.finished.finally(function () {\n      for (var i = 0; i < viewTransitionAnimations.length; i++)\n        viewTransitionAnimations[i].cancel();\n      ownerDocument.__reactViewTransition === transition &&\n        (ownerDocument.__reactViewTransition = null);\n      passiveCallback();\n    });\n    return transition;\n  } catch (x) {\n    return mutationCallback(), layoutCallback(), spawnedWorkCallback(), null;\n  }\n}\nfunction ViewTransitionPseudoElement(pseudo, name) {\n  this._scope = document.documentElement;\n  this._selector = \"::view-transition-\" + pseudo + \"(\" + name + \")\";\n}\nViewTransitionPseudoElement.prototype.animate = function (keyframes, options) {\n  options =\n    \"number\" === typeof options ? { duration: options } : assign({}, options);\n  options.pseudoElement = this._selector;\n  return this._scope.animate(keyframes, options);\n};\nViewTransitionPseudoElement.prototype.getAnimations = function () {\n  for (\n    var scope = this._scope,\n      selector = this._selector,\n      animations = scope.getAnimations({ subtree: !0 }),\n      result = [],\n      i = 0;\n    i < animations.length;\n    i++\n  ) {\n    var effect = animations[i].effect;\n    null !== effect &&\n      effect.target === scope &&\n      effect.pseudoElement === selector &&\n      result.push(animations[i]);\n  }\n  return result;\n};\nViewTransitionPseudoElement.prototype.getComputedStyle = function () {\n  return getComputedStyle(this._scope, this._selector);\n};\nfunction createViewTransitionInstance(name) {\n  return {\n    name: name,\n    group: new ViewTransitionPseudoElement(\"group\", name),\n    imagePair: new ViewTransitionPseudoElement(\"image-pair\", name),\n    old: new ViewTransitionPseudoElement(\"old\", name),\n    new: new ViewTransitionPseudoElement(\"new\", name)\n  };\n}\nfunction FragmentInstance(fragmentFiber) {\n  this._fragmentFiber = fragmentFiber;\n  this._observers = this._eventListeners = null;\n}\nFragmentInstance.prototype.addEventListener = function (\n  type,\n  listener,\n  optionsOrUseCapture\n) {\n  var signal = null,\n    cleanup = null;\n  if (\n    null != optionsOrUseCapture &&\n    \"boolean\" !== typeof optionsOrUseCapture &&\n    ((signal = optionsOrUseCapture.signal || null),\n    null !== signal && signal.aborted)\n  )\n    return;\n  null === this._eventListeners && (this._eventListeners = []);\n  var listeners = this._eventListeners;\n  if (\n    -1 === indexOfEventListener(listeners, type, listener, optionsOrUseCapture)\n  ) {\n    var fragmentInstance = this,\n      attachedListener = listener;\n    null != optionsOrUseCapture &&\n      \"boolean\" !== typeof optionsOrUseCapture &&\n      !0 === optionsOrUseCapture.once &&\n      (attachedListener = function (event) {\n        fragmentInstance.removeEventListener(\n          type,\n          listener,\n          optionsOrUseCapture\n        );\n        \"function\" === typeof listener\n          ? listener.call(this, event)\n          : listener.handleEvent(event);\n      });\n    null !== signal &&\n      ((cleanup = fragmentInstance.removeEventListener.bind(\n        fragmentInstance,\n        type,\n        listener,\n        optionsOrUseCapture\n      )),\n      signal.addEventListener(\"abort\", cleanup, { once: !0 }),\n      (cleanup = signal.removeEventListener.bind(signal, \"abort\", cleanup)));\n    signal = getAttachOptions(optionsOrUseCapture);\n    listeners.push({\n      type: type,\n      listener: listener,\n      optionsOrUseCapture: optionsOrUseCapture,\n      attachedListener: attachedListener,\n      cleanup: cleanup\n    });\n    traverseVisibleInstancesAndTextInstances(\n      this._fragmentFiber.child,\n      !1,\n      addEventListenerToChild,\n      type,\n      attachedListener,\n      signal\n    );\n  }\n  this._eventListeners = listeners;\n};\nfunction addEventListenerToChild(child, type, listener, optionsOrUseCapture) {\n  getInstanceFromHostFiber(child).addEventListener(\n    type,\n    listener,\n    optionsOrUseCapture\n  );\n  return !1;\n}\nFragmentInstance.prototype.removeEventListener = function (\n  type,\n  listener,\n  optionsOrUseCapture\n) {\n  var listeners = this._eventListeners;\n  if (\n    null !== listeners &&\n    ((listener = indexOfEventListener(\n      listeners,\n      type,\n      listener,\n      optionsOrUseCapture\n    )),\n    -1 !== listener)\n  ) {\n    var _listeners$index = listeners[listener];\n    optionsOrUseCapture = _listeners$index.attachedListener;\n    var cleanup = _listeners$index.cleanup;\n    _listeners$index = getAttachOptions(_listeners$index.optionsOrUseCapture);\n    traverseVisibleInstancesAndTextInstances(\n      this._fragmentFiber.child,\n      !1,\n      removeEventListenerFromChild,\n      type,\n      optionsOrUseCapture,\n      _listeners$index\n    );\n    listeners.splice(listener, 1);\n    null !== cleanup && cleanup();\n  }\n};\nfunction removeEventListenerFromChild(\n  child,\n  type,\n  listener,\n  optionsOrUseCapture\n) {\n  getInstanceFromHostFiber(child).removeEventListener(\n    type,\n    listener,\n    optionsOrUseCapture\n  );\n  return !1;\n}\nfunction getAttachOptions(opts) {\n  return null != opts &&\n    \"boolean\" !== typeof opts &&\n    (!0 === opts.once || opts.signal instanceof AbortSignal)\n    ? { capture: opts.capture, passive: opts.passive }\n    : opts;\n}\nfunction normalizeListenerOptions(opts) {\n  return null == opts\n    ? \"c=0\"\n    : \"boolean\" === typeof opts\n      ? \"c=\" + (opts ? \"1\" : \"0\")\n      : \"c=\" + (opts.capture ? \"1\" : \"0\");\n}\nfunction indexOfEventListener(\n  eventListeners,\n  type,\n  listener,\n  optionsOrUseCapture\n) {\n  if (0 === eventListeners.length) return -1;\n  optionsOrUseCapture = normalizeListenerOptions(optionsOrUseCapture);\n  for (var i = 0; i < eventListeners.length; i++) {\n    var item = eventListeners[i];\n    if (\n      item.type === type &&\n      item.listener === listener &&\n      normalizeListenerOptions(item.optionsOrUseCapture) === optionsOrUseCapture\n    )\n      return i;\n  }\n  return -1;\n}\nFragmentInstance.prototype.dispatchEvent = function (event) {\n  var parentHostFiber = getFragmentParentInstanceOrContainerFiber(\n    this._fragmentFiber\n  );\n  if (null === parentHostFiber) return !0;\n  parentHostFiber = getInstanceFromHostFiber(parentHostFiber);\n  var eventListeners = this._eventListeners;\n  if (\n    (null !== eventListeners && 0 < eventListeners.length) ||\n    !event.bubbles\n  ) {\n    var temp =\n      9 === parentHostFiber.nodeType\n        ? parentHostFiber.createComment(\"\")\n        : document.createTextNode(\"\");\n    if (eventListeners)\n      for (var i = 0; i < eventListeners.length; i++) {\n        var _eventListeners$i = eventListeners[i];\n        temp.addEventListener(\n          _eventListeners$i.type,\n          _eventListeners$i.attachedListener,\n          getAttachOptions(_eventListeners$i.optionsOrUseCapture)\n        );\n      }\n    parentHostFiber.appendChild(temp);\n    event = temp.dispatchEvent(event);\n    if (eventListeners)\n      for (i = 0; i < eventListeners.length; i++)\n        (_eventListeners$i = eventListeners[i]),\n          temp.removeEventListener(\n            _eventListeners$i.type,\n            _eventListeners$i.attachedListener,\n            getAttachOptions(_eventListeners$i.optionsOrUseCapture)\n          );\n    parentHostFiber.removeChild(temp);\n    return event;\n  }\n  return parentHostFiber.dispatchEvent(event);\n};\nFragmentInstance.prototype.focus = function (focusOptions) {\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !0,\n    setFocusOnFiberIfFocusable,\n    focusOptions,\n    void 0,\n    void 0\n  );\n};\nfunction setFocusOnFiberIfFocusable(fiber, focusOptions) {\n  if (6 === fiber.tag) return !1;\n  fiber = getInstanceFromHostFiber(fiber);\n  return setFocusIfFocusable(fiber, focusOptions);\n}\nFragmentInstance.prototype.focusLast = function (focusOptions) {\n  var children = [];\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !0,\n    collectChildren,\n    children,\n    void 0,\n    void 0\n  );\n  for (\n    var i = children.length - 1;\n    0 <= i && !setFocusOnFiberIfFocusable(children[i], focusOptions);\n    i--\n  );\n};\nfunction collectChildren(child, collection) {\n  collection.push(child);\n  return !1;\n}\nFragmentInstance.prototype.blur = function () {\n  var parentHostFiber = getFragmentParentInstanceOrContainerFiber(\n    this._fragmentFiber\n  );\n  null !== parentHostFiber &&\n    ((parentHostFiber = getInstanceFromHostFiber(parentHostFiber)),\n    (parentHostFiber =\n      getOwnerDocumentFromRootContainer(parentHostFiber).activeElement),\n    null !== parentHostFiber &&\n      traverseVisibleInstancesAndTextInstances(\n        this._fragmentFiber.child,\n        !1,\n        blurActiveElementWithinFragment,\n        parentHostFiber,\n        void 0,\n        void 0\n      ));\n};\nfunction blurActiveElementWithinFragment(child, activeElement) {\n  if (6 === child.tag) return !1;\n  child = getInstanceFromHostFiber(child);\n  return child === activeElement || child.contains(activeElement)\n    ? (activeElement.blur(), !0)\n    : !1;\n}\nFragmentInstance.prototype.observeUsing = function (observer) {\n  null === this._observers && (this._observers = new Set());\n  this._observers.add(observer);\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !1,\n    observeChild,\n    observer,\n    void 0,\n    void 0\n  );\n};\nfunction observeChild(child, observer) {\n  if (6 === child.tag) return !1;\n  child = getInstanceFromHostFiber(child);\n  observer.observe(child);\n  return !1;\n}\nFragmentInstance.prototype.unobserveUsing = function (observer) {\n  var observers = this._observers;\n  if (null !== observers && observers.has(observer)) {\n    observers.delete(observer);\n    traverseVisibleInstancesAndTextInstances(\n      this._fragmentFiber.child,\n      !1,\n      unobserveChild,\n      observer,\n      void 0,\n      void 0\n    );\n    for (\n      var i = (observers = 0);\n      i < pendingIntersectionUnobserves.length;\n      i++\n    ) {\n      var pending = pendingIntersectionUnobserves[i];\n      pending.fragmentInstance === this && pending.observer === observer\n        ? observer.unobserve(pending.instance)\n        : (pendingIntersectionUnobserves[observers++] = pending);\n    }\n    pendingIntersectionUnobserves.length = observers;\n  }\n};\nfunction unobserveChild(child, observer) {\n  if (6 === child.tag) return !1;\n  child = getInstanceFromHostFiber(child);\n  observer.unobserve(child);\n  return !1;\n}\nvar pendingIntersectionUnobserves = [],\n  intersectionUnobserveScheduled = !1;\nfunction schedulePendingIntersectionUnobserve(\n  fragmentInstance,\n  observer,\n  instance\n) {\n  pendingIntersectionUnobserves.push({\n    fragmentInstance: fragmentInstance,\n    observer: observer,\n    instance: instance\n  });\n  intersectionUnobserveScheduled ||\n    ((intersectionUnobserveScheduled = !0),\n    requestPostPaintCallback(function () {\n      intersectionUnobserveScheduled = !1;\n      var pending = pendingIntersectionUnobserves;\n      pendingIntersectionUnobserves = [];\n      for (var i = 0; i < pending.length; i++) {\n        var item = pending[i];\n        item.observer.unobserve(item.instance);\n      }\n    }));\n}\nFragmentInstance.prototype.getClientRects = function () {\n  var rects = [];\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !1,\n    collectClientRects,\n    rects,\n    void 0,\n    void 0\n  );\n  return rects;\n};\nfunction collectClientRects(child, rects) {\n  if (6 === child.tag) {\n    child = child.stateNode;\n    var range = child.ownerDocument.createRange();\n    range.selectNodeContents(child);\n    rects.push.apply(rects, range.getClientRects());\n  } else\n    (child = getInstanceFromHostFiber(child)),\n      rects.push.apply(rects, child.getClientRects());\n  return !1;\n}\nFragmentInstance.prototype.getRootNode = function (getRootNodeOptions) {\n  var parentHostFiber = getFragmentParentInstanceOrContainerFiber(\n    this._fragmentFiber\n  );\n  return null === parentHostFiber\n    ? this\n    : getInstanceFromHostFiber(parentHostFiber).getRootNode(getRootNodeOptions);\n};\nFragmentInstance.prototype.compareDocumentPosition = function (otherNode) {\n  var parentHostFiber = getFragmentParentInstanceOrContainerFiber(\n    this._fragmentFiber\n  );\n  if (null === parentHostFiber) return Node.DOCUMENT_POSITION_DISCONNECTED;\n  var children = [];\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !1,\n    collectChildren,\n    children,\n    void 0,\n    void 0\n  );\n  var parentHostInstance = getInstanceFromHostFiber(parentHostFiber);\n  if (0 === children.length) {\n    children = parentHostInstance;\n    if (fiberIsPortaledIntoHost(this._fragmentFiber)) {\n      a: {\n        for (\n          parentHostFiber = this._fragmentFiber.return;\n          null !== parentHostFiber;\n\n        ) {\n          if (4 === parentHostFiber.tag) {\n            parentHostFiber = parentHostFiber.stateNode.containerInfo;\n            break a;\n          }\n          if (\n            3 === parentHostFiber.tag ||\n            5 === parentHostFiber.tag ||\n            27 === parentHostFiber.tag\n          )\n            break;\n          parentHostFiber = parentHostFiber.return;\n        }\n        parentHostFiber = null;\n      }\n      null != parentHostFiber && (children = parentHostFiber);\n    }\n    parentHostFiber = this._fragmentFiber;\n    var result = (parentHostInstance =\n      children.compareDocumentPosition(otherNode));\n    children === otherNode\n      ? (result = Node.DOCUMENT_POSITION_CONTAINS)\n      : parentHostInstance & Node.DOCUMENT_POSITION_CONTAINED_BY &&\n        ((children =\n          getFragmentInstanceOrTextInstanceSiblings(parentHostFiber)[1]),\n        null === children\n          ? (result = Node.DOCUMENT_POSITION_PRECEDING)\n          : ((otherNode =\n              getInstanceFromHostFiber(children).compareDocumentPosition(\n                otherNode\n              )),\n            (result =\n              0 === otherNode || otherNode & Node.DOCUMENT_POSITION_FOLLOWING\n                ? Node.DOCUMENT_POSITION_FOLLOWING\n                : Node.DOCUMENT_POSITION_PRECEDING)));\n    return (result |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC);\n  }\n  parentHostFiber = getInstanceFromHostFiber(children[0]);\n  result = getInstanceFromHostFiber(children[children.length - 1]);\n  var parentHostInstanceFromDOM = fiberIsPortaledIntoHost(this._fragmentFiber)\n    ? parentHostFiber.parentElement\n    : parentHostInstance;\n  if (null == parentHostInstanceFromDOM)\n    return Node.DOCUMENT_POSITION_DISCONNECTED;\n  parentHostInstance =\n    parentHostInstanceFromDOM.compareDocumentPosition(parentHostFiber) &\n    Node.DOCUMENT_POSITION_CONTAINED_BY;\n  parentHostInstanceFromDOM =\n    parentHostInstanceFromDOM.compareDocumentPosition(result) &\n    Node.DOCUMENT_POSITION_CONTAINED_BY;\n  var firstResult = parentHostFiber.compareDocumentPosition(otherNode),\n    lastResult = result.compareDocumentPosition(otherNode),\n    otherNodeIsWithinFirstOrLastChild =\n      firstResult & Node.DOCUMENT_POSITION_CONTAINED_BY ||\n      lastResult & Node.DOCUMENT_POSITION_CONTAINED_BY;\n  lastResult =\n    parentHostInstance &&\n    parentHostInstanceFromDOM &&\n    firstResult & Node.DOCUMENT_POSITION_FOLLOWING &&\n    lastResult & Node.DOCUMENT_POSITION_PRECEDING;\n  parentHostFiber =\n    (parentHostInstance && parentHostFiber === otherNode) ||\n    (parentHostInstanceFromDOM && result === otherNode) ||\n    otherNodeIsWithinFirstOrLastChild ||\n    lastResult\n      ? Node.DOCUMENT_POSITION_CONTAINED_BY\n      : (!parentHostInstance && parentHostFiber === otherNode) ||\n          (!parentHostInstanceFromDOM && result === otherNode)\n        ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC\n        : firstResult;\n  return parentHostFiber & Node.DOCUMENT_POSITION_DISCONNECTED ||\n    parentHostFiber & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC ||\n    validateDocumentPositionWithFiberTree(\n      parentHostFiber,\n      this._fragmentFiber,\n      children[0],\n      children[children.length - 1],\n      otherNode\n    )\n    ? parentHostFiber\n    : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;\n};\nfunction validateDocumentPositionWithFiberTree(\n  documentPosition,\n  fragmentFiber,\n  precedingBoundaryFiber,\n  followingBoundaryFiber,\n  otherNode\n) {\n  var otherFiber = getClosestInstanceFromNode(otherNode);\n  if (documentPosition & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n    if ((precedingBoundaryFiber = !!otherFiber))\n      a: {\n        for (; null !== otherFiber; ) {\n          if (\n            7 === otherFiber.tag &&\n            (otherFiber === fragmentFiber ||\n              otherFiber.alternate === fragmentFiber)\n          ) {\n            precedingBoundaryFiber = !0;\n            break a;\n          }\n          otherFiber = otherFiber.return;\n        }\n        precedingBoundaryFiber = !1;\n      }\n    return precedingBoundaryFiber;\n  }\n  if (documentPosition & Node.DOCUMENT_POSITION_CONTAINS) {\n    if (null === otherFiber)\n      return (\n        (otherFiber = otherNode.ownerDocument),\n        otherNode === otherFiber ||\n          otherNode === otherFiber.documentElement ||\n          otherNode === otherFiber.body\n      );\n    a: {\n      otherFiber = fragmentFiber;\n      for (\n        fragmentFiber =\n          getFragmentParentInstanceOrContainerFiber(fragmentFiber);\n        null !== otherFiber;\n\n      ) {\n        if (\n          !(\n            (5 !== otherFiber.tag &&\n              3 !== otherFiber.tag &&\n              27 !== otherFiber.tag) ||\n            (otherFiber !== fragmentFiber &&\n              otherFiber.alternate !== fragmentFiber)\n          )\n        ) {\n          otherFiber = !0;\n          break a;\n        }\n        otherFiber = otherFiber.return;\n      }\n      otherFiber = !1;\n    }\n    return otherFiber;\n  }\n  return documentPosition & Node.DOCUMENT_POSITION_PRECEDING\n    ? ((fragmentFiber = !!otherFiber) &&\n        !(fragmentFiber = otherFiber === precedingBoundaryFiber) &&\n        ((fragmentFiber = getLowestCommonAncestor(\n          precedingBoundaryFiber,\n          otherFiber,\n          getParentForFragmentAncestors\n        )),\n        null === fragmentFiber\n          ? (fragmentFiber = !1)\n          : (traverseVisibleInstancesAndTextInstances(\n              fragmentFiber,\n              !0,\n              isFiberPrecedingCheck,\n              otherFiber,\n              precedingBoundaryFiber\n            ),\n            (otherFiber = searchTarget),\n            (searchTarget = null),\n            (fragmentFiber = null !== otherFiber))),\n      fragmentFiber)\n    : documentPosition & Node.DOCUMENT_POSITION_FOLLOWING\n      ? ((fragmentFiber = !!otherFiber) &&\n          !(fragmentFiber = otherFiber === followingBoundaryFiber) &&\n          ((fragmentFiber = getLowestCommonAncestor(\n            followingBoundaryFiber,\n            otherFiber,\n            getParentForFragmentAncestors\n          )),\n          null === fragmentFiber\n            ? (fragmentFiber = !1)\n            : (traverseVisibleInstancesAndTextInstances(\n                fragmentFiber,\n                !0,\n                isFiberFollowingCheck,\n                otherFiber,\n                followingBoundaryFiber\n              ),\n              (otherFiber = searchTarget),\n              (searchBoundary = searchTarget = null),\n              (fragmentFiber = null !== otherFiber))),\n        fragmentFiber)\n      : !1;\n}\nfunction scrollTextNodeIntoView(textNode, resolvedAlignToTop) {\n  var range = textNode.ownerDocument.createRange();\n  range.selectNodeContents(textNode);\n  textNode = range.getBoundingClientRect();\n  window.scrollTo(\n    window.scrollX + textNode.left,\n    resolvedAlignToTop\n      ? window.scrollY + textNode.top\n      : window.scrollY + textNode.bottom - window.innerHeight\n  );\n}\nFragmentInstance.prototype.scrollIntoView = function (alignToTop) {\n  if (\"object\" === typeof alignToTop) throw Error(formatProdErrorMessage(566));\n  var children = [];\n  traverseVisibleInstancesAndTextInstances(\n    this._fragmentFiber.child,\n    !1,\n    collectChildren,\n    children,\n    void 0,\n    void 0\n  );\n  var resolvedAlignToTop = !1 !== alignToTop;\n  if (0 === children.length) {\n    var hostSiblings = getFragmentInstanceOrTextInstanceSiblings(\n      this._fragmentFiber\n    );\n    hostSiblings = resolvedAlignToTop\n      ? hostSiblings[1] ||\n        hostSiblings[0] ||\n        getFragmentParentInstanceOrContainerFiber(this._fragmentFiber)\n      : hostSiblings[0] || hostSiblings[1];\n    if (null === hostSiblings) return;\n    if (6 === hostSiblings.tag) {\n      alignToTop = getInstanceFromHostFiber(hostSiblings);\n      scrollTextNodeIntoView(alignToTop, resolvedAlignToTop);\n      return;\n    }\n    hostSiblings = getInstanceFromHostFiber(hostSiblings);\n    if (9 !== hostSiblings.nodeType) {\n      if (11 === hostSiblings.nodeType) {\n        resolvedAlignToTop = \"host\" in hostSiblings ? hostSiblings.host : null;\n        null !== resolvedAlignToTop &&\n          resolvedAlignToTop.scrollIntoView(alignToTop);\n        return;\n      }\n      hostSiblings.scrollIntoView(alignToTop);\n    }\n  }\n  for (\n    hostSiblings = resolvedAlignToTop ? children.length - 1 : 0;\n    hostSiblings !== (resolvedAlignToTop ? -1 : children.length);\n\n  ) {\n    var child = children[hostSiblings];\n    6 === child.tag\n      ? ((child = getInstanceFromHostFiber(child)),\n        scrollTextNodeIntoView(child, resolvedAlignToTop))\n      : getInstanceFromHostFiber(child).scrollIntoView(alignToTop);\n    hostSiblings += resolvedAlignToTop ? -1 : 1;\n  }\n};\nfunction addFragmentHandleToFiber(child, fragmentInstance) {\n  child = getInstanceFromHostFiber(child);\n  addFragmentHandleToInstance(child, fragmentInstance);\n  return !1;\n}\nfunction addFragmentHandleToInstance(instance, fragmentInstance) {\n  null == instance.reactFragments && (instance.reactFragments = new Set());\n  instance.reactFragments.add(fragmentInstance);\n}\nfunction commitNewChildToFragmentInstance(childInstance, fragmentInstance) {\n  var eventListeners = fragmentInstance._eventListeners;\n  if (null !== eventListeners)\n    for (var i$jscomp$0 = 0; i$jscomp$0 < eventListeners.length; i$jscomp$0++) {\n      var _eventListeners$i3 = eventListeners[i$jscomp$0];\n      childInstance.addEventListener(\n        _eventListeners$i3.type,\n        _eventListeners$i3.attachedListener,\n        getAttachOptions(_eventListeners$i3.optionsOrUseCapture)\n      );\n    }\n  3 !== childInstance.nodeType &&\n    ((eventListeners = fragmentInstance._observers),\n    null !== eventListeners &&\n      eventListeners.forEach(function (observer) {\n        for (\n          var writeIdx = 0, i = 0;\n          i < pendingIntersectionUnobserves.length;\n          i++\n        ) {\n          var pending = pendingIntersectionUnobserves[i];\n          if (\n            pending.fragmentInstance !== fragmentInstance ||\n            pending.observer !== observer ||\n            pending.instance !== childInstance\n          )\n            pendingIntersectionUnobserves[writeIdx++] = pending;\n        }\n        pendingIntersectionUnobserves.length = writeIdx;\n        observer.observe(childInstance);\n      }),\n    addFragmentHandleToInstance(childInstance, fragmentInstance));\n}\nfunction deleteChildFromFragmentInstance(childInstance, fragmentInstance) {\n  var eventListeners = fragmentInstance._eventListeners;\n  if (null !== eventListeners)\n    for (var i = 0; i < eventListeners.length; i++) {\n      var _eventListeners$i4 = eventListeners[i];\n      childInstance.removeEventListener(\n        _eventListeners$i4.type,\n        _eventListeners$i4.attachedListener,\n        getAttachOptions(_eventListeners$i4.optionsOrUseCapture)\n      );\n    }\n  3 !== childInstance.nodeType &&\n    ((eventListeners = fragmentInstance._observers),\n    null !== eventListeners &&\n      eventListeners.forEach(function (observer) {\n        \"string\" === typeof observer.rootMargin\n          ? schedulePendingIntersectionUnobserve(\n              fragmentInstance,\n              observer,\n              childInstance\n            )\n          : observer.unobserve(childInstance);\n      }),\n    null != childInstance.reactFragments &&\n      childInstance.reactFragments.delete(fragmentInstance));\n}\nfunction clearContainerSparingly(container) {\n  var nextNode = container.firstChild;\n  nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling);\n  for (; nextNode; ) {\n    var node = nextNode;\n    nextNode = nextNode.nextSibling;\n    switch (node.nodeName) {\n      case \"HTML\":\n      case \"HEAD\":\n      case \"BODY\":\n        clearContainerSparingly(node);\n        detachDeletedInstance(node);\n        continue;\n      case \"SCRIPT\":\n      case \"STYLE\":\n        continue;\n      case \"LINK\":\n        if (\"stylesheet\" === node.rel.toLowerCase()) continue;\n    }\n    container.removeChild(node);\n  }\n}\nfunction canHydrateInstance(instance, type, props, inRootOrSingleton) {\n  for (; 1 === instance.nodeType; ) {\n    var anyProps = props;\n    if (instance.nodeName.toLowerCase() !== type.toLowerCase()) {\n      if (\n        !inRootOrSingleton &&\n        (\"INPUT\" !== instance.nodeName || \"hidden\" !== instance.type)\n      )\n        break;\n    } else if (!inRootOrSingleton)\n      if (\"input\" === type && \"hidden\" === instance.type) {\n        var name = null == anyProps.name ? null : \"\" + anyProps.name;\n        if (\n          \"hidden\" === anyProps.type &&\n          instance.getAttribute(\"name\") === name\n        )\n          return instance;\n      } else return instance;\n    else if (!instance[internalHoistableMarker])\n      switch (type) {\n        case \"meta\":\n          if (!instance.hasAttribute(\"itemprop\")) break;\n          return instance;\n        case \"link\":\n          name = instance.getAttribute(\"rel\");\n          if (\"stylesheet\" === name && instance.hasAttribute(\"data-precedence\"))\n            break;\n          else if (\n            name !== anyProps.rel ||\n            instance.getAttribute(\"href\") !==\n              (null == anyProps.href || \"\" === anyProps.href\n                ? null\n                : anyProps.href) ||\n            instance.getAttribute(\"crossorigin\") !==\n              (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||\n            instance.getAttribute(\"title\") !==\n              (null == anyProps.title ? null : anyProps.title)\n          )\n            break;\n          return instance;\n        case \"style\":\n          if (instance.hasAttribute(\"data-precedence\")) break;\n          return instance;\n        case \"script\":\n          name = instance.getAttribute(\"src\");\n          if (\n            (name !== (null == anyProps.src ? null : anyProps.src) ||\n              instance.getAttribute(\"type\") !==\n                (null == anyProps.type ? null : anyProps.type) ||\n              instance.getAttribute(\"crossorigin\") !==\n                (null == anyProps.crossOrigin ? null : anyProps.crossOrigin)) &&\n            name &&\n            instance.hasAttribute(\"async\") &&\n            !instance.hasAttribute(\"itemprop\")\n          )\n            break;\n          return instance;\n        default:\n          return instance;\n      }\n    instance = getNextHydratable(instance.nextSibling);\n    if (null === instance) break;\n  }\n  return null;\n}\nfunction canHydrateTextInstance(instance, text, inRootOrSingleton) {\n  if (\"\" === text) return null;\n  for (; 3 !== instance.nodeType; ) {\n    if (\n      (1 !== instance.nodeType ||\n        \"INPUT\" !== instance.nodeName ||\n        \"hidden\" !== instance.type) &&\n      !inRootOrSingleton\n    )\n      return null;\n    instance = getNextHydratable(instance.nextSibling);\n    if (null === instance) return null;\n  }\n  return instance;\n}\nfunction canHydrateHydrationBoundary(instance, inRootOrSingleton) {\n  for (; 8 !== instance.nodeType; ) {\n    if (\n      (1 !== instance.nodeType ||\n        \"INPUT\" !== instance.nodeName ||\n        \"hidden\" !== instance.type) &&\n      !inRootOrSingleton\n    )\n      return null;\n    instance = getNextHydratable(instance.nextSibling);\n    if (null === instance) return null;\n  }\n  return instance;\n}\nfunction isSuspenseInstancePending(instance) {\n  return \"$?\" === instance.data || \"$~\" === instance.data;\n}\nfunction isSuspenseInstanceFallback(instance) {\n  return (\n    \"$!\" === instance.data ||\n    (\"$?\" === instance.data && \"loading\" !== instance.ownerDocument.readyState)\n  );\n}\nfunction registerSuspenseInstanceRetry(instance, callback) {\n  var ownerDocument = instance.ownerDocument;\n  if (\"$~\" === instance.data) instance._reactRetry = callback;\n  else if (\"$?\" !== instance.data || \"loading\" !== ownerDocument.readyState)\n    callback();\n  else {\n    var listener = function () {\n      callback();\n      ownerDocument.removeEventListener(\"DOMContentLoaded\", listener);\n    };\n    ownerDocument.addEventListener(\"DOMContentLoaded\", listener);\n    instance._reactRetry = listener;\n  }\n}\nfunction getNextHydratable(node) {\n  for (; null != node; node = node.nextSibling) {\n    var nodeType = node.nodeType;\n    if (1 === nodeType || 3 === nodeType) break;\n    if (8 === nodeType) {\n      nodeType = node.data;\n      if (\n        \"$\" === nodeType ||\n        \"$!\" === nodeType ||\n        \"$?\" === nodeType ||\n        \"$~\" === nodeType ||\n        \"&\" === nodeType ||\n        \"F!\" === nodeType ||\n        \"F\" === nodeType\n      )\n        break;\n      if (\"/$\" === nodeType || \"/&\" === nodeType) return null;\n    }\n  }\n  return node;\n}\nvar previousHydratableOnEnteringScopedSingleton = null;\nfunction getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {\n  hydrationInstance = hydrationInstance.nextSibling;\n  for (var depth = 0; hydrationInstance; ) {\n    if (8 === hydrationInstance.nodeType) {\n      var data = hydrationInstance.data;\n      if (\"/$\" === data || \"/&\" === data) {\n        if (0 === depth)\n          return getNextHydratable(hydrationInstance.nextSibling);\n        depth--;\n      } else\n        (\"$\" !== data &&\n          \"$!\" !== data &&\n          \"$?\" !== data &&\n          \"$~\" !== data &&\n          \"&\" !== data) ||\n          depth++;\n    }\n    hydrationInstance = hydrationInstance.nextSibling;\n  }\n  return null;\n}\nfunction getParentHydrationBoundary(targetInstance) {\n  targetInstance = targetInstance.previousSibling;\n  for (var depth = 0; targetInstance; ) {\n    if (8 === targetInstance.nodeType) {\n      var data = targetInstance.data;\n      if (\n        \"$\" === data ||\n        \"$!\" === data ||\n        \"$?\" === data ||\n        \"$~\" === data ||\n        \"&\" === data\n      ) {\n        if (0 === depth) return targetInstance;\n        depth--;\n      } else (\"/$\" !== data && \"/&\" !== data) || depth++;\n    }\n    targetInstance = targetInstance.previousSibling;\n  }\n  return null;\n}\nfunction setFocusIfFocusable(node, focusOptions) {\n  function handleFocus() {\n    didFocus = !0;\n  }\n  if (node.ownerDocument.activeElement === node) return !0;\n  var didFocus = !1;\n  try {\n    node.ownerDocument.addEventListener(\"focus\", handleFocus, !0),\n      (node.focus || HTMLElement.prototype.focus).call(node, focusOptions);\n  } finally {\n    node.ownerDocument.removeEventListener(\"focus\", handleFocus, !0);\n  }\n  return didFocus;\n}\nfunction requestPostPaintCallback(callback) {\n  localRequestAnimationFrame(function () {\n    localRequestAnimationFrame(function (time) {\n      return callback(time);\n    });\n  });\n}\nfunction resolveSingletonInstance(type, props, rootContainerInstance) {\n  props = getOwnerDocumentFromRootContainer(rootContainerInstance);\n  switch (type) {\n    case \"html\":\n      type = props.documentElement;\n      if (!type) throw Error(formatProdErrorMessage(452));\n      return type;\n    case \"head\":\n      type = props.head;\n      if (!type) throw Error(formatProdErrorMessage(453));\n      return type;\n    case \"body\":\n      type = props.body;\n      if (!type) throw Error(formatProdErrorMessage(454));\n      return type;\n    default:\n      throw Error(formatProdErrorMessage(451));\n  }\n}\nfunction releaseSingletonInstance(instance, type, props) {\n  for (var propKey in props) {\n    var propValue = props[propKey];\n    props.hasOwnProperty(propKey) &&\n      null != propValue &&\n      setProp(instance, type, propKey, null, emptyProps, propValue);\n  }\n  null != props.dangerouslySetInnerHTML && (instance.textContent = \"\");\n  instance.onclick === noop$1 && (instance.onclick = null);\n  detachDeletedInstance(instance);\n}\nfunction clearSingletonPreambleContribution(instance) {\n  for (var attributes = instance.attributes; attributes.length; )\n    instance.removeAttributeNode(attributes[0]);\n  detachDeletedInstance(instance);\n}\nvar preloadPropsMap = new Map(),\n  preconnectsSet = new Set();\nfunction getHoistableRoot(container) {\n  if (\"function\" === typeof container.getRootNode) {\n    var rootNode = container.getRootNode();\n    if (9 === rootNode.nodeType || 11 === rootNode.nodeType) return rootNode;\n  }\n  return 9 === container.nodeType ? container : container.ownerDocument;\n}\nvar previousDispatcher = ReactDOMSharedInternals.d;\nReactDOMSharedInternals.d = {\n  f: flushSyncWork,\n  r: requestFormReset,\n  D: prefetchDNS,\n  C: preconnect,\n  L: preload,\n  m: preloadModule,\n  X: preinitScript,\n  S: preinitStyle,\n  M: preinitModuleScript\n};\nfunction flushSyncWork() {\n  var previousWasRendering = previousDispatcher.f(),\n    wasRendering = flushSyncWork$1();\n  return previousWasRendering || wasRendering;\n}\nfunction requestFormReset(form) {\n  var formInst = getInstanceFromNode(form);\n  null !== formInst && 5 === formInst.tag && \"form\" === formInst.type\n    ? requestFormReset$1(formInst)\n    : previousDispatcher.r(form);\n}\nvar globalDocument = \"undefined\" === typeof document ? null : document;\nfunction preconnectAs(rel, href, crossOrigin) {\n  var ownerDocument = globalDocument;\n  if (ownerDocument && \"string\" === typeof href && href) {\n    var limitedEscapedHref =\n      escapeSelectorAttributeValueInsideDoubleQuotes(href);\n    limitedEscapedHref =\n      'link[rel=\"' + rel + '\"][href=\"' + limitedEscapedHref + '\"]';\n    \"string\" === typeof crossOrigin &&\n      (limitedEscapedHref += '[crossorigin=\"' + crossOrigin + '\"]');\n    preconnectsSet.has(limitedEscapedHref) ||\n      (preconnectsSet.add(limitedEscapedHref),\n      (rel = { rel: rel, crossOrigin: crossOrigin, href: href }),\n      null === ownerDocument.querySelector(limitedEscapedHref) &&\n        ((href = ownerDocument.createElement(\"link\")),\n        setInitialProperties(href, \"link\", rel),\n        markNodeAsHoistable(href),\n        ownerDocument.head.appendChild(href)));\n  }\n}\nfunction prefetchDNS(href) {\n  previousDispatcher.D(href);\n  preconnectAs(\"dns-prefetch\", href, null);\n}\nfunction preconnect(href, crossOrigin) {\n  previousDispatcher.C(href, crossOrigin);\n  preconnectAs(\"preconnect\", href, crossOrigin);\n}\nfunction preload(href, as, options) {\n  previousDispatcher.L(href, as, options);\n  var ownerDocument = globalDocument;\n  if (ownerDocument && href && as) {\n    var preloadSelector =\n      'link[rel=\"preload\"][as=\"' +\n      escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n      '\"]';\n    \"image\" === as\n      ? options && options.imageSrcSet\n        ? ((preloadSelector +=\n            '[imagesrcset=\"' +\n            escapeSelectorAttributeValueInsideDoubleQuotes(\n              options.imageSrcSet\n            ) +\n            '\"]'),\n          \"string\" === typeof options.imageSizes &&\n            (preloadSelector +=\n              '[imagesizes=\"' +\n              escapeSelectorAttributeValueInsideDoubleQuotes(\n                options.imageSizes\n              ) +\n              '\"]'))\n        : (preloadSelector +=\n            '[href=\"' +\n            escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n            '\"]')\n      : (preloadSelector +=\n          '[href=\"' +\n          escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n          '\"]');\n    var key = preloadSelector;\n    switch (as) {\n      case \"style\":\n        key = getStyleKey(href);\n        break;\n      case \"script\":\n        key = getScriptKey(href);\n    }\n    if (\n      !(\n        preloadPropsMap.has(key) ||\n        ((href = assign(\n          {\n            rel: \"preload\",\n            href:\n              \"image\" === as && options && options.imageSrcSet ? void 0 : href,\n            as: as\n          },\n          options\n        )),\n        preloadPropsMap.set(key, href),\n        null !== ownerDocument.querySelector(preloadSelector) ||\n          (\"style\" === as &&\n            ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) ||\n          (\"script\" === as &&\n            ownerDocument.querySelector(getScriptSelectorFromKey(key))))\n      )\n    ) {\n      var instance = ownerDocument.createElement(\"link\");\n      setInitialProperties(instance, \"link\", href);\n      \"style\" === as &&\n        ((instance[internalLoadPendingKey] = !0),\n        (instance.onload = instance.onerror =\n          function () {\n            clearPendingLoadOnNode(instance);\n          }));\n      markNodeAsHoistable(instance);\n      ownerDocument.head.appendChild(instance);\n    }\n  }\n}\nfunction preloadModule(href, options) {\n  previousDispatcher.m(href, options);\n  var ownerDocument = globalDocument;\n  if (ownerDocument && href) {\n    var as = options && \"string\" === typeof options.as ? options.as : \"script\",\n      preloadSelector =\n        'link[rel=\"modulepreload\"][as=\"' +\n        escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n        '\"][href=\"' +\n        escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n        '\"]',\n      key = preloadSelector;\n    switch (as) {\n      case \"audioworklet\":\n      case \"paintworklet\":\n      case \"serviceworker\":\n      case \"sharedworker\":\n      case \"worker\":\n      case \"script\":\n        key = getScriptKey(href);\n    }\n    if (\n      !preloadPropsMap.has(key) &&\n      ((href = assign({ rel: \"modulepreload\", href: href }, options)),\n      preloadPropsMap.set(key, href),\n      null === ownerDocument.querySelector(preloadSelector))\n    ) {\n      switch (as) {\n        case \"audioworklet\":\n        case \"paintworklet\":\n        case \"serviceworker\":\n        case \"sharedworker\":\n        case \"worker\":\n        case \"script\":\n          if (ownerDocument.querySelector(getScriptSelectorFromKey(key)))\n            return;\n      }\n      as = ownerDocument.createElement(\"link\");\n      setInitialProperties(as, \"link\", href);\n      markNodeAsHoistable(as);\n      ownerDocument.head.appendChild(as);\n    }\n  }\n}\nfunction preinitStyle(href, precedence, options) {\n  previousDispatcher.S(href, precedence, options);\n  var ownerDocument = globalDocument;\n  if (ownerDocument && href) {\n    var styles = getResourcesFromRoot(ownerDocument).hoistableStyles,\n      key = getStyleKey(href);\n    precedence = precedence || \"default\";\n    var resource = styles.get(key);\n    if (!resource) {\n      var state = { loading: 0, preload: null };\n      if (\n        (resource = ownerDocument.querySelector(\n          getStylesheetSelectorFromKey(key)\n        ))\n      )\n        state.loading = 5;\n      else {\n        href = assign(\n          { rel: \"stylesheet\", href: href, \"data-precedence\": precedence },\n          options\n        );\n        (options = preloadPropsMap.get(key)) &&\n          adoptPreloadPropsForStylesheet(href, options);\n        var link = (resource = ownerDocument.createElement(\"link\"));\n        markNodeAsHoistable(link);\n        setInitialProperties(link, \"link\", href);\n        link._p = new Promise(function (resolve, reject) {\n          link.onload = resolve;\n          link.onerror = reject;\n        });\n        link.addEventListener(\"load\", function () {\n          state.loading |= 1;\n        });\n        link.addEventListener(\"error\", function () {\n          state.loading |= 2;\n        });\n        state.loading |= 4;\n        insertStylesheet(resource, precedence, ownerDocument);\n      }\n      resource = {\n        type: \"stylesheet\",\n        instance: resource,\n        count: 1,\n        state: state\n      };\n      styles.set(key, resource);\n    }\n  }\n}\nfunction preinitScript(src, options) {\n  previousDispatcher.X(src, options);\n  var ownerDocument = globalDocument;\n  if (ownerDocument && src) {\n    var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n      key = getScriptKey(src),\n      resource = scripts.get(key);\n    resource ||\n      ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n      resource ||\n        ((src = assign({ src: src, async: !0 }, options)),\n        (options = preloadPropsMap.get(key)) &&\n          adoptPreloadPropsForScript(src, options),\n        (resource = ownerDocument.createElement(\"script\")),\n        markNodeAsHoistable(resource),\n        setInitialProperties(resource, \"link\", src),\n        ownerDocument.head.appendChild(resource)),\n      (resource = {\n        type: \"script\",\n        instance: resource,\n        count: 1,\n        state: null\n      }),\n      scripts.set(key, resource));\n  }\n}\nfunction preinitModuleScript(src, options) {\n  previousDispatcher.M(src, options);\n  var ownerDocument = globalDocument;\n  if (ownerDocument && src) {\n    var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n      key = getScriptKey(src),\n      resource = scripts.get(key);\n    resource ||\n      ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n      resource ||\n        ((src = assign({ src: src, async: !0, type: \"module\" }, options)),\n        (options = preloadPropsMap.get(key)) &&\n          adoptPreloadPropsForScript(src, options),\n        (resource = ownerDocument.createElement(\"script\")),\n        markNodeAsHoistable(resource),\n        setInitialProperties(resource, \"link\", src),\n        ownerDocument.head.appendChild(resource)),\n      (resource = {\n        type: \"script\",\n        instance: resource,\n        count: 1,\n        state: null\n      }),\n      scripts.set(key, resource));\n  }\n}\nfunction getResource(type, currentProps, pendingProps, currentResource) {\n  var JSCompiler_inline_result = (JSCompiler_inline_result =\n    rootInstanceStackCursor.current)\n    ? getHoistableRoot(JSCompiler_inline_result)\n    : null;\n  if (!JSCompiler_inline_result) throw Error(formatProdErrorMessage(446));\n  switch (type) {\n    case \"meta\":\n    case \"title\":\n      return null;\n    case \"style\":\n      return \"string\" === typeof pendingProps.precedence &&\n        \"string\" === typeof pendingProps.href\n        ? ((pendingProps = getStyleKey(pendingProps.href)),\n          (currentProps = getResourcesFromRoot(\n            JSCompiler_inline_result\n          ).hoistableStyles),\n          (currentResource = currentProps.get(pendingProps)),\n          currentResource ||\n            ((currentResource = {\n              type: \"style\",\n              instance: null,\n              count: 0,\n              state: null\n            }),\n            currentProps.set(pendingProps, currentResource)),\n          currentResource)\n        : { type: \"void\", instance: null, count: 0, state: null };\n    case \"link\":\n      if (\n        \"stylesheet\" === pendingProps.rel &&\n        \"string\" === typeof pendingProps.href &&\n        \"string\" === typeof pendingProps.precedence\n      ) {\n        type = getStyleKey(pendingProps.href);\n        var styles$268 = getResourcesFromRoot(\n            JSCompiler_inline_result\n          ).hoistableStyles,\n          resource$269 = styles$268.get(type);\n        resource$269 ||\n          ((JSCompiler_inline_result =\n            JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),\n          (resource$269 = {\n            type: \"stylesheet\",\n            instance: null,\n            count: 0,\n            state: { loading: 0, preload: null }\n          }),\n          styles$268.set(type, resource$269),\n          (styles$268 = JSCompiler_inline_result.querySelector(\n            getStylesheetSelectorFromKey(type)\n          ))\n            ? styles$268._p ||\n              ((resource$269.instance = styles$268),\n              (resource$269.state.loading = 5))\n            : ((styles$268 = preloadPropsMap.get(type)),\n              styles$268 ||\n                ((styles$268 = {\n                  rel: \"preload\",\n                  as: \"style\",\n                  href: pendingProps.href,\n                  crossOrigin: pendingProps.crossOrigin,\n                  integrity: pendingProps.integrity,\n                  media: pendingProps.media,\n                  hrefLang: pendingProps.hrefLang,\n                  referrerPolicy: pendingProps.referrerPolicy\n                }),\n                preloadPropsMap.set(type, styles$268)),\n              preloadStylesheet(\n                JSCompiler_inline_result,\n                type,\n                styles$268,\n                resource$269.state\n              )));\n        if (currentProps && null === currentResource)\n          throw Error(formatProdErrorMessage(528, \"\"));\n        return resource$269;\n      }\n      if (currentProps && null !== currentResource)\n        throw Error(formatProdErrorMessage(529, \"\"));\n      return null;\n    case \"script\":\n      return (\n        (currentProps = pendingProps.async),\n        (pendingProps = pendingProps.src),\n        \"string\" === typeof pendingProps &&\n        currentProps &&\n        \"function\" !== typeof currentProps &&\n        \"symbol\" !== typeof currentProps\n          ? ((pendingProps = getScriptKey(pendingProps)),\n            (currentProps = getResourcesFromRoot(\n              JSCompiler_inline_result\n            ).hoistableScripts),\n            (currentResource = currentProps.get(pendingProps)),\n            currentResource ||\n              ((currentResource = {\n                type: \"script\",\n                instance: null,\n                count: 0,\n                state: null\n              }),\n              currentProps.set(pendingProps, currentResource)),\n            currentResource)\n          : { type: \"void\", instance: null, count: 0, state: null }\n      );\n    default:\n      throw Error(formatProdErrorMessage(444, type));\n  }\n}\nfunction getStyleKey(href) {\n  return 'href=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '\"';\n}\nfunction getStylesheetSelectorFromKey(key) {\n  return 'link[rel=\"stylesheet\"][' + key + \"]\";\n}\nfunction stylesheetPropsFromRawProps(rawProps) {\n  return assign({}, rawProps, {\n    \"data-precedence\": rawProps.precedence,\n    precedence: null\n  });\n}\nfunction preloadStylesheet(ownerDocument, key, preloadProps, state) {\n  if (\n    (key = ownerDocument.querySelector(\n      'link[rel=\"preload\"][as=\"style\"][' + key + \"]\"\n    ))\n  ) {\n    if (!0 !== key[internalLoadPendingKey]) {\n      state.loading = 1;\n      return;\n    }\n  } else\n    (key = ownerDocument.createElement(\"link\")),\n      (key[internalLoadPendingKey] = !0),\n      (key.onload = key.onerror = clearPendingLoadOnNode.bind(null, key)),\n      setInitialProperties(key, \"link\", preloadProps),\n      markNodeAsHoistable(key),\n      ownerDocument.head.appendChild(key);\n  state.preload = key;\n  key.addEventListener(\"load\", function () {\n    return (state.loading |= 1);\n  });\n  key.addEventListener(\"error\", function () {\n    return (state.loading |= 2);\n  });\n}\nfunction getScriptKey(src) {\n  return '[src=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(src) + '\"]';\n}\nfunction getScriptSelectorFromKey(key) {\n  return \"script[async]\" + key;\n}\nfunction acquireResource(hoistableRoot, resource, props) {\n  resource.count++;\n  if (null === resource.instance)\n    switch (resource.type) {\n      case \"style\":\n        var instance = hoistableRoot.querySelector(\n          'style[data-href~=\"' +\n            escapeSelectorAttributeValueInsideDoubleQuotes(props.href) +\n            '\"]'\n        );\n        if (instance)\n          return (\n            (resource.instance = instance),\n            markNodeAsHoistable(instance),\n            instance\n          );\n        var styleProps = assign({}, props, {\n          \"data-href\": props.href,\n          \"data-precedence\": props.precedence,\n          href: null,\n          precedence: null\n        });\n        instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement(\n          \"style\"\n        );\n        markNodeAsHoistable(instance);\n        setInitialProperties(instance, \"style\", styleProps);\n        insertStylesheet(instance, props.precedence, hoistableRoot);\n        return (resource.instance = instance);\n      case \"stylesheet\":\n        styleProps = getStyleKey(props.href);\n        var instance$274 = hoistableRoot.querySelector(\n          getStylesheetSelectorFromKey(styleProps)\n        );\n        if (instance$274)\n          return (\n            (resource.state.loading |= 4),\n            (resource.instance = instance$274),\n            markNodeAsHoistable(instance$274),\n            instance$274\n          );\n        instance = stylesheetPropsFromRawProps(props);\n        (styleProps = preloadPropsMap.get(styleProps)) &&\n          adoptPreloadPropsForStylesheet(instance, styleProps);\n        instance$274 = (\n          hoistableRoot.ownerDocument || hoistableRoot\n        ).createElement(\"link\");\n        markNodeAsHoistable(instance$274);\n        var linkInstance = instance$274;\n        linkInstance._p = new Promise(function (resolve, reject) {\n          linkInstance.onload = resolve;\n          linkInstance.onerror = reject;\n        });\n        setInitialProperties(instance$274, \"link\", instance);\n        resource.state.loading |= 4;\n        insertStylesheet(instance$274, props.precedence, hoistableRoot);\n        return (resource.instance = instance$274);\n      case \"script\":\n        instance$274 = getScriptKey(props.src);\n        if (\n          (styleProps = hoistableRoot.querySelector(\n            getScriptSelectorFromKey(instance$274)\n          ))\n        )\n          return (\n            (resource.instance = styleProps),\n            markNodeAsHoistable(styleProps),\n            styleProps\n          );\n        instance = props;\n        if ((styleProps = preloadPropsMap.get(instance$274)))\n          (instance = assign({}, props)),\n            adoptPreloadPropsForScript(instance, styleProps);\n        hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n        styleProps = hoistableRoot.createElement(\"script\");\n        markNodeAsHoistable(styleProps);\n        setInitialProperties(styleProps, \"link\", instance);\n        hoistableRoot.head.appendChild(styleProps);\n        return (resource.instance = styleProps);\n      case \"void\":\n        return null;\n      default:\n        throw Error(formatProdErrorMessage(443, resource.type));\n    }\n  else\n    \"stylesheet\" === resource.type &&\n      0 === (resource.state.loading & 4) &&\n      ((instance = resource.instance),\n      (resource.state.loading |= 4),\n      insertStylesheet(instance, props.precedence, hoistableRoot));\n  return resource.instance;\n}\nfunction insertStylesheet(instance, precedence, root) {\n  for (\n    var nodes = root.querySelectorAll(\n        'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'\n      ),\n      last = nodes.length ? nodes[nodes.length - 1] : null,\n      prior = last,\n      i = 0;\n    i < nodes.length;\n    i++\n  ) {\n    var node = nodes[i];\n    if (node.dataset.precedence === precedence) prior = node;\n    else if (prior !== last) break;\n  }\n  prior\n    ? prior.parentNode.insertBefore(instance, prior.nextSibling)\n    : ((precedence = 9 === root.nodeType ? root.head : root),\n      precedence.insertBefore(instance, precedence.firstChild));\n}\nfunction adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) {\n  null == stylesheetProps.crossOrigin &&\n    (stylesheetProps.crossOrigin = preloadProps.crossOrigin);\n  null == stylesheetProps.referrerPolicy &&\n    (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy);\n  null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title);\n}\nfunction adoptPreloadPropsForScript(scriptProps, preloadProps) {\n  null == scriptProps.crossOrigin &&\n    (scriptProps.crossOrigin = preloadProps.crossOrigin);\n  null == scriptProps.referrerPolicy &&\n    (scriptProps.referrerPolicy = preloadProps.referrerPolicy);\n  null == scriptProps.integrity &&\n    (scriptProps.integrity = preloadProps.integrity);\n}\nvar tagCaches = null;\nfunction getHydratableHoistableCache(type, keyAttribute, ownerDocument) {\n  if (null === tagCaches) {\n    var cache = new Map();\n    var caches = (tagCaches = new Map());\n    caches.set(ownerDocument, cache);\n  } else\n    (caches = tagCaches),\n      (cache = caches.get(ownerDocument)),\n      cache || ((cache = new Map()), caches.set(ownerDocument, cache));\n  if (cache.has(type)) return cache;\n  cache.set(type, null);\n  ownerDocument = ownerDocument.getElementsByTagName(type);\n  for (caches = 0; caches < ownerDocument.length; caches++) {\n    var node = ownerDocument[caches];\n    if (\n      !(\n        node[internalHoistableMarker] ||\n        node[internalInstanceKey] ||\n        (\"link\" === type && \"stylesheet\" === node.getAttribute(\"rel\"))\n      ) &&\n      \"http://www.w3.org/2000/svg\" !== node.namespaceURI\n    ) {\n      var nodeKey = node.getAttribute(keyAttribute) || \"\";\n      nodeKey = type + nodeKey;\n      var existing = cache.get(nodeKey);\n      existing ? existing.push(node) : cache.set(nodeKey, [node]);\n    }\n  }\n  return cache;\n}\nfunction mountHoistable(hoistableRoot, type, instance) {\n  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n  hoistableRoot.head.insertBefore(\n    instance,\n    \"title\" === type ? hoistableRoot.querySelector(\"head > title\") : null\n  );\n}\nfunction isHostHoistableType(type, props, hostContext) {\n  if (1 === hostContext || null != props.itemProp) return !1;\n  switch (type) {\n    case \"meta\":\n    case \"title\":\n      return !0;\n    case \"style\":\n      if (\n        \"string\" !== typeof props.precedence ||\n        \"string\" !== typeof props.href ||\n        \"\" === props.href\n      )\n        break;\n      return !0;\n    case \"link\":\n      if (\n        \"string\" !== typeof props.rel ||\n        \"string\" !== typeof props.href ||\n        \"\" === props.href ||\n        props.onLoad ||\n        props.onError\n      )\n        break;\n      switch (props.rel) {\n        case \"stylesheet\":\n          return (\n            (type = props.disabled),\n            \"string\" === typeof props.precedence && null == type\n          );\n        default:\n          return !0;\n      }\n    case \"script\":\n      if (\n        props.async &&\n        \"function\" !== typeof props.async &&\n        \"symbol\" !== typeof props.async &&\n        !props.onLoad &&\n        !props.onError &&\n        props.src &&\n        \"string\" === typeof props.src\n      )\n        return !0;\n  }\n  return !1;\n}\nfunction maySuspendCommit(type, props) {\n  return (\n    \"img\" === type &&\n    null != props.src &&\n    \"\" !== props.src &&\n    null == props.onLoad &&\n    \"lazy\" !== props.loading\n  );\n}\nfunction preloadResource(resource) {\n  return \"stylesheet\" === resource.type && 0 === (resource.state.loading & 3)\n    ? !1\n    : !0;\n}\nfunction estimateImageBytes(instance) {\n  return (\n    (instance.width || 100) *\n    (instance.height || 100) *\n    (\"number\" === typeof devicePixelRatio ? devicePixelRatio : 1) *\n    0.25\n  );\n}\nfunction suspendInstance(state, instance) {\n  \"function\" === typeof instance.decode &&\n    (state.imgCount++,\n    instance.complete ||\n      ((state.imgBytes += estimateImageBytes(instance)),\n      state.suspenseyImages.push(instance)),\n    (state = onUnsuspendImg.bind(state)),\n    instance.decode().then(state, state));\n}\nfunction suspendResource(state, hoistableRoot, resource, props) {\n  if (\n    \"stylesheet\" === resource.type &&\n    (\"string\" !== typeof props.media ||\n      !1 !== matchMedia(props.media).matches) &&\n    0 === (resource.state.loading & 4)\n  ) {\n    if (null === resource.instance) {\n      var key = getStyleKey(props.href),\n        instance = hoistableRoot.querySelector(\n          getStylesheetSelectorFromKey(key)\n        );\n      if (instance) {\n        hoistableRoot = instance._p;\n        null !== hoistableRoot &&\n          \"object\" === typeof hoistableRoot &&\n          \"function\" === typeof hoistableRoot.then &&\n          (state.count++,\n          (state = onUnsuspend.bind(state)),\n          hoistableRoot.then(state, state));\n        resource.state.loading |= 4;\n        resource.instance = instance;\n        markNodeAsHoistable(instance);\n        return;\n      }\n      instance = hoistableRoot.ownerDocument || hoistableRoot;\n      props = stylesheetPropsFromRawProps(props);\n      (key = preloadPropsMap.get(key)) &&\n        adoptPreloadPropsForStylesheet(props, key);\n      instance = instance.createElement(\"link\");\n      markNodeAsHoistable(instance);\n      var linkInstance = instance;\n      linkInstance._p = new Promise(function (resolve, reject) {\n        linkInstance.onload = resolve;\n        linkInstance.onerror = reject;\n      });\n      setInitialProperties(instance, \"link\", props);\n      resource.instance = instance;\n    }\n    null === state.stylesheets && (state.stylesheets = new Map());\n    state.stylesheets.set(resource, hoistableRoot);\n    (hoistableRoot = resource.state.preload) &&\n      0 === (resource.state.loading & 3) &&\n      (state.count++,\n      (resource = onUnsuspend.bind(state)),\n      hoistableRoot.addEventListener(\"load\", resource),\n      hoistableRoot.addEventListener(\"error\", resource));\n  }\n}\nvar estimatedBytesWithinLimit = 0;\nfunction waitForCommitToBeReady(state, timeoutOffset) {\n  state.stylesheets &&\n    0 === state.count &&\n    insertSuspendedStylesheets(state, state.stylesheets);\n  return 0 < state.count || 0 < state.imgCount\n    ? function (commit) {\n        var stylesheetTimer = setTimeout(function () {\n          state.stylesheets &&\n            insertSuspendedStylesheets(state, state.stylesheets);\n          if (state.unsuspend) {\n            var unsuspend = state.unsuspend;\n            state.unsuspend = null;\n            unsuspend();\n          }\n        }, 6e4 + timeoutOffset);\n        0 < state.imgBytes &&\n          0 === estimatedBytesWithinLimit &&\n          (estimatedBytesWithinLimit = 62500 * estimateBandwidth());\n        var imgTimer = setTimeout(\n          function () {\n            state.waitingForImages = !1;\n            if (\n              0 === state.count &&\n              (state.stylesheets &&\n                insertSuspendedStylesheets(state, state.stylesheets),\n              state.unsuspend)\n            ) {\n              var unsuspend = state.unsuspend;\n              state.unsuspend = null;\n              unsuspend();\n            }\n          },\n          (state.imgBytes > estimatedBytesWithinLimit ? 50 : 800) +\n            timeoutOffset\n        );\n        state.unsuspend = commit;\n        return function () {\n          state.unsuspend = null;\n          clearTimeout(stylesheetTimer);\n          clearTimeout(imgTimer);\n        };\n      }\n    : null;\n}\nfunction checkIfFullyUnsuspended(state) {\n  if (0 === state.count && (0 === state.imgCount || !state.waitingForImages))\n    if (state.stylesheets) insertSuspendedStylesheets(state, state.stylesheets);\n    else if (state.unsuspend) {\n      var unsuspend = state.unsuspend;\n      state.unsuspend = null;\n      unsuspend();\n    }\n}\nfunction onUnsuspend() {\n  this.count--;\n  checkIfFullyUnsuspended(this);\n}\nfunction onUnsuspendImg() {\n  this.imgCount--;\n  checkIfFullyUnsuspended(this);\n}\nvar precedencesByRoot = null;\nfunction insertSuspendedStylesheets(state, resources) {\n  state.stylesheets = null;\n  null !== state.unsuspend &&\n    (state.count++,\n    (precedencesByRoot = new Map()),\n    resources.forEach(insertStylesheetIntoRoot, state),\n    (precedencesByRoot = null),\n    onUnsuspend.call(state));\n}\nfunction insertStylesheetIntoRoot(root, resource) {\n  if (!(resource.state.loading & 4)) {\n    var precedences = precedencesByRoot.get(root);\n    if (precedences) var last = precedences.get(null);\n    else {\n      precedences = new Map();\n      precedencesByRoot.set(root, precedences);\n      for (\n        var nodes = root.querySelectorAll(\n            \"link[data-precedence],style[data-precedence]\"\n          ),\n          i = 0;\n        i < nodes.length;\n        i++\n      ) {\n        var node = nodes[i];\n        if (\n          \"LINK\" === node.nodeName ||\n          \"not all\" !== node.getAttribute(\"media\")\n        )\n          precedences.set(node.dataset.precedence, node), (last = node);\n      }\n      last && precedences.set(null, last);\n    }\n    nodes = resource.instance;\n    node = nodes.getAttribute(\"data-precedence\");\n    i = precedences.get(node) || last;\n    i === last && precedences.set(null, nodes);\n    precedences.set(node, nodes);\n    this.count++;\n    last = onUnsuspend.bind(this);\n    nodes.addEventListener(\"load\", last);\n    nodes.addEventListener(\"error\", last);\n    i\n      ? i.parentNode.insertBefore(nodes, i.nextSibling)\n      : ((root = 9 === root.nodeType ? root.head : root),\n        root.insertBefore(nodes, root.firstChild));\n    resource.state.loading |= 4;\n  }\n}\nvar HostTransitionContext = {\n  $$typeof: REACT_CONTEXT_TYPE,\n  Provider: null,\n  Consumer: null,\n  _currentValue: sharedNotPendingObject,\n  _currentValue2: sharedNotPendingObject,\n  _threadCount: 0\n};\nfunction FiberRootNode(\n  containerInfo,\n  tag,\n  hydrate,\n  identifierPrefix,\n  onUncaughtError,\n  onCaughtError,\n  onRecoverableError,\n  onDefaultTransitionIndicator,\n  formState\n) {\n  this.tag = 1;\n  this.containerInfo = containerInfo;\n  this.pingCache = this.current = this.pendingChildren = null;\n  this.timeoutHandle = -1;\n  this.callbackNode =\n    this.next =\n    this.pendingContext =\n    this.context =\n    this.cancelPendingCommit =\n      null;\n  this.callbackPriority = 0;\n  this.expirationTimes = createLaneMap(-1);\n  this.entangledLanes =\n    this.shellSuspendCounter =\n    this.errorRecoveryDisabledLanes =\n    this.expiredLanes =\n    this.warmLanes =\n    this.pingedLanes =\n    this.suspendedLanes =\n    this.pendingLanes =\n      0;\n  this.entanglements = createLaneMap(0);\n  this.hiddenUpdates = createLaneMap(null);\n  this.identifierPrefix = identifierPrefix;\n  this.onUncaughtError = onUncaughtError;\n  this.onCaughtError = onCaughtError;\n  this.onRecoverableError = onRecoverableError;\n  this.pooledCache = null;\n  this.pooledCacheLanes = 0;\n  this.formState = formState;\n  this.transitionTypes = null;\n  this.incompleteTransitions = new Map();\n}\nfunction createFiberRoot(\n  containerInfo,\n  tag,\n  hydrate,\n  initialChildren,\n  hydrationCallbacks,\n  isStrictMode,\n  identifierPrefix,\n  formState,\n  onUncaughtError,\n  onCaughtError,\n  onRecoverableError,\n  onDefaultTransitionIndicator\n) {\n  containerInfo = new FiberRootNode(\n    containerInfo,\n    tag,\n    hydrate,\n    identifierPrefix,\n    onUncaughtError,\n    onCaughtError,\n    onRecoverableError,\n    onDefaultTransitionIndicator,\n    formState\n  );\n  tag = 1;\n  !0 === isStrictMode && (tag |= 24);\n  isStrictMode = createFiberImplClass(3, null, null, tag);\n  containerInfo.current = isStrictMode;\n  isStrictMode.stateNode = containerInfo;\n  tag = createCache();\n  tag.refCount++;\n  containerInfo.pooledCache = tag;\n  tag.refCount++;\n  isStrictMode.memoizedState = {\n    element: initialChildren,\n    isDehydrated: hydrate,\n    cache: tag\n  };\n  initializeUpdateQueue(isStrictMode);\n  return containerInfo;\n}\nfunction getContextForSubtree(parentComponent) {\n  if (!parentComponent) return emptyContextObject;\n  parentComponent = emptyContextObject;\n  return parentComponent;\n}\nfunction updateContainerImpl(\n  rootFiber,\n  lane,\n  element,\n  container,\n  parentComponent,\n  callback\n) {\n  parentComponent = getContextForSubtree(parentComponent);\n  null === container.context\n    ? (container.context = parentComponent)\n    : (container.pendingContext = parentComponent);\n  container = createUpdate(lane);\n  container.payload = { element: element };\n  callback = void 0 === callback ? null : callback;\n  null !== callback && (container.callback = callback);\n  element = enqueueUpdate(rootFiber, container, lane);\n  null !== element &&\n    (scheduleUpdateOnFiber(element, rootFiber, lane),\n    entangleTransitions(element, rootFiber, lane));\n}\nfunction markRetryLaneImpl(fiber, retryLane) {\n  fiber = fiber.memoizedState;\n  if (null !== fiber && null !== fiber.dehydrated) {\n    var a = fiber.retryLane;\n    fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane;\n  }\n}\nfunction markRetryLaneIfNotHydrated(fiber, retryLane) {\n  markRetryLaneImpl(fiber, retryLane);\n  (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);\n}\nfunction attemptContinuousHydration(fiber) {\n  if (13 === fiber.tag || 31 === fiber.tag) {\n    var root = enqueueConcurrentRenderForLane(fiber, 67108864);\n    null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);\n    markRetryLaneIfNotHydrated(fiber, 67108864);\n  }\n}\nfunction attemptHydrationAtCurrentPriority(fiber) {\n  if (13 === fiber.tag || 31 === fiber.tag) {\n    var lane = requestUpdateLane();\n    lane = getBumpedLaneForHydrationByLane(lane);\n    var root = enqueueConcurrentRenderForLane(fiber, lane);\n    null !== root && scheduleUpdateOnFiber(root, fiber, lane);\n    markRetryLaneIfNotHydrated(fiber, lane);\n  }\n}\nvar _enabled = !0;\nfunction dispatchDiscreteEvent(\n  domEventName,\n  eventSystemFlags,\n  container,\n  nativeEvent\n) {\n  var prevTransition = ReactSharedInternals.T;\n  ReactSharedInternals.T = null;\n  var previousPriority = ReactDOMSharedInternals.p;\n  try {\n    (ReactDOMSharedInternals.p = 2),\n      dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n  } finally {\n    (ReactDOMSharedInternals.p = previousPriority),\n      (ReactSharedInternals.T = prevTransition);\n  }\n}\nfunction dispatchContinuousEvent(\n  domEventName,\n  eventSystemFlags,\n  container,\n  nativeEvent\n) {\n  var prevTransition = ReactSharedInternals.T;\n  ReactSharedInternals.T = null;\n  var previousPriority = ReactDOMSharedInternals.p;\n  try {\n    (ReactDOMSharedInternals.p = 8),\n      dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n  } finally {\n    (ReactDOMSharedInternals.p = previousPriority),\n      (ReactSharedInternals.T = prevTransition);\n  }\n}\nfunction dispatchEvent(\n  domEventName,\n  eventSystemFlags,\n  targetContainer,\n  nativeEvent\n) {\n  if (_enabled) {\n    var blockedOn = findInstanceBlockingEvent(nativeEvent);\n    if (null === blockedOn)\n      dispatchEventForPluginEventSystem(\n        domEventName,\n        eventSystemFlags,\n        nativeEvent,\n        return_targetInst,\n        targetContainer\n      ),\n        clearIfContinuousEvent(domEventName, nativeEvent);\n    else if (\n      queueIfContinuousEvent(\n        blockedOn,\n        domEventName,\n        eventSystemFlags,\n        targetContainer,\n        nativeEvent\n      )\n    )\n      nativeEvent.stopPropagation();\n    else if (\n      (clearIfContinuousEvent(domEventName, nativeEvent),\n      eventSystemFlags & 4 &&\n        -1 < discreteReplayableEvents.indexOf(domEventName))\n    ) {\n      for (; null !== blockedOn; ) {\n        var fiber = getInstanceFromNode(blockedOn);\n        if (null !== fiber)\n          switch (fiber.tag) {\n            case 3:\n              fiber = fiber.stateNode;\n              if (fiber.current.memoizedState.isDehydrated) {\n                var lanes = getHighestPriorityLanes(fiber.pendingLanes);\n                if (0 !== lanes) {\n                  var root = fiber;\n                  root.pendingLanes |= 2;\n                  for (root.entangledLanes |= 2; lanes; ) {\n                    var lane = 1 << (31 - clz32(lanes));\n                    root.entanglements[1] |= lane;\n                    lanes &= ~lane;\n                  }\n                  ensureRootIsScheduled(fiber);\n                  0 === (executionContext & 6) &&\n                    ((workInProgressRootRenderTargetTime = now() + 500),\n                    flushSyncWorkAcrossRoots_impl(0, !1));\n                }\n              }\n              break;\n            case 31:\n            case 13:\n              (root = enqueueConcurrentRenderForLane(fiber, 2)),\n                null !== root && scheduleUpdateOnFiber(root, fiber, 2),\n                flushSyncWork$1(),\n                markRetryLaneIfNotHydrated(fiber, 2);\n          }\n        fiber = findInstanceBlockingEvent(nativeEvent);\n        null === fiber &&\n          dispatchEventForPluginEventSystem(\n            domEventName,\n            eventSystemFlags,\n            nativeEvent,\n            return_targetInst,\n            targetContainer\n          );\n        if (fiber === blockedOn) break;\n        blockedOn = fiber;\n      }\n      null !== blockedOn && nativeEvent.stopPropagation();\n    } else\n      dispatchEventForPluginEventSystem(\n        domEventName,\n        eventSystemFlags,\n        nativeEvent,\n        null,\n        targetContainer\n      );\n  }\n}\nfunction findInstanceBlockingEvent(nativeEvent) {\n  nativeEvent = getEventTarget(nativeEvent);\n  return findInstanceBlockingTarget(nativeEvent);\n}\nvar return_targetInst = null;\nfunction findInstanceBlockingTarget(targetNode) {\n  return_targetInst = null;\n  targetNode = getClosestInstanceFromNode(targetNode);\n  if (null !== targetNode) {\n    var nearestMounted = getNearestMountedFiber(targetNode);\n    if (null === nearestMounted) targetNode = null;\n    else {\n      var tag = nearestMounted.tag;\n      if (13 === tag) {\n        targetNode = getSuspenseInstanceFromFiber(nearestMounted);\n        if (null !== targetNode) return targetNode;\n        targetNode = null;\n      } else if (31 === tag) {\n        targetNode = getActivityInstanceFromFiber(nearestMounted);\n        if (null !== targetNode) return targetNode;\n        targetNode = null;\n      } else if (3 === tag) {\n        if (nearestMounted.stateNode.current.memoizedState.isDehydrated)\n          return 3 === nearestMounted.tag\n            ? nearestMounted.stateNode.containerInfo\n            : null;\n        targetNode = null;\n      } else nearestMounted !== targetNode && (targetNode = null);\n    }\n  }\n  return_targetInst = targetNode;\n  return null;\n}\nfunction getEventPriority(domEventName) {\n  switch (domEventName) {\n    case \"beforetoggle\":\n    case \"cancel\":\n    case \"click\":\n    case \"close\":\n    case \"contextmenu\":\n    case \"copy\":\n    case \"cut\":\n    case \"auxclick\":\n    case \"dblclick\":\n    case \"dragend\":\n    case \"dragstart\":\n    case \"drop\":\n    case \"focusin\":\n    case \"focusout\":\n    case \"input\":\n    case \"invalid\":\n    case \"keydown\":\n    case \"keypress\":\n    case \"keyup\":\n    case \"mousedown\":\n    case \"mouseup\":\n    case \"paste\":\n    case \"pause\":\n    case \"play\":\n    case \"pointercancel\":\n    case \"pointerdown\":\n    case \"pointerup\":\n    case \"ratechange\":\n    case \"reset\":\n    case \"seeked\":\n    case \"submit\":\n    case \"toggle\":\n    case \"touchcancel\":\n    case \"touchend\":\n    case \"touchstart\":\n    case \"volumechange\":\n    case \"change\":\n    case \"selectionchange\":\n    case \"textInput\":\n    case \"compositionstart\":\n    case \"compositionend\":\n    case \"compositionupdate\":\n    case \"beforeblur\":\n    case \"afterblur\":\n    case \"beforeinput\":\n    case \"blur\":\n    case \"fullscreenchange\":\n    case \"fullscreenerror\":\n    case \"focus\":\n    case \"hashchange\":\n    case \"popstate\":\n    case \"select\":\n    case \"selectstart\":\n      return 2;\n    case \"drag\":\n    case \"dragenter\":\n    case \"dragexit\":\n    case \"dragleave\":\n    case \"dragover\":\n    case \"mousemove\":\n    case \"mouseout\":\n    case \"mouseover\":\n    case \"pointermove\":\n    case \"pointerout\":\n    case \"pointerover\":\n    case \"resize\":\n    case \"scroll\":\n    case \"touchmove\":\n    case \"wheel\":\n    case \"mouseenter\":\n    case \"mouseleave\":\n    case \"pointerenter\":\n    case \"pointerleave\":\n      return 8;\n    case \"message\":\n      switch (getCurrentPriorityLevel()) {\n        case ImmediatePriority:\n          return 2;\n        case UserBlockingPriority:\n          return 8;\n        case NormalPriority$1:\n        case LowPriority:\n          return 32;\n        case IdlePriority:\n          return 268435456;\n        default:\n          return 32;\n      }\n    default:\n      return 32;\n  }\n}\nvar hasScheduledReplayAttempt = !1,\n  queuedFocus = null,\n  queuedDrag = null,\n  queuedMouse = null,\n  queuedPointers = new Map(),\n  queuedPointerCaptures = new Map(),\n  queuedExplicitHydrationTargets = [],\n  discreteReplayableEvents =\n    \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\n      \" \"\n    );\nfunction clearIfContinuousEvent(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case \"focusin\":\n    case \"focusout\":\n      queuedFocus = null;\n      break;\n    case \"dragenter\":\n    case \"dragleave\":\n      queuedDrag = null;\n      break;\n    case \"mouseover\":\n    case \"mouseout\":\n      queuedMouse = null;\n      break;\n    case \"pointerover\":\n    case \"pointerout\":\n      queuedPointers.delete(nativeEvent.pointerId);\n      break;\n    case \"gotpointercapture\":\n    case \"lostpointercapture\":\n      queuedPointerCaptures.delete(nativeEvent.pointerId);\n  }\n}\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(\n  existingQueuedEvent,\n  blockedOn,\n  domEventName,\n  eventSystemFlags,\n  targetContainer,\n  nativeEvent\n) {\n  if (\n    null === existingQueuedEvent ||\n    existingQueuedEvent.nativeEvent !== nativeEvent\n  )\n    return (\n      (existingQueuedEvent = {\n        blockedOn: blockedOn,\n        domEventName: domEventName,\n        eventSystemFlags: eventSystemFlags,\n        nativeEvent: nativeEvent,\n        targetContainers: [targetContainer]\n      }),\n      null !== blockedOn &&\n        ((blockedOn = getInstanceFromNode(blockedOn)),\n        null !== blockedOn && attemptContinuousHydration(blockedOn)),\n      existingQueuedEvent\n    );\n  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;\n  blockedOn = existingQueuedEvent.targetContainers;\n  null !== targetContainer &&\n    -1 === blockedOn.indexOf(targetContainer) &&\n    blockedOn.push(targetContainer);\n  return existingQueuedEvent;\n}\nfunction queueIfContinuousEvent(\n  blockedOn,\n  domEventName,\n  eventSystemFlags,\n  targetContainer,\n  nativeEvent\n) {\n  switch (domEventName) {\n    case \"focusin\":\n      return (\n        (queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(\n          queuedFocus,\n          blockedOn,\n          domEventName,\n          eventSystemFlags,\n          targetContainer,\n          nativeEvent\n        )),\n        !0\n      );\n    case \"dragenter\":\n      return (\n        (queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(\n          queuedDrag,\n          blockedOn,\n          domEventName,\n          eventSystemFlags,\n          targetContainer,\n          nativeEvent\n        )),\n        !0\n      );\n    case \"mouseover\":\n      return (\n        (queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(\n          queuedMouse,\n          blockedOn,\n          domEventName,\n          eventSystemFlags,\n          targetContainer,\n          nativeEvent\n        )),\n        !0\n      );\n    case \"pointerover\":\n      var pointerId = nativeEvent.pointerId;\n      queuedPointers.set(\n        pointerId,\n        accumulateOrCreateContinuousQueuedReplayableEvent(\n          queuedPointers.get(pointerId) || null,\n          blockedOn,\n          domEventName,\n          eventSystemFlags,\n          targetContainer,\n          nativeEvent\n        )\n      );\n      return !0;\n    case \"gotpointercapture\":\n      return (\n        (pointerId = nativeEvent.pointerId),\n        queuedPointerCaptures.set(\n          pointerId,\n          accumulateOrCreateContinuousQueuedReplayableEvent(\n            queuedPointerCaptures.get(pointerId) || null,\n            blockedOn,\n            domEventName,\n            eventSystemFlags,\n            targetContainer,\n            nativeEvent\n          )\n        ),\n        !0\n      );\n  }\n  return !1;\n}\nfunction attemptExplicitHydrationTarget(queuedTarget) {\n  var targetInst = getClosestInstanceFromNode(queuedTarget.target);\n  if (null !== targetInst) {\n    var nearestMounted = getNearestMountedFiber(targetInst);\n    if (null !== nearestMounted)\n      if (((targetInst = nearestMounted.tag), 13 === targetInst)) {\n        if (\n          ((targetInst = getSuspenseInstanceFromFiber(nearestMounted)),\n          null !== targetInst)\n        ) {\n          queuedTarget.blockedOn = targetInst;\n          runWithPriority(queuedTarget.priority, function () {\n            attemptHydrationAtCurrentPriority(nearestMounted);\n          });\n          return;\n        }\n      } else if (31 === targetInst) {\n        if (\n          ((targetInst = getActivityInstanceFromFiber(nearestMounted)),\n          null !== targetInst)\n        ) {\n          queuedTarget.blockedOn = targetInst;\n          runWithPriority(queuedTarget.priority, function () {\n            attemptHydrationAtCurrentPriority(nearestMounted);\n          });\n          return;\n        }\n      } else if (\n        3 === targetInst &&\n        nearestMounted.stateNode.current.memoizedState.isDehydrated\n      ) {\n        queuedTarget.blockedOn =\n          3 === nearestMounted.tag\n            ? nearestMounted.stateNode.containerInfo\n            : null;\n        return;\n      }\n  }\n  queuedTarget.blockedOn = null;\n}\nfunction attemptReplayContinuousQueuedEvent(queuedEvent) {\n  if (null !== queuedEvent.blockedOn) return !1;\n  for (\n    var targetContainers = queuedEvent.targetContainers;\n    0 < targetContainers.length;\n\n  ) {\n    var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);\n    if (null === nextBlockedOn) {\n      nextBlockedOn = queuedEvent.nativeEvent;\n      var nativeEventClone = new nextBlockedOn.constructor(\n        nextBlockedOn.type,\n        nextBlockedOn\n      );\n      currentReplayingEvent = nativeEventClone;\n      nextBlockedOn.target.dispatchEvent(nativeEventClone);\n      currentReplayingEvent = null;\n    } else\n      return (\n        (targetContainers = getInstanceFromNode(nextBlockedOn)),\n        null !== targetContainers &&\n          attemptContinuousHydration(targetContainers),\n        (queuedEvent.blockedOn = nextBlockedOn),\n        !1\n      );\n    targetContainers.shift();\n  }\n  return !0;\n}\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {\n  attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);\n}\nfunction replayUnblockedEvents() {\n  hasScheduledReplayAttempt = !1;\n  null !== queuedFocus &&\n    attemptReplayContinuousQueuedEvent(queuedFocus) &&\n    (queuedFocus = null);\n  null !== queuedDrag &&\n    attemptReplayContinuousQueuedEvent(queuedDrag) &&\n    (queuedDrag = null);\n  null !== queuedMouse &&\n    attemptReplayContinuousQueuedEvent(queuedMouse) &&\n    (queuedMouse = null);\n  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked) {\n  queuedEvent.blockedOn === unblocked &&\n    ((queuedEvent.blockedOn = null),\n    hasScheduledReplayAttempt ||\n      ((hasScheduledReplayAttempt = !0),\n      Scheduler.unstable_scheduleCallback(\n        Scheduler.unstable_NormalPriority,\n        replayUnblockedEvents\n      )));\n}\nvar lastScheduledReplayQueue = null;\nfunction scheduleReplayQueueIfNeeded(formReplayingQueue) {\n  lastScheduledReplayQueue !== formReplayingQueue &&\n    ((lastScheduledReplayQueue = formReplayingQueue),\n    Scheduler.unstable_scheduleCallback(\n      Scheduler.unstable_NormalPriority,\n      function () {\n        lastScheduledReplayQueue === formReplayingQueue &&\n          (lastScheduledReplayQueue = null);\n        for (var i = 0; i < formReplayingQueue.length; i += 3) {\n          var form = formReplayingQueue[i],\n            submitterOrAction = formReplayingQueue[i + 1],\n            formData = formReplayingQueue[i + 2];\n          if (\"function\" !== typeof submitterOrAction)\n            if (null === findInstanceBlockingTarget(submitterOrAction || form))\n              continue;\n            else break;\n          var formInst = getInstanceFromNode(form);\n          null !== formInst &&\n            (formReplayingQueue.splice(i, 3),\n            (i -= 3),\n            startHostTransition(\n              formInst,\n              {\n                pending: !0,\n                data: formData,\n                method: form.method,\n                action: submitterOrAction\n              },\n              submitterOrAction,\n              formData\n            ));\n        }\n      }\n    ));\n}\nfunction retryIfBlockedOn(unblocked) {\n  function unblock(queuedEvent) {\n    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n  }\n  null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n  null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n  null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n  queuedPointers.forEach(unblock);\n  queuedPointerCaptures.forEach(unblock);\n  for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) {\n    var queuedTarget = queuedExplicitHydrationTargets[i];\n    queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null);\n  }\n  for (\n    ;\n    0 < queuedExplicitHydrationTargets.length &&\n    ((i = queuedExplicitHydrationTargets[0]), null === i.blockedOn);\n\n  )\n    attemptExplicitHydrationTarget(i),\n      null === i.blockedOn && queuedExplicitHydrationTargets.shift();\n  i = (unblocked.ownerDocument || unblocked).$$reactFormReplay;\n  if (null != i)\n    for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {\n      var form = i[queuedTarget],\n        submitterOrAction = i[queuedTarget + 1],\n        formProps = form[internalPropsKey] || null;\n      if (\"function\" === typeof submitterOrAction)\n        formProps || scheduleReplayQueueIfNeeded(i);\n      else if (formProps) {\n        var action = null;\n        if (submitterOrAction && submitterOrAction.hasAttribute(\"formAction\"))\n          if (\n            ((form = submitterOrAction),\n            (formProps = submitterOrAction[internalPropsKey] || null))\n          )\n            action = formProps.formAction;\n          else {\n            if (null !== findInstanceBlockingTarget(form)) continue;\n          }\n        else action = formProps.action;\n        \"function\" === typeof action\n          ? (i[queuedTarget + 1] = action)\n          : (i.splice(queuedTarget, 3), (queuedTarget -= 3));\n        scheduleReplayQueueIfNeeded(i);\n      }\n    }\n}\nfunction defaultOnDefaultTransitionIndicator() {\n  function handleNavigate(event) {\n    event.canIntercept &&\n      \"react-transition\" === event.info &&\n      event.intercept({\n        handler: function () {\n          return new Promise(function (resolve) {\n            return (pendingResolve = resolve);\n          });\n        },\n        focusReset: \"manual\",\n        scroll: \"manual\"\n      });\n  }\n  function handleNavigateComplete() {\n    null !== pendingResolve && (pendingResolve(), (pendingResolve = null));\n    isCancelled || setTimeout(startFakeNavigation, 20);\n  }\n  function startFakeNavigation() {\n    if (!isCancelled && !navigation.transition) {\n      var currentEntry = navigation.currentEntry;\n      currentEntry &&\n        null != currentEntry.url &&\n        navigation.navigate(currentEntry.url, {\n          state: currentEntry.getState(),\n          info: \"react-transition\",\n          history: \"replace\"\n        });\n    }\n  }\n  if (\"object\" === typeof navigation) {\n    var isCancelled = !1,\n      pendingResolve = null;\n    navigation.addEventListener(\"navigate\", handleNavigate);\n    navigation.addEventListener(\"navigatesuccess\", handleNavigateComplete);\n    navigation.addEventListener(\"navigateerror\", handleNavigateComplete);\n    setTimeout(startFakeNavigation, 100);\n    return function () {\n      isCancelled = !0;\n      navigation.removeEventListener(\"navigate\", handleNavigate);\n      navigation.removeEventListener(\"navigatesuccess\", handleNavigateComplete);\n      navigation.removeEventListener(\"navigateerror\", handleNavigateComplete);\n      null !== pendingResolve && (pendingResolve(), (pendingResolve = null));\n    };\n  }\n}\nfunction ReactDOMRoot(internalRoot) {\n  this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render =\n  function (children) {\n    var root = this._internalRoot;\n    if (null === root) throw Error(formatProdErrorMessage(409));\n    var current = root.current,\n      lane = requestUpdateLane();\n    updateContainerImpl(current, lane, children, root, null, null);\n  };\nReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount =\n  function () {\n    var root = this._internalRoot;\n    if (null !== root) {\n      this._internalRoot = null;\n      var container = root.containerInfo;\n      updateContainerImpl(root.current, 2, null, root, null, null);\n      flushSyncWork$1();\n      container[internalContainerInstanceKey] = null;\n    }\n  };\nfunction ReactDOMHydrationRoot(internalRoot) {\n  this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {\n  if (target) {\n    var updatePriority = resolveUpdatePriority();\n    target = { blockedOn: null, target: target, priority: updatePriority };\n    for (\n      var i = 0;\n      i < queuedExplicitHydrationTargets.length &&\n      0 !== updatePriority &&\n      updatePriority < queuedExplicitHydrationTargets[i].priority;\n      i++\n    );\n    queuedExplicitHydrationTargets.splice(i, 0, target);\n    0 === i && attemptExplicitHydrationTarget(target);\n  }\n};\nvar isomorphicReactPackageVersion$jscomp$inline_2043 = React.version;\nif (\n  \"19.3.1\" !==\n  isomorphicReactPackageVersion$jscomp$inline_2043\n)\n  throw Error(\n    formatProdErrorMessage(\n      527,\n      isomorphicReactPackageVersion$jscomp$inline_2043,\n      \"19.3.1\"\n    )\n  );\nReactDOMSharedInternals.findDOMNode = function (componentOrElement) {\n  var fiber = componentOrElement._reactInternals;\n  if (void 0 === fiber) {\n    if (\"function\" === typeof componentOrElement.render)\n      throw Error(formatProdErrorMessage(188));\n    componentOrElement = Object.keys(componentOrElement).join(\",\");\n    throw Error(formatProdErrorMessage(268, componentOrElement));\n  }\n  componentOrElement = findCurrentFiberUsingSlowPath(fiber);\n  componentOrElement =\n    null !== componentOrElement\n      ? findCurrentHostFiberImpl(componentOrElement)\n      : null;\n  componentOrElement =\n    null === componentOrElement ? null : componentOrElement.stateNode;\n  return componentOrElement;\n};\nvar internals$jscomp$inline_2586 = {\n  bundleType: 0,\n  version: \"19.3.1\",\n  rendererPackageName: \"react-dom\",\n  currentDispatcherRef: ReactSharedInternals,\n  reconcilerVersion: \"19.3.1\"\n};\nif (\"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {\n  var hook$jscomp$inline_2587 = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n  if (\n    !hook$jscomp$inline_2587.isDisabled &&\n    hook$jscomp$inline_2587.supportsFiber\n  )\n    try {\n      (rendererID = hook$jscomp$inline_2587.inject(\n        internals$jscomp$inline_2586\n      )),\n        (injectedHook = hook$jscomp$inline_2587);\n    } catch (err) {}\n}\nexports.createRoot = function (container, options) {\n  if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n  var isStrictMode = !1,\n    identifierPrefix = \"\",\n    onUncaughtError = defaultOnUncaughtError,\n    onCaughtError = defaultOnCaughtError,\n    onRecoverableError = defaultOnRecoverableError;\n  null !== options &&\n    void 0 !== options &&\n    (!0 === options.unstable_strictMode && (isStrictMode = !0),\n    void 0 !== options.identifierPrefix &&\n      (identifierPrefix = options.identifierPrefix),\n    void 0 !== options.onUncaughtError &&\n      (onUncaughtError = options.onUncaughtError),\n    void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n    void 0 !== options.onRecoverableError &&\n      (onRecoverableError = options.onRecoverableError));\n  options = createFiberRoot(\n    container,\n    1,\n    !1,\n    null,\n    null,\n    isStrictMode,\n    identifierPrefix,\n    null,\n    onUncaughtError,\n    onCaughtError,\n    onRecoverableError,\n    defaultOnDefaultTransitionIndicator\n  );\n  container[internalContainerInstanceKey] = options.current;\n  listenToAllSupportedEvents(container);\n  return new ReactDOMRoot(options);\n};\nexports.hydrateRoot = function (container, initialChildren, options) {\n  if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n  var isStrictMode = !1,\n    identifierPrefix = \"\",\n    onUncaughtError = defaultOnUncaughtError,\n    onCaughtError = defaultOnCaughtError,\n    onRecoverableError = defaultOnRecoverableError,\n    formState = null;\n  null !== options &&\n    void 0 !== options &&\n    (!0 === options.unstable_strictMode && (isStrictMode = !0),\n    void 0 !== options.identifierPrefix &&\n      (identifierPrefix = options.identifierPrefix),\n    void 0 !== options.onUncaughtError &&\n      (onUncaughtError = options.onUncaughtError),\n    void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n    void 0 !== options.onRecoverableError &&\n      (onRecoverableError = options.onRecoverableError),\n    void 0 !== options.formState && (formState = options.formState));\n  initialChildren = createFiberRoot(\n    container,\n    1,\n    !0,\n    initialChildren,\n    null != options ? options : null,\n    isStrictMode,\n    identifierPrefix,\n    formState,\n    onUncaughtError,\n    onCaughtError,\n    onRecoverableError,\n    defaultOnDefaultTransitionIndicator\n  );\n  initialChildren.context = getContextForSubtree(null);\n  options = initialChildren.current;\n  isStrictMode = requestUpdateLane();\n  isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode);\n  identifierPrefix = createUpdate(isStrictMode);\n  identifierPrefix.callback = null;\n  enqueueUpdate(options, identifierPrefix, isStrictMode);\n  options = isStrictMode;\n  initialChildren.current.lanes = options;\n  markRootUpdated$1(initialChildren, options);\n  ensureRootIsScheduled(initialChildren);\n  container[internalContainerInstanceKey] = initialChildren.current;\n  listenToAllSupportedEvents(container);\n  return new ReactDOMHydrationRoot(initialChildren);\n};\nexports.version = \"19.3.1\";\n","/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n  var url = \"https://react.dev/errors/\" + code;\n  if (1 < arguments.length) {\n    url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n    for (var i = 2; i < arguments.length; i++)\n      url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n  }\n  return (\n    \"Minified React error #\" +\n    code +\n    \"; visit \" +\n    url +\n    \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n  );\n}\nfunction noop() {}\nvar Internals = {\n    d: {\n      f: noop,\n      r: function () {\n        throw Error(formatProdErrorMessage(522));\n      },\n      D: noop,\n      C: noop,\n      L: noop,\n      m: noop,\n      X: noop,\n      S: noop,\n      M: noop\n    },\n    p: 0,\n    findDOMNode: null\n  },\n  REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n  REACT_RECOVERABLE_TYPE = Symbol.for(\"react.recoverable\"),\n  REACT_OPTIMISTIC_KEY = Symbol.for(\"react.optimistic_key\");\nfunction createPortal$1(children, containerInfo, implementation) {\n  var key =\n    3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n  return {\n    $$typeof: REACT_PORTAL_TYPE,\n    key:\n      null == key\n        ? null\n        : key === REACT_OPTIMISTIC_KEY\n          ? REACT_OPTIMISTIC_KEY\n          : \"\" + key,\n    children: children,\n    containerInfo: containerInfo,\n    implementation: implementation\n  };\n}\nvar ReactSharedInternals =\n  React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n  if (\"font\" === as) return \"\";\n  if (\"string\" === typeof input)\n    return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n  Internals;\nexports.browser = function (reason) {\n  return { $$typeof: REACT_RECOVERABLE_TYPE, _reason: reason };\n};\nexports.createPortal = function (children, container) {\n  var key =\n    2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n  if (\n    !container ||\n    (1 !== container.nodeType &&\n      9 !== container.nodeType &&\n      11 !== container.nodeType)\n  )\n    throw Error(formatProdErrorMessage(299));\n  return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n  var previousTransition = ReactSharedInternals.T,\n    previousUpdatePriority = Internals.p;\n  try {\n    if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n  } finally {\n    (ReactSharedInternals.T = previousTransition),\n      (Internals.p = previousUpdatePriority),\n      Internals.d.f();\n  }\n};\nexports.preconnect = function (href, options) {\n  \"string\" === typeof href &&\n    (options\n      ? ((options = options.crossOrigin),\n        (options =\n          \"string\" === typeof options\n            ? \"use-credentials\" === options\n              ? options\n              : \"\"\n            : void 0))\n      : (options = null),\n    Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n  \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n  if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n    var as = options.as,\n      crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n      integrity =\n        \"string\" === typeof options.integrity ? options.integrity : void 0,\n      fetchPriority =\n        \"string\" === typeof options.fetchPriority\n          ? options.fetchPriority\n          : void 0;\n    \"style\" === as\n      ? Internals.d.S(\n          href,\n          \"string\" === typeof options.precedence ? options.precedence : void 0,\n          {\n            crossOrigin: crossOrigin,\n            integrity: integrity,\n            fetchPriority: fetchPriority\n          }\n        )\n      : \"script\" === as &&\n        Internals.d.X(href, {\n          crossOrigin: crossOrigin,\n          integrity: integrity,\n          fetchPriority: fetchPriority,\n          nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n        });\n  }\n};\nexports.preinitModule = function (href, options) {\n  if (\"string\" === typeof href)\n    if (\"object\" === typeof options && null !== options) {\n      if (null == options.as || \"script\" === options.as) {\n        var crossOrigin = getCrossOriginStringAs(\n          options.as,\n          options.crossOrigin\n        );\n        Internals.d.M(href, {\n          crossOrigin: crossOrigin,\n          integrity:\n            \"string\" === typeof options.integrity ? options.integrity : void 0,\n          nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n          fetchPriority:\n            \"string\" === typeof options.fetchPriority\n              ? options.fetchPriority\n              : void 0\n        });\n      }\n    } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n  if (\n    \"string\" === typeof href &&\n    \"object\" === typeof options &&\n    null !== options &&\n    \"string\" === typeof options.as\n  ) {\n    var as = options.as,\n      crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n    Internals.d.L(href, as, {\n      crossOrigin: crossOrigin,\n      integrity:\n        \"string\" === typeof options.integrity ? options.integrity : void 0,\n      nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n      type: \"string\" === typeof options.type ? options.type : void 0,\n      fetchPriority:\n        \"string\" === typeof options.fetchPriority\n          ? options.fetchPriority\n          : void 0,\n      referrerPolicy:\n        \"string\" === typeof options.referrerPolicy\n          ? options.referrerPolicy\n          : void 0,\n      imageSrcSet:\n        \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n      imageSizes:\n        \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n      media: \"string\" === typeof options.media ? options.media : void 0\n    });\n  }\n};\nexports.preloadModule = function (href, options) {\n  if (\"string\" === typeof href)\n    if (options) {\n      var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n      Internals.d.m(href, {\n        as:\n          \"string\" === typeof options.as && \"script\" !== options.as\n            ? options.as\n            : void 0,\n        crossOrigin: crossOrigin,\n        integrity:\n          \"string\" === typeof options.integrity ? options.integrity : void 0,\n        nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n        fetchPriority:\n          \"string\" === typeof options.fetchPriority\n            ? options.fetchPriority\n            : void 0\n      });\n    } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n  Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n  return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n  return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n  return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.3.1\";\n","'use strict';\n\nfunction checkDCE() {\n  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n  if (\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n  ) {\n    return;\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    // This branch is unreachable because this function is only called\n    // in production, but the condition is true only in development.\n    // Therefore if the branch is still here, dead code elimination wasn't\n    // properly applied.\n    // Don't change the message. React DevTools relies on it. Also make sure\n    // this message doesn't occur elsewhere in this function, or it will cause\n    // a false positive.\n    throw new Error('^_^');\n  }\n  try {\n    // Verify that the code above has been dead code eliminated (DCE'd).\n    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n  } catch (err) {\n    // DevTools shouldn't crash React, no matter what.\n    // We should still report in case we break this code.\n    console.error(err);\n  }\n}\n\nif (process.env.NODE_ENV === 'production') {\n  // DCE check should happen before ReactDOM bundle executes so that\n  // DevTools can report bad minification during injection.\n  checkDCE();\n  module.exports = require('./cjs/react-dom-client.production.js');\n} else {\n  module.exports = require('./cjs/react-dom-client.development.js');\n}\n","'use strict';\n\nfunction checkDCE() {\n  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n  if (\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n  ) {\n    return;\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    // This branch is unreachable because this function is only called\n    // in production, but the condition is true only in development.\n    // Therefore if the branch is still here, dead code elimination wasn't\n    // properly applied.\n    // Don't change the message. React DevTools relies on it. Also make sure\n    // this message doesn't occur elsewhere in this function, or it will cause\n    // a false positive.\n    throw new Error('^_^');\n  }\n  try {\n    // Verify that the code above has been dead code eliminated (DCE'd).\n    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n  } catch (err) {\n    // DevTools shouldn't crash React, no matter what.\n    // We should still report in case we break this code.\n    console.error(err);\n  }\n}\n\nif (process.env.NODE_ENV === 'production') {\n  // DCE check should happen before ReactDOM bundle executes so that\n  // DevTools can report bad minification during injection.\n  checkDCE();\n  module.exports = require('./cjs/react-dom.production.js');\n} else {\n  module.exports = require('./cjs/react-dom.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n  REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n  var key = null;\n  void 0 !== maybeKey && (key = \"\" + maybeKey);\n  void 0 !== config.key && (key = \"\" + config.key);\n  if (\"key\" in config) {\n    maybeKey = {};\n    for (var propName in config)\n      \"key\" !== propName && (maybeKey[propName] = config[propName]);\n  } else maybeKey = config;\n  config = maybeKey.ref;\n  return {\n    $$typeof: REACT_ELEMENT_TYPE,\n    type: type,\n    key: key,\n    ref: void 0 !== config ? config : null,\n    props: maybeKey\n  };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n  REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n  REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n  REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n  REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n  REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n  REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n  REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n  REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n  REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n  REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n  REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n  REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n  if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n  maybeIterable =\n    (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n    maybeIterable[\"@@iterator\"];\n  return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n    isMounted: function () {\n      return !1;\n    },\n    enqueueForceUpdate: function () {},\n    enqueueReplaceState: function () {},\n    enqueueSetState: function () {}\n  },\n  assign = Object.assign,\n  emptyObject = {};\nfunction Component(props, context, updater) {\n  this.props = props;\n  this.context = context;\n  this.refs = emptyObject;\n  this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n  if (\n    \"object\" !== typeof partialState &&\n    \"function\" !== typeof partialState &&\n    null != partialState\n  )\n    throw Error(\n      \"takes an object of state variables to update or a function which returns an object of state variables.\"\n    );\n  this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n  this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n  this.props = props;\n  this.context = context;\n  this.refs = emptyObject;\n  this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray;\nfunction noop() {}\nvar ReactSharedInternals = { H: null, A: null, T: null, S: null },\n  hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, props) {\n  var refProp = props.ref;\n  return {\n    $$typeof: REACT_ELEMENT_TYPE,\n    type: type,\n    key: key,\n    ref: void 0 !== refProp ? refProp : null,\n    props: props\n  };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n  return ReactElement(oldElement.type, newKey, oldElement.props);\n}\nfunction isValidElement(object) {\n  return (\n    \"object\" === typeof object &&\n    null !== object &&\n    object.$$typeof === REACT_ELEMENT_TYPE\n  );\n}\nfunction escape(key) {\n  var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n  return (\n    \"$\" +\n    key.replace(/[=:]/g, function (match) {\n      return escaperLookup[match];\n    })\n  );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n  return \"object\" === typeof element && null !== element && null != element.key\n    ? escape(\"\" + element.key)\n    : index.toString(36);\n}\nfunction resolveThenable(thenable) {\n  switch (thenable.status) {\n    case \"fulfilled\":\n      return thenable.value;\n    case \"rejected\":\n      throw thenable.reason;\n    default:\n      switch (\n        (\"string\" === typeof thenable.status\n          ? thenable.then(noop, noop)\n          : ((thenable.status = \"pending\"),\n            thenable.then(\n              function (fulfilledValue) {\n                \"pending\" === thenable.status &&\n                  ((thenable.status = \"fulfilled\"),\n                  (thenable.value = fulfilledValue));\n              },\n              function (error) {\n                \"pending\" === thenable.status &&\n                  ((thenable.status = \"rejected\"), (thenable.reason = error));\n              }\n            )),\n        thenable.status)\n      ) {\n        case \"fulfilled\":\n          return thenable.value;\n        case \"rejected\":\n          throw thenable.reason;\n      }\n  }\n  throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n  var type = typeof children;\n  if (\"undefined\" === type || \"boolean\" === type) children = null;\n  var invokeCallback = !1;\n  if (null === children) invokeCallback = !0;\n  else\n    switch (type) {\n      case \"bigint\":\n      case \"string\":\n      case \"number\":\n        invokeCallback = !0;\n        break;\n      case \"object\":\n        switch (children.$$typeof) {\n          case REACT_ELEMENT_TYPE:\n          case REACT_PORTAL_TYPE:\n            invokeCallback = !0;\n            break;\n          case REACT_LAZY_TYPE:\n            return (\n              (invokeCallback = children._init),\n              mapIntoArray(\n                invokeCallback(children._payload),\n                array,\n                escapedPrefix,\n                nameSoFar,\n                callback\n              )\n            );\n        }\n    }\n  if (invokeCallback)\n    return (\n      (callback = callback(children)),\n      (invokeCallback =\n        \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n      isArrayImpl(callback)\n        ? ((escapedPrefix = \"\"),\n          null != invokeCallback &&\n            (escapedPrefix =\n              invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n          mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n            return c;\n          }))\n        : null != callback &&\n          (isValidElement(callback) &&\n            (callback = cloneAndReplaceKey(\n              callback,\n              escapedPrefix +\n                (null == callback.key ||\n                (children && children.key === callback.key)\n                  ? \"\"\n                  : (\"\" + callback.key).replace(\n                      userProvidedKeyEscapeRegex,\n                      \"$&/\"\n                    ) + \"/\") +\n                invokeCallback\n            )),\n          array.push(callback)),\n      1\n    );\n  invokeCallback = 0;\n  var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n  if (isArrayImpl(children))\n    for (var i = 0; i < children.length; i++)\n      (nameSoFar = children[i]),\n        (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n        (invokeCallback += mapIntoArray(\n          nameSoFar,\n          array,\n          escapedPrefix,\n          type,\n          callback\n        ));\n  else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n    for (\n      children = i.call(children), i = 0;\n      !(nameSoFar = children.next()).done;\n\n    )\n      (nameSoFar = nameSoFar.value),\n        (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n        (invokeCallback += mapIntoArray(\n          nameSoFar,\n          array,\n          escapedPrefix,\n          type,\n          callback\n        ));\n  else if (\"object\" === type) {\n    if (\"function\" === typeof children.then)\n      return mapIntoArray(\n        resolveThenable(children),\n        array,\n        escapedPrefix,\n        nameSoFar,\n        callback\n      );\n    array = String(children);\n    throw Error(\n      \"Objects are not valid as a React child (found: \" +\n        (\"[object Object]\" === array\n          ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n          : array) +\n        \"). If you meant to render a collection of children, use an array instead.\"\n    );\n  }\n  return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n  if (null == children) return children;\n  var result = [],\n    count = 0;\n  mapIntoArray(children, result, \"\", \"\", function (child) {\n    return func.call(context, child, count++);\n  });\n  return result;\n}\nfunction lazyInitializer(payload) {\n  if (-1 === payload._status) {\n    var ctor = payload._result,\n      thenable = ctor();\n    thenable.then(\n      function (moduleObject) {\n        if (0 === payload._status || -1 === payload._status)\n          (payload._status = 1),\n            (payload._result = moduleObject),\n            void 0 === thenable.status &&\n              ((thenable.status = \"fulfilled\"),\n              (thenable.value = moduleObject));\n      },\n      function (error) {\n        if (0 === payload._status || -1 === payload._status)\n          (payload._status = 2),\n            (payload._result = error),\n            void 0 === thenable.status &&\n              ((thenable.status = \"rejected\"), (thenable.reason = error));\n      }\n    );\n    -1 === payload._status &&\n      ((payload._status = 0), (payload._result = thenable));\n  }\n  if (1 === payload._status) return payload._result.default;\n  throw payload._result;\n}\nvar reportGlobalError =\n  \"function\" === typeof reportError\n    ? reportError\n    : function (error) {\n        if (\n          \"object\" === typeof window &&\n          \"function\" === typeof window.ErrorEvent\n        ) {\n          var event = new window.ErrorEvent(\"error\", {\n            bubbles: !0,\n            cancelable: !0,\n            message:\n              \"object\" === typeof error &&\n              null !== error &&\n              \"string\" === typeof error.message\n                ? String(error.message)\n                : String(error),\n            error: error\n          });\n          if (!window.dispatchEvent(event)) return;\n        } else if (\n          \"object\" === typeof process &&\n          \"function\" === typeof process.emit\n        ) {\n          process.emit(\"uncaughtException\", error);\n          return;\n        }\n        console.error(error);\n      };\nfunction startTransition(scope) {\n  var prevTransition = ReactSharedInternals.T,\n    currentTransition = {};\n  currentTransition.types =\n    null !== prevTransition ? prevTransition.types : null;\n  ReactSharedInternals.T = currentTransition;\n  try {\n    var returnValue = scope(),\n      onStartTransitionFinish = ReactSharedInternals.S;\n    null !== onStartTransitionFinish &&\n      onStartTransitionFinish(currentTransition, returnValue);\n    \"object\" === typeof returnValue &&\n      null !== returnValue &&\n      \"function\" === typeof returnValue.then &&\n      returnValue.then(noop, reportGlobalError);\n  } catch (error) {\n    reportGlobalError(error);\n  } finally {\n    null !== prevTransition &&\n      null !== currentTransition.types &&\n      (prevTransition.types = currentTransition.types),\n      (ReactSharedInternals.T = prevTransition);\n  }\n}\nfunction addTransitionType(type) {\n  var transition = ReactSharedInternals.T;\n  if (null !== transition) {\n    var transitionTypes = transition.types;\n    null === transitionTypes\n      ? (transition.types = [type])\n      : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);\n  } else startTransition(addTransitionType.bind(null, type));\n}\nvar Children = {\n  map: mapChildren,\n  forEach: function (children, forEachFunc, forEachContext) {\n    mapChildren(\n      children,\n      function () {\n        forEachFunc.apply(this, arguments);\n      },\n      forEachContext\n    );\n  },\n  count: function (children) {\n    var n = 0;\n    mapChildren(children, function () {\n      n++;\n    });\n    return n;\n  },\n  toArray: function (children) {\n    return (\n      mapChildren(children, function (child) {\n        return child;\n      }) || []\n    );\n  },\n  only: function (children) {\n    if (!isValidElement(children))\n      throw Error(\n        \"React.Children.only expected to receive a single React element child.\"\n      );\n    return children;\n  }\n};\nexports.Activity = REACT_ACTIVITY_TYPE;\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n  ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n  __proto__: null,\n  c: function (size) {\n    return ReactSharedInternals.H.useMemoCache(size);\n  }\n};\nexports.addTransitionType = addTransitionType;\nexports.cache = function (fn) {\n  return function () {\n    return fn.apply(null, arguments);\n  };\n};\nexports.cacheSignal = function () {\n  return null;\n};\nexports.cloneElement = function (element, config, children) {\n  if (null === element || void 0 === element)\n    throw Error(\n      \"The argument must be a React element, but you passed \" + element + \".\"\n    );\n  var props = assign({}, element.props),\n    key = element.key;\n  if (null != config)\n    for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n      !hasOwnProperty.call(config, propName) ||\n        \"key\" === propName ||\n        \"__self\" === propName ||\n        \"__source\" === propName ||\n        (\"ref\" === propName && void 0 === config.ref) ||\n        (props[propName] = config[propName]);\n  var propName = arguments.length - 2;\n  if (1 === propName) props.children = children;\n  else if (1 < propName) {\n    for (var childArray = Array(propName), i = 0; i < propName; i++)\n      childArray[i] = arguments[i + 2];\n    props.children = childArray;\n  }\n  return ReactElement(element.type, key, props);\n};\nexports.createContext = function (defaultValue) {\n  defaultValue = {\n    $$typeof: REACT_CONTEXT_TYPE,\n    _currentValue: defaultValue,\n    _currentValue2: defaultValue,\n    _threadCount: 0,\n    Provider: null,\n    Consumer: null\n  };\n  defaultValue.Provider = defaultValue;\n  defaultValue.Consumer = {\n    $$typeof: REACT_CONSUMER_TYPE,\n    _context: defaultValue\n  };\n  return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n  var propName,\n    props = {},\n    key = null;\n  if (null != config)\n    for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n      hasOwnProperty.call(config, propName) &&\n        \"key\" !== propName &&\n        \"__self\" !== propName &&\n        \"__source\" !== propName &&\n        (props[propName] = config[propName]);\n  var childrenLength = arguments.length - 2;\n  if (1 === childrenLength) props.children = children;\n  else if (1 < childrenLength) {\n    for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n      childArray[i] = arguments[i + 2];\n    props.children = childArray;\n  }\n  if (type && type.defaultProps)\n    for (propName in ((childrenLength = type.defaultProps), childrenLength))\n      void 0 === props[propName] &&\n        (props[propName] = childrenLength[propName]);\n  return ReactElement(type, key, props);\n};\nexports.createRef = function () {\n  return { current: null };\n};\nexports.forwardRef = function (render) {\n  return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n  return {\n    $$typeof: REACT_LAZY_TYPE,\n    _payload: { _status: -1, _result: ctor },\n    _init: lazyInitializer\n  };\n};\nexports.memo = function (type, compare) {\n  return {\n    $$typeof: REACT_MEMO_TYPE,\n    type: type,\n    compare: void 0 === compare ? null : compare\n  };\n};\nexports.startTransition = startTransition;\nexports.unstable_useCacheRefresh = function () {\n  return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n  return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n  return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n  return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n  return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n  return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, deps) {\n  return ReactSharedInternals.H.useEffect(create, deps);\n};\nexports.useEffectEvent = function (callback) {\n  return ReactSharedInternals.H.useEffectEvent(callback);\n};\nexports.useId = function () {\n  return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n  return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n  return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n  return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n  return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n  return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n  return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n  return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n  return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n  subscribe,\n  getSnapshot,\n  getServerSnapshot\n) {\n  return ReactSharedInternals.H.useSyncExternalStore(\n    subscribe,\n    getSnapshot,\n    getServerSnapshot\n  );\n};\nexports.useTransition = function () {\n  return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.3.1\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react.production.js');\n} else {\n  module.exports = require('./cjs/react.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n  module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nfunction push(heap, node) {\n  var index = heap.length;\n  heap.push(node);\n  a: for (; 0 < index; ) {\n    var parentIndex = (index - 1) >>> 1,\n      parent = heap[parentIndex];\n    if (0 < compare(parent, node))\n      (heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);\n    else break a;\n  }\n}\nfunction peek(heap) {\n  return 0 === heap.length ? null : heap[0];\n}\nfunction pop(heap) {\n  if (0 === heap.length) return null;\n  var first = heap[0],\n    last = heap.pop();\n  if (last !== first) {\n    heap[0] = last;\n    a: for (\n      var index = 0, length = heap.length, halfLength = length >>> 1;\n      index < halfLength;\n\n    ) {\n      var leftIndex = 2 * (index + 1) - 1,\n        left = heap[leftIndex],\n        rightIndex = leftIndex + 1,\n        right = heap[rightIndex];\n      if (0 > compare(left, last))\n        rightIndex < length && 0 > compare(right, left)\n          ? ((heap[index] = right),\n            (heap[rightIndex] = last),\n            (index = rightIndex))\n          : ((heap[index] = left),\n            (heap[leftIndex] = last),\n            (index = leftIndex));\n      else if (rightIndex < length && 0 > compare(right, last))\n        (heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);\n      else break a;\n    }\n  }\n  return first;\n}\nfunction compare(a, b) {\n  var diff = a.sortIndex - b.sortIndex;\n  return 0 !== diff ? diff : a.id - b.id;\n}\nexports.unstable_now = void 0;\nif (\"object\" === typeof performance && \"function\" === typeof performance.now) {\n  var localPerformance = performance;\n  exports.unstable_now = function () {\n    return localPerformance.now();\n  };\n} else {\n  var localDate = Date,\n    initialTime = localDate.now();\n  exports.unstable_now = function () {\n    return localDate.now() - initialTime;\n  };\n}\nvar taskQueue = [],\n  timerQueue = [],\n  taskIdCounter = 1,\n  currentTask = null,\n  currentPriorityLevel = 3,\n  isPerformingWork = !1,\n  isHostCallbackScheduled = !1,\n  isHostTimeoutScheduled = !1,\n  needsPaint = !1,\n  localSetTimeout = \"function\" === typeof setTimeout ? setTimeout : null,\n  localClearTimeout = \"function\" === typeof clearTimeout ? clearTimeout : null,\n  localSetImmediate = \"undefined\" !== typeof setImmediate ? setImmediate : null;\nfunction advanceTimers(currentTime) {\n  for (var timer = peek(timerQueue); null !== timer; ) {\n    if (null === timer.callback) pop(timerQueue);\n    else if (timer.startTime <= currentTime)\n      pop(timerQueue),\n        (timer.sortIndex = timer.expirationTime),\n        push(taskQueue, timer);\n    else break;\n    timer = peek(timerQueue);\n  }\n}\nfunction handleTimeout(currentTime) {\n  isHostTimeoutScheduled = !1;\n  advanceTimers(currentTime);\n  if (!isHostCallbackScheduled)\n    if (null !== peek(taskQueue))\n      (isHostCallbackScheduled = !0),\n        isMessageLoopRunning ||\n          ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());\n    else {\n      var firstTimer = peek(timerQueue);\n      null !== firstTimer &&\n        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n    }\n}\nvar isMessageLoopRunning = !1,\n  taskTimeoutID = -1,\n  frameInterval = 5,\n  startTime = -1;\nfunction shouldYieldToHost() {\n  return needsPaint\n    ? !0\n    : exports.unstable_now() - startTime < frameInterval\n      ? !1\n      : !0;\n}\nfunction performWorkUntilDeadline() {\n  needsPaint = !1;\n  if (isMessageLoopRunning) {\n    var currentTime = exports.unstable_now();\n    startTime = currentTime;\n    var hasMoreWork = !0;\n    try {\n      a: {\n        isHostCallbackScheduled = !1;\n        isHostTimeoutScheduled &&\n          ((isHostTimeoutScheduled = !1),\n          localClearTimeout(taskTimeoutID),\n          (taskTimeoutID = -1));\n        isPerformingWork = !0;\n        var previousPriorityLevel = currentPriorityLevel;\n        try {\n          b: {\n            advanceTimers(currentTime);\n            for (\n              currentTask = peek(taskQueue);\n              null !== currentTask &&\n              !(\n                currentTask.expirationTime > currentTime && shouldYieldToHost()\n              );\n\n            ) {\n              var callback = currentTask.callback;\n              if (\"function\" === typeof callback) {\n                currentTask.callback = null;\n                currentPriorityLevel = currentTask.priorityLevel;\n                var continuationCallback = callback(\n                  currentTask.expirationTime <= currentTime\n                );\n                currentTime = exports.unstable_now();\n                if (\"function\" === typeof continuationCallback) {\n                  currentTask.callback = continuationCallback;\n                  advanceTimers(currentTime);\n                  hasMoreWork = !0;\n                  break b;\n                }\n                currentTask === peek(taskQueue) && pop(taskQueue);\n                advanceTimers(currentTime);\n              } else pop(taskQueue);\n              currentTask = peek(taskQueue);\n            }\n            if (null !== currentTask) hasMoreWork = !0;\n            else {\n              var firstTimer = peek(timerQueue);\n              null !== firstTimer &&\n                requestHostTimeout(\n                  handleTimeout,\n                  firstTimer.startTime - currentTime\n                );\n              hasMoreWork = !1;\n            }\n          }\n          break a;\n        } finally {\n          (currentTask = null),\n            (currentPriorityLevel = previousPriorityLevel),\n            (isPerformingWork = !1);\n        }\n        hasMoreWork = void 0;\n      }\n    } finally {\n      hasMoreWork\n        ? schedulePerformWorkUntilDeadline()\n        : (isMessageLoopRunning = !1);\n    }\n  }\n}\nvar schedulePerformWorkUntilDeadline;\nif (\"function\" === typeof localSetImmediate)\n  schedulePerformWorkUntilDeadline = function () {\n    localSetImmediate(performWorkUntilDeadline);\n  };\nelse if (\"undefined\" !== typeof MessageChannel) {\n  var channel = new MessageChannel(),\n    port = channel.port2;\n  channel.port1.onmessage = performWorkUntilDeadline;\n  schedulePerformWorkUntilDeadline = function () {\n    port.postMessage(null);\n  };\n} else\n  schedulePerformWorkUntilDeadline = function () {\n    localSetTimeout(performWorkUntilDeadline, 0);\n  };\nfunction requestHostTimeout(callback, ms) {\n  taskTimeoutID = localSetTimeout(function () {\n    callback(exports.unstable_now());\n  }, ms);\n}\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function (task) {\n  task.callback = null;\n};\nexports.unstable_forceFrameRate = function (fps) {\n  0 > fps || 125 < fps\n    ? console.error(\n        \"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"\n      )\n    : (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);\n};\nexports.unstable_getCurrentPriorityLevel = function () {\n  return currentPriorityLevel;\n};\nexports.unstable_next = function (eventHandler) {\n  switch (currentPriorityLevel) {\n    case 1:\n    case 2:\n    case 3:\n      var priorityLevel = 3;\n      break;\n    default:\n      priorityLevel = currentPriorityLevel;\n  }\n  var previousPriorityLevel = currentPriorityLevel;\n  currentPriorityLevel = priorityLevel;\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel = previousPriorityLevel;\n  }\n};\nexports.unstable_requestPaint = function () {\n  needsPaint = !0;\n};\nexports.unstable_runWithPriority = function (priorityLevel, eventHandler) {\n  switch (priorityLevel) {\n    case 1:\n    case 2:\n    case 3:\n    case 4:\n    case 5:\n      break;\n    default:\n      priorityLevel = 3;\n  }\n  var previousPriorityLevel = currentPriorityLevel;\n  currentPriorityLevel = priorityLevel;\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel = previousPriorityLevel;\n  }\n};\nexports.unstable_scheduleCallback = function (\n  priorityLevel,\n  callback,\n  options\n) {\n  var currentTime = exports.unstable_now();\n  \"object\" === typeof options && null !== options\n    ? ((options = options.delay),\n      (options =\n        \"number\" === typeof options && 0 < options\n          ? currentTime + options\n          : currentTime))\n    : (options = currentTime);\n  switch (priorityLevel) {\n    case 1:\n      var timeout = -1;\n      break;\n    case 2:\n      timeout = 250;\n      break;\n    case 5:\n      timeout = 1073741823;\n      break;\n    case 4:\n      timeout = 1e4;\n      break;\n    default:\n      timeout = 5e3;\n  }\n  timeout = options + timeout;\n  priorityLevel = {\n    id: taskIdCounter++,\n    callback: callback,\n    priorityLevel: priorityLevel,\n    startTime: options,\n    expirationTime: timeout,\n    sortIndex: -1\n  };\n  options > currentTime\n    ? ((priorityLevel.sortIndex = options),\n      push(timerQueue, priorityLevel),\n      null === peek(taskQueue) &&\n        priorityLevel === peek(timerQueue) &&\n        (isHostTimeoutScheduled\n          ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))\n          : (isHostTimeoutScheduled = !0),\n        requestHostTimeout(handleTimeout, options - currentTime)))\n    : ((priorityLevel.sortIndex = timeout),\n      push(taskQueue, priorityLevel),\n      isHostCallbackScheduled ||\n        isPerformingWork ||\n        ((isHostCallbackScheduled = !0),\n        isMessageLoopRunning ||\n          ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));\n  return priorityLevel;\n};\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = function (callback) {\n  var parentPriorityLevel = currentPriorityLevel;\n  return function () {\n    var previousPriorityLevel = currentPriorityLevel;\n    currentPriorityLevel = parentPriorityLevel;\n    try {\n      return callback.apply(this, arguments);\n    } finally {\n      currentPriorityLevel = previousPriorityLevel;\n    }\n  };\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/scheduler.production.js');\n} else {\n  module.exports = require('./cjs/scheduler.development.js');\n}\n","\"use client\";\n// packages/@mantine/core/src/core/utils/filter-props/filter-props.ts\nfunction filterProps(props) {\n\treturn Object.keys(props).reduce((acc, key) => {\n\t\tif (props[key] !== void 0) acc[key] = props[key];\n\t\treturn acc;\n\t}, {});\n}\nexport { filterProps };\n\n//# sourceMappingURL=filter-props.mjs.map","// packages/@mantine/core/src/core/utils/units-converters/rem.ts\nfunction scaleRem(remValue) {\n\tif (remValue === \"0rem\") return \"0rem\";\n\treturn `calc(${remValue} * var(--mantine-scale))`;\n}\nfunction createConverter(units, { shouldScale = false } = {}) {\n\tfunction converter(value) {\n\t\tif (value === 0 || value === \"0\") return `0${units}`;\n\t\tif (typeof value === \"number\") {\n\t\t\tconst val = `${value / 16}${units}`;\n\t\t\treturn shouldScale ? scaleRem(val) : val;\n\t\t}\n\t\tif (typeof value === \"string\") {\n\t\t\tif (value === \"\") return value;\n\t\t\tif (value.startsWith(\"calc(\") || value.startsWith(\"clamp(\") || value.includes(\"rgba(\")) return value;\n\t\t\tif (value.includes(\",\")) return value.split(\",\").map((val) => converter(val)).join(\",\");\n\t\t\tif (value.includes(\" \")) return value.split(\" \").map((val) => converter(val)).join(\" \");\n\t\t\tconst replaced = value.replace(\"px\", \"\");\n\t\t\tif (!Number.isNaN(Number(replaced))) {\n\t\t\t\tconst val = `${Number(replaced) / 16}${units}`;\n\t\t\t\treturn shouldScale ? scaleRem(val) : val;\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}\n\treturn converter;\n}\nconst rem = createConverter(\"rem\", { shouldScale: true });\nconst em = createConverter(\"em\");\nexport { em, rem };\n\n//# sourceMappingURL=rem.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.ts\nfunction getPrimaryShade(theme, colorScheme) {\n\tif (typeof theme.primaryShade === \"number\") return theme.primaryShade;\n\tif (colorScheme === \"dark\") return theme.primaryShade.dark;\n\treturn theme.primaryShade.light;\n}\nexport { getPrimaryShade };\n\n//# sourceMappingURL=get-primary-shade.mjs.map","// packages/@mantine/core/src/core/MantineProvider/color-functions/to-rgba/to-rgba.ts\nfunction isHexColor(hex) {\n\treturn /^#?([0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i.test(hex);\n}\nfunction hexToRgba(color) {\n\tlet hexString = color.replace(\"#\", \"\");\n\tif (hexString.length === 3 || hexString.length === 4) hexString = hexString.split(\"\").map((char) => char + char).join(\"\");\n\tif (hexString.length === 8) {\n\t\tconst alpha = parseInt(hexString.slice(6, 8), 16) / 255;\n\t\treturn {\n\t\t\tr: parseInt(hexString.slice(0, 2), 16),\n\t\t\tg: parseInt(hexString.slice(2, 4), 16),\n\t\t\tb: parseInt(hexString.slice(4, 6), 16),\n\t\t\ta: alpha\n\t\t};\n\t}\n\tconst parsed = parseInt(hexString, 16);\n\treturn {\n\t\tr: parsed >> 16 & 255,\n\t\tg: parsed >> 8 & 255,\n\t\tb: parsed & 255,\n\t\ta: 1\n\t};\n}\nfunction rgbStringToRgba(color) {\n\tconst [r, g, b, a] = color.replace(/[^0-9,./%\\s]/g, \"\").trim().split(/\\s*[/,]\\s*|\\s+/).map((value, index) => value.endsWith(\"%\") ? parseFloat(value) / 100 * (index === 3 ? 1 : 255) : Number(value));\n\treturn {\n\t\tr,\n\t\tg,\n\t\tb,\n\t\ta: a === void 0 ? 1 : a\n\t};\n}\nfunction hslStringToRgba(hslaString) {\n\tconst matches = hslaString.match(/^hsla?\\(\\s*([-+]?(?:\\d*\\.)?\\d+)\\s*,\\s*((?:\\d*\\.)?\\d+%)\\s*,\\s*((?:\\d*\\.)?\\d+%)\\s*(?:,\\s*((?:\\d*\\.)?\\d+%?))?\\s*\\)$/i);\n\tif (!matches) return {\n\t\tr: 0,\n\t\tg: 0,\n\t\tb: 0,\n\t\ta: 1\n\t};\n\tconst h = (parseFloat(matches[1]) % 360 + 360) % 360;\n\tconst s = parseFloat(matches[2]) / 100;\n\tconst l = parseFloat(matches[3]) / 100;\n\tconst a = matches[4] ? parseFloat(matches[4]) / (matches[4].endsWith(\"%\") ? 100 : 1) : void 0;\n\tconst chroma = (1 - Math.abs(2 * l - 1)) * s;\n\tconst huePrime = h / 60;\n\tconst x = chroma * (1 - Math.abs(huePrime % 2 - 1));\n\tconst m = l - chroma / 2;\n\tlet r;\n\tlet g;\n\tlet b;\n\tif (huePrime >= 0 && huePrime < 1) {\n\t\tr = chroma;\n\t\tg = x;\n\t\tb = 0;\n\t} else if (huePrime >= 1 && huePrime < 2) {\n\t\tr = x;\n\t\tg = chroma;\n\t\tb = 0;\n\t} else if (huePrime >= 2 && huePrime < 3) {\n\t\tr = 0;\n\t\tg = chroma;\n\t\tb = x;\n\t} else if (huePrime >= 3 && huePrime < 4) {\n\t\tr = 0;\n\t\tg = x;\n\t\tb = chroma;\n\t} else if (huePrime >= 4 && huePrime < 5) {\n\t\tr = x;\n\t\tg = 0;\n\t\tb = chroma;\n\t} else {\n\t\tr = chroma;\n\t\tg = 0;\n\t\tb = x;\n\t}\n\treturn {\n\t\tr: Math.round((r + m) * 255),\n\t\tg: Math.round((g + m) * 255),\n\t\tb: Math.round((b + m) * 255),\n\t\ta: a === void 0 ? 1 : a\n\t};\n}\nfunction toRgba(color) {\n\tif (isHexColor(color)) return hexToRgba(color);\n\tif (color.startsWith(\"rgb\")) return rgbStringToRgba(color);\n\tif (color.startsWith(\"hsl\")) return hslStringToRgba(color);\n\treturn {\n\t\tr: 0,\n\t\tg: 0,\n\t\tb: 0,\n\t\ta: 1\n\t};\n}\nexport { toRgba };\n\n//# sourceMappingURL=to-rgba.mjs.map","import { toRgba } from \"../to-rgba/to-rgba.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/luminance/luminance.ts\nfunction gammaCorrect(c) {\n\treturn c <= .03928 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4;\n}\nfunction getLightnessFromOklch(oklchColor) {\n\tconst match = oklchColor.match(/oklch\\((.*?)%\\s/);\n\treturn match ? parseFloat(match[1]) : null;\n}\nfunction luminance(color) {\n\tif (color.startsWith(\"oklch(\")) return (getLightnessFromOklch(color) || 0) / 100;\n\tconst { r, g, b } = toRgba(color);\n\tconst sR = r / 255;\n\tconst sG = g / 255;\n\tconst sB = b / 255;\n\tconst rLinear = gammaCorrect(sR);\n\tconst gLinear = gammaCorrect(sG);\n\tconst bLinear = gammaCorrect(sB);\n\treturn .2126 * rLinear + .7152 * gLinear + .0722 * bLinear;\n}\nfunction isLightColor(color, luminanceThreshold = .179) {\n\tif (color.startsWith(\"var(\")) return false;\n\treturn luminance(color) > luminanceThreshold;\n}\nexport { isLightColor, luminance };\n\n//# sourceMappingURL=luminance.mjs.map","\"use client\";\nimport { getPrimaryShade } from \"../get-primary-shade/get-primary-shade.mjs\";\nimport { isLightColor } from \"../luminance/luminance.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.ts\nfunction parseThemeColor({ color, theme, colorScheme }) {\n\tif (typeof color !== \"string\") throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof color}`);\n\tif (color === \"bright\") return {\n\t\tcolor,\n\t\tvalue: colorScheme === \"dark\" ? theme.white : theme.black,\n\t\tshade: void 0,\n\t\tisThemeColor: false,\n\t\tisLight: isLightColor(colorScheme === \"dark\" ? theme.white : theme.black, theme.luminanceThreshold),\n\t\tvariable: \"--mantine-color-bright\"\n\t};\n\tif (color === \"dimmed\") return {\n\t\tcolor,\n\t\tvalue: colorScheme === \"dark\" ? theme.colors.dark[2] : theme.colors.gray[7],\n\t\tshade: void 0,\n\t\tisThemeColor: false,\n\t\tisLight: isLightColor(colorScheme === \"dark\" ? theme.colors.dark[2] : theme.colors.gray[6], theme.luminanceThreshold),\n\t\tvariable: \"--mantine-color-dimmed\"\n\t};\n\tif (color === \"white\" || color === \"black\") return {\n\t\tcolor,\n\t\tvalue: color === \"white\" ? theme.white : theme.black,\n\t\tshade: void 0,\n\t\tisThemeColor: false,\n\t\tisLight: isLightColor(color === \"white\" ? theme.white : theme.black, theme.luminanceThreshold),\n\t\tvariable: `--mantine-color-${color}`\n\t};\n\tconst [_color, shade] = color.split(\".\");\n\tconst colorShade = shade ? Number(shade) : void 0;\n\tconst isThemeColor = _color in theme.colors;\n\tif (isThemeColor) {\n\t\tconst colorValue = colorShade !== void 0 ? theme.colors[_color][colorShade] : theme.colors[_color][getPrimaryShade(theme, colorScheme || \"light\")];\n\t\treturn {\n\t\t\tcolor: _color,\n\t\t\tvalue: colorValue,\n\t\t\tshade: colorShade,\n\t\t\tisThemeColor,\n\t\t\tisLight: isLightColor(colorValue, theme.luminanceThreshold),\n\t\t\tvariable: shade ? `--mantine-color-${_color}-${colorShade}` : `--mantine-color-${_color}-filled`\n\t\t};\n\t}\n\treturn {\n\t\tcolor,\n\t\tvalue: color,\n\t\tisThemeColor,\n\t\tisLight: isLightColor(color, theme.luminanceThreshold),\n\t\tshade: colorShade,\n\t\tvariable: void 0\n\t};\n}\nexport { parseThemeColor };\n\n//# sourceMappingURL=parse-theme-color.mjs.map","import { colorsTuple } from \"../../color-functions/colors-tuple/colors-tuple.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/virtual-color/virtual-color.ts\nfunction virtualColor(input) {\n\tconst result = colorsTuple(Array.from({ length: 10 }).map((_, i) => `var(--mantine-color-${input.name}-${i})`));\n\tObject.defineProperty(result, \"mantine-virtual-color\", {\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false,\n\t\tvalue: true\n\t});\n\tObject.defineProperty(result, \"dark\", {\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false,\n\t\tvalue: input.dark\n\t});\n\tObject.defineProperty(result, \"light\", {\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false,\n\t\tvalue: input.light\n\t});\n\tObject.defineProperty(result, \"name\", {\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false,\n\t\tvalue: input.name\n\t});\n\treturn result;\n}\nfunction isVirtualColor(value) {\n\treturn !!value && typeof value === \"object\" && \"mantine-virtual-color\" in value;\n}\nexport { isVirtualColor, virtualColor };\n\n//# sourceMappingURL=virtual-color.mjs.map","import { toRgba } from \"../to-rgba/to-rgba.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/darken/darken.ts\nfunction darken(color, alpha) {\n\tif (color.startsWith(\"var(\")) return `color-mix(in srgb, ${color}, black ${alpha * 100}%)`;\n\tconst { r, g, b, a } = toRgba(color);\n\tconst f = 1 - alpha;\n\tconst dark = (input) => Math.round(input * f);\n\treturn `rgba(${dark(r)}, ${dark(g)}, ${dark(b)}, ${a})`;\n}\nexport { darken };\n\n//# sourceMappingURL=darken.mjs.map","\"use client\";\nimport { parseThemeColor } from \"../parse-theme-color/parse-theme-color.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/get-theme-color/get-theme-color.ts\nfunction getThemeColor(color, theme) {\n\tconst parsed = parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme\n\t});\n\treturn parsed.variable ? `var(${parsed.variable})` : color;\n}\nexport { getThemeColor };\n\n//# sourceMappingURL=get-theme-color.mjs.map","\"use client\";\nimport { getThemeColor } from \"../get-theme-color/get-theme-color.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/get-gradient/get-gradient.ts\nfunction getGradient(gradient, theme) {\n\tconst merged = {\n\t\tfrom: gradient?.from || theme.defaultGradient.from,\n\t\tto: gradient?.to || theme.defaultGradient.to,\n\t\tdeg: gradient?.deg ?? theme.defaultGradient.deg ?? 0\n\t};\n\tconst fromColor = getThemeColor(merged.from, theme);\n\tconst toColor = getThemeColor(merged.to, theme);\n\treturn `linear-gradient(${merged.deg}deg, ${fromColor} 0%, ${toColor} 100%)`;\n}\nexport { getGradient };\n\n//# sourceMappingURL=get-gradient.mjs.map","import { toRgba } from \"../to-rgba/to-rgba.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/rgba/rgba.ts\nfunction rgba(color, alpha) {\n\tif (typeof color !== \"string\" || alpha > 1 || alpha < 0) return \"rgba(0, 0, 0, 1)\";\n\tif (color.startsWith(\"var(\")) return `color-mix(in srgb, ${color}, transparent ${(1 - alpha) * 100}%)`;\n\tif (color.startsWith(\"oklch\")) {\n\t\tif (color.includes(\"/\")) return color.replace(/\\/\\s*[\\d.]+\\s*\\)/, `/ ${alpha})`);\n\t\treturn color.replace(\")\", ` / ${alpha})`);\n\t}\n\tconst { r, g, b } = toRgba(color);\n\treturn `rgba(${r}, ${g}, ${b}, ${alpha})`;\n}\nconst alpha = rgba;\nexport { alpha, rgba };\n\n//# sourceMappingURL=rgba.mjs.map","import { rem } from \"../utils/units-converters/rem.mjs\";\nimport { defaultVariantColorsResolver } from \"./color-functions/default-variant-colors-resolver/default-variant-colors-resolver.mjs\";\nimport { DEFAULT_COLORS } from \"./default-colors.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/default-theme.ts\nconst DEFAULT_FONT_FAMILY = \"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\";\nconst DEFAULT_THEME = {\n\tscale: 1,\n\tfontSmoothing: true,\n\tfocusRing: \"auto\",\n\twhite: \"#fff\",\n\tblack: \"#000\",\n\tcolors: DEFAULT_COLORS,\n\tprimaryShade: {\n\t\tlight: 6,\n\t\tdark: 8\n\t},\n\tprimaryColor: \"blue\",\n\tvariantColorResolver: defaultVariantColorsResolver,\n\tautoContrast: false,\n\tluminanceThreshold: .3,\n\tfontFamily: DEFAULT_FONT_FAMILY,\n\tfontFamilyMonospace: \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace\",\n\trespectReducedMotion: false,\n\tcursorType: \"default\",\n\tdefaultGradient: {\n\t\tfrom: \"blue\",\n\t\tto: \"cyan\",\n\t\tdeg: 45\n\t},\n\tdefaultRadius: \"md\",\n\tactiveClassName: \"mantine-active\",\n\tfocusClassName: \"\",\n\theadings: {\n\t\tfontFamily: DEFAULT_FONT_FAMILY,\n\t\tfontWeight: \"700\",\n\t\ttextWrap: \"wrap\",\n\t\tsizes: {\n\t\t\th1: {\n\t\t\t\tfontSize: rem(34),\n\t\t\t\tlineHeight: \"1.3\"\n\t\t\t},\n\t\t\th2: {\n\t\t\t\tfontSize: rem(26),\n\t\t\t\tlineHeight: \"1.35\"\n\t\t\t},\n\t\t\th3: {\n\t\t\t\tfontSize: rem(22),\n\t\t\t\tlineHeight: \"1.4\"\n\t\t\t},\n\t\t\th4: {\n\t\t\t\tfontSize: rem(18),\n\t\t\t\tlineHeight: \"1.45\"\n\t\t\t},\n\t\t\th5: {\n\t\t\t\tfontSize: rem(16),\n\t\t\t\tlineHeight: \"1.5\"\n\t\t\t},\n\t\t\th6: {\n\t\t\t\tfontSize: rem(14),\n\t\t\t\tlineHeight: \"1.5\"\n\t\t\t}\n\t\t}\n\t},\n\tfontSizes: {\n\t\txs: rem(12),\n\t\tsm: rem(14),\n\t\tmd: rem(16),\n\t\tlg: rem(18),\n\t\txl: rem(20)\n\t},\n\tlineHeights: {\n\t\txs: \"1.4\",\n\t\tsm: \"1.45\",\n\t\tmd: \"1.55\",\n\t\tlg: \"1.6\",\n\t\txl: \"1.65\"\n\t},\n\tfontWeights: {\n\t\tregular: \"400\",\n\t\tmedium: \"600\",\n\t\tbold: \"700\"\n\t},\n\tradius: {\n\t\txs: rem(2),\n\t\tsm: rem(4),\n\t\tmd: rem(8),\n\t\tlg: rem(16),\n\t\txl: rem(32)\n\t},\n\tspacing: {\n\t\txs: rem(10),\n\t\tsm: rem(12),\n\t\tmd: rem(16),\n\t\tlg: rem(20),\n\t\txl: rem(32)\n\t},\n\tbreakpoints: {\n\t\txs: \"36em\",\n\t\tsm: \"48em\",\n\t\tmd: \"62em\",\n\t\tlg: \"75em\",\n\t\txl: \"88em\"\n\t},\n\tshadows: {\n\t\txs: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), 0 ${rem(1)} ${rem(2)} rgba(0, 0, 0, 0.1)`,\n\t\tsm: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(10)} ${rem(15)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(7)} ${rem(7)} ${rem(-5)}`,\n\t\tmd: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(20)} ${rem(25)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(10)} ${rem(10)} ${rem(-5)}`,\n\t\tlg: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(28)} ${rem(23)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(12)} ${rem(12)} ${rem(-7)}`,\n\t\txl: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(36)} ${rem(28)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(17)} ${rem(17)} ${rem(-7)}`\n\t},\n\tother: {},\n\tcomponents: {}\n};\nexport { DEFAULT_THEME };\n\n//# sourceMappingURL=default-theme.mjs.map","// packages/@mantine/core/src/core/MantineProvider/default-colors.ts\nconst DEFAULT_COLORS = {\n\tdark: [\n\t\t\"#C9C9C9\",\n\t\t\"#b8b8b8\",\n\t\t\"#828282\",\n\t\t\"#696969\",\n\t\t\"#424242\",\n\t\t\"#3b3b3b\",\n\t\t\"#2e2e2e\",\n\t\t\"#242424\",\n\t\t\"#1f1f1f\",\n\t\t\"#141414\"\n\t],\n\tgray: [\n\t\t\"#f8f9fa\",\n\t\t\"#f1f3f5\",\n\t\t\"#e9ecef\",\n\t\t\"#dee2e6\",\n\t\t\"#ced4da\",\n\t\t\"#adb5bd\",\n\t\t\"#868e96\",\n\t\t\"#495057\",\n\t\t\"#343a40\",\n\t\t\"#212529\"\n\t],\n\tred: [\n\t\t\"#fff5f5\",\n\t\t\"#ffe3e3\",\n\t\t\"#ffc9c9\",\n\t\t\"#ffa8a8\",\n\t\t\"#ff8787\",\n\t\t\"#ff6b6b\",\n\t\t\"#fa5252\",\n\t\t\"#f03e3e\",\n\t\t\"#e03131\",\n\t\t\"#c92a2a\"\n\t],\n\tpink: [\n\t\t\"#fff0f6\",\n\t\t\"#ffdeeb\",\n\t\t\"#fcc2d7\",\n\t\t\"#faa2c1\",\n\t\t\"#f783ac\",\n\t\t\"#f06595\",\n\t\t\"#e64980\",\n\t\t\"#d6336c\",\n\t\t\"#c2255c\",\n\t\t\"#a61e4d\"\n\t],\n\tgrape: [\n\t\t\"#f8f0fc\",\n\t\t\"#f3d9fa\",\n\t\t\"#eebefa\",\n\t\t\"#e599f7\",\n\t\t\"#da77f2\",\n\t\t\"#cc5de8\",\n\t\t\"#be4bdb\",\n\t\t\"#ae3ec9\",\n\t\t\"#9c36b5\",\n\t\t\"#862e9c\"\n\t],\n\tviolet: [\n\t\t\"#f3f0ff\",\n\t\t\"#e5dbff\",\n\t\t\"#d0bfff\",\n\t\t\"#b197fc\",\n\t\t\"#9775fa\",\n\t\t\"#845ef7\",\n\t\t\"#7950f2\",\n\t\t\"#7048e8\",\n\t\t\"#6741d9\",\n\t\t\"#5f3dc4\"\n\t],\n\tindigo: [\n\t\t\"#edf2ff\",\n\t\t\"#dbe4ff\",\n\t\t\"#bac8ff\",\n\t\t\"#91a7ff\",\n\t\t\"#748ffc\",\n\t\t\"#5c7cfa\",\n\t\t\"#4c6ef5\",\n\t\t\"#4263eb\",\n\t\t\"#3b5bdb\",\n\t\t\"#364fc7\"\n\t],\n\tblue: [\n\t\t\"#e7f5ff\",\n\t\t\"#d0ebff\",\n\t\t\"#a5d8ff\",\n\t\t\"#74c0fc\",\n\t\t\"#4dabf7\",\n\t\t\"#339af0\",\n\t\t\"#228be6\",\n\t\t\"#1c7ed6\",\n\t\t\"#1971c2\",\n\t\t\"#1864ab\"\n\t],\n\tcyan: [\n\t\t\"#e3fafc\",\n\t\t\"#c5f6fa\",\n\t\t\"#99e9f2\",\n\t\t\"#66d9e8\",\n\t\t\"#3bc9db\",\n\t\t\"#22b8cf\",\n\t\t\"#15aabf\",\n\t\t\"#1098ad\",\n\t\t\"#0c8599\",\n\t\t\"#0b7285\"\n\t],\n\tteal: [\n\t\t\"#e6fcf5\",\n\t\t\"#c3fae8\",\n\t\t\"#96f2d7\",\n\t\t\"#63e6be\",\n\t\t\"#38d9a9\",\n\t\t\"#20c997\",\n\t\t\"#12b886\",\n\t\t\"#0ca678\",\n\t\t\"#099268\",\n\t\t\"#087f5b\"\n\t],\n\tgreen: [\n\t\t\"#ebfbee\",\n\t\t\"#d3f9d8\",\n\t\t\"#b2f2bb\",\n\t\t\"#8ce99a\",\n\t\t\"#69db7c\",\n\t\t\"#51cf66\",\n\t\t\"#40c057\",\n\t\t\"#37b24d\",\n\t\t\"#2f9e44\",\n\t\t\"#2b8a3e\"\n\t],\n\tlime: [\n\t\t\"#f4fce3\",\n\t\t\"#e9fac8\",\n\t\t\"#d8f5a2\",\n\t\t\"#c0eb75\",\n\t\t\"#a9e34b\",\n\t\t\"#94d82d\",\n\t\t\"#82c91e\",\n\t\t\"#74b816\",\n\t\t\"#66a80f\",\n\t\t\"#5c940d\"\n\t],\n\tyellow: [\n\t\t\"#fff9db\",\n\t\t\"#fff3bf\",\n\t\t\"#ffec99\",\n\t\t\"#ffe066\",\n\t\t\"#ffd43b\",\n\t\t\"#fcc419\",\n\t\t\"#fab005\",\n\t\t\"#f59f00\",\n\t\t\"#f08c00\",\n\t\t\"#e67700\"\n\t],\n\torange: [\n\t\t\"#fff4e6\",\n\t\t\"#ffe8cc\",\n\t\t\"#ffd8a8\",\n\t\t\"#ffc078\",\n\t\t\"#ffa94d\",\n\t\t\"#ff922b\",\n\t\t\"#fd7e14\",\n\t\t\"#f76707\",\n\t\t\"#e8590c\",\n\t\t\"#d9480f\"\n\t]\n};\nexport { DEFAULT_COLORS };\n\n//# sourceMappingURL=default-colors.mjs.map","\"use client\";\nimport { rem } from \"../../../utils/units-converters/rem.mjs\";\nimport { parseThemeColor } from \"../parse-theme-color/parse-theme-color.mjs\";\nimport { isVirtualColor } from \"../../MantineCssVariables/virtual-color/virtual-color.mjs\";\nimport { darken } from \"../darken/darken.mjs\";\nimport { getGradient } from \"../get-gradient/get-gradient.mjs\";\nimport { rgba } from \"../rgba/rgba.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.ts\nconst defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContrast }) => {\n\tconst parsed = parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t});\n\tconst _autoContrast = typeof autoContrast === \"boolean\" ? autoContrast : theme.autoContrast;\n\tif (variant === \"none\") return {\n\t\tbackground: \"transparent\",\n\t\thover: \"transparent\",\n\t\tcolor: \"inherit\",\n\t\tborder: \"none\"\n\t};\n\tif (variant === \"filled\") {\n\t\tconst isVirtual = parsed.isThemeColor && parsed.shade === void 0 && isVirtualColor(theme.colors[parsed.color]);\n\t\tconst textColor = _autoContrast ? isVirtual ? `var(--mantine-color-${parsed.color}-contrast)` : parsed.isLight ? \"var(--mantine-color-black)\" : \"var(--mantine-color-white)\" : \"var(--mantine-color-white)\";\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: `var(--mantine-color-${color}-filled)`,\n\t\t\t\thover: `var(--mantine-color-${color}-filled-hover)`,\n\t\t\t\tcolor: textColor,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tbackground: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n\t\t\t\thover: `var(--mantine-color-${parsed.color}-${parsed.shade === 9 ? 8 : parsed.shade + 1})`,\n\t\t\t\tcolor: textColor,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: color,\n\t\t\thover: darken(color, .1),\n\t\t\tcolor: textColor,\n\t\t\tborder: `${rem(1)} solid transparent`\n\t\t};\n\t}\n\tif (variant === \"light\") {\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: `var(--mantine-color-${color}-light)`,\n\t\t\t\thover: `var(--mantine-color-${color}-light-hover)`,\n\t\t\t\tcolor: `var(--mantine-color-${color}-light-color)`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t\tconst parsedColor = theme.colors[parsed.color][parsed.shade];\n\t\t\treturn {\n\t\t\t\tbackground: parsedColor,\n\t\t\t\thover: darken(parsedColor, .1),\n\t\t\t\tcolor: `var(--mantine-color-${parsed.color}-light-color)`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: rgba(color, .1),\n\t\t\thover: rgba(color, .12),\n\t\t\tcolor,\n\t\t\tborder: `${rem(1)} solid transparent`\n\t\t};\n\t}\n\tif (variant === \"outline\") {\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: `var(--mantine-color-${color}-outline-hover)`,\n\t\t\t\tcolor: `var(--mantine-color-${color}-outline)`,\n\t\t\t\tborder: `${rem(1)} solid var(--mantine-color-${color}-outline)`\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: rgba(theme.colors[parsed.color][parsed.shade], .05),\n\t\t\t\tcolor: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n\t\t\t\tborder: `${rem(1)} solid var(--mantine-color-${parsed.color}-${parsed.shade})`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: \"transparent\",\n\t\t\thover: rgba(color, .05),\n\t\t\tcolor,\n\t\t\tborder: `${rem(1)} solid ${color}`\n\t\t};\n\t}\n\tif (variant === \"subtle\") {\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: `var(--mantine-color-${color}-light-hover)`,\n\t\t\t\tcolor: `var(--mantine-color-${color}-light-color)`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t\tconst parsedColor = theme.colors[parsed.color][parsed.shade];\n\t\t\treturn {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: rgba(parsedColor, .12),\n\t\t\t\tcolor: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: \"transparent\",\n\t\t\thover: rgba(color, .12),\n\t\t\tcolor,\n\t\t\tborder: `${rem(1)} solid transparent`\n\t\t};\n\t}\n\tif (variant === \"transparent\") {\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: \"transparent\",\n\t\t\t\tcolor: `var(--mantine-color-${color}-light-color)`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tbackground: \"transparent\",\n\t\t\t\thover: \"transparent\",\n\t\t\t\tcolor: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: \"transparent\",\n\t\t\thover: \"transparent\",\n\t\t\tcolor,\n\t\t\tborder: `${rem(1)} solid transparent`\n\t\t};\n\t}\n\tif (variant === \"white\") {\n\t\tif (parsed.isThemeColor) {\n\t\t\tif (parsed.shade === void 0) return {\n\t\t\t\tbackground: \"var(--mantine-color-white)\",\n\t\t\t\thover: darken(theme.white, .01),\n\t\t\t\tcolor: `var(--mantine-color-${color}-filled)`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t\treturn {\n\t\t\t\tbackground: \"var(--mantine-color-white)\",\n\t\t\t\thover: darken(theme.white, .01),\n\t\t\t\tcolor: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n\t\t\t\tborder: `${rem(1)} solid transparent`\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tbackground: \"var(--mantine-color-white)\",\n\t\t\thover: darken(theme.white, .01),\n\t\t\tcolor,\n\t\t\tborder: `${rem(1)} solid transparent`\n\t\t};\n\t}\n\tif (variant === \"gradient\") return {\n\t\tbackground: getGradient(gradient, theme),\n\t\thover: getGradient(gradient, theme),\n\t\tcolor: \"var(--mantine-color-white)\",\n\t\tborder: \"none\"\n\t};\n\tif (variant === \"default\") return {\n\t\tbackground: \"var(--mantine-color-default)\",\n\t\thover: \"var(--mantine-color-default-hover)\",\n\t\tcolor: \"var(--mantine-color-default-color)\",\n\t\tborder: `${rem(1)} solid var(--mantine-color-default-border)`\n\t};\n\treturn {};\n};\nexport { defaultVariantColorsResolver };\n\n//# sourceMappingURL=default-variant-colors-resolver.mjs.map","// packages/@mantine/core/src/core/utils/deep-merge/deep-merge.ts\nfunction isObject(item) {\n\treturn item && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isPlainObject(item) {\n\tif (!item || typeof item !== \"object\") return false;\n\tconst prototype = Object.getPrototypeOf(item);\n\treturn prototype === null || Object.hasOwn(prototype, \"constructor\") && typeof prototype.constructor === \"function\" && Function.prototype.toString.call(prototype.constructor) === Function.prototype.toString.call(Object);\n}\nfunction deepMerge(target, source) {\n\tconst result = { ...target };\n\tconst _source = source;\n\tif (isObject(target) && isObject(source)) Object.keys(source).forEach((key) => {\n\t\tif (isPlainObject(_source[key]) && isPlainObject(result[key])) result[key] = deepMerge(result[key], _source[key]);\n\t\telse result[key] = _source[key];\n\t});\n\treturn result;\n}\nexport { deepMerge };\n\n//# sourceMappingURL=deep-merge.mjs.map","import { deepMerge } from \"../../utils/deep-merge/deep-merge.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/merge-mantine-theme/merge-mantine-theme.ts\nconst INVALID_PRIMARY_COLOR_ERROR = \"[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color\";\nconst INVALID_PRIMARY_SHADE_ERROR = \"[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }\";\nfunction isValidPrimaryShade(shade) {\n\tif (shade < 0 || shade > 9) return false;\n\treturn parseInt(shade.toString(), 10) === shade;\n}\nfunction validateMantineTheme(theme) {\n\tif (!(theme.primaryColor in theme.colors)) throw new Error(INVALID_PRIMARY_COLOR_ERROR);\n\tif (typeof theme.primaryShade === \"object\") {\n\t\tif (!isValidPrimaryShade(theme.primaryShade.dark) || !isValidPrimaryShade(theme.primaryShade.light)) throw new Error(INVALID_PRIMARY_SHADE_ERROR);\n\t}\n\tif (typeof theme.primaryShade === \"number\" && !isValidPrimaryShade(theme.primaryShade)) throw new Error(INVALID_PRIMARY_SHADE_ERROR);\n}\nfunction mergeMantineTheme(currentTheme, themeOverride) {\n\tif (!themeOverride) {\n\t\tvalidateMantineTheme(currentTheme);\n\t\treturn currentTheme;\n\t}\n\tconst result = deepMerge(currentTheme, themeOverride);\n\tif (themeOverride.fontFamily && !themeOverride.headings?.fontFamily) result.headings = {\n\t\t...result.headings,\n\t\tfontFamily: themeOverride.fontFamily\n\t};\n\tvalidateMantineTheme(result);\n\treturn result;\n}\nexport { INVALID_PRIMARY_COLOR_ERROR, INVALID_PRIMARY_SHADE_ERROR, mergeMantineTheme, validateMantineTheme };\n\n//# sourceMappingURL=merge-mantine-theme.mjs.map","\"use client\";\nimport { DEFAULT_THEME } from \"../default-theme.mjs\";\nimport { mergeMantineTheme } from \"../merge-mantine-theme/merge-mantine-theme.mjs\";\nimport { createContext, use, useMemo } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.tsx\nconst MantineThemeContext = createContext(null);\nconst useSafeMantineTheme = () => use(MantineThemeContext) || DEFAULT_THEME;\nfunction useMantineTheme() {\n\tconst ctx = use(MantineThemeContext);\n\tif (!ctx) throw new Error(\"@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app\");\n\treturn ctx;\n}\nfunction MantineThemeProvider({ theme, children, inherit = true }) {\n\tconst parentTheme = useSafeMantineTheme();\n\tconst mergedTheme = useMemo(() => mergeMantineTheme(inherit ? parentTheme : DEFAULT_THEME, theme), [\n\t\ttheme,\n\t\tparentTheme,\n\t\tinherit\n\t]);\n\treturn /* @__PURE__ */ jsx(MantineThemeContext, {\n\t\tvalue: mergedTheme,\n\t\tchildren\n\t});\n}\nMantineThemeProvider.displayName = \"@mantine/core/MantineThemeProvider\";\nexport { MantineThemeContext, MantineThemeProvider, useMantineTheme, useSafeMantineTheme };\n\n//# sourceMappingURL=MantineThemeProvider.mjs.map","\"use client\";\nimport { filterProps } from \"../../utils/filter-props/filter-props.mjs\";\nimport { useMantineTheme } from \"../MantineThemeProvider/MantineThemeProvider.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/use-props/use-props.ts\nfunction useProps(component, defaultProps, props) {\n\tconst theme = useMantineTheme();\n\tconst names = (Array.isArray(component) ? component : [component]).filter(Boolean);\n\tlet contextProps = {};\n\tfor (const name of names) {\n\t\tconst payload = theme.components[name]?.defaultProps;\n\t\tconst resolved = typeof payload === \"function\" ? payload(theme) : payload;\n\t\tif (resolved) contextProps = {\n\t\t\t...contextProps,\n\t\t\t...resolved\n\t\t};\n\t}\n\treturn {\n\t\t...defaultProps,\n\t\t...contextProps,\n\t\t...filterProps(props)\n\t};\n}\nexport { useProps };\n\n//# sourceMappingURL=use-props.mjs.map","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","\"use client\";\nimport cx from \"clsx\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.ts\nconst EMPTY_CLASS_NAMES = {};\nfunction mergeClassNames(objects) {\n\tconst merged = {};\n\tobjects.forEach((obj) => {\n\t\tObject.entries(obj).forEach(([key, value]) => {\n\t\t\tif (merged[key]) merged[key] = cx(merged[key], value);\n\t\t\telse merged[key] = value;\n\t\t});\n\t});\n\treturn merged;\n}\nfunction resolveClassNames({ theme, classNames, props, stylesCtx }) {\n\treturn mergeClassNames((Array.isArray(classNames) ? classNames : [classNames]).map((item) => typeof item === \"function\" ? item(theme, props, stylesCtx) : item || EMPTY_CLASS_NAMES));\n}\nexport { resolveClassNames };\n\n//# sourceMappingURL=resolve-class-names.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.ts\nfunction resolveStyles({ theme, styles, props, stylesCtx }) {\n\tconst arrayStyles = Array.isArray(styles) ? styles : [styles];\n\tconst result = {};\n\tfor (const style of arrayStyles) if (typeof style === \"function\") Object.assign(result, style(theme, props, stylesCtx));\n\telse if (style) Object.assign(result, style);\n\treturn result;\n}\nexport { resolveStyles };\n\n//# sourceMappingURL=resolve-styles.mjs.map","\"use client\";\nimport { createContext, use } from \"react\";\n// packages/@mantine/core/src/core/MantineProvider/Mantine.context.ts\nconst MantineContext = createContext(null);\nfunction useMantineContext() {\n\tconst ctx = use(MantineContext);\n\tif (!ctx) throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");\n\treturn ctx;\n}\nfunction useMantineCssVariablesResolver() {\n\treturn useMantineContext().cssVariablesResolver;\n}\nfunction useMantineClassNamesPrefix() {\n\treturn useMantineContext().classNamesPrefix;\n}\nfunction useMantineStyleNonce() {\n\treturn useMantineContext().getStyleNonce;\n}\nfunction useMantineWithStaticClasses() {\n\treturn useMantineContext().withStaticClasses;\n}\nfunction useMantineIsHeadless() {\n\treturn useMantineContext().headless;\n}\nfunction useMantineSxTransform() {\n\treturn useMantineContext().stylesTransform?.sx;\n}\nfunction useMantineStylesTransform() {\n\treturn useMantineContext().stylesTransform?.styles;\n}\nfunction useMantineEnv() {\n\treturn useMantineContext().env || \"default\";\n}\nfunction useMantineDeduplicateInlineStyles() {\n\treturn useMantineContext().deduplicateInlineStyles;\n}\nexport { MantineContext, useMantineClassNamesPrefix, useMantineContext, useMantineCssVariablesResolver, useMantineDeduplicateInlineStyles, useMantineEnv, useMantineIsHeadless, useMantineStyleNonce, useMantineStylesTransform, useMantineSxTransform, useMantineWithStaticClasses };\n\n//# sourceMappingURL=Mantine.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/shallow-equal/shallow-equal.ts\nfunction shallowEqual(a, b, depth = 1) {\n\tif (Object.is(a, b)) return true;\n\tif (depth === 0 || typeof a !== \"object\" || typeof b !== \"object\" || a === null || b === null) return false;\n\tif (Array.isArray(a) || Array.isArray(b)) {\n\t\tif (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;\n\t\tfor (let i = 0; i < a.length; i += 1) if (!shallowEqual(a[i], b[i], depth - 1)) return false;\n\t\treturn true;\n\t}\n\tconst aKeys = Object.keys(a);\n\tif (aKeys.length !== Object.keys(b).length) return false;\n\tfor (const key of aKeys) if (!Object.hasOwn(b, key) || !shallowEqual(a[key], b[key], depth - 1)) return false;\n\treturn true;\n}\nexport { shallowEqual };\n\n//# sourceMappingURL=shallow-equal.mjs.map","\"use client\";\nimport cx from \"clsx\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.ts\nconst FOCUS_CLASS_NAMES = {\n\talways: \"mantine-focus-always\",\n\tauto: \"mantine-focus-auto\",\n\tnever: \"mantine-focus-never\"\n};\n/** Returns classes that are defined globally (focus and active styles) based on options */\nfunction getGlobalClassNames({ theme, options, unstyled }) {\n\treturn cx(options?.focusable && !unstyled && (theme.focusClassName || FOCUS_CLASS_NAMES[theme.focusRing]), options?.active && !unstyled && theme.activeClassName);\n}\nexport { FOCUS_CLASS_NAMES, getGlobalClassNames };\n\n//# sourceMappingURL=get-global-class-names.mjs.map","\"use client\";\nimport { getGlobalClassNames } from \"./get-global-class-names/get-global-class-names.mjs\";\nimport { getOptionsClassNames } from \"./get-options-class-names/get-options-class-names.mjs\";\nimport { getResolvedClassNames } from \"./get-resolved-class-names/get-resolved-class-names.mjs\";\nimport { getRootClassName } from \"./get-root-class-name/get-root-class-name.mjs\";\nimport { getSelectorClassName } from \"./get-selector-class-name/get-selector-class-name.mjs\";\nimport { getStaticClassNames } from \"./get-static-class-names/get-static-class-names.mjs\";\nimport { getVariantClassName } from \"./get-variant-class-name/get-variant-class-name.mjs\";\nimport cx from \"clsx\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-class-name.ts\nfunction getClassName({ theme, options, themeName, selector, classNamesPrefix, resolvedClassNames, resolvedThemeClassNames, classes, unstyled, className, rootSelector, props, stylesCtx, withStaticClasses, headless, transformedStyles }) {\n\treturn cx(getGlobalClassNames({\n\t\ttheme,\n\t\toptions,\n\t\tunstyled: unstyled || headless\n\t}), resolvedThemeClassNames.map((m) => m[selector]), getVariantClassName({\n\t\toptions,\n\t\tclasses,\n\t\tselector,\n\t\tunstyled: unstyled || headless\n\t}), resolvedClassNames[selector], getResolvedClassNames({\n\t\tselector,\n\t\tstylesCtx,\n\t\ttheme,\n\t\tclassNames: transformedStyles,\n\t\tprops\n\t}), getOptionsClassNames({\n\t\tselector,\n\t\tstylesCtx,\n\t\toptions,\n\t\tprops,\n\t\ttheme\n\t}), getRootClassName({\n\t\trootSelector,\n\t\tselector,\n\t\tclassName\n\t}), getSelectorClassName({\n\t\tselector,\n\t\tclasses,\n\t\tunstyled: unstyled || headless\n\t}), withStaticClasses && !headless && getStaticClassNames({\n\t\tthemeName,\n\t\tclassNamesPrefix,\n\t\tselector,\n\t\twithStaticClass: options?.withStaticClass\n\t}), options?.className);\n}\nexport { getClassName };\n\n//# sourceMappingURL=get-class-name.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.ts\n/** Returns variant className, variant is always separated from selector with `--`, for example, `tab--default` */\nfunction getVariantClassName({ options, classes, selector, unstyled }) {\n\treturn options?.variant && !unstyled ? classes[`${selector}--${options.variant}`] : void 0;\n}\nexport { getVariantClassName };\n\n//# sourceMappingURL=get-variant-class-name.mjs.map","\"use client\";\nimport { resolveClassNames } from \"../resolve-class-names/resolve-class-names.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.ts\nfunction getResolvedClassNames({ selector, stylesCtx, theme, classNames, props }) {\n\treturn resolveClassNames({\n\t\ttheme,\n\t\tclassNames,\n\t\tprops,\n\t\tstylesCtx\n\t})[selector];\n}\nexport { getResolvedClassNames };\n\n//# sourceMappingURL=get-resolved-class-names.mjs.map","\"use client\";\nimport { resolveClassNames } from \"../resolve-class-names/resolve-class-names.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.ts\nfunction getOptionsClassNames({ selector, stylesCtx, options, props, theme }) {\n\treturn resolveClassNames({\n\t\ttheme,\n\t\tclassNames: options?.classNames,\n\t\tprops: options?.props || props,\n\t\tstylesCtx\n\t})[selector];\n}\nexport { getOptionsClassNames };\n\n//# sourceMappingURL=get-options-class-names.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.ts\n/** Adds `className` to the list if given selector is root */\nfunction getRootClassName({ rootSelector, selector, className }) {\n\treturn rootSelector === selector ? className : void 0;\n}\nexport { getRootClassName };\n\n//# sourceMappingURL=get-root-class-name.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.ts\n/** Returns class for given selector from library styles (`*.module.css`) */\nfunction getSelectorClassName({ selector, classes, unstyled }) {\n\treturn unstyled ? void 0 : classes[selector];\n}\nexport { getSelectorClassName };\n\n//# sourceMappingURL=get-selector-class-name.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.ts\n/** Returns static component classes, for example, `.mantine-Input-wrapper` */\nfunction getStaticClassNames({ themeName, classNamesPrefix, selector, withStaticClass }) {\n\tif (withStaticClass === false) return [];\n\treturn themeName.map((n) => `${classNamesPrefix}-${n}-${selector}`);\n}\nexport { getStaticClassNames };\n\n//# sourceMappingURL=get-static-class-names.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-style/resolve-style.ts\nfunction resolveStyle({ style, theme }) {\n\tif (Array.isArray(style)) return style.reduce((acc, item) => ({\n\t\t...acc,\n\t\t...resolveStyle({\n\t\t\tstyle: item,\n\t\t\ttheme\n\t\t})\n\t}), {});\n\tif (typeof style === \"function\") return style(theme);\n\tif (style == null) return {};\n\treturn style;\n}\nexport { resolveStyle };\n\n//# sourceMappingURL=resolve-style.mjs.map","\"use client\";\nimport { resolveStyles } from \"./resolve-styles/resolve-styles.mjs\";\nimport { resolveStyle } from \"./resolve-style/resolve-style.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-style/get-style.ts\nfunction getStyle({ theme, selector, options, props, stylesCtx, rootSelector, withStylesTransform, resolvedStyles, resolvedThemeStyles, resolvedVars, resolvedRootStyle }) {\n\treturn {\n\t\t...resolvedThemeStyles[selector],\n\t\t...resolvedStyles[selector],\n\t\t...!withStylesTransform && resolveStyles({\n\t\t\ttheme,\n\t\t\tstyles: options?.styles,\n\t\t\tprops: options?.props || props,\n\t\t\tstylesCtx\n\t\t})[selector],\n\t\t...resolvedVars[selector],\n\t\t...rootSelector === selector ? resolvedRootStyle : null,\n\t\t...resolveStyle({\n\t\t\tstyle: options?.style,\n\t\t\ttheme\n\t\t})\n\t};\n}\nexport { getStyle };\n\n//# sourceMappingURL=get-style.mjs.map","\"use client\";\nimport { resolveClassNames } from \"./get-class-name/resolve-class-names/resolve-class-names.mjs\";\nimport { resolveStyles } from \"./get-style/resolve-styles/resolve-styles.mjs\";\nimport { useMantineClassNamesPrefix, useMantineIsHeadless, useMantineWithStaticClasses } from \"../../MantineProvider/Mantine.context.mjs\";\nimport { useMantineTheme } from \"../../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { shallowEqual } from \"../../utils/shallow-equal/shallow-equal.mjs\";\nimport { getClassName } from \"./get-class-name/get-class-name.mjs\";\nimport { resolveStyle } from \"./get-style/resolve-style/resolve-style.mjs\";\nimport { getStyle } from \"./get-style/get-style.mjs\";\nimport { mergeVars } from \"./get-style/resolve-vars/merge-vars.mjs\";\nimport { useStylesTransform } from \"./use-transformed-styles.mjs\";\nimport { useRef } from \"react\";\n// packages/@mantine/core/src/core/styles-api/use-styles/use-styles.ts\nfunction useStyles({ name, classes, props, stylesCtx, className, style, rootSelector = \"root\", unstyled, classNames, styles, vars, varsResolver, attributes, stable }) {\n\tconst theme = useMantineTheme();\n\tconst classNamesPrefix = useMantineClassNamesPrefix();\n\tconst withStaticClasses = useMantineWithStaticClasses();\n\tconst headless = useMantineIsHeadless();\n\tconst themeName = (Array.isArray(name) ? name : [name]).filter((n) => n);\n\tconst { withStylesTransform, getTransformedStyles } = useStylesTransform({\n\t\tprops,\n\t\tstylesCtx,\n\t\tthemeName,\n\t\ttheme\n\t});\n\tconst resolvedClassNames = resolveClassNames({\n\t\ttheme,\n\t\tclassNames,\n\t\tprops,\n\t\tstylesCtx\n\t});\n\tconst resolvedThemeClassNames = themeName.map((n) => resolveClassNames({\n\t\ttheme,\n\t\tclassNames: theme.components[n]?.classNames,\n\t\tprops,\n\t\tstylesCtx\n\t}));\n\tconst resolvedComponentStyles = withStylesTransform ? {} : resolveStyles({\n\t\ttheme,\n\t\tstyles,\n\t\tprops,\n\t\tstylesCtx\n\t});\n\tconst resolvedThemeStyles = {};\n\tif (!withStylesTransform) for (const n of themeName) {\n\t\tconst resolved = resolveStyles({\n\t\t\ttheme,\n\t\t\tstyles: theme.components[n]?.styles,\n\t\t\tprops,\n\t\t\tstylesCtx\n\t\t});\n\t\tfor (const key of Object.keys(resolved)) resolvedThemeStyles[key] = {\n\t\t\t...resolvedThemeStyles[key],\n\t\t\t...resolved[key]\n\t\t};\n\t}\n\tconst resolvedVars = mergeVars([\n\t\theadless ? {} : varsResolver?.(theme, props, stylesCtx),\n\t\t...themeName.map((n) => theme.components?.[n]?.vars?.(theme, props, stylesCtx)),\n\t\tvars?.(theme, props, stylesCtx)\n\t]);\n\tconst resolvedRootStyle = resolveStyle({\n\t\tstyle,\n\t\ttheme\n\t});\n\tconst getStyles = (selector, options) => ({\n\t\t...attributes?.[selector],\n\t\tclassName: getClassName({\n\t\t\ttheme,\n\t\t\toptions,\n\t\t\tthemeName,\n\t\t\tselector,\n\t\t\tclassNamesPrefix,\n\t\t\tresolvedClassNames,\n\t\t\tresolvedThemeClassNames,\n\t\t\tclasses,\n\t\t\tunstyled,\n\t\t\tclassName,\n\t\t\trootSelector,\n\t\t\tprops,\n\t\t\tstylesCtx,\n\t\t\twithStaticClasses,\n\t\t\theadless,\n\t\t\ttransformedStyles: getTransformedStyles([options?.styles, styles])\n\t\t}),\n\t\tstyle: getStyle({\n\t\t\ttheme,\n\t\t\tselector,\n\t\t\toptions,\n\t\t\tprops,\n\t\t\tstylesCtx,\n\t\t\trootSelector,\n\t\t\twithStylesTransform,\n\t\t\tresolvedStyles: resolvedComponentStyles,\n\t\t\tresolvedThemeStyles,\n\t\t\tresolvedVars,\n\t\t\tresolvedRootStyle\n\t\t})\n\t});\n\treturn useStableGetStyles(getStyles, !!stable, [\n\t\ttheme,\n\t\tclassNamesPrefix,\n\t\twithStaticClasses,\n\t\theadless,\n\t\twithStylesTransform ? props : null,\n\t\tclasses,\n\t\tunstyled,\n\t\tclassName,\n\t\trootSelector,\n\t\tattributes,\n\t\tstylesCtx,\n\t\tresolvedClassNames,\n\t\tresolvedThemeClassNames,\n\t\tresolvedComponentStyles,\n\t\tresolvedThemeStyles,\n\t\tresolvedVars,\n\t\tresolvedRootStyle\n\t]);\n}\nfunction useStableGetStyles(getStyles, stable, deps) {\n\tconst cache = useRef(null);\n\tif (!stable) return getStyles;\n\tif (!cache.current || !shallowEqual(cache.current.deps, deps, 3)) cache.current = {\n\t\tdeps,\n\t\tgetStyles\n\t};\n\treturn cache.current.getStyles;\n}\nexport { useStyles };\n\n//# sourceMappingURL=use-styles.mjs.map","\"use client\";\nimport { useMantineStylesTransform } from \"../../MantineProvider/Mantine.context.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-styles/use-transformed-styles.ts\nfunction useStylesTransform({ props, stylesCtx, themeName, theme }) {\n\tconst stylesTransform = useMantineStylesTransform()?.();\n\tconst getTransformedStyles = (styles) => {\n\t\tif (!stylesTransform) return [];\n\t\treturn [...styles.map((style) => stylesTransform(style, {\n\t\t\tprops,\n\t\t\ttheme,\n\t\t\tctx: stylesCtx\n\t\t})), ...themeName.map((n) => stylesTransform(theme.components[n]?.styles, {\n\t\t\tprops,\n\t\t\ttheme,\n\t\t\tctx: stylesCtx\n\t\t}))].filter(Boolean);\n\t};\n\treturn {\n\t\tgetTransformedStyles,\n\t\twithStylesTransform: !!stylesTransform\n\t};\n}\nexport { useStylesTransform };\n\n//# sourceMappingURL=use-transformed-styles.mjs.map","\"use client\";\nimport { filterProps } from \"../../../../utils/filter-props/filter-props.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.ts\nfunction mergeVars(vars) {\n\treturn vars.reduce((acc, current) => {\n\t\tif (current) Object.keys(current).forEach((key) => {\n\t\t\tacc[key] = {\n\t\t\t\t...acc[key],\n\t\t\t\t...filterProps(current[key])\n\t\t\t};\n\t\t});\n\t\treturn acc;\n\t}, {});\n}\nexport { mergeVars };\n\n//# sourceMappingURL=merge-vars.mjs.map","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/factory/factory.tsx\nfunction identity(value) {\n\treturn value;\n}\nfunction factory(ui) {\n\tconst Component = ui;\n\tComponent.extend = identity;\n\tComponent.withProps = (fixedProps) => {\n\t\tconst Extended = (props) => /* @__PURE__ */ jsx(Component, {\n\t\t\t...fixedProps,\n\t\t\t...props\n\t\t});\n\t\tExtended.extend = Component.extend;\n\t\tExtended.displayName = `WithProps(${Component.displayName})`;\n\t\treturn Extended;\n\t};\n\treturn Component;\n}\nfunction genericFactory(ui) {\n\treturn factory(ui);\n}\nexport { factory, genericFactory, identity };\n\n//# sourceMappingURL=factory.mjs.map","\"use client\";\nimport { identity } from \"./factory.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/factory/polymorphic-factory.tsx\nfunction polymorphicFactory(ui) {\n\tconst Component = ui;\n\tComponent.withProps = (fixedProps) => {\n\t\tconst Extended = (props) => /* @__PURE__ */ jsx(Component, {\n\t\t\t...fixedProps,\n\t\t\t...props\n\t\t});\n\t\tExtended.extend = Component.extend;\n\t\tExtended.displayName = `WithProps(${Component.displayName})`;\n\t\treturn Extended;\n\t};\n\tComponent.extend = identity;\n\treturn Component;\n}\nexport { polymorphicFactory };\n\n//# sourceMappingURL=polymorphic-factory.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/is-number-like/is-number-like.ts\nfunction isNumberLike(value) {\n\tif (typeof value === \"number\") return true;\n\tif (typeof value === \"string\") {\n\t\tif (value.startsWith(\"calc(\") || value.startsWith(\"var(\") || value.includes(\" \") && value.trim() !== \"\") return true;\n\t\tconst cssUnitsRegex = /^[+-]?(?:[0-9]*\\.)?[0-9]+(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;\n\t\treturn value.trim().split(/\\s+/).every((val) => cssUnitsRegex.test(val));\n\t}\n\treturn false;\n}\nexport { isNumberLike };\n\n//# sourceMappingURL=is-number-like.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/keys/keys.ts\nfunction keys(object) {\n\treturn Object.keys(object);\n}\nexport { keys };\n\n//# sourceMappingURL=keys.mjs.map","\"use client\";\nimport { keys } from \"../../utils/keys/keys.mjs\";\nimport { camelToKebabCase } from \"../../utils/camel-to-kebab-case/camel-to-kebab-case.mjs\";\n// packages/@mantine/core/src/core/InlineStyles/css-object-to-string/css-object-to-string.ts\nfunction cssObjectToString(css) {\n\treturn keys(css).reduce((acc, rule) => css[rule] !== void 0 ? `${acc}${camelToKebabCase(rule)}:${css[rule]};` : acc, \"\").trim();\n}\nexport { cssObjectToString };\n\n//# sourceMappingURL=css-object-to-string.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/camel-to-kebab-case/camel-to-kebab-case.ts\nfunction camelToKebabCase(value) {\n\treturn value.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n}\nexport { camelToKebabCase };\n\n//# sourceMappingURL=camel-to-kebab-case.mjs.map","\"use client\";\nimport { useMantineStyleNonce } from \"../MantineProvider/Mantine.context.mjs\";\nimport { stylesToString } from \"./styles-to-string/styles-to-string.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/InlineStyles/InlineStyles.tsx\nfunction simpleHash(str) {\n\tlet hash = 5381;\n\tfor (let i = 0; i < str.length; i++) hash = (hash << 5) + hash + str.charCodeAt(i) & 4294967295;\n\treturn (hash >>> 0).toString(36);\n}\nfunction InlineStyles({ deduplicate, ...props }) {\n\tconst nonce = useMantineStyleNonce();\n\tconst css = stylesToString(props);\n\tif (deduplicate) return /* @__PURE__ */ jsx(\"style\", {\n\t\thref: `mantine-${simpleHash(css)}`,\n\t\tprecedence: \"mantine\",\n\t\tnonce: nonce?.(),\n\t\tchildren: css\n\t});\n\treturn /* @__PURE__ */ jsx(\"style\", {\n\t\t\"data-mantine-styles\": \"inline\",\n\t\tnonce: nonce?.(),\n\t\tdangerouslySetInnerHTML: { __html: css }\n\t});\n}\nexport { InlineStyles };\n\n//# sourceMappingURL=InlineStyles.mjs.map","\"use client\";\nimport { cssObjectToString } from \"../css-object-to-string/css-object-to-string.mjs\";\n// packages/@mantine/core/src/core/InlineStyles/styles-to-string/styles-to-string.ts\nfunction stylesToString({ selector, styles, media, container }) {\n\tconst baseStyles = styles ? cssObjectToString(styles) : \"\";\n\tconst mediaQueryStyles = !Array.isArray(media) ? [] : media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);\n\tconst containerStyles = !Array.isArray(container) ? [] : container.map((item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);\n\treturn `${baseStyles ? `${selector}{${baseStyles}}` : \"\"}${mediaQueryStyles.join(\"\")}${containerStyles.join(\"\")}`.trim();\n}\nexport { stylesToString };\n\n//# sourceMappingURL=styles-to-string.mjs.map","\"use client\";\nimport { filterProps } from \"../../../utils/filter-props/filter-props.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/extract-style-props/extract-style-props.ts\nfunction extractStyleProps(others) {\n\tconst { m, mx, my, mt, mb, ml, mr, me, ms, mis, mie, p, px, py, pt, pb, pl, pr, pe, ps, pis, pie, bd, bdrs, bg, c, opacity, ff, fz, fw, lts, ta, lh, fs, tt, td, w, miw, maw, h, mih, mah, bgsz, bgp, bgr, bga, pos, top, left, bottom, right, inset, display, flex, hiddenFrom, visibleFrom, lightHidden, darkHidden, sx, ...rest } = others;\n\treturn {\n\t\tstyleProps: filterProps({\n\t\t\tm,\n\t\t\tmx,\n\t\t\tmy,\n\t\t\tmt,\n\t\t\tmb,\n\t\t\tml,\n\t\t\tmr,\n\t\t\tme,\n\t\t\tms,\n\t\t\tmis,\n\t\t\tmie,\n\t\t\tp,\n\t\t\tpx,\n\t\t\tpy,\n\t\t\tpt,\n\t\t\tpb,\n\t\t\tpl,\n\t\t\tpr,\n\t\t\tpis,\n\t\t\tpie,\n\t\t\tpe,\n\t\t\tps,\n\t\t\tbd,\n\t\t\tbg,\n\t\t\tc,\n\t\t\topacity,\n\t\t\tff,\n\t\t\tfz,\n\t\t\tfw,\n\t\t\tlts,\n\t\t\tta,\n\t\t\tlh,\n\t\t\tfs,\n\t\t\ttt,\n\t\t\ttd,\n\t\t\tw,\n\t\t\tmiw,\n\t\t\tmaw,\n\t\t\th,\n\t\t\tmih,\n\t\t\tmah,\n\t\t\tbgsz,\n\t\t\tbgp,\n\t\t\tbgr,\n\t\t\tbga,\n\t\t\tpos,\n\t\t\ttop,\n\t\t\tleft,\n\t\t\tbottom,\n\t\t\tright,\n\t\t\tinset,\n\t\t\tdisplay,\n\t\t\tflex,\n\t\t\tbdrs,\n\t\t\thiddenFrom,\n\t\t\tvisibleFrom,\n\t\t\tlightHidden,\n\t\t\tdarkHidden,\n\t\t\tsx\n\t\t}),\n\t\trest\n\t};\n}\nexport { extractStyleProps };\n\n//# sourceMappingURL=extract-style-props.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/style-props/style-props-data.ts\nconst STYLE_PROPS_DATA = {\n\tm: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"margin\"\n\t},\n\tmt: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginTop\"\n\t},\n\tmb: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginBottom\"\n\t},\n\tml: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginLeft\"\n\t},\n\tmr: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginRight\"\n\t},\n\tms: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginInlineStart\"\n\t},\n\tme: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginInlineEnd\"\n\t},\n\tmis: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginInlineStart\"\n\t},\n\tmie: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginInlineEnd\"\n\t},\n\tmx: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginInline\"\n\t},\n\tmy: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"marginBlock\"\n\t},\n\tp: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"padding\"\n\t},\n\tpt: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingTop\"\n\t},\n\tpb: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingBottom\"\n\t},\n\tpl: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingLeft\"\n\t},\n\tpr: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingRight\"\n\t},\n\tps: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingInlineStart\"\n\t},\n\tpe: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingInlineEnd\"\n\t},\n\tpis: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingInlineStart\"\n\t},\n\tpie: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingInlineEnd\"\n\t},\n\tpx: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingInline\"\n\t},\n\tpy: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"paddingBlock\"\n\t},\n\tbd: {\n\t\ttype: \"border\",\n\t\tproperty: \"border\"\n\t},\n\tbdrs: {\n\t\ttype: \"radius\",\n\t\tproperty: \"borderRadius\"\n\t},\n\tbg: {\n\t\ttype: \"color\",\n\t\tproperty: \"background\"\n\t},\n\tc: {\n\t\ttype: \"textColor\",\n\t\tproperty: \"color\"\n\t},\n\topacity: {\n\t\ttype: \"identity\",\n\t\tproperty: \"opacity\"\n\t},\n\tff: {\n\t\ttype: \"fontFamily\",\n\t\tproperty: \"fontFamily\"\n\t},\n\tfz: {\n\t\ttype: \"fontSize\",\n\t\tproperty: \"fontSize\"\n\t},\n\tfw: {\n\t\ttype: \"identity\",\n\t\tproperty: \"fontWeight\"\n\t},\n\tlts: {\n\t\ttype: \"size\",\n\t\tproperty: \"letterSpacing\"\n\t},\n\tta: {\n\t\ttype: \"identity\",\n\t\tproperty: \"textAlign\"\n\t},\n\tlh: {\n\t\ttype: \"lineHeight\",\n\t\tproperty: \"lineHeight\"\n\t},\n\tfs: {\n\t\ttype: \"identity\",\n\t\tproperty: \"fontStyle\"\n\t},\n\ttt: {\n\t\ttype: \"identity\",\n\t\tproperty: \"textTransform\"\n\t},\n\ttd: {\n\t\ttype: \"identity\",\n\t\tproperty: \"textDecoration\"\n\t},\n\tw: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"width\"\n\t},\n\tmiw: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"minWidth\"\n\t},\n\tmaw: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"maxWidth\"\n\t},\n\th: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"height\"\n\t},\n\tmih: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"minHeight\"\n\t},\n\tmah: {\n\t\ttype: \"spacing\",\n\t\tproperty: \"maxHeight\"\n\t},\n\tbgsz: {\n\t\ttype: \"size\",\n\t\tproperty: \"backgroundSize\"\n\t},\n\tbgp: {\n\t\ttype: \"identity\",\n\t\tproperty: \"backgroundPosition\"\n\t},\n\tbgr: {\n\t\ttype: \"identity\",\n\t\tproperty: \"backgroundRepeat\"\n\t},\n\tbga: {\n\t\ttype: \"identity\",\n\t\tproperty: \"backgroundAttachment\"\n\t},\n\tpos: {\n\t\ttype: \"identity\",\n\t\tproperty: \"position\"\n\t},\n\ttop: {\n\t\ttype: \"size\",\n\t\tproperty: \"top\"\n\t},\n\tleft: {\n\t\ttype: \"size\",\n\t\tproperty: \"left\"\n\t},\n\tbottom: {\n\t\ttype: \"size\",\n\t\tproperty: \"bottom\"\n\t},\n\tright: {\n\t\ttype: \"size\",\n\t\tproperty: \"right\"\n\t},\n\tinset: {\n\t\ttype: \"size\",\n\t\tproperty: \"inset\"\n\t},\n\tdisplay: {\n\t\ttype: \"identity\",\n\t\tproperty: \"display\"\n\t},\n\tflex: {\n\t\ttype: \"identity\",\n\t\tproperty: \"flex\"\n\t}\n};\nexport { STYLE_PROPS_DATA };\n\n//# sourceMappingURL=style-props-data.mjs.map","\"use client\";\nimport { parseThemeColor } from \"../../../../MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/color-resolver/color-resolver.ts\nfunction colorResolver(color, theme) {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t});\n\tif (parsedColor.color === \"dimmed\") return \"var(--mantine-color-dimmed)\";\n\tif (parsedColor.color === \"bright\") return \"var(--mantine-color-bright)\";\n\treturn parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;\n}\nfunction textColorResolver(color, theme) {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t});\n\tif (parsedColor.isThemeColor && parsedColor.shade === void 0) return `var(--mantine-color-${parsedColor.color}-text)`;\n\treturn colorResolver(color, theme);\n}\nexport { colorResolver, textColorResolver };\n\n//# sourceMappingURL=color-resolver.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.ts\nconst values = {\n\ttext: \"var(--mantine-font-family)\",\n\tmono: \"var(--mantine-font-family-monospace)\",\n\tmonospace: \"var(--mantine-font-family-monospace)\",\n\theading: \"var(--mantine-font-family-headings)\",\n\theadings: \"var(--mantine-font-family-headings)\"\n};\nfunction fontFamilyResolver(fontFamily) {\n\tif (typeof fontFamily === \"string\" && fontFamily in values) return values[fontFamily];\n\treturn fontFamily;\n}\nexport { fontFamilyResolver };\n\n//# sourceMappingURL=font-family-resolver.mjs.map","\"use client\";\nimport { rem } from \"../../../../utils/units-converters/rem.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.ts\nconst headings = [\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\"\n];\nfunction fontSizeResolver(value, theme) {\n\tif (typeof value === \"string\" && value in theme.fontSizes) return `var(--mantine-font-size-${value})`;\n\tif (typeof value === \"string\" && headings.includes(value)) return `var(--mantine-${value}-font-size)`;\n\tif (typeof value === \"number\") return rem(value);\n\tif (typeof value === \"string\") return rem(value);\n\treturn value;\n}\nexport { fontSizeResolver };\n\n//# sourceMappingURL=font-size-resolver.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.ts\nconst headings = [\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\"\n];\nfunction lineHeightResolver(value, theme) {\n\tif (typeof value === \"string\" && value in theme.lineHeights) return `var(--mantine-line-height-${value})`;\n\tif (typeof value === \"string\" && headings.includes(value)) return `var(--mantine-${value}-line-height)`;\n\treturn value;\n}\nexport { lineHeightResolver };\n\n//# sourceMappingURL=line-height-resolver.mjs.map","\"use client\";\nimport { colorResolver, textColorResolver } from \"./color-resolver/color-resolver.mjs\";\nimport { borderResolver } from \"./border-resolver/border-resolver.mjs\";\nimport { fontFamilyResolver } from \"./font-family-resolver/font-family-resolver.mjs\";\nimport { fontSizeResolver } from \"./font-size-resolver/font-size-resolver.mjs\";\nimport { identityResolver } from \"./identity-resolver/identity-resolver.mjs\";\nimport { lineHeightResolver } from \"./line-height-resolver/line-height-resolver.mjs\";\nimport { radiusResolver } from \"./radius-resolver/radius-resolver.mjs\";\nimport { sizeResolver } from \"./size-resolver/size-resolver.mjs\";\nimport { spacingResolver } from \"./spacing-resolver/spacing-resolver.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/index.ts\nconst resolvers = {\n\tcolor: colorResolver,\n\ttextColor: textColorResolver,\n\tfontSize: fontSizeResolver,\n\tspacing: spacingResolver,\n\tradius: radiusResolver,\n\tidentity: identityResolver,\n\tsize: sizeResolver,\n\tlineHeight: lineHeightResolver,\n\tfontFamily: fontFamilyResolver,\n\tborder: borderResolver\n};\nexport { resolvers };\n\n//# sourceMappingURL=index.mjs.map","\"use client\";\nimport { rem } from \"../../../../utils/units-converters/rem.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.ts\nfunction spacingResolver(value, theme) {\n\tif (typeof value === \"number\") return rem(value);\n\tif (typeof value === \"string\") {\n\t\tconst mod = value.replace(\"-\", \"\");\n\t\tif (!(mod in theme.spacing)) return rem(value);\n\t\tconst variable = `--mantine-spacing-${mod}`;\n\t\treturn value.startsWith(\"-\") ? `calc(var(${variable}) * -1)` : `var(${variable})`;\n\t}\n\treturn value;\n}\nexport { spacingResolver };\n\n//# sourceMappingURL=spacing-resolver.mjs.map","\"use client\";\nimport { rem } from \"../../../../utils/units-converters/rem.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/radius-resolver/radius-resolver.ts\nfunction radiusResolver(value, theme) {\n\tif (typeof value === \"string\" && value in theme.radius) return `var(--mantine-radius-${value})`;\n\tif (typeof value === \"number\") return rem(value);\n\tif (typeof value === \"string\") return rem(value);\n\treturn value;\n}\nexport { radiusResolver };\n\n//# sourceMappingURL=radius-resolver.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/identity-resolver/identity-resolver.ts\nfunction identityResolver(value) {\n\treturn value;\n}\nexport { identityResolver };\n\n//# sourceMappingURL=identity-resolver.mjs.map","\"use client\";\nimport { rem } from \"../../../../utils/units-converters/rem.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/size-resolver/size-resolver.ts\nfunction sizeResolver(value) {\n\tif (typeof value === \"number\") return rem(value);\n\treturn value;\n}\nexport { sizeResolver };\n\n//# sourceMappingURL=size-resolver.mjs.map","\"use client\";\nimport { rem } from \"../../../../utils/units-converters/rem.mjs\";\nimport { colorResolver } from \"../color-resolver/color-resolver.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/resolvers/border-resolver/border-resolver.ts\nfunction borderResolver(value, theme) {\n\tif (typeof value === \"number\") return rem(value);\n\tif (typeof value === \"string\") {\n\t\tconst [size, style, ...colorTuple] = value.split(\" \").filter((val) => val.trim() !== \"\");\n\t\tlet result = `${rem(size)}`;\n\t\tstyle && (result += ` ${style}`);\n\t\tcolorTuple.length > 0 && (result += ` ${colorResolver(colorTuple.join(\" \"), theme)}`);\n\t\treturn result.trim();\n\t}\n\treturn value;\n}\nexport { borderResolver };\n\n//# sourceMappingURL=border-resolver.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/style-props/parse-style-props/sort-media-queries.ts\nfunction replaceMediaQuery(query) {\n\treturn query.replace(\"(min-width: \", \"\").replace(\"em)\", \"\");\n}\nfunction sortMediaQueries({ media, ...props }) {\n\tconst sortedMedia = Object.keys(media).sort((a, b) => Number(replaceMediaQuery(a)) - Number(replaceMediaQuery(b))).map((query) => ({\n\t\tquery,\n\t\tstyles: media[query]\n\t}));\n\treturn {\n\t\t...props,\n\t\tmedia: sortedMedia\n\t};\n}\nexport { sortMediaQueries };\n\n//# sourceMappingURL=sort-media-queries.mjs.map","\"use client\";\nimport { keys } from \"../../../utils/keys/keys.mjs\";\nimport { resolvers } from \"../resolvers/index.mjs\";\nimport { sortMediaQueries } from \"./sort-media-queries.mjs\";\n// packages/@mantine/core/src/core/Box/style-props/parse-style-props/parse-style-props.ts\nfunction hasResponsiveStyles(styleProp) {\n\tif (typeof styleProp !== \"object\" || styleProp === null) return false;\n\tconst breakpoints = Object.keys(styleProp);\n\tif (breakpoints.length === 1 && breakpoints[0] === \"base\") return false;\n\treturn true;\n}\nfunction getBaseValue(value) {\n\tif (typeof value === \"object\" && value !== null) {\n\t\tif (\"base\" in value) return value.base;\n\t\treturn;\n\t}\n\treturn value;\n}\nfunction getBreakpointKeys(value) {\n\tif (typeof value === \"object\" && value !== null) return keys(value).filter((key) => key !== \"base\");\n\treturn [];\n}\nfunction getBreakpointValue(value, breakpoint) {\n\tif (typeof value === \"object\" && value !== null && breakpoint in value) return value[breakpoint];\n\treturn value;\n}\nfunction parseStyleProps({ styleProps, data, theme }) {\n\treturn sortMediaQueries(keys(styleProps).reduce((acc, styleProp) => {\n\t\tif (styleProp === \"hiddenFrom\" || styleProp === \"visibleFrom\" || styleProp === \"sx\") return acc;\n\t\tconst propertyData = data[styleProp];\n\t\tconst properties = Array.isArray(propertyData.property) ? propertyData.property : [propertyData.property];\n\t\tconst baseValue = getBaseValue(styleProps[styleProp]);\n\t\tif (!hasResponsiveStyles(styleProps[styleProp])) {\n\t\t\tproperties.forEach((property) => {\n\t\t\t\tacc.inlineStyles[property] = resolvers[propertyData.type](baseValue, theme);\n\t\t\t});\n\t\t\treturn acc;\n\t\t}\n\t\tacc.hasResponsiveStyles = true;\n\t\tconst breakpoints = getBreakpointKeys(styleProps[styleProp]);\n\t\tproperties.forEach((property) => {\n\t\t\tif (baseValue != null) acc.styles[property] = resolvers[propertyData.type](baseValue, theme);\n\t\t\tbreakpoints.forEach((breakpoint) => {\n\t\t\t\tconst bp = `(min-width: ${theme.breakpoints[breakpoint]})`;\n\t\t\t\tacc.media[bp] = {\n\t\t\t\t\t...acc.media[bp],\n\t\t\t\t\t[property]: resolvers[propertyData.type](getBreakpointValue(styleProps[styleProp], breakpoint), theme)\n\t\t\t\t};\n\t\t\t});\n\t\t});\n\t\treturn acc;\n\t}, {\n\t\thasResponsiveStyles: false,\n\t\tstyles: {},\n\t\tinlineStyles: {},\n\t\tmedia: {}\n\t}));\n}\nexport { parseStyleProps };\n\n//# sourceMappingURL=parse-style-props.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/get-box-mod/get-box-mod.ts\nfunction transformModKey(key) {\n\treturn `data-${(key.startsWith(\"data-\") ? key.slice(5) : key).replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase()}`;\n}\nfunction getMod(props) {\n\treturn Object.keys(props).reduce((acc, key) => {\n\t\tconst value = props[key];\n\t\tif (value === void 0 || value === \"\" || value === false || value === null) return acc;\n\t\tacc[transformModKey(key)] = props[key];\n\t\treturn acc;\n\t}, {});\n}\nfunction getBoxMod(mod) {\n\tif (!mod) return null;\n\tif (typeof mod === \"string\") return { [transformModKey(mod)]: true };\n\tif (Array.isArray(mod)) return [...mod].reduce((acc, value) => ({\n\t\t...acc,\n\t\t...getBoxMod(value)\n\t}), {});\n\treturn getMod(mod);\n}\nexport { getBoxMod, getMod };\n\n//# sourceMappingURL=get-box-mod.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/get-box-style/get-box-style.ts\nfunction mergeStyles(styles, theme) {\n\tif (Array.isArray(styles)) return [...styles].reduce((acc, item) => ({\n\t\t...acc,\n\t\t...mergeStyles(item, theme)\n\t}), {});\n\tif (typeof styles === \"function\") return styles(theme);\n\tif (styles == null) return {};\n\treturn styles;\n}\nfunction getBoxStyle({ theme, style, vars, styleProps }) {\n\tconst _style = mergeStyles(style, theme);\n\tconst _vars = mergeStyles(vars, theme);\n\treturn {\n\t\t..._style,\n\t\t..._vars,\n\t\t...styleProps\n\t};\n}\nexport { getBoxStyle };\n\n//# sourceMappingURL=get-box-style.mjs.map","\"use client\";\nimport { isNumberLike } from \"../utils/is-number-like/is-number-like.mjs\";\nimport { useMantineDeduplicateInlineStyles, useMantineSxTransform } from \"../MantineProvider/Mantine.context.mjs\";\nimport { useMantineTheme } from \"../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { InlineStyles } from \"../InlineStyles/InlineStyles.mjs\";\nimport { hashStyleProps } from \"../InlineStyles/hash-styles.mjs\";\nimport { extractStyleProps } from \"./style-props/extract-style-props/extract-style-props.mjs\";\nimport { STYLE_PROPS_DATA } from \"./style-props/style-props-data.mjs\";\nimport { parseStyleProps } from \"./style-props/parse-style-props/parse-style-props.mjs\";\nimport { useRandomClassName } from \"./use-random-classname/use-random-classname.mjs\";\nimport { polymorphic } from \"../factory/create-polymorphic-component.mjs\";\nimport { getBoxMod } from \"./get-box-mod/get-box-mod.mjs\";\nimport { getBoxStyle } from \"./get-box-style/get-box-style.mjs\";\nimport cx from \"clsx\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/Box/Box.tsx\nfunction _Box({ component, style, __vars, className, variant, mod, size, hiddenFrom, visibleFrom, lightHidden, darkHidden, renderRoot, __size, ref, ...others }) {\n\tconst theme = useMantineTheme();\n\tconst Element = component || \"div\";\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst transformedSx = useMantineSxTransform()?.()?.(styleProps.sx);\n\tconst randomClassName = useRandomClassName();\n\tconst parsedStyleProps = parseStyleProps({\n\t\tstyleProps,\n\t\ttheme,\n\t\tdata: STYLE_PROPS_DATA\n\t});\n\tconst deduplicateInlineStyles = useMantineDeduplicateInlineStyles();\n\tconst responsiveClassName = deduplicateInlineStyles && parsedStyleProps.hasResponsiveStyles ? hashStyleProps(parsedStyleProps.styles, parsedStyleProps.media) : randomClassName;\n\tconst props = {\n\t\tref,\n\t\tstyle: getBoxStyle({\n\t\t\ttheme,\n\t\t\tstyle,\n\t\t\tvars: __vars,\n\t\t\tstyleProps: parsedStyleProps.inlineStyles\n\t\t}),\n\t\tclassName: cx(className, transformedSx, {\n\t\t\t[responsiveClassName]: parsedStyleProps.hasResponsiveStyles,\n\t\t\t\"mantine-light-hidden\": lightHidden,\n\t\t\t\"mantine-dark-hidden\": darkHidden,\n\t\t\t[`mantine-hidden-from-${hiddenFrom}`]: hiddenFrom,\n\t\t\t[`mantine-visible-from-${visibleFrom}`]: visibleFrom\n\t\t}),\n\t\t\"data-variant\": variant,\n\t\t\"data-size\": isNumberLike(size) ? void 0 : size || void 0,\n\t\tsize: __size,\n\t\t...getBoxMod(mod),\n\t\t...rest\n\t};\n\treturn /* @__PURE__ */ jsxs(Fragment, { children: [parsedStyleProps.hasResponsiveStyles && /* @__PURE__ */ jsx(InlineStyles, {\n\t\tselector: `.${responsiveClassName}`,\n\t\tstyles: parsedStyleProps.styles,\n\t\tmedia: parsedStyleProps.media,\n\t\tdeduplicate: deduplicateInlineStyles\n\t}), typeof renderRoot === \"function\" ? renderRoot(props) : /* @__PURE__ */ jsx(Element, { ...props })] });\n}\n_Box.displayName = \"@mantine/core/Box\";\nconst Box = polymorphic(_Box);\nexport { Box };\n\n//# sourceMappingURL=Box.mjs.map","\"use client\";\nimport { useId } from \"react\";\n// packages/@mantine/core/src/core/Box/use-random-classname/use-random-classname.ts\nfunction useRandomClassName() {\n\treturn `__m__-${useId().replace(/[:«»]/g, \"\")}`;\n}\nexport { useRandomClassName };\n\n//# sourceMappingURL=use-random-classname.mjs.map","\"use client\";\nimport { cssObjectToString } from \"./css-object-to-string/css-object-to-string.mjs\";\n// packages/@mantine/core/src/core/InlineStyles/hash-styles.ts\nfunction djb2Hash(str) {\n\tlet hash = 5381;\n\tfor (let i = 0; i < str.length; i++) hash = (hash << 5) + hash + str.charCodeAt(i) & 4294967295;\n\treturn (hash >>> 0).toString(36);\n}\nfunction hashStyleProps(styles, media) {\n\treturn `__mdi__-${djb2Hash(`${styles ? cssObjectToString(styles) : \"\"}|${Array.isArray(media) ? media.map((m) => `${m.query}:${cssObjectToString(m.styles)}`).join(\"|\") : \"\"}`)}`;\n}\nexport { hashStyleProps };\n\n//# sourceMappingURL=hash-styles.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Center/Center.module.css\nvar Center_module_default = { \"root\": \"m_4451eb3a\" };\nexport { Center_module_default as default };\n\n//# sourceMappingURL=Center.module.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Center_module_default from \"./Center.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Center/Center.tsx\nconst Center = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Center\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, inline, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Center\",\n\t\tprops,\n\t\tclasses: Center_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tmod: [{ inline }, mod],\n\t\t...getStyles(\"root\"),\n\t\t...others\n\t});\n});\nCenter.classes = Center_module_default;\nCenter.displayName = \"@mantine/core/Center\";\nexport { Center };\n\n//# sourceMappingURL=Center.mjs.map","\"use client\";\nimport { rem } from \"../units-converters/rem.mjs\";\nimport { isNumberLike } from \"../is-number-like/is-number-like.mjs\";\n// packages/@mantine/core/src/core/utils/get-size/get-size.ts\nfunction getSize(size, prefix = \"size\", convertToRem = true) {\n\tif (size === void 0) return;\n\treturn isNumberLike(size) ? convertToRem ? rem(size) : size : `var(--${prefix}-${size})`;\n}\nfunction getSpacing(size) {\n\treturn getSize(size, \"mantine-spacing\");\n}\nfunction getRadius(size) {\n\tif (size === void 0) return \"var(--mantine-radius-default)\";\n\treturn getSize(size, \"mantine-radius\");\n}\nfunction getFontSize(size) {\n\treturn getSize(size, \"mantine-font-size\");\n}\nfunction getLineHeight(size) {\n\treturn getSize(size, \"mantine-line-height\", false);\n}\nfunction getShadow(size) {\n\tif (!size) return;\n\treturn getSize(size, \"mantine-shadow\", false);\n}\nexport { getFontSize, getLineHeight, getRadius, getShadow, getSize, getSpacing };\n\n//# sourceMappingURL=get-size.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Loader/Loader.module.css\nvar Loader_module_default = {\n\t\"root\": \"m_5ae2e3c\",\n\t\"barsLoader\": \"m_7a2bd4cd\",\n\t\"bar\": \"m_870bb79\",\n\t\"bars-loader-animation\": \"m_5d2b3b9d\",\n\t\"dotsLoader\": \"m_4e3f22d7\",\n\t\"dot\": \"m_870c4af\",\n\t\"loader-dots-animation\": \"m_aac34a1\",\n\t\"ovalLoader\": \"m_b34414df\",\n\t\"oval-loader-animation\": \"m_f8e89c4b\"\n};\nexport { Loader_module_default as default };\n\n//# sourceMappingURL=Loader.module.mjs.map","\"use client\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Loader_module_default from \"../Loader.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Loader/loaders/Bars.tsx\nconst Bars = ({ className, ...others }) => /* @__PURE__ */ jsxs(Box, {\n\tcomponent: \"span\",\n\tclassName: cx(Loader_module_default.barsLoader, className),\n\t...others,\n\tchildren: [\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.bar }),\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.bar }),\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.bar })\n\t]\n});\nBars.displayName = \"@mantine/core/Bars\";\nexport { Bars };\n\n//# sourceMappingURL=Bars.mjs.map","\"use client\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Loader_module_default from \"../Loader.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Loader/loaders/Dots.tsx\nconst Dots = ({ className, ...others }) => /* @__PURE__ */ jsxs(Box, {\n\tcomponent: \"span\",\n\tclassName: cx(Loader_module_default.dotsLoader, className),\n\t...others,\n\tchildren: [\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.dot }),\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.dot }),\n\t\t/* @__PURE__ */ jsx(\"span\", { className: Loader_module_default.dot })\n\t]\n});\nDots.displayName = \"@mantine/core/Dots\";\nexport { Dots };\n\n//# sourceMappingURL=Dots.mjs.map","\"use client\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Loader_module_default from \"../Loader.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Loader/loaders/Oval.tsx\nconst Oval = ({ className, ...others }) => /* @__PURE__ */ jsx(Box, {\n\tcomponent: \"span\",\n\tclassName: cx(Loader_module_default.ovalLoader, className),\n\t...others\n});\nOval.displayName = \"@mantine/core/Oval\";\nexport { Oval };\n\n//# sourceMappingURL=Oval.mjs.map","\"use client\";\nimport { getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Loader_module_default from \"./Loader.module.mjs\";\nimport { Bars } from \"./loaders/Bars.mjs\";\nimport { Dots } from \"./loaders/Dots.mjs\";\nimport { Oval } from \"./loaders/Oval.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Loader/Loader.tsx\nconst defaultLoaders = {\n\tbars: Bars,\n\toval: Oval,\n\tdots: Dots\n};\nconst defaultProps = {\n\tloaders: defaultLoaders,\n\ttype: \"oval\"\n};\nconst varsResolver = createVarsResolver((theme, { size, color }) => ({ root: {\n\t\"--loader-size\": getSize(size, \"loader-size\"),\n\t\"--loader-color\": color ? getThemeColor(color, theme) : void 0\n} }));\nconst Loader = factory((_props) => {\n\tconst props = useProps(\"Loader\", defaultProps, _props);\n\tconst { size, color, type, vars, className, style, classNames, styles, unstyled, loaders, variant, children, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Loader\",\n\t\tprops,\n\t\tclasses: Loader_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tif (children) return /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\t...others,\n\t\tchildren\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\tcomponent: loaders[type],\n\t\tvariant,\n\t\tsize,\n\t\t...others\n\t});\n});\nLoader.defaultLoaders = defaultLoaders;\nLoader.classes = Loader_module_default;\nLoader.varsResolver = varsResolver;\nLoader.displayName = \"@mantine/core/Loader\";\nexport { Loader, defaultLoaders };\n\n//# sourceMappingURL=Loader.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/MantineProvider/color-scheme-managers/is-mantine-color-scheme.ts\nfunction isMantineColorScheme(value) {\n\treturn value === \"auto\" || value === \"dark\" || value === \"light\";\n}\nexport { isMantineColorScheme };\n\n//# sourceMappingURL=is-mantine-color-scheme.mjs.map","\"use client\";\nimport { isMantineColorScheme } from \"./is-mantine-color-scheme.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-scheme-managers/local-storage-manager.ts\nfunction localStorageColorSchemeManager({ key = \"mantine-color-scheme-value\" } = {}) {\n\tlet handleStorageEvent;\n\treturn {\n\t\tget: (defaultValue) => {\n\t\t\tif (typeof window === \"undefined\") return defaultValue;\n\t\t\ttry {\n\t\t\t\tconst storedColorScheme = window.localStorage.getItem(key);\n\t\t\t\treturn isMantineColorScheme(storedColorScheme) ? storedColorScheme : defaultValue;\n\t\t\t} catch {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t},\n\t\tset: (value) => {\n\t\t\ttry {\n\t\t\t\twindow.localStorage.setItem(key, value);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn(\"[@mantine/core] Local storage color scheme manager was unable to save color scheme.\", error);\n\t\t\t}\n\t\t},\n\t\tsubscribe: (onUpdate) => {\n\t\t\thandleStorageEvent = (event) => {\n\t\t\t\tif (event.storageArea === window.localStorage && event.key === key) isMantineColorScheme(event.newValue) && onUpdate(event.newValue);\n\t\t\t};\n\t\t\twindow.addEventListener(\"storage\", handleStorageEvent);\n\t\t},\n\t\tunsubscribe: () => {\n\t\t\twindow.removeEventListener(\"storage\", handleStorageEvent);\n\t\t},\n\t\tclear: () => {\n\t\t\twindow.localStorage.removeItem(key);\n\t\t}\n\t};\n}\nexport { localStorageColorSchemeManager };\n\n//# sourceMappingURL=local-storage-manager.mjs.map","\"use client\";\nimport { useEffect, useLayoutEffect } from \"react\";\n// packages/@mantine/hooks/src/use-isomorphic-effect/use-isomorphic-effect.ts\nconst useIsomorphicEffect = typeof document !== \"undefined\" ? useLayoutEffect : useEffect;\nexport { useIsomorphicEffect };\n\n//# sourceMappingURL=use-isomorphic-effect.mjs.map","\"use client\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useIsomorphicEffect } from \"@mantine/hooks\";\n// packages/@mantine/core/src/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.ts\nfunction setColorSchemeAttribute(colorScheme, getRootElement) {\n\tconst hasDarkColorScheme = typeof window !== \"undefined\" && \"matchMedia\" in window && window.matchMedia(\"(prefers-color-scheme: dark)\")?.matches;\n\tconst computedColorScheme = colorScheme !== \"auto\" ? colorScheme : hasDarkColorScheme ? \"dark\" : \"light\";\n\tgetRootElement()?.setAttribute(\"data-mantine-color-scheme\", computedColorScheme);\n}\nfunction useProviderColorScheme({ manager, defaultColorScheme, getRootElement, forceColorScheme }) {\n\tconst media = useRef(null);\n\tconst [value, setValue] = useState(() => manager.get(defaultColorScheme));\n\tconst colorSchemeValue = forceColorScheme || value;\n\tconst setColorScheme = useCallback((colorScheme) => {\n\t\tif (!forceColorScheme) {\n\t\t\tsetColorSchemeAttribute(colorScheme, getRootElement);\n\t\t\tsetValue(colorScheme);\n\t\t\tmanager.set(colorScheme);\n\t\t}\n\t}, [\n\t\tmanager.set,\n\t\tcolorSchemeValue,\n\t\tforceColorScheme\n\t]);\n\tconst clearColorScheme = useCallback(() => {\n\t\tsetValue(defaultColorScheme);\n\t\tsetColorSchemeAttribute(defaultColorScheme, getRootElement);\n\t\tmanager.clear();\n\t}, [manager.clear, defaultColorScheme]);\n\tuseEffect(() => {\n\t\tmanager.subscribe(setColorScheme);\n\t\treturn manager.unsubscribe;\n\t}, [manager.subscribe, manager.unsubscribe]);\n\tuseIsomorphicEffect(() => {\n\t\tsetColorSchemeAttribute(manager.get(defaultColorScheme), getRootElement);\n\t}, []);\n\tuseEffect(() => {\n\t\tif (forceColorScheme) {\n\t\t\tsetColorSchemeAttribute(forceColorScheme, getRootElement);\n\t\t\treturn () => {};\n\t\t}\n\t\tif (forceColorScheme === void 0) setColorSchemeAttribute(value, getRootElement);\n\t\tif (typeof window !== \"undefined\" && \"matchMedia\" in window) media.current = window.matchMedia(\"(prefers-color-scheme: dark)\");\n\t\tconst listener = (event) => {\n\t\t\tif (value === \"auto\") setColorSchemeAttribute(event.matches ? \"dark\" : \"light\", getRootElement);\n\t\t};\n\t\tmedia.current?.addEventListener(\"change\", listener);\n\t\treturn () => media.current?.removeEventListener(\"change\", listener);\n\t}, [value, forceColorScheme]);\n\treturn {\n\t\tcolorScheme: colorSchemeValue,\n\t\tsetColorScheme,\n\t\tclearColorScheme\n\t};\n}\nexport { useProviderColorScheme };\n\n//# sourceMappingURL=use-provider-color-scheme.mjs.map","\"use client\";\nimport { keys } from \"../../utils/keys/keys.mjs\";\nimport { px } from \"../../utils/units-converters/px.mjs\";\nimport { em } from \"../../utils/units-converters/rem.mjs\";\nimport { useMantineStyleNonce } from \"../Mantine.context.mjs\";\nimport { useMantineTheme } from \"../MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/MantineProvider/MantineClasses/MantineClasses.tsx\nfunction MantineClasses() {\n\tconst theme = useMantineTheme();\n\tconst nonce = useMantineStyleNonce();\n\tconst classes = keys(theme.breakpoints).reduce((acc, breakpoint) => {\n\t\tconst isPxBreakpoint = theme.breakpoints[breakpoint].includes(\"px\");\n\t\tconst pxValue = px(theme.breakpoints[breakpoint]);\n\t\treturn `${acc}@media (max-width: ${isPxBreakpoint ? `${pxValue - .1}px` : em(pxValue - .1)}) {.mantine-visible-from-${breakpoint} {display: none !important;}}@media (min-width: ${isPxBreakpoint ? `${pxValue}px` : em(pxValue)}) {.mantine-hidden-from-${breakpoint} {display: none !important;}}`;\n\t}, \"\");\n\treturn /* @__PURE__ */ jsx(\"style\", {\n\t\t\"data-mantine-styles\": \"classes\",\n\t\tnonce: nonce?.(),\n\t\tdangerouslySetInnerHTML: { __html: classes }\n\t});\n}\nexport { MantineClasses };\n\n//# sourceMappingURL=MantineClasses.mjs.map","// packages/@mantine/core/src/core/utils/units-converters/px.ts\nfunction getTransformedScaledValue(value) {\n\tif (typeof value !== \"string\" || !value.includes(\"var(--mantine-scale)\")) return value;\n\treturn value.match(/^calc\\((.*?)\\)$/)?.[1].split(\"*\")[0].trim();\n}\nfunction px(value) {\n\tconst transformedValue = getTransformedScaledValue(value);\n\tif (typeof transformedValue === \"number\") return transformedValue;\n\tif (typeof transformedValue === \"string\") {\n\t\tif (transformedValue.includes(\"calc\") || transformedValue.includes(\"var\")) return transformedValue;\n\t\tif (transformedValue.includes(\"px\")) return Number(transformedValue.replace(\"px\", \"\"));\n\t\tif (transformedValue.includes(\"rem\")) return Number(transformedValue.replace(\"rem\", \"\")) * 16;\n\t\tif (transformedValue.includes(\"em\")) return Number(transformedValue.replace(\"em\", \"\")) * 16;\n\t\treturn Number(transformedValue);\n\t}\n\treturn NaN;\n}\nexport { px };\n\n//# sourceMappingURL=px.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/MantineProvider/convert-css-variables/css-variables-object-to-string.ts\nfunction cssVariablesObjectToString(variables) {\n\treturn Object.entries(variables).map(([name, value]) => `${name}: ${value};`).join(\"\");\n}\nexport { cssVariablesObjectToString };\n\n//# sourceMappingURL=css-variables-object-to-string.mjs.map","\"use client\";\nimport { cssVariablesObjectToString } from \"./css-variables-object-to-string.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/convert-css-variables/convert-css-variables.ts\nfunction convertCssVariables(input, selectorOverride) {\n\tconst selectors = selectorOverride ? [selectorOverride] : [\":root\", \":host\"];\n\tconst sharedVariables = cssVariablesObjectToString(input.variables);\n\tconst shared = sharedVariables ? `${selectors.join(\", \")}{${sharedVariables}}` : \"\";\n\tconst dark = cssVariablesObjectToString(input.dark);\n\tconst light = cssVariablesObjectToString(input.light);\n\tconst selectorsWithScheme = (scheme) => selectors.map((selector) => selector === \":host\" ? `${selector}([data-mantine-color-scheme=\"${scheme}\"])` : `${selector}[data-mantine-color-scheme=\"${scheme}\"]`).join(\", \");\n\treturn `${shared}\\n\\n${dark ? `${selectorsWithScheme(\"dark\")}{${dark}}` : \"\"}\\n\\n${light ? `${selectorsWithScheme(\"light\")}{${light}}` : \"\"}`;\n}\nexport { convertCssVariables };\n\n//# sourceMappingURL=convert-css-variables.mjs.map","\"use client\";\nimport { getPrimaryShade } from \"../get-primary-shade/get-primary-shade.mjs\";\nimport { parseThemeColor } from \"../parse-theme-color/parse-theme-color.mjs\";\nimport { isVirtualColor } from \"../../MantineCssVariables/virtual-color/virtual-color.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.ts\nfunction getContrastColor({ color, theme, autoContrast, colorScheme }) {\n\tif (!(typeof autoContrast === \"boolean\" ? autoContrast : theme.autoContrast)) return \"var(--mantine-color-white)\";\n\treturn parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tcolorScheme\n\t}).isLight ? \"var(--mantine-color-black)\" : \"var(--mantine-color-white)\";\n}\nfunction getVirtualColorContrast(value, theme, colorScheme) {\n\treturn getContrastColor({\n\t\tcolor: colorScheme === \"dark\" ? value.dark : value.light,\n\t\ttheme,\n\t\tcolorScheme,\n\t\tautoContrast: true\n\t});\n}\nfunction getPrimaryContrastColor(theme, colorScheme) {\n\tconst primaryColor = theme.colors[theme.primaryColor];\n\tif (isVirtualColor(primaryColor)) {\n\t\tif (!theme.autoContrast) return \"var(--mantine-color-white)\";\n\t\treturn getVirtualColorContrast(primaryColor, theme, colorScheme);\n\t}\n\treturn getContrastColor({\n\t\tcolor: primaryColor[getPrimaryShade(theme, colorScheme)],\n\t\ttheme,\n\t\tautoContrast: null\n\t});\n}\nexport { getContrastColor, getPrimaryContrastColor, getVirtualColorContrast };\n\n//# sourceMappingURL=get-contrast-color.mjs.map","\"use client\";\nimport { getPrimaryShade } from \"../color-functions/get-primary-shade/get-primary-shade.mjs\";\nimport { darken } from \"../color-functions/darken/darken.mjs\";\nimport { alpha } from \"../color-functions/rgba/rgba.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/get-css-color-variables.ts\nfunction getCSSColorVariables({ theme, color, colorScheme, name = color, withColorValues = true }) {\n\tif (!theme.colors[color]) return {};\n\tif (colorScheme === \"light\") {\n\t\tconst primaryShade = getPrimaryShade(theme, \"light\");\n\t\tconst dynamicVariables = {\n\t\t\t[`--mantine-color-${name}-text`]: `var(--mantine-color-${name}-filled)`,\n\t\t\t[`--mantine-color-${name}-filled`]: `var(--mantine-color-${name}-${primaryShade})`,\n\t\t\t[`--mantine-color-${name}-filled-hover`]: `var(--mantine-color-${name}-${primaryShade === 9 ? 8 : primaryShade + 1})`,\n\t\t\t[`--mantine-color-${name}-light`]: `var(--mantine-color-${name}-1)`,\n\t\t\t[`--mantine-color-${name}-light-hover`]: `var(--mantine-color-${name}-2)`,\n\t\t\t[`--mantine-color-${name}-light-color`]: `var(--mantine-color-${name}-9)`,\n\t\t\t[`--mantine-color-${name}-outline`]: `var(--mantine-color-${name}-${primaryShade})`,\n\t\t\t[`--mantine-color-${name}-outline-hover`]: alpha(theme.colors[color][primaryShade], .05)\n\t\t};\n\t\tif (!withColorValues) return dynamicVariables;\n\t\treturn {\n\t\t\t[`--mantine-color-${name}-0`]: theme.colors[color][0],\n\t\t\t[`--mantine-color-${name}-1`]: theme.colors[color][1],\n\t\t\t[`--mantine-color-${name}-2`]: theme.colors[color][2],\n\t\t\t[`--mantine-color-${name}-3`]: theme.colors[color][3],\n\t\t\t[`--mantine-color-${name}-4`]: theme.colors[color][4],\n\t\t\t[`--mantine-color-${name}-5`]: theme.colors[color][5],\n\t\t\t[`--mantine-color-${name}-6`]: theme.colors[color][6],\n\t\t\t[`--mantine-color-${name}-7`]: theme.colors[color][7],\n\t\t\t[`--mantine-color-${name}-8`]: theme.colors[color][8],\n\t\t\t[`--mantine-color-${name}-9`]: theme.colors[color][9],\n\t\t\t...dynamicVariables\n\t\t};\n\t}\n\tconst primaryShade = getPrimaryShade(theme, \"dark\");\n\tconst dynamicVariables = {\n\t\t[`--mantine-color-${name}-text`]: `var(--mantine-color-${name}-4)`,\n\t\t[`--mantine-color-${name}-filled`]: `var(--mantine-color-${name}-${primaryShade})`,\n\t\t[`--mantine-color-${name}-filled-hover`]: `var(--mantine-color-${name}-${primaryShade === 9 ? 8 : primaryShade + 1})`,\n\t\t[`--mantine-color-${name}-light`]: darken(theme.colors[color][9], .5),\n\t\t[`--mantine-color-${name}-light-hover`]: darken(theme.colors[color][9], .3),\n\t\t[`--mantine-color-${name}-light-color`]: `var(--mantine-color-${name}-0)`,\n\t\t[`--mantine-color-${name}-outline`]: `var(--mantine-color-${name}-${Math.max(primaryShade - 4, 0)})`,\n\t\t[`--mantine-color-${name}-outline-hover`]: alpha(theme.colors[color][Math.max(primaryShade - 4, 0)], .05)\n\t};\n\tif (!withColorValues) return dynamicVariables;\n\treturn {\n\t\t[`--mantine-color-${name}-0`]: theme.colors[color][0],\n\t\t[`--mantine-color-${name}-1`]: theme.colors[color][1],\n\t\t[`--mantine-color-${name}-2`]: theme.colors[color][2],\n\t\t[`--mantine-color-${name}-3`]: theme.colors[color][3],\n\t\t[`--mantine-color-${name}-4`]: theme.colors[color][4],\n\t\t[`--mantine-color-${name}-5`]: theme.colors[color][5],\n\t\t[`--mantine-color-${name}-6`]: theme.colors[color][6],\n\t\t[`--mantine-color-${name}-7`]: theme.colors[color][7],\n\t\t[`--mantine-color-${name}-8`]: theme.colors[color][8],\n\t\t[`--mantine-color-${name}-9`]: theme.colors[color][9],\n\t\t...dynamicVariables\n\t};\n}\nexport { getCSSColorVariables };\n\n//# sourceMappingURL=get-css-color-variables.mjs.map","\"use client\";\nimport { keys } from \"../../utils/keys/keys.mjs\";\nimport { rem } from \"../../utils/units-converters/rem.mjs\";\nimport { getPrimaryShade } from \"../color-functions/get-primary-shade/get-primary-shade.mjs\";\nimport { isVirtualColor } from \"./virtual-color/virtual-color.mjs\";\nimport { getPrimaryContrastColor, getVirtualColorContrast } from \"../color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getCSSColorVariables } from \"./get-css-color-variables.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.ts\nfunction assignSizeVariables(variables, sizes, name) {\n\tkeys(sizes).forEach((size) => Object.assign(variables, { [`--mantine-${name}-${size}`]: sizes[size] }));\n}\nconst defaultCssVariablesResolver = (theme) => {\n\tconst lightPrimaryShade = getPrimaryShade(theme, \"light\");\n\tconst defaultRadius = theme.defaultRadius in theme.radius ? theme.radius[theme.defaultRadius] : rem(theme.defaultRadius);\n\tconst result = {\n\t\tvariables: {\n\t\t\t\"--mantine-z-index-app\": \"100\",\n\t\t\t\"--mantine-z-index-modal\": \"200\",\n\t\t\t\"--mantine-z-index-popover\": \"300\",\n\t\t\t\"--mantine-z-index-overlay\": \"400\",\n\t\t\t\"--mantine-z-index-max\": \"9999\",\n\t\t\t\"--mantine-scale\": theme.scale.toString(),\n\t\t\t\"--mantine-cursor-type\": theme.cursorType,\n\t\t\t\"--mantine-webkit-font-smoothing\": theme.fontSmoothing ? \"antialiased\" : \"unset\",\n\t\t\t\"--mantine-moz-font-smoothing\": theme.fontSmoothing ? \"grayscale\" : \"unset\",\n\t\t\t\"--mantine-color-white\": theme.white,\n\t\t\t\"--mantine-color-black\": theme.black,\n\t\t\t\"--mantine-line-height\": theme.lineHeights.md,\n\t\t\t\"--mantine-font-family\": theme.fontFamily,\n\t\t\t\"--mantine-font-family-monospace\": theme.fontFamilyMonospace,\n\t\t\t\"--mantine-font-family-headings\": theme.headings.fontFamily,\n\t\t\t\"--mantine-heading-font-weight\": theme.headings.fontWeight,\n\t\t\t\"--mantine-heading-text-wrap\": theme.headings.textWrap,\n\t\t\t\"--mantine-radius-default\": defaultRadius,\n\t\t\t\"--mantine-primary-color-filled\": `var(--mantine-color-${theme.primaryColor}-filled)`,\n\t\t\t\"--mantine-primary-color-filled-hover\": `var(--mantine-color-${theme.primaryColor}-filled-hover)`,\n\t\t\t\"--mantine-primary-color-light\": `var(--mantine-color-${theme.primaryColor}-light)`,\n\t\t\t\"--mantine-primary-color-light-hover\": `var(--mantine-color-${theme.primaryColor}-light-hover)`,\n\t\t\t\"--mantine-primary-color-light-color\": `var(--mantine-color-${theme.primaryColor}-light-color)`\n\t\t},\n\t\tlight: {\n\t\t\t\"--mantine-color-scheme\": \"light\",\n\t\t\t\"--mantine-primary-color-contrast\": getPrimaryContrastColor(theme, \"light\"),\n\t\t\t\"--mantine-color-bright\": \"var(--mantine-color-black)\",\n\t\t\t\"--mantine-color-text\": theme.black,\n\t\t\t\"--mantine-color-body\": theme.white,\n\t\t\t\"--mantine-color-error\": \"var(--mantine-color-red-6)\",\n\t\t\t\"--mantine-color-success\": \"var(--mantine-color-teal-8)\",\n\t\t\t\"--mantine-color-placeholder\": \"var(--mantine-color-gray-5)\",\n\t\t\t\"--mantine-color-anchor\": `var(--mantine-color-${theme.primaryColor}-${lightPrimaryShade})`,\n\t\t\t\"--mantine-color-default\": \"var(--mantine-color-white)\",\n\t\t\t\"--mantine-color-default-hover\": \"var(--mantine-color-gray-0)\",\n\t\t\t\"--mantine-color-default-color\": \"var(--mantine-color-black)\",\n\t\t\t\"--mantine-color-default-border\": \"var(--mantine-color-gray-4)\",\n\t\t\t\"--mantine-color-dimmed\": \"var(--mantine-color-gray-6)\",\n\t\t\t\"--mantine-color-disabled\": \"var(--mantine-color-gray-2)\",\n\t\t\t\"--mantine-color-disabled-color\": \"var(--mantine-color-gray-5)\",\n\t\t\t\"--mantine-color-disabled-border\": \"var(--mantine-color-gray-3)\"\n\t\t},\n\t\tdark: {\n\t\t\t\"--mantine-color-scheme\": \"dark\",\n\t\t\t\"--mantine-primary-color-contrast\": getPrimaryContrastColor(theme, \"dark\"),\n\t\t\t\"--mantine-color-bright\": \"var(--mantine-color-white)\",\n\t\t\t\"--mantine-color-text\": \"var(--mantine-color-dark-0)\",\n\t\t\t\"--mantine-color-body\": \"var(--mantine-color-dark-7)\",\n\t\t\t\"--mantine-color-error\": \"var(--mantine-color-red-8)\",\n\t\t\t\"--mantine-color-success\": \"var(--mantine-color-teal-8)\",\n\t\t\t\"--mantine-color-placeholder\": \"var(--mantine-color-dark-3)\",\n\t\t\t\"--mantine-color-anchor\": `var(--mantine-color-${theme.primaryColor}-4)`,\n\t\t\t\"--mantine-color-default\": \"var(--mantine-color-dark-6)\",\n\t\t\t\"--mantine-color-default-hover\": \"var(--mantine-color-dark-5)\",\n\t\t\t\"--mantine-color-default-color\": \"var(--mantine-color-white)\",\n\t\t\t\"--mantine-color-default-border\": \"var(--mantine-color-dark-4)\",\n\t\t\t\"--mantine-color-dimmed\": \"var(--mantine-color-dark-2)\",\n\t\t\t\"--mantine-color-disabled\": \"var(--mantine-color-dark-6)\",\n\t\t\t\"--mantine-color-disabled-color\": \"var(--mantine-color-dark-3)\",\n\t\t\t\"--mantine-color-disabled-border\": \"var(--mantine-color-dark-4)\"\n\t\t}\n\t};\n\tassignSizeVariables(result.variables, theme.breakpoints, \"breakpoint\");\n\tassignSizeVariables(result.variables, theme.spacing, \"spacing\");\n\tassignSizeVariables(result.variables, theme.fontSizes, \"font-size\");\n\tassignSizeVariables(result.variables, theme.lineHeights, \"line-height\");\n\tassignSizeVariables(result.variables, theme.shadows, \"shadow\");\n\tassignSizeVariables(result.variables, theme.radius, \"radius\");\n\tassignSizeVariables(result.variables, theme.fontWeights, \"font-weight\");\n\ttheme.colors[theme.primaryColor].forEach((_, index) => {\n\t\tresult.variables[`--mantine-primary-color-${index}`] = `var(--mantine-color-${theme.primaryColor}-${index})`;\n\t});\n\tkeys(theme.colors).forEach((color) => {\n\t\tconst value = theme.colors[color];\n\t\tif (isVirtualColor(value)) {\n\t\t\tObject.assign(result.light, getCSSColorVariables({\n\t\t\t\ttheme,\n\t\t\t\tname: value.name,\n\t\t\t\tcolor: value.light,\n\t\t\t\tcolorScheme: \"light\",\n\t\t\t\twithColorValues: true\n\t\t\t}));\n\t\t\tObject.assign(result.dark, getCSSColorVariables({\n\t\t\t\ttheme,\n\t\t\t\tname: value.name,\n\t\t\t\tcolor: value.dark,\n\t\t\t\tcolorScheme: \"dark\",\n\t\t\t\twithColorValues: true\n\t\t\t}));\n\t\t\tresult.light[`--mantine-color-${value.name}-contrast`] = getVirtualColorContrast(value, theme, \"light\");\n\t\t\tresult.dark[`--mantine-color-${value.name}-contrast`] = getVirtualColorContrast(value, theme, \"dark\");\n\t\t\treturn;\n\t\t}\n\t\tvalue.forEach((shade, index) => {\n\t\t\tresult.variables[`--mantine-color-${color}-${index}`] = shade;\n\t\t});\n\t\tObject.assign(result.light, getCSSColorVariables({\n\t\t\ttheme,\n\t\t\tcolor,\n\t\t\tcolorScheme: \"light\",\n\t\t\twithColorValues: false\n\t\t}));\n\t\tObject.assign(result.dark, getCSSColorVariables({\n\t\t\ttheme,\n\t\t\tcolor,\n\t\t\tcolorScheme: \"dark\",\n\t\t\twithColorValues: false\n\t\t}));\n\t});\n\tconst headings = theme.headings.sizes;\n\tkeys(headings).forEach((heading) => {\n\t\tresult.variables[`--mantine-${heading}-font-size`] = headings[heading].fontSize;\n\t\tresult.variables[`--mantine-${heading}-line-height`] = headings[heading].lineHeight;\n\t\tresult.variables[`--mantine-${heading}-font-weight`] = headings[heading].fontWeight || theme.headings.fontWeight;\n\t});\n\treturn result;\n};\nexport { defaultCssVariablesResolver };\n\n//# sourceMappingURL=default-css-variables-resolver.mjs.map","\"use client\";\nimport { keys } from \"../../utils/keys/keys.mjs\";\nimport { DEFAULT_THEME } from \"../default-theme.mjs\";\nimport { defaultCssVariablesResolver } from \"./default-css-variables-resolver.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/remove-default-variables.ts\nconst defaultCssVariables = defaultCssVariablesResolver(DEFAULT_THEME);\nfunction removeDefaultVariables(input) {\n\tconst cleaned = {\n\t\tvariables: {},\n\t\tlight: {},\n\t\tdark: {}\n\t};\n\tkeys(input.variables).forEach((key) => {\n\t\tif (defaultCssVariables.variables[key] !== input.variables[key]) cleaned.variables[key] = input.variables[key];\n\t});\n\tkeys(input.light).forEach((key) => {\n\t\tif (defaultCssVariables.light[key] !== input.light[key]) cleaned.light[key] = input.light[key];\n\t});\n\tkeys(input.dark).forEach((key) => {\n\t\tif (defaultCssVariables.dark[key] !== input.dark[key]) cleaned.dark[key] = input.dark[key];\n\t});\n\treturn cleaned;\n}\nexport { removeDefaultVariables };\n\n//# sourceMappingURL=remove-default-variables.mjs.map","\"use client\";\nimport { useMantineCssVariablesResolver, useMantineStyleNonce } from \"../Mantine.context.mjs\";\nimport { useMantineTheme } from \"../MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { convertCssVariables } from \"../convert-css-variables/convert-css-variables.mjs\";\nimport { getMergedVariables } from \"./get-merged-variables.mjs\";\nimport { removeDefaultVariables } from \"./remove-default-variables.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/MantineCssVariables.tsx\nfunction getColorSchemeCssVariables(selectorOverride) {\n\treturn convertCssVariables({\n\t\tvariables: {},\n\t\tdark: { \"--mantine-color-scheme\": \"dark\" },\n\t\tlight: { \"--mantine-color-scheme\": \"light\" }\n\t}, selectorOverride);\n}\nfunction MantineCssVariables({ cssVariablesSelector, deduplicateCssVariables }) {\n\tconst theme = useMantineTheme();\n\tconst nonce = useMantineStyleNonce();\n\tconst generator = useMantineCssVariablesResolver();\n\tconst mergedVariables = getMergedVariables({\n\t\ttheme,\n\t\tgenerator\n\t});\n\tconst shouldCleanVariables = (cssVariablesSelector === void 0 || cssVariablesSelector === \":root\" || cssVariablesSelector === \":host\") && deduplicateCssVariables;\n\tconst cleanedVariables = shouldCleanVariables ? removeDefaultVariables(mergedVariables) : mergedVariables;\n\tconst css = convertCssVariables(cleanedVariables, cssVariablesSelector);\n\tif (css) return /* @__PURE__ */ jsx(\"style\", {\n\t\t\"data-mantine-styles\": true,\n\t\tnonce: nonce?.(),\n\t\tdangerouslySetInnerHTML: { __html: `${css}${shouldCleanVariables ? \"\" : getColorSchemeCssVariables(cssVariablesSelector)}` }\n\t});\n\treturn null;\n}\nMantineCssVariables.displayName = \"@mantine/CssVariables\";\nexport { MantineCssVariables };\n\n//# sourceMappingURL=MantineCssVariables.mjs.map","\"use client\";\nimport { deepMerge } from \"../../utils/deep-merge/deep-merge.mjs\";\nimport { defaultCssVariablesResolver } from \"./default-css-variables-resolver.mjs\";\n// packages/@mantine/core/src/core/MantineProvider/MantineCssVariables/get-merged-variables.ts\nfunction getMergedVariables({ theme, generator }) {\n\tconst defaultResolver = defaultCssVariablesResolver(theme);\n\tconst providerGenerator = generator?.(theme);\n\treturn providerGenerator ? deepMerge(defaultResolver, providerGenerator) : defaultResolver;\n}\nexport { getMergedVariables };\n\n//# sourceMappingURL=get-merged-variables.mjs.map","\"use client\";\nimport { localStorageColorSchemeManager } from \"./color-scheme-managers/local-storage-manager.mjs\";\nimport { MantineContext } from \"./Mantine.context.mjs\";\nimport { useProviderColorScheme } from \"./use-mantine-color-scheme/use-provider-color-scheme.mjs\";\nimport { MantineThemeProvider } from \"./MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { MantineClasses } from \"./MantineClasses/MantineClasses.mjs\";\nimport { MantineCssVariables } from \"./MantineCssVariables/MantineCssVariables.mjs\";\nimport { useRespectReduceMotion } from \"./use-respect-reduce-motion/use-respect-reduce-motion.mjs\";\nimport \"./baseline.mjs\";\nimport \"./default-css-variables.mjs\";\nimport \"./global.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/MantineProvider/MantineProvider.tsx\nfunction MantineProvider({ theme, children, getStyleNonce, withStaticClasses = true, withGlobalClasses = true, deduplicateCssVariables = true, withCssVariables = true, cssVariablesSelector, classNamesPrefix = \"mantine\", colorSchemeManager = localStorageColorSchemeManager(), defaultColorScheme = \"light\", getRootElement = () => document.documentElement, cssVariablesResolver, forceColorScheme, stylesTransform, env, deduplicateInlineStyles = false }) {\n\tconst { colorScheme, setColorScheme, clearColorScheme } = useProviderColorScheme({\n\t\tdefaultColorScheme,\n\t\tforceColorScheme,\n\t\tmanager: colorSchemeManager,\n\t\tgetRootElement\n\t});\n\tuseRespectReduceMotion({\n\t\trespectReducedMotion: theme?.respectReducedMotion || false,\n\t\tgetRootElement\n\t});\n\treturn /* @__PURE__ */ jsx(MantineContext, {\n\t\tvalue: {\n\t\t\tcolorScheme,\n\t\t\tsetColorScheme,\n\t\t\tclearColorScheme,\n\t\t\tgetRootElement,\n\t\t\tclassNamesPrefix,\n\t\t\tgetStyleNonce,\n\t\t\tcssVariablesResolver,\n\t\t\tcssVariablesSelector: cssVariablesSelector ?? \":root\",\n\t\t\twithStaticClasses,\n\t\t\tstylesTransform,\n\t\t\tenv,\n\t\t\tdeduplicateInlineStyles\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsxs(MantineThemeProvider, {\n\t\t\ttheme,\n\t\t\tchildren: [\n\t\t\t\twithCssVariables && /* @__PURE__ */ jsx(MantineCssVariables, {\n\t\t\t\t\tcssVariablesSelector,\n\t\t\t\t\tdeduplicateCssVariables\n\t\t\t\t}),\n\t\t\t\twithGlobalClasses && /* @__PURE__ */ jsx(MantineClasses, {}),\n\t\t\t\tchildren\n\t\t\t]\n\t\t})\n\t});\n}\nMantineProvider.displayName = \"@mantine/core/MantineProvider\";\nfunction HeadlessMantineProvider({ children, theme, env }) {\n\treturn /* @__PURE__ */ jsx(MantineContext, {\n\t\tvalue: {\n\t\t\tcolorScheme: \"auto\",\n\t\t\tsetColorScheme: () => {},\n\t\t\tclearColorScheme: () => {},\n\t\t\tgetRootElement: () => document.documentElement,\n\t\t\tclassNamesPrefix: \"mantine\",\n\t\t\tcssVariablesSelector: \":root\",\n\t\t\twithStaticClasses: false,\n\t\t\theadless: true,\n\t\t\tenv\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(MantineThemeProvider, {\n\t\t\ttheme,\n\t\t\tchildren\n\t\t})\n\t});\n}\nHeadlessMantineProvider.displayName = \"@mantine/core/HeadlessMantineProvider\";\nexport { HeadlessMantineProvider, MantineProvider };\n\n//# sourceMappingURL=MantineProvider.mjs.map","\"use client\";\nimport { useIsomorphicEffect } from \"@mantine/hooks\";\n// packages/@mantine/core/src/core/MantineProvider/use-respect-reduce-motion/use-respect-reduce-motion.ts\nfunction useRespectReduceMotion({ respectReducedMotion, getRootElement }) {\n\tuseIsomorphicEffect(() => {\n\t\tif (respectReducedMotion) getRootElement()?.setAttribute(\"data-respect-reduced-motion\", \"true\");\n\t}, [respectReducedMotion]);\n}\nexport { useRespectReduceMotion };\n\n//# sourceMappingURL=use-respect-reduce-motion.mjs.map","\"use client\";\n// packages/@mantine/hooks/src/utils/random-id/random-id.ts\nfunction randomId(prefix = \"mantine-\") {\n\treturn `${prefix}${Math.random().toString(36).slice(2, 11)}`;\n}\nexport { randomId };\n\n//# sourceMappingURL=random-id.mjs.map","\"use client\";\nimport { randomId } from \"@mantine/hooks\";\nimport { createStore, useStore } from \"@mantine/store\";\n// packages/@mantine/notifications/src/notifications.store.ts\nlet notificationSequence = 0;\nfunction getDistributedNotifications(data, defaultPosition, limit) {\n\tconst queue = [];\n\tconst notifications = [];\n\tconst groups = /* @__PURE__ */ new Map();\n\tfor (const item of data) {\n\t\tconst position = item.position || defaultPosition;\n\t\tconst group = groups.get(position);\n\t\tif (group) group.push(item);\n\t\telse groups.set(position, [item]);\n\t}\n\tfor (const group of groups.values()) {\n\t\tgroup.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0) || (a.__sequence ?? 0) - (b.__sequence ?? 0));\n\t\tgroup.forEach((item, index) => {\n\t\t\tif (index < limit) notifications.push(item);\n\t\t\telse queue.push(item);\n\t\t});\n\t}\n\treturn {\n\t\tnotifications,\n\t\tqueue\n\t};\n}\nconst createNotificationsStore = () => createStore({\n\tnotifications: [],\n\tqueue: [],\n\tdefaultPosition: \"bottom-right\",\n\tlimit: 5\n});\nconst notificationsStore = createNotificationsStore();\nconst useNotifications = (store = notificationsStore) => useStore(store);\nfunction updateNotificationsState(store, update) {\n\tconst state = store.getState();\n\tconst notifications = update([...state.notifications, ...state.queue]);\n\tfor (const item of notifications) if (item.__sequence === void 0) {\n\t\titem.__sequence = notificationSequence;\n\t\tnotificationSequence += 1;\n\t}\n\tconst updated = getDistributedNotifications(notifications, state.defaultPosition, state.limit);\n\tstore.setState({\n\t\tnotifications: updated.notifications,\n\t\tqueue: updated.queue,\n\t\tlimit: state.limit,\n\t\tdefaultPosition: state.defaultPosition\n\t});\n}\nfunction showNotification(notification, store = notificationsStore) {\n\tconst id = notification.id || randomId();\n\tupdateNotificationsState(store, (notifications) => {\n\t\tif (notification.id && notifications.some((n) => n.id === notification.id)) return notifications;\n\t\treturn [...notifications, {\n\t\t\t...notification,\n\t\t\tid\n\t\t}];\n\t});\n\treturn id;\n}\nfunction hideNotification(id, store = notificationsStore) {\n\tupdateNotificationsState(store, (notifications) => notifications.filter((notification) => {\n\t\tif (notification.id === id) {\n\t\t\tnotification.onClose?.(notification);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}));\n\treturn id;\n}\nfunction updateNotification(notification, store = notificationsStore) {\n\tupdateNotificationsState(store, (notifications) => notifications.map((item) => {\n\t\tif (item.id === notification.id) return {\n\t\t\t...item,\n\t\t\t...notification\n\t\t};\n\t\treturn item;\n\t}));\n\treturn notification.id;\n}\nfunction resolvePromiseNotificationData(data, value) {\n\treturn typeof data === \"function\" ? data(value) : data;\n}\nfunction upsertNotification(notification, store) {\n\tconst state = store.getState();\n\treturn [...state.notifications, ...state.queue].some((item) => item.id === notification.id) ? updateNotification(notification, store) : showNotification(notification, store);\n}\nconst pendingPromises = /* @__PURE__ */ new WeakMap();\nfunction promiseNotification(promise, options, store = notificationsStore) {\n\tconst id = options.id || randomId();\n\tconst owners = pendingPromises.get(store) || /* @__PURE__ */ new Map();\n\tconst owner = {};\n\tpendingPromises.set(store, owners);\n\towners.set(id, owner);\n\tupsertNotification({\n\t\tloading: true,\n\t\tautoClose: false,\n\t\t...options.loading,\n\t\tid\n\t}, store);\n\tconst settle = (data) => {\n\t\tif (owners.get(id) !== owner) return;\n\t\towners.delete(id);\n\t\tupsertNotification({\n\t\t\t...options.loading,\n\t\t\tloading: false,\n\t\t\tautoClose: void 0,\n\t\t\t...data,\n\t\t\tid\n\t\t}, store);\n\t};\n\tpromise.then((value) => settle({\n\t\tcolor: \"teal\",\n\t\t...resolvePromiseNotificationData(options.success, value)\n\t}), (error) => settle({\n\t\tcolor: \"red\",\n\t\t...resolvePromiseNotificationData(options.error, error)\n\t}));\n\treturn promise;\n}\nfunction cleanNotifications(store = notificationsStore) {\n\tupdateNotificationsState(store, () => []);\n}\nfunction cleanNotificationsQueue(store = notificationsStore) {\n\tconst { defaultPosition, limit } = store.getState();\n\tupdateNotificationsState(store, (notifications) => getDistributedNotifications(notifications, defaultPosition, limit).notifications);\n}\nconst notifications = {\n\tshow: showNotification,\n\thide: hideNotification,\n\tupdate: updateNotification,\n\tpromise: promiseNotification,\n\tclean: cleanNotifications,\n\tcleanQueue: cleanNotificationsQueue,\n\tupdateState: updateNotificationsState\n};\nexport { cleanNotifications, cleanNotificationsQueue, createNotificationsStore, hideNotification, notifications, notificationsStore, promiseNotification, showNotification, updateNotification, updateNotificationsState, useNotifications };\n\n//# sourceMappingURL=notifications.store.mjs.map","\"use client\";\nimport { useSyncExternalStore } from \"react\";\n// packages/@mantine/store/src/store.ts\nfunction createStore(initialState) {\n\tlet state = initialState;\n\tlet initialized = false;\n\tconst listeners = /* @__PURE__ */ new Set();\n\treturn {\n\t\tgetState() {\n\t\t\treturn state;\n\t\t},\n\t\tupdateState(value) {\n\t\t\tstate = typeof value === \"function\" ? value(state) : value;\n\t\t},\n\t\tsetState(value) {\n\t\t\tthis.updateState(value);\n\t\t\tlisteners.forEach((listener) => listener(state));\n\t\t},\n\t\tinitialize(value) {\n\t\t\tif (!initialized) {\n\t\t\t\tstate = value;\n\t\t\t\tinitialized = true;\n\t\t\t}\n\t\t},\n\t\tsubscribe(callback) {\n\t\t\tlisteners.add(callback);\n\t\t\treturn () => listeners.delete(callback);\n\t\t}\n\t};\n}\nfunction useStore(store) {\n\treturn useSyncExternalStore(store.subscribe, () => store.getState(), () => store.getState());\n}\nexport { createStore, useStore };\n\n//# sourceMappingURL=store.mjs.map","\"use client\";\n// packages/@mantine/notifications/src/get-grouped-notifications/get-grouped-notifications.ts\nconst positions = [\n\t\"bottom-center\",\n\t\"bottom-left\",\n\t\"bottom-right\",\n\t\"top-center\",\n\t\"top-left\",\n\t\"top-right\"\n];\nfunction getGroupedNotifications(notifications, defaultPosition) {\n\treturn notifications.reduce((acc, notification) => {\n\t\tacc[notification.position || defaultPosition].push(notification);\n\t\treturn acc;\n\t}, positions.reduce((acc, item) => {\n\t\tacc[item] = [];\n\t\treturn acc;\n\t}, {}));\n}\nexport { getGroupedNotifications, positions };\n\n//# sourceMappingURL=get-grouped-notifications.mjs.map","\"use client\";\n// packages/@mantine/notifications/src/get-notification-state-styles.ts\nconst transforms = {\n\tleft: \"translateX(-100%)\",\n\tright: \"translateX(100%)\",\n\t\"top-center\": \"translateY(-100%)\",\n\t\"bottom-center\": \"translateY(100%)\"\n};\nconst noTransform = {\n\tleft: \"translateX(0)\",\n\tright: \"translateX(0)\",\n\t\"top-center\": \"translateY(0)\",\n\t\"bottom-center\": \"translateY(0)\"\n};\nfunction getNotificationStateStyles({ state, maxHeight, position, transitionDuration }) {\n\tconst [vertical, horizontal] = position.split(\"-\");\n\tconst property = horizontal === \"center\" ? `${vertical}-center` : horizontal;\n\tconst commonStyles = {\n\t\topacity: 0,\n\t\tmaxHeight,\n\t\ttransform: transforms[property],\n\t\ttransitionDuration: `${transitionDuration}ms, ${transitionDuration}ms, ${transitionDuration}ms`,\n\t\ttransitionTimingFunction: \"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear\",\n\t\ttransitionProperty: \"opacity, transform, max-height\"\n\t};\n\tconst inState = {\n\t\topacity: 1,\n\t\ttransform: noTransform[property]\n\t};\n\tconst outState = {\n\t\topacity: 0,\n\t\tmaxHeight: 0,\n\t\ttransform: transforms[property]\n\t};\n\tconst transitionStyles = {\n\t\tentering: inState,\n\t\tentered: inState,\n\t\texiting: outState,\n\t\texited: outState\n\t};\n\treturn {\n\t\t...commonStyles,\n\t\t...transitionStyles[state]\n\t};\n}\nexport { getNotificationStateStyles };\n\n//# sourceMappingURL=get-notification-state-styles.mjs.map","\"use client\";\nimport { useCallback, useRef, useState } from \"react\";\n// packages/@mantine/hooks/src/use-drag/use-drag.ts\nconst VELOCITY_DECAY_MS = 100;\nfunction sign(n) {\n\tif (n > 0) return 1;\n\tif (n < 0) return -1;\n\treturn 0;\n}\nfunction getThresholdVector(threshold) {\n\tconst t = threshold ?? 0;\n\tif (typeof t === \"number\") return [t, t];\n\treturn t;\n}\nfunction createInitialState() {\n\treturn {\n\t\tisActive: false,\n\t\tpointerId: -1,\n\t\tstartXY: [0, 0],\n\t\tprevXY: [0, 0],\n\t\tstartTimestamp: 0,\n\t\tprevTimestamp: 0,\n\t\tthresholdMet: false,\n\t\tfirstFired: false,\n\t\tlockedAxis: null,\n\t\tcanceled: false,\n\t\tlastVelocity: [0, 0]\n\t};\n}\nfunction useDrag(handler, options = {}) {\n\tconst [active, setActive] = useState(false);\n\tconst handlerRef = useRef(handler);\n\thandlerRef.current = handler;\n\tconst optionsRef = useRef(options);\n\toptionsRef.current = options;\n\tconst stateRef = useRef(createInitialState());\n\tconst documentControllerRef = useRef(null);\n\treturn {\n\t\tref: useCallback((node) => {\n\t\t\tif (!node) return;\n\t\t\tconst elementController = new AbortController();\n\t\t\tconst applyAxisConstraint = (v) => {\n\t\t\t\tconst opts = optionsRef.current;\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\tif (opts.axis === \"x\") return [v[0], 0];\n\t\t\t\tif (opts.axis === \"y\") return [0, v[1]];\n\t\t\t\tif (opts.axis === \"lock\") {\n\t\t\t\t\tif (s.lockedAxis === null) {\n\t\t\t\t\t\tconst t = opts.axisThreshold ?? 1;\n\t\t\t\t\t\tif (Math.abs(v[0]) > t || Math.abs(v[1]) > t) s.lockedAxis = Math.abs(v[0]) >= Math.abs(v[1]) ? \"x\" : \"y\";\n\t\t\t\t\t}\n\t\t\t\t\tif (s.lockedAxis === \"x\") return [v[0], 0];\n\t\t\t\t\tif (s.lockedAxis === \"y\") return [0, v[1]];\n\t\t\t\t}\n\t\t\t\treturn v;\n\t\t\t};\n\t\t\tconst resetDrag = () => {\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\ts.isActive = false;\n\t\t\t\ts.pointerId = -1;\n\t\t\t\ts.thresholdMet = false;\n\t\t\t\ts.firstFired = false;\n\t\t\t\ts.lockedAxis = null;\n\t\t\t\ts.canceled = false;\n\t\t\t\tsetActive(false);\n\t\t\t\tdocument.body.style.userSelect = \"\";\n\t\t\t\tdocument.body.style.webkitUserSelect = \"\";\n\t\t\t\tdocumentControllerRef.current?.abort();\n\t\t\t\tdocumentControllerRef.current = null;\n\t\t\t};\n\t\t\tconst cancel = () => {\n\t\t\t\tif (stateRef.current.isActive) {\n\t\t\t\t\tstateRef.current.canceled = true;\n\t\t\t\t\tresetDrag();\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst activateDrag = () => {\n\t\t\t\tsetActive(true);\n\t\t\t\tdocument.body.style.userSelect = \"none\";\n\t\t\t\tdocument.body.style.webkitUserSelect = \"none\";\n\t\t\t};\n\t\t\tconst onPointerDown = (event) => {\n\t\t\t\tif (optionsRef.current.enabled === false) return;\n\t\t\t\tif (event.button !== 0) return;\n\t\t\t\tif (stateRef.current.isActive) return;\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\ts.isActive = true;\n\t\t\t\ts.pointerId = event.pointerId;\n\t\t\t\ts.startXY = [event.clientX, event.clientY];\n\t\t\t\ts.prevXY = [event.clientX, event.clientY];\n\t\t\t\ts.startTimestamp = event.timeStamp;\n\t\t\t\ts.prevTimestamp = event.timeStamp;\n\t\t\t\ts.thresholdMet = false;\n\t\t\t\ts.firstFired = false;\n\t\t\t\ts.lockedAxis = null;\n\t\t\t\ts.canceled = false;\n\t\t\t\ts.lastVelocity = [0, 0];\n\t\t\t\tconst [tx, ty] = getThresholdVector(optionsRef.current.threshold);\n\t\t\t\tif (tx === 0 && ty === 0) {\n\t\t\t\t\ts.thresholdMet = true;\n\t\t\t\t\ts.firstFired = true;\n\t\t\t\t\tactivateDrag();\n\t\t\t\t\thandlerRef.current({\n\t\t\t\t\t\txy: [event.clientX, event.clientY],\n\t\t\t\t\t\tinitial: [event.clientX, event.clientY],\n\t\t\t\t\t\tmovement: [0, 0],\n\t\t\t\t\t\tdelta: [0, 0],\n\t\t\t\t\t\tdistance: [0, 0],\n\t\t\t\t\t\tdirection: [0, 0],\n\t\t\t\t\t\tvelocity: [0, 0],\n\t\t\t\t\t\telapsedTime: 0,\n\t\t\t\t\t\tfirst: true,\n\t\t\t\t\t\tlast: false,\n\t\t\t\t\t\tactive: true,\n\t\t\t\t\t\ttap: false,\n\t\t\t\t\t\tcanceled: false,\n\t\t\t\t\t\tcancel,\n\t\t\t\t\t\tevent\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tdocumentControllerRef.current?.abort();\n\t\t\t\tdocumentControllerRef.current = new AbortController();\n\t\t\t\tconst sig = documentControllerRef.current.signal;\n\t\t\t\tdocument.addEventListener(\"pointermove\", onPointerMove, { signal: sig });\n\t\t\t\tdocument.addEventListener(\"pointerup\", onPointerUp, { signal: sig });\n\t\t\t\tdocument.addEventListener(\"pointercancel\", onPointerCancel, { signal: sig });\n\t\t\t};\n\t\t\tconst onPointerMove = (event) => {\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\tif (!s.isActive || event.pointerId !== s.pointerId) return;\n\t\t\t\tconst rawMovement = [event.clientX - s.startXY[0], event.clientY - s.startXY[1]];\n\t\t\t\tif (!s.thresholdMet) {\n\t\t\t\t\tconst [tx, ty] = getThresholdVector(optionsRef.current.threshold);\n\t\t\t\t\tif (Math.abs(rawMovement[0]) < tx && Math.abs(rawMovement[1]) < ty) {\n\t\t\t\t\t\ts.prevXY = [event.clientX, event.clientY];\n\t\t\t\t\t\ts.prevTimestamp = event.timeStamp;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ts.thresholdMet = true;\n\t\t\t\t\tactivateDrag();\n\t\t\t\t}\n\t\t\t\tconst movement = applyAxisConstraint(rawMovement);\n\t\t\t\tconst rawDelta = [event.clientX - s.prevXY[0], event.clientY - s.prevXY[1]];\n\t\t\t\tconst delta = applyAxisConstraint(rawDelta);\n\t\t\t\tconst timeDelta = event.timeStamp - s.prevTimestamp;\n\t\t\t\tconst velocity = timeDelta > 0 ? [Math.abs(delta[0]) / timeDelta, Math.abs(delta[1]) / timeDelta] : s.lastVelocity;\n\t\t\t\ts.lastVelocity = velocity;\n\t\t\t\tconst isFirst = !s.firstFired;\n\t\t\t\ts.firstFired = true;\n\t\t\t\ts.prevXY = [event.clientX, event.clientY];\n\t\t\t\ts.prevTimestamp = event.timeStamp;\n\t\t\t\thandlerRef.current({\n\t\t\t\t\txy: [event.clientX, event.clientY],\n\t\t\t\t\tinitial: [...s.startXY],\n\t\t\t\t\tmovement,\n\t\t\t\t\tdelta,\n\t\t\t\t\tdistance: [Math.abs(movement[0]), Math.abs(movement[1])],\n\t\t\t\t\tdirection: [sign(delta[0]), sign(delta[1])],\n\t\t\t\t\tvelocity,\n\t\t\t\t\telapsedTime: event.timeStamp - s.startTimestamp,\n\t\t\t\t\tfirst: isFirst,\n\t\t\t\t\tlast: false,\n\t\t\t\t\tactive: true,\n\t\t\t\t\ttap: false,\n\t\t\t\t\tcanceled: false,\n\t\t\t\t\tcancel,\n\t\t\t\t\tevent\n\t\t\t\t});\n\t\t\t};\n\t\t\tconst onPointerUp = (event) => {\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\tif (!s.isActive || event.pointerId !== s.pointerId) return;\n\t\t\t\tconst opts = optionsRef.current;\n\t\t\t\tif (!s.thresholdMet) {\n\t\t\t\t\tif (opts.filterTaps) {\n\t\t\t\t\t\tconst rawMov = [event.clientX - s.startXY[0], event.clientY - s.startXY[1]];\n\t\t\t\t\t\tconst mov = applyAxisConstraint(rawMov);\n\t\t\t\t\t\tconst dist = [Math.abs(mov[0]), Math.abs(mov[1])];\n\t\t\t\t\t\tconst isTap = Math.max(dist[0], dist[1]) < (opts.tapThreshold ?? 3);\n\t\t\t\t\t\thandlerRef.current({\n\t\t\t\t\t\t\txy: [event.clientX, event.clientY],\n\t\t\t\t\t\t\tinitial: [...s.startXY],\n\t\t\t\t\t\t\tmovement: mov,\n\t\t\t\t\t\t\tdelta: mov,\n\t\t\t\t\t\t\tdistance: dist,\n\t\t\t\t\t\t\tdirection: [sign(mov[0]), sign(mov[1])],\n\t\t\t\t\t\t\tvelocity: [0, 0],\n\t\t\t\t\t\t\telapsedTime: event.timeStamp - s.startTimestamp,\n\t\t\t\t\t\t\tfirst: true,\n\t\t\t\t\t\t\tlast: true,\n\t\t\t\t\t\t\tactive: false,\n\t\t\t\t\t\t\ttap: isTap,\n\t\t\t\t\t\t\tcanceled: false,\n\t\t\t\t\t\t\tcancel,\n\t\t\t\t\t\t\tevent\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresetDrag();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst rawMovement = [event.clientX - s.startXY[0], event.clientY - s.startXY[1]];\n\t\t\t\tconst movement = applyAxisConstraint(rawMovement);\n\t\t\t\tconst distance = [Math.abs(movement[0]), Math.abs(movement[1])];\n\t\t\t\tconst rawDelta = [event.clientX - s.prevXY[0], event.clientY - s.prevXY[1]];\n\t\t\t\tconst delta = applyAxisConstraint(rawDelta);\n\t\t\t\tconst velocity = event.timeStamp - s.prevTimestamp > VELOCITY_DECAY_MS ? [0, 0] : s.lastVelocity;\n\t\t\t\tconst maxDistance = Math.max(distance[0], distance[1]);\n\t\t\t\tconst tap = opts.filterTaps === true && maxDistance < (opts.tapThreshold ?? 3);\n\t\t\t\thandlerRef.current({\n\t\t\t\t\txy: [event.clientX, event.clientY],\n\t\t\t\t\tinitial: [...s.startXY],\n\t\t\t\t\tmovement,\n\t\t\t\t\tdelta,\n\t\t\t\t\tdistance,\n\t\t\t\t\tdirection: [sign(delta[0]), sign(delta[1])],\n\t\t\t\t\tvelocity,\n\t\t\t\t\telapsedTime: event.timeStamp - s.startTimestamp,\n\t\t\t\t\tfirst: !s.firstFired,\n\t\t\t\t\tlast: true,\n\t\t\t\t\tactive: false,\n\t\t\t\t\ttap,\n\t\t\t\t\tcanceled: false,\n\t\t\t\t\tcancel,\n\t\t\t\t\tevent\n\t\t\t\t});\n\t\t\t\tresetDrag();\n\t\t\t};\n\t\t\tconst onPointerCancel = (event) => {\n\t\t\t\tconst s = stateRef.current;\n\t\t\t\tif (!s.isActive || event.pointerId !== s.pointerId) return;\n\t\t\t\tconst rawMovement = [event.clientX - s.startXY[0], event.clientY - s.startXY[1]];\n\t\t\t\tconst movement = applyAxisConstraint(rawMovement);\n\t\t\t\thandlerRef.current({\n\t\t\t\t\txy: [event.clientX, event.clientY],\n\t\t\t\t\tinitial: [...s.startXY],\n\t\t\t\t\tmovement,\n\t\t\t\t\tdelta: [0, 0],\n\t\t\t\t\tdistance: [Math.abs(movement[0]), Math.abs(movement[1])],\n\t\t\t\t\tdirection: [0, 0],\n\t\t\t\t\tvelocity: [0, 0],\n\t\t\t\t\telapsedTime: event.timeStamp - s.startTimestamp,\n\t\t\t\t\tfirst: !s.firstFired,\n\t\t\t\t\tlast: true,\n\t\t\t\t\tactive: false,\n\t\t\t\t\ttap: false,\n\t\t\t\t\tcanceled: true,\n\t\t\t\t\tcancel,\n\t\t\t\t\tevent\n\t\t\t\t});\n\t\t\t\tresetDrag();\n\t\t\t};\n\t\t\tnode.addEventListener(\"pointerdown\", onPointerDown, { signal: elementController.signal });\n\t\t\treturn () => {\n\t\t\t\telementController.abort();\n\t\t\t\tdocumentControllerRef.current?.abort();\n\t\t\t\tdocumentControllerRef.current = null;\n\t\t\t\tif (stateRef.current.isActive) {\n\t\t\t\t\tstateRef.current.isActive = false;\n\t\t\t\t\tsetActive(false);\n\t\t\t\t\tdocument.body.style.userSelect = \"\";\n\t\t\t\t\tdocument.body.style.webkitUserSelect = \"\";\n\t\t\t\t}\n\t\t\t};\n\t\t}, []),\n\t\tactive\n\t};\n}\nexport { useDrag };\n\n//# sourceMappingURL=use-drag.mjs.map","\"use client\";\nimport { useCallback } from \"react\";\n// packages/@mantine/hooks/src/use-merged-ref/use-merged-ref.ts\nfunction assignRef(ref, value) {\n\tif (typeof ref === \"function\") return ref(value);\n\telse if (typeof ref === \"object\" && ref !== null && \"current\" in ref) ref.current = value;\n}\nfunction mergeRefs(...refs) {\n\tconst cleanupMap = /* @__PURE__ */ new Map();\n\treturn (node) => {\n\t\trefs.forEach((ref) => {\n\t\t\tconst cleanup = assignRef(ref, node);\n\t\t\tif (cleanup) cleanupMap.set(ref, cleanup);\n\t\t});\n\t\tif (cleanupMap.size > 0) return () => {\n\t\t\trefs.forEach((ref) => {\n\t\t\t\tconst cleanup = cleanupMap.get(ref);\n\t\t\t\tif (cleanup && typeof cleanup === \"function\") cleanup();\n\t\t\t\telse assignRef(ref, null);\n\t\t\t});\n\t\t\tcleanupMap.clear();\n\t\t};\n\t};\n}\nfunction useMergedRef(...refs) {\n\treturn useCallback(mergeRefs(...refs), refs);\n}\nexport { assignRef, mergeRefs, useMergedRef };\n\n//# sourceMappingURL=use-merged-ref.mjs.map","\"use client\";\nimport { useEffect, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-did-update/use-did-update.ts\nfunction dependenciesChanged(previous, next) {\n\treturn previous.length !== next.length || next.some((dep, index) => !Object.is(dep, previous[index]));\n}\nfunction useDidUpdate(fn, dependencies) {\n\tconst mounted = useRef(false);\n\tconst previousRender = useRef(null);\n\tconst previousDependencies = useRef(void 0);\n\tconst render = {};\n\tuseEffect(() => {\n\t\tconst isSameRender = previousRender.current === render;\n\t\tconst previous = previousDependencies.current;\n\t\tpreviousRender.current = render;\n\t\tpreviousDependencies.current = dependencies;\n\t\tif (!mounted.current) {\n\t\t\tmounted.current = true;\n\t\t\treturn;\n\t\t}\n\t\tif (isSameRender) return;\n\t\tif (dependencies && previous && !dependenciesChanged(previous, dependencies)) return;\n\t\treturn fn();\n\t}, dependencies);\n}\nexport { useDidUpdate };\n\n//# sourceMappingURL=use-did-update.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/Box/get-style-object/get-style-object.ts\nfunction getStyleObject(style, theme) {\n\tif (Array.isArray(style)) return [...style].reduce((acc, item) => ({\n\t\t...acc,\n\t\t...getStyleObject(item, theme)\n\t}), {});\n\tif (typeof style === \"function\") return style(theme);\n\tif (style == null) return {};\n\treturn style;\n}\nexport { getStyleObject };\n\n//# sourceMappingURL=get-style-object.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/UnstyledButton/UnstyledButton.module.css\nvar UnstyledButton_module_default = { \"root\": \"m_87cf2631\" };\nexport { UnstyledButton_module_default as default };\n\n//# sourceMappingURL=UnstyledButton.module.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport UnstyledButton_module_default from \"./UnstyledButton.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/UnstyledButton/UnstyledButton.tsx\nconst defaultProps = { __staticSelector: \"UnstyledButton\" };\nconst UnstyledButton = polymorphicFactory((_props) => {\n\tconst props = useProps(\"UnstyledButton\", defaultProps, _props);\n\tconst { className, component = \"button\", __staticSelector, unstyled, classNames, styles, style, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector,\n\t\tprops,\n\t\tclasses: UnstyledButton_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\", { focusable: true }),\n\t\tcomponent,\n\t\ttype: component === \"button\" ? \"button\" : void 0,\n\t\t...others\n\t});\n});\nUnstyledButton.classes = UnstyledButton_module_default;\nUnstyledButton.displayName = \"@mantine/core/UnstyledButton\";\nexport { UnstyledButton };\n\n//# sourceMappingURL=UnstyledButton.mjs.map","\"use client\";\nimport \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/CloseButton/CloseIcon.tsx\nfunction CloseIcon({ size = \"var(--cb-icon-size, 70%)\", style, ...others }) {\n\treturn /* @__PURE__ */ jsx(\"svg\", {\n\t\tviewBox: \"0 0 15 15\",\n\t\tfill: \"none\",\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tstyle: {\n\t\t\t...style,\n\t\t\twidth: size,\n\t\t\theight: size\n\t\t},\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"path\", {\n\t\t\td: \"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tfillRule: \"evenodd\",\n\t\t\tclipRule: \"evenodd\"\n\t\t})\n\t});\n}\nCloseIcon.displayName = \"@mantine/core/CloseIcon\";\nexport { CloseIcon };\n\n//# sourceMappingURL=CloseIcon.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/CloseButton/CloseButton.module.css\nvar CloseButton_module_default = {\n\t\"root\": \"m_86a44da5\",\n\t\"root--subtle\": \"m_220c80f2\"\n};\nexport { CloseButton_module_default as default };\n\n//# sourceMappingURL=CloseButton.module.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { UnstyledButton } from \"../UnstyledButton/UnstyledButton.mjs\";\nimport { CloseIcon } from \"./CloseIcon.mjs\";\nimport CloseButton_module_default from \"./CloseButton.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/CloseButton/CloseButton.tsx\nconst defaultProps = { variant: \"subtle\" };\nconst varsResolver = createVarsResolver((_, { size, radius, iconSize }) => ({ root: {\n\t\"--cb-size\": getSize(size, \"cb-size\"),\n\t\"--cb-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--cb-icon-size\": rem(iconSize)\n} }));\nconst CloseButton = polymorphicFactory((_props) => {\n\tconst props = useProps(\"CloseButton\", defaultProps, _props);\n\tconst { iconSize, children, vars, radius, className, classNames, style, styles, unstyled, \"data-disabled\": dataDisabled, disabled, variant, icon, mod, attributes, __staticSelector, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector || \"CloseButton\",\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclasses: CloseButton_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\t...others,\n\t\tunstyled,\n\t\tvariant,\n\t\tdisabled,\n\t\tmod: [{ disabled: disabled || dataDisabled }, mod],\n\t\t...getStyles(\"root\", {\n\t\t\tvariant,\n\t\t\tactive: !disabled && !dataDisabled\n\t\t}),\n\t\tchildren: [icon || /* @__PURE__ */ jsx(CloseIcon, {}), children]\n\t});\n});\nCloseButton.classes = CloseButton_module_default;\nCloseButton.varsResolver = varsResolver;\nCloseButton.displayName = \"@mantine/core/CloseButton\";\nexport { CloseButton };\n\n//# sourceMappingURL=CloseButton.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Notification/Notification.module.css\nvar Notification_module_default = {\n\t\"root\": \"m_a513464\",\n\t\"icon\": \"m_a4ceffb\",\n\t\"loader\": \"m_b0920b15\",\n\t\"body\": \"m_a49ed24\",\n\t\"title\": \"m_3feedf16\",\n\t\"description\": \"m_3d733a3a\",\n\t\"closeButton\": \"m_919a4d88\"\n};\nexport { Notification_module_default as default };\n\n//# sourceMappingURL=Notification.module.mjs.map","\"use client\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { Loader } from \"../Loader/Loader.mjs\";\nimport { CloseButton } from \"../CloseButton/CloseButton.mjs\";\nimport Notification_module_default from \"./Notification.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Notification/Notification.tsx\nconst defaultProps = { withCloseButton: true };\nconst varsResolver = createVarsResolver((theme, { radius, color }) => ({ root: {\n\t\"--notification-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--notification-color\": color ? getThemeColor(color, theme) : void 0\n} }));\nconst Notification = factory((_props) => {\n\tconst props = useProps(\"Notification\", defaultProps, _props);\n\tconst { className, color, radius, loading, withCloseButton, withBorder, title, icon, children, onClose, closeButtonProps, classNames, style, styles, unstyled, vars, mod, loaderProps, role, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Notification\",\n\t\tclasses: Notification_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsxs(Box, {\n\t\t...getStyles(\"root\"),\n\t\tmod: [{\n\t\t\twithIcon: !!icon || loading,\n\t\t\twithBorder\n\t\t}, mod],\n\t\trole: role || \"alert\",\n\t\t...others,\n\t\tchildren: [\n\t\t\ticon && !loading && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...getStyles(\"icon\"),\n\t\t\t\tchildren: icon\n\t\t\t}),\n\t\t\tloading && /* @__PURE__ */ jsx(Loader, {\n\t\t\t\tsize: 28,\n\t\t\t\tcolor,\n\t\t\t\t...getStyles(\"loader\"),\n\t\t\t\t...loaderProps\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsxs(\"div\", {\n\t\t\t\t...getStyles(\"body\"),\n\t\t\t\tchildren: [title && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t...getStyles(\"title\"),\n\t\t\t\t\tchildren: title\n\t\t\t\t}), /* @__PURE__ */ jsx(Box, {\n\t\t\t\t\t...getStyles(\"description\"),\n\t\t\t\t\tmod: { withTitle: !!title },\n\t\t\t\t\tchildren\n\t\t\t\t})]\n\t\t\t}),\n\t\t\twithCloseButton && /* @__PURE__ */ jsx(CloseButton, {\n\t\t\t\ticonSize: 16,\n\t\t\t\tcolor: \"gray\",\n\t\t\t\t...closeButtonProps,\n\t\t\t\tunstyled,\n\t\t\t\tonClick: (event) => {\n\t\t\t\t\tcloseButtonProps?.onClick?.(event);\n\t\t\t\t\tonClose?.();\n\t\t\t\t},\n\t\t\t\t...getStyles(\"closeButton\")\n\t\t\t})\n\t\t]\n\t});\n});\nNotification.classes = Notification_module_default;\nNotification.varsResolver = varsResolver;\nNotification.displayName = \"@mantine/core/Notification\";\nexport { Notification };\n\n//# sourceMappingURL=Notification.mjs.map","\"use client\";\nimport { getAutoClose } from \"./get-auto-close/get-auto-close.mjs\";\nimport { useDidUpdate, useDrag, useMergedRef } from \"@mantine/hooks\";\nimport { useEffect, useEffectEvent, useRef, useState } from \"react\";\nimport { Notification, extractStyleProps, getStyleObject, useMantineTheme } from \"@mantine/core\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/notifications/src/NotificationContainer.tsx\nconst SCROLL_DISMISS_RESET_TIMEOUT = 120;\nconst MAX_VISIBLE_STACK_DEPTH = 4;\n/**\n* Props that belong to the default `Notification` rendering or to the Styles API and must\n* not reach the plain `div` used for custom rendering. Everything else is a valid div prop\n* and is forwarded – an allow list would silently drop supported props like `onClick`,\n* `dir`, `lang` or `hidden`.\n*/\nconst NON_DOM_PROPS = /* @__PURE__ */ new Set([\n\t\"classNames\",\n\t\"styles\",\n\t\"unstyled\",\n\t\"vars\",\n\t\"attributes\",\n\t\"variant\",\n\t\"color\",\n\t\"radius\",\n\t\"icon\",\n\t\"title\",\n\t\"loading\",\n\t\"withBorder\",\n\t\"withCloseButton\",\n\t\"closeButtonProps\",\n\t\"className\",\n\t\"style\",\n\t\"role\",\n\t\"ref\",\n\t\"children\",\n\t\"mod\"\n]);\nfunction pickDomProps(props) {\n\tconst { rest } = extractStyleProps(props);\n\treturn Object.fromEntries(Object.entries(rest).filter(([key, value]) => !NON_DOM_PROPS.has(key) && value !== void 0));\n}\nfunction NotificationContainer({ data, onHide, autoClose, transitionDuration, allowDragDismiss, allowScrollDismiss, paused, withAutoCloseProgress, autoCloseProgressPosition, progressProps, onHoverStart, onHoverEnd, onExpandRequest, ref, style, renderNotification, layout, stackIndex, stackSize, stackPosition, stackExpanded, stackExpandedOffset, transitionState, ...others }) {\n\tconst [offset, setOffset] = useState(0);\n\tconst [dismissed, setDismissed] = useState(false);\n\tconst [dismissDirection, setDismissDirection] = useState(1);\n\tconst [scrollDismissActive, setScrollDismissActive] = useState(false);\n\tconst theme = useMantineTheme();\n\tconst { autoClose: _autoClose, message, allowClose, position: _position, style: dataStyle, withCloseButton, renderNotification: _renderNotification, onOpen: _onOpen, priority: _priority, withAutoCloseProgress: _withAutoCloseProgress, autoCloseProgressPosition: _autoCloseProgressPosition, __sequence: _sequence, ...notificationProps } = data;\n\tconst autoCloseDuration = getAutoClose(autoClose, data.autoClose);\n\tconst [autoCloseProgress, setAutoCloseProgress] = useState({\n\t\trunning: false,\n\t\tcycle: 0\n\t});\n\tconst hasAutoCloseProgress = (data.withAutoCloseProgress ?? withAutoCloseProgress) && typeof autoCloseDuration === \"number\";\n\tconst autoCloseTimeout = useRef(-1);\n\tconst hideTimeout = useRef(-1);\n\tconst scrollDismissTimeout = useRef(-1);\n\tconst notificationRef = useRef(null);\n\tconst hoveredRef = useRef(false);\n\tconst focusedRef = useRef(false);\n\tconst contributedActiveRef = useRef(false);\n\tconst offsetRef = useRef(0);\n\tconst isCloseDisabled = allowClose === false;\n\tconst syncActive = () => {\n\t\tconst shouldContribute = hoveredRef.current || focusedRef.current;\n\t\tif (shouldContribute && !contributedActiveRef.current) {\n\t\t\tcontributedActiveRef.current = true;\n\t\t\tonHoverStart?.();\n\t\t} else if (!shouldContribute && contributedActiveRef.current) {\n\t\t\tcontributedActiveRef.current = false;\n\t\t\tonHoverEnd?.();\n\t\t}\n\t};\n\tconst releaseActive = useEffectEvent(() => {\n\t\tif (contributedActiveRef.current) {\n\t\t\tcontributedActiveRef.current = false;\n\t\t\tonHoverEnd?.();\n\t\t}\n\t});\n\tuseEffect(() => () => releaseActive(), []);\n\tconst cancelAutoClose = () => {\n\t\twindow.clearTimeout(autoCloseTimeout.current);\n\t\tsetAutoCloseProgress((current) => current.running ? {\n\t\t\t...current,\n\t\t\trunning: false\n\t\t} : current);\n\t};\n\tconst cancelHide = () => window.clearTimeout(hideTimeout.current);\n\tconst cancelScrollDismissReset = () => window.clearTimeout(scrollDismissTimeout.current);\n\tconst setSwipeOffset = (value) => {\n\t\toffsetRef.current = value;\n\t\tsetOffset(value);\n\t};\n\tconst handleHide = () => {\n\t\tonHide(data.id);\n\t\tcancelAutoClose();\n\t\tcancelHide();\n\t\tcancelScrollDismissReset();\n\t};\n\tconst pausedRef = useRef(paused);\n\tuseEffect(() => {\n\t\tpausedRef.current = paused;\n\t});\n\tconst handleAutoClose = () => {\n\t\tif (dismissed || active || hoveredRef.current || focusedRef.current || pausedRef.current || typeof autoCloseDuration !== \"number\") return;\n\t\tcancelAutoClose();\n\t\tautoCloseTimeout.current = window.setTimeout(handleHide, autoCloseDuration);\n\t\tsetAutoCloseProgress((current) => ({\n\t\t\trunning: true,\n\t\t\tcycle: current.cycle + 1\n\t\t}));\n\t};\n\tconst getExitOffset = (direction) => {\n\t\treturn direction * ((notificationRef.current?.offsetWidth ?? 440) + 40);\n\t};\n\tconst shouldDismiss = (movement, velocity) => {\n\t\tconst width = notificationRef.current?.offsetWidth ?? 440;\n\t\treturn Math.abs(movement) > width * .35 || velocity > .5;\n\t};\n\tconst resetSwipe = () => {\n\t\tcancelScrollDismissReset();\n\t\tsetScrollDismissActive(false);\n\t\tsetSwipeOffset(0);\n\t};\n\tconst dismissNotification = (direction) => {\n\t\tsetDismissDirection(direction);\n\t\tsetDismissed(true);\n\t\tsetScrollDismissActive(false);\n\t\tsetSwipeOffset(getExitOffset(direction));\n\t\tcancelAutoClose();\n\t\tcancelHide();\n\t\tcancelScrollDismissReset();\n\t\thideTimeout.current = window.setTimeout(handleHide, transitionDuration);\n\t};\n\tconst scheduleScrollDismissReset = () => {\n\t\tcancelScrollDismissReset();\n\t\tscrollDismissTimeout.current = window.setTimeout(() => {\n\t\t\tsetScrollDismissActive(false);\n\t\t\tsetSwipeOffset(0);\n\t\t\thandleAutoClose();\n\t\t}, SCROLL_DISMISS_RESET_TIMEOUT);\n\t};\n\tconst { ref: dragRef, active } = useDrag((state) => {\n\t\tif (dismissed) return;\n\t\tif (state.first) cancelAutoClose();\n\t\tif (state.last) {\n\t\t\tif (state.tap || state.canceled) {\n\t\t\t\tsetSwipeOffset(0);\n\t\t\t\thandleAutoClose();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst movement = state.movement[0];\n\t\t\tconst direction = movement === 0 ? state.direction[0] === -1 ? -1 : 1 : movement > 0 ? 1 : -1;\n\t\t\tif (shouldDismiss(movement, state.velocity[0])) dismissNotification(direction);\n\t\t\telse {\n\t\t\t\tsetSwipeOffset(0);\n\t\t\t\thandleAutoClose();\n\t\t\t}\n\t\t} else setSwipeOffset(state.movement[0]);\n\t}, {\n\t\taxis: \"x\",\n\t\tthreshold: 5,\n\t\tfilterTaps: true,\n\t\tenabled: allowDragDismiss && !isCloseDisabled && !dismissed\n\t});\n\tconst mergedRef = useMergedRef(ref, notificationRef, dragRef);\n\tconst resolvedStyle = getStyleObject(style, theme);\n\tconst resolvedDataStyle = getStyleObject(dataStyle, theme);\n\tconst baseStyle = {\n\t\t...resolvedStyle,\n\t\t...resolvedDataStyle\n\t};\n\tconst baseOpacity = typeof baseStyle.opacity === \"number\" ? baseStyle.opacity : 1;\n\tconst swipeOpacity = dismissed ? 0 : 1 - Math.min(Math.abs(offset) / 200, 1) * .6;\n\tconst resolvedTransitionDuration = baseStyle.transitionDuration ?? `${transitionDuration}ms, ${transitionDuration}ms, ${transitionDuration}ms`;\n\tconst isStackedLayout = layout === \"stacked\";\n\tconst isStacked = isStackedLayout && stackIndex !== void 0 && stackIndex > 0;\n\tconst isCollapsed = isStacked && !stackExpanded;\n\tconst isExiting = transitionState === \"exiting\" || transitionState === \"exited\";\n\tconst stackDirection = stackPosition?.startsWith(\"top\") ? 1 : -1;\n\tconst stackDepth = Math.min(stackIndex ?? 0, MAX_VISIBLE_STACK_DEPTH);\n\tconst collapsedOffset = isCollapsed ? stackDepth * 10 * stackDirection : 0;\n\tconst staggerDelay = isStackedLayout ? (stackIndex || 0) * 30 : 0;\n\tconst isDragging = active || scrollDismissActive;\n\tconst getStackedTransform = () => {\n\t\tif (!isStackedLayout) return \"var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)\";\n\t\tif (isExiting) return `translateY(${stackExpanded ? stackExpandedOffset || 0 : collapsedOffset}px) var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`;\n\t\tif (stackExpanded) return `translateY(${stackExpandedOffset || 0}px) translate3d(var(--notifications-swipe-offset), 0, 0)`;\n\t\tif (isStacked) return `scale(${1 - stackDepth * .03}) translateY(${collapsedOffset}px)`;\n\t\treturn \"var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)\";\n\t};\n\tconst notificationStyle = {\n\t\t...baseStyle,\n\t\t...isStackedLayout ? { maxHeight: void 0 } : {},\n\t\t[\"--notifications-state-transform\"]: typeof baseStyle.transform === \"string\" ? baseStyle.transform : \"translateX(0)\",\n\t\t[\"--notifications-state-opacity\"]: String(baseOpacity),\n\t\t[\"--notifications-swipe-offset\"]: `${offset}px`,\n\t\t[\"--notifications-swipe-opacity\"]: String(swipeOpacity),\n\t\ttransform: getStackedTransform(),\n\t\topacity: \"calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))\",\n\t\ttransitionDuration: isDragging ? \"0ms, 0ms, 0ms\" : resolvedTransitionDuration,\n\t\tcursor: \"default\",\n\t\ttouchAction: \"pan-y\",\n\t\t...isStackedLayout ? {\n\t\t\tgridArea: \"1 / 1\",\n\t\t\tzIndex: (stackSize || 5) - (stackIndex ?? 0),\n\t\t\tpointerEvents: isCollapsed ? \"none\" : void 0,\n\t\t\talignSelf: stackDirection === 1 ? \"start\" : \"end\",\n\t\t\ttransitionProperty: isDragging ? \"none\" : \"transform, opacity\",\n\t\t\ttransitionDuration: `${transitionDuration}ms, ${transitionDuration}ms`,\n\t\t\ttransitionTimingFunction: \"cubic-bezier(.51,.3,0,1.21), ease\",\n\t\t\ttransitionDelay: isDragging || isExiting ? \"0ms\" : `${staggerDelay}ms`\n\t\t} : {}\n\t};\n\tconst handleMouseEnter = () => {\n\t\thoveredRef.current = true;\n\t\tcancelAutoClose();\n\t\tsyncActive();\n\t};\n\tconst handleMouseLeave = () => {\n\t\thoveredRef.current = false;\n\t\tif (!scrollDismissActive) {\n\t\t\tresetSwipe();\n\t\t\thandleAutoClose();\n\t\t}\n\t\tsyncActive();\n\t};\n\tconst handleFocusCapture = isStackedLayout ? () => {\n\t\tfocusedRef.current = true;\n\t\tcancelAutoClose();\n\t\tsyncActive();\n\t} : void 0;\n\tconst handleBlurCapture = isStackedLayout ? () => {\n\t\tfocusedRef.current = false;\n\t\tif (!scrollDismissActive) handleAutoClose();\n\t\tsyncActive();\n\t} : void 0;\n\tconst handlePointerDownCapture = (event) => {\n\t\tif (isStackedLayout && (event.pointerType === \"touch\" || event.pointerType === \"pen\")) onExpandRequest?.();\n\t};\n\tconst handleWheel = useEffectEvent((event) => {\n\t\tif (dismissed || active) return;\n\t\tconst isDocumentEvent = event.currentTarget === document;\n\t\tif (!isDocumentEvent && !hoveredRef.current) return;\n\t\tconst { deltaX, deltaY } = event;\n\t\tif (Math.abs(deltaX) <= Math.abs(deltaY) || deltaX === 0) return;\n\t\tif (!allowScrollDismiss || isCloseDisabled) return;\n\t\tif (!isDocumentEvent) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tcancelAutoClose();\n\t\tsetScrollDismissActive(true);\n\t\tconst nextOffset = offsetRef.current - deltaX;\n\t\tconst direction = nextOffset > 0 ? 1 : -1;\n\t\tif (shouldDismiss(nextOffset, 0)) {\n\t\t\tdismissNotification(direction);\n\t\t\treturn;\n\t\t}\n\t\tsetSwipeOffset(nextOffset);\n\t\tscheduleScrollDismissReset();\n\t});\n\tuseEffect(() => {\n\t\tif (!scrollDismissActive) return;\n\t\tdocument.addEventListener(\"wheel\", handleWheel, { passive: false });\n\t\treturn () => document.removeEventListener(\"wheel\", handleWheel, { passive: false });\n\t}, [scrollDismissActive]);\n\tuseEffect(() => {\n\t\tconst handleResize = () => {\n\t\t\tif (dismissed) setSwipeOffset(getExitOffset(dismissDirection));\n\t\t};\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\treturn () => window.removeEventListener(\"resize\", handleResize);\n\t}, [dismissDirection, dismissed]);\n\tuseEffect(() => {\n\t\tconst node = notificationRef.current;\n\t\tif (!node) return;\n\t\tnode.addEventListener(\"wheel\", handleWheel, { passive: false });\n\t\treturn () => node.removeEventListener(\"wheel\", handleWheel, { passive: false });\n\t}, []);\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tcancelHide();\n\t\t\tcancelScrollDismissReset();\n\t\t};\n\t}, []);\n\tuseEffect(() => {\n\t\tdata.onOpen?.(data);\n\t}, []);\n\tconst previousTransitionState = useRef(transitionState);\n\tuseEffect(() => {\n\t\tconst wasExiting = previousTransitionState.current === \"exiting\";\n\t\tpreviousTransitionState.current = transitionState;\n\t\tif (transitionState !== \"entering\" || !wasExiting) return;\n\t\tcancelHide();\n\t\tif (dismissed) {\n\t\t\tsetDismissed(false);\n\t\t\tsetScrollDismissActive(false);\n\t\t\tsetSwipeOffset(0);\n\t\t} else handleAutoClose();\n\t\tdata.onOpen?.(data);\n\t}, [transitionState]);\n\tuseEffect(() => {\n\t\thandleAutoClose();\n\t\treturn cancelAutoClose;\n\t}, [\n\t\tautoCloseDuration,\n\t\tactive,\n\t\tdismissed\n\t]);\n\tuseDidUpdate(() => {\n\t\tif (hasAutoCloseProgress) handleAutoClose();\n\t}, [hasAutoCloseProgress]);\n\tuseEffect(() => {\n\t\tif (paused) cancelAutoClose();\n\t\telse handleAutoClose();\n\t\treturn cancelAutoClose;\n\t}, [paused]);\n\tconst consumerProps = {\n\t\t...others,\n\t\t...notificationProps\n\t};\n\tconst interactionProps = {\n\t\tstyle: notificationStyle,\n\t\tinert: isCollapsed,\n\t\tonMouseEnter: (event) => {\n\t\t\tconsumerProps.onMouseEnter?.(event);\n\t\t\thandleMouseEnter();\n\t\t},\n\t\tonMouseLeave: (event) => {\n\t\t\tconsumerProps.onMouseLeave?.(event);\n\t\t\thandleMouseLeave();\n\t\t},\n\t\tonFocusCapture: (event) => {\n\t\t\tconsumerProps.onFocusCapture?.(event);\n\t\t\thandleFocusCapture?.();\n\t\t},\n\t\tonBlurCapture: (event) => {\n\t\t\tconsumerProps.onBlurCapture?.(event);\n\t\t\thandleBlurCapture?.();\n\t\t},\n\t\tonPointerDownCapture: (event) => {\n\t\t\tconsumerProps.onPointerDownCapture?.(event);\n\t\t\thandlePointerDownCapture(event);\n\t\t}\n\t};\n\tif (renderNotification) {\n\t\tconst classNames = [others.className, notificationProps.className].filter(Boolean).join(\" \");\n\t\treturn /* @__PURE__ */ jsx(\"div\", {\n\t\t\tref: mergedRef,\n\t\t\trole: notificationProps.role || others.role || \"alert\",\n\t\t\t...pickDomProps(consumerProps),\n\t\t\tclassName: classNames || void 0,\n\t\t\t...interactionProps,\n\t\t\tchildren: renderNotification(data)\n\t\t});\n\t}\n\treturn /* @__PURE__ */ jsxs(Notification, {\n\t\tref: mergedRef,\n\t\t...others,\n\t\t...notificationProps,\n\t\t...interactionProps,\n\t\twithCloseButton: isCloseDisabled ? false : withCloseButton,\n\t\tonClose: handleHide,\n\t\tchildren: [message, hasAutoCloseProgress && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\"aria-hidden\": true,\n\t\t\t...progressProps,\n\t\t\t\"data-position\": data.autoCloseProgressPosition ?? autoCloseProgressPosition,\n\t\t\t\"data-paused\": !autoCloseProgress.running || void 0,\n\t\t\tstyle: {\n\t\t\t\t...progressProps.style,\n\t\t\t\t[\"--notifications-progress-duration\"]: `${autoCloseDuration}ms`\n\t\t\t}\n\t\t}, autoCloseProgress.cycle)]\n\t});\n}\nNotificationContainer.displayName = \"@mantine/notifications/NotificationContainer\";\nexport { NotificationContainer };\n\n//# sourceMappingURL=NotificationContainer.mjs.map","\"use client\";\n// packages/@mantine/notifications/src/get-auto-close/get-auto-close.ts\nfunction getAutoClose(autoClose, notificationAutoClose) {\n\tif (typeof notificationAutoClose === \"number\") return notificationAutoClose;\n\tif (notificationAutoClose === false || autoClose === false) return false;\n\treturn autoClose;\n}\nexport { getAutoClose };\n\n//# sourceMappingURL=get-auto-close.mjs.map","\"use client\";\n// packages/@mantine/notifications/src/Notifications.module.css\nvar Notifications_module_default = {\n\t\"root\": \"m_b37d9ac7\",\n\t\"notification\": \"m_5ed0edd0\",\n\t\"progress\": \"m_836192\",\n\t\"notifications-progress\": \"m_5f780017\",\n\t\"notifications-progress-fade-in\": \"m_bb245a60\"\n};\nexport { Notifications_module_default as default };\n\n//# sourceMappingURL=Notifications.module.mjs.map","\"use client\";\nimport { useReducer } from \"react\";\n// packages/@mantine/hooks/src/use-force-update/use-force-update.ts\nconst reducer = (value) => (value + 1) % 1e6;\nfunction useForceUpdate() {\n\tconst [, update] = useReducer(reducer, 0);\n\treturn update;\n}\nexport { useForceUpdate };\n\n//# sourceMappingURL=use-force-update.mjs.map","\"use client\";\nimport { useEffect, useState } from \"react\";\n// packages/@mantine/hooks/src/use-media-query/use-media-query.ts\nfunction getInitialValue(query, initialValue) {\n\tif (typeof initialValue === \"boolean\") return initialValue;\n\tif (typeof window !== \"undefined\" && \"matchMedia\" in window) try {\n\t\treturn window.matchMedia(query).matches;\n\t} catch {\n\t\treturn false;\n\t}\n\treturn false;\n}\nfunction useMediaQuery(query, initialValue, { getInitialValueInEffect } = { getInitialValueInEffect: true }) {\n\tconst [matches, setMatches] = useState(getInitialValueInEffect ? initialValue : getInitialValue(query));\n\tuseEffect(() => {\n\t\ttry {\n\t\t\tif (\"matchMedia\" in window) {\n\t\t\t\tconst mediaQuery = window.matchMedia(query);\n\t\t\t\tsetMatches(mediaQuery.matches);\n\t\t\t\tconst callback = (event) => setMatches(event.matches);\n\t\t\t\tmediaQuery.addEventListener(\"change\", callback);\n\t\t\t\treturn () => {\n\t\t\t\t\tmediaQuery.removeEventListener(\"change\", callback);\n\t\t\t\t};\n\t\t\t}\n\t\t} catch (e) {\n\t\t\treturn;\n\t\t}\n\t}, [query]);\n\treturn matches || false;\n}\nexport { useMediaQuery };\n\n//# sourceMappingURL=use-media-query.mjs.map","\"use client\";\nimport { useMediaQuery } from \"../use-media-query/use-media-query.mjs\";\n// packages/@mantine/hooks/src/use-reduced-motion/use-reduced-motion.ts\nfunction useReducedMotion(initialValue, options) {\n\treturn useMediaQuery(\"(prefers-reduced-motion: reduce)\", initialValue, options);\n}\nexport { useReducedMotion };\n\n//# sourceMappingURL=use-reduced-motion.mjs.map","function _objectWithoutPropertiesLoose(r, e) {\n  if (null == r) return {};\n  var t = {};\n  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n    if (-1 !== e.indexOf(n)) continue;\n    t[n] = r[n];\n  }\n  return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","function _setPrototypeOf(t, e) {\n  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n    return t.__proto__ = e, t;\n  }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n  t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","export default {\n  disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n  return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n *   transition: `opacity ${duration}ms ease-in-out`,\n *   opacity: 0,\n * }\n *\n * const transitionStyles = {\n *   entering: { opacity: 1 },\n *   entered:  { opacity: 1 },\n *   exiting:  { opacity: 0 },\n *   exited:  { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n *   <Transition in={inProp} timeout={duration}>\n *     {state => (\n *       <div style={{\n *         ...defaultStyle,\n *         ...transitionStyles[state]\n *       }}>\n *         I'm a fade Transition!\n *       </div>\n *     )}\n *   </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n *  - `'entering'`\n *  - `'entered'`\n *  - `'exiting'`\n *  - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n *   const [inProp, setInProp] = useState(false);\n *   return (\n *     <div>\n *       <Transition in={inProp} timeout={500}>\n *         {state => (\n *           // ...\n *         )}\n *       </Transition>\n *       <button onClick={() => setInProp(true)}>\n *         Click to Enter\n *       </button>\n *     </div>\n *   );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(Transition, _React$Component);\n\n  function Transition(props, context) {\n    var _this;\n\n    _this = _React$Component.call(this, props, context) || this;\n    var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n    var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n    var initialStatus;\n    _this.appearStatus = null;\n\n    if (props.in) {\n      if (appear) {\n        initialStatus = EXITED;\n        _this.appearStatus = ENTERING;\n      } else {\n        initialStatus = ENTERED;\n      }\n    } else {\n      if (props.unmountOnExit || props.mountOnEnter) {\n        initialStatus = UNMOUNTED;\n      } else {\n        initialStatus = EXITED;\n      }\n    }\n\n    _this.state = {\n      status: initialStatus\n    };\n    _this.nextCallback = null;\n    return _this;\n  }\n\n  Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n    var nextIn = _ref.in;\n\n    if (nextIn && prevState.status === UNMOUNTED) {\n      return {\n        status: EXITED\n      };\n    }\n\n    return null;\n  } // getSnapshotBeforeUpdate(prevProps) {\n  //   let nextStatus = null\n  //   if (prevProps !== this.props) {\n  //     const { status } = this.state\n  //     if (this.props.in) {\n  //       if (status !== ENTERING && status !== ENTERED) {\n  //         nextStatus = ENTERING\n  //       }\n  //     } else {\n  //       if (status === ENTERING || status === ENTERED) {\n  //         nextStatus = EXITING\n  //       }\n  //     }\n  //   }\n  //   return { nextStatus }\n  // }\n  ;\n\n  var _proto = Transition.prototype;\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.updateStatus(true, this.appearStatus);\n  };\n\n  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n    var nextStatus = null;\n\n    if (prevProps !== this.props) {\n      var status = this.state.status;\n\n      if (this.props.in) {\n        if (status !== ENTERING && status !== ENTERED) {\n          nextStatus = ENTERING;\n        }\n      } else {\n        if (status === ENTERING || status === ENTERED) {\n          nextStatus = EXITING;\n        }\n      }\n    }\n\n    this.updateStatus(false, nextStatus);\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    this.cancelNextCallback();\n  };\n\n  _proto.getTimeouts = function getTimeouts() {\n    var timeout = this.props.timeout;\n    var exit, enter, appear;\n    exit = enter = appear = timeout;\n\n    if (timeout != null && typeof timeout !== 'number') {\n      exit = timeout.exit;\n      enter = timeout.enter; // TODO: remove fallback for next major\n\n      appear = timeout.appear !== undefined ? timeout.appear : enter;\n    }\n\n    return {\n      exit: exit,\n      enter: enter,\n      appear: appear\n    };\n  };\n\n  _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n    if (mounting === void 0) {\n      mounting = false;\n    }\n\n    if (nextStatus !== null) {\n      // nextStatus will always be ENTERING or EXITING.\n      this.cancelNextCallback();\n\n      if (nextStatus === ENTERING) {\n        if (this.props.unmountOnExit || this.props.mountOnEnter) {\n          var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n          // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n          // To make the animation happen,  we have to separate each rendering and avoid being processed as batched.\n\n          if (node) forceReflow(node);\n        }\n\n        this.performEnter(mounting);\n      } else {\n        this.performExit();\n      }\n    } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n      this.setState({\n        status: UNMOUNTED\n      });\n    }\n  };\n\n  _proto.performEnter = function performEnter(mounting) {\n    var _this2 = this;\n\n    var enter = this.props.enter;\n    var appearing = this.context ? this.context.isMounting : mounting;\n\n    var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n        maybeNode = _ref2[0],\n        maybeAppearing = _ref2[1];\n\n    var timeouts = this.getTimeouts();\n    var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n    // if we are mounting and running this it means appear _must_ be set\n\n    if (!mounting && !enter || config.disabled) {\n      this.safeSetState({\n        status: ENTERED\n      }, function () {\n        _this2.props.onEntered(maybeNode);\n      });\n      return;\n    }\n\n    this.props.onEnter(maybeNode, maybeAppearing);\n    this.safeSetState({\n      status: ENTERING\n    }, function () {\n      _this2.props.onEntering(maybeNode, maybeAppearing);\n\n      _this2.onTransitionEnd(enterTimeout, function () {\n        _this2.safeSetState({\n          status: ENTERED\n        }, function () {\n          _this2.props.onEntered(maybeNode, maybeAppearing);\n        });\n      });\n    });\n  };\n\n  _proto.performExit = function performExit() {\n    var _this3 = this;\n\n    var exit = this.props.exit;\n    var timeouts = this.getTimeouts();\n    var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n    if (!exit || config.disabled) {\n      this.safeSetState({\n        status: EXITED\n      }, function () {\n        _this3.props.onExited(maybeNode);\n      });\n      return;\n    }\n\n    this.props.onExit(maybeNode);\n    this.safeSetState({\n      status: EXITING\n    }, function () {\n      _this3.props.onExiting(maybeNode);\n\n      _this3.onTransitionEnd(timeouts.exit, function () {\n        _this3.safeSetState({\n          status: EXITED\n        }, function () {\n          _this3.props.onExited(maybeNode);\n        });\n      });\n    });\n  };\n\n  _proto.cancelNextCallback = function cancelNextCallback() {\n    if (this.nextCallback !== null) {\n      this.nextCallback.cancel();\n      this.nextCallback = null;\n    }\n  };\n\n  _proto.safeSetState = function safeSetState(nextState, callback) {\n    // This shouldn't be necessary, but there are weird race conditions with\n    // setState callbacks and unmounting in testing, so always make sure that\n    // we can cancel any pending setState callbacks after we unmount.\n    callback = this.setNextCallback(callback);\n    this.setState(nextState, callback);\n  };\n\n  _proto.setNextCallback = function setNextCallback(callback) {\n    var _this4 = this;\n\n    var active = true;\n\n    this.nextCallback = function (event) {\n      if (active) {\n        active = false;\n        _this4.nextCallback = null;\n        callback(event);\n      }\n    };\n\n    this.nextCallback.cancel = function () {\n      active = false;\n    };\n\n    return this.nextCallback;\n  };\n\n  _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n    this.setNextCallback(handler);\n    var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n    var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n    if (!node || doesNotHaveTimeoutOrListener) {\n      setTimeout(this.nextCallback, 0);\n      return;\n    }\n\n    if (this.props.addEndListener) {\n      var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n          maybeNode = _ref3[0],\n          maybeNextCallback = _ref3[1];\n\n      this.props.addEndListener(maybeNode, maybeNextCallback);\n    }\n\n    if (timeout != null) {\n      setTimeout(this.nextCallback, timeout);\n    }\n  };\n\n  _proto.render = function render() {\n    var status = this.state.status;\n\n    if (status === UNMOUNTED) {\n      return null;\n    }\n\n    var _this$props = this.props,\n        children = _this$props.children,\n        _in = _this$props.in,\n        _mountOnEnter = _this$props.mountOnEnter,\n        _unmountOnExit = _this$props.unmountOnExit,\n        _appear = _this$props.appear,\n        _enter = _this$props.enter,\n        _exit = _this$props.exit,\n        _timeout = _this$props.timeout,\n        _addEndListener = _this$props.addEndListener,\n        _onEnter = _this$props.onEnter,\n        _onEntering = _this$props.onEntering,\n        _onEntered = _this$props.onEntered,\n        _onExit = _this$props.onExit,\n        _onExiting = _this$props.onExiting,\n        _onExited = _this$props.onExited,\n        _nodeRef = _this$props.nodeRef,\n        childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n    return (\n      /*#__PURE__*/\n      // allows for nested Transitions\n      React.createElement(TransitionGroupContext.Provider, {\n        value: null\n      }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n    );\n  };\n\n  return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /**\n   * A React reference to DOM element that need to transition:\n   * https://stackoverflow.com/a/51127130/4671932\n   *\n   *   - When `nodeRef` prop is used, `node` is not passed to callback functions\n   *      (e.g. `onEnter`) because user already has direct access to the node.\n   *   - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n   *     `nodeRef` need to be provided to `Transition` with changed `key` prop\n   *     (see\n   *     [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n   */\n  nodeRef: PropTypes.shape({\n    current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n      var value = propValue[key];\n      return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n    }\n  }),\n\n  /**\n   * A `function` child can be used instead of a React element. This function is\n   * called with the current transition status (`'entering'`, `'entered'`,\n   * `'exiting'`, `'exited'`), which can be used to apply context\n   * specific props to a component.\n   *\n   * ```jsx\n   * <Transition in={this.state.in} timeout={150}>\n   *   {state => (\n   *     <MyComponent className={`fade fade-${state}`} />\n   *   )}\n   * </Transition>\n   * ```\n   */\n  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n  /**\n   * Show the component; triggers the enter or exit states\n   */\n  in: PropTypes.bool,\n\n  /**\n   * By default the child component is mounted immediately along with\n   * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n   * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n   */\n  mountOnEnter: PropTypes.bool,\n\n  /**\n   * By default the child component stays mounted after it reaches the `'exited'` state.\n   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n   */\n  unmountOnExit: PropTypes.bool,\n\n  /**\n   * By default the child component does not perform the enter transition when\n   * it first mounts, regardless of the value of `in`. If you want this\n   * behavior, set both `appear` and `in` to `true`.\n   *\n   * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n   * > only adds an additional enter transition. However, in the\n   * > `<CSSTransition>` component that first enter transition does result in\n   * > additional `.appear-*` classes, that way you can choose to style it\n   * > differently.\n   */\n  appear: PropTypes.bool,\n\n  /**\n   * Enable or disable enter transitions.\n   */\n  enter: PropTypes.bool,\n\n  /**\n   * Enable or disable exit transitions.\n   */\n  exit: PropTypes.bool,\n\n  /**\n   * The duration of the transition, in milliseconds.\n   * Required unless `addEndListener` is provided.\n   *\n   * You may specify a single timeout for all transitions:\n   *\n   * ```jsx\n   * timeout={500}\n   * ```\n   *\n   * or individually:\n   *\n   * ```jsx\n   * timeout={{\n   *  appear: 500,\n   *  enter: 300,\n   *  exit: 500,\n   * }}\n   * ```\n   *\n   * - `appear` defaults to the value of `enter`\n   * - `enter` defaults to `0`\n   * - `exit` defaults to `0`\n   *\n   * @type {number | { enter?: number, exit?: number, appear?: number }}\n   */\n  timeout: function timeout(props) {\n    var pt = timeoutsShape;\n    if (!props.addEndListener) pt = pt.isRequired;\n\n    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n\n    return pt.apply(void 0, [props].concat(args));\n  },\n\n  /**\n   * Add a custom transition end trigger. Called with the transitioning\n   * DOM node and a `done` callback. Allows for more fine grained transition end\n   * logic. Timeouts are still used as a fallback if provided.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * ```jsx\n   * addEndListener={(node, done) => {\n   *   // use the css transitionend event to mark the finish of a transition\n   *   node.addEventListener('transitionend', done, false);\n   * }}\n   * ```\n   */\n  addEndListener: PropTypes.func,\n\n  /**\n   * Callback fired before the \"entering\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool) -> void\n   */\n  onEnter: PropTypes.func,\n\n  /**\n   * Callback fired after the \"entering\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool)\n   */\n  onEntering: PropTypes.func,\n\n  /**\n   * Callback fired after the \"entered\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool) -> void\n   */\n  onEntered: PropTypes.func,\n\n  /**\n   * Callback fired before the \"exiting\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExit: PropTypes.func,\n\n  /**\n   * Callback fired after the \"exiting\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExiting: PropTypes.func,\n\n  /**\n   * Callback fired after the \"exited\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n  in: false,\n  mountOnEnter: false,\n  unmountOnExit: false,\n  appear: false,\n  enter: true,\n  exit: true,\n  onEnter: noop,\n  onEntering: noop,\n  onEntered: noop,\n  onExit: noop,\n  onExiting: noop,\n  onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","function _extends() {\n  return _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n  var mapper = function mapper(child) {\n    return mapFn && isValidElement(child) ? mapFn(child) : child;\n  };\n\n  var result = Object.create(null);\n  if (children) Children.map(children, function (c) {\n    return c;\n  }).forEach(function (child) {\n    // run the map function here instead so that the key is the computed one\n    result[child.key] = mapper(child);\n  });\n  return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n  prev = prev || {};\n  next = next || {};\n\n  function getValueForKey(key) {\n    return key in next ? next[key] : prev[key];\n  } // For each key of `next`, the list of keys to insert before that key in\n  // the combined list\n\n\n  var nextKeysPending = Object.create(null);\n  var pendingKeys = [];\n\n  for (var prevKey in prev) {\n    if (prevKey in next) {\n      if (pendingKeys.length) {\n        nextKeysPending[prevKey] = pendingKeys;\n        pendingKeys = [];\n      }\n    } else {\n      pendingKeys.push(prevKey);\n    }\n  }\n\n  var i;\n  var childMapping = {};\n\n  for (var nextKey in next) {\n    if (nextKeysPending[nextKey]) {\n      for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n        var pendingNextKey = nextKeysPending[nextKey][i];\n        childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n      }\n    }\n\n    childMapping[nextKey] = getValueForKey(nextKey);\n  } // Finally, add the keys which didn't appear before any key in `next`\n\n\n  for (i = 0; i < pendingKeys.length; i++) {\n    childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n  }\n\n  return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n  return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n  return getChildMapping(props.children, function (child) {\n    return cloneElement(child, {\n      onExited: onExited.bind(null, child),\n      in: true,\n      appear: getProp(child, 'appear', props),\n      enter: getProp(child, 'enter', props),\n      exit: getProp(child, 'exit', props)\n    });\n  });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n  var nextChildMapping = getChildMapping(nextProps.children);\n  var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n  Object.keys(children).forEach(function (key) {\n    var child = children[key];\n    if (!isValidElement(child)) return;\n    var hasPrev = (key in prevChildMapping);\n    var hasNext = (key in nextChildMapping);\n    var prevChild = prevChildMapping[key];\n    var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n    if (hasNext && (!hasPrev || isLeaving)) {\n      // console.log('entering', key)\n      children[key] = cloneElement(child, {\n        onExited: onExited.bind(null, child),\n        in: true,\n        exit: getProp(child, 'exit', nextProps),\n        enter: getProp(child, 'enter', nextProps)\n      });\n    } else if (!hasNext && hasPrev && !isLeaving) {\n      // item is old (exiting)\n      // console.log('leaving', key)\n      children[key] = cloneElement(child, {\n        in: false\n      });\n    } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n      // item hasn't changed transition states\n      // copy over the last transition props;\n      // console.log('unchanged', key)\n      children[key] = cloneElement(child, {\n        onExited: onExited.bind(null, child),\n        in: prevChild.props.in,\n        exit: getProp(child, 'exit', nextProps),\n        enter: getProp(child, 'enter', nextProps)\n      });\n    }\n  });\n  return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n  return Object.keys(obj).map(function (k) {\n    return obj[k];\n  });\n};\n\nvar defaultProps = {\n  component: 'div',\n  childFactory: function childFactory(child) {\n    return child;\n  }\n};\n/**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>`  does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(TransitionGroup, _React$Component);\n\n  function TransitionGroup(props, context) {\n    var _this;\n\n    _this = _React$Component.call(this, props, context) || this;\n\n    var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n    _this.state = {\n      contextValue: {\n        isMounting: true\n      },\n      handleExited: handleExited,\n      firstRender: true\n    };\n    return _this;\n  }\n\n  var _proto = TransitionGroup.prototype;\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.mounted = true;\n    this.setState({\n      contextValue: {\n        isMounting: false\n      }\n    });\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    this.mounted = false;\n  };\n\n  TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n    var prevChildMapping = _ref.children,\n        handleExited = _ref.handleExited,\n        firstRender = _ref.firstRender;\n    return {\n      children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n      firstRender: false\n    };\n  } // node is `undefined` when user provided `nodeRef` prop\n  ;\n\n  _proto.handleExited = function handleExited(child, node) {\n    var currentChildMapping = getChildMapping(this.props.children);\n    if (child.key in currentChildMapping) return;\n\n    if (child.props.onExited) {\n      child.props.onExited(node);\n    }\n\n    if (this.mounted) {\n      this.setState(function (state) {\n        var children = _extends({}, state.children);\n\n        delete children[child.key];\n        return {\n          children: children\n        };\n      });\n    }\n  };\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        Component = _this$props.component,\n        childFactory = _this$props.childFactory,\n        props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n    var contextValue = this.state.contextValue;\n    var children = values(this.state.children).map(childFactory);\n    delete props.appear;\n    delete props.enter;\n    delete props.exit;\n\n    if (Component === null) {\n      return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n        value: contextValue\n      }, children);\n    }\n\n    return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n      value: contextValue\n    }, /*#__PURE__*/React.createElement(Component, props, children));\n  };\n\n  return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /**\n   * `<TransitionGroup>` renders a `<div>` by default. You can change this\n   * behavior by providing a `component` prop.\n   * If you use React v16+ and would like to avoid a wrapping `<div>` element\n   * you can pass in `component={null}`. This is useful if the wrapping div\n   * borks your css styles.\n   */\n  component: PropTypes.any,\n\n  /**\n   * A set of `<Transition>` components, that are toggled `in` and out as they\n   * leave. the `<TransitionGroup>` will inject specific transition props, so\n   * remember to spread them through if you are wrapping the `<Transition>` as\n   * with our `<Fade>` example.\n   *\n   * While this component is meant for multiple `Transition` or `CSSTransition`\n   * children, sometimes you may want to have a single transition child with\n   * content that you want to be transitioned out and in when you change it\n   * (e.g. routes, images etc.) In that case you can change the `key` prop of\n   * the transition child as you change its content, this will cause\n   * `TransitionGroup` to transition the child out and back in.\n   */\n  children: PropTypes.node,\n\n  /**\n   * A convenience prop that enables or disables appear animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  appear: PropTypes.bool,\n\n  /**\n   * A convenience prop that enables or disables enter animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  enter: PropTypes.bool,\n\n  /**\n   * A convenience prop that enables or disables exit animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  exit: PropTypes.bool,\n\n  /**\n   * You may need to apply reactive updates to a child as it is exiting.\n   * This is generally done by using `cloneElement` however in the case of an exiting\n   * child the element has already been removed and not accessible to the consumer.\n   *\n   * If you do need to update a child as it leaves you can provide a `childFactory`\n   * to wrap every child, even the ones that are leaving.\n   *\n   * @type Function(child: ReactElement) -> ReactElement\n   */\n  childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","function _assertThisInitialized(e) {\n  if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  return e;\n}\nexport { _assertThisInitialized as default };","\"use client\";\n// packages/@mantine/core/src/core/utils/get-default-z-index/get-default-z-index.ts\nconst elevations = {\n\tapp: 100,\n\tmodal: 200,\n\tpopover: 300,\n\toverlay: 400,\n\tmax: 9999\n};\nfunction getDefaultZIndex(level) {\n\treturn elevations[level];\n}\nexport { getDefaultZIndex };\n\n//# sourceMappingURL=get-default-z-index.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { useState } from \"react\";\nimport { assignRef, useIsomorphicEffect } from \"@mantine/hooks\";\nimport { Fragment as Fragment$1, jsx } from \"react/jsx-runtime\";\nimport { createPortal } from \"react-dom\";\n// packages/@mantine/core/src/components/Portal/Portal.tsx\nfunction createPortalNode(props) {\n\tconst node = document.createElement(\"div\");\n\tnode.setAttribute(\"data-portal\", \"true\");\n\ttypeof props.className === \"string\" && node.classList.add(...props.className.split(\" \").filter(Boolean));\n\ttypeof props.style === \"object\" && Object.assign(node.style, props.style);\n\ttypeof props.id === \"string\" && node.setAttribute(\"id\", props.id);\n\treturn node;\n}\nlet cachedSharedPortalNode = null;\nfunction getTargetNode({ target, reuseTargetNode, ...others }) {\n\tif (target) {\n\t\tif (typeof target === \"string\") return document.querySelector(target) || createPortalNode(others);\n\t\treturn target;\n\t}\n\tif (reuseTargetNode) {\n\t\tif (cachedSharedPortalNode) {\n\t\t\tif (document.body.contains(cachedSharedPortalNode)) return cachedSharedPortalNode;\n\t\t\tcachedSharedPortalNode = null;\n\t\t}\n\t\tconst existingNode = document.querySelector(\"[data-mantine-shared-portal-node]\");\n\t\tif (existingNode) {\n\t\t\tcachedSharedPortalNode = existingNode;\n\t\t\treturn existingNode;\n\t\t}\n\t\tconst node = createPortalNode(others);\n\t\tnode.setAttribute(\"data-mantine-shared-portal-node\", \"true\");\n\t\tdocument.body.appendChild(node);\n\t\tcachedSharedPortalNode = node;\n\t\treturn node;\n\t}\n\treturn createPortalNode(others);\n}\nconst defaultProps = { reuseTargetNode: true };\nconst Portal = factory((props) => {\n\tconst { children, target, reuseTargetNode, ref, ...others } = useProps(\"Portal\", defaultProps, props);\n\tconst [node, setNode] = useState(null);\n\tuseIsomorphicEffect(() => {\n\t\tlet portalNode = null;\n\t\tlet observer = null;\n\t\tconst initialize = () => {\n\t\t\tif (!target && !document.body) return false;\n\t\t\tportalNode = getTargetNode({\n\t\t\t\ttarget,\n\t\t\t\treuseTargetNode,\n\t\t\t\t...others\n\t\t\t});\n\t\t\tif (!target && !reuseTargetNode) document.body.appendChild(portalNode);\n\t\t\tobserver?.disconnect();\n\t\t\tassignRef(ref, portalNode);\n\t\t\tsetNode(portalNode);\n\t\t\treturn true;\n\t\t};\n\t\tif (!initialize()) {\n\t\t\tsetNode(null);\n\t\t\tobserver = new MutationObserver(initialize);\n\t\t\tobserver.observe(document.documentElement, { childList: true });\n\t\t}\n\t\treturn () => {\n\t\t\tobserver?.disconnect();\n\t\t\tif (!target && !reuseTargetNode) portalNode?.remove();\n\t\t};\n\t}, [target]);\n\tif (!node) return null;\n\treturn createPortal(/* @__PURE__ */ jsx(Fragment$1, { children }), node);\n});\nPortal.displayName = \"@mantine/core/Portal\";\nexport { Portal };\n\n//# sourceMappingURL=Portal.mjs.map","\"use client\";\nimport { useMantineEnv } from \"../../core/MantineProvider/Mantine.context.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Portal } from \"./Portal.mjs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Portal/OptionalPortal.tsx\nconst OptionalPortal = factory(({ withinPortal = true, children, ...others }) => {\n\tif (useMantineEnv() === \"test\" || !withinPortal) return /* @__PURE__ */ jsx(Fragment, { children });\n\treturn /* @__PURE__ */ jsx(Portal, {\n\t\t...others,\n\t\tchildren\n\t});\n});\nOptionalPortal.displayName = \"@mantine/core/OptionalPortal\";\nexport { OptionalPortal };\n\n//# sourceMappingURL=OptionalPortal.mjs.map","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n  extendStatics = Object.setPrototypeOf ||\n      ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n      function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n  return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n  if (typeof b !== \"function\" && b !== null)\n      throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n  extendStatics(d, b);\n  function __() { this.constructor = d; }\n  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n  __assign = Object.assign || function __assign(t) {\n      for (var s, i = 1, n = arguments.length; i < n; i++) {\n          s = arguments[i];\n          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n      }\n      return t;\n  }\n  return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n      t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n      for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n          if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n              t[p[i]] = s[p[i]];\n      }\n  return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n  return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n  function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n  var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n  var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n  var _, done = false;\n  for (var i = decorators.length - 1; i >= 0; i--) {\n      var context = {};\n      for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n      for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n      context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n      var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n      if (kind === \"accessor\") {\n          if (result === void 0) continue;\n          if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n          if (_ = accept(result.get)) descriptor.get = _;\n          if (_ = accept(result.set)) descriptor.set = _;\n          if (_ = accept(result.init)) initializers.unshift(_);\n      }\n      else if (_ = accept(result)) {\n          if (kind === \"field\") initializers.unshift(_);\n          else descriptor[key] = _;\n      }\n  }\n  if (target) Object.defineProperty(target, contextIn.name, descriptor);\n  done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n  var useValue = arguments.length > 2;\n  for (var i = 0; i < initializers.length; i++) {\n      value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n  }\n  return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n  return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n  if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n  return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n  if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n  return new (P || (P = Promise))(function (resolve, reject) {\n      function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n      function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n      function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n      step((generator = generator.apply(thisArg, _arguments || [])).next());\n  });\n}\n\nexport function __generator(thisArg, body) {\n  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n  return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n  function verb(n) { return function (v) { return step([n, v]); }; }\n  function step(op) {\n      if (f) throw new TypeError(\"Generator is already executing.\");\n      while (g && (g = 0, op[0] && (_ = 0)), _) try {\n          if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n          if (y = 0, t) op = [op[0] & 2, t.value];\n          switch (op[0]) {\n              case 0: case 1: t = op; break;\n              case 4: _.label++; return { value: op[1], done: false };\n              case 5: _.label++; y = op[1]; op = [0]; continue;\n              case 7: op = _.ops.pop(); _.trys.pop(); continue;\n              default:\n                  if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                  if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                  if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                  if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                  if (t[2]) _.ops.pop();\n                  _.trys.pop(); continue;\n          }\n          op = body.call(thisArg, _);\n      } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n      if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n  }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n  }\n  Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n  for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n  var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n  if (m) return m.call(o);\n  if (o && typeof o.length === \"number\") return {\n      next: function () {\n          if (o && i >= o.length) o = void 0;\n          return { value: o && o[i++], done: !o };\n      }\n  };\n  throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n  var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n  if (!m) return o;\n  var i = m.call(o), r, ar = [], e;\n  try {\n      while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n  }\n  catch (error) { e = { error: error }; }\n  finally {\n      try {\n          if (r && !r.done && (m = i[\"return\"])) m.call(i);\n      }\n      finally { if (e) throw e.error; }\n  }\n  return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n  for (var ar = [], i = 0; i < arguments.length; i++)\n      ar = ar.concat(__read(arguments[i]));\n  return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n  for (var r = Array(s), k = 0, i = 0; i < il; i++)\n      for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n          r[k] = a[j];\n  return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n      if (ar || !(i in from)) {\n          if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n          ar[i] = from[i];\n      }\n  }\n  return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n  return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var g = generator.apply(thisArg, _arguments || []), i, q = [];\n  return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n  function fulfill(value) { resume(\"next\", value); }\n  function reject(value) { resume(\"throw\", value); }\n  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n  var i, p;\n  return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n  function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var m = o[Symbol.asyncIterator], i;\n  return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n  function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n  function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n  if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n  return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n  Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n  o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n  ownKeys = Object.getOwnPropertyNames || function (o) {\n    var ar = [];\n    for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n    return ar;\n  };\n  return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n  __setModuleDefault(result, mod);\n  return result;\n}\n\nexport function __importDefault(mod) {\n  return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n  return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n  if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n  return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n  if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n  return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n  if (value !== null && value !== void 0) {\n    if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n    var dispose, inner;\n    if (async) {\n      if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n      dispose = value[Symbol.asyncDispose];\n    }\n    if (dispose === void 0) {\n      if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n      dispose = value[Symbol.dispose];\n      if (async) inner = dispose;\n    }\n    if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n    if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n    env.stack.push({ value: value, dispose: dispose, async: async });\n  }\n  else if (async) {\n    env.stack.push({ async: true });\n  }\n  return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n  var e = new Error(message);\n  return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n  function fail(e) {\n    env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n    env.hasError = true;\n  }\n  var r, s = 0;\n  function next() {\n    while (r = env.stack.pop()) {\n      try {\n        if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n        if (r.dispose) {\n          var result = r.dispose.call(r.value);\n          if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n        }\n        else s |= 1;\n      }\n      catch (e) {\n        fail(e);\n      }\n    }\n    if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n    if (env.hasError) throw env.error;\n  }\n  return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n  if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n      return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n          return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n      });\n  }\n  return path;\n}\n\nexport default {\n  __extends,\n  __assign,\n  __rest,\n  __decorate,\n  __param,\n  __esDecorate,\n  __runInitializers,\n  __propKey,\n  __setFunctionName,\n  __metadata,\n  __awaiter,\n  __generator,\n  __createBinding,\n  __exportStar,\n  __values,\n  __read,\n  __spread,\n  __spreadArrays,\n  __spreadArray,\n  __await,\n  __asyncGenerator,\n  __asyncDelegator,\n  __asyncValues,\n  __makeTemplateObject,\n  __importStar,\n  __importDefault,\n  __classPrivateFieldGet,\n  __classPrivateFieldSet,\n  __classPrivateFieldIn,\n  __addDisposableResource,\n  __disposeResources,\n  __rewriteRelativeImportExtension,\n};\n","export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n","/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n    if (typeof ref === 'function') {\n        ref(value);\n    }\n    else if (ref) {\n        ref.current = value;\n    }\n    return ref;\n}\n","import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n *   const ownRef = useRef();\n *   const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n *   return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n    var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n        return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n    });\n    // handle refs changes - added or removed\n    useIsomorphicLayoutEffect(function () {\n        var oldValue = currentValues.get(callbackRef);\n        if (oldValue) {\n            var prevRefs_1 = new Set(oldValue);\n            var nextRefs_1 = new Set(refs);\n            var current_1 = callbackRef.current;\n            prevRefs_1.forEach(function (ref) {\n                if (!nextRefs_1.has(ref)) {\n                    assignRef(ref, null);\n                }\n            });\n            nextRefs_1.forEach(function (ref) {\n                if (!prevRefs_1.has(ref)) {\n                    assignRef(ref, current_1);\n                }\n            });\n        }\n        currentValues.set(callbackRef, refs);\n    }, [refs]);\n    return callbackRef;\n}\n","import { __assign } from \"tslib\";\nfunction ItoI(a) {\n    return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n    if (middleware === void 0) { middleware = ItoI; }\n    var buffer = [];\n    var assigned = false;\n    var medium = {\n        read: function () {\n            if (assigned) {\n                throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n            }\n            if (buffer.length) {\n                return buffer[buffer.length - 1];\n            }\n            return defaults;\n        },\n        useMedium: function (data) {\n            var item = middleware(data, assigned);\n            buffer.push(item);\n            return function () {\n                buffer = buffer.filter(function (x) { return x !== item; });\n            };\n        },\n        assignSyncMedium: function (cb) {\n            assigned = true;\n            while (buffer.length) {\n                var cbs = buffer;\n                buffer = [];\n                cbs.forEach(cb);\n            }\n            buffer = {\n                push: function (x) { return cb(x); },\n                filter: function () { return buffer; },\n            };\n        },\n        assignMedium: function (cb) {\n            assigned = true;\n            var pendingQueue = [];\n            if (buffer.length) {\n                var cbs = buffer;\n                buffer = [];\n                cbs.forEach(cb);\n                pendingQueue = buffer;\n            }\n            var executeQueue = function () {\n                var cbs = pendingQueue;\n                pendingQueue = [];\n                cbs.forEach(cb);\n            };\n            var cycle = function () { return Promise.resolve().then(executeQueue); };\n            cycle();\n            buffer = {\n                push: function (x) {\n                    pendingQueue.push(x);\n                    cycle();\n                },\n                filter: function (filter) {\n                    pendingQueue = pendingQueue.filter(filter);\n                    return buffer;\n                },\n            };\n        },\n    };\n    return medium;\n}\nexport function createMedium(defaults, middleware) {\n    if (middleware === void 0) { middleware = ItoI; }\n    return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n    if (options === void 0) { options = {}; }\n    var medium = innerCreateMedium(null);\n    medium.options = __assign({ async: true, ssr: false }, options);\n    return medium;\n}\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n    return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n    var ref = React.useRef(null);\n    var _a = React.useState({\n        onScrollCapture: nothing,\n        onWheelCapture: nothing,\n        onTouchMoveCapture: nothing,\n    }), callbacks = _a[0], setCallbacks = _a[1];\n    var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noRelative\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n    var SideCar = sideCar;\n    var containerRef = useMergeRefs([ref, parentRef]);\n    var containerProps = __assign(__assign({}, rest), callbacks);\n    return (React.createElement(React.Fragment, null,\n        enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n        forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n    enabled: true,\n    removeScrollBar: true,\n    inert: false,\n};\nRemoveScroll.classNames = {\n    fullWidth: fullWidthClassName,\n    zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n    var ref = useState(function () { return ({\n        // value\n        value: initialValue,\n        // last callback\n        callback: callback,\n        // \"memoized\" public interface\n        facade: {\n            get current() {\n                return ref.value;\n            },\n            set current(value) {\n                var last = ref.value;\n                if (last !== value) {\n                    ref.value = value;\n                    ref.callback(value, last);\n                }\n            },\n        },\n    }); })[0];\n    // update callback\n    ref.callback = callback;\n    return ref.facade;\n}\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n    var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n    if (!sideCar) {\n        throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n    }\n    var Target = sideCar.read();\n    if (!Target) {\n        throw new Error('Sidecar medium not found');\n    }\n    return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n    medium.useMedium(exported);\n    return SideCar;\n}\n","import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n    if (!document)\n        return null;\n    var tag = document.createElement('style');\n    tag.type = 'text/css';\n    var nonce = getNonce();\n    if (nonce) {\n        tag.setAttribute('nonce', nonce);\n    }\n    return tag;\n}\nfunction injectStyles(tag, css) {\n    // @ts-ignore\n    if (tag.styleSheet) {\n        // @ts-ignore\n        tag.styleSheet.cssText = css;\n    }\n    else {\n        tag.appendChild(document.createTextNode(css));\n    }\n}\nfunction insertStyleTag(tag) {\n    var head = document.head || document.getElementsByTagName('head')[0];\n    head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n    var counter = 0;\n    var stylesheet = null;\n    return {\n        add: function (style) {\n            if (counter == 0) {\n                if ((stylesheet = makeStyleTag())) {\n                    injectStyles(stylesheet, style);\n                    insertStyleTag(stylesheet);\n                }\n            }\n            counter++;\n        },\n        remove: function () {\n            counter--;\n            if (!counter && stylesheet) {\n                stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n                stylesheet = null;\n            }\n        },\n    };\n};\n","var currentNonce;\nexport var setNonce = function (nonce) {\n    currentNonce = nonce;\n};\nexport var getNonce = function () {\n    if (currentNonce) {\n        return currentNonce;\n    }\n    if (typeof __webpack_nonce__ !== 'undefined') {\n        return __webpack_nonce__;\n    }\n    return undefined;\n};\n","import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n    var useStyle = styleHookSingleton();\n    var Sheet = function (_a) {\n        var styles = _a.styles, dynamic = _a.dynamic;\n        useStyle(styles, dynamic);\n        return null;\n    };\n    return Sheet;\n};\n","import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n    var sheet = stylesheetSingleton();\n    return function (styles, isDynamic) {\n        React.useEffect(function () {\n            sheet.add(styles);\n            return function () {\n                sheet.remove();\n            };\n        }, [styles && isDynamic]);\n    };\n};\n","export var zeroGap = {\n    left: 0,\n    top: 0,\n    right: 0,\n    gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n    var cs = window.getComputedStyle(document.body);\n    var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n    var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n    var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n    return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n    if (gapMode === void 0) { gapMode = 'margin'; }\n    if (typeof window === 'undefined') {\n        return zeroGap;\n    }\n    var offsets = getOffset(gapMode);\n    var documentWidth = document.documentElement.clientWidth;\n    var windowWidth = window.innerWidth;\n    return {\n        left: offsets[0],\n        top: offsets[1],\n        right: offsets[2],\n        gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n    };\n};\n","import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n    var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n    if (gapMode === void 0) { gapMode = 'margin'; }\n    return \"\\n  .\".concat(noScrollbarsClassName, \" {\\n   overflow: hidden \").concat(important, \";\\n   padding-right: \").concat(gap, \"px \").concat(important, \";\\n  }\\n  body[\").concat(lockAttribute, \"] {\\n    overflow: hidden \").concat(important, \";\\n    overscroll-behavior: contain;\\n    \").concat([\n        allowRelative && \"position: relative \".concat(important, \";\"),\n        gapMode === 'margin' &&\n            \"\\n    padding-left: \".concat(left, \"px;\\n    padding-top: \").concat(top, \"px;\\n    padding-right: \").concat(right, \"px;\\n    margin-left:0;\\n    margin-top:0;\\n    margin-right: \").concat(gap, \"px \").concat(important, \";\\n    \"),\n        gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n    ]\n        .filter(Boolean)\n        .join(''), \"\\n  }\\n  \\n  .\").concat(zeroRightClassName, \" {\\n    right: \").concat(gap, \"px \").concat(important, \";\\n  }\\n  \\n  .\").concat(fullWidthClassName, \" {\\n    margin-right: \").concat(gap, \"px \").concat(important, \";\\n  }\\n  \\n  .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n    right: 0 \").concat(important, \";\\n  }\\n  \\n  .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n    margin-right: 0 \").concat(important, \";\\n  }\\n  \\n  body[\").concat(lockAttribute, \"] {\\n    \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n  }\\n\");\n};\nvar getCurrentUseCounter = function () {\n    var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n    return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n    React.useEffect(function () {\n        document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n        return function () {\n            var newCounter = getCurrentUseCounter() - 1;\n            if (newCounter <= 0) {\n                document.body.removeAttribute(lockAttribute);\n            }\n            else {\n                document.body.setAttribute(lockAttribute, newCounter.toString());\n            }\n        };\n    }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n    var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n    useLockAttribute();\n    /*\n     gap will be measured on every component mount\n     however it will be used only by the \"first\" invocation\n     due to singleton nature of <Style\n     */\n    var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n    return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n","var passiveSupported = false;\nif (typeof window !== 'undefined') {\n    try {\n        var options = Object.defineProperty({}, 'passive', {\n            get: function () {\n                passiveSupported = true;\n                return true;\n            },\n        });\n        // @ts-ignore\n        window.addEventListener('test', options, options);\n        // @ts-ignore\n        window.removeEventListener('test', options, options);\n    }\n    catch (err) {\n        passiveSupported = false;\n    }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n","var alwaysContainsScroll = function (node) {\n    // textarea will always _contain_ scroll inside self. It only can be hidden\n    return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n    if (!(node instanceof Element)) {\n        return false;\n    }\n    var styles = window.getComputedStyle(node);\n    return (\n    // not-not-scrollable\n    styles[overflow] !== 'hidden' &&\n        // contains scroll inside self\n        !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n    var ownerDocument = node.ownerDocument;\n    var current = node;\n    do {\n        // Skip over shadow root\n        if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n            current = current.host;\n        }\n        var isScrollable = elementCouldBeScrolled(axis, current);\n        if (isScrollable) {\n            var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n            if (scrollHeight > clientHeight) {\n                return true;\n            }\n        }\n        current = current.parentNode;\n    } while (current && current !== ownerDocument.body);\n    return false;\n};\nvar getVScrollVariables = function (_a) {\n    var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n    return [\n        scrollTop,\n        scrollHeight,\n        clientHeight,\n    ];\n};\nvar getHScrollVariables = function (_a) {\n    var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n    return [\n        scrollLeft,\n        scrollWidth,\n        clientWidth,\n    ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n    return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n    return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n    /**\n     * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n     * and then increasingly negative as you scroll towards the end of the content.\n     * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n     */\n    return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n    var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n    var delta = directionFactor * sourceDelta;\n    // find scrollable target\n    var target = event.target;\n    var targetInLock = endTarget.contains(target);\n    var shouldCancelScroll = false;\n    var isDeltaPositive = delta > 0;\n    var availableScroll = 0;\n    var availableScrollTop = 0;\n    do {\n        if (!target) {\n            break;\n        }\n        var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n        var elementScroll = scroll_1 - capacity - directionFactor * position;\n        if (position || elementScroll) {\n            if (elementCouldBeScrolled(axis, target)) {\n                availableScroll += elementScroll;\n                availableScrollTop += position;\n            }\n        }\n        var parent_1 = target.parentNode;\n        // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n        // this is the same logic used in focus-lock\n        target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n    } while (\n    // portaled content\n    (!targetInLock && target !== document.body) ||\n        // self content\n        (targetInLock && (endTarget.contains(target) || endTarget === target)));\n    // handle epsilon around 0 (non standard zoom levels)\n    if (isDeltaPositive &&\n        ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n        shouldCancelScroll = true;\n    }\n    else if (!isDeltaPositive &&\n        ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n        shouldCancelScroll = true;\n    }\n    return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n    return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n    return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n  .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n  .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n    var shouldPreventQueue = React.useRef([]);\n    var touchStartRef = React.useRef([0, 0]);\n    var activeAxis = React.useRef();\n    var id = React.useState(idCounter++)[0];\n    var Style = React.useState(styleSingleton)[0];\n    var lastProps = React.useRef(props);\n    React.useEffect(function () {\n        lastProps.current = props;\n    }, [props]);\n    React.useEffect(function () {\n        if (props.inert) {\n            document.body.classList.add(\"block-interactivity-\".concat(id));\n            var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n            allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n            return function () {\n                document.body.classList.remove(\"block-interactivity-\".concat(id));\n                allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n            };\n        }\n        return;\n    }, [props.inert, props.lockRef.current, props.shards]);\n    var shouldCancelEvent = React.useCallback(function (event, parent) {\n        if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n            return !lastProps.current.allowPinchZoom;\n        }\n        var touch = getTouchXY(event);\n        var touchStart = touchStartRef.current;\n        var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n        var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n        var currentAxis;\n        var target = event.target;\n        var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n        // allow horizontal touch move on Range inputs. They will not cause any scroll\n        if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n            return false;\n        }\n        // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n        var selection = window.getSelection();\n        var anchorNode = selection && selection.anchorNode;\n        var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n        if (isTouchingSelection) {\n            return false;\n        }\n        var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n        if (!canBeScrolledInMainDirection) {\n            return true;\n        }\n        if (canBeScrolledInMainDirection) {\n            currentAxis = moveDirection;\n        }\n        else {\n            currentAxis = moveDirection === 'v' ? 'h' : 'v';\n            canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n            // other axis might be not scrollable\n        }\n        if (!canBeScrolledInMainDirection) {\n            return false;\n        }\n        if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n            activeAxis.current = currentAxis;\n        }\n        if (!currentAxis) {\n            return true;\n        }\n        var cancelingAxis = activeAxis.current || currentAxis;\n        return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n    }, []);\n    var shouldPrevent = React.useCallback(function (_event) {\n        var event = _event;\n        if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n            // not the last active\n            return;\n        }\n        var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n        var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n        // self event, and should be canceled\n        if (sourceEvent && sourceEvent.should) {\n            if (event.cancelable) {\n                event.preventDefault();\n            }\n            return;\n        }\n        // outside or shard event\n        if (!sourceEvent) {\n            var shardNodes = (lastProps.current.shards || [])\n                .map(extractRef)\n                .filter(Boolean)\n                .filter(function (node) { return node.contains(event.target); });\n            var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n            if (shouldStop) {\n                if (event.cancelable) {\n                    event.preventDefault();\n                }\n            }\n        }\n    }, []);\n    var shouldCancel = React.useCallback(function (name, delta, target, should) {\n        var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n        shouldPreventQueue.current.push(event);\n        setTimeout(function () {\n            shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n        }, 1);\n    }, []);\n    var scrollTouchStart = React.useCallback(function (event) {\n        touchStartRef.current = getTouchXY(event);\n        activeAxis.current = undefined;\n    }, []);\n    var scrollWheel = React.useCallback(function (event) {\n        shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n    }, []);\n    var scrollTouchMove = React.useCallback(function (event) {\n        shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n    }, []);\n    React.useEffect(function () {\n        lockStack.push(Style);\n        props.setCallbacks({\n            onScrollCapture: scrollWheel,\n            onWheelCapture: scrollWheel,\n            onTouchMoveCapture: scrollTouchMove,\n        });\n        document.addEventListener('wheel', shouldPrevent, nonPassive);\n        document.addEventListener('touchmove', shouldPrevent, nonPassive);\n        document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n        return function () {\n            lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n            document.removeEventListener('wheel', shouldPrevent, nonPassive);\n            document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n            document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n        };\n    }, []);\n    var removeScrollBar = props.removeScrollBar, inert = props.inert;\n    return (React.createElement(React.Fragment, null,\n        inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n        removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n    var shadowParent = null;\n    while (node !== null) {\n        if (node instanceof ShadowRoot) {\n            shadowParent = node.host;\n            node = node.host;\n        }\n        node = node.parentNode;\n    }\n    return shadowParent;\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n","\"use client\";\nimport { hideNotification, notifications, notificationsStore, useNotifications } from \"./notifications.store.mjs\";\nimport { getGroupedNotifications, positions } from \"./get-grouped-notifications/get-grouped-notifications.mjs\";\nimport { getNotificationStateStyles } from \"./get-notification-state-styles.mjs\";\nimport { NotificationContainer } from \"./NotificationContainer.mjs\";\nimport Notifications_module_default from \"./Notifications.module.mjs\";\nimport { useDidUpdate, useForceUpdate, useReducedMotion } from \"@mantine/hooks\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { Transition, TransitionGroup } from \"react-transition-group\";\nimport { Box, OptionalPortal, RemoveScroll, createVarsResolver, factory, getDefaultZIndex, rem, useMantineTheme, useProps, useStyles } from \"@mantine/core\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/notifications/src/Notifications.tsx\nconst Transition$1 = Transition;\n/** Vertical gap between notifications of an expanded stack, in px */\nconst STACK_EXPANDED_GAP = 16;\n/** Offset step used for a notification that has not been measured yet, in px */\nconst FALLBACK_NOTIFICATION_HEIGHT = 80;\nconst defaultProps = {\n\tposition: \"bottom-right\",\n\tautoClose: 4e3,\n\ttransitionDuration: 250,\n\tallowDragDismiss: true,\n\tallowScrollDismiss: true,\n\tcontainerWidth: 440,\n\tnotificationMaxHeight: 200,\n\tlimit: 5,\n\tzIndex: getDefaultZIndex(\"overlay\"),\n\tstore: notificationsStore,\n\twithinPortal: true,\n\tpauseResetOnHover: \"all\",\n\tlayout: \"default\",\n\twithAutoCloseProgress: false,\n\tautoCloseProgressPosition: \"bottom\"\n};\nconst varsResolver = createVarsResolver((_, { zIndex, containerWidth }) => ({ root: {\n\t\"--notifications-z-index\": zIndex?.toString(),\n\t\"--notifications-container-width\": rem(containerWidth)\n} }));\nconst Notifications = factory((_props) => {\n\tconst props = useProps(\"Notifications\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, attributes, position, autoClose, transitionDuration, allowDragDismiss, allowScrollDismiss, containerWidth, notificationMaxHeight, limit, zIndex, store, portalProps, withinPortal, pauseResetOnHover, renderNotification, layout, withAutoCloseProgress, autoCloseProgressPosition, ...others } = props;\n\tconst theme = useMantineTheme();\n\tconst data = useNotifications(store);\n\tconst forceUpdate = useForceUpdate();\n\tconst shouldReduceMotion = useReducedMotion();\n\tconst refs = useRef({});\n\tconst previousLength = useRef(0);\n\tconst [hoveredCounts, setHoveredCounts] = useState({});\n\tconst [expandedPositions, setExpandedPositions] = useState({});\n\tconst [hoveredGroups, setHoveredGroups] = useState({});\n\tconst [pinnedPosition, setPinnedPosition] = useState(null);\n\tconst collapseTimeouts = useRef({});\n\tconst hoveredCount = Object.values(hoveredCounts).reduce((acc, count) => acc + (count ?? 0), 0) + Object.values(hoveredGroups).filter(Boolean).length;\n\tconst handleHoverStart = useCallback((pos) => setHoveredCounts((current) => ({\n\t\t...current,\n\t\t[pos]: (current[pos] ?? 0) + 1\n\t})), []);\n\tconst handleHoverEnd = useCallback((pos) => setHoveredCounts((current) => ({\n\t\t...current,\n\t\t[pos]: Math.max(0, (current[pos] ?? 0) - 1)\n\t})), []);\n\tconst getGroupHoverProps = useCallback((pos) => layout === \"stacked\" ? {\n\t\tonMouseEnter: () => setHoveredGroups((current) => ({\n\t\t\t...current,\n\t\t\t[pos]: true\n\t\t})),\n\t\tonMouseLeave: () => setHoveredGroups((current) => ({\n\t\t\t...current,\n\t\t\t[pos]: false\n\t\t}))\n\t} : {}, [layout]);\n\tconst handleExpandRequest = useCallback((pos) => setPinnedPosition(pos), []);\n\tuseEffect(() => {\n\t\tif (layout !== \"stacked\") return;\n\t\tconst timeouts = collapseTimeouts.current;\n\t\tpositions.forEach((pos) => {\n\t\t\tif ((hoveredCounts[pos] ?? 0) > 0 || hoveredGroups[pos] || pinnedPosition === pos) {\n\t\t\t\twindow.clearTimeout(timeouts[pos]);\n\t\t\t\tsetExpandedPositions((current) => current[pos] ? current : {\n\t\t\t\t\t...current,\n\t\t\t\t\t[pos]: true\n\t\t\t\t});\n\t\t\t} else timeouts[pos] = window.setTimeout(() => {\n\t\t\t\tsetExpandedPositions((current) => current[pos] ? {\n\t\t\t\t\t...current,\n\t\t\t\t\t[pos]: false\n\t\t\t\t} : current);\n\t\t\t}, 200);\n\t\t});\n\t\treturn () => positions.forEach((pos) => window.clearTimeout(timeouts[pos]));\n\t}, [\n\t\thoveredCounts,\n\t\thoveredGroups,\n\t\tpinnedPosition,\n\t\tlayout\n\t]);\n\tuseEffect(() => {\n\t\tif (!pinnedPosition) return;\n\t\tconst handlePointerDown = (event) => {\n\t\t\tconst target = event.target;\n\t\t\tif (!(target !== null && Object.values(refs.current).some((element) => element?.contains(target)))) setPinnedPosition(null);\n\t\t};\n\t\tdocument.addEventListener(\"pointerdown\", handlePointerDown);\n\t\treturn () => document.removeEventListener(\"pointerdown\", handlePointerDown);\n\t}, [pinnedPosition]);\n\tconst grouped = getGroupedNotifications(data.notifications, position);\n\tconst pinnedCount = pinnedPosition ? grouped[pinnedPosition].length : 0;\n\tuseEffect(() => {\n\t\tif (layout !== \"stacked\" || pinnedPosition !== null && pinnedCount === 0) setPinnedPosition(null);\n\t}, [\n\t\tpinnedCount,\n\t\tpinnedPosition,\n\t\tlayout\n\t]);\n\tuseEffect(() => {\n\t\tif (layout !== \"stacked\") setHoveredGroups((current) => Object.values(current).some(Boolean) ? {} : current);\n\t}, [layout]);\n\tconst resizeObserver = useRef(null);\n\tconst measuredHeights = useRef({});\n\tconst observedIds = useRef(/* @__PURE__ */ new WeakMap());\n\tconst measureNotification = useCallback((id, element) => {\n\t\tconst height = element.offsetHeight;\n\t\tif (measuredHeights.current[id] === height) return false;\n\t\tmeasuredHeights.current[id] = height;\n\t\treturn true;\n\t}, []);\n\tuseEffect(() => {\n\t\tif (layout !== \"stacked\" || typeof ResizeObserver === \"undefined\") return;\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tlet changed = false;\n\t\t\tentries.forEach((entry) => {\n\t\t\t\tconst id = observedIds.current.get(entry.target);\n\t\t\t\tif (id && measureNotification(id, entry.target)) changed = true;\n\t\t\t});\n\t\t\tif (changed) forceUpdate();\n\t\t});\n\t\tresizeObserver.current = observer;\n\t\tObject.values(refs.current).forEach((element) => element && observer.observe(element));\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t\tresizeObserver.current = null;\n\t\t};\n\t}, [\n\t\tlayout,\n\t\tforceUpdate,\n\t\tmeasureNotification\n\t]);\n\tconst refCallbacks = useRef({});\n\tconst getNotificationRef = useCallback((id) => {\n\t\tif (!refCallbacks.current[id]) refCallbacks.current[id] = (node) => {\n\t\t\tconst previous = refs.current[id];\n\t\t\tif (previous && previous !== node) {\n\t\t\t\tresizeObserver.current?.unobserve(previous);\n\t\t\t\tobservedIds.current.delete(previous);\n\t\t\t}\n\t\t\tif (node) {\n\t\t\t\trefs.current[id] = node;\n\t\t\t\tobservedIds.current.set(node, id);\n\t\t\t\tmeasureNotification(id, node);\n\t\t\t\tresizeObserver.current?.observe(node);\n\t\t\t} else {\n\t\t\t\tdelete refs.current[id];\n\t\t\t\tdelete refCallbacks.current[id];\n\t\t\t\tdelete measuredHeights.current[id];\n\t\t\t}\n\t\t};\n\t\treturn refCallbacks.current[id];\n\t}, [measureNotification]);\n\tconst duration = (theme.respectReducedMotion ? shouldReduceMotion : false) ? 1 : transitionDuration;\n\tconst getStyles = useStyles({\n\t\tname: \"Notifications\",\n\t\tclasses: Notifications_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tuseEffect(() => {\n\t\tstore?.updateState((current) => ({\n\t\t\t...current,\n\t\t\tlimit: limit || 5,\n\t\t\tdefaultPosition: position\n\t\t}));\n\t}, [limit, position]);\n\tuseDidUpdate(() => {\n\t\tif (data.notifications.length > previousLength.current) setTimeout(() => forceUpdate(), 0);\n\t\tpreviousLength.current = data.notifications.length;\n\t}, [data.notifications]);\n\tconst groupedComponents = positions.reduce((acc, pos) => {\n\t\tconst groupLength = grouped[pos].length;\n\t\tconst expandedOffsets = new Array(groupLength).fill(0);\n\t\tconst stackExpanded = layout === \"stacked\" && !!expandedPositions[pos];\n\t\tconst stackOrder = layout === \"stacked\" ? [...grouped[pos]].sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0) || (b.__sequence ?? 0) - (a.__sequence ?? 0)) : grouped[pos];\n\t\tif (stackExpanded && groupLength > 0) {\n\t\t\tconst direction = pos.startsWith(\"top\") ? 1 : -1;\n\t\t\tlet cumOffset = 0;\n\t\t\tfor (let i = 0; i < groupLength; i += 1) {\n\t\t\t\texpandedOffsets[i] = cumOffset * direction;\n\t\t\t\tcumOffset += (measuredHeights.current[stackOrder[i].id] || FALLBACK_NOTIFICATION_HEIGHT) + STACK_EXPANDED_GAP;\n\t\t\t}\n\t\t}\n\t\tacc[pos] = stackOrder.map((item, stackIndex) => {\n\t\t\tconst { style: notificationStyle, ...notification } = item;\n\t\t\treturn /* @__PURE__ */ jsx(Transition$1, {\n\t\t\t\ttimeout: duration,\n\t\t\t\tonEnter: () => refs.current[notification.id].offsetHeight,\n\t\t\t\tnodeRef: { current: refs.current[notification.id] },\n\t\t\t\tchildren: (state) => /* @__PURE__ */ jsx(NotificationContainer, {\n\t\t\t\t\tref: getNotificationRef(notification.id),\n\t\t\t\t\tdata: notification,\n\t\t\t\t\tonHide: (id) => hideNotification(id, store),\n\t\t\t\t\tautoClose,\n\t\t\t\t\ttransitionDuration: duration,\n\t\t\t\t\tallowDragDismiss,\n\t\t\t\t\tallowScrollDismiss,\n\t\t\t\t\tpaused: (pauseResetOnHover === \"all\" ? hoveredCount > 0 : false) || layout === \"stacked\" && !stackExpanded && stackIndex > 0,\n\t\t\t\t\tonHoverStart: () => handleHoverStart(pos),\n\t\t\t\t\tonHoverEnd: () => handleHoverEnd(pos),\n\t\t\t\t\tonExpandRequest: () => handleExpandRequest(pos),\n\t\t\t\t\trenderNotification: \"renderNotification\" in notification ? notification.renderNotification : renderNotification,\n\t\t\t\t\tlayout,\n\t\t\t\t\twithAutoCloseProgress,\n\t\t\t\t\tautoCloseProgressPosition,\n\t\t\t\t\tprogressProps: getStyles(\"progress\"),\n\t\t\t\t\tstackIndex,\n\t\t\t\t\tstackSize: groupLength,\n\t\t\t\t\tstackPosition: pos,\n\t\t\t\t\tstackExpanded,\n\t\t\t\t\tstackExpandedOffset: expandedOffsets[stackIndex],\n\t\t\t\t\ttransitionState: state,\n\t\t\t\t\t...getStyles(\"notification\", { style: {\n\t\t\t\t\t\t...getNotificationStateStyles({\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tposition: pos,\n\t\t\t\t\t\t\ttransitionDuration: duration,\n\t\t\t\t\t\t\tmaxHeight: notificationMaxHeight\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t...notificationStyle\n\t\t\t\t\t} })\n\t\t\t\t})\n\t\t\t}, notification.id);\n\t\t});\n\t\treturn acc;\n\t}, {});\n\treturn /* @__PURE__ */ jsxs(OptionalPortal, {\n\t\twithinPortal,\n\t\t...portalProps,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\"),\n\t\t\t\t\"data-position\": \"top-center\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"top-center\"),\n\t\t\t\t\tchildren: groupedComponents[\"top-center\"]\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\"),\n\t\t\t\t\"data-position\": \"top-left\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"top-left\"),\n\t\t\t\t\tchildren: groupedComponents[\"top-left\"]\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\", { className: RemoveScroll.classNames.fullWidth }),\n\t\t\t\t\"data-position\": \"top-right\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"top-right\"),\n\t\t\t\t\tchildren: groupedComponents[\"top-right\"]\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\", { className: RemoveScroll.classNames.fullWidth }),\n\t\t\t\t\"data-position\": \"bottom-right\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"bottom-right\"),\n\t\t\t\t\tchildren: groupedComponents[\"bottom-right\"]\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\"),\n\t\t\t\t\"data-position\": \"bottom-left\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"bottom-left\"),\n\t\t\t\t\tchildren: groupedComponents[\"bottom-left\"]\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"root\"),\n\t\t\t\t\"data-position\": \"bottom-center\",\n\t\t\t\t\"data-layout\": layout,\n\t\t\t\t...others,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(TransitionGroup, {\n\t\t\t\t\t...getGroupHoverProps(\"bottom-center\"),\n\t\t\t\t\tchildren: groupedComponents[\"bottom-center\"]\n\t\t\t\t})\n\t\t\t})\n\t\t]\n\t});\n});\nNotifications.classes = Notifications_module_default;\nNotifications.varsResolver = varsResolver;\nNotifications.displayName = \"@mantine/notifications/Notifications\";\nNotifications.show = notifications.show;\nNotifications.hide = notifications.hide;\nNotifications.update = notifications.update;\nNotifications.promise = notifications.promise;\nNotifications.clean = notifications.clean;\nNotifications.cleanQueue = notifications.cleanQueue;\nNotifications.updateState = notifications.updateState;\nexport { Notifications };\n\n//# sourceMappingURL=Notifications.mjs.map","// src/subscribable.ts\n/**\n* The base class behind everything in Query that you can subscribe to: `QueryCache`, `MutationCache`,\n* the observers, and the `FocusManager`/`OnlineManager` behind `focusManager` and `onlineManager`.\n* Subclasses decide what a listener receives and when it is called.\n*/\nvar Subscribable = class {\n\tconstructor() {\n\t\tthis.listeners = /* @__PURE__ */ new Set();\n\t\tthis.subscribe = this.subscribe.bind(this);\n\t}\n\t/**\n\t* Registers a listener to be called on every update this object notifies about. Returns a function\n\t* that removes the listener again — call it to stop listening. The base class never drops a listener\n\t* on its own, though some subclasses clear all of theirs in `destroy()`.\n\t* @param listener - Called on each update, with whatever the subclass passes to its subscribers.\n\t* @returns A function that removes the listener.\n\t* @example\n\t* ```ts\n\t* const unsubscribe = subscribable.subscribe(() => {\n\t*   // react to the update\n\t* })\n\t*\n\t* unsubscribe()\n\t* ```\n\t*/\n\tsubscribe(listener) {\n\t\tthis.listeners.add(listener);\n\t\tthis.onSubscribe();\n\t\treturn () => {\n\t\t\tthis.listeners.delete(listener);\n\t\t\tthis.onUnsubscribe();\n\t\t};\n\t}\n\t/**\n\t* Returns `true` while at least one listener is registered, `false` once they have all unsubscribed.\n\t* @returns `true` if at least one listener is registered.\n\t*/\n\thasListeners() {\n\t\treturn this.listeners.size > 0;\n\t}\n\t/**\n\t* Called after a listener is added. Does nothing here; subclasses override it, e.g. to start\n\t* tracking what they observe once the first listener subscribes.\n\t*/\n\tonSubscribe() {}\n\t/**\n\t* Called after a listener is removed. Does nothing here; subclasses override it, e.g. to clean up\n\t* once the last listener unsubscribes.\n\t*/\n\tonUnsubscribe() {}\n};\nexport { Subscribable };\n\n//# sourceMappingURL=subscribable.js.map","import { Subscribable } from \"./subscribable.js\";\n// src/focusManager.ts\n/**\n* The `FocusManager` manages the focus state within TanStack Query.\n*\n* It can be used to change the default event listeners or to manually change the focus state.\n*/\nvar FocusManager = class extends Subscribable {\n\t#focused;\n\t#cleanup;\n\t#setup;\n\tconstructor() {\n\t\tsuper();\n\t\tthis.#setup = (onFocus) => {\n\t\t\tif (typeof window !== \"undefined\" && window.addEventListener) {\n\t\t\t\tconst listener = () => onFocus();\n\t\t\t\twindow.addEventListener(\"visibilitychange\", listener, false);\n\t\t\t\treturn () => {\n\t\t\t\t\twindow.removeEventListener(\"visibilitychange\", listener);\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t}\n\tonSubscribe() {\n\t\tif (!this.#cleanup) this.setEventListener(this.#setup);\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) {\n\t\t\tthis.#cleanup?.();\n\t\t\tthis.#cleanup = void 0;\n\t\t}\n\t}\n\t/**\n\t* `setEventListener` can be used to set a custom event listener that will\n\t* be used to determine the focus state. The provided `setup` function\n\t* receives a `setFocused` callback: call it with a `boolean` to manually\n\t* set the focus state, or with no arguments to re-evaluate the current\n\t* focus state and notify subscribers.\n\t* @param setup - Receives the `setFocused` callback, registers the event listener, and may return\n\t* a cleanup function that is called when the listener is replaced or no longer needed.\n\t* @example\n\t* ```ts\n\t* import { focusManager } from '@tanstack/query-core'\n\t*\n\t* focusManager.setEventListener((handleFocus) => {\n\t*   const listener = () => handleFocus()\n\t*   // Listen to visibilitychange\n\t*   if (typeof window !== 'undefined' && window.addEventListener) {\n\t*     window.addEventListener('visibilitychange', listener, false)\n\t*   }\n\t*\n\t*   return () => {\n\t*     // Be sure to unsubscribe if a new handler is set\n\t*     window.removeEventListener('visibilitychange', listener)\n\t*   }\n\t* })\n\t* ```\n\t*/\n\tsetEventListener(setup) {\n\t\tthis.#setup = setup;\n\t\tthis.#cleanup?.();\n\t\tthis.#cleanup = setup((focused) => {\n\t\t\tif (typeof focused === \"boolean\") this.setFocused(focused);\n\t\t\telse this.onFocus();\n\t\t});\n\t}\n\t/**\n\t* `setFocused` can be used to manually set the focus state. Set `undefined`\n\t* to fall back to the default focus check.\n\t* @param focused - The focus state, or `undefined` to use the default focus check.\n\t* @example\n\t* ```ts\n\t* import { focusManager } from '@tanstack/query-core'\n\t*\n\t* // Set focused\n\t* focusManager.setFocused(true)\n\t*\n\t* // Set unfocused\n\t* focusManager.setFocused(false)\n\t*\n\t* // Fallback to the default focus check\n\t* focusManager.setFocused(undefined)\n\t* ```\n\t*/\n\tsetFocused(focused) {\n\t\tif (this.#focused !== focused) {\n\t\t\tthis.#focused = focused;\n\t\t\tthis.onFocus();\n\t\t}\n\t}\n\t/**\n\t* `onFocus` notifies all subscribed listeners with the current focus state.\n\t*/\n\tonFocus() {\n\t\tconst isFocused = this.isFocused();\n\t\tthis.listeners.forEach((listener) => {\n\t\t\tlistener(isFocused);\n\t\t});\n\t}\n\t/**\n\t* `isFocused` can be used to get the current focus state.\n\t* @returns The focus state set with `setFocused`, or otherwise whether the document is visible.\n\t*/\n\tisFocused() {\n\t\tif (typeof this.#focused === \"boolean\") return this.#focused;\n\t\treturn globalThis.document?.visibilityState !== \"hidden\";\n\t}\n};\n/**\n* Singleton instance of {@link FocusManager}, used to manage and observe the focus state within TanStack Query.\n*/\nconst focusManager = new FocusManager();\nexport { FocusManager, focusManager };\n\n//# sourceMappingURL=focusManager.js.map","// src/timeoutManager.ts\nconst defaultTimeoutProvider = {\n\tsetTimeout: (callback, delay) => setTimeout(callback, delay),\n\tclearTimeout: (timeoutId) => clearTimeout(timeoutId),\n\tsetInterval: (callback, delay) => setInterval(callback, delay),\n\tclearInterval: (intervalId) => clearInterval(intervalId)\n};\n/**\n* Allows customization of how timeouts are created.\n*\n* `@tanstack/query-core` makes liberal use of timeouts to implement `staleTime`\n* and `gcTime`. The default TimeoutManager provider uses the platform's global\n* `setTimeout` implementation, which is known to have scalability issues with\n* thousands of timeouts on the event loop.\n*\n* If you hit this limitation, consider providing a custom TimeoutProvider that\n* coalesces timeouts.\n*/\nvar TimeoutManager = class {\n\t#provider = defaultTimeoutProvider;\n\t#providerCalled = false;\n\t/**\n\t* `setTimeoutProvider` can be used to set a custom implementation of the\n\t* `setTimeout`, `clearTimeout`, `setInterval`, `clearInterval` functions,\n\t* called a `TimeoutProvider`.\n\t*\n\t* This may be useful if you notice event loop performance issues with\n\t* thousands of queries. A custom TimeoutProvider could also support timer\n\t* delays longer than the global `setTimeout` maximum delay value of about\n\t* 24 days.\n\t*\n\t* It is important to call `setTimeoutProvider` before creating a\n\t* QueryClient or queries, so that the same provider is used consistently\n\t* for all timers in the application, since different TimeoutProviders\n\t* cannot cancel each others' timers.\n\t* @param provider - The `TimeoutProvider` to use for all timers from now on.\n\t* @example\n\t* ```ts\n\t* import { timeoutManager, QueryClient } from '@tanstack/query-core'\n\t* import { CustomTimeoutProvider } from './CustomTimeoutProvider'\n\t*\n\t* timeoutManager.setTimeoutProvider(new CustomTimeoutProvider())\n\t*\n\t* export const queryClient = new QueryClient()\n\t* ```\n\t*/\n\tsetTimeoutProvider(provider) {\n\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\tif (this.#providerCalled && provider !== this.#provider) console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`, {\n\t\t\t\tprevious: this.#provider,\n\t\t\t\tprovider\n\t\t\t});\n\t\t}\n\t\tthis.#provider = provider;\n\t\tif (process.env.NODE_ENV !== \"production\") this.#providerCalled = false;\n\t}\n\t/**\n\t* `setTimeout` schedules a callback to run after approximately `delay`\n\t* milliseconds, like the global `setTimeout` function. The callback can be\n\t* canceled with `clearTimeout`.\n\t*\n\t* It returns a timer ID, which may be a number or an object that can be\n\t* coerced to a number via `Symbol.toPrimitive`.\n\t* @param callback - The function to call when the timeout elapses.\n\t* @param delay - The time to wait before calling `callback`, in milliseconds.\n\t* @returns The timer ID, to pass to {@link TimeoutManager#clearTimeout}.\n\t* @example\n\t* ```ts\n\t* import { timeoutManager } from '@tanstack/query-core'\n\t*\n\t* const timeoutId = timeoutManager.setTimeout(\n\t*   () => console.log('ran at:', new Date()),\n\t*   1000,\n\t* )\n\t*\n\t* const timeoutIdNumber: number = Number(timeoutId)\n\t* ```\n\t*/\n\tsetTimeout(callback, delay) {\n\t\tif (process.env.NODE_ENV !== \"production\") this.#providerCalled = true;\n\t\treturn this.#provider.setTimeout(callback, delay);\n\t}\n\t/**\n\t* `clearTimeout` cancels a timeout callback scheduled with `setTimeout`,\n\t* like the global `clearTimeout` function. It should be called with a\n\t* timer ID returned by `setTimeout`.\n\t* @param timeoutId - The timer ID returned by `setTimeout`, or `undefined`.\n\t* @example\n\t* ```ts\n\t* import { timeoutManager } from '@tanstack/query-core'\n\t*\n\t* const timeoutId = timeoutManager.setTimeout(\n\t*   () => console.log('ran at:', new Date()),\n\t*   1000,\n\t* )\n\t*\n\t* timeoutManager.clearTimeout(timeoutId)\n\t* ```\n\t*/\n\tclearTimeout(timeoutId) {\n\t\tthis.#provider.clearTimeout(timeoutId);\n\t}\n\t/**\n\t* `setInterval` schedules a callback to be called approximately every\n\t* `delay` milliseconds, like the global `setInterval` function.\n\t*\n\t* Like `setTimeout`, it returns a timer ID, which may be a number or an\n\t* object that can be coerced to a number via `Symbol.toPrimitive`.\n\t* @param callback - The function to call on every interval.\n\t* @param delay - The time between calls, in milliseconds.\n\t* @returns The timer ID, to pass to {@link TimeoutManager#clearInterval}.\n\t* @example\n\t* ```ts\n\t* import { timeoutManager } from '@tanstack/query-core'\n\t*\n\t* const intervalId = timeoutManager.setInterval(\n\t*   () => console.log('ran at:', new Date()),\n\t*   1000,\n\t* )\n\t* ```\n\t*/\n\tsetInterval(callback, delay) {\n\t\tif (process.env.NODE_ENV !== \"production\") this.#providerCalled = true;\n\t\treturn this.#provider.setInterval(callback, delay);\n\t}\n\t/**\n\t* `clearInterval` can be used to cancel an interval, like the global\n\t* `clearInterval` function. It should be called with an interval ID\n\t* returned by `setInterval`.\n\t* @param intervalId - The timer ID returned by `setInterval`, or `undefined`.\n\t* @example\n\t* ```ts\n\t* import { timeoutManager } from '@tanstack/query-core'\n\t*\n\t* const intervalId = timeoutManager.setInterval(\n\t*   () => console.log('ran at:', new Date()),\n\t*   1000,\n\t* )\n\t*\n\t* timeoutManager.clearInterval(intervalId)\n\t* ```\n\t*/\n\tclearInterval(intervalId) {\n\t\tthis.#provider.clearInterval(intervalId);\n\t}\n};\n/**\n* Singleton instance of {@link TimeoutManager}, used throughout TanStack Query to schedule and cancel timers.\n*/\nconst timeoutManager = new TimeoutManager();\n/**\n* In many cases code wants to delay to the next event loop tick; this is not\n* mediated by {@link timeoutManager}.\n*\n* This function is provided to make auditing the `tanstack/query-core` for\n* incorrect use of system `setTimeout` easier.\n* @param callback - The function to call on the next event loop tick.\n*/\nfunction systemSetTimeoutZero(callback) {\n\tsetTimeout(callback, 0);\n}\nexport { TimeoutManager, defaultTimeoutProvider, systemSetTimeoutZero, timeoutManager };\n\n//# sourceMappingURL=timeoutManager.js.map","import { systemSetTimeoutZero } from \"./timeoutManager.js\";\n// src/notifyManager.ts\n/**\n* Default scheduling function used by the notify manager.\n* Schedules the callback with the system's `setTimeout(callback, 0)`.\n*/\nconst defaultScheduler = systemSetTimeoutZero;\n/**\n* Creates a notify manager, which schedules and batches notifications to subscribers. Query uses a\n* single instance of it, exported as {@link notifyManager}.\n* @returns A new notify manager.\n*/\nfunction createNotifyManager() {\n\tlet queue = [];\n\tlet transactions = 0;\n\tlet notifyFn = (callback) => {\n\t\tcallback();\n\t};\n\tlet batchNotifyFn = (callback) => {\n\t\tcallback();\n\t};\n\tlet scheduleFn = defaultScheduler;\n\tconst schedule = (callback) => {\n\t\tif (transactions) queue.push(callback);\n\t\telse scheduleFn(() => {\n\t\t\tnotifyFn(callback);\n\t\t});\n\t};\n\tconst flush = () => {\n\t\tconst originalQueue = queue;\n\t\tqueue = [];\n\t\tif (originalQueue.length) scheduleFn(() => {\n\t\t\tbatchNotifyFn(() => {\n\t\t\t\toriginalQueue.forEach((callback) => {\n\t\t\t\t\tnotifyFn(callback);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n\treturn {\n\t\t/**\n\t\t* Batches all updates scheduled inside the passed callback.\n\t\t* This is mainly used internally to optimize query client updating.\n\t\t* Batches can be nested; the queue is only flushed once the outermost `batch` call finishes.\n\t\t* The return value of `callback` is passed through.\n\t\t* @param callback - The function to run in the batch.\n\t\t* @returns The return value of `callback`.\n\t\t*/\n\t\tbatch: (callback) => {\n\t\t\tlet result;\n\t\t\ttransactions++;\n\t\t\ttry {\n\t\t\t\tresult = callback();\n\t\t\t} finally {\n\t\t\t\ttransactions--;\n\t\t\t\tif (!transactions) flush();\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t\t/**\n\t\t* All calls to the wrapped function will be batched.\n\t\t* @param callback - The function to wrap.\n\t\t* @returns A function that schedules a call to `callback` with the given arguments.\n\t\t*/\n\t\tbatchCalls: (callback) => {\n\t\t\treturn (...args) => {\n\t\t\t\tschedule(() => {\n\t\t\t\t\tcallback(...args);\n\t\t\t\t});\n\t\t\t};\n\t\t},\n\t\t/**\n\t\t* Schedules a function to be run on the next batch.\n\t\t* By default, the batch is run with a `setTimeout`, but this can be configured via `setScheduler`.\n\t\t*/\n\t\tschedule,\n\t\t/**\n\t\t* Use this method to set a custom notify function.\n\t\t* This can be used to for example wrap notifications with `React.act` while running tests.\n\t\t* @param fn - Receives each notification callback and must call it.\n\t\t*/\n\t\tsetNotifyFunction: (fn) => {\n\t\t\tnotifyFn = fn;\n\t\t},\n\t\t/**\n\t\t* Use this method to set a custom function to batch notifications together into a single tick.\n\t\t* Framework adapters use this to plug in their own batching primitive, so that a single query\n\t\t* update only triggers one re-render instead of one per subscriber.\n\t\t* @param fn - Receives a function that runs a batch of notifications and must call it.\n\t\t* @example\n\t\t* ```ts\n\t\t* import { notifyManager } from '@tanstack/query-core'\n\t\t* import { batch } from 'solid-js'\n\t\t*\n\t\t* notifyManager.setBatchNotifyFunction(batch)\n\t\t* ```\n\t\t*/\n\t\tsetBatchNotifyFunction: (fn) => {\n\t\t\tbatchNotifyFn = fn;\n\t\t},\n\t\t/**\n\t\t* Configures a custom callback that schedules when the next batch runs.\n\t\t* The default behavior is `setTimeout(callback, 0)`.\n\t\t* @param fn - Receives a callback that runs the next batch, and schedules it.\n\t\t* @example\n\t\t* ```ts\n\t\t* import { notifyManager } from '@tanstack/query-core'\n\t\t*\n\t\t* // Schedule batches in the next microtask\n\t\t* notifyManager.setScheduler(queueMicrotask)\n\t\t*\n\t\t* // Schedule batches before the next frame is rendered\n\t\t* notifyManager.setScheduler(requestAnimationFrame)\n\t\t*\n\t\t* // Schedule batches some time in the future\n\t\t* notifyManager.setScheduler((cb) => setTimeout(cb, 10))\n\t\t* ```\n\t\t*/\n\t\tsetScheduler: (fn) => {\n\t\t\tscheduleFn = fn;\n\t\t}\n\t};\n}\n/**\n* Handles scheduling and batching callbacks in TanStack Query.\n*/\nconst notifyManager = createNotifyManager();\nexport { createNotifyManager, defaultScheduler, notifyManager };\n\n//# sourceMappingURL=notifyManager.js.map","import { timeoutManager } from \"./timeoutManager.js\";\n// src/utils.ts\n/**\n* @deprecated use `environmentManager.isServer()` instead.\n*/\nconst isServer = typeof window === \"undefined\" || \"Deno\" in globalThis;\nfunction noop() {}\n/**\n* Resolves an {@link Updater}: calls it with `input` if it is a function, otherwise returns it as\n* is.\n* @param updater - The new value, or a function that receives `input` and returns the new value.\n* @param input - The current value, passed to `updater` if it is a function.\n* @returns The new value.\n*/\nfunction functionalUpdate(updater, input) {\n\treturn typeof updater === \"function\" ? updater(input) : updater;\n}\n/**\n* Checks whether a value can be used as a timeout: a non-negative, finite number.\n* @param value - The value to check.\n* @returns `true` if `value` is a number that is `>= 0` and not `Infinity`.\n*/\nfunction isValidTimeout(value) {\n\treturn typeof value === \"number\" && value >= 0 && value !== Infinity;\n}\n/**\n* Calculates how long until data updated at `updatedAt` becomes stale.\n* @param updatedAt - The timestamp, in milliseconds, at which the data was last updated.\n* @param staleTime - The time, in milliseconds, after which data is considered stale. Defaults to\n* `0`.\n* @returns The remaining time in milliseconds, or `0` if the data is already stale.\n*/\nfunction timeUntilStale(updatedAt, staleTime) {\n\treturn Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);\n}\n/**\n* Resolves an option that can be given either as a value or as a function of the query, such as\n* `staleTime`.\n* @param value - The option value, or a function that receives `query` and returns the value.\n* @param query - The query passed to `value` if it is a function.\n* @returns The resolved value, or `undefined` if `value` is `undefined`.\n*/\nfunction resolveQueryValue(value, query) {\n\treturn typeof value === \"function\" ? value(query) : value;\n}\n/**\n* Checks whether a query matches the given {@link QueryFilters}.\n* Every filter that is specified must match; filters that are left unspecified are ignored.\n* @param filters - The filters to check the query against.\n* @param query - The query to check.\n* @returns `true` if the query matches every specified filter.\n* @example\n* ```ts\n* const queryCache = queryClient.getQueryCache()\n*\n* const matchingQueries = queryCache\n*   .getAll()\n*   .filter((query) => matchQuery({ queryKey: ['posts'] }, query))\n* ```\n*/\nfunction matchQuery(filters, query) {\n\tconst { type = \"all\", exact, fetchStatus, predicate, queryKey, stale } = filters;\n\tif (queryKey) {\n\t\tif (exact) {\n\t\t\tif (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) return false;\n\t\t} else if (!partialMatchKey(query.queryKey, queryKey)) return false;\n\t}\n\tif (type !== \"all\") {\n\t\tconst isActive = query.isActive();\n\t\tif (type === \"active\" && !isActive) return false;\n\t\tif (type === \"inactive\" && isActive) return false;\n\t}\n\tif (typeof stale === \"boolean\" && query.isStale() !== stale) return false;\n\tif (fetchStatus && fetchStatus !== query.state.fetchStatus) return false;\n\tif (predicate && !predicate(query)) return false;\n\treturn true;\n}\n/**\n* Checks whether a mutation matches the given {@link MutationFilters}.\n* Every filter that is specified must match; filters that are left unspecified are ignored.\n* If a `mutationKey` filter is provided but the mutation has no `mutationKey` of its own, it does not match.\n* @param filters - The filters to check the mutation against.\n* @param mutation - The mutation to check.\n* @returns `true` if the mutation matches every specified filter.\n* @example\n* ```ts\n* const mutationCache = queryClient.getMutationCache()\n*\n* const matchingMutations = mutationCache\n*   .getAll()\n*   .filter((mutation) => matchMutation({ mutationKey: ['addPost'] }, mutation))\n* ```\n*/\nfunction matchMutation(filters, mutation) {\n\tconst { exact, status, predicate, mutationKey } = filters;\n\tif (mutationKey) {\n\t\tif (!mutation.options.mutationKey) return false;\n\t\tif (exact) {\n\t\t\tif (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) return false;\n\t\t} else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) return false;\n\t}\n\tif (status && mutation.state.status !== status) return false;\n\tif (predicate && !predicate(mutation)) return false;\n\treturn true;\n}\n/**\n* Hashes a query key with the query's `queryKeyHashFn` option, falling back to {@link hashKey}.\n* @param queryKey - The query key to hash.\n* @param options - The query options that may provide a custom `queryKeyHashFn`.\n* @returns The query hash, a string that identifies the query in the cache.\n*/\nfunction hashQueryKeyByOptions(queryKey, options) {\n\treturn (options?.queryKeyHashFn || hashKey)(queryKey);\n}\n/**\n* Default query & mutation keys hash function.\n* Hashes the value into a stable hash.\n* @param queryKey - The query or mutation key to hash.\n* @returns The stable hash of the key, as a JSON string.\n* @example\n* ```ts\n* // Object keys are sorted, so key order doesn't affect the hash:\n* hashKey(['todos', { page: 1, filter: 'done' }]) // === '[\"todos\",{\"filter\":\"done\",\"page\":1}]'\n* ```\n*/\nfunction hashKey(queryKey) {\n\treturn JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {\n\t\tresult[key] = val[key];\n\t\treturn result;\n\t}, {}) : val);\n}\nfunction partialMatchKey(a, b) {\n\tif (a === b) return true;\n\tif (typeof a !== typeof b) return false;\n\tif (a && b && typeof a === \"object\" && typeof b === \"object\") {\n\t\tif (Array.isArray(a) !== Array.isArray(b)) return false;\n\t\tif (Array.isArray(a) && Array.isArray(b)) {\n\t\t\tif (b.length > a.length) return false;\n\t\t\tfor (let i = 0; i < b.length; i++) if (!partialMatchKey(a[i], b[i])) return false;\n\t\t\treturn true;\n\t\t}\n\t\tconst bKeys = Object.keys(b);\n\t\tfor (const key of bKeys) if (!partialMatchKey(a[key], b[key])) return false;\n\t\treturn true;\n\t}\n\treturn false;\n}\nconst hasOwn = Object.prototype.hasOwnProperty;\nfunction replaceEqualDeep(a, b, depth = 0) {\n\tif (a === b) return a;\n\tif (depth > 500) return b;\n\tconst array = isPlainArray(a) && isPlainArray(b);\n\tif (!array && !(isPlainObject(a) && isPlainObject(b))) return b;\n\tconst aSize = (array ? a : Object.keys(a)).length;\n\tconst bItems = array ? b : Object.keys(b);\n\tconst bSize = bItems.length;\n\tconst copy = array ? new Array(bSize) : {};\n\tlet equalItems = 0;\n\tfor (let i = 0; i < bSize; i++) {\n\t\tconst key = array ? i : bItems[i];\n\t\tconst aItem = a[key];\n\t\tconst bItem = b[key];\n\t\tif (aItem === bItem) {\n\t\t\tcopy[key] = aItem;\n\t\t\tif (array ? i < aSize : hasOwn.call(a, key)) equalItems++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (aItem === null || bItem === null || typeof aItem !== \"object\" || typeof bItem !== \"object\") {\n\t\t\tcopy[key] = bItem;\n\t\t\tcontinue;\n\t\t}\n\t\tconst v = replaceEqualDeep(aItem, bItem, depth + 1);\n\t\tcopy[key] = v;\n\t\tif (v === aItem) equalItems++;\n\t}\n\treturn aSize === bSize && equalItems === aSize ? a : copy;\n}\n/**\n* Shallow compare objects.\n* @param a - The first object.\n* @param b - The second object, or `undefined`.\n* @returns `true` if both objects have the same keys, with strictly equal values for each key.\n*/\nfunction shallowEqualObjects(a, b) {\n\tif (!b || Object.keys(a).length !== Object.keys(b).length) return false;\n\tfor (const key of Object.keys(a)) if (!hasOwn.call(b, key) || a[key] !== b[key]) return false;\n\treturn true;\n}\n/**\n* Checks whether a value is an array with no holes and no extra properties.\n* @param value - The value to check.\n* @returns `true` if `value` is an array whose number of own keys equals its `length`.\n*/\nfunction isPlainArray(value) {\n\treturn Array.isArray(value) && value.length === Object.keys(value).length;\n}\n/**\n* Checks whether a value is a plain object, e.g. created with an object literal or\n* `Object.create(null)`.\n* @param o - The value to check.\n* @returns `true` if `o` is a plain object.\n*/\nfunction isPlainObject(o) {\n\tif (!hasObjectPrototype(o)) return false;\n\tconst objectPrototype = Object.getPrototypeOf(o);\n\tconst ctor = objectPrototype?.constructor;\n\tif (ctor === void 0) return true;\n\tif (typeof ctor !== \"function\") return false;\n\tconst prot = ctor.prototype;\n\tif (!hasObjectPrototype(prot)) return false;\n\tif (!prot.hasOwnProperty(\"isPrototypeOf\")) return false;\n\tif (objectPrototype !== Object.prototype) return false;\n\treturn true;\n}\n/**\n* Checks whether a value's `Object.prototype.toString` tag is `[object Object]`.\n* @param o - The value to check.\n* @returns `true` if the tag is `[object Object]`.\n*/\nfunction hasObjectPrototype(o) {\n\treturn Object.prototype.toString.call(o) === \"[object Object]\";\n}\n/**\n* Waits for the given time, using the configured {@link timeoutManager}.\n* @param timeout - The time to wait, in milliseconds.\n* @returns A promise that resolves after `timeout` milliseconds.\n*/\nfunction sleep(timeout) {\n\treturn new Promise((resolve) => {\n\t\ttimeoutManager.setTimeout(resolve, timeout);\n\t});\n}\n/**\n* Applies a query's `structuralSharing` option when writing new data.\n* @param prevData - The previously cached data.\n* @param data - The new data.\n* @param options - The query options, whose `structuralSharing` decides how the data is merged.\n* @returns The result of a custom `structuralSharing` function, `data` with its unchanged parts\n* replaced by those of `prevData` by default, or `data` as is if `structuralSharing` is `false`.\n* @throws {Error} The error from the default structural sharing, e.g. when the data is not JSON serializable.\n* Outside production, it is also logged to the console.\n*/\nfunction replaceData(prevData, data, options) {\n\tif (typeof options.structuralSharing === \"function\") return options.structuralSharing(prevData, data);\n\telse if (options.structuralSharing !== false) {\n\t\tif (process.env.NODE_ENV !== \"production\") try {\n\t\t\treturn replaceEqualDeep(prevData, data);\n\t\t} catch (error) {\n\t\t\tconsole.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`);\n\t\t\tthrow error;\n\t\t}\n\t\treturn replaceEqualDeep(prevData, data);\n\t}\n\treturn data;\n}\n/**\n* Intended to be passed as a query's `placeholderData` option, for example\n* `placeholderData: keepPreviousData`. Instead of resetting the query's data to `undefined` while a new\n* query key is fetching, it keeps displaying the previously fetched data until the new data arrives.\n* @param previousData - The data of the previous query key, passed by the observer.\n* @returns The previous data, unchanged.\n* @example\n* ```ts\n* new QueryObserver(queryClient, {\n*   queryKey: ['posts', page],\n*   queryFn: () => fetchPosts(page),\n*   placeholderData: keepPreviousData,\n* })\n* ```\n*/\nfunction keepPreviousData(previousData) {\n\treturn previousData;\n}\n/**\n* Adds an item to one end of a new array. If the result exceeds `max`, removes\n* excess items from the opposite end.\n* @param items - The current items.\n* @param item - The value to add.\n* @param max - The maximum number of items to keep. Omit it or use `0` for no limit.\n* @param prepend - Pass `true` to add at the start. The default is to add at the end.\n* @returns A new array with `item` added.\n*/\nfunction addToArray(items, item, max, prepend) {\n\tconst newItems = prepend ? [item, ...items] : [...items, item];\n\tif (max && newItems.length > max) return prepend ? newItems.slice(0, max) : newItems.slice(-max);\n\treturn newItems;\n}\n/**\n* Sentinel value that can be passed as a query's `queryFn` to conditionally disable the query (equivalent\n* to `enabled: false`) while preserving full type inference for the query's data. Unlike `enabled: false`,\n* a query disabled via `skipToken` cannot be triggered with `refetch`.\n* @example\n* ```ts\n* new QueryObserver(queryClient, {\n*   queryKey: ['post', postId],\n*   queryFn: postId != null ? () => fetchPost(postId) : skipToken,\n* })\n* ```\n*/\nconst skipToken = Symbol();\n/**\n* Returns the function to call for a fetch. If there is no `queryFn` but the fetch was started from\n* an `initialPromise`, that promise is returned instead. If there is no usable `queryFn` (missing or\n* {@link skipToken}), the returned function rejects with a `Missing queryFn` error.\n* @param options - The query options with the `queryFn`, and the `queryHash` used in error messages.\n* @param fetchOptions - The fetch options, which may carry an `initialPromise`.\n* @returns The function to call for the fetch.\n*/\nfunction ensureQueryFn(options, fetchOptions) {\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (options.queryFn === skipToken) console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`);\n\t}\n\tif (!options.queryFn && fetchOptions?.initialPromise) return () => fetchOptions.initialPromise;\n\tif (!options.queryFn || options.queryFn === skipToken) return () => Promise.reject(/* @__PURE__ */ new Error(`Missing queryFn: '${options.queryHash}'`));\n\treturn options.queryFn;\n}\n/**\n* Resolves a `throwOnError` option to a boolean.\n* If `throwOnError` is a function, it is called with `params` (e.g. the error and, depending on the caller,\n* additional context such as the query or mutation) and its result is returned, allowing the throwing\n* behavior to be decided per error. Otherwise, `throwOnError` itself is coerced to a boolean (`undefined`\n* resolves to `false`).\n* @param throwOnError - The `throwOnError` option: a boolean, a function that decides per error, or\n* `undefined`.\n* @param params - The arguments passed to `throwOnError` if it is a function.\n* @returns Whether the error should be thrown.\n* @example\n* ```ts\n* const throwOnError =\n*   query.state.error && typeof options.throwOnError === 'function'\n*     ? shouldThrowError(options.throwOnError, [query.state.error, query])\n*     : options.throwOnError\n* ```\n*/\nfunction shouldThrowError(throwOnError, params) {\n\tif (typeof throwOnError === \"function\") return throwOnError(...params);\n\treturn !!throwOnError;\n}\nconst fetchSignal = Symbol();\n/**\n* Adds a lazy `signal` getter to an object, such as a query function context. The first time\n* `signal` is read, `onCancelled` is registered for the signal's `abort` event (or called right\n* away if it is already aborted), so cancellation is only tracked when the signal is actually used.\n* @param object - The object to add the `signal` property to.\n* @param getSignal - Returns the `AbortSignal`. Called once, when `signal` is first read.\n* @param onCancelled - Called when the signal is aborted, if `signal` was read.\n* @param internalSignal - The fetch signal to forward without consuming the getter.\n* @returns The same object, with the `signal` property added.\n*/\nfunction addConsumeAwareSignal(object, getSignal, onCancelled, internalSignal) {\n\tlet consumed = false;\n\tlet signal;\n\tObject.defineProperties(object, {\n\t\t[fetchSignal]: { value: internalSignal },\n\t\tsignal: {\n\t\t\tenumerable: true,\n\t\t\tget: () => {\n\t\t\t\tsignal ??= getSignal();\n\t\t\t\tif (consumed) return signal;\n\t\t\t\tconsumed = true;\n\t\t\t\tif (signal.aborted) onCancelled();\n\t\t\t\telse signal.addEventListener(\"abort\", onCancelled, { once: true });\n\t\t\t\treturn signal;\n\t\t\t}\n\t\t}\n\t});\n\treturn object;\n}\nexport { addConsumeAwareSignal, addToArray, ensureQueryFn, fetchSignal, functionalUpdate, hashKey, hashQueryKeyByOptions, isPlainArray, isPlainObject, isServer, isValidTimeout, keepPreviousData, matchMutation, matchQuery, noop, partialMatchKey, replaceData, replaceEqualDeep, resolveQueryValue, shallowEqualObjects, shouldThrowError, skipToken, sleep, timeUntilStale };\n\n//# sourceMappingURL=utils.js.map","import { isServer as isServer$1 } from \"./utils.js\";\n// src/environmentManager.ts\nlet isServerFn = () => isServer$1;\n/**\n* Returns whether the current runtime should be treated as a server environment.\n* @returns `true` if the runtime is treated as a server.\n*/\nconst isServer = () => isServerFn();\n/**\n* Manages how TanStack Query detects whether the current runtime should be treated as\n* server-side, which disables scheduling refetch timers and changes the default `retry` count\n* and `gcTime`. By default, the detection treats a missing `window` (or the presence of a\n* `Deno` global) as server.\n*\n* Override this for runtimes where that default detection would give the wrong answer — for\n* example, a Service Worker, where `window` is undefined even though the environment should\n* behave like a client.\n* @example\n* ```ts\n* import { environmentManager } from '@tanstack/query-core'\n*\n* environmentManager.setIsServer(() => false)\n* ```\n*/\nconst environmentManager = {\n\tisServer,\n\t/**\n\t* Overrides the server check globally.\n\t* @param isServerValue - A function that returns whether the runtime should be treated as a\n\t* server.\n\t*/\n\tsetIsServer(isServerValue) {\n\t\tisServerFn = isServerValue;\n\t}\n};\nexport { environmentManager, isServer };\n\n//# sourceMappingURL=environmentManager.js.map","import { isServer } from \"./environmentManager.js\";\nimport { timeoutManager } from \"./timeoutManager.js\";\nimport { isValidTimeout } from \"./utils.js\";\n// src/removable.ts\n/**\n* The base class for cache entries that are garbage collected once nothing is using them —\n* `Query` and `Mutation` both extend it. `gcTime` controls how long an unused entry is kept.\n*/\nvar Removable = class {\n\t#gcTimeout;\n\t/**\n\t* Clears the pending garbage collection timeout, so the entry is no longer scheduled for removal.\n\t* A subclass may override this to release what it holds on to as well — `Query` also cancels any\n\t* in-flight fetch.\n\t*/\n\tdestroy() {\n\t\tthis.clearGcTimeout();\n\t}\n\t/**\n\t* Schedules the entry to be removed from its cache after `gcTime`, replacing any timeout scheduled\n\t* before. Nothing is scheduled if `gcTime` is `Infinity`.\n\t*/\n\tscheduleGc() {\n\t\tthis.clearGcTimeout();\n\t\tif (isValidTimeout(this.gcTime)) this.#gcTimeout = timeoutManager.setTimeout(() => {\n\t\t\tthis.optionalRemove();\n\t\t}, this.gcTime);\n\t}\n\t/**\n\t* Updates `gcTime`, keeping the longest one seen so far. Without a value, it defaults to 5 minutes\n\t* on the client and `Infinity` on the server.\n\t* @param newGcTime - The `gcTime` from the latest options, if any.\n\t*/\n\tupdateGcTime(newGcTime) {\n\t\tthis.gcTime = Math.max(this.gcTime || 0, newGcTime ?? (isServer() ? Infinity : 3e5));\n\t}\n\t/**\n\t* Cancels the scheduled removal, if there is one.\n\t*/\n\tclearGcTimeout() {\n\t\tif (this.#gcTimeout !== void 0) {\n\t\t\ttimeoutManager.clearTimeout(this.#gcTimeout);\n\t\t\tthis.#gcTimeout = void 0;\n\t\t}\n\t}\n};\nexport { Removable };\n\n//# sourceMappingURL=removable.js.map","import { Subscribable } from \"./subscribable.js\";\n// src/onlineManager.ts\n/**\n* The `OnlineManager` manages the online state within TanStack Query. It can\n* be used to change the default event listeners or to manually change the\n* online state.\n*\n* By default, the `onlineManager` assumes an active network connection, and\n* listens to the `online` and `offline` events on the `window` object to\n* detect changes.\n*/\nvar OnlineManager = class extends Subscribable {\n\t#online = true;\n\t#cleanup;\n\t#setup;\n\tconstructor() {\n\t\tsuper();\n\t\tthis.#setup = (onOnline) => {\n\t\t\tif (typeof window !== \"undefined\" && window.addEventListener) {\n\t\t\t\tconst onlineListener = () => onOnline(true);\n\t\t\t\tconst offlineListener = () => onOnline(false);\n\t\t\t\twindow.addEventListener(\"online\", onlineListener, false);\n\t\t\t\twindow.addEventListener(\"offline\", offlineListener, false);\n\t\t\t\treturn () => {\n\t\t\t\t\twindow.removeEventListener(\"online\", onlineListener);\n\t\t\t\t\twindow.removeEventListener(\"offline\", offlineListener);\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t}\n\tonSubscribe() {\n\t\tif (!this.#cleanup) this.setEventListener(this.#setup);\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) {\n\t\t\tthis.#cleanup?.();\n\t\t\tthis.#cleanup = void 0;\n\t\t}\n\t}\n\t/**\n\t* `setEventListener` can be used to set a custom event listener that will\n\t* be used to determine the online state. The provided `setup` function\n\t* receives a `setOnline` callback that should be called with a `boolean`\n\t* whenever the online state changes.\n\t* @param setup - Receives the `setOnline` callback, registers the event listener, and may return\n\t* a cleanup function that is called when the listener is replaced or no longer needed.\n\t* @example\n\t* ```ts\n\t* import NetInfo from '@react-native-community/netinfo'\n\t* import { onlineManager } from '@tanstack/query-core'\n\t*\n\t* onlineManager.setEventListener((setOnline) => {\n\t*   return NetInfo.addEventListener((state) => {\n\t*     setOnline(!!state.isConnected)\n\t*   })\n\t* })\n\t* ```\n\t*/\n\tsetEventListener(setup) {\n\t\tthis.#setup = setup;\n\t\tthis.#cleanup?.();\n\t\tthis.#cleanup = setup(this.setOnline.bind(this));\n\t}\n\t/**\n\t* `setOnline` can be used to manually set the online state.\n\t* @param online - The online state.\n\t* @example\n\t* ```ts\n\t* import { onlineManager } from '@tanstack/query-core'\n\t*\n\t* // Set to online\n\t* onlineManager.setOnline(true)\n\t*\n\t* // Set to offline\n\t* onlineManager.setOnline(false)\n\t* ```\n\t*/\n\tsetOnline(online) {\n\t\tif (this.#online !== online) {\n\t\t\tthis.#online = online;\n\t\t\tthis.listeners.forEach((listener) => {\n\t\t\t\tlistener(online);\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* `isOnline` can be used to get the current online state.\n\t* @returns `true` if online.\n\t*/\n\tisOnline() {\n\t\treturn this.#online;\n\t}\n};\n/**\n* Singleton instance of {@link OnlineManager}, used to manage and observe the online state within TanStack Query.\n*/\nconst onlineManager = new OnlineManager();\nexport { OnlineManager, onlineManager };\n\n//# sourceMappingURL=onlineManager.js.map","import { isServer } from \"./environmentManager.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { noop, sleep } from \"./utils.js\";\n// src/retryer.ts\n/**\n* The default `retryDelay`: doubles with every failure, starting at 1 second, up to 30 seconds.\n* @param failureCount - The number of failures so far.\n* @returns The delay before the next retry, in milliseconds.\n*/\nfunction defaultRetryDelay(failureCount) {\n\treturn Math.min(1e3 * 2 ** failureCount, 3e4);\n}\n/**\n* Checks whether a fetch can run for the given network mode.\n* @param networkMode - The `networkMode` option. Defaults to `'online'`.\n* @returns `true` if the network mode is not `'online'`, or if it is and the client is online.\n*/\nfunction canFetch(networkMode) {\n\treturn (networkMode ?? \"online\") === \"online\" ? onlineManager.isOnline() : true;\n}\n/**\n* The error thrown by a `Retryer` (and surfaced to `query.promise`/`mutation`) when a fetch is cancelled, e.g. via\n* `query.cancel()`. `revert`, if `true`, tells the caller to restore the state the query was in before the fetch\n* started instead of surfacing the error. `silent`, if `true`, tells the caller to suppress this error and instead\n* resolve with the promise of the fetch that triggered the cancellation.\n* @example\n* ```ts\n* query.cancel()\n*\n* try {\n*   await query.promise\n* } catch (error) {\n*   if (error instanceof CancelledError) {\n*     // the fetch was cancelled, e.g. via `query.cancel()`\n*   }\n* }\n* ```\n*/\nvar CancelledError = class extends Error {\n\tconstructor(options) {\n\t\tsuper(\"CancelledError\");\n\t\tthis.revert = options?.revert;\n\t\tthis.silent = options?.silent;\n\t}\n};\n/**\n* Checks whether a value is a `CancelledError`.\n* @param value - The value to check.\n* @returns `true` if `value` is a `CancelledError`.\n* @deprecated Use instanceof `CancelledError` instead.\n*/\nfunction isCancelledError(value) {\n\treturn value instanceof CancelledError;\n}\n/**\n* Creates a retryer, which runs a function and retries it on failure according to the `retry` and\n* `retryDelay` options. It pauses while the network mode doesn't allow fetching or `canRun` returns\n* `false`, and can be cancelled. Queries and mutations use it to run their `queryFn` and\n* `mutationFn`.\n* @param config - The function to run, the retry options, and the callbacks for failures, pausing,\n* continuing, and cancellation.\n* @returns The retryer, whose `promise` settles with the result of the function.\n*/\nfunction createRetryer(config) {\n\tlet isRetryCancelled = false;\n\tlet failureCount = 0;\n\tlet continueFn;\n\tlet status = \"pending\";\n\tlet promiseResolve;\n\tlet promiseReject;\n\tconst promise = new Promise((resolve, reject) => {\n\t\tpromiseResolve = resolve;\n\t\tpromiseReject = reject;\n\t});\n\tpromise.catch(noop);\n\tconst isResolved = () => status !== \"pending\";\n\tconst cancel = (cancelOptions) => {\n\t\tif (!isResolved()) {\n\t\t\tconst error = new CancelledError(cancelOptions);\n\t\t\treject(error);\n\t\t\tconfig.onCancel?.(error);\n\t\t}\n\t};\n\tconst cancelRetry = () => {\n\t\tisRetryCancelled = true;\n\t};\n\tconst continueRetry = () => {\n\t\tisRetryCancelled = false;\n\t};\n\tconst canContinue = () => focusManager.isFocused() && (config.networkMode === \"always\" || onlineManager.isOnline()) && config.canRun();\n\tconst canStart = () => canFetch(config.networkMode) && config.canRun();\n\tconst resolve = (value) => {\n\t\tif (!isResolved()) {\n\t\t\tcontinueFn?.();\n\t\t\tstatus = \"resolved\";\n\t\t\tpromiseResolve(value);\n\t\t}\n\t};\n\tconst reject = (value) => {\n\t\tif (!isResolved()) {\n\t\t\tcontinueFn?.();\n\t\t\tstatus = \"rejected\";\n\t\t\tpromiseReject(value);\n\t\t}\n\t};\n\tconst pause = (canResume) => {\n\t\treturn new Promise((continueResolve) => {\n\t\t\tcontinueFn = (value) => {\n\t\t\t\tif (isResolved() || canResume()) continueResolve(value);\n\t\t\t};\n\t\t\tconfig.onPause?.();\n\t\t}).then(() => {\n\t\t\tcontinueFn = void 0;\n\t\t\tif (!isResolved()) config.onContinue?.();\n\t\t});\n\t};\n\tconst run = () => {\n\t\tif (isResolved()) return;\n\t\tlet promiseOrValue;\n\t\tconst initialPromise = failureCount === 0 ? config.initialPromise : void 0;\n\t\ttry {\n\t\t\tpromiseOrValue = initialPromise ?? config.fn();\n\t\t} catch (error) {\n\t\t\tpromiseOrValue = Promise.reject(error);\n\t\t}\n\t\tPromise.resolve(promiseOrValue).then(resolve).catch((error) => {\n\t\t\tif (isResolved()) return;\n\t\t\tconst retry = config.retry ?? (isServer() ? 0 : 3);\n\t\t\tconst retryDelay = config.retryDelay ?? defaultRetryDelay;\n\t\t\tconst delay = typeof retryDelay === \"function\" ? retryDelay(failureCount, error) : retryDelay;\n\t\t\tconst shouldRetry = retry === true || typeof retry === \"number\" && failureCount < retry || typeof retry === \"function\" && retry(failureCount, error);\n\t\t\tif (isRetryCancelled || !shouldRetry) {\n\t\t\t\treject(error);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfailureCount++;\n\t\t\tconfig.onFail?.(failureCount, error);\n\t\t\tsleep(delay).then(() => {\n\t\t\t\treturn isResolved() || canContinue() ? void 0 : pause(canContinue);\n\t\t\t}).then(() => {\n\t\t\t\tif (isRetryCancelled) reject(error);\n\t\t\t\telse run();\n\t\t\t});\n\t\t});\n\t};\n\treturn {\n\t\tpromise,\n\t\tstatus: () => status,\n\t\tcancel,\n\t\tcontinue: () => {\n\t\t\tcontinueFn?.();\n\t\t\treturn promise;\n\t\t},\n\t\tcancelRetry,\n\t\tcontinueRetry,\n\t\tcanStart,\n\t\tstart: () => {\n\t\t\tif (canStart()) run();\n\t\t\telse pause(canStart).then(run);\n\t\t\treturn promise;\n\t\t}\n\t};\n}\nexport { CancelledError, canFetch, createRetryer, isCancelledError };\n\n//# sourceMappingURL=retryer.js.map","import { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\n// src/mutation.ts\n/**\n* Represents a single mutation attempt. A `Mutation` holds the mutation's\n* options, state (data/error/status), and the `MutationObserver`s currently\n* subscribed to it.\n*\n* Instances are created and managed internally by `MutationCache`; application\n* code typically interacts with mutations indirectly through `QueryClient` or\n* a framework hook like `useMutation`. Direct access to a `Mutation` instance\n* is possible via `mutationCache.find()`/`getAll()` for inspecting cache state.\n* @example\n* ```ts\n* const mutationCache = queryClient.getMutationCache()\n*\n* const mutation = mutationCache.find({ mutationKey: ['addPost'] })\n* ```\n*/\nvar Mutation = class extends Removable {\n\t#client;\n\t#observers;\n\t#mutationCache;\n\t#retryer;\n\tconstructor(config) {\n\t\tsuper();\n\t\tthis.#client = config.client;\n\t\tthis.mutationId = config.mutationId;\n\t\tthis.#mutationCache = config.mutationCache;\n\t\tthis.#observers = [];\n\t\tthis.state = config.state || getDefaultState();\n\t\tthis.setOptions(config.options);\n\t\tthis.scheduleGc();\n\t}\n\t/**\n\t* Replaces the mutation's options and applies their `gcTime`.\n\t* @internal\n\t* @param options - The new mutation options.\n\t*/\n\tsetOptions(options) {\n\t\tthis.options = options;\n\t\tthis.updateGcTime(this.options.gcTime);\n\t}\n\t/**\n\t* The `meta` object passed in the mutation's options, if any.\n\t* @returns The mutation's `meta`, or `undefined` if none was set.\n\t*/\n\tget meta() {\n\t\treturn this.options.meta;\n\t}\n\t/**\n\t* Subscribes an observer to the mutation and stops its garbage collection.\n\t* @internal\n\t* @param observer - The observer to add. Adding an observer that is already subscribed does\n\t* nothing.\n\t*/\n\taddObserver(observer) {\n\t\tif (!this.#observers.includes(observer)) {\n\t\t\tthis.#observers.push(observer);\n\t\t\tthis.clearGcTimeout();\n\t\t\tthis.#mutationCache.notify({\n\t\t\t\ttype: \"observerAdded\",\n\t\t\t\tmutation: this,\n\t\t\t\tobserver\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* Unsubscribes an observer from the mutation.\n\t* @internal\n\t* @param observer - The observer to remove. Schedules garbage collection if the mutation\n\t* is still in the cache.\n\t*/\n\tremoveObserver(observer) {\n\t\tthis.#observers = this.#observers.filter((x) => x !== observer);\n\t\tif (this.#mutationCache.has(this)) this.scheduleGc();\n\t\tthis.#mutationCache.notify({\n\t\t\ttype: \"observerRemoved\",\n\t\t\tmutation: this,\n\t\t\tobserver\n\t\t});\n\t}\n\toptionalRemove() {\n\t\tif (!this.#observers.length) {\n\t\t\tif (this.state.status === \"pending\") this.scheduleGc();\n\t\t\telse this.#mutationCache.remove(this);\n\t\t}\n\t}\n\t/**\n\t* Resumes a mutation that is currently paused or was restored from a\n\t* dehydrated, still-`pending` state.\n\t*\n\t* - If this mutation has an active retryer (it paused mid-attempt, e.g. due\n\t*   to the network mode or scope-based queuing), its retryer is resumed.\n\t* - Otherwise, if the mutation's status is still `pending` (e.g. it was\n\t*   dehydrated while an attempt was in flight and never got a retryer in\n\t*   this instance), `execute` is called again with the last known variables.\n\t* - Otherwise the mutation has already settled and this resolves immediately\n\t*   without running anything again.\n\t* @returns A promise that settles with the resumed mutation: it rejects if the mutation fails.\n\t* It resolves immediately if the mutation has already settled.\n\t* @see {@link Mutation#execute}\n\t* @example\n\t* ```ts\n\t* // typically driven by reconnect handling, e.g. queryClient.resumePausedMutations()\n\t* const mutation = mutationCache.find({ mutationKey: ['addPost'] })\n\t* await mutation?.continue()\n\t* ```\n\t*/\n\tcontinue() {\n\t\treturn this.#retryer?.continue() ?? (this.state.status === \"pending\" ? this.execute(this.state.variables) : Promise.resolve());\n\t}\n\t/**\n\t* Runs the mutation function for the given variables through a retryer, and\n\t* drives the mutation's state and lifecycle callbacks through to settlement.\n\t*\n\t* If this mutation's state is already `pending` when `execute` is called\n\t* (i.e. it was restored, still in-flight, from a dehydrated state), the\n\t* `onMutate` step is skipped and a `continue` action is dispatched to\n\t* unpause it; otherwise a `pending` action is dispatched first, then the\n\t* mutation cache's `onMutate` and the mutation's own `onMutate` option are\n\t* awaited in that order, and the resulting context is stored.\n\t*\n\t* The mutation function is then run (subject to `retry`/`retryDelay`/\n\t* `networkMode`, and to the mutation cache's scope-based serialization).\n\t* On success, the cache's `onSuccess`/`onSettled` callbacks run before the\n\t* mutation's own `onSuccess`/`onSettled` options, a `success` action is\n\t* dispatched, and the resolved data is returned. On failure, the same\n\t* cache-then-option ordering is used for `onError`/`onSettled`, but each of\n\t* those four callbacks is individually caught so that a throwing callback\n\t* cannot mask the original error; an `error` action is then dispatched and\n\t* the original error is re-thrown.\n\t* @param variables - The variables passed to the `mutationFn`.\n\t* @returns A promise that resolves with the mutation's data, or rejects with its error.\n\t* @see {@link Mutation#continue}\n\t* @example\n\t* ```ts\n\t* // Called internally by `MutationObserver.mutate` and `Mutation.continue` —\n\t* // applications normally trigger mutations through those, not this method.\n\t* const data = await mutation.execute(variables)\n\t* ```\n\t*/\n\tasync execute(variables) {\n\t\tconst onContinue = () => {\n\t\t\tthis.#dispatch({ type: \"continue\" });\n\t\t};\n\t\tconst mutationFnContext = {\n\t\t\tclient: this.#client,\n\t\t\tmeta: this.options.meta,\n\t\t\tmutationKey: this.options.mutationKey\n\t\t};\n\t\tconst retryer = this.#retryer = createRetryer({\n\t\t\tfn: () => {\n\t\t\t\tif (!this.options.mutationFn) return Promise.reject(/* @__PURE__ */ new Error(\"No mutationFn found\"));\n\t\t\t\treturn this.options.mutationFn(variables, mutationFnContext);\n\t\t\t},\n\t\t\tonFail: (failureCount, error) => {\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"failed\",\n\t\t\t\t\tfailureCount,\n\t\t\t\t\terror\n\t\t\t\t});\n\t\t\t},\n\t\t\tonPause: () => {\n\t\t\t\tthis.#dispatch({ type: \"pause\" });\n\t\t\t},\n\t\t\tonContinue,\n\t\t\tretry: this.options.retry ?? 0,\n\t\t\tretryDelay: this.options.retryDelay,\n\t\t\tnetworkMode: this.options.networkMode,\n\t\t\tcanRun: () => this.#mutationCache.canRun(this)\n\t\t});\n\t\tconst restored = this.state.status === \"pending\";\n\t\tconst isPaused = !retryer.canStart();\n\t\ttry {\n\t\t\tif (restored) onContinue();\n\t\t\telse {\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"pending\",\n\t\t\t\t\tvariables,\n\t\t\t\t\tisPaused\n\t\t\t\t});\n\t\t\t\tif (this.#mutationCache.config.onMutate) await this.#mutationCache.config.onMutate(variables, this, mutationFnContext);\n\t\t\t\tconst context = await this.options.onMutate?.(variables, mutationFnContext);\n\t\t\t\tif (context !== this.state.context) this.#dispatch({\n\t\t\t\t\ttype: \"pending\",\n\t\t\t\t\tcontext,\n\t\t\t\t\tvariables,\n\t\t\t\t\tisPaused\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (this.state.isPaused && retryer.canStart()) onContinue();\n\t\t\tconst data = await retryer.start();\n\t\t\tawait this.#mutationCache.config.onSuccess?.(data, variables, this.state.context, this, mutationFnContext);\n\t\t\tawait this.options.onSuccess?.(data, variables, this.state.context, mutationFnContext);\n\t\t\tawait this.#mutationCache.config.onSettled?.(data, null, this.state.variables, this.state.context, this, mutationFnContext);\n\t\t\tawait this.options.onSettled?.(data, null, variables, this.state.context, mutationFnContext);\n\t\t\tthis.#dispatch({\n\t\t\t\ttype: \"success\",\n\t\t\t\tdata\n\t\t\t});\n\t\t\treturn data;\n\t\t} catch (error) {\n\t\t\ttry {\n\t\t\t\tawait this.#mutationCache.config.onError?.(error, variables, this.state.context, this, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.options.onError?.(error, variables, this.state.context, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.#mutationCache.config.onSettled?.(void 0, error, this.state.variables, this.state.context, this, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.options.onSettled?.(void 0, error, variables, this.state.context, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\tthis.#dispatch({\n\t\t\t\ttype: \"error\",\n\t\t\t\terror\n\t\t\t});\n\t\t\tthrow error;\n\t\t} finally {\n\t\t\tif (this.#retryer === retryer) this.#retryer = void 0;\n\t\t\tthis.#mutationCache.runNext(this);\n\t\t}\n\t}\n\t#dispatch(action) {\n\t\tconst reducer = (state) => {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase \"failed\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tfailureCount: action.failureCount,\n\t\t\t\t\tfailureReason: action.error\n\t\t\t\t};\n\t\t\t\tcase \"pause\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tisPaused: true\n\t\t\t\t};\n\t\t\t\tcase \"continue\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tisPaused: false\n\t\t\t\t};\n\t\t\t\tcase \"pending\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tcontext: action.context,\n\t\t\t\t\tdata: void 0,\n\t\t\t\t\tfailureCount: 0,\n\t\t\t\t\tfailureReason: null,\n\t\t\t\t\terror: null,\n\t\t\t\t\tisPaused: action.isPaused,\n\t\t\t\t\tstatus: \"pending\",\n\t\t\t\t\tvariables: action.variables,\n\t\t\t\t\tsubmittedAt: Date.now()\n\t\t\t\t};\n\t\t\t\tcase \"success\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tdata: action.data,\n\t\t\t\t\tfailureCount: 0,\n\t\t\t\t\tfailureReason: null,\n\t\t\t\t\terror: null,\n\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\tisPaused: false\n\t\t\t\t};\n\t\t\t\tcase \"error\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tdata: void 0,\n\t\t\t\t\terror: action.error,\n\t\t\t\t\tfailureCount: state.failureCount + 1,\n\t\t\t\t\tfailureReason: action.error,\n\t\t\t\t\tisPaused: false,\n\t\t\t\t\tstatus: \"error\"\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t\tthis.state = reducer(this.state);\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.#observers.forEach((observer) => {\n\t\t\t\tobserver.onMutationUpdate(action);\n\t\t\t});\n\t\t\tthis.#mutationCache.notify({\n\t\t\t\tmutation: this,\n\t\t\t\ttype: \"updated\",\n\t\t\t\taction\n\t\t\t});\n\t\t});\n\t}\n};\n/**\n* Returns the initial state of a mutation: `'idle'`, with no data, error, or variables.\n* @returns The initial mutation state.\n*/\nfunction getDefaultState() {\n\treturn {\n\t\tcontext: void 0,\n\t\tdata: void 0,\n\t\terror: null,\n\t\tfailureCount: 0,\n\t\tfailureReason: null,\n\t\tisPaused: false,\n\t\tstatus: \"idle\",\n\t\tvariables: void 0,\n\t\tsubmittedAt: 0\n\t};\n}\nexport { Mutation, getDefaultState };\n\n//# sourceMappingURL=mutation.js.map","import { Mutation } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { matchMutation, noop } from \"./utils.js\";\n// src/mutationCache.ts\n/**\n* The `MutationCache` is the storage for mutations.\n*\n* Normally, you will not interact with the `MutationCache` directly and instead use a\n* `QueryClient`. You can subscribe to it (inherited from `Subscribable`) to be informed of\n* safe/known updates to the cache, such as mutations being added, removed, or updated.\n* @example\n* ```ts\n* const unsubscribe = mutationCache.subscribe((event) => {\n*   console.log(event.type, event.mutation)\n* })\n* ```\n*/\nvar MutationCache = class extends Subscribable {\n\t#mutations;\n\t#scopes;\n\t#mutationId;\n\tconstructor(config = {}) {\n\t\tsuper();\n\t\tthis.config = config;\n\t\tthis.#mutations = /* @__PURE__ */ new Set();\n\t\tthis.#scopes = /* @__PURE__ */ new Map();\n\t\tthis.#mutationId = 0;\n\t}\n\t/**\n\t* Creates a mutation and adds it to the cache.\n\t* @internal\n\t* @param client - The client the mutation belongs to, used to default its options.\n\t* @param options - The mutation options. They are defaulted with {@link\n\t* QueryClient#defaultMutationOptions}.\n\t* @param state - The initial state of the mutation, e.g. when restoring a dehydrated mutation.\n\t* @returns The new mutation, already added to the cache.\n\t*/\n\tbuild(client, options, state) {\n\t\tconst mutation = new Mutation({\n\t\t\tclient,\n\t\t\tmutationCache: this,\n\t\t\tmutationId: ++this.#mutationId,\n\t\t\toptions: client.defaultMutationOptions(options),\n\t\t\tstate\n\t\t});\n\t\tthis.add(mutation);\n\t\treturn mutation;\n\t}\n\t/**\n\t* Adds a mutation to the cache.\n\t* @internal\n\t* @param mutation - The mutation to add. If it has a `scope`, it is queued in that scope.\n\t*/\n\tadd(mutation) {\n\t\tthis.#mutations.add(mutation);\n\t\tconst scope = scopeFor(mutation);\n\t\tif (typeof scope === \"string\") {\n\t\t\tconst scopedMutations = this.#scopes.get(scope);\n\t\t\tif (scopedMutations) scopedMutations.push(mutation);\n\t\t\telse this.#scopes.set(scope, [mutation]);\n\t\t}\n\t\tthis.notify({\n\t\t\ttype: \"added\",\n\t\t\tmutation\n\t\t});\n\t}\n\t/**\n\t* Removes a mutation from the cache and clears its garbage collection timer.\n\t* @internal\n\t* @param mutation - The mutation to remove, also from its scope's queue.\n\t*/\n\tremove(mutation) {\n\t\tif (this.#mutations.delete(mutation)) {\n\t\t\tmutation.destroy();\n\t\t\tconst scope = scopeFor(mutation);\n\t\t\tif (typeof scope === \"string\") {\n\t\t\t\tconst scopedMutations = this.#scopes.get(scope);\n\t\t\t\tif (scopedMutations) {\n\t\t\t\t\tif (scopedMutations.length > 1) {\n\t\t\t\t\t\tconst index = scopedMutations.indexOf(mutation);\n\t\t\t\t\t\tif (index !== -1) scopedMutations.splice(index, 1);\n\t\t\t\t\t} else if (scopedMutations[0] === mutation) this.#scopes.delete(scope);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.notify({\n\t\t\ttype: \"removed\",\n\t\t\tmutation\n\t\t});\n\t}\n\t/**\n\t* Checks whether this cache still holds the given mutation.\n\t* @internal\n\t* @param mutation - The mutation to check.\n\t* @returns Whether the mutation is in the cache.\n\t*/\n\thas(mutation) {\n\t\treturn this.#mutations.has(mutation);\n\t}\n\t/**\n\t* Checks whether a mutation can run now, given the other mutations in its `scope`.\n\t* @internal\n\t* @param mutation - The mutation to check.\n\t* @returns `true` if the mutation has no `scope`, or no other mutation in its scope is pending\n\t* ahead of it.\n\t*/\n\tcanRun(mutation) {\n\t\tconst scope = scopeFor(mutation);\n\t\tif (typeof scope === \"string\") {\n\t\t\tconst firstPendingMutation = this.#scopes.get(scope)?.find((m) => m.state.status === \"pending\");\n\t\t\treturn !firstPendingMutation || firstPendingMutation === mutation;\n\t\t} else return true;\n\t}\n\t/**\n\t* Continues the next paused mutation in the same `scope` after a mutation finishes.\n\t* @internal\n\t* @param mutation - The mutation that finished.\n\t* @returns A promise that resolves once the next paused mutation in the same scope has continued,\n\t* or immediately if there is none.\n\t*/\n\trunNext(mutation) {\n\t\tconst scope = scopeFor(mutation);\n\t\tif (typeof scope === \"string\") return (this.#scopes.get(scope)?.find((m) => m !== mutation && m.state.isPaused))?.continue() ?? Promise.resolve();\n\t\telse return Promise.resolve();\n\t}\n\t/**\n\t* Removes all mutations and clears their garbage collection timers.\n\t* Mutations that are already running continue to execute.\n\t* @example\n\t* ```ts\n\t* const mutationCache = queryClient.getMutationCache()\n\t*\n\t* mutationCache.clear()\n\t* ```\n\t*/\n\tclear() {\n\t\tnotifyManager.batch(() => {\n\t\t\tconst mutations = this.getAll();\n\t\t\tthis.#mutations.clear();\n\t\t\tthis.#scopes.clear();\n\t\t\tmutations.forEach((mutation) => mutation.destroy());\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tthis.notify({\n\t\t\t\t\ttype: \"removed\",\n\t\t\t\t\tmutation\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Returns all mutations within the cache.\n\t*\n\t* This is not typically needed for most applications, but can come in handy when needing more\n\t* information about a mutation in rare scenarios.\n\t* @returns Every mutation in the cache.\n\t* @example\n\t* ```ts\n\t* const mutationCache = queryClient.getMutationCache()\n\t*\n\t* const mutations = mutationCache.getAll()\n\t* ```\n\t*/\n\tgetAll() {\n\t\treturn Array.from(this.#mutations);\n\t}\n\t/**\n\t* A slightly more advanced method that can be used to get an existing mutation instance from\n\t* the cache. If the mutation does not exist, `undefined` is returned.\n\t*\n\t* This is not typically needed for most applications, but can come in handy when needing more\n\t* information about a mutation in rare scenarios.\n\t* @param filters - The filters to match. `exact` defaults to `true`.\n\t* @returns The first matching mutation, or `undefined`.\n\t* @see {@link MutationCache#findAll}\n\t* @example\n\t* ```ts\n\t* const mutationCache = queryClient.getMutationCache()\n\t*\n\t* const mutation = mutationCache.find({ mutationKey: ['addPost'] })\n\t* ```\n\t*/\n\tfind(filters) {\n\t\tconst defaultedFilters = {\n\t\t\texact: true,\n\t\t\t...filters\n\t\t};\n\t\treturn this.getAll().find((mutation) => matchMutation(defaultedFilters, mutation));\n\t}\n\t/**\n\t* An even more advanced method that can be used to get existing mutation instances from the\n\t* cache that match the given filters. If no mutations match, an empty array is returned.\n\t*\n\t* This is not typically needed for most applications, but can come in handy when needing more\n\t* information about mutations in rare scenarios.\n\t* @param filters - The filters to match. Without filters, every mutation is returned.\n\t* @returns The matching mutations.\n\t* @see {@link MutationCache#find}\n\t* @example\n\t* ```ts\n\t* const mutationCache = queryClient.getMutationCache()\n\t*\n\t* const mutations = mutationCache.findAll({ mutationKey: ['addPost'] })\n\t* ```\n\t*/\n\tfindAll(filters = {}) {\n\t\treturn this.getAll().filter((mutation) => matchMutation(filters, mutation));\n\t}\n\t/**\n\t* Notifies every cache listener of an event, in one batch.\n\t* @internal\n\t* @param event - The event passed to every listener.\n\t*/\n\tnotify(event) {\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.listeners.forEach((listener) => {\n\t\t\t\tlistener(event);\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Continues every paused mutation, e.g. when the app comes back online.\n\t* @internal\n\t* @returns A promise that resolves once every paused mutation has continued and settled.\n\t*/\n\tresumePausedMutations() {\n\t\tconst pausedMutations = this.getAll().filter((x) => x.state.isPaused);\n\t\treturn notifyManager.batch(() => Promise.all(pausedMutations.map((mutation) => mutation.continue().catch(noop))));\n\t}\n};\n/**\n* Returns the scope id of a mutation, used to run mutations with the same scope one after another.\n* @param mutation - The mutation to read the scope of.\n* @returns The mutation's `scope.id`, or `undefined` if it has no scope.\n*/\nfunction scopeFor(mutation) {\n\treturn mutation.options.scope?.id;\n}\nexport { MutationCache };\n\n//# sourceMappingURL=mutationCache.js.map","import { addConsumeAwareSignal, addToArray, ensureQueryFn, fetchSignal } from \"./utils.js\";\n// src/infiniteQueryBehavior.ts\n/**\n* Creates the behavior that fetches the pages of an infinite query: the next or previous page for\n* `fetchNextPage`/`fetchPreviousPage`, or all pages again from the start on a refetch.\n* @param pages - The number of pages to fetch from the start when all pages are fetched again,\n* e.g. from the `pages` option of `queryClient.infiniteQuery`. Defaults to the number of cached\n* pages.\n* @returns The query behavior to set on an infinite query.\n*/\nfunction infiniteQueryBehavior(pages) {\n\treturn { onFetch: (context, query) => {\n\t\tconst options = context.options;\n\t\tconst direction = context.fetchOptions?.meta?.fetchMore?.direction;\n\t\tconst oldPages = context.state.data?.pages || [];\n\t\tconst oldPageParams = context.state.data?.pageParams || [];\n\t\tlet result = {\n\t\t\tpages: [],\n\t\t\tpageParams: []\n\t\t};\n\t\tlet currentPage = 0;\n\t\tconst fetchFn = async () => {\n\t\t\tlet cancelled = false;\n\t\t\tconst signalContext = context;\n\t\t\tconst addSignalProperty = (object) => {\n\t\t\t\taddConsumeAwareSignal(object, () => context.signal, () => cancelled = true, signalContext[fetchSignal]);\n\t\t\t};\n\t\t\tconst queryFn = ensureQueryFn(context.options, context.fetchOptions);\n\t\t\tconst fetchPage = async (data, param, previous) => {\n\t\t\t\tif (cancelled) return Promise.reject(context.signal.reason);\n\t\t\t\tif (param == null && data.pages.length) return Promise.resolve(data);\n\t\t\t\tconst createQueryFnContext = () => {\n\t\t\t\t\tconst queryFnContext = {\n\t\t\t\t\t\tclient: context.client,\n\t\t\t\t\t\tqueryKey: context.queryKey,\n\t\t\t\t\t\tpageParam: param,\n\t\t\t\t\t\tdirection: previous ? \"backward\" : \"forward\",\n\t\t\t\t\t\tmeta: context.options.meta\n\t\t\t\t\t};\n\t\t\t\t\taddSignalProperty(queryFnContext);\n\t\t\t\t\treturn queryFnContext;\n\t\t\t\t};\n\t\t\t\tconst queryFnContext = createQueryFnContext();\n\t\t\t\tconst page = await queryFn(queryFnContext);\n\t\t\t\tconst { maxPages } = context.options;\n\t\t\t\treturn {\n\t\t\t\t\tpages: addToArray(data.pages, page, maxPages, previous),\n\t\t\t\t\tpageParams: addToArray(data.pageParams, param, maxPages, previous)\n\t\t\t\t};\n\t\t\t};\n\t\t\tif (direction && oldPages.length) {\n\t\t\t\tconst previous = direction === \"backward\";\n\t\t\t\tconst pageParamFn = previous ? getPreviousPageParam : getNextPageParam;\n\t\t\t\tconst oldData = {\n\t\t\t\t\tpages: oldPages,\n\t\t\t\t\tpageParams: oldPageParams\n\t\t\t\t};\n\t\t\t\tresult = await fetchPage(oldData, pageParamFn(options, oldData), previous);\n\t\t\t} else {\n\t\t\t\tconst remainingPages = pages ?? oldPages.length;\n\t\t\t\tdo {\n\t\t\t\t\tconst param = currentPage === 0 ? oldPageParams[0] === void 0 ? options.initialPageParam : oldPageParams[0] : getNextPageParam(options, result);\n\t\t\t\t\tif (currentPage > 0 && param == null) break;\n\t\t\t\t\tresult = await fetchPage(result, param);\n\t\t\t\t\tcurrentPage++;\n\t\t\t\t} while (currentPage < remainingPages);\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\tif (context.options.persister) context.fetchFn = () => {\n\t\t\treturn context.options.persister?.(fetchFn, {\n\t\t\t\tclient: context.client,\n\t\t\t\tqueryKey: context.queryKey,\n\t\t\t\tmeta: context.options.meta,\n\t\t\t\tsignal: context.signal\n\t\t\t}, query);\n\t\t};\n\t\telse context.fetchFn = fetchFn;\n\t} };\n}\n/**\n* Computes the page param of the page after the last one, with the `getNextPageParam` option.\n* @param options - The infinite query options.\n* @param data - The current pages and page params.\n* @returns The next page param, or `undefined` if there are no pages yet.\n*/\nfunction getNextPageParam(options, { pages, pageParams }) {\n\tconst lastIndex = pages.length - 1;\n\treturn pages.length > 0 ? options.getNextPageParam(pages[lastIndex], pages, pageParams[lastIndex], pageParams) : void 0;\n}\n/**\n* Computes the page param of the page before the first one, with the `getPreviousPageParam`\n* option.\n* @param options - The infinite query options.\n* @param data - The current pages and page params.\n* @returns The previous page param, or `undefined` if there are no pages yet or no\n* `getPreviousPageParam` option.\n*/\nfunction getPreviousPageParam(options, { pages, pageParams }) {\n\treturn pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;\n}\n/**\n* Checks if there is a next page.\n* @param options - The infinite query options with `getNextPageParam`.\n* @param data - The current pages and page params.\n* @returns `true` if `getNextPageParam` returns a value other than `null` or `undefined`.\n*/\nfunction hasNextPage(options, data) {\n\tif (!data) return false;\n\treturn getNextPageParam(options, data) != null;\n}\n/**\n* Checks if there is a previous page.\n* @param options - The infinite query options with `getPreviousPageParam`.\n* @param data - The current pages and page params.\n* @returns `true` if `getPreviousPageParam` is set and returns a value other than `null` or\n* `undefined`.\n*/\nfunction hasPreviousPage(options, data) {\n\tif (!data || !options.getPreviousPageParam) return false;\n\treturn getPreviousPageParam(options, data) != null;\n}\nexport { hasNextPage, hasPreviousPage, infiniteQueryBehavior };\n\n//# sourceMappingURL=infiniteQueryBehavior.js.map","import { infiniteQueryBehavior } from \"./infiniteQueryBehavior.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { CancelledError, canFetch, createRetryer } from \"./retryer.js\";\nimport { ensureQueryFn, fetchSignal, noop, replaceData, resolveQueryValue, skipToken, timeUntilStale } from \"./utils.js\";\n// src/query.ts\n/**\n* Represents a single cached query. A `Query` holds the query's key, options,\n* state (data/error/status), and the observers currently subscribed to it.\n*\n* Instances are created and managed internally by `QueryCache`; application\n* code typically interacts with queries indirectly through `QueryClient` or\n* a framework hook like `useQuery`. Direct access to a `Query` instance is\n* possible via `queryCache.find()`/`findAll()` for inspecting cache state.\n* @example\n* ```ts\n* const queryCache = queryClient.getQueryCache()\n* const query = queryCache.find({ queryKey: ['posts'] })\n*\n* if (query) {\n*   console.log(query.state.dataUpdatedAt)\n* }\n* ```\n*/\nvar Query = class extends Removable {\n\t#queryType;\n\t#initialState;\n\t#revertState;\n\t#cache;\n\t#client;\n\t#retryer;\n\t#fetchPromise;\n\t#defaultOptions;\n\t#abortSignalConsumed;\n\tconstructor(config) {\n\t\tsuper();\n\t\tthis.#abortSignalConsumed = false;\n\t\tthis.#defaultOptions = config.defaultOptions;\n\t\tthis.setOptions(config.options);\n\t\tthis.observers = [];\n\t\tthis.#client = config.client;\n\t\tthis.#cache = this.#client.getQueryCache();\n\t\tthis.queryKey = config.queryKey;\n\t\tthis.queryHash = config.queryHash;\n\t\tthis.#initialState = getDefaultState(this.options);\n\t\tthis.state = config.state ?? this.#initialState;\n\t\tthis.scheduleGc();\n\t}\n\t/**\n\t* The `meta` object passed in the query's options, if any.\n\t* @returns The query's `meta`, or `undefined` if none was set.\n\t*/\n\tget meta() {\n\t\treturn this.options.meta;\n\t}\n\t/**\n\t* `'infinite'` for an infinite query, otherwise `undefined`.\n\t* @internal\n\t* @returns The type of the query, set from the `_type` option (e.g. `'infinite'`).\n\t*/\n\tget queryType() {\n\t\treturn this.#queryType;\n\t}\n\t/**\n\t* The promise for the currently in-flight fetch, if the query is fetching.\n\t* `undefined` when the query is not fetching.\n\t* @returns The promise of the in-flight fetch, or `undefined`.\n\t*/\n\tget promise() {\n\t\treturn this.#retryer?.promise;\n\t}\n\t/**\n\t* Replaces the query's options and applies their `gcTime`. If the query has no data yet, it gets\n\t* the `initialData` from the new options, if any.\n\t* @internal\n\t* @param options - The new query options, merged on top of the query's default options.\n\t*/\n\tsetOptions(options) {\n\t\tthis.options = {\n\t\t\t...this.#defaultOptions,\n\t\t\t...options\n\t\t};\n\t\tif (options?._type) this.#queryType = options._type;\n\t\tthis.updateGcTime(this.options.gcTime);\n\t\tif (this.state && this.state.data === void 0) {\n\t\t\tconst defaultState = getDefaultState(this.options);\n\t\t\tif (defaultState.data !== void 0) {\n\t\t\t\tthis.setState(successState(defaultState.data, defaultState.dataUpdatedAt));\n\t\t\t\tthis.#initialState = defaultState;\n\t\t\t}\n\t\t}\n\t}\n\toptionalRemove() {\n\t\tif (!this.observers.length && this.state.fetchStatus === \"idle\") this.#cache.remove(this);\n\t}\n\t/**\n\t* Writes new data to the query and marks it as successfully fetched.\n\t* @internal\n\t* @param newData - The data to write. Structural sharing with the current data is applied.\n\t* @param options - Set `updatedAt` to override the timestamp, and `manual` to mark the write as\n\t* manual (e.g. from `queryClient.setQueryData`).\n\t* @returns The data that was written.\n\t*/\n\tsetData(newData, options) {\n\t\tconst data = replaceData(this.state.data, newData, this.options);\n\t\tthis.#dispatch({\n\t\t\tdata,\n\t\t\ttype: \"success\",\n\t\t\tdataUpdatedAt: options?.updatedAt,\n\t\t\tmanual: options?.manual\n\t\t});\n\t\treturn data;\n\t}\n\t/**\n\t* Merges the given partial state directly into this query's state, notifying observers. Used\n\t* by persistence and broadcast plugins to restore a state snapshot, and by devtools to let a\n\t* user manually trigger a loading/error state or edit the cached data.\n\t* @param state - The partial state to merge into the query's state.\n\t*/\n\tsetState(state) {\n\t\tthis.#dispatch({\n\t\t\ttype: \"setState\",\n\t\t\tstate\n\t\t});\n\t}\n\t/**\n\t* Cancels the query's currently in-flight fetch, if any.\n\t* - Returns a promise that resolves once the cancellation has settled.\n\t* - If no fetch is in progress, resolves immediately.\n\t* @param options - Set `revert` to restore the state from before the fetch started, and `silent`\n\t* to suppress the cancellation error when a new fetch replaces the cancelled one.\n\t* @returns A promise that resolves once the cancellation has settled.\n\t* @example\n\t* ```ts\n\t* await query.cancel()\n\t* ```\n\t*/\n\tcancel(options) {\n\t\tconst promise = this.#retryer?.promise;\n\t\tthis.#retryer?.cancel(options);\n\t\treturn promise ? promise.then(noop).catch(noop) : Promise.resolve();\n\t}\n\t/**\n\t* Silently cancels any in-flight fetch, then clears the query's garbage\n\t* collection timeout. Called by `QueryCache` when the query is removed from\n\t* the cache.\n\t* @see {@link Query#cancel}\n\t*/\n\tdestroy() {\n\t\tthis.cancel({ silent: true });\n\t\tsuper.destroy();\n\t}\n\t/**\n\t* The state the query was created with.\n\t* @internal\n\t* @returns The state the query had when it was first created, used by {@link Query#reset}.\n\t*/\n\tget resetState() {\n\t\treturn this.#initialState;\n\t}\n\t/**\n\t* Resets the query back to its initial state (the state it had when it was\n\t* first created, e.g. any `initialData`), destroying it first to cancel any\n\t* in-flight fetch.\n\t*/\n\treset() {\n\t\tthis.destroy();\n\t\tthis.setState(this.resetState);\n\t}\n\t/**\n\t* Returns `true` if the query has at least one observer for which `enabled`\n\t* does not resolve to `false`.\n\t* @returns `true` if the query has an enabled observer.\n\t*/\n\tisActive() {\n\t\treturn this.observers.some((observer) => resolveQueryValue(observer.options.enabled, this) !== false);\n\t}\n\t/**\n\t* Returns `true` if the query is disabled, meaning it will not fetch\n\t* automatically.\n\t* - If the query has observers, it is disabled when none of them are active\n\t*   (see `isActive`).\n\t* - If the query has no observers, it is disabled when its `queryFn` is\n\t*   `skipToken` or it has never been fetched.\n\t* @returns `true` if the query is disabled.\n\t*/\n\tisDisabled() {\n\t\tif (this.getObserversCount() > 0) return !this.isActive();\n\t\treturn this.options.queryFn === skipToken || !this.isFetched();\n\t}\n\t/**\n\t* Returns `true` if the query has been fetched, i.e. it has resolved with\n\t* either data or an error at least once.\n\t* @returns `true` if the query has been fetched.\n\t*/\n\tisFetched() {\n\t\treturn this.state.dataUpdateCount + this.state.errorUpdateCount > 0;\n\t}\n\t/**\n\t* Returns `true` if the query has data and at least one observer configured with\n\t* `staleTime: 'static'`, meaning it is treated as never stale.\n\t* @returns `true` if the query is static.\n\t*/\n\tisStatic() {\n\t\tif (this.state.data === void 0) return false;\n\t\tif (this.getObserversCount() > 0) return this.observers.some((observer) => resolveQueryValue(observer.options.staleTime, this) === \"static\");\n\t\treturn false;\n\t}\n\t/**\n\t* Returns `true` if the query is stale.\n\t* - If the query has observers, defers to whether any observer's current\n\t*   result reports `isStale` (which accounts for each observer's own\n\t*   `staleTime` and `enabled` state).\n\t* - If the query has no observers, it is considered stale when it has no\n\t*   data or has been invalidated.\n\t* @returns `true` if the query is stale.\n\t* @see {@link Query#isStaleByTime}\n\t* @example\n\t* ```ts\n\t* if (query.isStale()) {\n\t*   // refetch or otherwise treat the cached data as outdated\n\t* }\n\t* ```\n\t*/\n\tisStale() {\n\t\tif (this.getObserversCount() > 0) return this.observers.some((observer) => observer.getCurrentResult().isStale);\n\t\treturn this.state.data === void 0 || this.state.isInvalidated;\n\t}\n\t/**\n\t* Returns `true` if the query's data is stale relative to the given\n\t* `staleTime` (defaults to `0`).\n\t* - A query with no data is always stale.\n\t* - `staleTime: 'static'` is never stale.\n\t* - An invalidated query is always stale.\n\t* - Otherwise, staleness is based on elapsed time since `dataUpdatedAt`.\n\t* @param staleTime - The time, in milliseconds, after which data is considered stale, or\n\t* `'static'` to never treat existing data as stale. A query without data is stale either way.\n\t* @returns `true` if the query's data is stale.\n\t* @see {@link Query#isStale}\n\t* @example\n\t* ```ts\n\t* const isStale = query.isStaleByTime(60 * 1000)\n\t* ```\n\t*/\n\tisStaleByTime(staleTime = 0) {\n\t\tif (this.state.data === void 0) return true;\n\t\tif (staleTime === \"static\") return false;\n\t\tif (this.state.isInvalidated) return true;\n\t\treturn !timeUntilStale(this.state.dataUpdatedAt, staleTime);\n\t}\n\t/**\n\t* Refetches the query when the window regains focus, if an observer wants that, and continues a\n\t* paused fetch.\n\t* @internal\n\t*/\n\tonFocus() {\n\t\tthis.observers.find((x) => x.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false });\n\t\tthis.#retryer?.continue();\n\t}\n\t/**\n\t* Refetches the query when the app reconnects, if an observer wants that, and continues a paused\n\t* fetch.\n\t* @internal\n\t*/\n\tonOnline() {\n\t\tthis.observers.find((x) => x.shouldFetchOnReconnect())?.refetch({ cancelRefetch: false });\n\t\tthis.#retryer?.continue();\n\t}\n\t/**\n\t* Subscribes an observer to the query and stops its garbage collection.\n\t* @internal\n\t* @param observer - The observer to add. Adding an observer that is already subscribed does\n\t* nothing.\n\t*/\n\taddObserver(observer) {\n\t\tif (!this.observers.includes(observer)) {\n\t\t\tthis.observers.push(observer);\n\t\t\tthis.clearGcTimeout();\n\t\t\tthis.#cache.notify({\n\t\t\t\ttype: \"observerAdded\",\n\t\t\t\tquery: this,\n\t\t\t\tobserver\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* Unsubscribes an observer from the query.\n\t* @internal\n\t* @param observer - The observer to remove. When the last observer is removed, the in-flight\n\t* fetch is cancelled if its abort signal was consumed (otherwise only its retries are stopped),\n\t* and garbage collection is scheduled if the query is still in the cache.\n\t*/\n\tremoveObserver(observer) {\n\t\tconst index = this.observers.indexOf(observer);\n\t\tif (index !== -1) {\n\t\t\tthis.observers.splice(index, 1);\n\t\t\tif (!this.observers.length) {\n\t\t\t\tif (this.#retryer) {\n\t\t\t\t\tif (this.#abortSignalConsumed || this.state.fetchStatus === \"paused\" && this.state.status === \"pending\") this.#retryer.cancel({ revert: true });\n\t\t\t\t\telse this.#retryer.cancelRetry();\n\t\t\t\t}\n\t\t\t\tthis.#scheduleGcIfCached();\n\t\t\t}\n\t\t\tthis.#cache.notify({\n\t\t\t\ttype: \"observerRemoved\",\n\t\t\t\tquery: this,\n\t\t\t\tobserver\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* Returns the number of observers currently subscribed to this query.\n\t* @returns The number of observers.\n\t* @example\n\t* ```ts\n\t* if (query.getObserversCount() === 0) {\n\t*   // no component is currently watching this query\n\t* }\n\t* ```\n\t*/\n\tgetObserversCount() {\n\t\treturn this.observers.length;\n\t}\n\t/**\n\t* Marks the query as invalidated, unless it is already invalidated. This\n\t* updates `state.isInvalidated` and notifies observers, but does not by\n\t* itself trigger a refetch.\n\t* @example\n\t* ```ts\n\t* query.invalidate()\n\t* ```\n\t*/\n\tinvalidate() {\n\t\tif (!this.state.isInvalidated) this.#dispatch({ type: \"invalidate\" });\n\t}\n\t/**\n\t* Fetches the query, i.e. runs its `queryFn` (through any configured\n\t* retryer/behavior) and updates the query's state with the result.\n\t* - If a fetch is already in flight, returns its promise instead of\n\t*   starting a new one, unless `fetchOptions.cancelRefetch` is set and the\n\t*   query already has data, in which case the current fetch is silently\n\t*   cancelled first.\n\t* - If `options` is passed, it replaces the query's current options\n\t*   before fetching.\n\t* @param options - Query options that replace the query's current options before fetching. They\n\t* are not applied when an in-flight fetch is reused.\n\t* @param fetchOptions - Set `cancelRefetch` to cancel an in-flight fetch first (only if the query\n\t* already has data), and `meta` to pass extra information to the query's behavior.\n\t* @returns A promise that resolves with the fetched data, or rejects with the fetch error. If the\n\t* fetch is cancelled with `revert` while the query has data, it resolves with the restored data\n\t* instead.\n\t*/\n\tasync fetch(options, fetchOptions) {\n\t\tif (this.state.fetchStatus !== \"idle\" && this.#retryer?.status() !== \"rejected\") {\n\t\t\tif (this.state.data !== void 0 && fetchOptions?.cancelRefetch) this.cancel({ silent: true });\n\t\t\telse if (this.#retryer && this.#fetchPromise) {\n\t\t\t\tthis.#retryer.continueRetry();\n\t\t\t\treturn this.#fetchPromise;\n\t\t\t}\n\t\t}\n\t\tif (options) this.setOptions(options);\n\t\tif (!this.options.queryFn) {\n\t\t\tconst observer = this.observers.find((x) => x.options.queryFn);\n\t\t\tif (observer) this.setOptions(observer.options);\n\t\t}\n\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\tif (!Array.isArray(this.options.queryKey)) console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`);\n\t\t}\n\t\tconst abortController = new AbortController();\n\t\tconst addSignalProperty = (object) => {\n\t\t\tObject.defineProperties(object, {\n\t\t\t\t[fetchSignal]: {\n\t\t\t\t\tvalue: abortController.signal,\n\t\t\t\t\tenumerable: true\n\t\t\t\t},\n\t\t\t\tsignal: {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tget: () => {\n\t\t\t\t\t\tthis.#abortSignalConsumed = true;\n\t\t\t\t\t\treturn abortController.signal;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\tconst fetchFn = () => {\n\t\t\tconst queryFn = ensureQueryFn(this.options, fetchOptions);\n\t\t\tconst createQueryFnContext = () => {\n\t\t\t\tconst queryFnContext = {\n\t\t\t\t\tclient: this.#client,\n\t\t\t\t\tqueryKey: this.queryKey,\n\t\t\t\t\tmeta: this.meta\n\t\t\t\t};\n\t\t\t\taddSignalProperty(queryFnContext);\n\t\t\t\treturn queryFnContext;\n\t\t\t};\n\t\t\tconst queryFnContext = createQueryFnContext();\n\t\t\tthis.#abortSignalConsumed = false;\n\t\t\tif (this.options.persister) return this.options.persister(queryFn, queryFnContext, this);\n\t\t\treturn queryFn(queryFnContext);\n\t\t};\n\t\tconst createFetchContext = () => {\n\t\t\tconst context = {\n\t\t\t\tfetchOptions,\n\t\t\t\toptions: this.options,\n\t\t\t\tqueryKey: this.queryKey,\n\t\t\t\tclient: this.#client,\n\t\t\t\tstate: this.state,\n\t\t\t\tfetchFn\n\t\t\t};\n\t\t\taddSignalProperty(context);\n\t\t\treturn context;\n\t\t};\n\t\tconst context = createFetchContext();\n\t\t(this.#queryType === \"infinite\" ? infiniteQueryBehavior(this.options.pages) : this.options.behavior)?.onFetch(context, this);\n\t\tthis.#revertState = this.state;\n\t\tif (this.state.fetchStatus === \"idle\" || this.state.fetchMeta !== context.fetchOptions?.meta) this.#dispatch({\n\t\t\ttype: \"fetch\",\n\t\t\tmeta: context.fetchOptions?.meta\n\t\t});\n\t\tconst retryer = this.#retryer = createRetryer({\n\t\t\tinitialPromise: fetchOptions?.initialPromise,\n\t\t\tfn: context.fetchFn,\n\t\t\tonCancel: (error) => {\n\t\t\t\tif (error instanceof CancelledError && error.revert) this.setState({\n\t\t\t\t\t...this.#revertState,\n\t\t\t\t\tfetchStatus: \"idle\"\n\t\t\t\t});\n\t\t\t\tabortController.abort();\n\t\t\t},\n\t\t\tonFail: (failureCount, error) => {\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"failed\",\n\t\t\t\t\tfailureCount,\n\t\t\t\t\terror\n\t\t\t\t});\n\t\t\t},\n\t\t\tonPause: () => {\n\t\t\t\tthis.#dispatch({ type: \"pause\" });\n\t\t\t},\n\t\t\tonContinue: () => {\n\t\t\t\tthis.#dispatch({ type: \"continue\" });\n\t\t\t},\n\t\t\tretry: context.options.retry,\n\t\t\tretryDelay: context.options.retryDelay,\n\t\t\tnetworkMode: context.options.networkMode,\n\t\t\tcanRun: () => true\n\t\t});\n\t\tconst fetchPromise = (async () => {\n\t\t\ttry {\n\t\t\t\tconst data = await retryer.promise;\n\t\t\t\tif (data === void 0) {\n\t\t\t\t\tif (process.env.NODE_ENV !== \"production\") console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`);\n\t\t\t\t\tthrow new Error(`${this.queryHash} data is undefined`);\n\t\t\t\t}\n\t\t\t\tthis.setData(data);\n\t\t\t\tthis.#cache.config.onSuccess?.(data, this);\n\t\t\t\tthis.#cache.config.onSettled?.(data, this.state.error, this);\n\t\t\t\treturn data;\n\t\t\t} catch (error) {\n\t\t\t\tif (error instanceof CancelledError) {\n\t\t\t\t\tif (error.silent) {\n\t\t\t\t\t\tif (this.#retryer !== retryer && this.#fetchPromise) return this.#fetchPromise;\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t} else if (error.revert) {\n\t\t\t\t\t\tif (this.state.data === void 0) throw error;\n\t\t\t\t\t\treturn this.state.data;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\terror\n\t\t\t\t});\n\t\t\t\tthis.#cache.config.onError?.(error, this);\n\t\t\t\tthis.#cache.config.onSettled?.(this.state.data, error, this);\n\t\t\t\tthrow error;\n\t\t\t} finally {\n\t\t\t\tif (this.#retryer === retryer) {\n\t\t\t\t\tthis.#retryer = void 0;\n\t\t\t\t\tthis.#fetchPromise = void 0;\n\t\t\t\t}\n\t\t\t\tthis.#scheduleGcIfCached();\n\t\t\t}\n\t\t})();\n\t\tthis.#fetchPromise = fetchPromise;\n\t\tretryer.start();\n\t\treturn fetchPromise;\n\t}\n\t#scheduleGcIfCached() {\n\t\tif (this.#cache.get(this.queryHash) === this) this.scheduleGc();\n\t}\n\t#dispatch(action) {\n\t\tconst reducer = (state) => {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase \"failed\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tfetchFailureCount: action.failureCount,\n\t\t\t\t\tfetchFailureReason: action.error\n\t\t\t\t};\n\t\t\t\tcase \"pause\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tfetchStatus: \"paused\"\n\t\t\t\t};\n\t\t\t\tcase \"continue\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tfetchStatus: \"fetching\"\n\t\t\t\t};\n\t\t\t\tcase \"fetch\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\t...fetchState(state.data, this.options),\n\t\t\t\t\tfetchMeta: action.meta ?? null\n\t\t\t\t};\n\t\t\t\tcase \"success\": {\n\t\t\t\t\tconst newState = {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\t...successState(action.data, action.dataUpdatedAt),\n\t\t\t\t\t\tdataUpdateCount: state.dataUpdateCount + 1,\n\t\t\t\t\t\t...!action.manual && {\n\t\t\t\t\t\t\tfetchStatus: \"idle\",\n\t\t\t\t\t\t\tfetchFailureCount: 0,\n\t\t\t\t\t\t\tfetchFailureReason: null\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tthis.#revertState = action.manual ? newState : void 0;\n\t\t\t\t\treturn newState;\n\t\t\t\t}\n\t\t\t\tcase \"error\": {\n\t\t\t\t\tconst error = action.error;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\terror,\n\t\t\t\t\t\terrorUpdateCount: state.errorUpdateCount + 1,\n\t\t\t\t\t\terrorUpdatedAt: Date.now(),\n\t\t\t\t\t\tfetchFailureCount: state.fetchFailureCount + 1,\n\t\t\t\t\t\tfetchFailureReason: error,\n\t\t\t\t\t\tfetchStatus: \"idle\",\n\t\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\t\tisInvalidated: true\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcase \"invalidate\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tisInvalidated: true\n\t\t\t\t};\n\t\t\t\tcase \"setState\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\t...action.state\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t\tthis.state = reducer(this.state);\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.observers.slice().forEach((observer) => {\n\t\t\t\tobserver.onQueryUpdate();\n\t\t\t});\n\t\t\tthis.#cache.notify({\n\t\t\t\tquery: this,\n\t\t\t\ttype: \"updated\",\n\t\t\t\taction\n\t\t\t});\n\t\t});\n\t}\n};\n/**\n* Returns the state changes applied when a query starts fetching.\n* @param data - The query's current data. If it is `undefined`, the query is also reset to\n* `'pending'` with no error.\n* @param options - The query options, whose `networkMode` decides whether the query is `'fetching'`\n* or `'paused'`.\n* @returns The partial query state for a starting fetch.\n*/\nfunction fetchState(data, options) {\n\treturn {\n\t\tfetchFailureCount: 0,\n\t\tfetchFailureReason: null,\n\t\tfetchStatus: canFetch(options.networkMode) ? \"fetching\" : \"paused\",\n\t\t...data === void 0 && {\n\t\t\terror: null,\n\t\t\tstatus: \"pending\"\n\t\t}\n\t};\n}\n/**\n* Returns the state changes applied when a query receives data.\n* @param data - The new data.\n* @param dataUpdatedAt - The timestamp the data is recorded with. Defaults to the current time.\n* @returns The partial query state for a successful update.\n*/\nfunction successState(data, dataUpdatedAt) {\n\treturn {\n\t\tdata,\n\t\tdataUpdatedAt: dataUpdatedAt ?? Date.now(),\n\t\terror: null,\n\t\tisInvalidated: false,\n\t\tstatus: \"success\"\n\t};\n}\n/**\n* Returns the initial state of a query, based on its `initialData` and `initialDataUpdatedAt`\n* options.\n* @param options - The query options.\n* @returns The initial query state: `'success'` if `initialData` is set, otherwise `'pending'`.\n*/\nfunction getDefaultState(options) {\n\tconst data = typeof options.initialData === \"function\" ? options.initialData() : options.initialData;\n\tconst hasData = data !== void 0;\n\tconst initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === \"function\" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;\n\treturn {\n\t\tdata,\n\t\tdataUpdateCount: 0,\n\t\tdataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,\n\t\terror: null,\n\t\terrorUpdateCount: 0,\n\t\terrorUpdatedAt: 0,\n\t\tfetchFailureCount: 0,\n\t\tfetchFailureReason: null,\n\t\tfetchMeta: null,\n\t\tisInvalidated: false,\n\t\tstatus: hasData ? \"success\" : \"pending\",\n\t\tfetchStatus: \"idle\"\n\t};\n}\nexport { Query, fetchState };\n\n//# sourceMappingURL=query.js.map","import { notifyManager } from \"./notifyManager.js\";\nimport { Query } from \"./query.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashQueryKeyByOptions, matchQuery } from \"./utils.js\";\n// src/queryCache.ts\n/**\n* The `QueryCache` is the storage mechanism for TanStack Query. It stores all the data, meta\n* information, and state of the queries it contains.\n*\n* Normally, you will not interact with the `QueryCache` directly and instead use a `QueryClient`\n* for a specific cache. You can subscribe to it (inherited from `Subscribable`) to be informed of\n* safe/known updates to the cache, such as queries being added, removed, or updated — updates made\n* outside of the cache's own tracked mechanisms (e.g. mutating a query's state object directly) do\n* not notify subscribers.\n* @example\n* ```ts\n* const unsubscribe = queryCache.subscribe((event) => {\n*   console.log(event.type, event.query)\n* })\n* ```\n*/\nvar QueryCache = class extends Subscribable {\n\t#queries;\n\tconstructor(config = {}) {\n\t\tsuper();\n\t\tthis.config = config;\n\t\tthis.#queries = /* @__PURE__ */ new Map();\n\t}\n\t/**\n\t* Returns the existing `Query` instance for the given options' `queryKey`/`queryHash`, or\n\t* builds and adds a new one to the cache if none exists yet. Used by framework adapters and\n\t* plugins (e.g. broadcast/persistence) that need to get-or-create a `Query` directly, bypassing\n\t* the reactive `QueryObserver` machinery.\n\t* @param client - The client the query belongs to, used to default its options.\n\t* @param options - The query options, including the `queryKey`. A new query is created with the\n\t* options defaulted by {@link QueryClient#defaultQueryOptions}.\n\t* @param state - The initial state of a newly created query, e.g. when hydrating. Ignored if the\n\t* query already exists.\n\t* @returns The existing or newly created query.\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t*\n\t* const query = queryCache.build(queryClient, {\n\t*   queryKey: ['posts'],\n\t*   queryFn: fetchPosts,\n\t* })\n\t* ```\n\t*/\n\tbuild(client, options, state) {\n\t\tconst queryKey = options.queryKey;\n\t\tconst queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);\n\t\tlet query = this.get(queryHash);\n\t\tif (!query) {\n\t\t\tquery = new Query({\n\t\t\t\tclient,\n\t\t\t\tqueryKey,\n\t\t\t\tqueryHash,\n\t\t\t\toptions: client.defaultQueryOptions(options),\n\t\t\t\tstate,\n\t\t\t\tdefaultOptions: client.getQueryDefaults(queryKey)\n\t\t\t});\n\t\t\tthis.add(query);\n\t\t}\n\t\treturn query;\n\t}\n\t/**\n\t* Adds a query to the cache.\n\t* @internal\n\t* @param query - The query to add. If a query with the same hash is already cached, nothing\n\t* happens.\n\t*/\n\tadd(query) {\n\t\tif (!this.#queries.has(query.queryHash)) {\n\t\t\tthis.#queries.set(query.queryHash, query);\n\t\t\tthis.notify({\n\t\t\t\ttype: \"added\",\n\t\t\t\tquery\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* Destroys the given `Query` and removes it from the cache, notifying subscribers with a\n\t* `'removed'` event. A no-op if the query is no longer the one currently stored under its hash\n\t* (e.g. it was already replaced). Used by plugins (e.g. the broadcast client) that mirror\n\t* removals across `QueryCache` instances.\n\t* @param query - The query to remove.\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t* const query = queryCache.find({ queryKey: ['posts'] })\n\t*\n\t* if (query) {\n\t*   queryCache.remove(query)\n\t* }\n\t* ```\n\t*/\n\tremove(query) {\n\t\tif (this.#queries.get(query.queryHash) === query) {\n\t\t\tquery.destroy();\n\t\t\tthis.#queries.delete(query.queryHash);\n\t\t\tthis.notify({\n\t\t\t\ttype: \"removed\",\n\t\t\t\tquery\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t* Removes all queries from the cache.\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t*\n\t* queryCache.clear()\n\t* ```\n\t*/\n\tclear() {\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.getAll().forEach((query) => {\n\t\t\t\tthis.remove(query);\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Returns the `Query` instance stored under the given `queryHash`, or `undefined` if none\n\t* exists. Unlike {@link QueryCache#find}, this looks up by the already-computed hash rather\n\t* than by `QueryFilters`. Used by plugins (e.g. broadcast/hydration) that already have a hash\n\t* to look up directly.\n\t* @param queryHash - The hash of the query to look up.\n\t* @returns The query stored under the hash, or `undefined`.\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t* const queryHash = hashKey(['posts'])\n\t*\n\t* const query = queryCache.get(queryHash)\n\t* ```\n\t*/\n\tget(queryHash) {\n\t\treturn this.#queries.get(queryHash);\n\t}\n\t/**\n\t* Returns all queries within the cache.\n\t* @returns Every query in the cache.\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t*\n\t* const queries = queryCache.getAll()\n\t* ```\n\t*/\n\tgetAll() {\n\t\treturn [...this.#queries.values()];\n\t}\n\t/**\n\t* A slightly more advanced method that can be used to get an existing query instance from the\n\t* cache. This instance not only contains all the state for the query, but all of the instances,\n\t* and underlying guts of the query as well. If the query does not exist, `undefined` is\n\t* returned.\n\t*\n\t* This is not typically needed for most applications, but can come in handy when needing more\n\t* information about a query in rare scenarios (e.g. looking at `query.state.dataUpdatedAt` to\n\t* decide whether a query is fresh enough to be used as an initial value).\n\t* @param filters - The filters to match, including the required `queryKey`. `exact` defaults to\n\t* `true`.\n\t* @returns The first matching query, or `undefined`.\n\t* @see {@link QueryCache#findAll}\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t*\n\t* const query = queryCache.find({ queryKey: ['posts'] })\n\t* ```\n\t*/\n\tfind(filters) {\n\t\tconst defaultedFilters = {\n\t\t\texact: true,\n\t\t\t...filters\n\t\t};\n\t\treturn this.getAll().find((query) => matchQuery(defaultedFilters, query));\n\t}\n\t/**\n\t* An even more advanced method that can be used to get existing query instances from the cache\n\t* that partially match a query key. If no queries match, an empty array is returned.\n\t*\n\t* This is not typically needed for most applications, but can come in handy when needing more\n\t* information about queries in rare scenarios.\n\t* @param filters - The filters to match. Without filters, every query is returned.\n\t* @returns The matching queries.\n\t* @see {@link QueryCache#find}\n\t* @example\n\t* ```ts\n\t* const queryCache = queryClient.getQueryCache()\n\t*\n\t* const queries = queryCache.findAll({ queryKey: ['posts'] })\n\t* ```\n\t*/\n\tfindAll(filters = {}) {\n\t\tconst queries = this.getAll();\n\t\treturn Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;\n\t}\n\t/**\n\t* Notifies every cache listener of an event, in one batch.\n\t* @internal\n\t* @param event - The event passed to every listener.\n\t*/\n\tnotify(event) {\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.listeners.forEach((listener) => {\n\t\t\t\tlistener(event);\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Calls {@link Query#onFocus} on every cached query, in one batch.\n\t* @internal\n\t*/\n\tonFocus() {\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.getAll().forEach((query) => {\n\t\t\t\tquery.onFocus();\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Calls {@link Query#onOnline} on every cached query, in one batch.\n\t* @internal\n\t*/\n\tonOnline() {\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.getAll().forEach((query) => {\n\t\t\t\tquery.onOnline();\n\t\t\t});\n\t\t});\n\t}\n};\nexport { QueryCache };\n\n//# sourceMappingURL=queryCache.js.map","\"use client\";\nimport * as React from \"react\";\n// src/IsRestoringProvider.ts\nconst IsRestoringContext = React.createContext(false);\n/**\n* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to\n* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid\n* race conditions between the restore and mounting queries.\n* @returns `true` while a persisted client is being restored, `false` otherwise.\n*/\nconst useIsRestoring = () => React.useContext(IsRestoringContext);\n/**\n* The Provider that `PersistQueryClientProvider` uses to signal whether a persisted client is currently\n* being restored, read by `useIsRestoring`.\n*/\nconst IsRestoringProvider = IsRestoringContext.Provider;\nexport { IsRestoringProvider, useIsRestoring };\n\n//# sourceMappingURL=IsRestoringProvider.js.map","\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// src/QueryClientProvider.tsx\n/**\n* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.\n*/\nconst QueryClientContext = React.createContext(void 0);\n/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n};\n/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n*   return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }) => {\n\tReact.useEffect(() => {\n\t\tclient.mount();\n\t\treturn () => {\n\t\t\tclient.unmount();\n\t\t};\n\t}, [client]);\n\treturn /* @__PURE__ */ jsx(QueryClientContext.Provider, {\n\t\tvalue: client,\n\t\tchildren\n\t});\n};\nexport { QueryClientContext, QueryClientProvider, useQueryClient };\n\n//# sourceMappingURL=QueryClientProvider.js.map","\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// src/QueryErrorResetBoundary.tsx\n/**\n* Creates the value shared through the boundary's context, which tracks whether a reset was\n* requested.\n* @returns The `clearReset`, `isReset`, and `reset` functions of the boundary.\n*/\nfunction createValue() {\n\tlet isReset = false;\n\treturn {\n\t\t/**\n\t\t* Clears the reset state, so queries know not to try again until the boundary is reset again.\n\t\t*/\n\t\tclearReset: () => {\n\t\t\tisReset = false;\n\t\t},\n\t\t/**\n\t\t* Resets any query errors within the boundary, so queries know they can try again.\n\t\t*/\n\t\treset: () => {\n\t\t\tisReset = true;\n\t\t},\n\t\t/**\n\t\t* Returns whether the boundary has been reset and not yet cleared.\n\t\t* @returns `true` if the boundary has been reset and not yet cleared.\n\t\t*/\n\t\tisReset: () => {\n\t\t\treturn isReset;\n\t\t}\n\t};\n}\nconst QueryErrorResetBoundaryContext = React.createContext(createValue());\n/**\n* This hook will reset any query errors within the closest `QueryErrorResetBoundary`. If there is no boundary\n* defined it will reset them globally.\n* @returns The boundary's {@link QueryErrorResetBoundaryValue}.\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { useQueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App({ children }: { children: React.ReactNode }) {\n*   const { reset } = useQueryErrorResetBoundary()\n*\n*   return (\n*     <ErrorBoundary\n*       onReset={reset}\n*       fallbackRender={({ resetErrorBoundary }) => (\n*         <div>\n*           There was an error!\n*           <button onClick={() => resetErrorBoundary()}>Try again</button>\n*         </div>\n*       )}\n*     >\n*       {children}\n*     </ErrorBoundary>\n*   )\n* }\n* ```\n*/\nconst useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\n/**\n* When using `suspense` or `throwOnError` in your queries, you need a way to let queries know that you want to\n* try again when re-rendering after some error occurred. With the `QueryErrorResetBoundary` component you can\n* reset any query errors within the boundaries of the component.\n* @param props - The `children` to render.\n* @returns The `children`, rendered as-is, or called with the boundary's {@link QueryErrorResetBoundaryValue}\n* if `children` is a function.\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { QueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App() {\n*   return (\n*     <QueryErrorResetBoundary>\n*       {({ reset }) => (\n*         <ErrorBoundary\n*           onReset={reset}\n*           fallbackRender={({ resetErrorBoundary }) => (\n*             <div>\n*               There was an error!\n*               <button onClick={() => resetErrorBoundary()}>Try again</button>\n*             </div>\n*           )}\n*         >\n*           <Page />\n*         </ErrorBoundary>\n*       )}\n*     </QueryErrorResetBoundary>\n*   )\n* }\n* ```\n*/\nconst QueryErrorResetBoundary = ({ children }) => {\n\tconst [value] = React.useState(() => createValue());\n\treturn /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, {\n\t\tvalue,\n\t\tchildren: typeof children === \"function\" ? children(value) : children\n\t});\n};\nexport { QueryErrorResetBoundary, useQueryErrorResetBoundary };\n\n//# sourceMappingURL=QueryErrorResetBoundary.js.map","import { isServer } from \"./environmentManager.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { fetchState } from \"./query.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { timeoutManager } from \"./timeoutManager.js\";\nimport { isValidTimeout, noop, replaceData, resolveQueryValue, shallowEqualObjects, timeUntilStale } from \"./utils.js\";\n// src/queryObserver.ts\n/**\n* A `QueryObserver` watches a single query in the `QueryCache` and computes a\n* `QueryObserverResult` from its state, recomputing and notifying subscribers\n* whenever the underlying query (or the observer's options) changes. It is\n* the primitive that framework adapters (e.g. `useQuery`) build their hooks\n* on top of, but it can also be used directly to observe and switch between\n* queries outside of any framework.\n* @example\n* ```ts\n* const observer = new QueryObserver(queryClient, {\n*   queryKey: ['posts'],\n*   queryFn: fetchPosts,\n* })\n*\n* const unsubscribe = observer.subscribe((result) => {\n*   console.log(result.data)\n* })\n* ```\n*/\nvar QueryObserver = class extends Subscribable {\n\t#client;\n\t#currentQuery = void 0;\n\t#currentQueryInitialState = void 0;\n\t#currentResult = void 0;\n\t#currentResultOptions;\n\t#selectError;\n\t#selectFn;\n\t#selectInput;\n\t#selectResult;\n\t#lastQueryWithDefinedData;\n\t#staleTimeoutId;\n\t#refetchIntervalId;\n\t#currentRefetchInterval;\n\t#trackedProps = /* @__PURE__ */ new Set();\n\tconstructor(client, options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.#client = client;\n\t\tthis.#selectError = null;\n\t\tthis.bindMethods();\n\t\tthis.setOptions(options);\n\t}\n\t/**\n\t* Binds the methods of the result (`refetch`) to the observer, so they keep working when destructured\n\t* from it. Subclasses override it to bind their own result methods as well.\n\t*/\n\tbindMethods() {\n\t\tthis.refetch = this.refetch.bind(this);\n\t}\n\tonSubscribe() {\n\t\tif (this.listeners.size === 1) {\n\t\t\tthis.#currentQuery.addObserver(this);\n\t\t\tif (shouldFetchOnMount(this.#currentQuery, this.options)) this.#executeFetch();\n\t\t\telse this.updateResult();\n\t\t\tthis.#updateTimers();\n\t\t}\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) this.destroy();\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnReconnect` option) to refetch when the network\n\t* reconnects.\n\t* @returns `true` if the observer should refetch the query on reconnect.\n\t*/\n\tshouldFetchOnReconnect() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnReconnect);\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnWindowFocus` option) to refetch when the window\n\t* regains focus.\n\t* @returns `true` if the observer should refetch the query on window focus.\n\t*/\n\tshouldFetchOnWindowFocus() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnWindowFocus);\n\t}\n\t/**\n\t* Stops observing the current query: clears all listeners, cancels the\n\t* stale and refetch-interval timers, and removes this observer from the\n\t* query it was observing.\n\t*/\n\tdestroy() {\n\t\tthis.listeners = /* @__PURE__ */ new Set();\n\t\tthis.#clearStaleTimeout();\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentQuery.removeObserver(this);\n\t}\n\t/**\n\t* Updates the observer's options. This will re-resolve the query being\n\t* observed (switching to a different query if the `queryKey` changed),\n\t* trigger a fetch if the new options require one and the observer has\n\t* subscribers, recompute the current result, and reschedule the stale and\n\t* refetch-interval timers as needed.\n\t* @param options - The new observer options. They are defaulted with {@link\n\t* QueryClient#defaultQueryOptions} before being applied.\n\t* @throws {Error} If `enabled` is neither a boolean nor a function.\n\t* @example\n\t* ```ts\n\t* observer.setOptions({ queryKey: ['posts', 1], queryFn: () => fetchPost(1) })\n\t* // later: switch to a different query, reusing the same observer\n\t* observer.setOptions({ queryKey: ['posts', 2], queryFn: () => fetchPost(2) })\n\t* ```\n\t*/\n\tsetOptions(options) {\n\t\tconst prevOptions = this.options;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.options = this.#client.defaultQueryOptions(options);\n\t\tif (this.options.enabled !== void 0 && typeof this.options.enabled !== \"boolean\" && typeof this.options.enabled !== \"function\" && typeof resolveQueryValue(this.options.enabled, this.#currentQuery) !== \"boolean\") throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");\n\t\tthis.#updateQuery();\n\t\tthis.#currentQuery.setOptions(this.options);\n\t\tif (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) this.#client.getQueryCache().notify({\n\t\t\ttype: \"observerOptionsUpdated\",\n\t\t\tquery: this.#currentQuery,\n\t\t\tobserver: this\n\t\t});\n\t\tconst mounted = this.hasListeners();\n\t\tif (mounted && shouldFetchOptionally(this.#currentQuery, prevQuery, this.options, prevOptions)) this.#executeFetch();\n\t\tthis.updateResult();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || resolveQueryValue(this.options.staleTime, this.#currentQuery) !== resolveQueryValue(prevOptions.staleTime, this.#currentQuery))) this.#updateStaleTimeout();\n\t\tconst nextRefetchInterval = this.#computeRefetchInterval();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) this.#updateRefetchInterval(nextRefetchInterval);\n\t}\n\t/**\n\t* Computes the result the observer would produce for the given (already-defaulted) options\n\t* right now, building the underlying `Query` if it doesn't exist yet, without waiting for a\n\t* subscription callback. Called by framework adapters on every render (e.g. `useQuery`) so the\n\t* returned value is available synchronously, ahead of `setOptions` triggering an actual fetch.\n\t* @param options - The defaulted observer options to compute the result for.\n\t* @returns The result for the given options.\n\t*/\n\tgetOptimisticResult(options) {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, options);\n\t\tconst result = this.createResult(query, options);\n\t\tif (!shallowEqualObjects(this.getCurrentResult(), result)) {\n\t\t\tthis.#currentResult = result;\n\t\t\tthis.#currentResultOptions = options;\n\t\t}\n\t\treturn result;\n\t}\n\t/**\n\t* Returns the most recently computed `QueryObserverResult` for the\n\t* observed query. This is a point-in-time read; to be notified of updates\n\t* as they happen, subscribe to the observer instead (its inherited\n\t* `subscribe` method).\n\t* @returns The observer's latest result.\n\t* @example\n\t* ```ts\n\t* const result = observer.getCurrentResult()\n\t* console.log(result.status, result.data)\n\t* ```\n\t*/\n\tgetCurrentResult() {\n\t\treturn this.#currentResult;\n\t}\n\t/**\n\t* Wraps a `QueryObserverResult` in a `Proxy` that records which properties are read, via\n\t* {@link QueryObserver#trackProp} (and an optional `onPropTracked` callback). Used by framework\n\t* adapters when `notifyOnChangeProps` is not set, to implement its default \"only re-render on\n\t* properties you actually read\" behavior.\n\t* @param result - The result to wrap.\n\t* @param onPropTracked - Called with the name of each property that is read.\n\t* @returns A proxy of `result` that tracks property reads.\n\t*/\n\ttrackResult(result, onPropTracked) {\n\t\treturn new Proxy(result, { get: (target, key) => {\n\t\t\tthis.trackProp(key);\n\t\t\tonPropTracked?.(key);\n\t\t\treturn Reflect.get(target, key);\n\t\t} });\n\t}\n\t/**\n\t* Records that the given `QueryObserverResult` property was read, so a subsequent update only\n\t* notifies this observer if a tracked property actually changed. Normally called indirectly via\n\t* {@link QueryObserver#trackResult}'s proxy; exposed directly for adapters that track property\n\t* access themselves (e.g. through their own reactivity system) instead of via the proxy.\n\t* @param key - The name of the property that was read.\n\t*/\n\ttrackProp(key) {\n\t\tthis.#trackedProps.add(key);\n\t}\n\t/**\n\t* Returns the `Query` instance this observer is currently observing.\n\t* @returns The observed query.\n\t*/\n\tgetCurrentQuery() {\n\t\treturn this.#currentQuery;\n\t}\n\t/**\n\t* Refetches the observed query and returns a promise that resolves with\n\t* the resulting `QueryObserverResult`.\n\t* @param options - Set `cancelRefetch` to `false` to keep a running fetch instead of cancelling\n\t* it, and `throwOnError` to `true` to reject when the refetch fails.\n\t* @returns A promise that resolves with the result after the refetch.\n\t* @example\n\t* ```ts\n\t* const result = await observer.refetch({ cancelRefetch: false })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\trefetch({ ...options } = {}) {\n\t\treturn this.fetch({ ...options });\n\t}\n\t/**\n\t* Fetches a query defined by the given options without affecting this\n\t* observer's own tracked query or result, and returns a promise that\n\t* resolves with the `QueryObserverResult` for that fetch. This is useful\n\t* for prefetching data that another observer (e.g. a query about to be\n\t* navigated to) will need, ahead of time.\n\t* @param options - The observer options of the query to fetch.\n\t* @returns A promise that resolves with the result for the fetched query.\n\t* @example\n\t* ```ts\n\t* const result = await observer.fetchOptimistic({\n\t*   queryKey: ['posts', 2],\n\t*   queryFn: () => fetchPost(2),\n\t* })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\tfetchOptimistic(options) {\n\t\tconst defaultedOptions = this.#client.defaultQueryOptions(options);\n\t\tconst query = this.#client.getQueryCache().build(this.#client, defaultedOptions);\n\t\tlet unsubscribe = () => {};\n\t\tlet resolveEarly;\n\t\tconst cachePromise = new Promise((resolve) => {\n\t\t\tresolveEarly = resolve;\n\t\t\tunsubscribe = this.#client.getQueryCache().subscribe((event) => {\n\t\t\t\tif (event.type === \"updated\" && event.query.queryHash === query.queryHash && query.state.data !== void 0) {\n\t\t\t\t\tunsubscribe();\n\t\t\t\t\tresolve(this.createResult(query, defaultedOptions));\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\treturn Promise.race([query.fetch(defaultedOptions).then(() => {\n\t\t\tconst result = this.createResult(query, defaultedOptions);\n\t\t\tresolveEarly?.(result);\n\t\t\treturn result;\n\t\t}).finally(() => {\n\t\t\tunsubscribe();\n\t\t}), cachePromise]);\n\t}\n\t/**\n\t* Fetches the observed query and updates the result once the fetch settles. Used by `refetch` and,\n\t* in `InfiniteQueryObserver`, to fetch more pages.\n\t* @param fetchOptions - Options for this fetch. `cancelRefetch` defaults to `true`.\n\t* @returns A promise that resolves with the updated result.\n\t*/\n\tfetch(fetchOptions) {\n\t\treturn this.#executeFetch({\n\t\t\t...fetchOptions,\n\t\t\tcancelRefetch: fetchOptions.cancelRefetch ?? true\n\t\t}).then(() => {\n\t\t\tthis.updateResult();\n\t\t\treturn this.#currentResult;\n\t\t});\n\t}\n\t#executeFetch(fetchOptions) {\n\t\tthis.#updateQuery();\n\t\tlet promise = this.#currentQuery.fetch(this.options, fetchOptions);\n\t\tif (!fetchOptions?.throwOnError) promise = promise.catch(noop);\n\t\treturn promise;\n\t}\n\t#shouldScheduleTimer(timeout) {\n\t\treturn !isServer() && resolveQueryValue(this.options.enabled, this.#currentQuery) !== false && isValidTimeout(timeout);\n\t}\n\t#updateStaleTimeout() {\n\t\tthis.#clearStaleTimeout();\n\t\tconst staleTime = resolveQueryValue(this.options.staleTime, this.#currentQuery);\n\t\tif (this.#currentResult.isStale || !this.#shouldScheduleTimer(staleTime)) return;\n\t\tconst timeout = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime) + 1;\n\t\tthis.#staleTimeoutId = timeoutManager.setTimeout(() => {\n\t\t\tif (!this.#currentResult.isStale) this.updateResult();\n\t\t}, timeout);\n\t}\n\t#computeRefetchInterval() {\n\t\treturn resolveQueryValue(this.options.refetchInterval, this.#currentQuery) ?? false;\n\t}\n\t#updateRefetchInterval(nextInterval) {\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentRefetchInterval = nextInterval;\n\t\tif (this.#currentRefetchInterval === 0 || !this.#shouldScheduleTimer(this.#currentRefetchInterval)) return;\n\t\tthis.#refetchIntervalId = timeoutManager.setInterval(() => {\n\t\t\tif (this.options.refetchIntervalInBackground || focusManager.isFocused()) this.#executeFetch();\n\t\t}, this.#currentRefetchInterval);\n\t}\n\t#updateTimers() {\n\t\tthis.#updateStaleTimeout();\n\t\tthis.#updateRefetchInterval(this.#computeRefetchInterval());\n\t}\n\t#clearStaleTimeout() {\n\t\tif (this.#staleTimeoutId !== void 0) {\n\t\t\ttimeoutManager.clearTimeout(this.#staleTimeoutId);\n\t\t\tthis.#staleTimeoutId = void 0;\n\t\t}\n\t}\n\t#clearRefetchInterval() {\n\t\tif (this.#refetchIntervalId !== void 0) {\n\t\t\ttimeoutManager.clearInterval(this.#refetchIntervalId);\n\t\t\tthis.#refetchIntervalId = void 0;\n\t\t}\n\t}\n\t/**\n\t* Computes the result for a query and options from the query's state, applying `select`,\n\t* `placeholderData`, and the derived flags. Subclasses override it to add their own fields.\n\t* @param query - The query to compute the result for.\n\t* @param options - The observer options to compute the result with.\n\t* @returns The computed result.\n\t*/\n\tcreateResult(query, options) {\n\t\tconst prevQuery = this.#currentQuery;\n\t\tconst prevOptions = this.options;\n\t\tconst prevResult = this.#currentResult;\n\t\tconst prevResultOptions = this.#currentResultOptions;\n\t\tconst queryInitialState = query !== prevQuery ? query.state : this.#currentQueryInitialState;\n\t\tconst { state } = query;\n\t\tlet newState = { ...state };\n\t\tlet isPlaceholderData = false;\n\t\tlet data;\n\t\tif (options._optimisticResults) {\n\t\t\tconst mounted = this.hasListeners();\n\t\t\tconst fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n\t\t\tconst fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n\t\t\tif (fetchOnMount || fetchOptionally) newState = {\n\t\t\t\t...newState,\n\t\t\t\t...fetchState(state.data, query.options)\n\t\t\t};\n\t\t\tif (options._optimisticResults === \"isRestoring\") newState.fetchStatus = \"idle\";\n\t\t}\n\t\tlet { error, errorUpdatedAt, status } = newState;\n\t\tdata = newState.data;\n\t\tlet skipSelect = false;\n\t\tif (options.placeholderData !== void 0 && data === void 0 && status === \"pending\") {\n\t\t\tlet placeholderData;\n\t\t\tconst isMemoizedPlaceholder = prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData;\n\t\t\tif (isMemoizedPlaceholder) {\n\t\t\t\tplaceholderData = prevResult.data;\n\t\t\t\tskipSelect = true;\n\t\t\t} else placeholderData = typeof options.placeholderData === \"function\" ? options.placeholderData(this.#lastQueryWithDefinedData?.state.data, this.#lastQueryWithDefinedData) : options.placeholderData;\n\t\t\tif (isMemoizedPlaceholder || placeholderData !== void 0) {\n\t\t\t\tstatus = \"success\";\n\t\t\t\tdata = replaceData(options.select && !skipSelect ? this.#selectInput : prevResult?.data, placeholderData, options);\n\t\t\t\tisPlaceholderData = true;\n\t\t\t}\n\t\t}\n\t\tif (options.select && data !== void 0 && !skipSelect) {\n\t\t\tif (data === this.#selectInput && options.select === this.#selectFn) data = this.#selectResult;\n\t\t\telse try {\n\t\t\t\tthis.#selectFn = options.select;\n\t\t\t\tthis.#selectInput = data;\n\t\t\t\tdata = options.select(data);\n\t\t\t\tdata = replaceData(prevResult?.data, data, options);\n\t\t\t\tthis.#selectResult = data;\n\t\t\t\tthis.#selectError = null;\n\t\t\t} catch (selectError) {\n\t\t\t\tthis.#selectError = selectError;\n\t\t\t}\n\t\t} else if (data === void 0) {\n\t\t\tthis.#selectInput = void 0;\n\t\t\tthis.#selectError = null;\n\t\t}\n\t\tif (this.#selectError) {\n\t\t\terror = this.#selectError;\n\t\t\tdata = this.#selectResult;\n\t\t\terrorUpdatedAt = prevResult?.error === error ? prevResult.errorUpdatedAt : Date.now();\n\t\t\tstatus = \"error\";\n\t\t\tisPlaceholderData = false;\n\t\t}\n\t\tconst isFetching = newState.fetchStatus === \"fetching\";\n\t\tconst isPending = status === \"pending\";\n\t\tconst isError = status === \"error\";\n\t\tconst isLoading = isPending && isFetching;\n\t\tconst hasData = data !== void 0;\n\t\treturn {\n\t\t\tstatus,\n\t\t\tfetchStatus: newState.fetchStatus,\n\t\t\tisPending,\n\t\t\tisSuccess: status === \"success\",\n\t\t\tisError,\n\t\t\tisInitialLoading: isLoading,\n\t\t\tisLoading,\n\t\t\tdata,\n\t\t\tdataUpdatedAt: newState.dataUpdatedAt,\n\t\t\terror,\n\t\t\terrorUpdatedAt,\n\t\t\tfailureCount: newState.fetchFailureCount,\n\t\t\tfailureReason: newState.fetchFailureReason,\n\t\t\terrorUpdateCount: newState.errorUpdateCount,\n\t\t\tisFetched: query.isFetched(),\n\t\t\tisFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n\t\t\tisFetching,\n\t\t\tisRefetching: isFetching && !isPending,\n\t\t\tisLoadingError: isError && !hasData,\n\t\t\tisPaused: newState.fetchStatus === \"paused\",\n\t\t\tisPlaceholderData,\n\t\t\tisRefetchError: isError && hasData,\n\t\t\tisStale: isStale(query, options),\n\t\t\trefetch: this.refetch,\n\t\t\tisEnabled: resolveQueryValue(options.enabled, query) !== false\n\t\t};\n\t}\n\t/**\n\t* Recomputes and stores the current result from the current query/options, notifying listeners\n\t* if it changed. Framework adapters call this right after subscribing to make sure no query\n\t* update was missed in the gap between creating the observer and subscribing to it.\n\t*/\n\tupdateResult() {\n\t\tconst prevResult = this.#currentResult;\n\t\tconst nextResult = this.createResult(this.#currentQuery, this.options);\n\t\tthis.#currentResultOptions = this.options;\n\t\tif (this.#currentQuery.state.data !== void 0) this.#lastQueryWithDefinedData = this.#currentQuery;\n\t\tif (shallowEqualObjects(nextResult, prevResult)) return;\n\t\tthis.#currentResult = nextResult;\n\t\tconst shouldNotifyListeners = () => {\n\t\t\tif (!prevResult) return true;\n\t\t\tconst { notifyOnChangeProps } = this.options;\n\t\t\tconst notifyOnChangePropsValue = typeof notifyOnChangeProps === \"function\" ? notifyOnChangeProps() : notifyOnChangeProps;\n\t\t\tif (notifyOnChangePropsValue === \"all\" || !notifyOnChangePropsValue && !this.#trackedProps.size) return true;\n\t\t\tif (this.options.throwOnError && this.#currentResult.error !== prevResult.error) return true;\n\t\t\tfor (const key of notifyOnChangePropsValue ?? this.#trackedProps) if (this.#currentResult[key] !== prevResult[key]) return true;\n\t\t\treturn false;\n\t\t};\n\t\tconst notifyListeners = shouldNotifyListeners();\n\t\tnotifyManager.batch(() => {\n\t\t\tif (notifyListeners) this.listeners.forEach((listener) => {\n\t\t\t\tlistener(this.#currentResult);\n\t\t\t});\n\t\t\tthis.#client.getQueryCache().notify({\n\t\t\t\tquery: this.#currentQuery,\n\t\t\t\ttype: \"observerResultsUpdated\"\n\t\t\t});\n\t\t});\n\t}\n\t#updateQuery() {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, this.options);\n\t\tif (query === this.#currentQuery) return;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.#currentQuery = query;\n\t\tthis.#currentQueryInitialState = query.state;\n\t\tif (this.hasListeners()) {\n\t\t\tprevQuery?.removeObserver(this);\n\t\t\tquery.addObserver(this);\n\t\t}\n\t}\n\t/**\n\t* Updates the observer's result when the observed query changes, and reschedules its timers if it\n\t* has listeners.\n\t* @internal\n\t*/\n\tonQueryUpdate() {\n\t\tthis.updateResult();\n\t\tif (this.hasListeners()) this.#updateTimers();\n\t}\n};\n/**\n* Checks whether a query has no data yet and should do its initial load when an observer mounts.\n* @param query - The query to check.\n* @param options - The observer options.\n* @returns `true` if the query is enabled, has no data, and isn't in an error state with\n* `retryOnMount: false`.\n*/\nfunction shouldLoadOnMount(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === \"error\" && resolveQueryValue(options.retryOnMount, query) === false);\n}\n/**\n* Checks whether a query should fetch when an observer mounts: either for its initial load, or\n* because it has data and `refetchOnMount` asks for a refetch.\n* @param query - The query to check.\n* @param options - The observer options.\n* @returns `true` if the query should fetch on mount.\n*/\nfunction shouldFetchOnMount(query, options) {\n\treturn shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\n/**\n* Checks whether a query should fetch for a `refetchOnMount`, `refetchOnWindowFocus`, or\n* `refetchOnReconnect` option.\n* @param query - The query to check.\n* @param options - The observer options.\n* @param field - The value of the option to check.\n* @returns `true` if the query is enabled, not static, and the option is `'always'`, or is not\n* `false` and the query is stale.\n*/\nfunction shouldFetchOn(query, options, field) {\n\tif (resolveQueryValue(options.enabled, query) !== false && resolveQueryValue(options.staleTime, query) !== \"static\") {\n\t\tconst value = resolveQueryValue(field, query);\n\t\treturn value === \"always\" || value !== false && isStale(query, options);\n\t}\n\treturn false;\n}\n/**\n* Checks whether a query should fetch after the observer's options change.\n* @param query - The query observed with the new options.\n* @param prevQuery - The query observed with the previous options.\n* @param options - The new observer options.\n* @param prevOptions - The previous observer options.\n* @returns `true` if the query changed or was disabled before, it isn't a suspense query in an\n* error state, and it is stale.\n*/\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n\treturn (query !== prevQuery || resolveQueryValue(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== \"error\") && isStale(query, options);\n}\n/**\n* Checks whether a query is stale for the given observer options.\n* @param query - The query to check.\n* @param options - The observer options, whose `enabled` and `staleTime` are used.\n* @returns `true` if the query is enabled and its data is stale for `staleTime`.\n*/\nfunction isStale(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.isStaleByTime(resolveQueryValue(options.staleTime, query));\n}\nexport { QueryObserver };\n\n//# sourceMappingURL=queryObserver.js.map","\"use client\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nimport { QueryObserver } from \"@tanstack/query-core\";\n// src/useQuery.ts\nfunction useQuery(options, queryClient) {\n\treturn useBaseQuery(options, QueryObserver, queryClient);\n}\nexport { useQuery };\n\n//# sourceMappingURL=useQuery.js.map","\"use client\";\nimport { useIsRestoring } from \"./IsRestoringProvider.js\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary } from \"./errorBoundaryUtils.js\";\nimport { ensureSuspenseTimers, fetchOptimistic, shouldSuspend } from \"./suspense.js\";\nimport { noop, notifyManager } from \"@tanstack/query-core\";\nimport * as React from \"react\";\n// src/useBaseQuery.ts\n/**\n* Base implementation shared by `useQuery`, `useInfiniteQuery`, `useSuspenseQuery`, and\n* `useSuspenseInfiniteQuery`.\n* @param options - The options passed to the calling hook.\n* @param Observer - The observer class from query-core (`QueryObserver` or\n* `InfiniteQueryObserver`).\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest\n* context will be used.\n* @returns The query result, tracking which properties are read unless `notifyOnChangeProps` is\n* set.\n* @throws {Error} If `options` is not an object (outside production), or the query error when it should be\n* thrown to the nearest error boundary (see `throwOnError`). While suspending, it throws a promise instead.\n*/\nfunction useBaseQuery(options, Observer, queryClient) {\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (typeof options !== \"object\" || Array.isArray(options)) throw new Error(\"Bad argument type. Starting with v5, only the \\\"Object\\\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object\");\n\t}\n\tconst isRestoring = useIsRestoring();\n\tconst errorResetBoundary = useQueryErrorResetBoundary();\n\tconst client = useQueryClient(queryClient);\n\tconst defaultedOptions = client.defaultQueryOptions(options);\n\tconst query = client.getQueryCache().get(defaultedOptions.queryHash);\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (!defaultedOptions.queryFn) console.error(`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);\n\t}\n\tconst subscribed = options.subscribed !== false;\n\tdefaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : subscribed ? \"optimistic\" : void 0;\n\tensureSuspenseTimers(defaultedOptions);\n\tensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);\n\tuseClearResetErrorBoundary(errorResetBoundary);\n\tconst [observer] = React.useState(() => new Observer(client, defaultedOptions));\n\tconst result = observer.getOptimisticResult(defaultedOptions);\n\tReact.useEffect(() => {\n\t\tobserver.setOptions(defaultedOptions);\n\t}, [defaultedOptions, observer]);\n\tconst shouldSubscribe = !isRestoring && subscribed;\n\tReact.useSyncExternalStore(React.useCallback((onStoreChange) => {\n\t\tconst unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n\t\tobserver.updateResult();\n\t\treturn unsubscribe;\n\t}, [observer, shouldSubscribe]), () => observer.getCurrentResult(), () => observer.getCurrentResult());\n\tif (shouldSuspend(defaultedOptions, result)) throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n\tif (getHasError({\n\t\tresult,\n\t\terrorResetBoundary,\n\t\tthrowOnError: defaultedOptions.throwOnError,\n\t\tquery,\n\t\tsuspense: defaultedOptions.suspense\n\t})) throw result.error;\n\treturn !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\nexport { useBaseQuery };\n\n//# sourceMappingURL=useBaseQuery.js.map","// src/suspense.ts\n/**\n* The default `throwOnError` of the suspense hooks: throws the error to the nearest error boundary\n* only if the query has no data to show.\n* @param _error - The error of the query. Unused.\n* @param query - The query that errored.\n* @returns `true` if the query has no data.\n*/\nconst defaultThrowOnError = (_error, query) => query.state.data === void 0;\n/**\n* Raises `staleTime` and a numeric `gcTime` to at least 1000ms when `suspense` is enabled, so a\n* component that remounts after suspending doesn't refetch right away or find the query garbage\n* collected. A `'static'` `staleTime` is kept as is. Mutates the options.\n* @param defaultedOptions - The defaulted query options to adjust.\n*/\nconst ensureSuspenseTimers = (defaultedOptions) => {\n\tif (defaultedOptions.suspense) {\n\t\tconst MIN_SUSPENSE_TIME_MS = 1e3;\n\t\tconst clamp = (value) => value === \"static\" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);\n\t\tconst originalStaleTime = defaultedOptions.staleTime;\n\t\tdefaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);\n\t\tif (typeof defaultedOptions.gcTime === \"number\") defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS);\n\t}\n};\n/**\n* Checks whether a query should suspend: `suspense` is enabled and the result is still `pending`.\n* @param defaultedOptions - The defaulted query options, if any.\n* @param result - The current result of the observer.\n* @returns `true` if the component should suspend.\n*/\nconst shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\n/**\n* Fetches the query for a suspending component, without affecting the observer's own result. If\n* the fetch fails, the reset state of the error boundary is cleared, so the error is thrown to it.\n* @param defaultedOptions - The defaulted query options to fetch with.\n* @param observer - The observer of the query.\n* @param errorResetBoundary - The value of the nearest `QueryErrorResetBoundary`.\n* @returns A promise that resolves once the fetch settles. It never rejects.\n*/\nconst fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n\terrorResetBoundary.clearReset();\n});\nexport { defaultThrowOnError, ensureSuspenseTimers, fetchOptimistic, shouldSuspend };\n\n//# sourceMappingURL=suspense.js.map","\"use client\";\nimport { shouldThrowError } from \"@tanstack/query-core\";\nimport * as React from \"react\";\n// src/errorBoundaryUtils.ts\n/**\n* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),\n* unless the error boundary has been reset, so a remount doesn't retry the failed query before the\n* user resets the boundary. Mutates the options.\n* @param options - The defaulted query options to adjust.\n* @param errorResetBoundary - The value of the nearest `QueryErrorResetBoundary`.\n* @param query - The query, used to evaluate a `throwOnError` function against its error.\n*/\nconst ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {\n\tconst throwOnError = query?.state.status === \"error\" && typeof options.throwOnError === \"function\" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;\n\tif (options.suspense || throwOnError) {\n\t\tif (!errorResetBoundary.isReset()) options.retryOnMount = false;\n\t}\n};\n/**\n* Clears the reset state of the error boundary after the component mounts, so later errors are\n* thrown to the boundary again.\n* @param errorResetBoundary - The value of the nearest `QueryErrorResetBoundary`.\n*/\nconst useClearResetErrorBoundary = (errorResetBoundary) => {\n\tReact.useEffect(() => {\n\t\terrorResetBoundary.clearReset();\n\t}, [errorResetBoundary]);\n};\n/**\n* Checks whether the query error should be thrown to the nearest error boundary: the query errored\n* and isn't fetching, the boundary hasn't been reset, and either `suspense` is enabled with no data\n* or `throwOnError` says so.\n* @param params - The observer `result`, the `errorResetBoundary`, the `throwOnError` option, the\n* `query`, and the `suspense` option.\n* @returns `true` if the error should be thrown.\n*/\nconst getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {\n\treturn result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\nexport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };\n\n//# sourceMappingURL=errorBoundaryUtils.js.map","import { createTheme } from \"@mantine/core\";\n\n/**\n * FIRMIN Mantine theme aligned with docs/plans/2026-11-22-ui-redesign/obrazovky.md:\n * - primary brand: #567396 (hover/dark accent #384c64, links #3d5a80, tint #e4ebf3)\n * - ink: #1f2a37, muted: #5c6773, canvas: #f4f5f7, surface: #ffffff\n * - card radius 14px, subtle elevation 0 1px 2px rgba(31,42,55,.06)\n * - font: Inter (bundled locally via @fontsource-variable/inter), 14px base\n *\n * Touch & readability (Jay, 25. 11. 2026): reception works on a ~23\" touch display, so no\n * tiny controls. Buttons default to `sm` (36 px, 14 px text), row ActionIcons to `md` (32 px\n * target, 18 px icons), meaning-carrying Badges to `md` (12 px text), Chip and\n * SegmentedControl to `sm`; body text 14 px, secondary text (`xs`) 13 px.\n */\nexport const firminTheme = createTheme({\n  primaryColor: \"firmin\",\n  primaryShade: 6,\n  colors: {\n    firmin: [\n      \"#f3f6fa\",\n      \"#e4ebf3\",\n      \"#cbd8e6\",\n      \"#aec3d9\",\n      \"#8da8c6\",\n      \"#6e8eb0\",\n      \"#567396\",\n      \"#3d5a80\",\n      \"#384c64\",\n      \"#263547\",\n    ],\n    fmRed: [\n      \"#fef2f2\",\n      \"#fde8e6\",\n      \"#fbd0cc\",\n      \"#f7aba4\",\n      \"#ef7b70\",\n      \"#df4c3e\",\n      \"#b42318\",\n      \"#8f1d12\",\n      \"#73170e\",\n      \"#57120b\",\n    ],\n    fmAmber: [\n      \"#fff9eb\",\n      \"#fdebd3\",\n      \"#fad7a6\",\n      \"#f5be70\",\n      \"#eea23d\",\n      \"#d98218\",\n      \"#b56508\",\n      \"#8a4b00\",\n      \"#6e3c00\",\n      \"#522c00\",\n    ],\n    fmGreen: [\n      \"#f2faf4\",\n      \"#e3f1e7\",\n      \"#c5e3cd\",\n      \"#9ad0a9\",\n      \"#6bb882\",\n      \"#419b5e\",\n      \"#288044\",\n      \"#1e6b32\",\n      \"#165326\",\n      \"#0f3c1b\",\n    ],\n  },\n  fontFamily:\n    \"'Inter Variable', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\",\n  headings: {\n    fontFamily:\n      \"'Inter Variable', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\",\n    fontWeight: \"600\",\n  },\n  // rem is 16 px (app.css leaves the root font size alone). Base text (`md`, a Text without a\n  // size) is 14 px as before; secondary text (`xs`) is 13 px, never smaller.\n  fontSizes: {\n    xs: \"0.8125rem\",\n    sm: \"0.875rem\",\n    md: \"0.875rem\",\n    lg: \"1.125rem\",\n    xl: \"1.25rem\",\n  },\n  defaultRadius: \"md\",\n  radius: {\n    xs: \"4px\",\n    sm: \"6px\",\n    md: \"8px\",\n    lg: \"12px\",\n    xl: \"14px\",\n  },\n  shadows: {\n    xs: \"0 1px 2px rgba(31, 42, 55, 0.06)\",\n    sm: \"0 2px 6px rgba(31, 42, 55, 0.08)\",\n    md: \"0 10px 30px rgba(31, 42, 55, 0.16)\",\n    lg: \"0 20px 50px rgba(31, 42, 55, 0.25)\",\n  },\n  black: \"#1f2a37\",\n  white: \"#ffffff\",\n  other: {\n    canvasBg: \"#f4f5f7\",\n    borderSubtle: \"#e6e9ee\",\n    surfaceMuted: \"#eef1f4\",\n    inkMuted: \"#5c6773\",\n    inkSecondary: \"#3f4b59\",\n    linkColor: \"#3d5a80\",\n    linkHoverColor: \"#2a4060\",\n  },\n  components: {\n    Card: {\n      defaultProps: {\n        radius: \"xl\",\n        shadow: \"xs\",\n        padding: \"md\",\n      },\n    },\n    Paper: {\n      defaultProps: {\n        radius: \"xl\",\n      },\n    },\n    Button: {\n      defaultProps: {\n        radius: \"md\",\n        size: \"sm\",\n      },\n    },\n    ActionIcon: {\n      defaultProps: {\n        size: \"md\",\n      },\n      // Mantine's md is 28 px; a row icon action needs a ≈32 px target\n      vars: (theme, props) =>\n        props.size === \"md\" ? { root: { \"--ai-size\": \"2rem\" } } : { root: {} },\n    },\n    Badge: {\n      defaultProps: {\n        size: \"md\",\n      },\n      // Mantine's md has 11 px text; state and flag badges need ≥ 12 px\n      vars: (theme, props) =>\n        props.size === \"md\"\n          ? { root: { \"--badge-fz\": \"0.75rem\", \"--badge-height\": \"1.375rem\" } }\n          : { root: {} },\n    },\n    Chip: {\n      defaultProps: {\n        size: \"sm\",\n      },\n    },\n    SegmentedControl: {\n      defaultProps: {\n        size: \"sm\",\n      },\n    },\n    Modal: {\n      defaultProps: {\n        radius: \"xl\",\n      },\n    },\n    Popover: {\n      defaultProps: {\n        radius: \"lg\",\n        shadow: \"md\",\n      },\n    },\n    Menu: {\n      defaultProps: {\n        radius: \"lg\",\n        shadow: \"md\",\n      },\n    },\n    Tooltip: {\n      defaultProps: {\n        withArrow: true,\n        openDelay: 250,\n      },\n    },\n  },\n});\n\nexport default firminTheme;\n","import cs from \"./locales/cs.json\";\nimport en from \"./locales/en.json\";\n\n/**\n * The portal's translations: the same policy as the operator UI (common/src/i18n.js), i.e.\n * the English text is the key and Czech lives in locales/cs.json, and the language comes\n * from the django_language cookie (Czech by default; switching reloads the page). The portal\n * needs only lookup and {{name}} interpolation, so it does without i18next (49 kB less).\n * No plurals: write whole sentences with a number (\"Selected: {{n}}\").\n */\nexport function getLanguageFromCookie() {\n  if (typeof document === \"undefined\") return \"cs\";\n  const match = document.cookie.match(/(?:^|;\\s*)django_language=([^;]+)/);\n  return match ? decodeURIComponent(match[1]) : \"cs\";\n}\n\nexport function setLanguage(code) {\n  document.cookie = `django_language=${code}; path=/; max-age=31536000; samesite=lax`;\n  window.location.reload();\n}\n\nconst CATALOGS = { cs, en };\n\nexport function t(key, values) {\n  const catalog = CATALOGS[getLanguageFromCookie()] || {};\n  const text = catalog[key] || key;\n  if (!values) return text;\n  return text.replace(/{{\\s*(\\w+)\\s*}}/g, (whole, name) =>\n    values[name] === undefined || values[name] === null ? whole : String(values[name])\n  );\n}\n","import { t } from \"./i18n\";\n\nexport const ME = [\"me\"];\n\nfunction csrfCookieName() {\n  const root = typeof document !== \"undefined\" && document.getElementById(\"root\");\n  return (root && root.dataset.csrfCookie) || \"csrftoken\";\n}\n\nfunction readCookie(name) {\n  const match = document.cookie.match(new RegExp(`(?:^|;\\\\s*)${name}=([^;]+)`));\n  return match ? decodeURIComponent(match[1]) : \"\";\n}\n\nexport class ApiError extends Error {\n  constructor(message, status, data) {\n    super(message);\n    this.status = status;\n    this.data = data;\n  }\n}\n\n/** JSON request to the portal API; a non-2xx answer throws ApiError with the server's text. */\nexport async function api(path, { method = \"GET\", body } = {}) {\n  const headers = { Accept: \"application/json\" };\n  if (body !== undefined) headers[\"Content-Type\"] = \"application/json\";\n  if (method !== \"GET\") headers[\"X-CSRFToken\"] = readCookie(csrfCookieName());\n  let response;\n  try {\n    response = await fetch(path, {\n      method,\n      credentials: \"same-origin\",\n      headers,\n      body: body === undefined ? undefined : JSON.stringify(body),\n    });\n  } catch (error) {\n    throw new ApiError(t(\"No connection. Please check your internet and try again.\"), 0);\n  }\n  let data = null;\n  if (response.status !== 204) {\n    try {\n      data = await response.json();\n    } catch (error) {\n      data = null;\n    }\n  }\n  if (!response.ok) {\n    throw new ApiError(\n      (data && data.detail) || t(\"Something went wrong. Please try again.\"),\n      response.status,\n      data\n    );\n  }\n  return data;\n}\n\n/** \"2026-11-25\" → \"25. 11. 2026\" */\nexport function formatDate(iso) {\n  if (!iso) return \"\";\n  const [y, m, d] = iso.slice(0, 10).split(\"-\").map(Number);\n  return `${d}. ${m}. ${y}`;\n}\n","\"use client\";\n// packages/@mantine/core/src/components/Paper/Paper.module.css\nvar Paper_module_default = { \"root\": \"m_1b7284a3\" };\nexport { Paper_module_default as default };\n\n//# sourceMappingURL=Paper.module.mjs.map","\"use client\";\nimport { getRadius, getShadow } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Paper_module_default from \"./Paper.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Paper/Paper.tsx\nconst varsResolver = createVarsResolver((_, { radius, shadow }) => ({ root: {\n\t\"--paper-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--paper-shadow\": getShadow(shadow)\n} }));\nconst Paper = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Paper\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, withBorder, vars, radius, shadow, variant, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Paper\",\n\t\tprops,\n\t\tclasses: Paper_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tmod: [{ withBorder }, mod],\n\t\t...getStyles(\"root\"),\n\t\tvariant,\n\t\t...others\n\t});\n});\nPaper.classes = Paper_module_default;\nPaper.varsResolver = varsResolver;\nPaper.displayName = \"@mantine/core/Paper\";\nexport { Paper };\n\n//# sourceMappingURL=Paper.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Stack/Stack.module.css\nvar Stack_module_default = { \"root\": \"m_6d731127\" };\nexport { Stack_module_default as default };\n\n//# sourceMappingURL=Stack.module.mjs.map","\"use client\";\nimport { getSpacing } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Stack_module_default from \"./Stack.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Stack/Stack.tsx\nconst defaultProps = {\n\tgap: \"md\",\n\talign: \"stretch\",\n\tjustify: \"flex-start\"\n};\nconst varsResolver = createVarsResolver((_, { gap, align, justify }) => ({ root: {\n\t\"--stack-gap\": getSpacing(gap),\n\t\"--stack-align\": align,\n\t\"--stack-justify\": justify\n} }));\nconst Stack = factory((_props) => {\n\tconst props = useProps(\"Stack\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, align, justify, gap, variant, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Stack\",\n\t\tprops,\n\t\tclasses: Stack_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\tvariant,\n\t\t...others\n\t});\n});\nStack.classes = Stack_module_default;\nStack.varsResolver = varsResolver;\nStack.displayName = \"@mantine/core/Stack\";\nexport { Stack };\n\n//# sourceMappingURL=Stack.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Alert/Alert.module.css\nvar Alert_module_default = {\n\t\"root\": \"m_66836ed3\",\n\t\"wrapper\": \"m_a5d60502\",\n\t\"body\": \"m_667c2793\",\n\t\"title\": \"m_6a03f287\",\n\t\"label\": \"m_698f4f23\",\n\t\"icon\": \"m_667f2a6a\",\n\t\"message\": \"m_7fa78076\",\n\t\"closeButton\": \"m_87f54839\"\n};\nexport { Alert_module_default as default };\n\n//# sourceMappingURL=Alert.module.mjs.map","\"use client\";\nimport { randomId } from \"../utils/random-id/random-id.mjs\";\nimport { useIsomorphicEffect } from \"../use-isomorphic-effect/use-isomorphic-effect.mjs\";\nimport { useId, useRef, useState } from \"react\";\n// packages/@mantine/hooks/src/use-id/use-id.ts\nfunction useId$1(staticId) {\n\tconst reactId = useId();\n\tconst [uuid, setUuid] = useState(`mantine-${reactId.replace(/:/g, \"\")}`);\n\tconst hasInitializedRef = useRef(false);\n\tuseIsomorphicEffect(() => {\n\t\tif (hasInitializedRef.current) return;\n\t\thasInitializedRef.current = true;\n\t\tsetUuid(randomId());\n\t}, []);\n\tif (typeof staticId === \"string\") return staticId;\n\treturn uuid;\n}\nexport { useId$1 as useId };\n\n//# sourceMappingURL=use-id.mjs.map","\"use client\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { CloseButton } from \"../CloseButton/CloseButton.mjs\";\nimport Alert_module_default from \"./Alert.module.mjs\";\nimport { useId } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Alert/Alert.tsx\nconst varsResolver = createVarsResolver((theme, { radius, color, variant, autoContrast }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tvariant: variant || \"light\",\n\t\tautoContrast\n\t});\n\treturn { root: {\n\t\t\"--alert-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--alert-bg\": color || variant ? colors.background : void 0,\n\t\t\"--alert-color\": colors.color,\n\t\t\"--alert-bd\": color || variant ? colors.border : void 0\n\t} };\n});\nconst Alert = factory((_props) => {\n\tconst props = useProps(\"Alert\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, radius, color, title, children, id, icon, withCloseButton, onClose, closeButtonLabel, variant, autoContrast, role, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Alert\",\n\t\tclasses: Alert_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst rootId = useId(id);\n\tconst titleId = title && `${rootId}-title` || void 0;\n\tconst bodyId = `${rootId}-body`;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tid: rootId,\n\t\t...getStyles(\"root\", { variant }),\n\t\tvariant,\n\t\t...others,\n\t\trole: role || \"alert\",\n\t\t\"aria-describedby\": children ? bodyId : void 0,\n\t\t\"aria-labelledby\": title ? titleId : void 0,\n\t\tchildren: /* @__PURE__ */ jsxs(\"div\", {\n\t\t\t...getStyles(\"wrapper\"),\n\t\t\tchildren: [\n\t\t\t\ticon && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t...getStyles(\"icon\"),\n\t\t\t\t\tchildren: icon\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ jsxs(\"div\", {\n\t\t\t\t\t...getStyles(\"body\"),\n\t\t\t\t\tchildren: [title && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t\t...getStyles(\"title\"),\n\t\t\t\t\t\t\"data-with-close-button\": withCloseButton || void 0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t\t\t\tid: titleId,\n\t\t\t\t\t\t\t...getStyles(\"label\"),\n\t\t\t\t\t\t\tchildren: title\n\t\t\t\t\t\t})\n\t\t\t\t\t}), children && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t\tid: bodyId,\n\t\t\t\t\t\t...getStyles(\"message\"),\n\t\t\t\t\t\t\"data-variant\": variant,\n\t\t\t\t\t\tchildren\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\twithCloseButton && /* @__PURE__ */ jsx(CloseButton, {\n\t\t\t\t\t...getStyles(\"closeButton\"),\n\t\t\t\t\tonClick: onClose,\n\t\t\t\t\tvariant: \"transparent\",\n\t\t\t\t\tsize: 16,\n\t\t\t\t\ticonSize: 16,\n\t\t\t\t\t\"aria-label\": closeButtonLabel,\n\t\t\t\t\tunstyled\n\t\t\t\t})\n\t\t\t]\n\t\t})\n\t});\n});\nAlert.classes = Alert_module_default;\nAlert.varsResolver = varsResolver;\nAlert.displayName = \"@mantine/core/Alert\";\nexport { Alert };\n\n//# sourceMappingURL=Alert.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Text/Text.module.css\nvar Text_module_default = { \"root\": \"m_b6d8b162\" };\nexport { Text_module_default as default };\n\n//# sourceMappingURL=Text.module.mjs.map","\"use client\";\nimport { getFontSize, getLineHeight } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getGradient } from \"../../core/MantineProvider/color-functions/get-gradient/get-gradient.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Text_module_default from \"./Text.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Text/Text.tsx\nfunction getTextTruncate(truncate) {\n\tif (truncate === \"start\") return \"start\";\n\tif (truncate === \"end\" || truncate) return \"end\";\n}\nconst defaultProps = { inherit: false };\nconst varsResolver = createVarsResolver((theme, { variant, lineClamp, gradient, size, textWrap }) => ({ root: {\n\t\"--text-fz\": getFontSize(size),\n\t\"--text-lh\": getLineHeight(size),\n\t\"--text-gradient\": variant === \"gradient\" ? getGradient(gradient, theme) : void 0,\n\t\"--text-line-clamp\": typeof lineClamp === \"number\" ? lineClamp.toString() : void 0,\n\t\"--text-text-wrap\": textWrap\n} }));\nconst Text = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Text\", defaultProps, _props);\n\tconst { lineClamp, truncate, inline, inherit, gradient, span, textWrap, __staticSelector, vars, className, style, classNames, styles, unstyled, variant, mod, size, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: [\"Text\", __staticSelector],\n\t\tprops,\n\t\tclasses: Text_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\", { focusable: true }),\n\t\tcomponent: span ? \"span\" : \"p\",\n\t\tvariant,\n\t\tmod: [{\n\t\t\ttruncate: getTextTruncate(truncate),\n\t\t\tlineClamp: typeof lineClamp === \"number\",\n\t\t\tinline,\n\t\t\tinherit\n\t\t}, mod],\n\t\tsize,\n\t\t...others\n\t});\n});\nText.classes = Text_module_default;\nText.varsResolver = varsResolver;\nText.displayName = \"@mantine/core/Text\";\nexport { Text };\n\n//# sourceMappingURL=Text.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Transition/transitions.ts\nconst popIn = (from) => ({\n\tin: {\n\t\topacity: 1,\n\t\ttransform: \"scale(1)\"\n\t},\n\tout: {\n\t\topacity: 0,\n\t\ttransform: `scale(.9) translateY(${from === \"bottom\" ? 10 : -10}px)`\n\t},\n\ttransitionProperty: \"transform, opacity\"\n});\nconst transitions = {\n\tfade: {\n\t\tin: { opacity: 1 },\n\t\tout: { opacity: 0 },\n\t\ttransitionProperty: \"opacity\"\n\t},\n\t\"fade-up\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(30px)\"\n\t\t},\n\t\ttransitionProperty: \"opacity, transform\"\n\t},\n\t\"fade-down\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(-30px)\"\n\t\t},\n\t\ttransitionProperty: \"opacity, transform\"\n\t},\n\t\"fade-left\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateX(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateX(30px)\"\n\t\t},\n\t\ttransitionProperty: \"opacity, transform\"\n\t},\n\t\"fade-right\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateX(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateX(-30px)\"\n\t\t},\n\t\ttransitionProperty: \"opacity, transform\"\n\t},\n\tscale: {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"scale(1)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"scale(0)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"top\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"scale-y\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"scaleY(1)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"scaleY(0)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"top\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"scale-x\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"scaleX(1)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"scaleX(0)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"left\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"skew-up\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0) skew(0deg, 0deg)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(-20px) skew(-10deg, -5deg)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"top\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"skew-down\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0) skew(0deg, 0deg)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(20px) skew(-10deg, -5deg)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"bottom\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"rotate-left\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0) rotate(0deg)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(20px) rotate(-5deg)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"bottom\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"rotate-right\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0) rotate(0deg)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(20px) rotate(5deg)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"top\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"slide-down\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(-100%)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"top\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"slide-up\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateY(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateY(100%)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"bottom\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"slide-left\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateX(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateX(100%)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"left\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\t\"slide-right\": {\n\t\tin: {\n\t\t\topacity: 1,\n\t\t\ttransform: \"translateX(0)\"\n\t\t},\n\t\tout: {\n\t\t\topacity: 0,\n\t\t\ttransform: \"translateX(-100%)\"\n\t\t},\n\t\tcommon: { transformOrigin: \"right\" },\n\t\ttransitionProperty: \"transform, opacity\"\n\t},\n\tpop: {\n\t\t...popIn(\"bottom\"),\n\t\tcommon: { transformOrigin: \"center center\" }\n\t},\n\t\"pop-bottom-left\": {\n\t\t...popIn(\"bottom\"),\n\t\tcommon: { transformOrigin: \"bottom left\" }\n\t},\n\t\"pop-bottom-right\": {\n\t\t...popIn(\"bottom\"),\n\t\tcommon: { transformOrigin: \"bottom right\" }\n\t},\n\t\"pop-top-left\": {\n\t\t...popIn(\"top\"),\n\t\tcommon: { transformOrigin: \"top left\" }\n\t},\n\t\"pop-top-right\": {\n\t\t...popIn(\"top\"),\n\t\tcommon: { transformOrigin: \"top right\" }\n\t}\n};\nexport { transitions };\n\n//# sourceMappingURL=transitions.mjs.map","\"use client\";\nimport { transitions } from \"../transitions.mjs\";\n// packages/@mantine/core/src/components/Transition/get-transition-styles/get-transition-styles.ts\nconst transitionStatuses = {\n\tentering: \"in\",\n\tentered: \"in\",\n\texiting: \"out\",\n\texited: \"out\",\n\t\"pre-exiting\": \"out\",\n\t\"pre-entering\": \"out\"\n};\nfunction getTransitionStyles({ transition, state, duration, timingFunction }) {\n\tconst shared = {\n\t\tWebkitBackfaceVisibility: \"hidden\",\n\t\ttransitionDuration: `${duration}ms`,\n\t\ttransitionTimingFunction: timingFunction\n\t};\n\tif (typeof transition === \"string\") {\n\t\tif (!(transition in transitions)) return {};\n\t\treturn {\n\t\t\ttransitionProperty: transitions[transition].transitionProperty,\n\t\t\t...shared,\n\t\t\t...transitions[transition].common,\n\t\t\t...transitions[transition][transitionStatuses[state]]\n\t\t};\n\t}\n\treturn {\n\t\ttransitionProperty: transition.transitionProperty,\n\t\t...shared,\n\t\t...transition.common,\n\t\t...transition[transitionStatuses[state]]\n\t};\n}\nexport { getTransitionStyles };\n\n//# sourceMappingURL=get-transition-styles.mjs.map","\"use client\";\nimport { useMantineEnv } from \"../../core/MantineProvider/Mantine.context.mjs\";\nimport { getTransitionStyles } from \"./get-transition-styles/get-transition-styles.mjs\";\nimport { useTransition } from \"./use-transition.mjs\";\nimport { Activity } from \"react\";\nimport { Fragment as Fragment$1, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Transition/Transition.tsx\nfunction Transition({ keepMounted, keepMountedMode = \"activity\", transition = \"fade\", duration = 250, exitDuration = duration, mounted, children, timingFunction = \"ease\", onExit, onEntered, onEnter, onExited, enterDelay, exitDelay }) {\n\tconst env = useMantineEnv();\n\tconst { transitionDuration, transitionStatus, transitionTimingFunction } = useTransition({\n\t\tmounted,\n\t\texitDuration,\n\t\tduration,\n\t\ttimingFunction,\n\t\tonExit,\n\t\tonEntered,\n\t\tonEnter,\n\t\tonExited,\n\t\tenterDelay,\n\t\texitDelay\n\t});\n\tif (env === \"test\") return mounted ? /* @__PURE__ */ jsx(Fragment$1, { children: children({}) }) : keepMounted ? children({ display: \"none\" }) : null;\n\tif (transitionDuration === 0) {\n\t\tif (keepMounted) {\n\t\t\tif (keepMountedMode === \"display-none\") return mounted ? /* @__PURE__ */ jsx(Fragment$1, { children: children({}) }) : children({ display: \"none\" });\n\t\t\treturn /* @__PURE__ */ jsx(Activity, {\n\t\t\t\tmode: mounted ? \"visible\" : \"hidden\",\n\t\t\t\tchildren: children({})\n\t\t\t});\n\t\t}\n\t\treturn mounted ? /* @__PURE__ */ jsx(Fragment$1, { children: children({}) }) : null;\n\t}\n\tconst isExited = transitionStatus === \"exited\";\n\tif (keepMounted) {\n\t\tconst keepMountedChildren = children(isExited ? keepMountedMode === \"display-none\" ? { display: \"none\" } : {} : getTransitionStyles({\n\t\t\ttransition,\n\t\t\tduration: transitionDuration,\n\t\t\tstate: transitionStatus,\n\t\t\ttimingFunction: transitionTimingFunction\n\t\t}));\n\t\tif (keepMountedMode === \"display-none\") return keepMountedChildren;\n\t\treturn /* @__PURE__ */ jsx(Activity, {\n\t\t\tmode: isExited ? \"hidden\" : \"visible\",\n\t\t\tchildren: keepMountedChildren\n\t\t});\n\t}\n\treturn isExited ? null : /* @__PURE__ */ jsx(Fragment$1, { children: children(getTransitionStyles({\n\t\ttransition,\n\t\tduration: transitionDuration,\n\t\tstate: transitionStatus,\n\t\ttimingFunction: transitionTimingFunction\n\t})) });\n}\nTransition.displayName = \"@mantine/core/Transition\";\nexport { Transition };\n\n//# sourceMappingURL=Transition.mjs.map","\"use client\";\nimport { useMantineTheme } from \"../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useDidUpdate, useReducedMotion } from \"@mantine/hooks\";\nimport ReactDOM from \"react-dom\";\n// packages/@mantine/core/src/components/Transition/use-transition.ts\nfunction useTransition({ duration, exitDuration, timingFunction, mounted, onEnter, onExit, onEntered, onExited, enterDelay, exitDelay }) {\n\tconst theme = useMantineTheme();\n\tconst shouldReduceMotion = useReducedMotion();\n\tconst reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false;\n\tconst [transitionDuration, setTransitionDuration] = useState(reduceMotion ? 0 : duration);\n\tconst [transitionStatus, setStatus] = useState(mounted ? \"entered\" : \"exited\");\n\tconst transitionTimeoutRef = useRef(-1);\n\tconst delayTimeoutRef = useRef(-1);\n\tconst rafRef = useRef(-1);\n\tfunction clearAllTimeouts() {\n\t\twindow.clearTimeout(transitionTimeoutRef.current);\n\t\twindow.clearTimeout(delayTimeoutRef.current);\n\t\tcancelAnimationFrame(rafRef.current);\n\t\trafRef.current = -1;\n\t}\n\tconst handleStateChange = (shouldMount) => {\n\t\tclearAllTimeouts();\n\t\tconst preHandler = shouldMount ? onEnter : onExit;\n\t\tconst handler = shouldMount ? onEntered : onExited;\n\t\tconst newTransitionDuration = reduceMotion ? 0 : shouldMount ? duration : exitDuration;\n\t\tsetTransitionDuration(newTransitionDuration);\n\t\tif (newTransitionDuration === 0) {\n\t\t\ttypeof preHandler === \"function\" && preHandler();\n\t\t\ttypeof handler === \"function\" && handler();\n\t\t\tsetStatus(shouldMount ? \"entered\" : \"exited\");\n\t\t} else {\n\t\t\tconst frame = requestAnimationFrame(() => {\n\t\t\t\tReactDOM.flushSync(() => {\n\t\t\t\t\tsetStatus(shouldMount ? \"pre-entering\" : \"pre-exiting\");\n\t\t\t\t});\n\t\t\t\tif (rafRef.current !== frame) return;\n\t\t\t\trafRef.current = requestAnimationFrame(() => {\n\t\t\t\t\ttypeof preHandler === \"function\" && preHandler();\n\t\t\t\t\tsetStatus(shouldMount ? \"entering\" : \"exiting\");\n\t\t\t\t\ttransitionTimeoutRef.current = window.setTimeout(() => {\n\t\t\t\t\t\ttypeof handler === \"function\" && handler();\n\t\t\t\t\t\tsetStatus(shouldMount ? \"entered\" : \"exited\");\n\t\t\t\t\t}, newTransitionDuration);\n\t\t\t\t});\n\t\t\t});\n\t\t\trafRef.current = frame;\n\t\t}\n\t};\n\tconst handleTransitionWithDelay = (shouldMount) => {\n\t\tclearAllTimeouts();\n\t\tif (typeof (shouldMount ? enterDelay : exitDelay) !== \"number\") {\n\t\t\thandleStateChange(shouldMount);\n\t\t\treturn;\n\t\t}\n\t\tdelayTimeoutRef.current = window.setTimeout(() => {\n\t\t\thandleStateChange(shouldMount);\n\t\t}, shouldMount ? enterDelay : exitDelay);\n\t};\n\tuseDidUpdate(() => {\n\t\thandleTransitionWithDelay(mounted);\n\t}, [mounted]);\n\tuseEffect(() => () => {\n\t\tclearAllTimeouts();\n\t}, []);\n\treturn {\n\t\ttransitionDuration,\n\t\ttransitionStatus,\n\t\ttransitionTimingFunction: timingFunction || \"ease\"\n\t};\n}\nexport { useTransition };\n\n//# sourceMappingURL=use-transition.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Button/Button.module.css\nvar Button_module_default = {\n\t\"root\": \"m_77c9d27d\",\n\t\"inner\": \"m_80f1301b\",\n\t\"label\": \"m_811560b9\",\n\t\"section\": \"m_a74036a\",\n\t\"loader\": \"m_a25b86ee\",\n\t\"group\": \"m_80d6d844\",\n\t\"groupSection\": \"m_70be2a01\"\n};\nexport { Button_module_default as default };\n\n//# sourceMappingURL=Button.module.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Button_module_default from \"../Button.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Button/ButtonGroup/ButtonGroup.tsx\nconst defaultProps = { orientation: \"horizontal\" };\nconst varsResolver = createVarsResolver((_, { borderWidth }) => ({ group: { \"--button-border-width\": rem(borderWidth) } }));\nconst ButtonGroup = factory((_props) => {\n\tconst props = useProps(\"ButtonGroup\", defaultProps, _props);\n\tconst { className, style, classNames, styles, unstyled, orientation, vars, borderWidth, mod, attributes, ...others } = useProps(\"ButtonGroup\", defaultProps, _props);\n\tconst getStyles = useStyles({\n\t\tname: \"ButtonGroup\",\n\t\tprops,\n\t\tclasses: Button_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"group\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"group\"),\n\t\tmod: [{ orientation }, mod],\n\t\trole: \"group\",\n\t\t...others\n\t});\n});\nButtonGroup.classes = Button_module_default;\nButtonGroup.varsResolver = varsResolver;\nButtonGroup.displayName = \"@mantine/core/ButtonGroup\";\nexport { ButtonGroup };\n\n//# sourceMappingURL=ButtonGroup.mjs.map","\"use client\";\nimport { getFontSize, getRadius, getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Button_module_default from \"../Button.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Button/ButtonGroupSection/ButtonGroupSection.tsx\nconst varsResolver = createVarsResolver((theme, { radius, color, gradient, variant, autoContrast, size }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tgradient,\n\t\tvariant: variant || \"filled\",\n\t\tautoContrast\n\t});\n\treturn { groupSection: {\n\t\t\"--section-height\": getSize(size, \"section-height\"),\n\t\t\"--section-padding-x\": getSize(size, \"section-padding-x\"),\n\t\t\"--section-fz\": size?.includes(\"compact\") ? getFontSize(size.replace(\"compact-\", \"\")) : getFontSize(size),\n\t\t\"--section-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--section-bg\": color || variant ? colors.background : void 0,\n\t\t\"--section-color\": colors.color,\n\t\t\"--section-bd\": color || variant ? colors.border : void 0\n\t} };\n});\nconst ButtonGroupSection = factory((_props) => {\n\tconst props = useProps(\"ButtonGroupSection\", null, _props);\n\tconst { className, style, classNames, styles, unstyled, vars, gradient, radius, autoContrast, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"ButtonGroupSection\",\n\t\tprops,\n\t\tclasses: Button_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"groupSection\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"groupSection\"),\n\t\t...others\n\t});\n});\nButtonGroupSection.classes = Button_module_default;\nButtonGroupSection.varsResolver = varsResolver;\nButtonGroupSection.displayName = \"@mantine/core/ButtonGroupSection\";\nexport { ButtonGroupSection };\n\n//# sourceMappingURL=ButtonGroupSection.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize, getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { UnstyledButton } from \"../UnstyledButton/UnstyledButton.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { Loader } from \"../Loader/Loader.mjs\";\nimport Button_module_default from \"./Button.module.mjs\";\nimport { ButtonGroup } from \"./ButtonGroup/ButtonGroup.mjs\";\nimport { ButtonGroupSection } from \"./ButtonGroupSection/ButtonGroupSection.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Button/Button.tsx\nconst loaderTransition = {\n\tin: {\n\t\topacity: 1,\n\t\ttransform: `translate(-50%, calc(-50% + ${rem(1)}))`\n\t},\n\tout: {\n\t\topacity: 0,\n\t\ttransform: \"translate(-50%, -200%)\"\n\t},\n\tcommon: { transformOrigin: \"center\" },\n\ttransitionProperty: \"transform, opacity\"\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, gradient, variant, size, justify, autoContrast }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tgradient,\n\t\tvariant: variant || \"filled\",\n\t\tautoContrast\n\t});\n\treturn { root: {\n\t\t\"--button-justify\": justify,\n\t\t\"--button-height\": getSize(size, \"button-height\"),\n\t\t\"--button-padding-x\": getSize(size, \"button-padding-x\"),\n\t\t\"--button-fz\": size?.includes(\"compact\") ? getFontSize(size.replace(\"compact-\", \"\")) : getFontSize(size),\n\t\t\"--button-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--button-bg\": color || variant ? colors.background : void 0,\n\t\t\"--button-hover\": color || variant ? colors.hover : void 0,\n\t\t\"--button-color\": colors.color,\n\t\t\"--button-bd\": color || variant ? colors.border : void 0,\n\t\t\"--button-hover-color\": color || variant ? colors.hoverColor : void 0\n\t} };\n});\nconst Button = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Button\", null, _props);\n\tconst { style, vars, className, color, disabled, children, leftSection, rightSection, fullWidth, variant, radius, loading, loaderProps, gradient, classNames, styles, unstyled, \"data-disabled\": dataDisabled, autoContrast, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Button\",\n\t\tprops,\n\t\tclasses: Button_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst hasLeftSection = !!leftSection;\n\tconst hasRightSection = !!rightSection;\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\t...getStyles(\"root\", { active: !disabled && !loading && !dataDisabled }),\n\t\tunstyled,\n\t\tvariant,\n\t\tdisabled: disabled || loading,\n\t\tmod: [{\n\t\t\tdisabled: disabled || dataDisabled,\n\t\t\tloading,\n\t\t\tblock: fullWidth,\n\t\t\t\"with-left-section\": hasLeftSection,\n\t\t\t\"with-right-section\": hasRightSection\n\t\t}, mod],\n\t\t...others,\n\t\tchildren: [typeof loading === \"boolean\" && /* @__PURE__ */ jsx(Transition, {\n\t\t\tmounted: loading,\n\t\t\ttransition: loaderTransition,\n\t\t\tduration: 150,\n\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(Box, {\n\t\t\t\tcomponent: \"span\",\n\t\t\t\t...getStyles(\"loader\", { style: transitionStyles }),\n\t\t\t\t\"aria-hidden\": true,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(Loader, {\n\t\t\t\t\tcolor: \"var(--button-color)\",\n\t\t\t\t\tsize: \"calc(var(--button-height) / 1.8)\",\n\t\t\t\t\t...loaderProps\n\t\t\t\t})\n\t\t\t})\n\t\t}), /* @__PURE__ */ jsxs(\"span\", {\n\t\t\t...getStyles(\"inner\"),\n\t\t\tchildren: [\n\t\t\t\tleftSection && /* @__PURE__ */ jsx(Box, {\n\t\t\t\t\tcomponent: \"span\",\n\t\t\t\t\t...getStyles(\"section\"),\n\t\t\t\t\tmod: { position: \"left\" },\n\t\t\t\t\tchildren: leftSection\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t\tcomponent: \"span\",\n\t\t\t\t\tmod: { loading },\n\t\t\t\t\t...getStyles(\"label\"),\n\t\t\t\t\tchildren\n\t\t\t\t}),\n\t\t\t\trightSection && /* @__PURE__ */ jsx(Box, {\n\t\t\t\t\tcomponent: \"span\",\n\t\t\t\t\t...getStyles(\"section\"),\n\t\t\t\t\tmod: { position: \"right\" },\n\t\t\t\t\tchildren: rightSection\n\t\t\t\t})\n\t\t\t]\n\t\t})]\n\t});\n});\nButton.classes = Button_module_default;\nButton.varsResolver = varsResolver;\nButton.displayName = \"@mantine/core/Button\";\nButton.Group = ButtonGroup;\nButton.GroupSection = ButtonGroupSection;\nexport { Button };\n\n//# sourceMappingURL=Button.mjs.map","import React from \"react\";\nimport { t } from \"./i18n\";\n\n/** The \"MŮJ FIRMIN\" logo: one image (ops/brand/muj-firmin-logo.py), no web font needed. */\nexport default function Brand({ size = \"md\" }) {\n  return (\n    <img\n      src=\"/static/logos/muj-firmin-logo.png\"\n      alt={t(\"My FIRMIN\")}\n      className={`pt-brandmark pt-brandmark-${size}`}\n      width={747}\n      height={156}\n    />\n  );\n}\n","import React, { useState } from \"react\";\nimport { Alert, Button, Center, Paper, Stack, Text } from \"@mantine/core\";\nimport { api } from \"./api\";\nimport { t } from \"./i18n\";\nimport Brand from \"./Brand\";\n\n/** The page the confirmation email links to. The token is in the #fragment and goes to the\n * server only on the click, so a link scanner opening the page confirms nothing. No\n * sign-in: the owner of the address may not use the portal at all. */\nexport default function ConfirmPage() {\n  const token = window.location.hash.replace(/^#/, \"\");\n  const [done, setDone] = useState(\"\");\n  const [error, setError] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n\n  async function confirm() {\n    setBusy(true);\n    setError(\"\");\n    try {\n      const answer = await api(\"/api/confirm/\", { method: \"POST\", body: { token } });\n      setDone(answer.detail);\n    } catch (e) {\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  return (\n    <Center mih=\"100vh\" p=\"md\" className=\"pt-canvas\">\n      <Paper withBorder shadow=\"xs\" p=\"xl\" w=\"100%\" maw={440}>\n        <Stack gap=\"lg\">\n          <Brand size=\"lg\" />\n          {done ? (\n            <Alert color=\"fmGreen\" variant=\"light\">\n              {done}\n            </Alert>\n          ) : (\n            <>\n              <Text>{t(\"Confirm that this email address is yours and may get what the company chose for it.\")}</Text>\n              {error && <Alert color=\"fmRed\">{error}</Alert>}\n              <Button size=\"md\" onClick={confirm} loading={busy} disabled={!token}>\n                {t(\"Confirm\")}\n              </Button>\n            </>\n          )}\n        </Stack>\n      </Paper>\n    </Center>\n  );\n}\n","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\n// packages/@mantine/core/src/components/Title/get-title-size.ts\nconst headings = [\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\"\n];\nconst sizes = [\n\t\"xs\",\n\t\"sm\",\n\t\"md\",\n\t\"lg\",\n\t\"xl\"\n];\nfunction getTitleSize(order, size) {\n\tconst titleSize = size !== void 0 ? size : `h${order}`;\n\tif (headings.includes(titleSize)) return {\n\t\tfontSize: `var(--mantine-${titleSize}-font-size)`,\n\t\tfontWeight: `var(--mantine-${titleSize}-font-weight)`,\n\t\tlineHeight: `var(--mantine-${titleSize}-line-height)`\n\t};\n\telse if (sizes.includes(titleSize)) return {\n\t\tfontSize: `var(--mantine-font-size-${titleSize})`,\n\t\tfontWeight: `var(--mantine-h${order}-font-weight)`,\n\t\tlineHeight: `var(--mantine-h${order}-line-height)`\n\t};\n\treturn {\n\t\tfontSize: rem(titleSize),\n\t\tfontWeight: `var(--mantine-h${order}-font-weight)`,\n\t\tlineHeight: `var(--mantine-h${order}-line-height)`\n\t};\n}\nexport { getTitleSize };\n\n//# sourceMappingURL=get-title-size.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Title/Title.module.css\nvar Title_module_default = { \"root\": \"m_8a5d1357\" };\nexport { Title_module_default as default };\n\n//# sourceMappingURL=Title.module.mjs.map","\"use client\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { getTitleSize } from \"./get-title-size.mjs\";\nimport Title_module_default from \"./Title.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Title/Title.tsx\nconst defaultProps = { order: 1 };\nconst varsResolver = createVarsResolver((_, { order, size, lineClamp, textWrap }) => {\n\tconst sizeVariables = getTitleSize(order || 1, size);\n\treturn { root: {\n\t\t\"--title-fw\": sizeVariables.fontWeight,\n\t\t\"--title-lh\": sizeVariables.lineHeight,\n\t\t\"--title-fz\": sizeVariables.fontSize,\n\t\t\"--title-line-clamp\": typeof lineClamp === \"number\" ? lineClamp.toString() : void 0,\n\t\t\"--title-text-wrap\": textWrap\n\t} };\n});\nconst Title = factory((_props) => {\n\tconst props = useProps(\"Title\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, order, vars, size, variant, lineClamp, textWrap, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Title\",\n\t\tprops,\n\t\tclasses: Title_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tif (![\n\t\t1,\n\t\t2,\n\t\t3,\n\t\t4,\n\t\t5,\n\t\t6\n\t].includes(order)) return null;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\tcomponent: `h${order}`,\n\t\tvariant,\n\t\tmod: [{\n\t\t\torder,\n\t\t\tlineClamp: typeof lineClamp === \"number\"\n\t\t}, mod],\n\t\tsize,\n\t\t...others\n\t});\n});\nTitle.classes = Title_module_default;\nTitle.varsResolver = varsResolver;\nTitle.displayName = \"@mantine/core/Title\";\nexport { Title };\n\n//# sourceMappingURL=Title.mjs.map","\"use client\";\nimport { createContext } from \"react\";\n// packages/@mantine/core/src/components/Input/Input.context.ts\nconst InputContext = createContext({ size: \"sm\" });\nexport { InputContext };\n\n//# sourceMappingURL=Input.context.mjs.map","\"use client\";\nimport { resolveClassNames } from \"../use-styles/get-class-name/resolve-class-names/resolve-class-names.mjs\";\nimport { resolveStyles } from \"../use-styles/get-style/resolve-styles/resolve-styles.mjs\";\nimport { useMantineTheme } from \"../../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\n// packages/@mantine/core/src/core/styles-api/use-resolved-styles-api/use-resolved-styles-api.ts\nfunction useResolvedStylesApi({ classNames, styles, props, stylesCtx }) {\n\tconst theme = useMantineTheme();\n\treturn {\n\t\tresolvedClassNames: classNames === void 0 ? void 0 : resolveClassNames({\n\t\t\ttheme,\n\t\t\tclassNames,\n\t\t\tprops,\n\t\t\tstylesCtx: stylesCtx || void 0\n\t\t}),\n\t\tresolvedStyles: styles === void 0 ? void 0 : resolveStyles({\n\t\t\ttheme,\n\t\t\tstyles,\n\t\t\tprops,\n\t\t\tstylesCtx: stylesCtx || void 0\n\t\t})\n\t};\n}\nexport { useResolvedStylesApi };\n\n//# sourceMappingURL=use-resolved-styles-api.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useResolvedStylesApi } from \"../../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { CloseButton } from \"../../CloseButton/CloseButton.mjs\";\nimport { InputContext } from \"../Input.context.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputClearButton/InputClearButton.tsx\nconst InputClearButton = factory((_props) => {\n\tconst props = useProps(\"InputClearButton\", null, _props);\n\tconst { size, variant, vars, classNames, styles, ...others } = props;\n\tconst ctx = use(InputContext);\n\tconst { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({\n\t\tclassNames,\n\t\tstyles,\n\t\tprops\n\t});\n\treturn /* @__PURE__ */ jsx(CloseButton, {\n\t\tvariant: variant || \"transparent\",\n\t\tsize: size || ctx?.size || \"sm\",\n\t\tclassNames: resolvedClassNames,\n\t\tstyles: resolvedStyles,\n\t\t__staticSelector: \"InputClearButton\",\n\t\tstyle: {\n\t\t\tpointerEvents: \"all\",\n\t\t\tbackground: \"var(--input-bg)\",\n\t\t\t...others.style\n\t\t},\n\t\t...others\n\t});\n});\nInputClearButton.displayName = \"@mantine/core/InputClearButton\";\nexport { InputClearButton };\n\n//# sourceMappingURL=InputClearButton.mjs.map","\"use client\";\nimport { jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputClearSection/InputClearSection.tsx\nconst clearSectionOffset = {\n\txs: 7,\n\tsm: 8,\n\tmd: 10,\n\tlg: 12,\n\txl: 15\n};\nfunction InputClearSection({ __clearable, __clearSection, rightSection, __defaultRightSection, size = \"sm\", __clearSectionMode = \"both\" }) {\n\tconst clearSection = __clearable && __clearSection;\n\tif (__clearSectionMode === \"rightSection\") return rightSection === null ? null : rightSection || __defaultRightSection;\n\tif (__clearSectionMode === \"clear\") return rightSection === null ? null : clearSection || __defaultRightSection;\n\tif (clearSection && (rightSection || __defaultRightSection)) return /* @__PURE__ */ jsxs(\"div\", {\n\t\t\"data-combined-clear-section\": true,\n\t\tstyle: {\n\t\t\tdisplay: \"flex\",\n\t\t\tgap: 2,\n\t\t\talignItems: \"center\",\n\t\t\tpaddingInlineEnd: clearSectionOffset[size]\n\t\t},\n\t\tchildren: [clearSection, rightSection || __defaultRightSection]\n\t});\n\treturn rightSection === null ? null : rightSection || clearSection || __defaultRightSection;\n}\nexport { InputClearSection };\n\n//# sourceMappingURL=InputClearSection.mjs.map","\"use client\";\nimport { createContext } from \"react\";\n// packages/@mantine/core/src/components/Input/InputWrapper.context.ts\nconst InputWrapperContext = createContext({\n\toffsetBottom: false,\n\toffsetTop: false,\n\tdescribedBy: void 0,\n\tgetStyles: null,\n\tinputId: void 0,\n\tlabelId: void 0\n});\nexport { InputWrapperContext };\n\n//# sourceMappingURL=InputWrapper.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Input/Input.module.css\nvar Input_module_default = {\n\t\"wrapper\": \"m_6c018570\",\n\t\"input\": \"m_8fb7ebe7\",\n\t\"bottomSection\": \"m_93f4ed57\",\n\t\"section\": \"m_82577fc2\",\n\t\"placeholder\": \"m_88bacfd0\",\n\t\"root\": \"m_46b77525\",\n\t\"label\": \"m_8fdc1311\",\n\t\"required\": \"m_78a94662\",\n\t\"error\": \"m_8f816625\",\n\t\"success\": \"m_9d9d40e0\",\n\t\"description\": \"m_fe47ce59\"\n};\nexport { Input_module_default as default };\n\n//# sourceMappingURL=Input.module.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { InputWrapperContext } from \"../InputWrapper.context.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputDescription/InputDescription.tsx\nconst varsResolver = createVarsResolver((_, { size }) => ({ description: { \"--input-description-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` } }));\nconst InputDescription = factory((_props) => {\n\tconst props = useProps(\"InputDescription\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, __staticSelector, __inheritStyles = true, attributes, ...others } = useProps(\"InputDescription\", null, props);\n\tconst ctx = use(InputWrapperContext);\n\tconst _getStyles = useStyles({\n\t\tname: [\"InputWrapper\", __staticSelector],\n\t\tprops,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"description\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst getStyles = __inheritStyles && ctx?.getStyles || _getStyles;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"p\",\n\t\t...getStyles(\"description\", ctx?.getStyles ? {\n\t\t\tclassName,\n\t\t\tstyle\n\t\t} : void 0),\n\t\t...others\n\t});\n});\nInputDescription.classes = Input_module_default;\nInputDescription.varsResolver = varsResolver;\nInputDescription.displayName = \"@mantine/core/InputDescription\";\nexport { InputDescription };\n\n//# sourceMappingURL=InputDescription.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { InputWrapperContext } from \"../InputWrapper.context.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputError/InputError.tsx\nconst varsResolver = createVarsResolver((_, { size }) => ({ error: { \"--input-error-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` } }));\nconst InputError = factory((_props) => {\n\tconst props = useProps(\"InputError\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, attributes, __staticSelector, __inheritStyles = true, ...others } = props;\n\tconst _getStyles = useStyles({\n\t\tname: [\"InputWrapper\", __staticSelector],\n\t\tprops,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"error\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst ctx = use(InputWrapperContext);\n\tconst getStyles = __inheritStyles && ctx?.getStyles || _getStyles;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"p\",\n\t\t...getStyles(\"error\", ctx?.getStyles ? {\n\t\t\tclassName,\n\t\t\tstyle\n\t\t} : void 0),\n\t\t...others\n\t});\n});\nInputError.classes = Input_module_default;\nInputError.varsResolver = varsResolver;\nInputError.displayName = \"@mantine/core/InputError\";\nexport { InputError };\n\n//# sourceMappingURL=InputError.mjs.map","\"use client\";\nimport { getFontSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { InputWrapperContext } from \"../InputWrapper.context.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { use } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputLabel/InputLabel.tsx\nconst defaultProps = { labelElement: \"label\" };\nconst varsResolver = createVarsResolver((_, { size }) => ({ label: {\n\t\"--input-label-size\": getFontSize(size),\n\t\"--input-asterisk-color\": void 0\n} }));\nconst InputLabel = factory((_props) => {\n\tconst props = useProps(\"InputLabel\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, labelElement, required, htmlFor, onMouseDown, children, __staticSelector, mod, attributes, ...others } = props;\n\tconst _getStyles = useStyles({\n\t\tname: [\"InputWrapper\", __staticSelector],\n\t\tprops,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"label\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst ctx = use(InputWrapperContext);\n\tconst getStyles = ctx?.getStyles || _getStyles;\n\tconst rootElement = others.component || labelElement;\n\tconst supportsHtmlFor = typeof rootElement !== \"string\" || rootElement === \"label\";\n\treturn /* @__PURE__ */ jsxs(Box, {\n\t\t...getStyles(\"label\", ctx?.getStyles ? {\n\t\t\tclassName,\n\t\t\tstyle\n\t\t} : void 0),\n\t\tcomponent: labelElement,\n\t\thtmlFor: supportsHtmlFor ? htmlFor : void 0,\n\t\tmod: [{ required }, mod],\n\t\tonMouseDown: (event) => {\n\t\t\tonMouseDown?.(event);\n\t\t\tif (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n\t\t},\n\t\t...others,\n\t\tchildren: [children, required && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t...getStyles(\"required\"),\n\t\t\t\"aria-hidden\": true,\n\t\t\tchildren: \" *\"\n\t\t})]\n\t});\n});\nInputLabel.classes = Input_module_default;\nInputLabel.varsResolver = varsResolver;\nInputLabel.displayName = \"@mantine/core/InputLabel\";\nexport { InputLabel };\n\n//# sourceMappingURL=InputLabel.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputPlaceholder/InputPlaceholder.tsx\nconst InputPlaceholder = factory((_props) => {\n\tconst props = useProps(\"InputPlaceholder\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, __staticSelector, error, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: [\"InputPlaceholder\", __staticSelector],\n\t\tprops,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"placeholder\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"placeholder\"),\n\t\tmod: [{ error: !!error }, mod],\n\t\tcomponent: \"span\",\n\t\t...others\n\t});\n});\nInputPlaceholder.classes = Input_module_default;\nInputPlaceholder.displayName = \"@mantine/core/InputPlaceholder\";\nexport { InputPlaceholder };\n\n//# sourceMappingURL=InputPlaceholder.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { InputWrapperContext } from \"../InputWrapper.context.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputSuccess/InputSuccess.tsx\nconst varsResolver = createVarsResolver((_, { size }) => ({ success: { \"--input-success-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` } }));\nconst InputSuccess = factory((_props) => {\n\tconst props = useProps(\"InputSuccess\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, attributes, __staticSelector, __inheritStyles = true, ...others } = props;\n\tconst _getStyles = useStyles({\n\t\tname: [\"InputWrapper\", __staticSelector],\n\t\tprops,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"success\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst ctx = use(InputWrapperContext);\n\tconst getStyles = __inheritStyles && ctx?.getStyles || _getStyles;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"p\",\n\t\t...getStyles(\"success\", ctx?.getStyles ? {\n\t\t\tclassName,\n\t\t\tstyle\n\t\t} : void 0),\n\t\t...others\n\t});\n});\nInputSuccess.classes = Input_module_default;\nInputSuccess.varsResolver = varsResolver;\nInputSuccess.displayName = \"@mantine/core/InputSuccess\";\nexport { InputSuccess };\n\n//# sourceMappingURL=InputSuccess.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Input/InputWrapper/get-input-offsets/get-input-offsets.ts\nfunction getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {\n\tconst inputIndex = inputWrapperOrder.findIndex((part) => part === \"input\");\n\tconst aboveInput = inputWrapperOrder.slice(0, inputIndex);\n\tconst belowInput = inputWrapperOrder.slice(inputIndex + 1);\n\tconst offsetTop = hasDescription && aboveInput.includes(\"description\") || hasError && aboveInput.includes(\"error\");\n\treturn {\n\t\toffsetBottom: hasDescription && belowInput.includes(\"description\") || hasError && belowInput.includes(\"error\"),\n\t\toffsetTop\n\t};\n}\nexport { getInputOffsets };\n\n//# sourceMappingURL=get-input-offsets.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { InputWrapperContext } from \"../InputWrapper.context.mjs\";\nimport Input_module_default from \"../Input.module.mjs\";\nimport { InputDescription } from \"../InputDescription/InputDescription.mjs\";\nimport { InputError } from \"../InputError/InputError.mjs\";\nimport { InputLabel } from \"../InputLabel/InputLabel.mjs\";\nimport { InputSuccess } from \"../InputSuccess/InputSuccess.mjs\";\nimport { getInputOffsets } from \"./get-input-offsets/get-input-offsets.mjs\";\nimport { Fragment, createElement } from \"react\";\nimport { useId as useId$1 } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/InputWrapper/InputWrapper.tsx\nconst defaultProps = {\n\tlabelElement: \"label\",\n\tinputContainer: (children) => children,\n\tinputWrapperOrder: [\n\t\t\"label\",\n\t\t\"description\",\n\t\t\"input\",\n\t\t\"error\"\n\t]\n};\nconst varsResolver = createVarsResolver((_, { size }) => ({\n\tlabel: {\n\t\t\"--input-label-size\": getFontSize(size),\n\t\t\"--input-asterisk-color\": void 0\n\t},\n\terror: { \"--input-error-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` },\n\tsuccess: { \"--input-success-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` },\n\tdescription: { \"--input-description-size\": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` }\n}));\nconst InputWrapper = factory((_props) => {\n\tconst props = useProps(\"InputWrapper\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, size, variant, __staticSelector, inputContainer, inputWrapperOrder, label, error, success, description, labelProps, descriptionProps, errorProps, successProps, labelElement, children, withAsterisk, id, required, __stylesApiProps, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: [\"InputWrapper\", __staticSelector],\n\t\tprops: __stylesApiProps || props,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst sharedProps = {\n\t\tsize,\n\t\tvariant,\n\t\t__staticSelector\n\t};\n\tconst idBase = useId$1(id);\n\tconst isRequired = typeof withAsterisk === \"boolean\" ? withAsterisk : required;\n\tconst errorId = errorProps?.id || `${idBase}-error`;\n\tconst successId = successProps?.id || `${idBase}-success`;\n\tconst descriptionId = descriptionProps?.id || `${idBase}-description`;\n\tconst inputId = idBase;\n\tconst hasError = !!error && typeof error !== \"boolean\";\n\tconst hasSuccess = !!success && typeof success !== \"boolean\" && !error;\n\tconst hasDescription = !!description;\n\tconst errorRendered = hasError && inputWrapperOrder.includes(\"error\");\n\tconst successRendered = hasSuccess && inputWrapperOrder.includes(\"error\");\n\tconst descriptionRendered = hasDescription && inputWrapperOrder.includes(\"description\");\n\tconst _describedBy = `${errorRendered ? errorId : \"\"} ${successRendered ? successId : \"\"} ${descriptionRendered ? descriptionId : \"\"}`;\n\tconst describedBy = _describedBy.trim().length > 0 ? _describedBy.trim() : void 0;\n\tconst labelId = labelProps?.id || `${idBase}-label`;\n\tconst _label = label && /* @__PURE__ */ jsx(InputLabel, {\n\t\tlabelElement,\n\t\tid: labelId,\n\t\thtmlFor: inputId,\n\t\trequired: isRequired,\n\t\t...sharedProps,\n\t\t...labelProps,\n\t\tchildren: label\n\t}, \"label\");\n\tconst _description = hasDescription && /* @__PURE__ */ jsx(InputDescription, {\n\t\t...descriptionProps,\n\t\t...sharedProps,\n\t\tsize: descriptionProps?.size || sharedProps.size,\n\t\tid: descriptionProps?.id || descriptionId,\n\t\tchildren: description\n\t}, \"description\");\n\tconst _input = /* @__PURE__ */ jsx(Fragment, { children: inputContainer(children) }, \"input\");\n\tconst _error = hasError && /* @__PURE__ */ createElement(InputError, {\n\t\t...errorProps,\n\t\t...sharedProps,\n\t\tsize: errorProps?.size || sharedProps.size,\n\t\tkey: \"error\",\n\t\tid: errorProps?.id || errorId\n\t}, error);\n\tconst _success = hasSuccess && /* @__PURE__ */ createElement(InputSuccess, {\n\t\t...successProps,\n\t\t...sharedProps,\n\t\tsize: successProps?.size || sharedProps.size,\n\t\tkey: \"success\",\n\t\tid: successProps?.id || successId\n\t}, success);\n\tconst content = inputWrapperOrder.map((part) => {\n\t\tswitch (part) {\n\t\t\tcase \"label\": return _label;\n\t\t\tcase \"input\": return _input;\n\t\t\tcase \"description\": return _description;\n\t\t\tcase \"error\": return _error || _success;\n\t\t\tdefault: return null;\n\t\t}\n\t});\n\treturn /* @__PURE__ */ jsx(InputWrapperContext, {\n\t\tvalue: {\n\t\t\tgetStyles,\n\t\t\tdescribedBy,\n\t\t\tinputId,\n\t\t\tlabelId: _label && inputWrapperOrder.includes(\"label\") ? labelId : void 0,\n\t\t\t...getInputOffsets(inputWrapperOrder, {\n\t\t\t\thasDescription,\n\t\t\t\thasError: hasError || hasSuccess\n\t\t\t})\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\tvariant,\n\t\t\tsize,\n\t\t\tmod: [{\n\t\t\t\terror: !!error,\n\t\t\t\tsuccess: !!success && !error\n\t\t\t}, mod],\n\t\t\tid: labelElement === \"label\" ? void 0 : id,\n\t\t\t...getStyles(\"root\"),\n\t\t\t...others,\n\t\t\tchildren: content\n\t\t})\n\t});\n});\nInputWrapper.classes = Input_module_default;\nInputWrapper.varsResolver = varsResolver;\nInputWrapper.displayName = \"@mantine/core/InputWrapper\";\nexport { InputWrapper };\n\n//# sourceMappingURL=InputWrapper.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize, getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { extractStyleProps } from \"../../core/Box/style-props/extract-style-props/extract-style-props.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { Loader } from \"../Loader/Loader.mjs\";\nimport { InputContext } from \"./Input.context.mjs\";\nimport { InputClearButton } from \"./InputClearButton/InputClearButton.mjs\";\nimport { InputClearSection } from \"./InputClearSection/InputClearSection.mjs\";\nimport { InputWrapperContext } from \"./InputWrapper.context.mjs\";\nimport Input_module_default from \"./Input.module.mjs\";\nimport { InputDescription } from \"./InputDescription/InputDescription.mjs\";\nimport { InputError } from \"./InputError/InputError.mjs\";\nimport { InputLabel } from \"./InputLabel/InputLabel.mjs\";\nimport { InputPlaceholder } from \"./InputPlaceholder/InputPlaceholder.mjs\";\nimport { InputSuccess } from \"./InputSuccess/InputSuccess.mjs\";\nimport { InputWrapper } from \"./InputWrapper/InputWrapper.mjs\";\nimport { use } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Input/Input.tsx\nconst defaultProps = {\n\tvariant: \"default\",\n\tleftSectionPointerEvents: \"none\",\n\trightSectionPointerEvents: \"none\",\n\twithAria: true,\n\twithErrorStyles: true,\n\twithSuccessStyles: true,\n\tsize: \"sm\",\n\tloading: false,\n\tloadingPosition: \"right\"\n};\nconst varsResolver = createVarsResolver((_, props, ctx) => ({ wrapper: {\n\t\"--input-margin-top\": ctx.offsetTop ? \"calc(var(--mantine-spacing-xs) / 2)\" : void 0,\n\t\"--input-margin-bottom\": ctx.offsetBottom ? \"calc(var(--mantine-spacing-xs) / 2)\" : void 0,\n\t\"--input-height\": getSize(props.size, \"input-height\"),\n\t\"--input-fz\": getFontSize(props.size),\n\t\"--input-radius\": props.radius === void 0 ? void 0 : getRadius(props.radius),\n\t\"--input-left-section-width\": props.leftSectionWidth !== void 0 ? rem(props.leftSectionWidth) : void 0,\n\t\"--input-right-section-width\": props.rightSectionWidth !== void 0 ? rem(props.rightSectionWidth) : void 0,\n\t\"--input-padding-y\": props.multiline ? getSize(props.size, \"input-padding-y\") : void 0,\n\t\"--input-left-section-pointer-events\": props.leftSectionPointerEvents,\n\t\"--input-right-section-pointer-events\": props.rightSectionPointerEvents\n} }));\nconst Input = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Input\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, required, __staticSelector, __stylesApiProps, size, wrapperProps, error, success, disabled, leftSection, leftSectionProps, leftSectionWidth, rightSection, rightSectionProps, rightSectionWidth, rightSectionPointerEvents, leftSectionPointerEvents, variant, vars, pointer, multiline, radius, id, withAria, withErrorStyles, withSuccessStyles, mod, inputSize, attributes, __clearSection, __clearable, __clearSectionMode, __defaultRightSection, loading, loadingPosition, loaderProps, __bottomSection, __bottomSectionProps, rootRef, dir, ...others } = props;\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst ctx = use(InputWrapperContext);\n\tconst stylesCtx = {\n\t\toffsetBottom: ctx?.offsetBottom,\n\t\toffsetTop: ctx?.offsetTop\n\t};\n\tconst getStyles = useStyles({\n\t\tname: [\"Input\", __staticSelector],\n\t\tprops: __stylesApiProps || props,\n\t\tclasses: Input_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tstylesCtx,\n\t\trootSelector: \"wrapper\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst ariaAttributes = withAria ? {\n\t\trequired,\n\t\tdisabled,\n\t\t\"aria-invalid\": error ? true : void 0,\n\t\t\"aria-describedby\": ctx?.describedBy,\n\t\tid: ctx?.inputId || id\n\t} : {};\n\tconst loadingIndicator = loading ? /* @__PURE__ */ jsx(Loader, {\n\t\tsize: loadingPosition === \"left\" ? \"calc(var(--input-left-section-size) / 2)\" : \"calc(var(--input-right-section-size) / 2)\",\n\t\t...loaderProps\n\t}) : null;\n\tconst _leftSection = loading && loadingPosition === \"left\" ? loadingIndicator : leftSection;\n\tconst _rightSection = InputClearSection({\n\t\t__clearable,\n\t\t__clearSection,\n\t\trightSection: loading && loadingPosition === \"right\" ? loadingIndicator : rightSection,\n\t\t__defaultRightSection,\n\t\tsize,\n\t\t__clearSectionMode\n\t});\n\treturn /* @__PURE__ */ jsx(InputContext, {\n\t\tvalue: { size: size || \"sm\" },\n\t\tchildren: /* @__PURE__ */ jsxs(Box, {\n\t\t\tref: rootRef,\n\t\t\tdir,\n\t\t\t...getStyles(\"wrapper\"),\n\t\t\t...styleProps,\n\t\t\t...wrapperProps,\n\t\t\tmod: [{\n\t\t\t\terror: !!error && withErrorStyles,\n\t\t\t\tsuccess: !!success && !error && withSuccessStyles,\n\t\t\t\tpointer,\n\t\t\t\tdisabled,\n\t\t\t\tmultiline,\n\t\t\t\twithRightSection: !!_rightSection,\n\t\t\t\twithLeftSection: !!_leftSection,\n\t\t\t\twithBottomSection: !!__bottomSection\n\t\t\t}, mod],\n\t\t\tvariant,\n\t\t\tsize,\n\t\t\tchildren: [\n\t\t\t\t_leftSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t...leftSectionProps,\n\t\t\t\t\t\"data-position\": \"left\",\n\t\t\t\t\t...getStyles(\"section\", {\n\t\t\t\t\t\tclassName: leftSectionProps?.className,\n\t\t\t\t\t\tstyle: leftSectionProps?.style\n\t\t\t\t\t}),\n\t\t\t\t\tchildren: _leftSection\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ jsx(Box, {\n\t\t\t\t\tcomponent: \"input\",\n\t\t\t\t\t...rest,\n\t\t\t\t\t...ariaAttributes,\n\t\t\t\t\trequired,\n\t\t\t\t\tmod: {\n\t\t\t\t\t\tdisabled,\n\t\t\t\t\t\terror: !!error && withErrorStyles,\n\t\t\t\t\t\tsuccess: !!success && !error && withSuccessStyles\n\t\t\t\t\t},\n\t\t\t\t\tvariant,\n\t\t\t\t\t__size: inputSize,\n\t\t\t\t\t...getStyles(\"input\")\n\t\t\t\t}),\n\t\t\t\t__bottomSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t...__bottomSectionProps,\n\t\t\t\t\t...getStyles(\"bottomSection\", {\n\t\t\t\t\t\tclassName: __bottomSectionProps?.className,\n\t\t\t\t\t\tstyle: __bottomSectionProps?.style\n\t\t\t\t\t}),\n\t\t\t\t\tchildren: __bottomSection\n\t\t\t\t}),\n\t\t\t\t_rightSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t\t...rightSectionProps,\n\t\t\t\t\t\"data-position\": \"right\",\n\t\t\t\t\t...getStyles(\"section\", {\n\t\t\t\t\t\tclassName: rightSectionProps?.className,\n\t\t\t\t\t\tstyle: rightSectionProps?.style\n\t\t\t\t\t}),\n\t\t\t\t\tchildren: _rightSection\n\t\t\t\t})\n\t\t\t]\n\t\t})\n\t});\n});\nInput.classes = Input_module_default;\nInput.varsResolver = varsResolver;\nInput.Wrapper = InputWrapper;\nInput.Label = InputLabel;\nInput.Error = InputError;\nInput.Success = InputSuccess;\nInput.Description = InputDescription;\nInput.Placeholder = InputPlaceholder;\nInput.ClearButton = InputClearButton;\nInput.displayName = \"@mantine/core/Input\";\nexport { Input };\n\n//# sourceMappingURL=Input.mjs.map","\"use client\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Input } from \"../Input/Input.mjs\";\nimport { useInputProps } from \"../Input/use-input-props.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/InputBase/InputBase.tsx\nconst defaultProps = {\n\t__staticSelector: \"InputBase\",\n\twithAria: true,\n\tsize: \"sm\"\n};\nconst InputBase = polymorphicFactory((props) => {\n\tconst { inputProps, wrapperProps, ...others } = useInputProps(\"InputBase\", defaultProps, props);\n\treturn /* @__PURE__ */ jsx(Input.Wrapper, {\n\t\t...wrapperProps,\n\t\tchildren: /* @__PURE__ */ jsx(Input, {\n\t\t\t...inputProps,\n\t\t\t...others\n\t\t})\n\t});\n});\nInputBase.classes = {\n\t...Input.classes,\n\t...Input.Wrapper.classes\n};\nInputBase.displayName = \"@mantine/core/InputBase\";\nexport { InputBase };\n\n//# sourceMappingURL=InputBase.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { extractStyleProps } from \"../../core/Box/style-props/extract-style-props/extract-style-props.mjs\";\n// packages/@mantine/core/src/components/Input/use-input-props.ts\nfunction useInputProps(component, defaultProps, _props) {\n\tconst props = useProps([\n\t\t\"Input\",\n\t\t\"InputWrapper\",\n\t\tcomponent\n\t], defaultProps, _props);\n\tconst { label, description, error, success, required, classNames, styles, className, unstyled, __staticSelector, __stylesApiProps, errorProps, successProps, labelProps, descriptionProps, wrapperProps: _wrapperProps, id, size, style, inputContainer, inputWrapperOrder, withAsterisk, variant, vars, mod, attributes, ...others } = props;\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst wrapperProps = {\n\t\tlabel,\n\t\tdescription,\n\t\terror,\n\t\tsuccess,\n\t\trequired,\n\t\tclassNames,\n\t\tclassName,\n\t\t__staticSelector,\n\t\t__stylesApiProps: __stylesApiProps || props,\n\t\terrorProps,\n\t\tsuccessProps,\n\t\tlabelProps,\n\t\tdescriptionProps,\n\t\tunstyled,\n\t\tstyles,\n\t\tsize,\n\t\tstyle,\n\t\tinputContainer,\n\t\tinputWrapperOrder,\n\t\twithAsterisk,\n\t\tvariant,\n\t\tid,\n\t\tmod,\n\t\tattributes,\n\t\t..._wrapperProps\n\t};\n\treturn {\n\t\t...rest,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\twrapperProps: {\n\t\t\t...wrapperProps,\n\t\t\t...styleProps\n\t\t},\n\t\tinputProps: {\n\t\t\trequired,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tunstyled,\n\t\t\tsize,\n\t\t\t__staticSelector,\n\t\t\t__stylesApiProps: __stylesApiProps || props,\n\t\t\terror,\n\t\t\tsuccess,\n\t\t\tvariant,\n\t\t\tid,\n\t\t\tattributes\n\t\t}\n\t};\n}\nexport { useInputProps };\n\n//# sourceMappingURL=use-input-props.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { InputBase } from \"../InputBase/InputBase.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/TextInput/TextInput.tsx\nconst TextInput = factory((props) => {\n\tconst _props = useProps([\n\t\t\"Input\",\n\t\t\"InputWrapper\",\n\t\t\"TextInput\"\n\t], null, props);\n\treturn /* @__PURE__ */ jsx(InputBase, {\n\t\tcomponent: \"input\",\n\t\t..._props,\n\t\t__staticSelector: \"TextInput\"\n\t});\n});\nTextInput.classes = InputBase.classes;\nTextInput.displayName = \"@mantine/core/TextInput\";\nexport { TextInput };\n\n//# sourceMappingURL=TextInput.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Group/Group.module.css\nvar Group_module_default = { \"root\": \"m_4081bf90\" };\nexport { Group_module_default as default };\n\n//# sourceMappingURL=Group.module.mjs.map","\"use client\";\nimport { getSpacing } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { filterFalsyChildren } from \"./filter-falsy-children/filter-falsy-children.mjs\";\nimport Group_module_default from \"./Group.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Group/Group.tsx\nconst defaultProps = {\n\tpreventGrowOverflow: true,\n\tgap: \"md\",\n\talign: \"center\",\n\tjustify: \"flex-start\",\n\twrap: \"wrap\"\n};\nconst varsResolver = createVarsResolver((_, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({ root: {\n\t\"--group-child-width\": grow && preventGrowOverflow ? childWidth : void 0,\n\t\"--group-gap\": getSpacing(gap),\n\t\"--group-align\": align,\n\t\"--group-justify\": justify,\n\t\"--group-wrap\": wrap\n} }));\nconst Group = factory((_props) => {\n\tconst props = useProps(\"Group\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, children, gap, align, justify, wrap, grow, preventGrowOverflow, vars, variant, __size, mod, attributes, ...others } = props;\n\tconst filteredChildren = filterFalsyChildren(children);\n\tconst childrenCount = filteredChildren.length;\n\tconst resolvedGap = getSpacing(gap ?? \"md\");\n\tconst stylesCtx = { childWidth: `calc(${100 / childrenCount}% - (${resolvedGap} - ${resolvedGap} / ${childrenCount}))` };\n\tconst getStyles = useStyles({\n\t\tname: \"Group\",\n\t\tprops,\n\t\tstylesCtx,\n\t\tclassName,\n\t\tstyle,\n\t\tclasses: Group_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\tvariant,\n\t\tmod: [{ grow }, mod],\n\t\tsize: __size,\n\t\t...others,\n\t\tchildren: filteredChildren\n\t});\n});\nGroup.classes = Group_module_default;\nGroup.varsResolver = varsResolver;\nGroup.displayName = \"@mantine/core/Group\";\nexport { Group };\n\n//# sourceMappingURL=Group.mjs.map","\"use client\";\nimport { Children } from \"react\";\n// packages/@mantine/core/src/components/Group/filter-falsy-children/filter-falsy-children.ts\nfunction filterFalsyChildren(children) {\n\treturn Children.toArray(children).filter(Boolean);\n}\nexport { filterFalsyChildren };\n\n//# sourceMappingURL=filter-falsy-children.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/PinInput/create-pin-array/create-pin-array.ts\nfunction createPinArray(length, value) {\n\tif (length < 1) return [];\n\tconst values = new Array(length).fill(\"\");\n\tif (value) {\n\t\tconst splitted = value.trim().split(\"\");\n\t\tfor (let i = 0; i < Math.min(length, splitted.length); i += 1) values[i] = splitted[i] === \" \" ? \"\" : splitted[i];\n\t}\n\treturn values;\n}\nexport { createPinArray };\n\n//# sourceMappingURL=create-pin-array.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/PinInput/PinInput.module.css\nvar PinInput_module_default = {\n\t\"root\": \"m_f1cb205a\",\n\t\"pinInput\": \"m_cb288ead\"\n};\nexport { PinInput_module_default as default };\n\n//# sourceMappingURL=PinInput.module.mjs.map","\"use client\";\nimport { useState } from \"react\";\n// packages/@mantine/hooks/src/use-uncontrolled/use-uncontrolled.ts\nfunction useUncontrolled({ value, defaultValue, finalValue, onChange = () => {} }) {\n\tconst [uncontrolledValue, setUncontrolledValue] = useState(defaultValue !== void 0 ? defaultValue : finalValue);\n\tconst handleUncontrolledChange = (val, ...payload) => {\n\t\tsetUncontrolledValue(val);\n\t\tonChange?.(val, ...payload);\n\t};\n\tif (value !== void 0) return [\n\t\tvalue,\n\t\tonChange,\n\t\ttrue\n\t];\n\treturn [\n\t\tuncontrolledValue,\n\t\thandleUncontrolledChange,\n\t\tfalse\n\t];\n}\nexport { useUncontrolled };\n\n//# sourceMappingURL=use-uncontrolled.mjs.map","\"use client\";\nimport { getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useResolvedStylesApi } from \"../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Group } from \"../Group/Group.mjs\";\nimport { Input } from \"../Input/Input.mjs\";\nimport { InputBase } from \"../InputBase/InputBase.mjs\";\nimport { createPinArray } from \"./create-pin-array/create-pin-array.mjs\";\nimport PinInput_module_default from \"./PinInput.module.mjs\";\nimport { createElement, useRef, useState } from \"react\";\nimport { assignRef, useId as useId$1, useUncontrolled } from \"@mantine/hooks\";\nimport { Fragment as Fragment$1, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/PinInput/PinInput.tsx\nconst regex = {\n\tnumber: /^[0-9]+$/,\n\talphanumeric: /^[a-zA-Z0-9]+$/i\n};\nconst defaultProps = {\n\tgap: \"sm\",\n\tlength: 4,\n\tmanageFocus: true,\n\toneTimeCode: true,\n\tplaceholder: \"○\",\n\ttype: \"alphanumeric\",\n\tariaLabel: \"PinInput\",\n\tsize: \"sm\"\n};\nconst varsResolver = createVarsResolver((_, { size }) => ({ root: { \"--pin-input-size\": getSize(size ?? \"sm\", \"pin-input-size\") } }));\nconst PinInput = factory((props) => {\n\tconst { name, form, className, value, defaultValue, variant, gap, style, size, classNames, styles, unstyled, length, onChange, onComplete, manageFocus, autoFocus, error, success, radius, disabled, oneTimeCode, placeholder, type, mask, readOnly, inputType, inputMode, ariaLabel, vars, id, hiddenInputProps, rootRef, getInputProps, attributes, ref, ...others } = useProps([\"Input\", \"PinInput\"], defaultProps, props);\n\tconst uuid = useId$1(id);\n\tconst getStyles = useStyles({\n\t\tname: \"PinInput\",\n\t\tclasses: PinInput_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({\n\t\tclassNames,\n\t\tstyles,\n\t\tprops\n\t});\n\tconst [focusedIndex, setFocusedIndex] = useState(-1);\n\tconst inputsRef = useRef([]);\n\tconst currentLength = length ?? 4;\n\tconst completedRef = useRef(false);\n\tconst [_value, setValues] = useUncontrolled({\n\t\tvalue: value !== void 0 ? createPinArray(currentLength, value) : void 0,\n\t\tdefaultValue: defaultValue?.split(\"\").slice(0, currentLength),\n\t\tfinalValue: createPinArray(currentLength, \"\"),\n\t\tonChange: (val) => {\n\t\t\tconst stringValue = val.join(\"\").trim();\n\t\t\tonChange?.(stringValue);\n\t\t\tif (stringValue.length === currentLength && !completedRef.current) {\n\t\t\t\tcompletedRef.current = true;\n\t\t\t\tonComplete?.(stringValue);\n\t\t\t} else if (stringValue.length < currentLength) completedRef.current = false;\n\t\t}\n\t});\n\tconst currentValue = _value.length !== currentLength ? createPinArray(currentLength, _value.join(\"\")) : _value;\n\tconst _valueToString = currentValue.join(\"\").trim();\n\tconst validate = (code) => {\n\t\treturn (type instanceof RegExp ? type : type && type in regex ? regex[type] : null)?.test(code);\n\t};\n\tconst focusInputField = (dir, index) => {\n\t\tif (!manageFocus) return;\n\t\tif (dir === \"next\") {\n\t\t\tconst nextIndex = index + 1;\n\t\t\tif (nextIndex < currentLength) inputsRef.current[nextIndex]?.focus();\n\t\t} else if (dir === \"prev\") {\n\t\t\tconst prevIndex = index - 1;\n\t\t\tif (prevIndex >= 0) inputsRef.current[prevIndex]?.focus();\n\t\t}\n\t};\n\tconst setFieldValue = (val, index) => {\n\t\tconst values = [...currentValue];\n\t\tvalues[index] = val;\n\t\tsetValues(values);\n\t\treturn values;\n\t};\n\tconst handleChange = (event, index) => {\n\t\tconst inputValue = event.target.value;\n\t\tif (inputValue.length > 1) {\n\t\t\tif (inputValue.length > 2) {\n\t\t\t\tif (validate(inputValue)) {\n\t\t\t\t\tsetValues(createPinArray(currentLength, inputValue));\n\t\t\t\t\tconst filledCount = Math.min(inputValue.length, currentLength);\n\t\t\t\t\tif (filledCount < currentLength) focusInputField(\"next\", filledCount - 1);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst newChar = inputValue.split(\"\")[inputValue.length - 1];\n\t\t\tif (validate(newChar)) {\n\t\t\t\tsetFieldValue(newChar, index);\n\t\t\t\tfocusInputField(\"next\", index);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (inputValue.length === 1) {\n\t\t\tif (validate(inputValue)) {\n\t\t\t\tsetFieldValue(inputValue, index);\n\t\t\t\tfocusInputField(\"next\", index);\n\t\t\t} else setFieldValue(\"\", index);\n\t\t} else if (inputValue.length === 0) setFieldValue(\"\", index);\n\t};\n\tconst handleKeyDown = (event, index) => {\n\t\tconst { ctrlKey, metaKey, key, shiftKey, target } = event;\n\t\tconst inputValue = target.value;\n\t\tif (inputMode === \"numeric\") {\n\t\t\tconst allowedKeys = [\n\t\t\t\t\"Backspace\",\n\t\t\t\t\"Tab\",\n\t\t\t\t\"Control\",\n\t\t\t\t\"Delete\",\n\t\t\t\t\"ArrowLeft\",\n\t\t\t\t\"ArrowRight\"\n\t\t\t];\n\t\t\tconst isModifierShortcut = ctrlKey || metaKey;\n\t\t\tif (!(allowedKeys.includes(key) || isModifierShortcut || !Number.isNaN(Number(key)))) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tswitch (key) {\n\t\t\tcase \"ArrowLeft\":\n\t\t\t\tevent.preventDefault();\n\t\t\t\tfocusInputField(\"prev\", index);\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowRight\":\n\t\t\t\tevent.preventDefault();\n\t\t\t\tfocusInputField(\"next\", index);\n\t\t\t\tbreak;\n\t\t\tcase \"Tab\":\n\t\t\t\tif (shiftKey) {\n\t\t\t\t\tif (index > 0 && manageFocus) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tfocusInputField(\"prev\", index);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \" \":\n\t\t\t\tevent.preventDefault();\n\t\t\t\tfocusInputField(\"next\", index);\n\t\t\t\tbreak;\n\t\t\tcase \"Delete\":\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (!readOnly) setFieldValue(\"\", index);\n\t\t\t\tbreak;\n\t\t\tcase \"Backspace\":\n\t\t\t\tif (readOnly) event.preventDefault();\n\t\t\t\telse if (inputValue === \"\") {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tfocusInputField(\"prev\", index);\n\t\t\t\t} else {\n\t\t\t\t\tsetFieldValue(\"\", index);\n\t\t\t\t\tif (index < currentLength - 1) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tfocusInputField(\"prev\", index);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault: if (inputValue.length > 0 && key === currentValue[index]) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tfocusInputField(\"next\", index);\n\t\t\t}\n\t\t}\n\t};\n\tconst handleFocus = (event, index) => {\n\t\tevent.target.select();\n\t\tsetFocusedIndex(index);\n\t};\n\tconst handleBlur = () => {\n\t\tsetFocusedIndex(-1);\n\t};\n\tconst handlePaste = (event) => {\n\t\tevent.preventDefault();\n\t\tif (readOnly) return;\n\t\tconst pasteData = event.clipboardData.getData(\"text/plain\").replace(/[\\n\\r\\s]+/g, \"\");\n\t\tif (validate(pasteData.trim())) {\n\t\t\tconst pasteArray = createPinArray(currentLength, pasteData);\n\t\t\tsetValues(pasteArray);\n\t\t\tconst filledCount = pasteArray.filter((val) => val !== \"\").length;\n\t\t\tif (filledCount >= currentLength) inputsRef.current[currentLength - 1]?.focus();\n\t\t\telse inputsRef.current[filledCount]?.focus();\n\t\t}\n\t};\n\treturn /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Group, {\n\t\t...others,\n\t\t...getStyles(\"root\"),\n\t\tref: rootRef,\n\t\trole: \"group\",\n\t\tid: uuid,\n\t\tgap,\n\t\tunstyled,\n\t\twrap: \"nowrap\",\n\t\tvariant,\n\t\t__size: size,\n\t\tdir: \"ltr\",\n\t\tchildren: currentValue.map((char, index) => /* @__PURE__ */ createElement(Input, {\n\t\t\tcomponent: \"input\",\n\t\t\t...getStyles(\"pinInput\", { style: {\n\t\t\t\t\"--input-padding\": \"0\",\n\t\t\t\t\"--input-text-align\": \"center\"\n\t\t\t} }),\n\t\t\tclassNames: resolvedClassNames,\n\t\t\tstyles: resolvedStyles,\n\t\t\tsize,\n\t\t\t__staticSelector: \"PinInput\",\n\t\t\tid: `${uuid}-${index + 1}`,\n\t\t\tkey: `${uuid}-${index}`,\n\t\t\tinputMode: inputMode || (type === \"number\" ? \"numeric\" : \"text\"),\n\t\t\tonChange: (event) => handleChange(event, index),\n\t\t\tonKeyDown: (event) => handleKeyDown(event, index),\n\t\t\tonFocus: (event) => handleFocus(event, index),\n\t\t\tonBlur: handleBlur,\n\t\t\tonPaste: handlePaste,\n\t\t\ttype: inputType || (mask ? \"password\" : type === \"number\" ? \"tel\" : \"text\"),\n\t\t\tradius,\n\t\t\terror,\n\t\t\tsuccess,\n\t\t\tvariant,\n\t\t\tdisabled,\n\t\t\tref: (node) => {\n\t\t\t\tif (node) {\n\t\t\t\t\tindex === 0 && assignRef(ref, node);\n\t\t\t\t\tinputsRef.current[index] = node;\n\t\t\t\t}\n\t\t\t},\n\t\t\tautoComplete: oneTimeCode ? \"one-time-code\" : \"off\",\n\t\t\tplaceholder: focusedIndex === index ? \"\" : placeholder,\n\t\t\tvalue: char,\n\t\t\tautoFocus: autoFocus && index === 0,\n\t\t\tunstyled,\n\t\t\t\"aria-label\": ariaLabel,\n\t\t\treadOnly,\n\t\t\t...getInputProps?.(index)\n\t\t}))\n\t}), /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"hidden\",\n\t\tname,\n\t\tform,\n\t\tvalue: _valueToString,\n\t\t...hiddenInputProps\n\t})] });\n});\nPinInput.classes = {\n\t...PinInput_module_default,\n\t...InputBase.classes\n};\nPinInput.varsResolver = varsResolver;\nPinInput.displayName = \"@mantine/core/PinInput\";\nexport { PinInput };\n\n//# sourceMappingURL=PinInput.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Anchor/Anchor.module.css\nvar Anchor_module_default = { \"root\": \"m_849cf0da\" };\nexport { Anchor_module_default as default };\n\n//# sourceMappingURL=Anchor.module.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Text } from \"../Text/Text.mjs\";\nimport Anchor_module_default from \"./Anchor.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Anchor/Anchor.tsx\nconst defaultProps = { underline: \"hover\" };\nconst Anchor = polymorphicFactory((props) => {\n\tconst { underline, className, unstyled, mod, ...others } = useProps(\"Anchor\", defaultProps, props);\n\treturn /* @__PURE__ */ jsx(Text, {\n\t\tcomponent: \"a\",\n\t\tclassName: cx({ [Anchor_module_default.root]: !unstyled }, className),\n\t\t...others,\n\t\tmod: [{ underline }, mod],\n\t\t__staticSelector: \"Anchor\",\n\t\tunstyled\n\t});\n});\nAnchor.classes = Anchor_module_default;\nAnchor.displayName = \"@mantine/core/Anchor\";\nexport { Anchor };\n\n//# sourceMappingURL=Anchor.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toCamelCase = (string) => {\n  let out = \"\";\n  let upperNext = false;\n  for (const ch of string) {\n    if (ch === \"-\" || ch === \"_\" || ch <= \" \") {\n      upperNext = out.length > 0;\n      continue;\n    }\n    if (out.length === 0) {\n      out += ch.toLowerCase();\n    } else {\n      out += upperNext ? ch.toUpperCase() : ch;\n    }\n    upperNext = false;\n  }\n  return out;\n};\n\nexport { toCamelCase };\n//# sourceMappingURL=toCamelCase.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst mergeClasses = (...classes) => {\n  const tokens = /* @__PURE__ */ new Set();\n  for (const cls of classes) {\n    if (typeof cls !== \"string\") continue;\n    for (const token of cls.split(/\\s+/)) {\n      if (token) tokens.add(token);\n    }\n  }\n  return [...tokens].join(\" \");\n};\n\nexport { mergeClasses };\n//# sourceMappingURL=mergeClasses.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst defaultAttributes = {\n  xmlns: \"http://www.w3.org/2000/svg\",\n  width: 24,\n  height: 24,\n  viewBox: \"0 0 24 24\",\n  fill: \"none\",\n  stroke: \"currentColor\",\n  \"stroke-width\": 2,\n  \"stroke-linecap\": \"round\",\n  \"stroke-linejoin\": \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport defaultAttributes from './defaultAttributes.mjs';\nimport { mergeClasses } from '../utils/mergeClasses.mjs';\n\nfunction isDefined(value) {\n  return value !== null && value !== void 0;\n}\nfunction buildLucideIconNode(icon, params = {}) {\n  const attributeNames = params.attributeNames ?? {};\n  const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;\n  const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes[\"width\"];\n  const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes[\"height\"];\n  const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === \"string\" && alias.trim() !== \"\").map((alias) => `lucide-${alias}`) ?? [];\n  const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];\n  const classNamesFromClassName = params.className?.split(\" \").filter(Boolean) ?? [];\n  const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses(\"lucide\", ...iconClassNames, ...classNamesFromClassName);\n  let calculatedStrokeWidth = params.strokeWidth ?? defaultAttributes[\"stroke-width\"];\n  if (params.absoluteStrokeWidth) {\n    const scaled = Number(calculatedStrokeWidth) * Number(icon.size ?? icon.width ?? defaultAttributes[\"width\"]) / Number(params.size ?? params.width ?? defaultAttributes[\"width\"]);\n    if (Number.isFinite(scaled)) calculatedStrokeWidth = scaled;\n  }\n  const attributes = {\n    ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {\n      attrs[getAttributeName(attrName)] = value;\n      return attrs;\n    }, {}),\n    ...\"color\" in params && params.color && {\n      [getAttributeName(\"stroke\")]: params.color\n    },\n    ...\"size\" in params && isDefined(params.size) && {\n      [getAttributeName(\"width\")]: params.size,\n      [getAttributeName(\"height\")]: params.size\n    },\n    ...\"width\" in params && isDefined(params.width) && {\n      [getAttributeName(\"width\")]: params.width\n    },\n    ...\"height\" in params && isDefined(params.height) && {\n      [getAttributeName(\"height\")]: params.height\n    },\n    [getAttributeName(\"stroke-width\")]: calculatedStrokeWidth,\n    ...className && {\n      [getAttributeName(\"class\")]: className\n    },\n    [getAttributeName(\"viewBox\")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,\n    ...params.hasA11yProp === false ? {\n      [getAttributeName(\"aria-hidden\")]: \"true\"\n    } : {},\n    ...\"attributes\" in params && params.attributes\n  };\n  return [\n    \"svg\",\n    attributes,\n    icon.node.map((child) => {\n      const [name, attrs, children] = child;\n      const nextAttrs = params.nonScalingStroke ? { [getAttributeName(\"vector-effect\")]: \"non-scaling-stroke\", ...attrs } : attrs;\n      return children ? [name, nextAttrs, children] : [name, nextAttrs];\n    })\n  ];\n}\n\nexport { buildLucideIconNode as default };\n//# sourceMappingURL=buildLucideIconNode.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { createContext, useContext, useMemo, createElement } from 'react';\n\nconst LucideContext = createContext({});\nfunction LucideProvider({\n  children,\n  size,\n  color,\n  strokeWidth,\n  absoluteStrokeWidth,\n  nonScalingStroke,\n  className\n}) {\n  const value = useMemo(\n    () => ({\n      size,\n      color,\n      strokeWidth,\n      absoluteStrokeWidth,\n      nonScalingStroke,\n      className\n    }),\n    [size, color, strokeWidth, absoluteStrokeWidth, nonScalingStroke, className]\n  );\n  return createElement(LucideContext.Provider, { value }, children);\n}\nconst useLucideContext = () => useContext(LucideContext);\n\nexport { LucideProvider, useLucideContext };\n//# sourceMappingURL=context.mjs.map\n","\"use strict\";\n\"use client\";\n/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses } from './shared/src/utils/mergeClasses.mjs';\nimport buildLucideIconForReact from './shared/src/build/buildLucideIconForReact.mjs';\nimport { hasA11yProp } from './shared/src/utils/hasA11yProp.mjs';\nimport { useLucideContext } from './context.mjs';\n\nconst Icon = forwardRef(\n  ({\n    color,\n    size,\n    width,\n    height,\n    strokeWidth,\n    absoluteStrokeWidth,\n    nonScalingStroke,\n    className = \"\",\n    children,\n    iconNode = [],\n    icon = {\n      node: iconNode,\n      aliases: [],\n      size: 24\n    },\n    ...rest\n  }, ref) => {\n    const {\n      size: contextSize = 24,\n      strokeWidth: contextStrokeWidth = 2,\n      absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,\n      nonScalingStroke: contextNonScalingStroke = false,\n      color: contextColor = \"currentColor\",\n      className: contextClass = \"\"\n    } = useLucideContext() ?? {};\n    const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);\n    const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {\n      color: color ?? contextColor,\n      width: width ?? size ?? contextSize,\n      height: height ?? size ?? contextSize,\n      strokeWidth: strokeWidth ?? contextStrokeWidth,\n      absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,\n      nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,\n      className: mergeClasses(contextClass, className),\n      hasA11yProp: hasAccessibleProp,\n      attributes: rest\n    });\n    return createElement(\n      name,\n      {\n        ref,\n        ...svgAttributes\n      },\n      [\n        ...builtIconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n        ...Array.isArray(children) ? children : [children]\n      ]\n    );\n  }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst hasA11yProp = (props) => {\n  if (props == null || typeof props !== \"object\") {\n    return false;\n  }\n  for (const prop in props) {\n    if (Object.prototype.hasOwnProperty.call(props, prop) && (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") && props[prop] != null) {\n      return true;\n    }\n  }\n  return false;\n};\n\nexport { hasA11yProp };\n//# sourceMappingURL=hasA11yProp.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport buildLucideIconNode from './buildLucideIconNode.mjs';\n\nfunction buildLucideIconForReact(icon, params = {}) {\n  return buildLucideIconNode(icon, {\n    ...params,\n    attributeNames: {\n      ...params.attributeNames,\n      class: \"className\",\n      \"stroke-width\": \"strokeWidth\",\n      \"stroke-linecap\": \"strokeLinecap\",\n      \"stroke-linejoin\": \"strokeLinejoin\",\n      \"vector-effect\": \"vectorEffect\"\n    }\n  });\n}\n\nexport { buildLucideIconForReact as default };\n//# sourceMappingURL=buildLucideIconForReact.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { toLucideIconData } from './shared/src/utils/toLucideIconData.mjs';\nimport { toPascalCase } from './shared/src/utils/toPascalCase.mjs';\nimport Icon from './Icon.mjs';\n\nfunction createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {\n  const iconData = typeof iconDataOrName === \"string\" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;\n  const Component = forwardRef(\n    ({ className, ...props }, ref) => createElement(Icon, {\n      ref,\n      icon: iconData,\n      className,\n      ...props\n    })\n  );\n  if (iconData.name) {\n    Component.displayName = toPascalCase(iconData.name);\n  }\n  return Component;\n}\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { toKebabCase } from './toKebabCase.mjs';\n\nfunction toLucideIconData(iconName, iconNode, aliases = []) {\n  if (iconNode == null) {\n    throw new Error(\"[lucide]: iconNode is required when icon name is used\");\n  }\n  return {\n    name: toKebabCase(iconName),\n    size: 24,\n    node: iconNode,\n    ...aliases.length > 0 ? { aliases } : {}\n  };\n}\n\nexport { toLucideIconData };\n//# sourceMappingURL=toLucideIconData.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (value) => (value.match(/\\d+[xX]\\d+|[A-Z]?[a-z]+|[A-Z]|\\d+/g) ?? []).join(\"-\").toLowerCase();\n\nexport { toKebabCase };\n//# sourceMappingURL=toKebabCase.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { toCamelCase } from './toCamelCase.mjs';\n\nconst toPascalCase = (string) => {\n  const camelCase = toCamelCase(string);\n  return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\n\nexport { toPascalCase };\n//# sourceMappingURL=toPascalCase.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"mail\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\", key: \"132q7q\" }],\n    [\"rect\", { x: \"2\", y: \"4\", width: \"20\", height: \"16\", rx: \"2\", key: \"izxlao\" }]\n  ]\n};\n__iconData.node;\nconst Mail = createLucideIcon(__iconData);\n\nexport { __iconData, Mail as default };\n//# sourceMappingURL=mail.mjs.map\n","import React, { useEffect, useState } from \"react\";\nimport { Alert, Anchor, Button, Center, Group, Paper, PinInput, Stack, Text, TextInput, Title } from \"@mantine/core\";\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { Mail } from \"lucide-react\";\nimport { api, ME } from \"./api\";\nimport Brand from \"./Brand\";\nimport { useMediaQuery } from \"@mantine/hooks\";\nimport { t } from \"./i18n\";\n\nconst RESEND_SECONDS = 60;\n\nfunction Frame({ children }) {\n  return (\n    <Center mih=\"100vh\" p=\"md\" className=\"pt-canvas\">\n      <Paper withBorder shadow=\"xs\" p=\"xl\" w=\"100%\" maw={420}>\n        <Stack gap=\"lg\">\n          <Title order={1} m={0}>\n            <Brand size=\"lg\" />\n          </Title>\n          {children}\n        </Stack>\n      </Paper>\n    </Center>\n  );\n}\n\nfunction signedIn(queryClient) {\n  window.history.replaceState(null, \"\", \"/\");\n  return queryClient.invalidateQueries({ queryKey: ME });\n}\n\nexport default function Login() {\n  const queryClient = useQueryClient();\n  const narrow = useMediaQuery(\"(max-width: 400px)\");\n  const [email, setEmail] = useState(\"\");\n  const [sentTo, setSentTo] = useState(\"\");\n  const [code, setCode] = useState(\"\");\n  const [error, setError] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n  const [wait, setWait] = useState(0);\n\n  useEffect(() => {\n    if (wait <= 0) return undefined;\n    const timer = setTimeout(() => setWait(wait - 1), 1000);\n    return () => clearTimeout(timer);\n  }, [wait]);\n\n  async function requestCode(event) {\n    if (event) event.preventDefault();\n    setBusy(true);\n    setError(\"\");\n    try {\n      await api(\"/api/login/start/\", { method: \"POST\", body: { email } });\n      setSentTo(email.trim());\n      setCode(\"\");\n      setWait(RESEND_SECONDS);\n    } catch (e) {\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  async function verify(value) {\n    setBusy(true);\n    setError(\"\");\n    try {\n      await api(\"/api/login/verify/\", { method: \"POST\", body: { email: sentTo, code: value } });\n      await signedIn(queryClient);\n    } catch (e) {\n      setError(e.message);\n      setCode(\"\");\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  const root = typeof document !== \"undefined\" && document.getElementById(\"root\");\n  if (root && root.dataset.loginOpen === \"0\") {\n    return (\n      <Frame>\n        <Alert color=\"firmin\" variant=\"light\">\n          {t(\"My FIRMIN is not open yet. Until then, write to us at info@firmin.cz.\")}\n        </Alert>\n      </Frame>\n    );\n  }\n\n  if (!sentTo) {\n    return (\n      <Frame>\n        <Text c=\"dimmed\">{t(\"Sign in with a code we send to your email. No password needed.\")}</Text>\n        <form onSubmit={requestCode}>\n          <Stack gap=\"md\">\n            <TextInput\n              label={t(\"Email\")}\n              type=\"email\"\n              autoComplete=\"email\"\n              required\n              size=\"md\"\n              value={email}\n              onChange={(e) => setEmail(e.currentTarget.value)}\n              leftSection={<Mail size={18} />}\n            />\n            {error && <Alert color=\"fmRed\">{error}</Alert>}\n            <Button type=\"submit\" size=\"md\" loading={busy} disabled={!email.trim()}>\n              {t(\"Send code\")}\n            </Button>\n          </Stack>\n        </form>\n      </Frame>\n    );\n  }\n\n  return (\n    <Frame>\n      <Text>\n        {t(\"If {{email}} is registered with us, a 6-digit code is on its way. It is valid for 15 minutes.\", {\n          email: sentTo,\n        })}\n      </Text>\n      <form\n        onSubmit={(e) => {\n          e.preventDefault();\n          if (code.length === 6) verify(code);\n        }}\n      >\n        <Stack gap=\"md\">\n          <Group justify=\"center\">\n            <PinInput\n              length={6}\n              type=\"number\"\n              oneTimeCode\n              size={narrow ? \"md\" : \"lg\"}\n              value={code}\n              onChange={setCode}\n              onComplete={verify}\n              aria-label={t(\"Code from the email\")}\n              autoFocus\n            />\n          </Group>\n          {error && <Alert color=\"fmRed\">{error}</Alert>}\n          <Button type=\"submit\" size=\"md\" loading={busy} disabled={code.length !== 6}>\n            {t(\"Sign in\")}\n          </Button>\n        </Stack>\n      </form>\n      <Group justify=\"space-between\">\n        <Anchor component=\"button\" type=\"button\" onClick={() => setSentTo(\"\")}>\n          {t(\"Use another email\")}\n        </Anchor>\n        {wait > 0 ? (\n          <Text c=\"dimmed\" size=\"sm\">\n            {t(\"Send again in {{seconds}} s\", { seconds: wait })}\n          </Text>\n        ) : (\n          <Anchor component=\"button\" type=\"button\" onClick={() => requestCode()}>\n            {t(\"Send again\")}\n          </Anchor>\n        )}\n      </Group>\n    </Frame>\n  );\n}\n\n/** The page the e-mail links to: the token is in the #fragment and is sent only on click,\n * so a link scanner opening the page signs nobody in. */\nexport function LinkLogin() {\n  const [error, setError] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n  const token = window.location.hash.replace(/^#/, \"\");\n\n  async function signIn() {\n    setBusy(true);\n    setError(\"\");\n    try {\n      await api(\"/api/login/verify/\", { method: \"POST\", body: { token } });\n      window.location.replace(\"/\");\n    } catch (e) {\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  return (\n    <Frame>\n      <Text>{t(\"Sign in to My FIRMIN with the link from your email.\")}</Text>\n      {error && <Alert color=\"fmRed\">{error}</Alert>}\n      <Button size=\"md\" onClick={signIn} loading={busy} disabled={!token}>\n        {t(\"Sign in\")}\n      </Button>\n      <Anchor href=\"/\">{t(\"Sign in with a code instead\")}</Anchor>\n    </Frame>\n  );\n}\n","\"use client\";\n// packages/@mantine/core/src/core/utils/find-element-ancestor/find-element-ancestor.ts\nfunction findElementAncestor(element, selector) {\n\tlet _element = element;\n\twhile ((_element = _element.parentElement) && !_element.matches(selector));\n\treturn _element;\n}\nexport { findElementAncestor };\n\n//# sourceMappingURL=find-element-ancestor.mjs.map","\"use client\";\nimport { createContext, use, useCallback, useState } from \"react\";\nimport { useIsomorphicEffect, useMutationObserverTarget } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/core/DirectionProvider/DirectionProvider.tsx\nconst DirectionContext = createContext({\n\tdir: \"ltr\",\n\ttoggleDirection: () => {},\n\tsetDirection: () => {}\n});\nfunction useDirection() {\n\treturn use(DirectionContext);\n}\nfunction DirectionProvider({ children, initialDirection = \"ltr\", detectDirection = true }) {\n\tconst [dir, setDir] = useState(initialDirection);\n\tconst setDirection = useCallback((direction) => {\n\t\tsetDir(direction);\n\t\tif (document.documentElement.getAttribute(\"dir\") !== direction) document.documentElement.setAttribute(\"dir\", direction);\n\t}, []);\n\tconst toggleDirection = () => setDirection(dir === \"ltr\" ? \"rtl\" : \"ltr\");\n\tuseIsomorphicEffect(() => {\n\t\tif (detectDirection) {\n\t\t\tconst direction = document.documentElement.getAttribute(\"dir\");\n\t\t\tif (direction === \"rtl\" || direction === \"ltr\") setDir(direction);\n\t\t}\n\t}, []);\n\tconst mutationCallback = useCallback(() => {\n\t\tif (typeof document === \"undefined\") return;\n\t\tconst direction = document.documentElement.getAttribute(\"dir\");\n\t\tif (direction === \"rtl\" || direction === \"ltr\") setDir((prev) => prev !== direction ? direction : prev);\n\t}, []);\n\tuseMutationObserverTarget(mutationCallback, detectDirection ? {\n\t\tattributes: true,\n\t\tattributeFilter: [\"dir\"]\n\t} : {}, typeof document !== \"undefined\" && detectDirection ? document.documentElement : null);\n\treturn /* @__PURE__ */ jsx(DirectionContext, {\n\t\tvalue: {\n\t\t\tdir,\n\t\t\ttoggleDirection,\n\t\t\tsetDirection\n\t\t},\n\t\tchildren\n\t});\n}\nexport { DirectionContext, DirectionProvider, useDirection };\n\n//# sourceMappingURL=DirectionProvider.mjs.map","\"use client\";\n// packages/@mantine/core/src/utils/Floating/get-floating-position/get-floating-position.ts\nfunction getFloatingPosition(dir, position) {\n\tif (dir === \"rtl\" && (position.includes(\"right\") || position.includes(\"left\"))) {\n\t\tconst [side, placement] = position.split(\"-\");\n\t\tconst flippedPosition = side === \"right\" ? \"left\" : \"right\";\n\t\treturn placement === void 0 ? flippedPosition : `${flippedPosition}-${placement}`;\n\t}\n\treturn position;\n}\nexport { getFloatingPosition };\n\n//# sourceMappingURL=get-floating-position.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Overlay/Overlay.module.css\nvar Overlay_module_default = { \"root\": \"m_9814e45f\" };\nexport { Overlay_module_default as default };\n\n//# sourceMappingURL=Overlay.module.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { rgba } from \"../../core/MantineProvider/color-functions/rgba/rgba.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Overlay_module_default from \"./Overlay.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Overlay/Overlay.tsx\nconst defaultProps = { zIndex: getDefaultZIndex(\"modal\") };\nconst varsResolver = createVarsResolver((_, { gradient, color, backgroundOpacity, blur, radius, zIndex }) => ({ root: {\n\t\"--overlay-bg\": gradient || (color !== void 0 || backgroundOpacity !== void 0) && rgba(color || \"#000\", backgroundOpacity ?? .6) || void 0,\n\t\"--overlay-filter\": blur ? `blur(${rem(blur)})` : void 0,\n\t\"--overlay-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--overlay-z-index\": zIndex?.toString()\n} }));\nconst Overlay = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Overlay\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, fixed, center, children, radius, zIndex, gradient, blur, color, backgroundOpacity, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Overlay\",\n\t\tprops,\n\t\tclasses: Overlay_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\tmod: [{\n\t\t\tcenter,\n\t\t\tfixed\n\t\t}, mod],\n\t\t...others,\n\t\tchildren\n\t});\n});\nOverlay.classes = Overlay_module_default;\nOverlay.varsResolver = varsResolver;\nOverlay.displayName = \"@mantine/core/Overlay\";\nexport { Overlay };\n\n//# sourceMappingURL=Overlay.mjs.map","\"use client\";\nimport { createContext, use } from \"react\";\n// packages/@mantine/core/src/core/utils/create-safe-context/create-safe-context.tsx\nfunction createSafeContext(errorMessage) {\n\tconst Context = createContext(null);\n\tconst useSafeContext = () => {\n\t\tconst ctx = use(Context);\n\t\tif (ctx === null) throw new Error(errorMessage);\n\t\treturn ctx;\n\t};\n\treturn [Context, useSafeContext];\n}\nexport { createSafeContext };\n\n//# sourceMappingURL=create-safe-context.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Popover/Popover.context.ts\nconst [PopoverContextProvider, usePopoverContext] = createSafeContext(\"Popover component was not found in the tree\");\nexport { PopoverContextProvider, usePopoverContext };\n\n//# sourceMappingURL=Popover.context.mjs.map","\"use client\";\nimport { Fragment } from \"react\";\n// packages/@mantine/core/src/core/utils/is-element/is-element.ts\nfunction isElement(value) {\n\tif (Array.isArray(value) || value === null) return false;\n\tif (typeof value === \"object\") {\n\t\tif (value.type === Fragment) return false;\n\t\treturn true;\n\t}\n\treturn false;\n}\nexport { isElement };\n\n//# sourceMappingURL=is-element.mjs.map","\"use client\";\nimport { isElement } from \"../is-element/is-element.mjs\";\nimport { Children } from \"react\";\n// packages/@mantine/core/src/core/utils/get-single-element-child/get-single-element-child.ts\nfunction getSingleElementChild(children) {\n\tconst _children = Children.toArray(children);\n\tif (_children.length !== 1 || !isElement(_children[0])) return null;\n\treturn _children[0];\n}\nexport { getSingleElementChild };\n\n//# sourceMappingURL=get-single-element-child.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/create-event-handler/create-event-handler.ts\nfunction createEventHandler(parentEventHandler, eventHandler) {\n\treturn (event) => {\n\t\tparentEventHandler?.(event);\n\t\teventHandler?.(event);\n\t};\n}\nexport { createEventHandler };\n\n//# sourceMappingURL=create-event-handler.mjs.map","\"use client\";\nimport { useEffect, useMemo, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-long-press/use-long-press.ts\nconst DEFAULT_EVENTS = [\"mouse\", \"touch\"];\nconst DEFAULT_MOVE_THRESHOLD = 10;\nfunction useLongPress(onLongPress, options = {}) {\n\tconst { threshold = 400, events = DEFAULT_EVENTS, cancelOnMove = false, onStart, onFinish, onCancel } = options;\n\tconst isLongPressActive = useRef(false);\n\tconst isPressed = useRef(false);\n\tconst timeout = useRef(-1);\n\tconst startPosition = useRef(null);\n\tuseEffect(() => () => window.clearTimeout(timeout.current), []);\n\tconst eventsKey = events.join(\",\");\n\treturn useMemo(() => {\n\t\tif (typeof onLongPress !== \"function\") return {};\n\t\tconst moveEnabled = cancelOnMove !== false;\n\t\tconst moveThreshold = cancelOnMove === true ? DEFAULT_MOVE_THRESHOLD : cancelOnMove === false ? 0 : cancelOnMove;\n\t\tconst start = (event) => {\n\t\t\tif (isPressed.current || !isMouseEvent(event) && !isTouchEvent(event)) return;\n\t\t\tif (onStart) onStart(event);\n\t\t\tstartPosition.current = getEventPosition(event);\n\t\t\tisPressed.current = true;\n\t\t\ttimeout.current = window.setTimeout(() => {\n\t\t\t\tonLongPress(event);\n\t\t\t\tisLongPressActive.current = true;\n\t\t\t}, threshold);\n\t\t};\n\t\tconst cancel = (event) => {\n\t\t\tif (!isMouseEvent(event) && !isTouchEvent(event)) return;\n\t\t\tif (isLongPressActive.current) {\n\t\t\t\tif (onFinish) onFinish(event);\n\t\t\t} else if (isPressed.current) {\n\t\t\t\tif (onCancel) onCancel(event);\n\t\t\t}\n\t\t\tisLongPressActive.current = false;\n\t\t\tisPressed.current = false;\n\t\t\tstartPosition.current = null;\n\t\t\tif (timeout.current !== -1) {\n\t\t\t\twindow.clearTimeout(timeout.current);\n\t\t\t\ttimeout.current = -1;\n\t\t\t}\n\t\t};\n\t\tconst move = (event) => {\n\t\t\tif (!moveEnabled || !isPressed.current || isLongPressActive.current) return;\n\t\t\tconst position = getEventPosition(event);\n\t\t\tif (!position || !startPosition.current) return;\n\t\t\tconst dx = position.x - startPosition.current.x;\n\t\t\tconst dy = position.y - startPosition.current.y;\n\t\t\tif (Math.sqrt(dx * dx + dy * dy) > moveThreshold) cancel(event);\n\t\t};\n\t\tconst handlers = {};\n\t\tif (events.includes(\"mouse\")) {\n\t\t\thandlers.onMouseDown = start;\n\t\t\thandlers.onMouseUp = cancel;\n\t\t\thandlers.onMouseLeave = cancel;\n\t\t\tif (moveEnabled) handlers.onMouseMove = move;\n\t\t}\n\t\tif (events.includes(\"touch\")) {\n\t\t\thandlers.onTouchStart = start;\n\t\t\thandlers.onTouchEnd = cancel;\n\t\t\thandlers.onTouchCancel = cancel;\n\t\t\tif (moveEnabled) handlers.onTouchMove = move;\n\t\t}\n\t\treturn handlers;\n\t}, [\n\t\tonLongPress,\n\t\tthreshold,\n\t\tonCancel,\n\t\tonFinish,\n\t\tonStart,\n\t\tcancelOnMove,\n\t\teventsKey\n\t]);\n}\nfunction getEventPosition(event) {\n\tif (isTouchEvent(event)) {\n\t\tconst touch = event.touches[0] ?? event.changedTouches[0];\n\t\treturn touch ? {\n\t\t\tx: touch.clientX,\n\t\t\ty: touch.clientY\n\t\t} : null;\n\t}\n\treturn {\n\t\tx: event.clientX,\n\t\ty: event.clientY\n\t};\n}\nfunction isTouchEvent(event) {\n\treturn window.TouchEvent ? event.nativeEvent instanceof TouchEvent : \"touches\" in event.nativeEvent;\n}\nfunction isMouseEvent(event) {\n\treturn event.nativeEvent instanceof MouseEvent;\n}\nexport { useLongPress };\n\n//# sourceMappingURL=use-long-press.mjs.map","\"use client\";\nimport { createEventHandler } from \"../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { useRef } from \"react\";\nimport { useLongPress } from \"@mantine/hooks\";\n// packages/@mantine/core/src/utils/Floating/use-context-menu-handlers.ts\nfunction useContextMenuHandlers({ childProps, disabled, opened, longPressDelay = 500, setReference, open }) {\n\tconst touchActiveRef = useRef(false);\n\tconst gestureHandledRef = useRef(false);\n\tconst touchTargetRef = useRef(null);\n\tconst disabledRef = useRef(disabled);\n\tdisabledRef.current = disabled;\n\tconst openAtPoint = (clientX, clientY, contextElement) => {\n\t\tsetReference({\n\t\t\tgetBoundingClientRect: () => ({\n\t\t\t\tx: clientX,\n\t\t\t\ty: clientY,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\ttop: clientY,\n\t\t\t\tleft: clientX,\n\t\t\t\tright: clientX,\n\t\t\t\tbottom: clientY,\n\t\t\t\ttoJSON: () => void 0\n\t\t\t}),\n\t\t\tcontextElement\n\t\t});\n\t\topen();\n\t};\n\tconst onMouseDown = createEventHandler(childProps.onMouseDown, (event) => {\n\t\tif (disabled) return;\n\t\tif (event.button === 2) event.stopPropagation();\n\t});\n\tconst onContextMenu = createEventHandler(childProps.onContextMenu, (event) => {\n\t\tif (disabled || event.defaultPrevented) return;\n\t\tevent.preventDefault();\n\t\tif (gestureHandledRef.current) return;\n\t\topenAtPoint(event.clientX, event.clientY, event.currentTarget);\n\t\tif (touchActiveRef.current) gestureHandledRef.current = true;\n\t});\n\tconst longPressHandlers = useLongPress((event) => {\n\t\tif (disabledRef.current || gestureHandledRef.current) return;\n\t\tconst touchEvent = event;\n\t\tconst touch = touchEvent.touches[0] ?? touchEvent.changedTouches[0];\n\t\tif (!touch) return;\n\t\topenAtPoint(touch.clientX, touch.clientY, touchTargetRef.current);\n\t\tgestureHandledRef.current = true;\n\t}, {\n\t\tthreshold: longPressDelay,\n\t\tevents: [\"touch\"],\n\t\tcancelOnMove: true,\n\t\tonStart: (event) => {\n\t\t\ttouchActiveRef.current = true;\n\t\t\tgestureHandledRef.current = false;\n\t\t\ttouchTargetRef.current = event.currentTarget;\n\t\t},\n\t\tonFinish: (event) => {\n\t\t\ttouchActiveRef.current = false;\n\t\t\tgestureHandledRef.current = false;\n\t\t\tif (!disabledRef.current) event.preventDefault();\n\t\t},\n\t\tonCancel: () => {\n\t\t\ttouchActiveRef.current = false;\n\t\t\tgestureHandledRef.current = false;\n\t\t}\n\t});\n\treturn {\n\t\tonContextMenu,\n\t\tonMouseDown,\n\t\tonTouchStart: createEventHandler(childProps.onTouchStart, longPressHandlers.onTouchStart),\n\t\tonTouchEnd: createEventHandler(childProps.onTouchEnd, longPressHandlers.onTouchEnd),\n\t\tonTouchCancel: createEventHandler(childProps.onTouchCancel, longPressHandlers.onTouchCancel),\n\t\tonTouchMove: createEventHandler(childProps.onTouchMove, longPressHandlers.onTouchMove),\n\t\tstyle: disabled ? childProps.style : {\n\t\t\t...childProps.style,\n\t\t\tWebkitTouchCallout: \"none\",\n\t\t\tWebkitUserSelect: \"none\",\n\t\t\tuserSelect: \"none\"\n\t\t},\n\t\t\"data-expanded\": opened ? true : void 0\n\t};\n}\nexport { useContextMenuHandlers };\n\n//# sourceMappingURL=use-context-menu-handlers.mjs.map","\"use client\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { usePopoverContext } from \"../Popover.context.mjs\";\nimport { useContextMenuHandlers } from \"../../../utils/Floating/use-context-menu-handlers.mjs\";\nimport { cloneElement } from \"react\";\n// packages/@mantine/core/src/components/Popover/PopoverContextMenu/PopoverContextMenu.tsx\nfunction PopoverContextMenu(props) {\n\tconst { children, disabled, longPressDelay } = useProps(\"PopoverContextMenu\", null, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst ctx = usePopoverContext();\n\tconst handlers = useContextMenuHandlers({\n\t\tchildProps: child.props,\n\t\tdisabled: disabled || ctx.disabled,\n\t\topened: ctx.opened,\n\t\tlongPressDelay,\n\t\tsetReference: ctx.reference,\n\t\topen: () => {\n\t\t\tif (!ctx.opened) ctx.onToggle();\n\t\t}\n\t});\n\treturn cloneElement(child, handlers);\n}\nPopoverContextMenu.displayName = \"@mantine/core/PopoverContextMenu\";\nexport { PopoverContextMenu };\n\n//# sourceMappingURL=PopoverContextMenu.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Popover/Popover.module.css\nvar Popover_module_default = {\n\t\"dropdown\": \"m_38a85659\",\n\t\"arrow\": \"m_a31dc6c1\",\n\t\"overlay\": \"m_3d7bc908\"\n};\nexport { Popover_module_default as default };\n\n//# sourceMappingURL=Popover.module.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/noop/noop.ts\nconst noop = () => {};\nexport { noop };\n\n//# sourceMappingURL=noop.mjs.map","\"use client\";\nimport { noop } from \"../noop/noop.mjs\";\n// packages/@mantine/core/src/core/utils/close-on-escape/close-on-escape.ts\nfunction closeOnEscape(callback, options = { active: true }) {\n\tif (typeof callback !== \"function\" || !options.active) return options.onKeyDown || noop;\n\treturn (event) => {\n\t\tif (event.key === \"Escape\") {\n\t\t\tcallback(event);\n\t\t\toptions.onTrigger?.();\n\t\t}\n\t};\n}\nexport { closeOnEscape };\n\n//# sourceMappingURL=close-on-escape.mjs.map","\"use client\";\n// packages/@mantine/core/src/utils/Floating/FloatingArrow/get-arrow-position-styles.ts\nfunction horizontalSide(placement, arrowY, arrowOffset, arrowPosition) {\n\tif (placement === \"center\" || arrowPosition === \"center\") return { top: arrowY };\n\tif (placement === \"end\") return { bottom: arrowOffset };\n\tif (placement === \"start\") return { top: arrowOffset };\n\treturn {};\n}\nfunction verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir) {\n\tif (placement === \"center\" || arrowPosition === \"center\") return { left: arrowX };\n\tif (placement === \"end\") return { [dir === \"ltr\" ? \"right\" : \"left\"]: arrowOffset };\n\tif (placement === \"start\") return { [dir === \"ltr\" ? \"left\" : \"right\"]: arrowOffset };\n\treturn {};\n}\nconst radiusByFloatingSide = {\n\tbottom: \"borderTopLeftRadius\",\n\tleft: \"borderTopRightRadius\",\n\tright: \"borderBottomLeftRadius\",\n\ttop: \"borderBottomRightRadius\"\n};\nfunction getMergeArrowStyles({ position, arrowSize, dir }) {\n\tconst [side, placement] = position.split(\"-\");\n\tif (!placement) return;\n\tconst baseStyles = {\n\t\twidth: arrowSize,\n\t\theight: arrowSize,\n\t\tposition: \"absolute\"\n\t};\n\tif (side === \"bottom\") {\n\t\tconst isStart = placement === \"start\";\n\t\tconst physicalSide = isStart ? dir === \"ltr\" ? \"left\" : \"right\" : dir === \"ltr\" ? \"right\" : \"left\";\n\t\treturn {\n\t\t\t...baseStyles,\n\t\t\ttop: -arrowSize,\n\t\t\t[physicalSide]: 0,\n\t\t\tclipPath: isStart !== (dir === \"rtl\") ? \"polygon(0% 0%, 0% 100%, 100% 100%)\" : \"polygon(100% 0%, 0% 100%, 100% 100%)\"\n\t\t};\n\t}\n\tif (side === \"top\") {\n\t\tconst isStart = placement === \"start\";\n\t\tconst physicalSide = isStart ? dir === \"ltr\" ? \"left\" : \"right\" : dir === \"ltr\" ? \"right\" : \"left\";\n\t\treturn {\n\t\t\t...baseStyles,\n\t\t\tbottom: -arrowSize,\n\t\t\t[physicalSide]: 0,\n\t\t\tclipPath: isStart !== (dir === \"rtl\") ? \"polygon(0% 0%, 100% 0%, 0% 100%)\" : \"polygon(0% 0%, 100% 0%, 100% 100%)\"\n\t\t};\n\t}\n\tif (side === \"left\") return {\n\t\t...baseStyles,\n\t\tright: -arrowSize,\n\t\t[placement === \"start\" ? \"top\" : \"bottom\"]: 0,\n\t\tclipPath: placement === \"start\" ? \"polygon(0% 0%, 100% 0%, 0% 100%)\" : \"polygon(0% 0%, 0% 100%, 100% 100%)\"\n\t};\n\tif (side === \"right\") return {\n\t\t...baseStyles,\n\t\tleft: -arrowSize,\n\t\t[placement === \"start\" ? \"top\" : \"bottom\"]: 0,\n\t\tclipPath: placement === \"start\" ? \"polygon(0% 0%, 100% 0%, 100% 100%)\" : \"polygon(100% 0%, 0% 100%, 100% 100%)\"\n\t};\n}\nfunction getArrowPositionStyles({ position, arrowSize, arrowOffset, arrowRadius, arrowPosition, arrowX, arrowY, dir }) {\n\tif (arrowPosition === \"merge\") {\n\t\tconst mergeStyles = getMergeArrowStyles({\n\t\t\tposition,\n\t\t\tarrowSize,\n\t\t\tdir\n\t\t});\n\t\tif (mergeStyles) return mergeStyles;\n\t}\n\tconst [side, placement = \"center\"] = position.split(\"-\");\n\tconst baseStyles = {\n\t\twidth: arrowSize,\n\t\theight: arrowSize,\n\t\ttransform: \"rotate(45deg)\",\n\t\tposition: \"absolute\",\n\t\t[radiusByFloatingSide[side]]: arrowRadius\n\t};\n\tconst arrowPlacement = -arrowSize / 2;\n\tif (side === \"left\") return {\n\t\t...baseStyles,\n\t\t...horizontalSide(placement, arrowY, arrowOffset, arrowPosition),\n\t\tright: arrowPlacement,\n\t\tborderLeftColor: \"transparent\",\n\t\tborderBottomColor: \"transparent\",\n\t\tclipPath: \"polygon(100% 0, 0 0, 100% 100%)\"\n\t};\n\tif (side === \"right\") return {\n\t\t...baseStyles,\n\t\t...horizontalSide(placement, arrowY, arrowOffset, arrowPosition),\n\t\tleft: arrowPlacement,\n\t\tborderRightColor: \"transparent\",\n\t\tborderTopColor: \"transparent\",\n\t\tclipPath: \"polygon(0 100%, 0 0, 100% 100%)\"\n\t};\n\tif (side === \"top\") return {\n\t\t...baseStyles,\n\t\t...verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir),\n\t\tbottom: arrowPlacement,\n\t\tborderTopColor: \"transparent\",\n\t\tborderLeftColor: \"transparent\",\n\t\tclipPath: \"polygon(0 100%, 100% 100%, 100% 0)\"\n\t};\n\tif (side === \"bottom\") return {\n\t\t...baseStyles,\n\t\t...verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir),\n\t\ttop: arrowPlacement,\n\t\tborderBottomColor: \"transparent\",\n\t\tborderRightColor: \"transparent\",\n\t\tclipPath: \"polygon(0 100%, 0 0, 100% 0)\"\n\t};\n\treturn {};\n}\nfunction getArrowMergeDropdownStyles({ position, dir }) {\n\tconst [side, placement] = position.split(\"-\");\n\tif (!placement) return;\n\tconst isPhysicallyLeft = placement === \"start\" && dir === \"ltr\" || placement === \"end\" && dir === \"rtl\";\n\tif (side === \"bottom\") return isPhysicallyLeft ? { borderTopLeftRadius: 0 } : { borderTopRightRadius: 0 };\n\tif (side === \"top\") return isPhysicallyLeft ? { borderBottomLeftRadius: 0 } : { borderBottomRightRadius: 0 };\n\tif (side === \"left\") return placement === \"start\" ? { borderTopRightRadius: 0 } : { borderBottomRightRadius: 0 };\n\tif (side === \"right\") return placement === \"start\" ? { borderTopLeftRadius: 0 } : { borderBottomLeftRadius: 0 };\n}\nexport { getArrowMergeDropdownStyles, getArrowPositionStyles };\n\n//# sourceMappingURL=get-arrow-position-styles.mjs.map","\"use client\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { getArrowPositionStyles } from \"./get-arrow-position-styles.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/utils/Floating/FloatingArrow/FloatingArrow.tsx\nfunction FloatingArrow({ position, arrowSize, arrowOffset, arrowRadius, arrowPosition, visible, arrowX, arrowY, style, ...others }) {\n\tconst { dir } = useDirection();\n\tif (!visible) return null;\n\treturn /* @__PURE__ */ jsx(\"div\", {\n\t\trole: \"presentation\",\n\t\t...others,\n\t\tstyle: {\n\t\t\t...style,\n\t\t\t...getArrowPositionStyles({\n\t\t\t\tposition,\n\t\t\t\tarrowSize,\n\t\t\t\tarrowOffset,\n\t\t\t\tarrowRadius,\n\t\t\t\tarrowPosition,\n\t\t\t\tdir,\n\t\t\t\tarrowX,\n\t\t\t\tarrowY\n\t\t\t})\n\t\t}\n\t});\n}\nFloatingArrow.displayName = \"@mantine/core/FloatingArrow\";\nexport { FloatingArrow };\n\n//# sourceMappingURL=FloatingArrow.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/VisuallyHidden/VisuallyHidden.module.css\nvar VisuallyHidden_module_default = { \"root\": \"m_515a97f8\" };\nexport { VisuallyHidden_module_default as default };\n\n//# sourceMappingURL=VisuallyHidden.module.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport VisuallyHidden_module_default from \"./VisuallyHidden.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/VisuallyHidden/VisuallyHidden.tsx\nconst VisuallyHidden = factory((_props) => {\n\tconst props = useProps(\"VisuallyHidden\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"VisuallyHidden\",\n\t\tclasses: VisuallyHidden_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"span\",\n\t\t...getStyles(\"root\"),\n\t\t...others\n\t});\n});\nVisuallyHidden.classes = VisuallyHidden_module_default;\nVisuallyHidden.displayName = \"@mantine/core/VisuallyHidden\";\nexport { VisuallyHidden };\n\n//# sourceMappingURL=VisuallyHidden.mjs.map","\"use client\";\n// packages/@mantine/hooks/src/use-focus-trap/tabbable.ts\nconst TABBABLE_NODES = /input|select|textarea|button|object|summary|iframe/;\nconst FOCUS_SELECTOR = \"a, input, select, textarea, button, object, summary, iframe, audio[controls], video[controls], [contenteditable], [tabindex]\";\nfunction isContentEditable(element) {\n\tconst value = element.getAttribute(\"contenteditable\");\n\treturn value !== null && value !== \"false\";\n}\nfunction hasMediaControls(element) {\n\tconst nodeName = element.nodeName.toLowerCase();\n\treturn (nodeName === \"audio\" || nodeName === \"video\") && element.hasAttribute(\"controls\");\n}\nfunction hidden(element) {\n\treturn element.style.display === \"none\";\n}\nfunction visible(element) {\n\tif (element.getAttribute(\"aria-hidden\") || element.getAttribute(\"hidden\") || element.getAttribute(\"type\") === \"hidden\") return false;\n\tlet parentElement = element;\n\twhile (parentElement) {\n\t\tif (parentElement === document.body || parentElement.nodeType === 11) break;\n\t\tif (hidden(parentElement)) return false;\n\t\tparentElement = parentElement.parentNode;\n\t}\n\treturn true;\n}\nfunction getElementTabIndex(element) {\n\tlet tabIndex = element.getAttribute(\"tabindex\");\n\tif (tabIndex === null) tabIndex = void 0;\n\treturn parseInt(tabIndex, 10);\n}\nfunction focusable(element) {\n\tconst nodeName = element.nodeName.toLowerCase();\n\tconst isTabIndexNotNaN = !Number.isNaN(getElementTabIndex(element));\n\treturn (TABBABLE_NODES.test(nodeName) && !element.disabled || isContentEditable(element) || hasMediaControls(element) || (element instanceof HTMLAnchorElement ? element.href || isTabIndexNotNaN : isTabIndexNotNaN)) && visible(element);\n}\nfunction tabbable(element) {\n\tconst tabIndex = getElementTabIndex(element);\n\treturn (Number.isNaN(tabIndex) || tabIndex >= 0) && focusable(element);\n}\nfunction findTabbableDescendants(element) {\n\tconst elements = Array.from(element.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable);\n\tconst positive = elements.filter((item) => getElementTabIndex(item) > 0).sort((a, b) => getElementTabIndex(a) - getElementTabIndex(b));\n\tconst regular = elements.filter((item) => !(getElementTabIndex(item) > 0));\n\treturn [...positive, ...regular];\n}\nexport { FOCUS_SELECTOR, findTabbableDescendants, focusable, tabbable };\n\n//# sourceMappingURL=tabbable.mjs.map","\"use client\";\nimport { findTabbableDescendants } from \"./tabbable.mjs\";\n// packages/@mantine/hooks/src/use-focus-trap/scope-tab.ts\nconst NATIVE_TAB_STOPS_INPUT_TYPES = [\n\t\"date\",\n\t\"time\",\n\t\"datetime-local\",\n\t\"month\",\n\t\"week\"\n];\nconst NATIVE_TAB_STOPS_NODES = [\n\t\"audio\",\n\t\"video\",\n\t\"iframe\",\n\t\"object\",\n\t\"embed\"\n];\nfunction isRadio(element) {\n\treturn !!element && element.tagName === \"INPUT\" && element.type === \"radio\";\n}\nfunction isSameRadioGroup(a, b) {\n\treturn a.name !== \"\" && a.name === b.name && a.form === b.form;\n}\nfunction hasNativeTabStops(element) {\n\tconst nodeName = element.nodeName.toLowerCase();\n\tif (nodeName === \"input\") return NATIVE_TAB_STOPS_INPUT_TYPES.includes(element.type);\n\treturn NATIVE_TAB_STOPS_NODES.includes(nodeName);\n}\nfunction getTabSequence(node, activeElement) {\n\tconst tabbable = findTabbableDescendants(node);\n\treturn tabbable.filter((element) => {\n\t\tif (element === activeElement || !isRadio(element)) return true;\n\t\tif (isRadio(activeElement) && isSameRadioGroup(element, activeElement)) return false;\n\t\tif (element.checked) return true;\n\t\treturn !tabbable.some((item) => isRadio(item) && item.checked && isSameRadioGroup(item, element));\n\t});\n}\nfunction getStartIndex(sequence, activeElement, node, backwards) {\n\tconst activeIndex = sequence.indexOf(activeElement);\n\tif (activeIndex !== -1) return activeIndex + 1;\n\tif (activeElement === node) return 0;\n\tconst position = backwards ? Node.DOCUMENT_POSITION_PRECEDING : Node.DOCUMENT_POSITION_FOLLOWING;\n\tconst nextIndex = sequence.findIndex((element) => (activeElement.compareDocumentPosition(element) & position) !== 0);\n\treturn nextIndex === -1 ? 0 : nextIndex;\n}\nfunction getCandidates(node, activeElement, backwards) {\n\tconst sequence = getTabSequence(node, activeElement);\n\tif (backwards) sequence.reverse();\n\tconst startIndex = getStartIndex(sequence, activeElement, node, backwards);\n\treturn [...sequence.slice(startIndex), ...sequence.slice(0, startIndex)].filter((element) => element !== activeElement);\n}\nfunction focusFirstAvailable(candidates, root) {\n\tfor (const candidate of candidates) {\n\t\tcandidate.focus();\n\t\tif (root.activeElement === candidate) return;\n\t}\n}\nfunction scopeTab(node, event) {\n\tconst root = node.getRootNode();\n\tconst activeElement = root.activeElement;\n\tif (!activeElement || activeElement !== node && !node.contains(activeElement)) return;\n\tconst candidates = getCandidates(node, activeElement, event.shiftKey);\n\tif (hasNativeTabStops(activeElement)) {\n\t\tsetTimeout(() => {\n\t\t\tconst current = root.activeElement;\n\t\t\tif (node.isConnected && current !== activeElement && current !== candidates[0]) focusFirstAvailable([...candidates, activeElement], root);\n\t\t});\n\t\treturn;\n\t}\n\tevent.preventDefault();\n\tfocusFirstAvailable(candidates, root);\n}\nexport { scopeTab };\n\n//# sourceMappingURL=scope-tab.mjs.map","\"use client\";\nimport { FOCUS_SELECTOR, focusable, tabbable } from \"./tabbable.mjs\";\nimport { scopeTab } from \"./scope-tab.mjs\";\nimport { useCallback, useEffect, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-focus-trap/use-focus-trap.ts\nconst activeTraps = /* @__PURE__ */ new Set();\nfunction hasNestedActiveTrap(ref, node) {\n\tconst activeElement = node.getRootNode().activeElement;\n\tif (!activeElement) return false;\n\tfor (const trap of activeTraps) {\n\t\tconst nested = trap.current;\n\t\tif (trap !== ref && nested && nested !== node && node.contains(nested) && nested.contains(activeElement)) return true;\n\t}\n\treturn false;\n}\nfunction useFocusTrap(active = true) {\n\tconst ref = useRef(null);\n\tconst focusNode = (node) => {\n\t\tlet focusElement = node.querySelector(\"[data-autofocus]\");\n\t\tif (!focusElement) {\n\t\t\tconst children = Array.from(node.querySelectorAll(FOCUS_SELECTOR));\n\t\t\tfocusElement = children.find(tabbable) || children.find(focusable) || null;\n\t\t\tif (!focusElement && focusable(node)) focusElement = node;\n\t\t}\n\t\tif (focusElement) focusElement.focus({ preventScroll: true });\n\t\telse console.warn(\"[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node\", node);\n\t};\n\tconst setRef = useCallback((node) => {\n\t\tif (!active) return;\n\t\tif (node === null) {\n\t\t\tref.current = null;\n\t\t\treturn;\n\t\t}\n\t\tif (ref.current === node) return;\n\t\tsetTimeout(() => {\n\t\t\tif (node.getRootNode()) focusNode(node);\n\t\t\telse console.warn(\"[@mantine/hooks/use-focus-trap] Ref node is not part of the dom\", node);\n\t\t});\n\t\tref.current = node;\n\t}, [active]);\n\tuseEffect(() => {\n\t\tif (!active) return;\n\t\tif (ref.current) setTimeout(() => {\n\t\t\tif (ref.current) focusNode(ref.current);\n\t\t});\n\t\tconst handleKeyDown = (event) => {\n\t\t\tif (event.key !== \"Tab\" || event.defaultPrevented || !ref.current || hasNestedActiveTrap(ref, ref.current)) return;\n\t\t\tscopeTab(ref.current, event);\n\t\t};\n\t\tactiveTraps.add(ref);\n\t\tdocument.addEventListener(\"keydown\", handleKeyDown);\n\t\treturn () => {\n\t\t\tactiveTraps.delete(ref);\n\t\t\tdocument.removeEventListener(\"keydown\", handleKeyDown);\n\t\t};\n\t}, [active]);\n\treturn setRef;\n}\nexport { useFocusTrap };\n\n//# sourceMappingURL=use-focus-trap.mjs.map","\"use client\";\nimport { getSingleElementChild } from \"../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { VisuallyHidden } from \"../VisuallyHidden/VisuallyHidden.mjs\";\nimport { cloneElement } from \"react\";\nimport { useFocusTrap, useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/FocusTrap/FocusTrap.tsx\nfunction FocusTrap({ children, active = true, refProp = \"ref\", innerRef }) {\n\tconst focusTrapRef = useFocusTrap(active);\n\tconst ref = useMergedRef(focusTrapRef, innerRef);\n\tconst child = getSingleElementChild(children);\n\tif (!child) return children;\n\treturn cloneElement(child, { [refProp]: ref });\n}\nfunction FocusTrapInitialFocus(props) {\n\treturn /* @__PURE__ */ jsx(VisuallyHidden, {\n\t\ttabIndex: -1,\n\t\t\"data-autofocus\": true,\n\t\t...props\n\t});\n}\nFocusTrap.displayName = \"@mantine/core/FocusTrap\";\nFocusTrapInitialFocus.displayName = \"@mantine/core/FocusTrapInitialFocus\";\nFocusTrap.InitialFocus = FocusTrapInitialFocus;\nexport { FocusTrap, FocusTrapInitialFocus };\n\n//# sourceMappingURL=FocusTrap.mjs.map","\"use client\";\nimport { useDidUpdate } from \"../use-did-update/use-did-update.mjs\";\nimport { useRef } from \"react\";\n// packages/@mantine/hooks/src/use-focus-return/use-focus-return.ts\nfunction useFocusReturn({ opened, shouldReturnFocus = true }) {\n\tconst lastActiveElement = useRef(null);\n\tconst returnFocus = () => {\n\t\tif (lastActiveElement.current && \"focus\" in lastActiveElement.current && typeof lastActiveElement.current.focus === \"function\") lastActiveElement.current?.focus({ preventScroll: true });\n\t};\n\tuseDidUpdate(() => {\n\t\tlet timeout = -1;\n\t\tconst clearFocusTimeout = (event) => {\n\t\t\tif (event.key === \"Tab\") window.clearTimeout(timeout);\n\t\t};\n\t\tdocument.addEventListener(\"keydown\", clearFocusTimeout);\n\t\tif (opened) lastActiveElement.current = document.activeElement;\n\t\telse if (shouldReturnFocus) {\n\t\t\tconst activeElementAtClose = document.activeElement;\n\t\t\ttimeout = window.setTimeout(() => {\n\t\t\t\tconst currentActiveElement = document.activeElement;\n\t\t\t\tif (currentActiveElement === null || currentActiveElement === document.body || currentActiveElement === activeElementAtClose) returnFocus();\n\t\t\t}, 10);\n\t\t}\n\t\treturn () => {\n\t\t\twindow.clearTimeout(timeout);\n\t\t\tdocument.removeEventListener(\"keydown\", clearFocusTimeout);\n\t\t};\n\t}, [opened, shouldReturnFocus]);\n\treturn returnFocus;\n}\nexport { useFocusReturn };\n\n//# sourceMappingURL=use-focus-return.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { closeOnEscape } from \"../../../core/utils/close-on-escape/close-on-escape.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { getArrowMergeDropdownStyles } from \"../../../utils/Floating/FloatingArrow/get-arrow-position-styles.mjs\";\nimport { FloatingArrow } from \"../../../utils/Floating/FloatingArrow/FloatingArrow.mjs\";\nimport { OptionalPortal } from \"../../Portal/OptionalPortal.mjs\";\nimport { Transition } from \"../../Transition/Transition.mjs\";\nimport { usePopoverContext } from \"../Popover.context.mjs\";\nimport { FocusTrap } from \"../../FocusTrap/FocusTrap.mjs\";\nimport Popover_module_default from \"../Popover.module.mjs\";\nimport { useFocusReturn, useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Popover/PopoverDropdown/PopoverDropdown.tsx\nconst PopoverDropdown = factory((_props) => {\n\tconst props = useProps(\"PopoverDropdown\", null, _props);\n\tconst { className, style, vars, children, onKeyDownCapture, variant, classNames, styles, ref, ...others } = props;\n\tconst ctx = usePopoverContext();\n\tconst { dir } = useDirection();\n\tconst mergeStyles = ctx.arrowPosition === \"merge\" && ctx.withArrow ? getArrowMergeDropdownStyles({\n\t\tposition: ctx.placement,\n\t\tdir\n\t}) : void 0;\n\tconst returnFocus = useFocusReturn({\n\t\topened: ctx.opened,\n\t\tshouldReturnFocus: ctx.returnFocus\n\t});\n\tconst accessibleProps = ctx.withRoles ? {\n\t\t\"aria-labelledby\": ctx.getTargetId(),\n\t\tid: ctx.getDropdownId(),\n\t\trole: \"dialog\",\n\t\ttabIndex: -1\n\t} : {};\n\tconst mergedRef = useMergedRef(ref, ctx.floating);\n\tif (ctx.disabled) return null;\n\treturn /* @__PURE__ */ jsx(OptionalPortal, {\n\t\t...ctx.portalProps,\n\t\twithinPortal: ctx.withinPortal,\n\t\tchildren: /* @__PURE__ */ jsx(Transition, {\n\t\t\tmounted: ctx.opened,\n\t\t\t...ctx.transitionProps,\n\t\t\ttransition: ctx.transitionProps?.transition || \"fade\",\n\t\t\tduration: ctx.transitionProps?.duration ?? 150,\n\t\t\tkeepMounted: ctx.keepMounted,\n\t\t\tkeepMountedMode: ctx.keepMountedMode,\n\t\t\texitDuration: typeof ctx.transitionProps?.exitDuration === \"number\" ? ctx.transitionProps.exitDuration : ctx.transitionProps?.duration,\n\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(FocusTrap, {\n\t\t\t\tactive: ctx.trapFocus && ctx.opened,\n\t\t\t\tinnerRef: mergedRef,\n\t\t\t\tchildren: /* @__PURE__ */ jsxs(Box, {\n\t\t\t\t\t...accessibleProps,\n\t\t\t\t\t...others,\n\t\t\t\t\tvariant,\n\t\t\t\t\tonKeyDownCapture: closeOnEscape(() => {\n\t\t\t\t\t\tctx.onClose?.();\n\t\t\t\t\t\tctx.onDismiss?.();\n\t\t\t\t\t}, {\n\t\t\t\t\t\tactive: ctx.closeOnEscape,\n\t\t\t\t\t\tonTrigger: returnFocus,\n\t\t\t\t\t\tonKeyDown: onKeyDownCapture\n\t\t\t\t\t}),\n\t\t\t\t\t\"data-position\": ctx.placement,\n\t\t\t\t\t\"data-fixed\": ctx.floatingStrategy === \"fixed\" || void 0,\n\t\t\t\t\t...ctx.getStyles(\"dropdown\", {\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t\tprops,\n\t\t\t\t\t\tclassNames,\n\t\t\t\t\t\tstyles,\n\t\t\t\t\t\tstyle: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t...transitionStyles,\n\t\t\t\t\t\t\t\t...mergeStyles,\n\t\t\t\t\t\t\t\tzIndex: ctx.zIndex,\n\t\t\t\t\t\t\t\ttop: ctx.y ?? 0,\n\t\t\t\t\t\t\t\tleft: ctx.x ?? 0,\n\t\t\t\t\t\t\t\twidth: ctx.width === \"target\" ? void 0 : rem(ctx.width),\n\t\t\t\t\t\t\t\t...ctx.referenceHidden ? { display: \"none\" } : null\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tctx.resolvedStyles?.dropdown,\n\t\t\t\t\t\t\tstyles?.dropdown,\n\t\t\t\t\t\t\tstyle\n\t\t\t\t\t\t]\n\t\t\t\t\t}),\n\t\t\t\t\tchildren: [children, /* @__PURE__ */ jsx(FloatingArrow, {\n\t\t\t\t\t\tref: ctx.arrowRef,\n\t\t\t\t\t\tarrowX: ctx.arrowX,\n\t\t\t\t\t\tarrowY: ctx.arrowY,\n\t\t\t\t\t\tvisible: ctx.withArrow,\n\t\t\t\t\t\tposition: ctx.placement,\n\t\t\t\t\t\tarrowSize: ctx.arrowSize,\n\t\t\t\t\t\tarrowRadius: ctx.arrowRadius,\n\t\t\t\t\t\tarrowOffset: ctx.arrowOffset,\n\t\t\t\t\t\tarrowPosition: ctx.arrowPosition,\n\t\t\t\t\t\t...ctx.getStyles(\"arrow\", {\n\t\t\t\t\t\t\tprops,\n\t\t\t\t\t\t\tclassNames,\n\t\t\t\t\t\t\tstyles\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t});\n});\nPopoverDropdown.classes = Popover_module_default;\nPopoverDropdown.displayName = \"@mantine/core/PopoverDropdown\";\nexport { PopoverDropdown };\n\n//# sourceMappingURL=PopoverDropdown.mjs.map","\"use client\";\nimport React from \"react\";\n// packages/@mantine/core/src/core/utils/get-ref-prop/get-ref-prop.ts\nfunction getRefProp(element) {\n\tconst version = React.version;\n\tif (typeof React.version !== \"string\") return element?.ref;\n\tif (version.startsWith(\"18.\")) return element?.ref;\n\treturn element?.props?.ref;\n}\nexport { getRefProp };\n\n//# sourceMappingURL=get-ref-prop.mjs.map","\"use client\";\nimport { getRefProp } from \"../../../core/utils/get-ref-prop/get-ref-prop.mjs\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { usePopoverContext } from \"../Popover.context.mjs\";\nimport { cloneElement } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport cx from \"clsx\";\n// packages/@mantine/core/src/components/Popover/PopoverTarget/PopoverTarget.tsx\nconst defaultProps = {\n\trefProp: \"ref\",\n\tpopupType: \"dialog\"\n};\nconst PopoverTarget = factory((props) => {\n\tconst { children, refProp, popupType, ref, ...others } = useProps(\"PopoverTarget\", defaultProps, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst forwardedProps = others;\n\tconst ctx = usePopoverContext();\n\tconst targetRef = useMergedRef(ctx.reference, getRefProp(child), ref);\n\tconst accessibleProps = ctx.withRoles ? {\n\t\t\"aria-haspopup\": popupType,\n\t\t\"aria-expanded\": ctx.opened,\n\t\t\"aria-controls\": ctx.opened ? ctx.getDropdownId() : void 0,\n\t\tid: ctx.getTargetId()\n\t} : {};\n\tconst childProps = child.props;\n\treturn cloneElement(child, {\n\t\t...forwardedProps,\n\t\t...accessibleProps,\n\t\t...ctx.targetProps,\n\t\tclassName: cx(ctx.targetProps.className, forwardedProps.className, childProps.className),\n\t\t[refProp]: targetRef,\n\t\t...!ctx.controlled ? { onClick: (event) => {\n\t\t\tctx.onToggle();\n\t\t\tchildProps.onClick?.(event);\n\t\t} } : null\n\t});\n});\nPopoverTarget.displayName = \"@mantine/core/PopoverTarget\";\nexport { PopoverTarget };\n\n//# sourceMappingURL=PopoverTarget.mjs.map","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n  x: v,\n  y: v\n});\nconst oppositeSideMap = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n  return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n  return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n  const firstChar = placement[0];\n  return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n  switch (side) {\n    case 'top':\n    case 'bottom':\n      if (rtl) return isStart ? rlPlacement : lrPlacement;\n      return isStart ? lrPlacement : rlPlacement;\n    case 'left':\n    case 'right':\n      return isStart ? tbPlacement : btPlacement;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === 'start', rtl);\n  if (alignment) {\n    list = list.map(side => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  const side = getSide(placement);\n  return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n  var _padding$top, _padding$right, _padding$bottom, _padding$left;\n  return {\n    top: (_padding$top = padding.top) != null ? _padding$top : 0,\n    right: (_padding$right = padding.right) != null ? _padding$right : 0,\n    bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,\n    left: (_padding$left = padding.left) != null ? _padding$left : 0\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  const {\n    x,\n    y,\n    width,\n    height\n  } = rect;\n  return {\n    width,\n    height,\n    top: y,\n    left: x,\n    right: x + width,\n    bottom: y + height,\n    x,\n    y\n  };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === 'y';\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case 'top':\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case 'bottom':\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case 'right':\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case 'left':\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  const alignment = getAlignment(placement);\n  if (alignment) {\n    coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);\n  }\n  return coords;\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = 'clippingAncestors',\n    rootBoundary = 'viewport',\n    elementContext = 'floating',\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n    element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === 'floating' ? {\n    x,\n    y,\n    width: rects.floating.width,\n    height: rects.floating.height\n  } : rects.reference;\n  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\n\n// Maximum number of resets that can occur before bailing to avoid infinite reset loops.\nconst MAX_RESET_COUNT = 50;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n  const {\n    placement = 'bottom',\n    strategy = 'absolute',\n    middleware = [],\n    platform\n  } = config;\n  const platformWithDetectOverflow = platform.detectOverflow ? platform : {\n    ...platform,\n    detectOverflow\n  };\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n  let rects = await platform.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let resetCount = 0;\n  const middlewareData = {};\n  for (let i = 0; i < middleware.length; i++) {\n    const currentMiddleware = middleware[i];\n    if (!currentMiddleware) {\n      continue;\n    }\n    const {\n      name,\n      fn\n    } = currentMiddleware;\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platformWithDetectOverflow,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData[name] = {\n      ...middlewareData[name],\n      ...data\n    };\n    if (reset && resetCount < MAX_RESET_COUNT) {\n      resetCount++;\n      if (typeof reset === 'object') {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n  name: 'arrow',\n  options,\n  async fn(state) {\n    const {\n      x,\n      y,\n      placement,\n      rects,\n      platform,\n      elements,\n      middlewareData\n    } = state;\n    // Since `element` is required, we don't Partial<> the type.\n    const {\n      element,\n      padding = 0\n    } = evaluate(options, state) || {};\n    if (element == null) {\n      return {};\n    }\n    const paddingObject = getPaddingObject(padding);\n    const coords = {\n      x,\n      y\n    };\n    const axis = getAlignmentAxis(placement);\n    const length = getAxisLength(axis);\n    const arrowDimensions = await platform.getDimensions(element);\n    const isYAxis = axis === 'y';\n    const minProp = isYAxis ? 'top' : 'left';\n    const maxProp = isYAxis ? 'bottom' : 'right';\n    const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n    const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n    const startDiff = coords[axis] - rects.reference[axis];\n    const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n    let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n    // DOM platform can return `window` as the `offsetParent`.\n    if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n      clientSize = elements.floating[clientProp] || rects.floating[length];\n    }\n    const centerToReference = endDiff / 2 - startDiff / 2;\n\n    // If the padding is large enough that it causes the arrow to no longer be\n    // centered, modify the padding so that it is centered.\n    const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n    const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n    const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n    // Make sure the arrow doesn't overflow the floating element if the center\n    // point is outside the floating element's bounds.\n    const max = clientSize - arrowDimensions[length] - maxPadding;\n    const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n    const offset = clamp(minPadding, center, max);\n\n    // If the reference is small enough that the arrow's padding causes it to\n    // to point to nothing for an aligned placement, adjust the offset of the\n    // floating element itself. To ensure `shift()` continues to take action,\n    // a single reset is performed when this is true.\n    const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n    const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;\n    return {\n      [axis]: coords[axis] + alignmentOffset,\n      data: {\n        [axis]: offset,\n        centerOffset: center - offset - alignmentOffset,\n        ...(shouldAddOffset && {\n          alignmentOffset\n        })\n      },\n      reset: shouldAddOffset\n    };\n  }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n  const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n  return allowedPlacementsSortedByAlignment.filter(placement => {\n    if (alignment) {\n      return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n    }\n    return true;\n  });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'autoPlacement',\n    options,\n    async fn(state) {\n      var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n      const {\n        rects,\n        middlewareData,\n        placement,\n        platform,\n        elements\n      } = state;\n      const {\n        crossAxis = false,\n        alignment,\n        allowedPlacements = placements,\n        autoAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n      const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n      const currentPlacement = placements$1[currentIndex];\n      if (currentPlacement == null) {\n        return {};\n      }\n\n      // Make `computeCoords` start from the right place.\n      if (placement !== currentPlacement) {\n        return {\n          reset: {\n            placement: placements$1[0]\n          }\n        };\n      }\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n      const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n      const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n        placement: currentPlacement,\n        overflows: currentOverflows\n      }];\n      const nextPlacement = placements$1[currentIndex + 1];\n\n      // There are more placements to check.\n      if (nextPlacement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: nextPlacement\n          }\n        };\n      }\n      const placementsSortedByMostSpace = allOverflows.map(d => {\n        const alignment = getAlignment(d.placement);\n        return [d.placement, alignment && crossAxis ?\n        // Check along the mainAxis and main crossAxis side.\n        d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n        // Check only the mainAxis.\n        d.overflows[0], d.overflows];\n      }).sort((a, b) => a[1] - b[1]);\n      const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n      // Aligned placements should not check their opposite crossAxis\n      // side.\n      getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n      const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n      if (resetPlacement !== placement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: resetPlacement\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'flip',\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = 'bestFit',\n        fallbackAxisSideDirection = 'none',\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n\n      // If a reset by the arrow was caused due to an alignment offset being\n      // added, we should skip any logic now since `flip()` has already done its\n      // work.\n      // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const initialSideAxis = getSideAxis(initialPlacement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n      if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements = [initialPlacement, ...fallbackPlacements];\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides[0]], overflow[sides[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n\n      // One or more sides is overflowing.\n      if (!overflows.every(side => side <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements[nextIndex];\n        if (nextPlacement) {\n          const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n          if (!ignoreCrossAxisOverflow ||\n          // We leave the current main axis only if every placement on that axis\n          // overflows the main axis.\n          overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n            // Try next placement and re-run the lifecycle.\n            return {\n              data: {\n                index: nextIndex,\n                overflows: overflowsData\n              },\n              reset: {\n                placement: nextPlacement\n              }\n            };\n          }\n        }\n\n        // First, find the candidates that fit on the mainAxis side of overflow,\n        // then find the placement that fits the best on the main crossAxis side.\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n        // Otherwise fallback.\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case 'bestFit':\n              {\n                var _overflowsData$filter2;\n                const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n                  if (hasFallbackAxisSideDirection) {\n                    const currentSideAxis = getSideAxis(d.placement);\n                    return currentSideAxis === initialSideAxis ||\n                    // Create a bias to the `y` side axis due to horizontal\n                    // reading directions favoring greater width.\n                    currentSideAxis === 'y';\n                  }\n                  return true;\n                }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n                if (placement) {\n                  resetPlacement = placement;\n                }\n                break;\n              }\n            case 'initialPlacement':\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\n\nfunction getSideOffsets(overflow, rect) {\n  return {\n    top: overflow.top - rect.height,\n    right: overflow.right - rect.width,\n    bottom: overflow.bottom - rect.height,\n    left: overflow.left - rect.width\n  };\n}\nfunction isAnySideFullyClipped(overflow) {\n  return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'hide',\n    options,\n    async fn(state) {\n      const {\n        rects,\n        platform\n      } = state;\n      const {\n        strategy = 'referenceHidden',\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      switch (strategy) {\n        case 'referenceHidden':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              elementContext: 'reference'\n            });\n            const offsets = getSideOffsets(overflow, rects.reference);\n            return {\n              data: {\n                referenceHiddenOffsets: offsets,\n                referenceHidden: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        case 'escaped':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              altBoundary: true\n            });\n            const offsets = getSideOffsets(overflow, rects.floating);\n            return {\n              data: {\n                escapedOffsets: offsets,\n                escaped: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        default:\n          {\n            return {};\n          }\n      }\n    }\n  };\n};\n\nfunction getBoundingRect(rects) {\n  const minX = min(...rects.map(rect => rect.left));\n  const minY = min(...rects.map(rect => rect.top));\n  const maxX = max(...rects.map(rect => rect.right));\n  const maxY = max(...rects.map(rect => rect.bottom));\n  return {\n    x: minX,\n    y: minY,\n    width: maxX - minX,\n    height: maxY - minY\n  };\n}\nfunction getRectsByLine(rects) {\n  const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n  const groups = [];\n  let prevRect = null;\n  for (let i = 0; i < sortedRects.length; i++) {\n    const rect = sortedRects[i];\n    if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n      groups.push([rect]);\n    } else {\n      groups[groups.length - 1].push(rect);\n    }\n    prevRect = rect;\n  }\n  return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'inline',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        elements,\n        rects,\n        platform,\n        strategy\n      } = state;\n      // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n      // ClientRect's bounds, despite the event listener being triggered. A\n      // padding of 2 seems to handle this issue.\n      const {\n        padding = 2,\n        x,\n        y\n      } = evaluate(options, state);\n      const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n\n      // No rects (e.g. a hidden or detached reference, or a collapsed range) —\n      // keep the existing reference rect rather than resetting to an invalid\n      // one with non-finite values.\n      if (!nativeClientRects.length) {\n        return {};\n      }\n      const clientRects = getRectsByLine(nativeClientRects);\n      const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n      const paddingObject = getPaddingObject(padding);\n      function getBoundingClientRect() {\n        // There are two rects and they are disjoined.\n        if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {\n          // Find the first rect in which the point is fully inside.\n          return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n        }\n\n        // There are 2 or more connected rects.\n        if (clientRects.length >= 2) {\n          if (getSideAxis(placement) === 'y') {\n            const firstRect = clientRects[0];\n            const lastRect = clientRects[clientRects.length - 1];\n            const isTop = getSide(placement) === 'top';\n            const top = firstRect.top;\n            const bottom = lastRect.bottom;\n            const left = isTop ? firstRect.left : lastRect.left;\n            const right = isTop ? firstRect.right : lastRect.right;\n            return rectToClientRect({\n              x: left,\n              y: top,\n              width: right - left,\n              height: bottom - top\n            });\n          }\n          const isLeftSide = getSide(placement) === 'left';\n          const maxRight = max(...clientRects.map(rect => rect.right));\n          const minLeft = min(...clientRects.map(rect => rect.left));\n          const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n          const top = measureRects[0].top;\n          const bottom = measureRects[measureRects.length - 1].bottom;\n          return rectToClientRect({\n            x: minLeft,\n            y: top,\n            width: maxRight - minLeft,\n            height: bottom - top\n          });\n        }\n        return fallback;\n      }\n      const resetRects = await platform.getElementRects({\n        reference: {\n          getBoundingClientRect\n        },\n        floating: elements.floating,\n        strategy\n      });\n      if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n        return {\n          reset: {\n            rects: resetRects\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform,\n    elements\n  } = state;\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === 'y';\n  const mainAxisMulti = originSides.has(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n\n  // eslint-disable-next-line prefer-const\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === 'number' ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: rawValue.mainAxis || 0,\n    crossAxis: rawValue.crossAxis || 0,\n    alignmentAxis: rawValue.alignmentAxis\n  };\n  if (alignment && typeof alignmentAxis === 'number') {\n    crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: 'offset',\n    options,\n    async fn(state) {\n      var _middlewareData$offse, _middlewareData$arrow;\n      const {\n        x,\n        y,\n        placement,\n        middlewareData\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n\n      // If the placement is the same and the arrow caused an alignment offset\n      // then we don't need to change the positioning coordinates.\n      if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: {\n          ...diffCoords,\n          placement\n        }\n      };\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'shift',\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement,\n        platform\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: _ref => {\n            let {\n              x,\n              y\n            } = _ref;\n            return {\n              x,\n              y\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);\n      if (checkMainAxis) {\n        mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);\n      }\n      if (checkCrossAxis) {\n        crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y,\n          enabled: {\n            [mainAxis]: checkMainAxis,\n            [crossAxis]: checkCrossAxis\n          }\n        }\n      };\n    }\n  };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    options,\n    fn(state) {\n      var _rawOffset$mainAxis, _rawOffset$crossAxis;\n      const {\n        x,\n        y,\n        placement,\n        rects,\n        middlewareData\n      } = state;\n      const {\n        offset = 0,\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const rawOffset = evaluate(offset, state);\n      const computedOffset = typeof rawOffset === 'number' ? {\n        mainAxis: rawOffset,\n        crossAxis: 0\n      } : {\n        mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,\n        crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0\n      };\n      if (checkMainAxis) {\n        const len = mainAxis === 'y' ? 'height' : 'width';\n        const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n        const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n        if (mainAxisCoord < limitMin) {\n          mainAxisCoord = limitMin;\n        } else if (mainAxisCoord > limitMax) {\n          mainAxisCoord = limitMax;\n        }\n      }\n      if (checkCrossAxis) {\n        var _middlewareData$offse, _middlewareData$offse2;\n        const len = mainAxis === 'y' ? 'width' : 'height';\n        const isOriginSide = originSides.has(getSide(placement));\n        const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n        const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n        if (crossAxisCoord < limitMin) {\n          crossAxisCoord = limitMin;\n        } else if (crossAxisCoord > limitMax) {\n          crossAxisCoord = limitMax;\n        }\n      }\n      return {\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      };\n    }\n  };\n};\n\n// Method syntax keeps callback parameters bivariant, but expressing the\n// explicit `| undefined` required by `exactOptionalPropertyTypes` needs\n// property syntax, which is contravariant under `strictFunctionTypes`.\n// Extracting the function from a method position restores that bivariance so\n// consumers can still assign callbacks with narrower parameter types.\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'size',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        rects,\n        platform,\n        elements\n      } = state;\n      const {\n        apply = () => {},\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const side = getSide(placement);\n      const alignment = getAlignment(placement);\n      const isYAxis = getSideAxis(placement) === 'y';\n      const {\n        width,\n        height\n      } = rects.floating;\n      let heightSide;\n      let widthSide;\n      if (side === 'top' || side === 'bottom') {\n        heightSide = side;\n        widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n      } else {\n        widthSide = side;\n        heightSide = alignment === 'end' ? 'top' : 'bottom';\n      }\n      const maximumClippingHeight = height - overflow.top - overflow.bottom;\n      const maximumClippingWidth = width - overflow.left - overflow.right;\n      const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n      const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n      const shiftData = state.middlewareData.shift;\n      const noShift = !shiftData;\n      let availableHeight = overflowAvailableHeight;\n      let availableWidth = overflowAvailableWidth;\n      if (shiftData != null && shiftData.enabled.x) {\n        availableWidth = maximumClippingWidth;\n      }\n      if (shiftData != null && shiftData.enabled.y) {\n        availableHeight = maximumClippingHeight;\n      }\n      if (noShift && !alignment) {\n        if (isYAxis) {\n          availableWidth = width - 2 * max(overflow.left, overflow.right);\n        } else {\n          availableHeight = height - 2 * max(overflow.top, overflow.bottom);\n        }\n      }\n      await apply({\n        ...state,\n        availableWidth,\n        availableHeight\n      });\n      const nextDimensions = await platform.getDimensions(elements.floating);\n      if (width !== nextDimensions.width || height !== nextDimensions.height) {\n        return {\n          reset: {\n            rects: true\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n  return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || '').toLowerCase();\n  }\n  // Mocked nodes in testing environments may not be instances of Node. By\n  // returning `#document` an infinite loop won't occur.\n  // https://github.com/floating-ui/floating-ui/issues/2317\n  return '#document';\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n  return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n  try {\n    if (element.matches(':popover-open')) {\n      return true;\n    }\n  } catch (_e) {\n    // no-op\n  }\n  try {\n    return element.matches(':modal');\n  } catch (_e) {\n    return false;\n  }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n  const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n  return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else if (isTopLayer(currentNode)) {\n      return null;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (isWebKitValue == null) {\n    isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n  }\n  return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n  return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.scrollX,\n    scrollTop: element.scrollY\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === 'html') {\n    return node;\n  }\n  const result =\n  // Step into the shadow DOM of the parent of a slotted node.\n  node.assignedSlot ||\n  // DOM Element detected.\n  node.parentNode ||\n  // ShadowRoot detected.\n  isShadowRoot(node) && node.host ||\n  // Fallback.\n  getDocumentElement(node);\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return (node.ownerDocument || node).body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    const frameElement = getFrameElement(win);\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n  } else {\n    return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n  }\n}\nfunction getFrameElement(win) {\n  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n  const css = getComputedStyle$1(element);\n  // In testing environments, the `width` and `height` properties are empty\n  // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\n\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n\n  // 0, NaN, or Infinity should always fallback to 1.\n\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement && offsetParent) {\n    const win = getWindow(domElement);\n    const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentWin = win;\n    let currentIFrame = getFrameElement(currentWin);\n    while (currentIFrame && offsetWin !== currentWin) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle$1(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentWin = getWindow(currentIFrame);\n      currentIFrame = getFrameElement(currentWin);\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n  const leftScroll = getNodeScroll(element).scrollLeft;\n  if (!rect) {\n    return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n  }\n  return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n  const htmlRect = documentElement.getBoundingClientRect();\n  const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n  const y = htmlRect.top + scroll.scrollTop;\n  return {\n    x,\n    y\n  };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isFixed = strategy === 'fixed';\n  const documentElement = getDocumentElement(offsetParent);\n  const topLayer = elements ? isTopLayer(elements.floating) : false;\n  if (offsetParent === documentElement || topLayer && isFixed) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n  };\n}\n\nfunction getClientRects(element) {\n  return element.getClientRects ? Array.from(element.getClientRects()) : [];\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(html) {\n  const scroll = getNodeScroll(html);\n  const body = html.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(html);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle$1(body).direction === 'rtl') {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy, rootBoundary) {\n  if (rootBoundary === void 0) {\n    rootBoundary = 'viewport';\n  }\n  const isLayoutViewport = rootBoundary === 'layoutViewport';\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    // Client coordinates are relative to the layout viewport, except in\n    // WebKit with an `absolute` strategy, where they are relative to the\n    // visual viewport.\n    const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';\n    if (isLayoutViewport) {\n      if (!layoutRelativeClientCoords) {\n        x = -visualViewport.offsetLeft;\n        y = -visualViewport.offsetTop;\n      }\n    } else {\n      width = visualViewport.width;\n      height = visualViewport.height;\n      if (layoutRelativeClientCoords) {\n        x = visualViewport.offsetLeft;\n        y = visualViewport.offsetTop;\n      }\n    }\n  }\n  const windowScrollbarX = getWindowScrollBarX(html);\n  // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks\n  // the visual width but isn't reflected in `html.clientWidth`, so subtract it.\n  // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also\n  // reserves an empty inline-start gutter that clips nothing, so exclude just\n  // the one scrollbar-side gutter — halve the measured (two-gutter) total. A\n  // left-side scrollbar (`windowScrollbarX > 0`) is already handled by\n  // `getHTMLOffset`/`visualViewport.width`; skip it here.\n  if (windowScrollbarX <= 0) {\n    const doc = html.ownerDocument;\n    const body = doc.body;\n    const bodyStyles = getComputedStyle(body);\n    const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n    const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n    const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;\n    if (gutter <= SCROLLBAR_MAX) {\n      width -= gutter;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = getScale(element);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {\n    rect = getViewportRect(element, strategy, clippingAncestor);\n  } else if (clippingAncestor === 'document') {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y,\n      width: clippingAncestor.width,\n      height: clippingAncestor.height\n    };\n  }\n  return rectToClientRect(rect);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n  let lastKeptComputedStyle = null;\n  const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle$1(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    // Position of the containing block chain below the current node. A fixed\n    // element whose containing block hasn't been found yet is a fixed chain.\n    const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';\n\n    // A non-containing ancestor does not clip the element when the chain\n    // below it escapes it: a fixed chain escapes all ancestors up to the\n    // next containing block, an absolute chain escapes static ancestors.\n    const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');\n    if (shouldDropCurrentNode) {\n      // Drop non-containing blocks.\n      result = result.filter(ancestor => ancestor !== currentNode);\n    } else {\n      // The kept node carries the chain position for the next iteration.\n      lastKeptComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);\n  let top = firstRect.top;\n  let right = firstRect.right;\n  let bottom = firstRect.bottom;\n  let left = firstRect.left;\n  for (let i = 1; i < clippingAncestors.length; i++) {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);\n    top = max(rect.top, top);\n    right = min(rect.right, right);\n    bottom = min(rect.bottom, bottom);\n    left = max(rect.left, left);\n  }\n  return {\n    width: right - left,\n    height: bottom - top,\n    x: left,\n    y: top\n  };\n}\n\nfunction getDimensions(element) {\n  const {\n    width,\n    height\n  } = getCssDimensions(element);\n  return {\n    width,\n    height\n  };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === 'fixed';\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n\n  // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n  // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n  if (!isOffsetParentAnElement && documentElement) {\n    offsets.x = getWindowScrollBarX(documentElement);\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n  return {\n    x,\n    y,\n    width: rect.width,\n    height: rect.height\n  };\n}\n\nfunction isStaticPositioned(element) {\n  return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  let rawOffsetParent = element.offsetParent;\n\n  // Firefox returns the <html> element as the offsetParent if it's non-static,\n  // while Chrome and Safari return the <body> element. The <body> element must\n  // be used to perform the correct calculations even if the <html> element is\n  // non-static.\n  if (getDocumentElement(element) === rawOffsetParent) {\n    rawOffsetParent = rawOffsetParent.ownerDocument.body;\n  }\n  return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n  const win = getWindow(element);\n  if (isTopLayer(element)) {\n    return win;\n  }\n  if (!isHTMLElement(element)) {\n    let svgOffsetParent = getParentNode(element);\n    while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n      if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n        return svgOffsetParent;\n      }\n      svgOffsetParent = getParentNode(svgOffsetParent);\n    }\n    return win;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n    return win;\n  }\n  return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  const floatingDimensions = await getDimensionsFn(data.floating);\n  return {\n    reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      width: floatingDimensions.width,\n      height: floatingDimensions.height\n    }\n  };\n};\n\nfunction isRTL(element) {\n  return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n  return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove, ancestorResize) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    var _io;\n    clearTimeout(timeoutId);\n    (_io = io) == null || _io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const elementRectForRootMargin = element.getBoundingClientRect();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = elementRectForRootMargin;\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n\n      // The entry is a snapshot, so the reference may have moved since the\n      // intersection was computed (under performance constraints, or between\n      // consecutive frames of a multi-frame layout shift). The reported ratio\n      // and the observed area are stale in that case and cannot be trusted to\n      // detect subsequent movement, so refresh regardless of the ratio.\n      if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n        return refresh();\n      }\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          // If the reference is clipped in place, the ratio is 0. Throttle\n          // the refresh to prevent an infinite loop of updates.\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 1000);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n\n    // Older browsers don't support a `document` as the root and will throw an\n    // error.\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (_e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  const win = getWindow(element);\n  // The window is a resize ancestor, so when `ancestorResize` is enabled its\n  // listener already runs the update on resize. Here we only need to rebuild\n  // the `IntersectionObserver` for the new root size, skipping a redundant\n  // update. When `ancestorResize` is disabled, this becomes the sole update.\n  const handleResize = () => refresh(ancestorResize);\n  win.addEventListener('resize', handleResize);\n  refresh(true);\n  return () => {\n    win.removeEventListener('resize', handleResize);\n    cleanup();\n  };\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === 'function',\n    layoutShift = typeof IntersectionObserver === 'function',\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];\n  ancestors.forEach(ancestor => {\n    ancestorScroll && ancestor.addEventListener('scroll', update);\n    ancestorResize && ancestor.addEventListener('resize', update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver(_ref => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {\n        // Prevent update loops when using the `size` middleware.\n        // https://github.com/floating-ui/floating-ui/issues/1740\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          var _resizeObserver;\n          (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    if (floating) {\n      resizeObserver.observe(floating);\n    }\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    var _resizeObserver2;\n    ancestors.forEach(ancestor => {\n      ancestorScroll && ancestor.removeEventListener('scroll', update);\n      ancestorResize && ancestor.removeEventListener('resize', update);\n    });\n    cleanupIo == null || cleanupIo();\n    (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n  // This caches the expensive `getClippingElementAncestors` function so that\n  // multiple lifecycle resets re-use the same result. It only lives for a\n  // single call. If other functions become expensive, we can add them as well.\n  const cache = new Map();\n  const mergedOptions = options != null ? options : {};\n  const platformWithCache = {\n    ...platform,\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition$1(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n  if (a === b) {\n    return true;\n  }\n  if (typeof a !== typeof b) {\n    return false;\n  }\n  if (typeof a === 'function' && a.toString() === b.toString()) {\n    return true;\n  }\n  let length;\n  let i;\n  let keys;\n  if (a && b && typeof a === 'object') {\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length !== b.length) return false;\n      for (i = length; i-- !== 0;) {\n        if (!deepEqual(a[i], b[i])) {\n          return false;\n        }\n      }\n      return true;\n    }\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) {\n      return false;\n    }\n    for (i = length; i-- !== 0;) {\n      if (!{}.hasOwnProperty.call(b, keys[i])) {\n        return false;\n      }\n    }\n    for (i = length; i-- !== 0;) {\n      const key = keys[i];\n      if (key === '_owner' && a.$$typeof) {\n        continue;\n      }\n      if (!deepEqual(a[key], b[key])) {\n        return false;\n      }\n    }\n    return true;\n  }\n  return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n  if (typeof window === 'undefined') {\n    return 1;\n  }\n  const win = element.ownerDocument.defaultView || window;\n  return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n  const dpr = getDPR(element);\n  return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n  const ref = React.useRef(value);\n  index(() => {\n    ref.current = value;\n  });\n  return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    placement = 'bottom',\n    strategy = 'absolute',\n    middleware = [],\n    platform,\n    elements: {\n      reference: externalReference,\n      floating: externalFloating\n    } = {},\n    transform = true,\n    whileElementsMounted,\n    open\n  } = options;\n  const [data, setData] = React.useState({\n    x: 0,\n    y: 0,\n    strategy,\n    placement,\n    middlewareData: {},\n    isPositioned: false\n  });\n  const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n  if (!deepEqual(latestMiddleware, middleware)) {\n    setLatestMiddleware(middleware);\n  }\n  const [_reference, _setReference] = React.useState(null);\n  const [_floating, _setFloating] = React.useState(null);\n  const setReference = React.useCallback(node => {\n    if (node !== referenceRef.current) {\n      referenceRef.current = node;\n      _setReference(node);\n    }\n  }, []);\n  const setFloating = React.useCallback(node => {\n    if (node !== floatingRef.current) {\n      floatingRef.current = node;\n      _setFloating(node);\n    }\n  }, []);\n  const referenceEl = externalReference || _reference;\n  const floatingEl = externalFloating || _floating;\n  const referenceRef = React.useRef(null);\n  const floatingRef = React.useRef(null);\n  const dataRef = React.useRef(data);\n  const hasWhileElementsMounted = whileElementsMounted != null;\n  const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n  const platformRef = useLatestRef(platform);\n  const openRef = useLatestRef(open);\n  const update = React.useCallback(() => {\n    if (!referenceRef.current || !floatingRef.current) {\n      return;\n    }\n    const config = {\n      placement,\n      strategy,\n      middleware: latestMiddleware\n    };\n    if (platformRef.current) {\n      config.platform = platformRef.current;\n    }\n    computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n      const fullData = {\n        ...data,\n        // The floating element's position may be recomputed while it's closed\n        // but still mounted (such as when transitioning out). To ensure\n        // `isPositioned` will be `false` initially on the next open, avoid\n        // setting it to `true` when `open === false` (must be specified).\n        isPositioned: openRef.current !== false\n      };\n      if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n        dataRef.current = fullData;\n        ReactDOM.flushSync(() => {\n          setData(fullData);\n        });\n      }\n    });\n  }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n  index(() => {\n    if (open === false && dataRef.current.isPositioned) {\n      dataRef.current.isPositioned = false;\n      setData(data => ({\n        ...data,\n        isPositioned: false\n      }));\n    }\n  }, [open]);\n  const isMountedRef = React.useRef(false);\n  index(() => {\n    isMountedRef.current = true;\n    return () => {\n      isMountedRef.current = false;\n    };\n  }, []);\n  index(() => {\n    if (referenceEl) referenceRef.current = referenceEl;\n    if (floatingEl) floatingRef.current = floatingEl;\n    if (referenceEl && floatingEl) {\n      if (whileElementsMountedRef.current) {\n        return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n      }\n      update();\n    }\n  }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n  const refs = React.useMemo(() => ({\n    reference: referenceRef,\n    floating: floatingRef,\n    setReference,\n    setFloating\n  }), [setReference, setFloating]);\n  const elements = React.useMemo(() => ({\n    reference: referenceEl,\n    floating: floatingEl\n  }), [referenceEl, floatingEl]);\n  const floatingStyles = React.useMemo(() => {\n    const initialStyles = {\n      position: strategy,\n      left: 0,\n      top: 0\n    };\n    if (!elements.floating) {\n      return initialStyles;\n    }\n    const x = roundByDPR(elements.floating, data.x);\n    const y = roundByDPR(elements.floating, data.y);\n    if (transform) {\n      return {\n        ...initialStyles,\n        transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n        ...(getDPR(elements.floating) >= 1.5 && {\n          willChange: 'transform'\n        })\n      };\n    }\n    return {\n      position: strategy,\n      left: x,\n      top: y\n    };\n  }, [strategy, transform, elements.floating, data.x, data.y]);\n  return React.useMemo(() => ({\n    ...data,\n    update,\n    refs,\n    elements,\n    floatingStyles\n  }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n  function isRef(value) {\n    return {}.hasOwnProperty.call(value, 'current');\n  }\n  return {\n    name: 'arrow',\n    options,\n    fn(state) {\n      const {\n        element,\n        padding\n      } = typeof options === 'function' ? options(state) : options;\n      if (element && isRef(element)) {\n        if (element.current != null) {\n          return arrow$2({\n            element: element.current,\n            padding\n          }).fn(state);\n        }\n        return {};\n      }\n      if (element) {\n        return arrow$2({\n          element,\n          padding\n        }).fn(state);\n      }\n      return {};\n    }\n  };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n  const result = offset$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n  const result = shift$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n  const result = limitShift$1(options);\n  return {\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n  const result = flip$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n  const result = size$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n  const result = autoPlacement$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n  const result = hide$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n  const result = inline$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n  const result = arrow$1(options);\n  return {\n    name: result.name,\n    fn: result.fn,\n    options: [options, deps]\n  };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n","import { isShadowRoot, isHTMLElement } from '@floating-ui/utils/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport { floor } from '@floating-ui/utils';\nimport { tabbable } from 'tabbable';\n\n// Avoid Chrome DevTools blue warning.\nfunction getPlatform() {\n  const uaData = navigator.userAgentData;\n  if (uaData != null && uaData.platform) {\n    return uaData.platform;\n  }\n  return navigator.platform;\n}\nfunction getUserAgent() {\n  const uaData = navigator.userAgentData;\n  if (uaData && Array.isArray(uaData.brands)) {\n    return uaData.brands.map(_ref => {\n      let {\n        brand,\n        version\n      } = _ref;\n      return brand + \"/\" + version;\n    }).join(' ');\n  }\n  return navigator.userAgent;\n}\nfunction isSafari() {\n  // Chrome DevTools does not complain about navigator.vendor\n  return /apple/i.test(navigator.vendor);\n}\nfunction isAndroid() {\n  const re = /android/i;\n  return re.test(getPlatform()) || re.test(getUserAgent());\n}\nfunction isMac() {\n  return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\n}\nfunction isJSDOM() {\n  return getUserAgent().includes('jsdom/');\n}\n\nconst FOCUSABLE_ATTRIBUTE = 'data-floating-ui-focusable';\nconst TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nconst ARROW_LEFT = 'ArrowLeft';\nconst ARROW_RIGHT = 'ArrowRight';\nconst ARROW_UP = 'ArrowUp';\nconst ARROW_DOWN = 'ArrowDown';\n\nfunction activeElement(doc) {\n  let activeElement = doc.activeElement;\n  while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {\n    var _activeElement;\n    activeElement = activeElement.shadowRoot.activeElement;\n  }\n  return activeElement;\n}\nfunction contains(parent, child) {\n  if (!parent || !child) {\n    return false;\n  }\n  const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();\n\n  // First, attempt with faster native method\n  if (parent.contains(child)) {\n    return true;\n  }\n\n  // then fallback to custom implementation with Shadow DOM support\n  if (rootNode && isShadowRoot(rootNode)) {\n    let next = child;\n    while (next) {\n      if (parent === next) {\n        return true;\n      }\n      // @ts-ignore\n      next = next.parentNode || next.host;\n    }\n  }\n\n  // Give up, the result is false\n  return false;\n}\nfunction getTarget(event) {\n  if ('composedPath' in event) {\n    return event.composedPath()[0];\n  }\n\n  // TS thinks `event` is of type never as it assumes all browsers support\n  // `composedPath()`, but browsers without shadow DOM don't.\n  return event.target;\n}\nfunction isEventTargetWithin(event, node) {\n  if (node == null) {\n    return false;\n  }\n  if ('composedPath' in event) {\n    return event.composedPath().includes(node);\n  }\n\n  // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n  const e = event;\n  return e.target != null && node.contains(e.target);\n}\nfunction isRootElement(element) {\n  return element.matches('html,body');\n}\nfunction getDocument(node) {\n  return (node == null ? void 0 : node.ownerDocument) || document;\n}\nfunction isTypeableElement(element) {\n  return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nfunction isTypeableCombobox(element) {\n  if (!element) return false;\n  return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\nfunction matchesFocusVisible(element) {\n  // We don't want to block focus from working with `visibleOnly`\n  // (JSDOM doesn't match `:focus-visible` when the element has `:focus`)\n  if (!element || isJSDOM()) return true;\n  try {\n    return element.matches(':focus-visible');\n  } catch (_e) {\n    return true;\n  }\n}\nfunction getFloatingFocusElement(floatingElement) {\n  if (!floatingElement) {\n    return null;\n  }\n  // Try to find the element that has `{...getFloatingProps()}` spread on it.\n  // This indicates the floating element is acting as a positioning wrapper, and\n  // so focus should be managed on the child element with the event handlers and\n  // aria props.\n  return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(\"[\" + FOCUSABLE_ATTRIBUTE + \"]\") || floatingElement;\n}\n\nfunction getNodeChildren(nodes, id, onlyOpenChildren) {\n  if (onlyOpenChildren === void 0) {\n    onlyOpenChildren = true;\n  }\n  const directChildren = nodes.filter(node => {\n    var _node$context;\n    return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));\n  });\n  return directChildren.flatMap(child => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);\n}\nfunction getDeepestNode(nodes, id) {\n  let deepestNodeId;\n  let maxDepth = -1;\n  function findDeepest(nodeId, depth) {\n    if (depth > maxDepth) {\n      deepestNodeId = nodeId;\n      maxDepth = depth;\n    }\n    const children = getNodeChildren(nodes, nodeId);\n    children.forEach(child => {\n      findDeepest(child.id, depth + 1);\n    });\n  }\n  findDeepest(id, 0);\n  return nodes.find(node => node.id === deepestNodeId);\n}\nfunction getNodeAncestors(nodes, id) {\n  var _nodes$find;\n  let allAncestors = [];\n  let currentParentId = (_nodes$find = nodes.find(node => node.id === id)) == null ? void 0 : _nodes$find.parentId;\n  while (currentParentId) {\n    const currentNode = nodes.find(node => node.id === currentParentId);\n    currentParentId = currentNode == null ? void 0 : currentNode.parentId;\n    if (currentNode) {\n      allAncestors = allAncestors.concat(currentNode);\n    }\n  }\n  return allAncestors;\n}\n\nfunction stopEvent(event) {\n  event.preventDefault();\n  event.stopPropagation();\n}\nfunction isReactEvent(event) {\n  return 'nativeEvent' in event;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/utils/src/isVirtualEvent.ts\nfunction isVirtualClick(event) {\n  // FIXME: Firefox is now emitting a deprecation warning for `mozInputSource`.\n  // Try to find a workaround for this. `react-aria` source still has the check.\n  if (event.mozInputSource === 0 && event.isTrusted) {\n    return true;\n  }\n  if (isAndroid() && event.pointerType) {\n    return event.type === 'click' && event.buttons === 1;\n  }\n  return event.detail === 0 && !event.pointerType;\n}\nfunction isVirtualPointerEvent(event) {\n  if (isJSDOM()) return false;\n  return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n  // iOS VoiceOver returns 0.333• for width/height.\n  event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nfunction isMouseLikePointerType(pointerType, strict) {\n  // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n  // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n  const values = ['mouse', 'pen'];\n  if (!strict) {\n    values.push('', undefined);\n  }\n  return values.includes(pointerType);\n}\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nconst SafeReact = {\n  ...React\n};\n\nfunction useLatestRef(value) {\n  const ref = React.useRef(value);\n  index(() => {\n    ref.current = value;\n  });\n  return ref;\n}\nconst useInsertionEffect = SafeReact.useInsertionEffect;\nconst useSafeInsertionEffect = useInsertionEffect || (fn => fn());\nfunction useEffectEvent(callback) {\n  const ref = React.useRef(() => {\n    if (process.env.NODE_ENV !== \"production\") {\n      throw new Error('Cannot call an event handler while rendering.');\n    }\n  });\n  useSafeInsertionEffect(() => {\n    ref.current = callback;\n  });\n  return React.useCallback(function () {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    return ref.current == null ? void 0 : ref.current(...args);\n  }, []);\n}\n\nfunction isDifferentGridRow(index, cols, prevRow) {\n  return Math.floor(index / cols) !== prevRow;\n}\nfunction isIndexOutOfListBounds(listRef, index) {\n  return index < 0 || index >= listRef.current.length;\n}\nfunction getMinListIndex(listRef, disabledIndices) {\n  return findNonDisabledListIndex(listRef, {\n    disabledIndices\n  });\n}\nfunction getMaxListIndex(listRef, disabledIndices) {\n  return findNonDisabledListIndex(listRef, {\n    decrement: true,\n    startingIndex: listRef.current.length,\n    disabledIndices\n  });\n}\nfunction findNonDisabledListIndex(listRef, _temp) {\n  let {\n    startingIndex = -1,\n    decrement = false,\n    disabledIndices,\n    amount = 1\n  } = _temp === void 0 ? {} : _temp;\n  let index = startingIndex;\n  do {\n    index += decrement ? -amount : amount;\n  } while (index >= 0 && index <= listRef.current.length - 1 && isListIndexDisabled(listRef, index, disabledIndices));\n  return index;\n}\nfunction getGridNavigatedIndex(listRef, _ref) {\n  let {\n    event,\n    orientation,\n    loop,\n    rtl,\n    cols,\n    disabledIndices,\n    minIndex,\n    maxIndex,\n    prevIndex,\n    stopEvent: stop = false\n  } = _ref;\n  let nextIndex = prevIndex;\n  if (event.key === ARROW_UP) {\n    stop && stopEvent(event);\n    if (prevIndex === -1) {\n      nextIndex = maxIndex;\n    } else {\n      nextIndex = findNonDisabledListIndex(listRef, {\n        startingIndex: nextIndex,\n        amount: cols,\n        decrement: true,\n        disabledIndices\n      });\n      if (loop && (prevIndex - cols < minIndex || nextIndex < 0)) {\n        const col = prevIndex % cols;\n        const maxCol = maxIndex % cols;\n        const offset = maxIndex - (maxCol - col);\n        if (maxCol === col) {\n          nextIndex = maxIndex;\n        } else {\n          nextIndex = maxCol > col ? offset : offset - cols;\n        }\n      }\n    }\n    if (isIndexOutOfListBounds(listRef, nextIndex)) {\n      nextIndex = prevIndex;\n    }\n  }\n  if (event.key === ARROW_DOWN) {\n    stop && stopEvent(event);\n    if (prevIndex === -1) {\n      nextIndex = minIndex;\n    } else {\n      nextIndex = findNonDisabledListIndex(listRef, {\n        startingIndex: prevIndex,\n        amount: cols,\n        disabledIndices\n      });\n      if (loop && prevIndex + cols > maxIndex) {\n        nextIndex = findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex % cols - cols,\n          amount: cols,\n          disabledIndices\n        });\n      }\n    }\n    if (isIndexOutOfListBounds(listRef, nextIndex)) {\n      nextIndex = prevIndex;\n    }\n  }\n\n  // Remains on the same row/column.\n  if (orientation === 'both') {\n    const prevRow = floor(prevIndex / cols);\n    if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {\n      stop && stopEvent(event);\n      if (prevIndex % cols !== cols - 1) {\n        nextIndex = findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex,\n          disabledIndices\n        });\n        if (loop && isDifferentGridRow(nextIndex, cols, prevRow)) {\n          nextIndex = findNonDisabledListIndex(listRef, {\n            startingIndex: prevIndex - prevIndex % cols - 1,\n            disabledIndices\n          });\n        }\n      } else if (loop) {\n        nextIndex = findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex - prevIndex % cols - 1,\n          disabledIndices\n        });\n      }\n      if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n        nextIndex = prevIndex;\n      }\n    }\n    if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {\n      stop && stopEvent(event);\n      if (prevIndex % cols !== 0) {\n        nextIndex = findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex,\n          decrement: true,\n          disabledIndices\n        });\n        if (loop && isDifferentGridRow(nextIndex, cols, prevRow)) {\n          nextIndex = findNonDisabledListIndex(listRef, {\n            startingIndex: prevIndex + (cols - prevIndex % cols),\n            decrement: true,\n            disabledIndices\n          });\n        }\n      } else if (loop) {\n        nextIndex = findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex + (cols - prevIndex % cols),\n          decrement: true,\n          disabledIndices\n        });\n      }\n      if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n        nextIndex = prevIndex;\n      }\n    }\n    const lastRow = floor(maxIndex / cols) === prevRow;\n    if (isIndexOutOfListBounds(listRef, nextIndex)) {\n      if (loop && lastRow) {\n        nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(listRef, {\n          startingIndex: prevIndex - prevIndex % cols - 1,\n          disabledIndices\n        });\n      } else {\n        nextIndex = prevIndex;\n      }\n    }\n  }\n  return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nfunction createGridCellMap(sizes, cols, dense) {\n  const cellMap = [];\n  let startIndex = 0;\n  sizes.forEach((_ref2, index) => {\n    let {\n      width,\n      height\n    } = _ref2;\n    if (width > cols) {\n      if (process.env.NODE_ENV !== \"production\") {\n        throw new Error(\"[Floating UI]: Invalid grid - item width at index \" + index + \" is greater than grid columns\");\n      }\n    }\n    let itemPlaced = false;\n    if (dense) {\n      startIndex = 0;\n    }\n    while (!itemPlaced) {\n      const targetCells = [];\n      for (let i = 0; i < width; i++) {\n        for (let j = 0; j < height; j++) {\n          targetCells.push(startIndex + i + j * cols);\n        }\n      }\n      if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n        targetCells.forEach(cell => {\n          cellMap[cell] = index;\n        });\n        itemPlaced = true;\n      } else {\n        startIndex++;\n      }\n    }\n  });\n\n  // convert into a non-sparse array\n  return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nfunction getGridCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n  if (index === -1) return -1;\n  const firstCellIndex = cellMap.indexOf(index);\n  const sizeItem = sizes[index];\n  switch (corner) {\n    case 'tl':\n      return firstCellIndex;\n    case 'tr':\n      if (!sizeItem) {\n        return firstCellIndex;\n      }\n      return firstCellIndex + sizeItem.width - 1;\n    case 'bl':\n      if (!sizeItem) {\n        return firstCellIndex;\n      }\n      return firstCellIndex + (sizeItem.height - 1) * cols;\n    case 'br':\n      return cellMap.lastIndexOf(index);\n  }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nfunction getGridCellIndices(indices, cellMap) {\n  return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\nfunction isListIndexDisabled(listRef, index, disabledIndices) {\n  if (typeof disabledIndices === 'function') {\n    return disabledIndices(index);\n  } else if (disabledIndices) {\n    return disabledIndices.includes(index);\n  }\n  const element = listRef.current[index];\n  return element == null || element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true';\n}\n\nconst getTabbableOptions = () => ({\n  getShadowRoot: true,\n  displayCheck:\n  // JSDOM does not support the `tabbable` library. To solve this we can\n  // check if `ResizeObserver` is a real function (not polyfilled), which\n  // determines if the current environment is JSDOM-like.\n  typeof ResizeObserver === 'function' && ResizeObserver.toString().includes('[native code]') ? 'full' : 'none'\n});\nfunction getTabbableIn(container, dir) {\n  const list = tabbable(container, getTabbableOptions());\n  const len = list.length;\n  if (len === 0) return;\n  const active = activeElement(getDocument(container));\n  const index = list.indexOf(active);\n  const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n  return list[nextIndex];\n}\nfunction getNextTabbable(referenceElement) {\n  return getTabbableIn(getDocument(referenceElement).body, 1) || referenceElement;\n}\nfunction getPreviousTabbable(referenceElement) {\n  return getTabbableIn(getDocument(referenceElement).body, -1) || referenceElement;\n}\nfunction isOutsideEvent(event, container) {\n  const containerElement = container || event.currentTarget;\n  const relatedTarget = event.relatedTarget;\n  return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nfunction disableFocusInside(container) {\n  const tabbableElements = tabbable(container, getTabbableOptions());\n  tabbableElements.forEach(element => {\n    element.dataset.tabindex = element.getAttribute('tabindex') || '';\n    element.setAttribute('tabindex', '-1');\n  });\n}\nfunction enableFocusInside(container) {\n  const elements = container.querySelectorAll('[data-tabindex]');\n  elements.forEach(element => {\n    const tabindex = element.dataset.tabindex;\n    delete element.dataset.tabindex;\n    if (tabindex) {\n      element.setAttribute('tabindex', tabindex);\n    } else {\n      element.removeAttribute('tabindex');\n    }\n  });\n}\n\nexport { activeElement, contains, createGridCellMap, disableFocusInside, enableFocusInside, findNonDisabledListIndex, getDeepestNode, getDocument, getFloatingFocusElement, getGridCellIndexOfCorner, getGridCellIndices, getGridNavigatedIndex, getMaxListIndex, getMinListIndex, getNextTabbable, getNodeAncestors, getNodeChildren, getPlatform, getPreviousTabbable, getTabbableOptions, getTarget, getUserAgent, isAndroid, isDifferentGridRow, isEventTargetWithin, isIndexOutOfListBounds, isJSDOM, isListIndexDisabled, isMac, isMouseLikePointerType, isOutsideEvent, isReactEvent, isRootElement, isSafari, isTypeableCombobox, isTypeableElement, isVirtualClick, isVirtualPointerEvent, matchesFocusVisible, stopEvent, useEffectEvent, useLatestRef, index as useModernLayoutEffect };\n","import * as React from 'react';\nimport { useModernLayoutEffect, useEffectEvent, getMinListIndex, getMaxListIndex, createGridCellMap, isListIndexDisabled, getGridNavigatedIndex, getGridCellIndexOfCorner, getGridCellIndices, findNonDisabledListIndex, isIndexOutOfListBounds, useLatestRef, getDocument as getDocument$1, isMouseLikePointerType, contains as contains$1, isSafari, enableFocusInside, isOutsideEvent, getPreviousTabbable, getNextTabbable, disableFocusInside, isTypeableCombobox, getFloatingFocusElement, getTabbableOptions, getNodeAncestors, activeElement, getNodeChildren as getNodeChildren$1, stopEvent, getTarget as getTarget$1, isVirtualClick, isVirtualPointerEvent, getPlatform, isTypeableElement, isReactEvent, isRootElement, isEventTargetWithin, matchesFocusVisible, isMac, getDeepestNode, getUserAgent } from '@floating-ui/react/utils';\nimport { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { getComputedStyle, isElement, isShadowRoot, getNodeName, isNode, isHTMLElement, getWindow, isLastTraversableNode, getParentNode, isWebKit } from '@floating-ui/utils/dom';\nimport { tabbable, isTabbable, focusable } from 'tabbable';\nimport * as ReactDOM from 'react-dom';\nimport { getOverflowAncestors, useFloating as useFloating$1, offset } from '@floating-ui/react-dom';\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/react-dom';\nimport { evaluate, max, min, round } from '@floating-ui/utils';\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n * @see https://floating-ui.com/docs/react-utils#usemergerefs\n */\nfunction useMergeRefs(refs) {\n  const cleanupRef = React.useRef(undefined);\n  const refEffect = React.useCallback(instance => {\n    const cleanups = refs.map(ref => {\n      if (ref == null) {\n        return;\n      }\n      if (typeof ref === 'function') {\n        const refCallback = ref;\n        const refCleanup = refCallback(instance);\n        return typeof refCleanup === 'function' ? refCleanup : () => {\n          refCallback(null);\n        };\n      }\n      ref.current = instance;\n      return () => {\n        ref.current = null;\n      };\n    });\n    return () => {\n      cleanups.forEach(refCleanup => refCleanup == null ? void 0 : refCleanup());\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n  return React.useMemo(() => {\n    if (refs.every(ref => ref == null)) {\n      return null;\n    }\n    return value => {\n      if (cleanupRef.current) {\n        cleanupRef.current();\n        cleanupRef.current = undefined;\n      }\n      if (value != null) {\n        cleanupRef.current = refEffect(value);\n      }\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n}\n\nfunction sortByDocumentPosition(a, b) {\n  const position = a.compareDocumentPosition(b);\n  if (position & Node.DOCUMENT_POSITION_FOLLOWING || position & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n    return -1;\n  }\n  if (position & Node.DOCUMENT_POSITION_PRECEDING || position & Node.DOCUMENT_POSITION_CONTAINS) {\n    return 1;\n  }\n  return 0;\n}\nconst FloatingListContext = /*#__PURE__*/React.createContext({\n  register: () => {},\n  unregister: () => {},\n  map: /*#__PURE__*/new Map(),\n  elementsRef: {\n    current: []\n  }\n});\n/**\n * Provides context for a list of items within the floating element.\n * @see https://floating-ui.com/docs/FloatingList\n */\nfunction FloatingList(props) {\n  const {\n    children,\n    elementsRef,\n    labelsRef\n  } = props;\n  const [nodes, setNodes] = React.useState(() => new Set());\n  const register = React.useCallback(node => {\n    setNodes(prevSet => new Set(prevSet).add(node));\n  }, []);\n  const unregister = React.useCallback(node => {\n    setNodes(prevSet => {\n      const set = new Set(prevSet);\n      set.delete(node);\n      return set;\n    });\n  }, []);\n  const map = React.useMemo(() => {\n    const newMap = new Map();\n    const sortedNodes = Array.from(nodes.keys()).sort(sortByDocumentPosition);\n    sortedNodes.forEach((node, index) => {\n      newMap.set(node, index);\n    });\n    return newMap;\n  }, [nodes]);\n  return /*#__PURE__*/jsx(FloatingListContext.Provider, {\n    value: React.useMemo(() => ({\n      register,\n      unregister,\n      map,\n      elementsRef,\n      labelsRef\n    }), [register, unregister, map, elementsRef, labelsRef]),\n    children: children\n  });\n}\n/**\n * Used to register a list item and its index (DOM position) in the\n * `FloatingList`.\n * @see https://floating-ui.com/docs/FloatingList#uselistitem\n */\nfunction useListItem(props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    label\n  } = props;\n  const {\n    register,\n    unregister,\n    map,\n    elementsRef,\n    labelsRef\n  } = React.useContext(FloatingListContext);\n  const [index, setIndex] = React.useState(null);\n  const componentRef = React.useRef(null);\n  const ref = React.useCallback(node => {\n    componentRef.current = node;\n    if (index !== null) {\n      elementsRef.current[index] = node;\n      if (labelsRef) {\n        var _node$textContent;\n        const isLabelDefined = label !== undefined;\n        labelsRef.current[index] = isLabelDefined ? label : (_node$textContent = node == null ? void 0 : node.textContent) != null ? _node$textContent : null;\n      }\n    }\n  }, [index, elementsRef, labelsRef, label]);\n  useModernLayoutEffect(() => {\n    const node = componentRef.current;\n    if (node) {\n      register(node);\n      return () => {\n        unregister(node);\n      };\n    }\n  }, [register, unregister]);\n  useModernLayoutEffect(() => {\n    const index = componentRef.current ? map.get(componentRef.current) : null;\n    if (index != null) {\n      setIndex(index);\n    }\n  }, [map]);\n  return React.useMemo(() => ({\n    ref,\n    index: index == null ? -1 : index\n  }), [index, ref]);\n}\n\nconst FOCUSABLE_ATTRIBUTE = 'data-floating-ui-focusable';\nconst ACTIVE_KEY = 'active';\nconst SELECTED_KEY = 'selected';\nconst ARROW_LEFT = 'ArrowLeft';\nconst ARROW_RIGHT = 'ArrowRight';\nconst ARROW_UP = 'ArrowUp';\nconst ARROW_DOWN = 'ArrowDown';\n\nfunction renderJsx(render, computedProps) {\n  if (typeof render === 'function') {\n    return render(computedProps);\n  }\n  if (render) {\n    return /*#__PURE__*/React.cloneElement(render, computedProps);\n  }\n  return /*#__PURE__*/jsx(\"div\", {\n    ...computedProps\n  });\n}\nconst CompositeContext = /*#__PURE__*/React.createContext({\n  activeIndex: 0,\n  onNavigate: () => {}\n});\nconst horizontalKeys = [ARROW_LEFT, ARROW_RIGHT];\nconst verticalKeys = [ARROW_UP, ARROW_DOWN];\nconst allKeys = [...horizontalKeys, ...verticalKeys];\n\n/**\n * Creates a single tab stop whose items are navigated by arrow keys, which\n * provides list navigation outside of floating element contexts.\n *\n * This is useful to enable navigation of a list of items that aren’t part of a\n * floating element. A menubar is an example of a composite, with each reference\n * element being an item.\n * @see https://floating-ui.com/docs/Composite\n */\nconst Composite = /*#__PURE__*/React.forwardRef(function Composite(props, forwardedRef) {\n  const {\n    render,\n    orientation = 'both',\n    loop = true,\n    rtl = false,\n    cols = 1,\n    disabledIndices,\n    activeIndex: externalActiveIndex,\n    onNavigate: externalSetActiveIndex,\n    itemSizes,\n    dense = false,\n    ...domProps\n  } = props;\n  const [internalActiveIndex, internalSetActiveIndex] = React.useState(0);\n  const activeIndex = externalActiveIndex != null ? externalActiveIndex : internalActiveIndex;\n  const onNavigate = useEffectEvent(externalSetActiveIndex != null ? externalSetActiveIndex : internalSetActiveIndex);\n  const elementsRef = React.useRef([]);\n  const renderElementProps = render && typeof render !== 'function' ? render.props : {};\n  const contextValue = React.useMemo(() => ({\n    activeIndex,\n    onNavigate\n  }), [activeIndex, onNavigate]);\n  const isGrid = cols > 1;\n  function handleKeyDown(event) {\n    if (!allKeys.includes(event.key)) return;\n    let nextIndex = activeIndex;\n    const minIndex = getMinListIndex(elementsRef, disabledIndices);\n    const maxIndex = getMaxListIndex(elementsRef, disabledIndices);\n    const horizontalEndKey = rtl ? ARROW_LEFT : ARROW_RIGHT;\n    const horizontalStartKey = rtl ? ARROW_RIGHT : ARROW_LEFT;\n    if (isGrid) {\n      const sizes = itemSizes || Array.from({\n        length: elementsRef.current.length\n      }, () => ({\n        width: 1,\n        height: 1\n      }));\n      // To calculate movements on the grid, we use hypothetical cell indices\n      // as if every item was 1x1, then convert back to real indices.\n      const cellMap = createGridCellMap(sizes, cols, dense);\n      const minGridIndex = cellMap.findIndex(index => index != null && !isListIndexDisabled(elementsRef, index, disabledIndices));\n      // last enabled index\n      const maxGridIndex = cellMap.reduce((foundIndex, index, cellIndex) => index != null && !isListIndexDisabled(elementsRef, index, disabledIndices) ? cellIndex : foundIndex, -1);\n      const maybeNextIndex = cellMap[getGridNavigatedIndex({\n        current: cellMap.map(itemIndex => itemIndex ? elementsRef.current[itemIndex] : null)\n      }, {\n        event,\n        orientation,\n        loop,\n        rtl,\n        cols,\n        // treat undefined (empty grid spaces) as disabled indices so we\n        // don't end up in them\n        disabledIndices: getGridCellIndices([...((typeof disabledIndices !== 'function' ? disabledIndices : null) || elementsRef.current.map((_, index) => isListIndexDisabled(elementsRef, index, disabledIndices) ? index : undefined)), undefined], cellMap),\n        minIndex: minGridIndex,\n        maxIndex: maxGridIndex,\n        prevIndex: getGridCellIndexOfCorner(activeIndex > maxIndex ? minIndex : activeIndex, sizes, cellMap, cols,\n        // use a corner matching the edge closest to the direction we're\n        // moving in so we don't end up in the same item. Prefer\n        // top/left over bottom/right.\n        event.key === ARROW_DOWN ? 'bl' : event.key === horizontalEndKey ? 'tr' : 'tl')\n      })];\n      if (maybeNextIndex != null) {\n        nextIndex = maybeNextIndex;\n      }\n    }\n    const toEndKeys = {\n      horizontal: [horizontalEndKey],\n      vertical: [ARROW_DOWN],\n      both: [horizontalEndKey, ARROW_DOWN]\n    }[orientation];\n    const toStartKeys = {\n      horizontal: [horizontalStartKey],\n      vertical: [ARROW_UP],\n      both: [horizontalStartKey, ARROW_UP]\n    }[orientation];\n    const preventedKeys = isGrid ? allKeys : {\n      horizontal: horizontalKeys,\n      vertical: verticalKeys,\n      both: allKeys\n    }[orientation];\n    if (nextIndex === activeIndex && [...toEndKeys, ...toStartKeys].includes(event.key)) {\n      if (loop && nextIndex === maxIndex && toEndKeys.includes(event.key)) {\n        nextIndex = minIndex;\n      } else if (loop && nextIndex === minIndex && toStartKeys.includes(event.key)) {\n        nextIndex = maxIndex;\n      } else {\n        nextIndex = findNonDisabledListIndex(elementsRef, {\n          startingIndex: nextIndex,\n          decrement: toStartKeys.includes(event.key),\n          disabledIndices\n        });\n      }\n    }\n    if (nextIndex !== activeIndex && !isIndexOutOfListBounds(elementsRef, nextIndex)) {\n      var _elementsRef$current$;\n      event.stopPropagation();\n      if (preventedKeys.includes(event.key)) {\n        event.preventDefault();\n      }\n      onNavigate(nextIndex);\n      (_elementsRef$current$ = elementsRef.current[nextIndex]) == null || _elementsRef$current$.focus();\n    }\n  }\n  const computedProps = {\n    ...domProps,\n    ...renderElementProps,\n    ref: forwardedRef,\n    'aria-orientation': orientation === 'both' ? undefined : orientation,\n    onKeyDown(e) {\n      domProps.onKeyDown == null || domProps.onKeyDown(e);\n      renderElementProps.onKeyDown == null || renderElementProps.onKeyDown(e);\n      handleKeyDown(e);\n    }\n  };\n  return /*#__PURE__*/jsx(CompositeContext.Provider, {\n    value: contextValue,\n    children: /*#__PURE__*/jsx(FloatingList, {\n      elementsRef: elementsRef,\n      children: renderJsx(render, computedProps)\n    })\n  });\n});\n/**\n * @see https://floating-ui.com/docs/Composite\n */\nconst CompositeItem = /*#__PURE__*/React.forwardRef(function CompositeItem(props, forwardedRef) {\n  const {\n    render,\n    ...domProps\n  } = props;\n  const renderElementProps = render && typeof render !== 'function' ? render.props : {};\n  const {\n    activeIndex,\n    onNavigate\n  } = React.useContext(CompositeContext);\n  const {\n    ref,\n    index\n  } = useListItem();\n  const mergedRef = useMergeRefs([ref, forwardedRef, renderElementProps.ref]);\n  const isActive = activeIndex === index;\n  const computedProps = {\n    ...domProps,\n    ...renderElementProps,\n    ref: mergedRef,\n    tabIndex: isActive ? 0 : -1,\n    'data-active': isActive ? '' : undefined,\n    onFocus(e) {\n      domProps.onFocus == null || domProps.onFocus(e);\n      renderElementProps.onFocus == null || renderElementProps.onFocus(e);\n      onNavigate(index);\n    }\n  };\n  return renderJsx(render, computedProps);\n});\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nconst SafeReact = {\n  ...React\n};\n\nlet serverHandoffComplete = false;\nlet count = 0;\nconst genId = () => // Ensure the id is unique with multiple independent versions of Floating UI\n// on <React 18\n\"floating-ui-\" + Math.random().toString(36).slice(2, 6) + count++;\nfunction useFloatingId() {\n  const [id, setId] = React.useState(() => serverHandoffComplete ? genId() : undefined);\n  useModernLayoutEffect(() => {\n    if (id == null) {\n      setId(genId());\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n  React.useEffect(() => {\n    serverHandoffComplete = true;\n  }, []);\n  return id;\n}\nconst useReactId = SafeReact.useId;\n\n/**\n * Uses React 18's built-in `useId()` when available, or falls back to a\n * slightly less performant (requiring a double render) implementation for\n * earlier React versions.\n * @see https://floating-ui.com/docs/react-utils#useid\n */\nconst useId = useReactId || useFloatingId;\n\nlet devMessageSet;\nif (process.env.NODE_ENV !== \"production\") {\n  devMessageSet = /*#__PURE__*/new Set();\n}\nfunction warn() {\n  var _devMessageSet;\n  for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) {\n    messages[_key] = arguments[_key];\n  }\n  const message = \"Floating UI: \" + messages.join(' ');\n  if (!((_devMessageSet = devMessageSet) != null && _devMessageSet.has(message))) {\n    var _devMessageSet2;\n    (_devMessageSet2 = devMessageSet) == null || _devMessageSet2.add(message);\n    console.warn(message);\n  }\n}\nfunction error() {\n  var _devMessageSet3;\n  for (var _len2 = arguments.length, messages = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n    messages[_key2] = arguments[_key2];\n  }\n  const message = \"Floating UI: \" + messages.join(' ');\n  if (!((_devMessageSet3 = devMessageSet) != null && _devMessageSet3.has(message))) {\n    var _devMessageSet4;\n    (_devMessageSet4 = devMessageSet) == null || _devMessageSet4.add(message);\n    console.error(message);\n  }\n}\n\n/**\n * Renders a pointing arrow triangle.\n * @see https://floating-ui.com/docs/FloatingArrow\n */\nconst FloatingArrow = /*#__PURE__*/React.forwardRef(function FloatingArrow(props, ref) {\n  const {\n    context: {\n      placement,\n      elements: {\n        floating\n      },\n      middlewareData: {\n        arrow,\n        shift\n      }\n    },\n    width = 14,\n    height = 7,\n    tipRadius = 0,\n    strokeWidth = 0,\n    staticOffset,\n    stroke,\n    d,\n    style: {\n      transform,\n      ...restStyle\n    } = {},\n    ...rest\n  } = props;\n  if (process.env.NODE_ENV !== \"production\") {\n    if (!ref) {\n      warn('The `ref` prop is required for `FloatingArrow`.');\n    }\n  }\n  const clipPathId = useId();\n  const [isRTL, setIsRTL] = React.useState(false);\n\n  // https://github.com/floating-ui/floating-ui/issues/2932\n  useModernLayoutEffect(() => {\n    if (!floating) return;\n    const isRTL = getComputedStyle(floating).direction === 'rtl';\n    if (isRTL) {\n      setIsRTL(true);\n    }\n  }, [floating]);\n  if (!floating) {\n    return null;\n  }\n  const [side, alignment] = placement.split('-');\n  const isVerticalSide = side === 'top' || side === 'bottom';\n  let computedStaticOffset = staticOffset;\n  if (isVerticalSide && shift != null && shift.x || !isVerticalSide && shift != null && shift.y) {\n    computedStaticOffset = null;\n  }\n\n  // Strokes must be double the border width, this ensures the stroke's width\n  // works as you'd expect.\n  const computedStrokeWidth = strokeWidth * 2;\n  const halfStrokeWidth = computedStrokeWidth / 2;\n  const svgX = width / 2 * (tipRadius / -8 + 1);\n  const svgY = height / 2 * tipRadius / 4;\n  const isCustomShape = !!d;\n  const yOffsetProp = computedStaticOffset && alignment === 'end' ? 'bottom' : 'top';\n  let xOffsetProp = computedStaticOffset && alignment === 'end' ? 'right' : 'left';\n  if (computedStaticOffset && isRTL) {\n    xOffsetProp = alignment === 'end' ? 'left' : 'right';\n  }\n  const arrowX = (arrow == null ? void 0 : arrow.x) != null ? computedStaticOffset || arrow.x : '';\n  const arrowY = (arrow == null ? void 0 : arrow.y) != null ? computedStaticOffset || arrow.y : '';\n  const dValue = d || 'M0,0' + (\" H\" + width) + (\" L\" + (width - svgX) + \",\" + (height - svgY)) + (\" Q\" + width / 2 + \",\" + height + \" \" + svgX + \",\" + (height - svgY)) + ' Z';\n  const rotation = {\n    top: isCustomShape ? 'rotate(180deg)' : '',\n    left: isCustomShape ? 'rotate(90deg)' : 'rotate(-90deg)',\n    bottom: isCustomShape ? '' : 'rotate(180deg)',\n    right: isCustomShape ? 'rotate(-90deg)' : 'rotate(90deg)'\n  }[side];\n  return /*#__PURE__*/jsxs(\"svg\", {\n    ...rest,\n    \"aria-hidden\": true,\n    ref: ref,\n    width: isCustomShape ? width : width + computedStrokeWidth,\n    height: width,\n    viewBox: \"0 0 \" + width + \" \" + (height > width ? height : width),\n    style: {\n      position: 'absolute',\n      pointerEvents: 'none',\n      [xOffsetProp]: arrowX,\n      [yOffsetProp]: arrowY,\n      [side]: isVerticalSide || isCustomShape ? '100%' : \"calc(100% - \" + computedStrokeWidth / 2 + \"px)\",\n      transform: [rotation, transform].filter(t => !!t).join(' '),\n      ...restStyle\n    },\n    children: [computedStrokeWidth > 0 && /*#__PURE__*/jsx(\"path\", {\n      clipPath: \"url(#\" + clipPathId + \")\",\n      fill: \"none\",\n      stroke: stroke\n      // Account for the stroke on the fill path rendered below.\n      ,\n      strokeWidth: computedStrokeWidth + (d ? 0 : 1),\n      d: dValue\n    }), /*#__PURE__*/jsx(\"path\", {\n      stroke: computedStrokeWidth && !d ? rest.fill : 'none',\n      d: dValue\n    }), /*#__PURE__*/jsx(\"clipPath\", {\n      id: clipPathId,\n      children: /*#__PURE__*/jsx(\"rect\", {\n        x: -halfStrokeWidth,\n        y: halfStrokeWidth * (isCustomShape ? -1 : 1),\n        width: width + computedStrokeWidth,\n        height: width\n      })\n    })]\n  });\n});\n\nfunction createEventEmitter() {\n  const map = new Map();\n  return {\n    emit(event, data) {\n      var _map$get;\n      (_map$get = map.get(event)) == null || _map$get.forEach(listener => listener(data));\n    },\n    on(event, listener) {\n      if (!map.has(event)) {\n        map.set(event, new Set());\n      }\n      map.get(event).add(listener);\n    },\n    off(event, listener) {\n      var _map$get2;\n      (_map$get2 = map.get(event)) == null || _map$get2.delete(listener);\n    }\n  };\n}\n\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nconst useFloatingParentNodeId = () => {\n  var _React$useContext;\n  return ((_React$useContext = React.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;\n};\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nconst useFloatingTree = () => React.useContext(FloatingTreeContext);\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction useFloatingNodeId(customParentId) {\n  const id = useId();\n  const tree = useFloatingTree();\n  const reactParentId = useFloatingParentNodeId();\n  const parentId = customParentId || reactParentId;\n  useModernLayoutEffect(() => {\n    if (!id) return;\n    const node = {\n      id,\n      parentId\n    };\n    tree == null || tree.addNode(node);\n    return () => {\n      tree == null || tree.removeNode(node);\n    };\n  }, [tree, id, parentId]);\n  return id;\n}\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction FloatingNode(props) {\n  const {\n    children,\n    id\n  } = props;\n  const parentId = useFloatingParentNodeId();\n  return /*#__PURE__*/jsx(FloatingNodeContext.Provider, {\n    value: React.useMemo(() => ({\n      id,\n      parentId\n    }), [id, parentId]),\n    children: children\n  });\n}\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n */\nfunction FloatingTree(props) {\n  const {\n    children\n  } = props;\n  const nodesRef = React.useRef([]);\n  const addNode = React.useCallback(node => {\n    nodesRef.current = [...nodesRef.current, node];\n  }, []);\n  const removeNode = React.useCallback(node => {\n    nodesRef.current = nodesRef.current.filter(n => n !== node);\n  }, []);\n  const [events] = React.useState(() => createEventEmitter());\n  return /*#__PURE__*/jsx(FloatingTreeContext.Provider, {\n    value: React.useMemo(() => ({\n      nodesRef,\n      addNode,\n      removeNode,\n      events\n    }), [addNode, removeNode, events]),\n    children: children\n  });\n}\n\nfunction createAttribute(name) {\n  return \"data-floating-ui-\" + name;\n}\n\nfunction clearTimeoutIfSet(timeoutRef) {\n  if (timeoutRef.current !== -1) {\n    clearTimeout(timeoutRef.current);\n    timeoutRef.current = -1;\n  }\n}\n\nconst safePolygonIdentifier = /*#__PURE__*/createAttribute('safe-polygon');\nfunction getDelay(value, prop, pointerType) {\n  if (pointerType && !isMouseLikePointerType(pointerType)) {\n    return 0;\n  }\n  if (typeof value === 'number') {\n    return value;\n  }\n  if (typeof value === 'function') {\n    const result = value();\n    if (typeof result === 'number') {\n      return result;\n    }\n    return result == null ? void 0 : result[prop];\n  }\n  return value == null ? void 0 : value[prop];\n}\nfunction getRestMs(value) {\n  if (typeof value === 'function') {\n    return value();\n  }\n  return value;\n}\n/**\n * Opens the floating element while hovering over the reference element, like\n * CSS `:hover`.\n * @see https://floating-ui.com/docs/useHover\n */\nfunction useHover(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    dataRef,\n    events,\n    elements\n  } = context;\n  const {\n    enabled = true,\n    delay = 0,\n    handleClose = null,\n    mouseOnly = false,\n    restMs = 0,\n    move = true\n  } = props;\n  const tree = useFloatingTree();\n  const parentId = useFloatingParentNodeId();\n  const handleCloseRef = useLatestRef(handleClose);\n  const delayRef = useLatestRef(delay);\n  const openRef = useLatestRef(open);\n  const restMsRef = useLatestRef(restMs);\n  const pointerTypeRef = React.useRef();\n  const timeoutRef = React.useRef(-1);\n  const handlerRef = React.useRef();\n  const restTimeoutRef = React.useRef(-1);\n  const blockMouseMoveRef = React.useRef(true);\n  const performedPointerEventsMutationRef = React.useRef(false);\n  const unbindMouseMoveRef = React.useRef(() => {});\n  const restTimeoutPendingRef = React.useRef(false);\n  const isHoverOpen = useEffectEvent(() => {\n    var _dataRef$current$open;\n    const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;\n    return (type == null ? void 0 : type.includes('mouse')) && type !== 'mousedown';\n  });\n\n  // When closing before opening, clear the delay timeouts to cancel it\n  // from showing.\n  React.useEffect(() => {\n    if (!enabled) return;\n    function onOpenChange(_ref) {\n      let {\n        open\n      } = _ref;\n      if (!open) {\n        clearTimeoutIfSet(timeoutRef);\n        clearTimeoutIfSet(restTimeoutRef);\n        blockMouseMoveRef.current = true;\n        restTimeoutPendingRef.current = false;\n      }\n    }\n    events.on('openchange', onOpenChange);\n    return () => {\n      events.off('openchange', onOpenChange);\n    };\n  }, [enabled, events]);\n  React.useEffect(() => {\n    if (!enabled) return;\n    if (!handleCloseRef.current) return;\n    if (!open) return;\n    function onLeave(event) {\n      if (isHoverOpen()) {\n        onOpenChange(false, event, 'hover');\n      }\n    }\n    const html = getDocument$1(elements.floating).documentElement;\n    html.addEventListener('mouseleave', onLeave);\n    return () => {\n      html.removeEventListener('mouseleave', onLeave);\n    };\n  }, [elements.floating, open, onOpenChange, enabled, handleCloseRef, isHoverOpen]);\n  const closeWithDelay = React.useCallback(function (event, runElseBranch, reason) {\n    if (runElseBranch === void 0) {\n      runElseBranch = true;\n    }\n    if (reason === void 0) {\n      reason = 'hover';\n    }\n    const closeDelay = getDelay(delayRef.current, 'close', pointerTypeRef.current);\n    if (closeDelay && !handlerRef.current) {\n      clearTimeoutIfSet(timeoutRef);\n      timeoutRef.current = window.setTimeout(() => onOpenChange(false, event, reason), closeDelay);\n    } else if (runElseBranch) {\n      clearTimeoutIfSet(timeoutRef);\n      onOpenChange(false, event, reason);\n    }\n  }, [delayRef, onOpenChange]);\n  const cleanupMouseMoveHandler = useEffectEvent(() => {\n    unbindMouseMoveRef.current();\n    handlerRef.current = undefined;\n  });\n  const clearPointerEvents = useEffectEvent(() => {\n    if (performedPointerEventsMutationRef.current) {\n      const body = getDocument$1(elements.floating).body;\n      body.style.pointerEvents = '';\n      body.removeAttribute(safePolygonIdentifier);\n      performedPointerEventsMutationRef.current = false;\n    }\n  });\n  const isClickLikeOpenEvent = useEffectEvent(() => {\n    return dataRef.current.openEvent ? ['click', 'mousedown'].includes(dataRef.current.openEvent.type) : false;\n  });\n\n  // Registering the mouse events on the reference directly to bypass React's\n  // delegation system. If the cursor was on a disabled element and then entered\n  // the reference (no gap), `mouseenter` doesn't fire in the delegation system.\n  React.useEffect(() => {\n    if (!enabled) return;\n    function onReferenceMouseEnter(event) {\n      clearTimeoutIfSet(timeoutRef);\n      blockMouseMoveRef.current = false;\n      if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || getRestMs(restMsRef.current) > 0 && !getDelay(delayRef.current, 'open')) {\n        return;\n      }\n      const openDelay = getDelay(delayRef.current, 'open', pointerTypeRef.current);\n      if (openDelay) {\n        timeoutRef.current = window.setTimeout(() => {\n          if (!openRef.current) {\n            onOpenChange(true, event, 'hover');\n          }\n        }, openDelay);\n      } else if (!open) {\n        onOpenChange(true, event, 'hover');\n      }\n    }\n    function onReferenceMouseLeave(event) {\n      if (isClickLikeOpenEvent()) {\n        clearPointerEvents();\n        return;\n      }\n      unbindMouseMoveRef.current();\n      const doc = getDocument$1(elements.floating);\n      clearTimeoutIfSet(restTimeoutRef);\n      restTimeoutPendingRef.current = false;\n      if (handleCloseRef.current && dataRef.current.floatingContext) {\n        // Prevent clearing `onScrollMouseLeave` timeout.\n        if (!open) {\n          clearTimeoutIfSet(timeoutRef);\n        }\n        handlerRef.current = handleCloseRef.current({\n          ...dataRef.current.floatingContext,\n          tree,\n          x: event.clientX,\n          y: event.clientY,\n          onClose() {\n            clearPointerEvents();\n            cleanupMouseMoveHandler();\n            if (!isClickLikeOpenEvent()) {\n              closeWithDelay(event, true, 'safe-polygon');\n            }\n          }\n        });\n        const handler = handlerRef.current;\n        doc.addEventListener('mousemove', handler);\n        unbindMouseMoveRef.current = () => {\n          doc.removeEventListener('mousemove', handler);\n        };\n        return;\n      }\n\n      // Allow interactivity without `safePolygon` on touch devices. With a\n      // pointer, a short close delay is an alternative, so it should work\n      // consistently.\n      const shouldClose = pointerTypeRef.current === 'touch' ? !contains$1(elements.floating, event.relatedTarget) : true;\n      if (shouldClose) {\n        closeWithDelay(event);\n      }\n    }\n\n    // Ensure the floating element closes after scrolling even if the pointer\n    // did not move.\n    // https://github.com/floating-ui/floating-ui/discussions/1692\n    function onScrollMouseLeave(event) {\n      if (isClickLikeOpenEvent()) return;\n      if (!dataRef.current.floatingContext) return;\n      handleCloseRef.current == null || handleCloseRef.current({\n        ...dataRef.current.floatingContext,\n        tree,\n        x: event.clientX,\n        y: event.clientY,\n        onClose() {\n          clearPointerEvents();\n          cleanupMouseMoveHandler();\n          if (!isClickLikeOpenEvent()) {\n            closeWithDelay(event);\n          }\n        }\n      })(event);\n    }\n    function onFloatingMouseEnter() {\n      clearTimeoutIfSet(timeoutRef);\n    }\n    function onFloatingMouseLeave(event) {\n      if (!isClickLikeOpenEvent()) {\n        closeWithDelay(event, false);\n      }\n    }\n    if (isElement(elements.domReference)) {\n      const reference = elements.domReference;\n      const floating = elements.floating;\n      if (open) {\n        reference.addEventListener('mouseleave', onScrollMouseLeave);\n      }\n      if (move) {\n        reference.addEventListener('mousemove', onReferenceMouseEnter, {\n          once: true\n        });\n      }\n      reference.addEventListener('mouseenter', onReferenceMouseEnter);\n      reference.addEventListener('mouseleave', onReferenceMouseLeave);\n      if (floating) {\n        floating.addEventListener('mouseleave', onScrollMouseLeave);\n        floating.addEventListener('mouseenter', onFloatingMouseEnter);\n        floating.addEventListener('mouseleave', onFloatingMouseLeave);\n      }\n      return () => {\n        if (open) {\n          reference.removeEventListener('mouseleave', onScrollMouseLeave);\n        }\n        if (move) {\n          reference.removeEventListener('mousemove', onReferenceMouseEnter);\n        }\n        reference.removeEventListener('mouseenter', onReferenceMouseEnter);\n        reference.removeEventListener('mouseleave', onReferenceMouseLeave);\n        if (floating) {\n          floating.removeEventListener('mouseleave', onScrollMouseLeave);\n          floating.removeEventListener('mouseenter', onFloatingMouseEnter);\n          floating.removeEventListener('mouseleave', onFloatingMouseLeave);\n        }\n      };\n    }\n  }, [elements, enabled, context, mouseOnly, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef, isClickLikeOpenEvent, restMsRef]);\n\n  // Block pointer-events of every element other than the reference and floating\n  // while the floating element is open and has a `handleClose` handler. Also\n  // handles nested floating elements.\n  // https://github.com/floating-ui/floating-ui/issues/1722\n  useModernLayoutEffect(() => {\n    var _handleCloseRef$curre;\n    if (!enabled) return;\n    if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {\n      performedPointerEventsMutationRef.current = true;\n      const floatingEl = elements.floating;\n      if (isElement(elements.domReference) && floatingEl) {\n        var _tree$nodesRef$curren;\n        const body = getDocument$1(elements.floating).body;\n        body.setAttribute(safePolygonIdentifier, '');\n        const ref = elements.domReference;\n        const parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;\n        if (parentFloating) {\n          parentFloating.style.pointerEvents = '';\n        }\n        body.style.pointerEvents = 'none';\n        ref.style.pointerEvents = 'auto';\n        floatingEl.style.pointerEvents = 'auto';\n        return () => {\n          body.style.pointerEvents = '';\n          ref.style.pointerEvents = '';\n          floatingEl.style.pointerEvents = '';\n        };\n      }\n    }\n  }, [enabled, open, parentId, elements, tree, handleCloseRef, isHoverOpen]);\n  useModernLayoutEffect(() => {\n    if (!open) {\n      pointerTypeRef.current = undefined;\n      restTimeoutPendingRef.current = false;\n      cleanupMouseMoveHandler();\n      clearPointerEvents();\n    }\n  }, [open, cleanupMouseMoveHandler, clearPointerEvents]);\n  React.useEffect(() => {\n    return () => {\n      cleanupMouseMoveHandler();\n      clearTimeoutIfSet(timeoutRef);\n      clearTimeoutIfSet(restTimeoutRef);\n      clearPointerEvents();\n    };\n  }, [enabled, elements.domReference, cleanupMouseMoveHandler, clearPointerEvents]);\n  const reference = React.useMemo(() => {\n    function setPointerRef(event) {\n      pointerTypeRef.current = event.pointerType;\n    }\n    return {\n      onPointerDown: setPointerRef,\n      onPointerEnter: setPointerRef,\n      onMouseMove(event) {\n        const {\n          nativeEvent\n        } = event;\n        function handleMouseMove() {\n          if (!blockMouseMoveRef.current && !openRef.current) {\n            onOpenChange(true, nativeEvent, 'hover');\n          }\n        }\n        if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current)) {\n          return;\n        }\n        if (open || getRestMs(restMsRef.current) === 0) {\n          return;\n        }\n\n        // Ignore insignificant movements to account for tremors.\n        if (restTimeoutPendingRef.current && event.movementX ** 2 + event.movementY ** 2 < 2) {\n          return;\n        }\n        clearTimeoutIfSet(restTimeoutRef);\n        if (pointerTypeRef.current === 'touch') {\n          handleMouseMove();\n        } else {\n          restTimeoutPendingRef.current = true;\n          restTimeoutRef.current = window.setTimeout(handleMouseMove, getRestMs(restMsRef.current));\n        }\n      }\n    };\n  }, [mouseOnly, onOpenChange, open, openRef, restMsRef]);\n  return React.useMemo(() => enabled ? {\n    reference\n  } : {}, [enabled, reference]);\n}\n\nconst NOOP = () => {};\nconst FloatingDelayGroupContext = /*#__PURE__*/React.createContext({\n  delay: 0,\n  initialDelay: 0,\n  timeoutMs: 0,\n  currentId: null,\n  setCurrentId: NOOP,\n  setState: NOOP,\n  isInstantPhase: false\n});\n\n/**\n * @deprecated\n * Use the return value of `useDelayGroup()` instead.\n */\nconst useDelayGroupContext = () => React.useContext(FloatingDelayGroupContext);\n/**\n * Provides context for a group of floating elements that should share a\n * `delay`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nfunction FloatingDelayGroup(props) {\n  const {\n    children,\n    delay,\n    timeoutMs = 0\n  } = props;\n  const [state, setState] = React.useReducer((prev, next) => ({\n    ...prev,\n    ...next\n  }), {\n    delay,\n    timeoutMs,\n    initialDelay: delay,\n    currentId: null,\n    isInstantPhase: false\n  });\n  const initialCurrentIdRef = React.useRef(null);\n  const setCurrentId = React.useCallback(currentId => {\n    setState({\n      currentId\n    });\n  }, []);\n  useModernLayoutEffect(() => {\n    if (state.currentId) {\n      if (initialCurrentIdRef.current === null) {\n        initialCurrentIdRef.current = state.currentId;\n      } else if (!state.isInstantPhase) {\n        setState({\n          isInstantPhase: true\n        });\n      }\n    } else {\n      if (state.isInstantPhase) {\n        setState({\n          isInstantPhase: false\n        });\n      }\n      initialCurrentIdRef.current = null;\n    }\n  }, [state.currentId, state.isInstantPhase]);\n  return /*#__PURE__*/jsx(FloatingDelayGroupContext.Provider, {\n    value: React.useMemo(() => ({\n      ...state,\n      setState,\n      setCurrentId\n    }), [state, setCurrentId]),\n    children: children\n  });\n}\n/**\n * Enables grouping when called inside a component that's a child of a\n * `FloatingDelayGroup`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nfunction useDelayGroup(context, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    floatingId\n  } = context;\n  const {\n    id: optionId,\n    enabled = true\n  } = options;\n  const id = optionId != null ? optionId : floatingId;\n  const groupContext = useDelayGroupContext();\n  const {\n    currentId,\n    setCurrentId,\n    initialDelay,\n    setState,\n    timeoutMs\n  } = groupContext;\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (!currentId) return;\n    setState({\n      delay: {\n        open: 1,\n        close: getDelay(initialDelay, 'close')\n      }\n    });\n    if (currentId !== id) {\n      onOpenChange(false);\n    }\n  }, [enabled, id, onOpenChange, setState, currentId, initialDelay]);\n  useModernLayoutEffect(() => {\n    function unset() {\n      onOpenChange(false);\n      setState({\n        delay: initialDelay,\n        currentId: null\n      });\n    }\n    if (!enabled) return;\n    if (!currentId) return;\n    if (!open && currentId === id) {\n      if (timeoutMs) {\n        const timeout = window.setTimeout(unset, timeoutMs);\n        return () => {\n          clearTimeout(timeout);\n        };\n      }\n      unset();\n    }\n  }, [enabled, open, setState, currentId, id, onOpenChange, initialDelay, timeoutMs]);\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (setCurrentId === NOOP || !open) return;\n    setCurrentId(id);\n  }, [enabled, open, setCurrentId, id]);\n  return groupContext;\n}\n\nconst NextFloatingDelayGroupContext = /*#__PURE__*/React.createContext({\n  hasProvider: false,\n  timeoutMs: 0,\n  delayRef: {\n    current: 0\n  },\n  initialDelayRef: {\n    current: 0\n  },\n  timeoutIdRef: {\n    current: -1\n  },\n  currentIdRef: {\n    current: null\n  },\n  currentContextRef: {\n    current: null\n  }\n});\n/**\n * Experimental next version of `FloatingDelayGroup` to become the default\n * in the future. This component is not yet stable.\n * Provides context for a group of floating elements that should share a\n * `delay`. Unlike `FloatingDelayGroup`, `useNextDelayGroup` with this\n * component does not cause a re-render of unrelated consumers of the\n * context when the delay changes.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nfunction NextFloatingDelayGroup(props) {\n  const {\n    children,\n    delay,\n    timeoutMs = 0\n  } = props;\n  const delayRef = React.useRef(delay);\n  const initialDelayRef = React.useRef(delay);\n  const currentIdRef = React.useRef(null);\n  const currentContextRef = React.useRef(null);\n  const timeoutIdRef = React.useRef(-1);\n  return /*#__PURE__*/jsx(NextFloatingDelayGroupContext.Provider, {\n    value: React.useMemo(() => ({\n      hasProvider: true,\n      delayRef,\n      initialDelayRef,\n      currentIdRef,\n      timeoutMs,\n      currentContextRef,\n      timeoutIdRef\n    }), [timeoutMs]),\n    children: children\n  });\n}\n/**\n * Enables grouping when called inside a component that's a child of a\n * `NextFloatingDelayGroup`.\n * @see https://floating-ui.com/docs/FloatingDelayGroup\n */\nfunction useNextDelayGroup(context, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    floatingId\n  } = context;\n  const {\n    enabled = true\n  } = options;\n  const groupContext = React.useContext(NextFloatingDelayGroupContext);\n  const {\n    currentIdRef,\n    delayRef,\n    timeoutMs,\n    initialDelayRef,\n    currentContextRef,\n    hasProvider,\n    timeoutIdRef\n  } = groupContext;\n  const [isInstantPhase, setIsInstantPhase] = React.useState(false);\n  useModernLayoutEffect(() => {\n    function unset() {\n      var _currentContextRef$cu;\n      setIsInstantPhase(false);\n      (_currentContextRef$cu = currentContextRef.current) == null || _currentContextRef$cu.setIsInstantPhase(false);\n      currentIdRef.current = null;\n      currentContextRef.current = null;\n      delayRef.current = initialDelayRef.current;\n    }\n    if (!enabled) return;\n    if (!currentIdRef.current) return;\n    if (!open && currentIdRef.current === floatingId) {\n      setIsInstantPhase(false);\n      if (timeoutMs) {\n        timeoutIdRef.current = window.setTimeout(unset, timeoutMs);\n        return () => {\n          clearTimeout(timeoutIdRef.current);\n        };\n      }\n      unset();\n    }\n  }, [enabled, open, floatingId, currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, timeoutIdRef]);\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (!open) return;\n    const prevContext = currentContextRef.current;\n    const prevId = currentIdRef.current;\n    currentContextRef.current = {\n      onOpenChange,\n      setIsInstantPhase\n    };\n    currentIdRef.current = floatingId;\n    delayRef.current = {\n      open: 0,\n      close: getDelay(initialDelayRef.current, 'close')\n    };\n    if (prevId !== null && prevId !== floatingId) {\n      clearTimeoutIfSet(timeoutIdRef);\n      setIsInstantPhase(true);\n      prevContext == null || prevContext.setIsInstantPhase(true);\n      prevContext == null || prevContext.onOpenChange(false);\n    } else {\n      setIsInstantPhase(false);\n      prevContext == null || prevContext.setIsInstantPhase(false);\n    }\n  }, [enabled, open, floatingId, onOpenChange, currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, timeoutIdRef]);\n  useModernLayoutEffect(() => {\n    return () => {\n      currentContextRef.current = null;\n    };\n  }, [currentContextRef]);\n  return React.useMemo(() => ({\n    hasProvider,\n    delayRef,\n    isInstantPhase\n  }), [hasProvider, delayRef, isInstantPhase]);\n}\n\nlet rafId = 0;\nfunction enqueueFocus(el, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    preventScroll = false,\n    cancelPrevious = true,\n    sync = false\n  } = options;\n  cancelPrevious && cancelAnimationFrame(rafId);\n  const exec = () => el == null ? void 0 : el.focus({\n    preventScroll\n  });\n  if (sync) {\n    exec();\n  } else {\n    rafId = requestAnimationFrame(exec);\n  }\n}\n\nfunction contains(parent, child) {\n  if (!parent || !child) {\n    return false;\n  }\n  const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();\n\n  // First, attempt with faster native method\n  if (parent.contains(child)) {\n    return true;\n  }\n\n  // then fallback to custom implementation with Shadow DOM support\n  if (rootNode && isShadowRoot(rootNode)) {\n    let next = child;\n    while (next) {\n      if (parent === next) {\n        return true;\n      }\n      // @ts-ignore\n      next = next.parentNode || next.host;\n    }\n  }\n\n  // Give up, the result is false\n  return false;\n}\nfunction getTarget(event) {\n  if ('composedPath' in event) {\n    return event.composedPath()[0];\n  }\n\n  // TS thinks `event` is of type never as it assumes all browsers support\n  // `composedPath()`, but browsers without shadow DOM don't.\n  return event.target;\n}\nfunction getDocument(node) {\n  return (node == null ? void 0 : node.ownerDocument) || document;\n}\n\n// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nconst counters = {\n  inert: /*#__PURE__*/new WeakMap(),\n  'aria-hidden': /*#__PURE__*/new WeakMap(),\n  none: /*#__PURE__*/new WeakMap()\n};\nfunction getCounterMap(control) {\n  if (control === 'inert') return counters.inert;\n  if (control === 'aria-hidden') return counters['aria-hidden'];\n  return counters.none;\n}\nlet uncontrolledElementsSet = /*#__PURE__*/new WeakSet();\nlet markerMap = {};\nlet lockCount$1 = 0;\nconst supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;\nfunction unwrapHost(node) {\n  if (!node) {\n    return null;\n  }\n  return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n  if (parent.contains(target)) {\n    return target;\n  }\n  const correctedTarget = unwrapHost(target);\n  if (parent.contains(correctedTarget)) {\n    return correctedTarget;\n  }\n  return null;\n}).filter(x => x != null);\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert) {\n  const markerName = 'data-floating-ui-inert';\n  const controlAttribute = inert ? 'inert' : ariaHidden ? 'aria-hidden' : null;\n  const avoidElements = correctElements(body, uncorrectedAvoidElements);\n  const elementsToKeep = new Set();\n  const elementsToStop = new Set(avoidElements);\n  const hiddenElements = [];\n  if (!markerMap[markerName]) {\n    markerMap[markerName] = new WeakMap();\n  }\n  const markerCounter = markerMap[markerName];\n  avoidElements.forEach(keep);\n  deep(body);\n  elementsToKeep.clear();\n  function keep(el) {\n    if (!el || elementsToKeep.has(el)) {\n      return;\n    }\n    elementsToKeep.add(el);\n    el.parentNode && keep(el.parentNode);\n  }\n  function deep(parent) {\n    if (!parent || elementsToStop.has(parent)) {\n      return;\n    }\n    [].forEach.call(parent.children, node => {\n      if (getNodeName(node) === 'script') return;\n      if (elementsToKeep.has(node)) {\n        deep(node);\n      } else {\n        const attr = controlAttribute ? node.getAttribute(controlAttribute) : null;\n        const alreadyHidden = attr !== null && attr !== 'false';\n        const counterMap = getCounterMap(controlAttribute);\n        const counterValue = (counterMap.get(node) || 0) + 1;\n        const markerValue = (markerCounter.get(node) || 0) + 1;\n        counterMap.set(node, counterValue);\n        markerCounter.set(node, markerValue);\n        hiddenElements.push(node);\n        if (counterValue === 1 && alreadyHidden) {\n          uncontrolledElementsSet.add(node);\n        }\n        if (markerValue === 1) {\n          node.setAttribute(markerName, '');\n        }\n        if (!alreadyHidden && controlAttribute) {\n          node.setAttribute(controlAttribute, controlAttribute === 'inert' ? '' : 'true');\n        }\n      }\n    });\n  }\n  lockCount$1++;\n  return () => {\n    hiddenElements.forEach(element => {\n      const counterMap = getCounterMap(controlAttribute);\n      const currentCounterValue = counterMap.get(element) || 0;\n      const counterValue = currentCounterValue - 1;\n      const markerValue = (markerCounter.get(element) || 0) - 1;\n      counterMap.set(element, counterValue);\n      markerCounter.set(element, markerValue);\n      if (!counterValue) {\n        if (!uncontrolledElementsSet.has(element) && controlAttribute) {\n          element.removeAttribute(controlAttribute);\n        }\n        uncontrolledElementsSet.delete(element);\n      }\n      if (!markerValue) {\n        element.removeAttribute(markerName);\n      }\n    });\n    lockCount$1--;\n    if (!lockCount$1) {\n      counters.inert = new WeakMap();\n      counters['aria-hidden'] = new WeakMap();\n      counters.none = new WeakMap();\n      uncontrolledElementsSet = new WeakSet();\n      markerMap = {};\n    }\n  };\n}\nfunction markOthers(avoidElements, ariaHidden, inert) {\n  if (ariaHidden === void 0) {\n    ariaHidden = false;\n  }\n  if (inert === void 0) {\n    inert = false;\n  }\n  const body = getDocument(avoidElements[0]).body;\n  return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live],[role=\"status\"],output'))), body, ariaHidden, inert);\n}\n\nconst HIDDEN_STYLES = {\n  border: 0,\n  clip: 'rect(0 0 0 0)',\n  height: '1px',\n  margin: '-1px',\n  overflow: 'hidden',\n  padding: 0,\n  position: 'fixed',\n  whiteSpace: 'nowrap',\n  width: '1px',\n  top: 0,\n  left: 0\n};\nconst FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n  const [role, setRole] = React.useState();\n  useModernLayoutEffect(() => {\n    if (isSafari()) {\n      // Unlike other screen readers such as NVDA and JAWS, the virtual cursor\n      // on VoiceOver does trigger the onFocus event, so we can use the focus\n      // trap element. On Safari, only buttons trigger the onFocus event.\n      // NB: \"group\" role in the Sandbox no longer appears to work, must be a\n      // button role.\n      setRole('button');\n    }\n  }, []);\n  const restProps = {\n    ref,\n    tabIndex: 0,\n    // Role is only for VoiceOver\n    role,\n    'aria-hidden': role ? undefined : true,\n    [createAttribute('focus-guard')]: '',\n    style: HIDDEN_STYLES\n  };\n  return /*#__PURE__*/jsx(\"span\", {\n    ...props,\n    ...restProps\n  });\n});\n\nconst HIDDEN_OWNER_STYLES = {\n  clipPath: 'inset(50%)',\n  position: 'fixed',\n  top: 0,\n  left: 0\n};\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nconst attr = /*#__PURE__*/createAttribute('portal');\n/**\n * @see https://floating-ui.com/docs/FloatingPortal#usefloatingportalnode\n */\nfunction useFloatingPortalNode(props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    id,\n    root\n  } = props;\n  const uniqueId = useId();\n  const portalContext = usePortalContext();\n  const [portalNode, setPortalNode] = React.useState(null);\n  const portalNodeRef = React.useRef(null);\n  useModernLayoutEffect(() => {\n    return () => {\n      portalNode == null || portalNode.remove();\n      // Allow the subsequent layout effects to create a new node on updates.\n      // The portal node will still be cleaned up on unmount.\n      // https://github.com/floating-ui/floating-ui/issues/2454\n      queueMicrotask(() => {\n        portalNodeRef.current = null;\n      });\n    };\n  }, [portalNode]);\n  useModernLayoutEffect(() => {\n    // Wait for the uniqueId to be generated before creating the portal node in\n    // React <18 (using `useFloatingId` instead of the native `useId`).\n    // https://github.com/floating-ui/floating-ui/issues/2778\n    if (!uniqueId) return;\n    if (portalNodeRef.current) return;\n    const existingIdRoot = id ? document.getElementById(id) : null;\n    if (!existingIdRoot) return;\n    const subRoot = document.createElement('div');\n    subRoot.id = uniqueId;\n    subRoot.setAttribute(attr, '');\n    existingIdRoot.appendChild(subRoot);\n    portalNodeRef.current = subRoot;\n    setPortalNode(subRoot);\n  }, [id, uniqueId]);\n  useModernLayoutEffect(() => {\n    // Wait for the root to exist before creating the portal node. The root must\n    // be stored in state, not a ref, for this to work reactively.\n    if (root === null) return;\n    if (!uniqueId) return;\n    if (portalNodeRef.current) return;\n    let container = root || (portalContext == null ? void 0 : portalContext.portalNode);\n    if (container && !isNode(container)) container = container.current;\n    container = container || document.body;\n    let idWrapper = null;\n    if (id) {\n      idWrapper = document.createElement('div');\n      idWrapper.id = id;\n      container.appendChild(idWrapper);\n    }\n    const subRoot = document.createElement('div');\n    subRoot.id = uniqueId;\n    subRoot.setAttribute(attr, '');\n    container = idWrapper || container;\n    container.appendChild(subRoot);\n    portalNodeRef.current = subRoot;\n    setPortalNode(subRoot);\n  }, [id, root, uniqueId, portalContext]);\n  return portalNode;\n}\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n */\nfunction FloatingPortal(props) {\n  const {\n    children,\n    id,\n    root,\n    preserveTabOrder = true\n  } = props;\n  const portalNode = useFloatingPortalNode({\n    id,\n    root\n  });\n  const [focusManagerState, setFocusManagerState] = React.useState(null);\n  const beforeOutsideRef = React.useRef(null);\n  const afterOutsideRef = React.useRef(null);\n  const beforeInsideRef = React.useRef(null);\n  const afterInsideRef = React.useRef(null);\n  const modal = focusManagerState == null ? void 0 : focusManagerState.modal;\n  const open = focusManagerState == null ? void 0 : focusManagerState.open;\n  const shouldRenderGuards =\n  // The FocusManager and therefore floating element are currently open/\n  // rendered.\n  !!focusManagerState &&\n  // Guards are only for non-modal focus management.\n  !focusManagerState.modal &&\n  // Don't render if unmount is transitioning.\n  focusManagerState.open && preserveTabOrder && !!(root || portalNode);\n\n  // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n  React.useEffect(() => {\n    if (!portalNode || !preserveTabOrder || modal) {\n      return;\n    }\n\n    // Make sure elements inside the portal element are tabbable only when the\n    // portal has already been focused, either by tabbing into a focus trap\n    // element outside or using the mouse.\n    function onFocus(event) {\n      if (portalNode && isOutsideEvent(event)) {\n        const focusing = event.type === 'focusin';\n        const manageFocus = focusing ? enableFocusInside : disableFocusInside;\n        manageFocus(portalNode);\n      }\n    }\n    // Listen to the event on the capture phase so they run before the focus\n    // trap elements onFocus prop is called.\n    portalNode.addEventListener('focusin', onFocus, true);\n    portalNode.addEventListener('focusout', onFocus, true);\n    return () => {\n      portalNode.removeEventListener('focusin', onFocus, true);\n      portalNode.removeEventListener('focusout', onFocus, true);\n    };\n  }, [portalNode, preserveTabOrder, modal]);\n  React.useEffect(() => {\n    if (!portalNode) return;\n    if (open) return;\n    enableFocusInside(portalNode);\n  }, [open, portalNode]);\n  return /*#__PURE__*/jsxs(PortalContext.Provider, {\n    value: React.useMemo(() => ({\n      preserveTabOrder,\n      beforeOutsideRef,\n      afterOutsideRef,\n      beforeInsideRef,\n      afterInsideRef,\n      portalNode,\n      setFocusManagerState\n    }), [preserveTabOrder, portalNode]),\n    children: [shouldRenderGuards && portalNode && /*#__PURE__*/jsx(FocusGuard, {\n      \"data-type\": \"outside\",\n      ref: beforeOutsideRef,\n      onFocus: event => {\n        if (isOutsideEvent(event, portalNode)) {\n          var _beforeInsideRef$curr;\n          (_beforeInsideRef$curr = beforeInsideRef.current) == null || _beforeInsideRef$curr.focus();\n        } else {\n          const domReference = focusManagerState ? focusManagerState.domReference : null;\n          const prevTabbable = getPreviousTabbable(domReference);\n          prevTabbable == null || prevTabbable.focus();\n        }\n      }\n    }), shouldRenderGuards && portalNode && /*#__PURE__*/jsx(\"span\", {\n      \"aria-owns\": portalNode.id,\n      style: HIDDEN_OWNER_STYLES\n    }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/jsx(FocusGuard, {\n      \"data-type\": \"outside\",\n      ref: afterOutsideRef,\n      onFocus: event => {\n        if (isOutsideEvent(event, portalNode)) {\n          var _afterInsideRef$curre;\n          (_afterInsideRef$curre = afterInsideRef.current) == null || _afterInsideRef$curre.focus();\n        } else {\n          const domReference = focusManagerState ? focusManagerState.domReference : null;\n          const nextTabbable = getNextTabbable(domReference);\n          nextTabbable == null || nextTabbable.focus();\n          (focusManagerState == null ? void 0 : focusManagerState.closeOnFocusOut) && (focusManagerState == null ? void 0 : focusManagerState.onOpenChange(false, event.nativeEvent, 'focus-out'));\n        }\n      }\n    })]\n  });\n}\nconst usePortalContext = () => React.useContext(PortalContext);\n\nfunction useLiteMergeRefs(refs) {\n  return React.useMemo(() => {\n    return value => {\n      refs.forEach(ref => {\n        if (ref) {\n          ref.current = value;\n        }\n      });\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n}\n\nconst LIST_LIMIT = 20;\nlet previouslyFocusedElements = [];\nfunction clearDisconnectedPreviouslyFocusedElements() {\n  previouslyFocusedElements = previouslyFocusedElements.filter(elementRef => {\n    var _elementRef$deref;\n    return (_elementRef$deref = elementRef.deref()) == null ? void 0 : _elementRef$deref.isConnected;\n  });\n}\nfunction addPreviouslyFocusedElement(element) {\n  clearDisconnectedPreviouslyFocusedElements();\n  if (element && getNodeName(element) !== 'body') {\n    previouslyFocusedElements.push(new WeakRef(element));\n    if (previouslyFocusedElements.length > LIST_LIMIT) {\n      previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);\n    }\n  }\n}\nfunction getPreviouslyFocusedElement() {\n  clearDisconnectedPreviouslyFocusedElements();\n  const elementRef = previouslyFocusedElements[previouslyFocusedElements.length - 1];\n  return elementRef == null ? void 0 : elementRef.deref();\n}\nfunction getFirstTabbableElement(container) {\n  const tabbableOptions = getTabbableOptions();\n  if (isTabbable(container, tabbableOptions)) {\n    return container;\n  }\n  return tabbable(container, tabbableOptions)[0] || container;\n}\nfunction handleTabIndex(floatingFocusElement, orderRef) {\n  var _floatingFocusElement;\n  if (!orderRef.current.includes('floating') && !((_floatingFocusElement = floatingFocusElement.getAttribute('role')) != null && _floatingFocusElement.includes('dialog'))) {\n    return;\n  }\n  const options = getTabbableOptions();\n  const focusableElements = focusable(floatingFocusElement, options);\n  const tabbableContent = focusableElements.filter(element => {\n    const dataTabIndex = element.getAttribute('data-tabindex') || '';\n    return isTabbable(element, options) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');\n  });\n  const tabIndex = floatingFocusElement.getAttribute('tabindex');\n  if (orderRef.current.includes('floating') || tabbableContent.length === 0) {\n    if (tabIndex !== '0') {\n      floatingFocusElement.setAttribute('tabindex', '0');\n    }\n  } else if (tabIndex !== '-1' || floatingFocusElement.hasAttribute('data-tabindex') && floatingFocusElement.getAttribute('data-tabindex') !== '-1') {\n    floatingFocusElement.setAttribute('tabindex', '-1');\n    floatingFocusElement.setAttribute('data-tabindex', '-1');\n  }\n}\nconst VisuallyHiddenDismiss = /*#__PURE__*/React.forwardRef(function VisuallyHiddenDismiss(props, ref) {\n  return /*#__PURE__*/jsx(\"button\", {\n    ...props,\n    type: \"button\",\n    ref: ref,\n    tabIndex: -1,\n    style: HIDDEN_STYLES\n  });\n});\n/**\n * Provides focus management for the floating element.\n * @see https://floating-ui.com/docs/FloatingFocusManager\n */\nfunction FloatingFocusManager(props) {\n  const {\n    context,\n    children,\n    disabled = false,\n    order = ['content'],\n    guards: _guards = true,\n    initialFocus = 0,\n    returnFocus = true,\n    restoreFocus = false,\n    modal = true,\n    visuallyHiddenDismiss = false,\n    closeOnFocusOut = true,\n    outsideElementsInert = false,\n    getInsideElements: _getInsideElements = () => []\n  } = props;\n  const {\n    open,\n    onOpenChange,\n    events,\n    dataRef,\n    elements: {\n      domReference,\n      floating\n    }\n  } = context;\n  const getNodeId = useEffectEvent(() => {\n    var _dataRef$current$floa;\n    return (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId;\n  });\n  const getInsideElements = useEffectEvent(_getInsideElements);\n  const ignoreInitialFocus = typeof initialFocus === 'number' && initialFocus < 0;\n  // If the reference is a combobox and is typeable (e.g. input/textarea),\n  // there are different focus semantics. The guards should not be rendered, but\n  // aria-hidden should be applied to all nodes still. Further, the visually\n  // hidden dismiss button should only appear at the end of the list, not the\n  // start.\n  const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;\n\n  // Force the guards to be rendered if the `inert` attribute is not supported.\n  const inertSupported = supportsInert();\n  const guards = inertSupported ? _guards : true;\n  const useInert = !guards || inertSupported && outsideElementsInert;\n  const orderRef = useLatestRef(order);\n  const initialFocusRef = useLatestRef(initialFocus);\n  const returnFocusRef = useLatestRef(returnFocus);\n  const tree = useFloatingTree();\n  const portalContext = usePortalContext();\n  const startDismissButtonRef = React.useRef(null);\n  const endDismissButtonRef = React.useRef(null);\n  const preventReturnFocusRef = React.useRef(false);\n  const isPointerDownRef = React.useRef(false);\n  const tabbableIndexRef = React.useRef(-1);\n  const blurTimeoutRef = React.useRef(-1);\n  const isInsidePortal = portalContext != null;\n  const floatingFocusElement = getFloatingFocusElement(floating);\n  const getTabbableContent = useEffectEvent(function (container) {\n    if (container === void 0) {\n      container = floatingFocusElement;\n    }\n    return container ? tabbable(container, getTabbableOptions()) : [];\n  });\n  const getTabbableElements = useEffectEvent(container => {\n    const content = getTabbableContent(container);\n    return orderRef.current.map(type => {\n      if (domReference && type === 'reference') {\n        return domReference;\n      }\n      if (floatingFocusElement && type === 'floating') {\n        return floatingFocusElement;\n      }\n      return content;\n    }).filter(Boolean).flat();\n  });\n  React.useEffect(() => {\n    if (disabled) return;\n    if (!modal) return;\n    function onKeyDown(event) {\n      if (event.key === 'Tab') {\n        // The focus guards have nothing to focus, so we need to stop the event.\n        if (contains$1(floatingFocusElement, activeElement(getDocument$1(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {\n          stopEvent(event);\n        }\n        const els = getTabbableElements();\n        const target = getTarget$1(event);\n        if (orderRef.current[0] === 'reference' && target === domReference) {\n          stopEvent(event);\n          if (event.shiftKey) {\n            enqueueFocus(els[els.length - 1]);\n          } else {\n            enqueueFocus(els[1]);\n          }\n        }\n        if (orderRef.current[1] === 'floating' && target === floatingFocusElement && event.shiftKey) {\n          stopEvent(event);\n          enqueueFocus(els[0]);\n        }\n      }\n    }\n    const doc = getDocument$1(floatingFocusElement);\n    doc.addEventListener('keydown', onKeyDown);\n    return () => {\n      doc.removeEventListener('keydown', onKeyDown);\n    };\n  }, [disabled, domReference, floatingFocusElement, modal, orderRef, isUntrappedTypeableCombobox, getTabbableContent, getTabbableElements]);\n  React.useEffect(() => {\n    if (disabled) return;\n    if (!floating) return;\n    function handleFocusIn(event) {\n      const target = getTarget$1(event);\n      const tabbableContent = getTabbableContent();\n      const tabbableIndex = tabbableContent.indexOf(target);\n      if (tabbableIndex !== -1) {\n        tabbableIndexRef.current = tabbableIndex;\n      }\n    }\n    floating.addEventListener('focusin', handleFocusIn);\n    return () => {\n      floating.removeEventListener('focusin', handleFocusIn);\n    };\n  }, [disabled, floating, getTabbableContent]);\n  React.useEffect(() => {\n    if (disabled) return;\n    if (!closeOnFocusOut) return;\n\n    // In Safari, buttons lose focus when pressing them.\n    function handlePointerDown() {\n      isPointerDownRef.current = true;\n      setTimeout(() => {\n        isPointerDownRef.current = false;\n      });\n    }\n    function handleFocusOutside(event) {\n      const relatedTarget = event.relatedTarget;\n      const currentTarget = event.currentTarget;\n      const target = getTarget$1(event);\n      queueMicrotask(() => {\n        const nodeId = getNodeId();\n        const movedToUnrelatedNode = !(contains$1(domReference, relatedTarget) || contains$1(floating, relatedTarget) || contains$1(relatedTarget, floating) || contains$1(portalContext == null ? void 0 : portalContext.portalNode, relatedTarget) || relatedTarget != null && relatedTarget.hasAttribute(createAttribute('focus-guard')) || tree && (getNodeChildren$1(tree.nodesRef.current, nodeId).find(node => {\n          var _node$context, _node$context2;\n          return contains$1((_node$context = node.context) == null ? void 0 : _node$context.elements.floating, relatedTarget) || contains$1((_node$context2 = node.context) == null ? void 0 : _node$context2.elements.domReference, relatedTarget);\n        }) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => {\n          var _node$context3, _node$context4, _node$context5;\n          return [(_node$context3 = node.context) == null ? void 0 : _node$context3.elements.floating, getFloatingFocusElement((_node$context4 = node.context) == null ? void 0 : _node$context4.elements.floating)].includes(relatedTarget) || ((_node$context5 = node.context) == null ? void 0 : _node$context5.elements.domReference) === relatedTarget;\n        })));\n        if (currentTarget === domReference && floatingFocusElement) {\n          handleTabIndex(floatingFocusElement, orderRef);\n        }\n\n        // Restore focus to the previous tabbable element index to prevent\n        // focus from being lost outside the floating tree.\n        if (restoreFocus && currentTarget !== domReference && !(target != null && target.isConnected) && activeElement(getDocument$1(floatingFocusElement)) === getDocument$1(floatingFocusElement).body) {\n          // Let `FloatingPortal` effect knows that focus is still inside the\n          // floating tree.\n          if (isHTMLElement(floatingFocusElement)) {\n            floatingFocusElement.focus();\n          }\n          const prevTabbableIndex = tabbableIndexRef.current;\n          const tabbableContent = getTabbableContent();\n          const nodeToFocus = tabbableContent[prevTabbableIndex] || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;\n          if (isHTMLElement(nodeToFocus)) {\n            nodeToFocus.focus();\n          }\n        }\n\n        // https://github.com/floating-ui/floating-ui/issues/3060\n        if (dataRef.current.insideReactTree) {\n          dataRef.current.insideReactTree = false;\n          return;\n        }\n\n        // Focus did not move inside the floating tree, and there are no tabbable\n        // portal guards to handle closing.\n        if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current &&\n        // Fix React 18 Strict Mode returnFocus due to double rendering.\n        relatedTarget !== getPreviouslyFocusedElement()) {\n          preventReturnFocusRef.current = true;\n          onOpenChange(false, event, 'focus-out');\n        }\n      });\n    }\n    const shouldHandleBlurCapture = Boolean(!tree && portalContext);\n    function markInsideReactTree() {\n      clearTimeoutIfSet(blurTimeoutRef);\n      dataRef.current.insideReactTree = true;\n      blurTimeoutRef.current = window.setTimeout(() => {\n        dataRef.current.insideReactTree = false;\n      });\n    }\n    if (floating && isHTMLElement(domReference)) {\n      domReference.addEventListener('focusout', handleFocusOutside);\n      domReference.addEventListener('pointerdown', handlePointerDown);\n      floating.addEventListener('focusout', handleFocusOutside);\n      if (shouldHandleBlurCapture) {\n        floating.addEventListener('focusout', markInsideReactTree, true);\n      }\n      return () => {\n        domReference.removeEventListener('focusout', handleFocusOutside);\n        domReference.removeEventListener('pointerdown', handlePointerDown);\n        floating.removeEventListener('focusout', handleFocusOutside);\n        if (shouldHandleBlurCapture) {\n          floating.removeEventListener('focusout', markInsideReactTree, true);\n        }\n      };\n    }\n  }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, onOpenChange, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef]);\n  const beforeGuardRef = React.useRef(null);\n  const afterGuardRef = React.useRef(null);\n  const mergedBeforeGuardRef = useLiteMergeRefs([beforeGuardRef, portalContext == null ? void 0 : portalContext.beforeInsideRef]);\n  const mergedAfterGuardRef = useLiteMergeRefs([afterGuardRef, portalContext == null ? void 0 : portalContext.afterInsideRef]);\n  React.useEffect(() => {\n    var _portalContext$portal, _ancestors$find;\n    if (disabled) return;\n    if (!floating) return;\n\n    // Don't hide portals nested within the parent portal.\n    const portalNodes = Array.from((portalContext == null || (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll(\"[\" + createAttribute('portal') + \"]\")) || []);\n    const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];\n    const rootAncestorComboboxDomReference = (_ancestors$find = ancestors.find(node => {\n      var _node$context6;\n      return isTypeableCombobox(((_node$context6 = node.context) == null ? void 0 : _node$context6.elements.domReference) || null);\n    })) == null || (_ancestors$find = _ancestors$find.context) == null ? void 0 : _ancestors$find.elements.domReference;\n    const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, ...getInsideElements(), startDismissButtonRef.current, endDismissButtonRef.current, beforeGuardRef.current, afterGuardRef.current, portalContext == null ? void 0 : portalContext.beforeOutsideRef.current, portalContext == null ? void 0 : portalContext.afterOutsideRef.current, orderRef.current.includes('reference') || isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);\n    const cleanup = modal || isUntrappedTypeableCombobox ? markOthers(insideElements, !useInert, useInert) : markOthers(insideElements);\n    return () => {\n      cleanup();\n    };\n  }, [disabled, domReference, floating, modal, orderRef, portalContext, isUntrappedTypeableCombobox, guards, useInert, tree, getNodeId, getInsideElements]);\n  useModernLayoutEffect(() => {\n    if (disabled || !isHTMLElement(floatingFocusElement)) return;\n    const doc = getDocument$1(floatingFocusElement);\n    const previouslyFocusedElement = activeElement(doc);\n\n    // Wait for any layout effect state setters to execute to set `tabIndex`.\n    queueMicrotask(() => {\n      const focusableElements = getTabbableElements(floatingFocusElement);\n      const initialFocusValue = initialFocusRef.current;\n      const elToFocus = (typeof initialFocusValue === 'number' ? focusableElements[initialFocusValue] : initialFocusValue.current) || floatingFocusElement;\n      const focusAlreadyInsideFloatingEl = contains$1(floatingFocusElement, previouslyFocusedElement);\n      if (!ignoreInitialFocus && !focusAlreadyInsideFloatingEl && open) {\n        enqueueFocus(elToFocus, {\n          preventScroll: elToFocus === floatingFocusElement\n        });\n      }\n    });\n  }, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableElements, initialFocusRef]);\n  useModernLayoutEffect(() => {\n    if (disabled || !floatingFocusElement) return;\n    const doc = getDocument$1(floatingFocusElement);\n    const previouslyFocusedElement = activeElement(doc);\n    addPreviouslyFocusedElement(previouslyFocusedElement);\n\n    // Dismissing via outside press should always ignore `returnFocus` to\n    // prevent unwanted scrolling.\n    function onOpenChange(_ref) {\n      let {\n        reason,\n        event,\n        nested\n      } = _ref;\n      if (['hover', 'safe-polygon'].includes(reason) && event.type === 'mouseleave') {\n        preventReturnFocusRef.current = true;\n      }\n      if (reason !== 'outside-press') return;\n      if (nested) {\n        preventReturnFocusRef.current = false;\n      } else if (isVirtualClick(event) || isVirtualPointerEvent(event)) {\n        preventReturnFocusRef.current = false;\n      } else {\n        let isPreventScrollSupported = false;\n        document.createElement('div').focus({\n          get preventScroll() {\n            isPreventScrollSupported = true;\n            return false;\n          }\n        });\n        if (isPreventScrollSupported) {\n          preventReturnFocusRef.current = false;\n        } else {\n          preventReturnFocusRef.current = true;\n        }\n      }\n    }\n    events.on('openchange', onOpenChange);\n    const fallbackEl = doc.createElement('span');\n    fallbackEl.setAttribute('tabindex', '-1');\n    fallbackEl.setAttribute('aria-hidden', 'true');\n    Object.assign(fallbackEl.style, HIDDEN_STYLES);\n    if (isInsidePortal && domReference) {\n      domReference.insertAdjacentElement('afterend', fallbackEl);\n    }\n    function getReturnElement() {\n      if (typeof returnFocusRef.current === 'boolean') {\n        const el = domReference || getPreviouslyFocusedElement();\n        return el && el.isConnected ? el : fallbackEl;\n      }\n      return returnFocusRef.current.current || fallbackEl;\n    }\n    return () => {\n      events.off('openchange', onOpenChange);\n      const activeEl = activeElement(doc);\n      const isFocusInsideFloatingTree = contains$1(floating, activeEl) || tree && getNodeChildren$1(tree.nodesRef.current, getNodeId(), false).some(node => {\n        var _node$context7;\n        return contains$1((_node$context7 = node.context) == null ? void 0 : _node$context7.elements.floating, activeEl);\n      });\n      const returnElement = getReturnElement();\n      queueMicrotask(() => {\n        // This is `returnElement`, if it's tabbable, or its first tabbable child.\n        const tabbableReturnElement = getFirstTabbableElement(returnElement);\n        if (\n        // eslint-disable-next-line react-hooks/exhaustive-deps\n        returnFocusRef.current && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (\n        // If the focus moved somewhere else after mount, avoid returning focus\n        // since it likely entered a different element which should be\n        // respected: https://github.com/floating-ui/floating-ui/issues/2607\n        tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {\n          tabbableReturnElement.focus({\n            preventScroll: true\n          });\n        }\n        fallbackEl.remove();\n      });\n    };\n  }, [disabled, floating, floatingFocusElement, returnFocusRef, dataRef, events, tree, isInsidePortal, domReference, getNodeId]);\n  React.useEffect(() => {\n    // The `returnFocus` cleanup behavior is inside a microtask; ensure we\n    // wait for it to complete before resetting the flag.\n    queueMicrotask(() => {\n      preventReturnFocusRef.current = false;\n    });\n    return () => {\n      queueMicrotask(clearDisconnectedPreviouslyFocusedElements);\n    };\n  }, [disabled]);\n\n  // Synchronize the `context` & `modal` value to the FloatingPortal context.\n  // It will decide whether or not it needs to render its own guards.\n  useModernLayoutEffect(() => {\n    if (disabled) return;\n    if (!portalContext) return;\n    portalContext.setFocusManagerState({\n      modal,\n      closeOnFocusOut,\n      open,\n      onOpenChange,\n      domReference\n    });\n    return () => {\n      portalContext.setFocusManagerState(null);\n    };\n  }, [disabled, portalContext, modal, open, onOpenChange, closeOnFocusOut, domReference]);\n  useModernLayoutEffect(() => {\n    if (disabled) return;\n    if (!floatingFocusElement) return;\n    handleTabIndex(floatingFocusElement, orderRef);\n  }, [disabled, floatingFocusElement, orderRef]);\n  function renderDismissButton(location) {\n    if (disabled || !visuallyHiddenDismiss || !modal) {\n      return null;\n    }\n    return /*#__PURE__*/jsx(VisuallyHiddenDismiss, {\n      ref: location === 'start' ? startDismissButtonRef : endDismissButtonRef,\n      onClick: event => onOpenChange(false, event.nativeEvent),\n      children: typeof visuallyHiddenDismiss === 'string' ? visuallyHiddenDismiss : 'Dismiss'\n    });\n  }\n  const shouldRenderGuards = !disabled && guards && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);\n  return /*#__PURE__*/jsxs(Fragment, {\n    children: [shouldRenderGuards && /*#__PURE__*/jsx(FocusGuard, {\n      \"data-type\": \"inside\",\n      ref: mergedBeforeGuardRef,\n      onFocus: event => {\n        if (modal) {\n          const els = getTabbableElements();\n          enqueueFocus(order[0] === 'reference' ? els[0] : els[els.length - 1]);\n        } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {\n          preventReturnFocusRef.current = false;\n          if (isOutsideEvent(event, portalContext.portalNode)) {\n            const nextTabbable = getNextTabbable(domReference);\n            nextTabbable == null || nextTabbable.focus();\n          } else {\n            var _portalContext$before;\n            (_portalContext$before = portalContext.beforeOutsideRef.current) == null || _portalContext$before.focus();\n          }\n        }\n      }\n    }), !isUntrappedTypeableCombobox && renderDismissButton('start'), children, renderDismissButton('end'), shouldRenderGuards && /*#__PURE__*/jsx(FocusGuard, {\n      \"data-type\": \"inside\",\n      ref: mergedAfterGuardRef,\n      onFocus: event => {\n        if (modal) {\n          enqueueFocus(getTabbableElements()[0]);\n        } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {\n          if (closeOnFocusOut) {\n            preventReturnFocusRef.current = true;\n          }\n          if (isOutsideEvent(event, portalContext.portalNode)) {\n            const prevTabbable = getPreviousTabbable(domReference);\n            prevTabbable == null || prevTabbable.focus();\n          } else {\n            var _portalContext$afterO;\n            (_portalContext$afterO = portalContext.afterOutsideRef.current) == null || _portalContext$afterO.focus();\n          }\n        }\n      }\n    })]\n  });\n}\n\nlet lockCount = 0;\nconst scrollbarProperty = '--floating-ui-scrollbar-width';\nfunction enableScrollLock() {\n  const platform = getPlatform();\n  const isIOS = /iP(hone|ad|od)|iOS/.test(platform) ||\n  // iPads can claim to be MacIntel\n  platform === 'MacIntel' && navigator.maxTouchPoints > 1;\n  const bodyStyle = document.body.style;\n  // RTL <body> scrollbar\n  const scrollbarX = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft;\n  const paddingProp = scrollbarX ? 'paddingLeft' : 'paddingRight';\n  const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n  const scrollX = bodyStyle.left ? parseFloat(bodyStyle.left) : window.scrollX;\n  const scrollY = bodyStyle.top ? parseFloat(bodyStyle.top) : window.scrollY;\n  bodyStyle.overflow = 'hidden';\n  bodyStyle.setProperty(scrollbarProperty, scrollbarWidth + \"px\");\n  if (scrollbarWidth) {\n    bodyStyle[paddingProp] = scrollbarWidth + \"px\";\n  }\n\n  // Only iOS doesn't respect `overflow: hidden` on document.body, and this\n  // technique has fewer side effects.\n  if (isIOS) {\n    var _window$visualViewpor, _window$visualViewpor2;\n    // iOS 12 does not support `visualViewport`.\n    const offsetLeft = ((_window$visualViewpor = window.visualViewport) == null ? void 0 : _window$visualViewpor.offsetLeft) || 0;\n    const offsetTop = ((_window$visualViewpor2 = window.visualViewport) == null ? void 0 : _window$visualViewpor2.offsetTop) || 0;\n    Object.assign(bodyStyle, {\n      position: 'fixed',\n      top: -(scrollY - Math.floor(offsetTop)) + \"px\",\n      left: -(scrollX - Math.floor(offsetLeft)) + \"px\",\n      right: '0'\n    });\n  }\n  return () => {\n    Object.assign(bodyStyle, {\n      overflow: '',\n      [paddingProp]: ''\n    });\n    bodyStyle.removeProperty(scrollbarProperty);\n    if (isIOS) {\n      Object.assign(bodyStyle, {\n        position: '',\n        top: '',\n        left: '',\n        right: ''\n      });\n      window.scrollTo(scrollX, scrollY);\n    }\n  };\n}\nlet cleanup = () => {};\n\n/**\n * Provides base styling for a fixed overlay element to dim content or block\n * pointer events behind a floating element.\n * It's a regular `<div>`, so it can be styled via any CSS solution you prefer.\n * @see https://floating-ui.com/docs/FloatingOverlay\n */\nconst FloatingOverlay = /*#__PURE__*/React.forwardRef(function FloatingOverlay(props, ref) {\n  const {\n    lockScroll = false,\n    ...rest\n  } = props;\n  useModernLayoutEffect(() => {\n    if (!lockScroll) return;\n    lockCount++;\n    if (lockCount === 1) {\n      cleanup = enableScrollLock();\n    }\n    return () => {\n      lockCount--;\n      if (lockCount === 0) {\n        cleanup();\n      }\n    };\n  }, [lockScroll]);\n  return /*#__PURE__*/jsx(\"div\", {\n    ref: ref,\n    ...rest,\n    style: {\n      position: 'fixed',\n      overflow: 'auto',\n      top: 0,\n      right: 0,\n      bottom: 0,\n      left: 0,\n      ...rest.style\n    }\n  });\n});\n\nfunction isButtonTarget(event) {\n  return isHTMLElement(event.target) && event.target.tagName === 'BUTTON';\n}\nfunction isAnchorTarget(event) {\n  return isHTMLElement(event.target) && event.target.tagName === 'A';\n}\nfunction isSpaceIgnored(element) {\n  return isTypeableElement(element);\n}\n/**\n * Opens or closes the floating element when clicking the reference element.\n * @see https://floating-ui.com/docs/useClick\n */\nfunction useClick(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    dataRef,\n    elements: {\n      domReference\n    }\n  } = context;\n  const {\n    enabled = true,\n    event: eventOption = 'click',\n    toggle = true,\n    ignoreMouse = false,\n    keyboardHandlers = true,\n    stickIfOpen = true\n  } = props;\n  const pointerTypeRef = React.useRef();\n  const didKeyDownRef = React.useRef(false);\n  const reference = React.useMemo(() => ({\n    onPointerDown(event) {\n      pointerTypeRef.current = event.pointerType;\n    },\n    onMouseDown(event) {\n      const pointerType = pointerTypeRef.current;\n\n      // Ignore all buttons except for the \"main\" button.\n      // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button\n      if (event.button !== 0) return;\n      if (eventOption === 'click') return;\n      if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;\n      if (open && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === 'mousedown' : true)) {\n        onOpenChange(false, event.nativeEvent, 'click');\n      } else {\n        // Prevent stealing focus from the floating element\n        event.preventDefault();\n        onOpenChange(true, event.nativeEvent, 'click');\n      }\n    },\n    onClick(event) {\n      const pointerType = pointerTypeRef.current;\n      if (eventOption === 'mousedown' && pointerTypeRef.current) {\n        pointerTypeRef.current = undefined;\n        return;\n      }\n      if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;\n      if (open && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === 'click' : true)) {\n        onOpenChange(false, event.nativeEvent, 'click');\n      } else {\n        onOpenChange(true, event.nativeEvent, 'click');\n      }\n    },\n    onKeyDown(event) {\n      pointerTypeRef.current = undefined;\n      if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event)) {\n        return;\n      }\n      if (event.key === ' ' && !isSpaceIgnored(domReference)) {\n        // Prevent scrolling\n        event.preventDefault();\n        didKeyDownRef.current = true;\n      }\n      if (isAnchorTarget(event)) {\n        return;\n      }\n      if (event.key === 'Enter') {\n        if (open && toggle) {\n          onOpenChange(false, event.nativeEvent, 'click');\n        } else {\n          onOpenChange(true, event.nativeEvent, 'click');\n        }\n      }\n    },\n    onKeyUp(event) {\n      if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event) || isSpaceIgnored(domReference)) {\n        return;\n      }\n      if (event.key === ' ' && didKeyDownRef.current) {\n        didKeyDownRef.current = false;\n        if (open && toggle) {\n          onOpenChange(false, event.nativeEvent, 'click');\n        } else {\n          onOpenChange(true, event.nativeEvent, 'click');\n        }\n      }\n    }\n  }), [dataRef, domReference, eventOption, ignoreMouse, keyboardHandlers, onOpenChange, open, stickIfOpen, toggle]);\n  return React.useMemo(() => enabled ? {\n    reference\n  } : {}, [enabled, reference]);\n}\n\nfunction createVirtualElement(domElement, data) {\n  let offsetX = null;\n  let offsetY = null;\n  let isAutoUpdateEvent = false;\n  return {\n    contextElement: domElement || undefined,\n    getBoundingClientRect() {\n      var _data$dataRef$current;\n      const domRect = (domElement == null ? void 0 : domElement.getBoundingClientRect()) || {\n        width: 0,\n        height: 0,\n        x: 0,\n        y: 0\n      };\n      const isXAxis = data.axis === 'x' || data.axis === 'both';\n      const isYAxis = data.axis === 'y' || data.axis === 'both';\n      const canTrackCursorOnAutoUpdate = ['mouseenter', 'mousemove'].includes(((_data$dataRef$current = data.dataRef.current.openEvent) == null ? void 0 : _data$dataRef$current.type) || '') && data.pointerType !== 'touch';\n      let width = domRect.width;\n      let height = domRect.height;\n      let x = domRect.x;\n      let y = domRect.y;\n      if (offsetX == null && data.x && isXAxis) {\n        offsetX = domRect.x - data.x;\n      }\n      if (offsetY == null && data.y && isYAxis) {\n        offsetY = domRect.y - data.y;\n      }\n      x -= offsetX || 0;\n      y -= offsetY || 0;\n      width = 0;\n      height = 0;\n      if (!isAutoUpdateEvent || canTrackCursorOnAutoUpdate) {\n        width = data.axis === 'y' ? domRect.width : 0;\n        height = data.axis === 'x' ? domRect.height : 0;\n        x = isXAxis && data.x != null ? data.x : x;\n        y = isYAxis && data.y != null ? data.y : y;\n      } else if (isAutoUpdateEvent && !canTrackCursorOnAutoUpdate) {\n        height = data.axis === 'x' ? domRect.height : height;\n        width = data.axis === 'y' ? domRect.width : width;\n      }\n      isAutoUpdateEvent = true;\n      return {\n        width,\n        height,\n        x,\n        y,\n        top: y,\n        right: x + width,\n        bottom: y + height,\n        left: x\n      };\n    }\n  };\n}\nfunction isMouseBasedEvent(event) {\n  return event != null && event.clientX != null;\n}\n/**\n * Positions the floating element relative to a client point (in the viewport),\n * such as the mouse position. By default, it follows the mouse cursor.\n * @see https://floating-ui.com/docs/useClientPoint\n */\nfunction useClientPoint(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    dataRef,\n    elements: {\n      floating,\n      domReference\n    },\n    refs\n  } = context;\n  const {\n    enabled = true,\n    axis = 'both',\n    x = null,\n    y = null\n  } = props;\n  const initialRef = React.useRef(false);\n  const cleanupListenerRef = React.useRef(null);\n  const [pointerType, setPointerType] = React.useState();\n  const [reactive, setReactive] = React.useState([]);\n  const setReference = useEffectEvent((x, y) => {\n    if (initialRef.current) return;\n\n    // Prevent setting if the open event was not a mouse-like one\n    // (e.g. focus to open, then hover over the reference element).\n    // Only apply if the event exists.\n    if (dataRef.current.openEvent && !isMouseBasedEvent(dataRef.current.openEvent)) {\n      return;\n    }\n    refs.setPositionReference(createVirtualElement(domReference, {\n      x,\n      y,\n      axis,\n      dataRef,\n      pointerType\n    }));\n  });\n  const handleReferenceEnterOrMove = useEffectEvent(event => {\n    if (x != null || y != null) return;\n    if (!open) {\n      setReference(event.clientX, event.clientY);\n    } else if (!cleanupListenerRef.current) {\n      // If there's no cleanup, there's no listener, but we want to ensure\n      // we add the listener if the cursor landed on the floating element and\n      // then back on the reference (i.e. it's interactive).\n      setReactive([]);\n    }\n  });\n\n  // If the pointer is a mouse-like pointer, we want to continue following the\n  // mouse even if the floating element is transitioning out. On touch\n  // devices, this is undesirable because the floating element will move to\n  // the dismissal touch point.\n  const openCheck = isMouseLikePointerType(pointerType) ? floating : open;\n  const addListener = React.useCallback(() => {\n    // Explicitly specified `x`/`y` coordinates shouldn't add a listener.\n    if (!openCheck || !enabled || x != null || y != null) return;\n    const win = getWindow(floating);\n    function handleMouseMove(event) {\n      const target = getTarget$1(event);\n      if (!contains$1(floating, target)) {\n        setReference(event.clientX, event.clientY);\n      } else {\n        win.removeEventListener('mousemove', handleMouseMove);\n        cleanupListenerRef.current = null;\n      }\n    }\n    if (!dataRef.current.openEvent || isMouseBasedEvent(dataRef.current.openEvent)) {\n      win.addEventListener('mousemove', handleMouseMove);\n      const cleanup = () => {\n        win.removeEventListener('mousemove', handleMouseMove);\n        cleanupListenerRef.current = null;\n      };\n      cleanupListenerRef.current = cleanup;\n      return cleanup;\n    }\n    refs.setPositionReference(domReference);\n  }, [openCheck, enabled, x, y, floating, dataRef, refs, domReference, setReference]);\n  React.useEffect(() => {\n    return addListener();\n  }, [addListener, reactive]);\n  React.useEffect(() => {\n    if (enabled && !floating) {\n      initialRef.current = false;\n    }\n  }, [enabled, floating]);\n  React.useEffect(() => {\n    if (!enabled && open) {\n      initialRef.current = true;\n    }\n  }, [enabled, open]);\n  useModernLayoutEffect(() => {\n    if (enabled && (x != null || y != null)) {\n      initialRef.current = false;\n      setReference(x, y);\n    }\n  }, [enabled, x, y, setReference]);\n  const reference = React.useMemo(() => {\n    function setPointerTypeRef(_ref) {\n      let {\n        pointerType\n      } = _ref;\n      setPointerType(pointerType);\n    }\n    return {\n      onPointerDown: setPointerTypeRef,\n      onPointerEnter: setPointerTypeRef,\n      onMouseMove: handleReferenceEnterOrMove,\n      onMouseEnter: handleReferenceEnterOrMove\n    };\n  }, [handleReferenceEnterOrMove]);\n  return React.useMemo(() => enabled ? {\n    reference\n  } : {}, [enabled, reference]);\n}\n\nconst bubbleHandlerKeys = {\n  pointerdown: 'onPointerDown',\n  mousedown: 'onMouseDown',\n  click: 'onClick'\n};\nconst captureHandlerKeys = {\n  pointerdown: 'onPointerDownCapture',\n  mousedown: 'onMouseDownCapture',\n  click: 'onClickCapture'\n};\nconst normalizeProp = normalizable => {\n  var _normalizable$escapeK, _normalizable$outside;\n  return {\n    escapeKey: typeof normalizable === 'boolean' ? normalizable : (_normalizable$escapeK = normalizable == null ? void 0 : normalizable.escapeKey) != null ? _normalizable$escapeK : false,\n    outsidePress: typeof normalizable === 'boolean' ? normalizable : (_normalizable$outside = normalizable == null ? void 0 : normalizable.outsidePress) != null ? _normalizable$outside : true\n  };\n};\n/**\n * Closes the floating element when a dismissal is requested — by default, when\n * the user presses the `escape` key or outside of the floating element.\n * @see https://floating-ui.com/docs/useDismiss\n */\nfunction useDismiss(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    elements,\n    dataRef\n  } = context;\n  const {\n    enabled = true,\n    escapeKey = true,\n    outsidePress: unstable_outsidePress = true,\n    outsidePressEvent = 'pointerdown',\n    referencePress = false,\n    referencePressEvent = 'pointerdown',\n    ancestorScroll = false,\n    bubbles,\n    capture\n  } = props;\n  const tree = useFloatingTree();\n  const outsidePressFn = useEffectEvent(typeof unstable_outsidePress === 'function' ? unstable_outsidePress : () => false);\n  const outsidePress = typeof unstable_outsidePress === 'function' ? outsidePressFn : unstable_outsidePress;\n  const endedOrStartedInsideRef = React.useRef(false);\n  const {\n    escapeKey: escapeKeyBubbles,\n    outsidePress: outsidePressBubbles\n  } = normalizeProp(bubbles);\n  const {\n    escapeKey: escapeKeyCapture,\n    outsidePress: outsidePressCapture\n  } = normalizeProp(capture);\n  const isComposingRef = React.useRef(false);\n  const closeOnEscapeKeyDown = useEffectEvent(event => {\n    var _dataRef$current$floa;\n    if (!open || !enabled || !escapeKey || event.key !== 'Escape') {\n      return;\n    }\n\n    // Wait until IME is settled. Pressing `Escape` while composing should\n    // close the compose menu, but not the floating element.\n    if (isComposingRef.current) {\n      return;\n    }\n    const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId;\n    const children = tree ? getNodeChildren$1(tree.nodesRef.current, nodeId) : [];\n    if (!escapeKeyBubbles) {\n      event.stopPropagation();\n      if (children.length > 0) {\n        let shouldDismiss = true;\n        children.forEach(child => {\n          var _child$context;\n          if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) {\n            shouldDismiss = false;\n            return;\n          }\n        });\n        if (!shouldDismiss) {\n          return;\n        }\n      }\n    }\n    onOpenChange(false, isReactEvent(event) ? event.nativeEvent : event, 'escape-key');\n  });\n  const closeOnEscapeKeyDownCapture = useEffectEvent(event => {\n    var _getTarget2;\n    const callback = () => {\n      var _getTarget;\n      closeOnEscapeKeyDown(event);\n      (_getTarget = getTarget$1(event)) == null || _getTarget.removeEventListener('keydown', callback);\n    };\n    (_getTarget2 = getTarget$1(event)) == null || _getTarget2.addEventListener('keydown', callback);\n  });\n  const closeOnPressOutside = useEffectEvent(event => {\n    var _dataRef$current$floa2;\n    // Given developers can stop the propagation of the synthetic event,\n    // we can only be confident with a positive value.\n    const insideReactTree = dataRef.current.insideReactTree;\n    dataRef.current.insideReactTree = false;\n\n    // When click outside is lazy (`click` event), handle dragging.\n    // Don't close if:\n    // - The click started inside the floating element.\n    // - The click ended inside the floating element.\n    const endedOrStartedInside = endedOrStartedInsideRef.current;\n    endedOrStartedInsideRef.current = false;\n    if (outsidePressEvent === 'click' && endedOrStartedInside) {\n      return;\n    }\n    if (insideReactTree) {\n      return;\n    }\n    if (typeof outsidePress === 'function' && !outsidePress(event)) {\n      return;\n    }\n    const target = getTarget$1(event);\n    const inertSelector = \"[\" + createAttribute('inert') + \"]\";\n    const markers = getDocument$1(elements.floating).querySelectorAll(inertSelector);\n    let targetRootAncestor = isElement(target) ? target : null;\n    while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {\n      const nextParent = getParentNode(targetRootAncestor);\n      if (isLastTraversableNode(nextParent) || !isElement(nextParent)) {\n        break;\n      }\n      targetRootAncestor = nextParent;\n    }\n\n    // Check if the click occurred on a third-party element injected after the\n    // floating element rendered.\n    if (markers.length && isElement(target) && !isRootElement(target) &&\n    // Clicked on a direct ancestor (e.g. FloatingOverlay).\n    !contains$1(target, elements.floating) &&\n    // If the target root element contains none of the markers, then the\n    // element was injected after the floating element rendered.\n    Array.from(markers).every(marker => !contains$1(targetRootAncestor, marker))) {\n      return;\n    }\n\n    // Check if the click occurred on the scrollbar\n    if (isHTMLElement(target) && floating) {\n      const lastTraversableNode = isLastTraversableNode(target);\n      const style = getComputedStyle(target);\n      const scrollRe = /auto|scroll/;\n      const isScrollableX = lastTraversableNode || scrollRe.test(style.overflowX);\n      const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);\n      const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;\n      const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;\n      const isRTL = style.direction === 'rtl';\n\n      // Check click position relative to scrollbar.\n      // In some browsers it is possible to change the <body> (or window)\n      // scrollbar to the left side, but is very rare and is difficult to\n      // check for. Plus, for modal dialogs with backdrops, it is more\n      // important that the backdrop is checked but not so much the window.\n      const pressedVerticalScrollbar = canScrollY && (isRTL ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);\n      const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;\n      if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {\n        return;\n      }\n    }\n    const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId;\n    const targetIsInsideChildren = tree && getNodeChildren$1(tree.nodesRef.current, nodeId).some(node => {\n      var _node$context;\n      return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);\n    });\n    if (isEventTargetWithin(event, elements.floating) || isEventTargetWithin(event, elements.domReference) || targetIsInsideChildren) {\n      return;\n    }\n    const children = tree ? getNodeChildren$1(tree.nodesRef.current, nodeId) : [];\n    if (children.length > 0) {\n      let shouldDismiss = true;\n      children.forEach(child => {\n        var _child$context2;\n        if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) {\n          shouldDismiss = false;\n          return;\n        }\n      });\n      if (!shouldDismiss) {\n        return;\n      }\n    }\n    onOpenChange(false, event, 'outside-press');\n  });\n  const closeOnPressOutsideCapture = useEffectEvent(event => {\n    var _getTarget4;\n    const callback = () => {\n      var _getTarget3;\n      closeOnPressOutside(event);\n      (_getTarget3 = getTarget$1(event)) == null || _getTarget3.removeEventListener(outsidePressEvent, callback);\n    };\n    (_getTarget4 = getTarget$1(event)) == null || _getTarget4.addEventListener(outsidePressEvent, callback);\n  });\n  React.useEffect(() => {\n    if (!open || !enabled) {\n      return;\n    }\n    dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;\n    dataRef.current.__outsidePressBubbles = outsidePressBubbles;\n    let compositionTimeout = -1;\n    function onScroll(event) {\n      onOpenChange(false, event, 'ancestor-scroll');\n    }\n    function handleCompositionStart() {\n      window.clearTimeout(compositionTimeout);\n      isComposingRef.current = true;\n    }\n    function handleCompositionEnd() {\n      // Safari fires `compositionend` before `keydown`, so we need to wait\n      // until the next tick to set `isComposing` to `false`.\n      // https://bugs.webkit.org/show_bug.cgi?id=165004\n      compositionTimeout = window.setTimeout(() => {\n        isComposingRef.current = false;\n      },\n      // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.\n      // Only apply to WebKit for the test to remain 0ms.\n      isWebKit() ? 5 : 0);\n    }\n    const doc = getDocument$1(elements.floating);\n    if (escapeKey) {\n      doc.addEventListener('keydown', escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);\n      doc.addEventListener('compositionstart', handleCompositionStart);\n      doc.addEventListener('compositionend', handleCompositionEnd);\n    }\n    outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);\n    let ancestors = [];\n    if (ancestorScroll) {\n      if (isElement(elements.domReference)) {\n        ancestors = getOverflowAncestors(elements.domReference);\n      }\n      if (isElement(elements.floating)) {\n        ancestors = ancestors.concat(getOverflowAncestors(elements.floating));\n      }\n      if (!isElement(elements.reference) && elements.reference && elements.reference.contextElement) {\n        ancestors = ancestors.concat(getOverflowAncestors(elements.reference.contextElement));\n      }\n    }\n\n    // Ignore the visual viewport for scrolling dismissal (allow pinch-zoom)\n    ancestors = ancestors.filter(ancestor => {\n      var _doc$defaultView;\n      return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);\n    });\n    ancestors.forEach(ancestor => {\n      ancestor.addEventListener('scroll', onScroll);\n    });\n    return () => {\n      if (escapeKey) {\n        doc.removeEventListener('keydown', escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);\n        doc.removeEventListener('compositionstart', handleCompositionStart);\n        doc.removeEventListener('compositionend', handleCompositionEnd);\n      }\n      outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);\n      ancestors.forEach(ancestor => {\n        ancestor.removeEventListener('scroll', onScroll);\n      });\n      window.clearTimeout(compositionTimeout);\n    };\n  }, [dataRef, elements, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]);\n  React.useEffect(() => {\n    dataRef.current.insideReactTree = false;\n  }, [dataRef, outsidePress, outsidePressEvent]);\n  const reference = React.useMemo(() => ({\n    onKeyDown: closeOnEscapeKeyDown,\n    ...(referencePress && {\n      [bubbleHandlerKeys[referencePressEvent]]: event => {\n        onOpenChange(false, event.nativeEvent, 'reference-press');\n      },\n      ...(referencePressEvent !== 'click' && {\n        onClick(event) {\n          onOpenChange(false, event.nativeEvent, 'reference-press');\n        }\n      })\n    })\n  }), [closeOnEscapeKeyDown, onOpenChange, referencePress, referencePressEvent]);\n  const floating = React.useMemo(() => {\n    function setMouseDownOrUpInside(event) {\n      if (event.button !== 0) {\n        return;\n      }\n      endedOrStartedInsideRef.current = true;\n    }\n    return {\n      onKeyDown: closeOnEscapeKeyDown,\n      onMouseDown: setMouseDownOrUpInside,\n      onMouseUp: setMouseDownOrUpInside,\n      [captureHandlerKeys[outsidePressEvent]]: () => {\n        dataRef.current.insideReactTree = true;\n      }\n    };\n  }, [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);\n  return React.useMemo(() => enabled ? {\n    reference,\n    floating\n  } : {}, [enabled, reference, floating]);\n}\n\nfunction useFloatingRootContext(options) {\n  const {\n    open = false,\n    onOpenChange: onOpenChangeProp,\n    elements: elementsProp\n  } = options;\n  const floatingId = useId();\n  const dataRef = React.useRef({});\n  const [events] = React.useState(() => createEventEmitter());\n  const nested = useFloatingParentNodeId() != null;\n  if (process.env.NODE_ENV !== \"production\") {\n    const optionDomReference = elementsProp.reference;\n    if (optionDomReference && !isElement(optionDomReference)) {\n      error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `refs.setPositionReference()`', 'instead.');\n    }\n  }\n  const [positionReference, setPositionReference] = React.useState(elementsProp.reference);\n  const onOpenChange = useEffectEvent((open, event, reason) => {\n    dataRef.current.openEvent = open ? event : undefined;\n    events.emit('openchange', {\n      open,\n      event,\n      reason,\n      nested\n    });\n    onOpenChangeProp == null || onOpenChangeProp(open, event, reason);\n  });\n  const refs = React.useMemo(() => ({\n    setPositionReference\n  }), []);\n  const elements = React.useMemo(() => ({\n    reference: positionReference || elementsProp.reference || null,\n    floating: elementsProp.floating || null,\n    domReference: elementsProp.reference\n  }), [positionReference, elementsProp.reference, elementsProp.floating]);\n  return React.useMemo(() => ({\n    dataRef,\n    open,\n    onOpenChange,\n    elements,\n    events,\n    floatingId,\n    refs\n  }), [open, onOpenChange, elements, events, floatingId, refs]);\n}\n\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(_temp) {\n  var _elementsOption$refer, _elementsOption$float;\n  let {\n    elements: elementsOption,\n    ...options\n  } = _temp === void 0 ? {} : _temp;\n  const {\n    nodeId\n  } = options;\n  const internalRootContext = useFloatingRootContext({\n    ...options,\n    elements: {\n      reference: (_elementsOption$refer = elementsOption == null ? void 0 : elementsOption.reference) != null ? _elementsOption$refer : null,\n      floating: (_elementsOption$float = elementsOption == null ? void 0 : elementsOption.floating) != null ? _elementsOption$float : null\n    }\n  });\n  const rootContext = options.rootContext || internalRootContext;\n  const computedElements = rootContext.elements;\n  const [_domReference, setDomReference] = React.useState(null);\n  const [positionReference, _setPositionReference] = React.useState(null);\n  const optionDomReference = computedElements == null ? void 0 : computedElements.domReference;\n  const domReference = optionDomReference || _domReference;\n  const domReferenceRef = React.useRef(null);\n  const tree = useFloatingTree();\n  useModernLayoutEffect(() => {\n    if (domReference) {\n      domReferenceRef.current = domReference;\n    }\n  }, [domReference]);\n  const position = useFloating$1({\n    ...options,\n    elements: {\n      ...computedElements,\n      ...(positionReference && {\n        reference: positionReference\n      })\n    }\n  });\n  const setPositionReference = React.useCallback(node => {\n    const computedPositionReference = isElement(node) ? {\n      getBoundingClientRect: () => node.getBoundingClientRect(),\n      getClientRects: () => node.getClientRects(),\n      contextElement: node\n    } : node;\n    // Store the positionReference in state if the DOM reference is specified externally via the\n    // `elements.reference` option. This ensures that it won't be overridden on future renders.\n    _setPositionReference(computedPositionReference);\n    position.refs.setReference(computedPositionReference);\n  }, [position.refs]);\n  const setReference = React.useCallback(node => {\n    if (isElement(node) || node === null) {\n      domReferenceRef.current = node;\n      setDomReference(node);\n    }\n\n    // Backwards-compatibility for passing a virtual element to `reference`\n    // after it has set the DOM reference.\n    if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n    // Don't allow setting virtual elements using the old technique back to\n    // `null` to support `positionReference` + an unstable `reference`\n    // callback ref.\n    node !== null && !isElement(node)) {\n      position.refs.setReference(node);\n    }\n  }, [position.refs]);\n  const refs = React.useMemo(() => ({\n    ...position.refs,\n    setReference,\n    setPositionReference,\n    domReference: domReferenceRef\n  }), [position.refs, setReference, setPositionReference]);\n  const elements = React.useMemo(() => ({\n    ...position.elements,\n    domReference: domReference\n  }), [position.elements, domReference]);\n  const context = React.useMemo(() => ({\n    ...position,\n    ...rootContext,\n    refs,\n    elements,\n    nodeId\n  }), [position, refs, elements, nodeId, rootContext]);\n  useModernLayoutEffect(() => {\n    rootContext.dataRef.current.floatingContext = context;\n    const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId);\n    if (node) {\n      node.context = context;\n    }\n  });\n  return React.useMemo(() => ({\n    ...position,\n    context,\n    refs,\n    elements\n  }), [position, refs, elements, context]);\n}\n\nfunction isMacSafari() {\n  return isMac() && isSafari();\n}\n/**\n * Opens the floating element while the reference element has focus, like CSS\n * `:focus`.\n * @see https://floating-ui.com/docs/useFocus\n */\nfunction useFocus(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    onOpenChange,\n    events,\n    dataRef,\n    elements\n  } = context;\n  const {\n    enabled = true,\n    visibleOnly = true\n  } = props;\n  const blockFocusRef = React.useRef(false);\n  const timeoutRef = React.useRef(-1);\n  const keyboardModalityRef = React.useRef(true);\n  React.useEffect(() => {\n    if (!enabled) return;\n    const win = getWindow(elements.domReference);\n\n    // If the reference was focused and the user left the tab/window, and the\n    // floating element was not open, the focus should be blocked when they\n    // return to the tab/window.\n    function onBlur() {\n      if (!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument$1(elements.domReference))) {\n        blockFocusRef.current = true;\n      }\n    }\n    function onKeyDown() {\n      keyboardModalityRef.current = true;\n    }\n    function onPointerDown() {\n      keyboardModalityRef.current = false;\n    }\n    win.addEventListener('blur', onBlur);\n    if (isMacSafari()) {\n      win.addEventListener('keydown', onKeyDown, true);\n      win.addEventListener('pointerdown', onPointerDown, true);\n    }\n    return () => {\n      win.removeEventListener('blur', onBlur);\n      if (isMacSafari()) {\n        win.removeEventListener('keydown', onKeyDown, true);\n        win.removeEventListener('pointerdown', onPointerDown, true);\n      }\n    };\n  }, [elements.domReference, open, enabled]);\n  React.useEffect(() => {\n    if (!enabled) return;\n    function onOpenChange(_ref) {\n      let {\n        reason\n      } = _ref;\n      if (reason === 'reference-press' || reason === 'escape-key') {\n        blockFocusRef.current = true;\n      }\n    }\n    events.on('openchange', onOpenChange);\n    return () => {\n      events.off('openchange', onOpenChange);\n    };\n  }, [events, enabled]);\n  React.useEffect(() => {\n    return () => {\n      clearTimeoutIfSet(timeoutRef);\n    };\n  }, []);\n  const reference = React.useMemo(() => ({\n    onMouseLeave() {\n      blockFocusRef.current = false;\n    },\n    onFocus(event) {\n      if (blockFocusRef.current) return;\n      const target = getTarget$1(event.nativeEvent);\n      if (visibleOnly && isElement(target)) {\n        // Safari fails to match `:focus-visible` if focus was initially\n        // outside the document.\n        if (isMacSafari() && !event.relatedTarget) {\n          if (!keyboardModalityRef.current && !isTypeableElement(target)) {\n            return;\n          }\n        } else if (!matchesFocusVisible(target)) {\n          return;\n        }\n      }\n      onOpenChange(true, event.nativeEvent, 'focus');\n    },\n    onBlur(event) {\n      blockFocusRef.current = false;\n      const relatedTarget = event.relatedTarget;\n      const nativeEvent = event.nativeEvent;\n\n      // Hit the non-modal focus management portal guard. Focus will be\n      // moved into the floating element immediately after.\n      const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute(createAttribute('focus-guard')) && relatedTarget.getAttribute('data-type') === 'outside';\n\n      // Wait for the window blur listener to fire.\n      timeoutRef.current = window.setTimeout(() => {\n        var _dataRef$current$floa;\n        const activeEl = activeElement(elements.domReference ? elements.domReference.ownerDocument : document);\n\n        // Focus left the page, keep it open.\n        if (!relatedTarget && activeEl === elements.domReference) return;\n\n        // When focusing the reference element (e.g. regular click), then\n        // clicking into the floating element, prevent it from hiding.\n        // Note: it must be focusable, e.g. `tabindex=\"-1\"`.\n        // We can not rely on relatedTarget to point to the correct element\n        // as it will only point to the shadow host of the newly focused element\n        // and not the element that actually has received focus if it is located\n        // inside a shadow root.\n        if (contains$1((_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.refs.floating.current, activeEl) || contains$1(elements.domReference, activeEl) || movedToFocusGuard) {\n          return;\n        }\n        onOpenChange(false, nativeEvent, 'focus');\n      });\n    }\n  }), [dataRef, elements.domReference, onOpenChange, visibleOnly]);\n  return React.useMemo(() => enabled ? {\n    reference\n  } : {}, [enabled, reference]);\n}\n\nfunction mergeProps(userProps, propsList, elementKey) {\n  const map = new Map();\n  const isItem = elementKey === 'item';\n  let domUserProps = userProps;\n  if (isItem && userProps) {\n    const {\n      [ACTIVE_KEY]: _,\n      [SELECTED_KEY]: __,\n      ...validProps\n    } = userProps;\n    domUserProps = validProps;\n  }\n  return {\n    ...(elementKey === 'floating' && {\n      tabIndex: -1,\n      [FOCUSABLE_ATTRIBUTE]: ''\n    }),\n    ...domUserProps,\n    ...propsList.map(value => {\n      const propsOrGetProps = value ? value[elementKey] : null;\n      if (typeof propsOrGetProps === 'function') {\n        return userProps ? propsOrGetProps(userProps) : null;\n      }\n      return propsOrGetProps;\n    }).concat(userProps).reduce((acc, props) => {\n      if (!props) {\n        return acc;\n      }\n      Object.entries(props).forEach(_ref => {\n        let [key, value] = _ref;\n        if (isItem && [ACTIVE_KEY, SELECTED_KEY].includes(key)) {\n          return;\n        }\n        if (key.indexOf('on') === 0) {\n          if (!map.has(key)) {\n            map.set(key, []);\n          }\n          if (typeof value === 'function') {\n            var _map$get;\n            (_map$get = map.get(key)) == null || _map$get.push(value);\n            acc[key] = function () {\n              var _map$get2;\n              for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n                args[_key] = arguments[_key];\n              }\n              return (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.map(fn => fn(...args)).find(val => val !== undefined);\n            };\n          }\n        } else {\n          acc[key] = value;\n        }\n      });\n      return acc;\n    }, {})\n  };\n}\n/**\n * Merges an array of interaction hooks' props into prop getters, allowing\n * event handler functions to be composed together without overwriting one\n * another.\n * @see https://floating-ui.com/docs/useInteractions\n */\nfunction useInteractions(propsList) {\n  if (propsList === void 0) {\n    propsList = [];\n  }\n  const referenceDeps = propsList.map(key => key == null ? void 0 : key.reference);\n  const floatingDeps = propsList.map(key => key == null ? void 0 : key.floating);\n  const itemDeps = propsList.map(key => key == null ? void 0 : key.item);\n  const getReferenceProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'reference'),\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  referenceDeps);\n  const getFloatingProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'floating'),\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  floatingDeps);\n  const getItemProps = React.useCallback(userProps => mergeProps(userProps, propsList, 'item'),\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  itemDeps);\n  return React.useMemo(() => ({\n    getReferenceProps,\n    getFloatingProps,\n    getItemProps\n  }), [getReferenceProps, getFloatingProps, getItemProps]);\n}\n\nconst ESCAPE = 'Escape';\nfunction doSwitch(orientation, vertical, horizontal) {\n  switch (orientation) {\n    case 'vertical':\n      return vertical;\n    case 'horizontal':\n      return horizontal;\n    default:\n      return vertical || horizontal;\n  }\n}\nfunction isMainOrientationKey(key, orientation) {\n  const vertical = key === ARROW_UP || key === ARROW_DOWN;\n  const horizontal = key === ARROW_LEFT || key === ARROW_RIGHT;\n  return doSwitch(orientation, vertical, horizontal);\n}\nfunction isMainOrientationToEndKey(key, orientation, rtl) {\n  const vertical = key === ARROW_DOWN;\n  const horizontal = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n  return doSwitch(orientation, vertical, horizontal) || key === 'Enter' || key === ' ' || key === '';\n}\nfunction isCrossOrientationOpenKey(key, orientation, rtl) {\n  const vertical = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n  const horizontal = key === ARROW_DOWN;\n  return doSwitch(orientation, vertical, horizontal);\n}\nfunction isCrossOrientationCloseKey(key, orientation, rtl, cols) {\n  const vertical = rtl ? key === ARROW_RIGHT : key === ARROW_LEFT;\n  const horizontal = key === ARROW_UP;\n  if (orientation === 'both' || orientation === 'horizontal' && cols && cols > 1) {\n    return key === ESCAPE;\n  }\n  return doSwitch(orientation, vertical, horizontal);\n}\n/**\n * Adds arrow key-based navigation of a list of items, either using real DOM\n * focus or virtual focus.\n * @see https://floating-ui.com/docs/useListNavigation\n */\nfunction useListNavigation(context, props) {\n  const {\n    open,\n    onOpenChange,\n    elements,\n    floatingId\n  } = context;\n  const {\n    listRef,\n    activeIndex,\n    onNavigate: unstable_onNavigate = () => {},\n    enabled = true,\n    selectedIndex = null,\n    allowEscape = false,\n    loop = false,\n    nested = false,\n    rtl = false,\n    virtual = false,\n    focusItemOnOpen = 'auto',\n    focusItemOnHover = true,\n    openOnArrowKeyDown = true,\n    disabledIndices = undefined,\n    orientation = 'vertical',\n    parentOrientation,\n    cols = 1,\n    scrollItemIntoView = true,\n    virtualItemRef,\n    itemSizes,\n    dense = false\n  } = props;\n  if (process.env.NODE_ENV !== \"production\") {\n    if (allowEscape) {\n      if (!loop) {\n        warn('`useListNavigation` looping must be enabled to allow escaping.');\n      }\n      if (!virtual) {\n        warn('`useListNavigation` must be virtual to allow escaping.');\n      }\n    }\n    if (orientation === 'vertical' && cols > 1) {\n      warn('In grid list navigation mode (`cols` > 1), the `orientation` should', 'be either \"horizontal\" or \"both\".');\n    }\n  }\n  const floatingFocusElement = getFloatingFocusElement(elements.floating);\n  const floatingFocusElementRef = useLatestRef(floatingFocusElement);\n  const parentId = useFloatingParentNodeId();\n  const tree = useFloatingTree();\n  useModernLayoutEffect(() => {\n    context.dataRef.current.orientation = orientation;\n  }, [context, orientation]);\n  const onNavigate = useEffectEvent(() => {\n    unstable_onNavigate(indexRef.current === -1 ? null : indexRef.current);\n  });\n  const typeableComboboxReference = isTypeableCombobox(elements.domReference);\n  const focusItemOnOpenRef = React.useRef(focusItemOnOpen);\n  const indexRef = React.useRef(selectedIndex != null ? selectedIndex : -1);\n  const keyRef = React.useRef(null);\n  const isPointerModalityRef = React.useRef(true);\n  const previousOnNavigateRef = React.useRef(onNavigate);\n  const previousMountedRef = React.useRef(!!elements.floating);\n  const previousOpenRef = React.useRef(open);\n  const forceSyncFocusRef = React.useRef(false);\n  const forceScrollIntoViewRef = React.useRef(false);\n  const disabledIndicesRef = useLatestRef(disabledIndices);\n  const latestOpenRef = useLatestRef(open);\n  const scrollItemIntoViewRef = useLatestRef(scrollItemIntoView);\n  const selectedIndexRef = useLatestRef(selectedIndex);\n  const [activeId, setActiveId] = React.useState();\n  const [virtualId, setVirtualId] = React.useState();\n  const focusItem = useEffectEvent(() => {\n    function runFocus(item) {\n      if (virtual) {\n        var _item$id;\n        if ((_item$id = item.id) != null && _item$id.endsWith('-fui-option')) {\n          item.id = floatingId + \"-\" + Math.random().toString(16).slice(2, 10);\n        }\n        setActiveId(item.id);\n        tree == null || tree.events.emit('virtualfocus', item);\n        if (virtualItemRef) {\n          virtualItemRef.current = item;\n        }\n      } else {\n        enqueueFocus(item, {\n          sync: forceSyncFocusRef.current,\n          preventScroll: true\n        });\n      }\n    }\n    const initialItem = listRef.current[indexRef.current];\n    const forceScrollIntoView = forceScrollIntoViewRef.current;\n    if (initialItem) {\n      runFocus(initialItem);\n    }\n    const scheduler = forceSyncFocusRef.current ? v => v() : requestAnimationFrame;\n    scheduler(() => {\n      const waitedItem = listRef.current[indexRef.current] || initialItem;\n      if (!waitedItem) return;\n      if (!initialItem) {\n        runFocus(waitedItem);\n      }\n      const scrollIntoViewOptions = scrollItemIntoViewRef.current;\n      const shouldScrollIntoView = scrollIntoViewOptions && item && (forceScrollIntoView || !isPointerModalityRef.current);\n      if (shouldScrollIntoView) {\n        // JSDOM doesn't support `.scrollIntoView()` but it's widely supported\n        // by all browsers.\n        waitedItem.scrollIntoView == null || waitedItem.scrollIntoView(typeof scrollIntoViewOptions === 'boolean' ? {\n          block: 'nearest',\n          inline: 'nearest'\n        } : scrollIntoViewOptions);\n      }\n    });\n  });\n\n  // Sync `selectedIndex` to be the `activeIndex` upon opening the floating\n  // element. Also, reset `activeIndex` upon closing the floating element.\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (open && elements.floating) {\n      if (focusItemOnOpenRef.current && selectedIndex != null) {\n        // Regardless of the pointer modality, we want to ensure the selected\n        // item comes into view when the floating element is opened.\n        forceScrollIntoViewRef.current = true;\n        indexRef.current = selectedIndex;\n        onNavigate();\n      }\n    } else if (previousMountedRef.current) {\n      // Since the user can specify `onNavigate` conditionally\n      // (onNavigate: open ? setActiveIndex : setSelectedIndex),\n      // we store and call the previous function.\n      indexRef.current = -1;\n      previousOnNavigateRef.current();\n    }\n  }, [enabled, open, elements.floating, selectedIndex, onNavigate]);\n\n  // Sync `activeIndex` to be the focused item while the floating element is\n  // open.\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (!open) return;\n    if (!elements.floating) return;\n    if (activeIndex == null) {\n      forceSyncFocusRef.current = false;\n      if (selectedIndexRef.current != null) {\n        return;\n      }\n\n      // Reset while the floating element was open (e.g. the list changed).\n      if (previousMountedRef.current) {\n        indexRef.current = -1;\n        focusItem();\n      }\n\n      // Initial sync.\n      if ((!previousOpenRef.current || !previousMountedRef.current) && focusItemOnOpenRef.current && (keyRef.current != null || focusItemOnOpenRef.current === true && keyRef.current == null)) {\n        let runs = 0;\n        const waitForListPopulated = () => {\n          if (listRef.current[0] == null) {\n            // Avoid letting the browser paint if possible on the first try,\n            // otherwise use rAF. Don't try more than twice, since something\n            // is wrong otherwise.\n            if (runs < 2) {\n              const scheduler = runs ? requestAnimationFrame : queueMicrotask;\n              scheduler(waitForListPopulated);\n            }\n            runs++;\n          } else {\n            indexRef.current = keyRef.current == null || isMainOrientationToEndKey(keyRef.current, orientation, rtl) || nested ? getMinListIndex(listRef, disabledIndicesRef.current) : getMaxListIndex(listRef, disabledIndicesRef.current);\n            keyRef.current = null;\n            onNavigate();\n          }\n        };\n        waitForListPopulated();\n      }\n    } else if (!isIndexOutOfListBounds(listRef, activeIndex)) {\n      indexRef.current = activeIndex;\n      focusItem();\n      forceScrollIntoViewRef.current = false;\n    }\n  }, [enabled, open, elements.floating, activeIndex, selectedIndexRef, nested, listRef, orientation, rtl, onNavigate, focusItem, disabledIndicesRef]);\n\n  // Ensure the parent floating element has focus when a nested child closes\n  // to allow arrow key navigation to work after the pointer leaves the child.\n  useModernLayoutEffect(() => {\n    var _nodes$find;\n    if (!enabled || elements.floating || !tree || virtual || !previousMountedRef.current) {\n      return;\n    }\n    const nodes = tree.nodesRef.current;\n    const parent = (_nodes$find = nodes.find(node => node.id === parentId)) == null || (_nodes$find = _nodes$find.context) == null ? void 0 : _nodes$find.elements.floating;\n    const activeEl = activeElement(getDocument$1(elements.floating));\n    const treeContainsActiveEl = nodes.some(node => node.context && contains$1(node.context.elements.floating, activeEl));\n    if (parent && !treeContainsActiveEl && isPointerModalityRef.current) {\n      parent.focus({\n        preventScroll: true\n      });\n    }\n  }, [enabled, elements.floating, tree, parentId, virtual]);\n  useModernLayoutEffect(() => {\n    if (!enabled) return;\n    if (!tree) return;\n    if (!virtual) return;\n    if (parentId) return;\n    function handleVirtualFocus(item) {\n      setVirtualId(item.id);\n      if (virtualItemRef) {\n        virtualItemRef.current = item;\n      }\n    }\n    tree.events.on('virtualfocus', handleVirtualFocus);\n    return () => {\n      tree.events.off('virtualfocus', handleVirtualFocus);\n    };\n  }, [enabled, tree, virtual, parentId, virtualItemRef]);\n  useModernLayoutEffect(() => {\n    previousOnNavigateRef.current = onNavigate;\n    previousOpenRef.current = open;\n    previousMountedRef.current = !!elements.floating;\n  });\n  useModernLayoutEffect(() => {\n    if (!open) {\n      keyRef.current = null;\n      focusItemOnOpenRef.current = focusItemOnOpen;\n    }\n  }, [open, focusItemOnOpen]);\n  const hasActiveIndex = activeIndex != null;\n  const item = React.useMemo(() => {\n    function syncCurrentTarget(currentTarget) {\n      if (!latestOpenRef.current) return;\n      const index = listRef.current.indexOf(currentTarget);\n      if (index !== -1 && indexRef.current !== index) {\n        indexRef.current = index;\n        onNavigate();\n      }\n    }\n    const props = {\n      onFocus(_ref) {\n        let {\n          currentTarget\n        } = _ref;\n        forceSyncFocusRef.current = true;\n        syncCurrentTarget(currentTarget);\n      },\n      onClick: _ref2 => {\n        let {\n          currentTarget\n        } = _ref2;\n        return currentTarget.focus({\n          preventScroll: true\n        });\n      },\n      // Safari\n      onMouseMove(_ref3) {\n        let {\n          currentTarget\n        } = _ref3;\n        forceSyncFocusRef.current = true;\n        forceScrollIntoViewRef.current = false;\n        if (focusItemOnHover) {\n          syncCurrentTarget(currentTarget);\n        }\n      },\n      onPointerLeave(_ref4) {\n        let {\n          pointerType\n        } = _ref4;\n        if (!isPointerModalityRef.current || pointerType === 'touch') {\n          return;\n        }\n        forceSyncFocusRef.current = true;\n        if (!focusItemOnHover) {\n          return;\n        }\n        indexRef.current = -1;\n        onNavigate();\n        if (!virtual) {\n          var _floatingFocusElement;\n          (_floatingFocusElement = floatingFocusElementRef.current) == null || _floatingFocusElement.focus({\n            preventScroll: true\n          });\n        }\n      }\n    };\n    return props;\n  }, [latestOpenRef, floatingFocusElementRef, focusItemOnHover, listRef, onNavigate, virtual]);\n  const getParentOrientation = React.useCallback(() => {\n    var _tree$nodesRef$curren;\n    return parentOrientation != null ? parentOrientation : tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.dataRef) == null ? void 0 : _tree$nodesRef$curren.current.orientation;\n  }, [parentId, tree, parentOrientation]);\n  const commonOnKeyDown = useEffectEvent(event => {\n    isPointerModalityRef.current = false;\n    forceSyncFocusRef.current = true;\n\n    // When composing a character, Chrome fires ArrowDown twice. Firefox/Safari\n    // don't appear to suffer from this. `event.isComposing` is avoided due to\n    // Safari not supporting it properly (although it's not needed in the first\n    // place for Safari, just avoiding any possible issues).\n    if (event.which === 229) {\n      return;\n    }\n\n    // If the floating element is animating out, ignore navigation. Otherwise,\n    // the `activeIndex` gets set to 0 despite not being open so the next time\n    // the user ArrowDowns, the first item won't be focused.\n    if (!latestOpenRef.current && event.currentTarget === floatingFocusElementRef.current) {\n      return;\n    }\n    if (nested && isCrossOrientationCloseKey(event.key, orientation, rtl, cols)) {\n      // If the nested list's close key is also the parent navigation key,\n      // let the parent navigate. Otherwise, stop propagating the event.\n      if (!isMainOrientationKey(event.key, getParentOrientation())) {\n        stopEvent(event);\n      }\n      onOpenChange(false, event.nativeEvent, 'list-navigation');\n      if (isHTMLElement(elements.domReference)) {\n        if (virtual) {\n          tree == null || tree.events.emit('virtualfocus', elements.domReference);\n        } else {\n          elements.domReference.focus();\n        }\n      }\n      return;\n    }\n    const currentIndex = indexRef.current;\n    const minIndex = getMinListIndex(listRef, disabledIndices);\n    const maxIndex = getMaxListIndex(listRef, disabledIndices);\n    if (!typeableComboboxReference) {\n      if (event.key === 'Home') {\n        stopEvent(event);\n        indexRef.current = minIndex;\n        onNavigate();\n      }\n      if (event.key === 'End') {\n        stopEvent(event);\n        indexRef.current = maxIndex;\n        onNavigate();\n      }\n    }\n\n    // Grid navigation.\n    if (cols > 1) {\n      const sizes = itemSizes || Array.from({\n        length: listRef.current.length\n      }, () => ({\n        width: 1,\n        height: 1\n      }));\n      // To calculate movements on the grid, we use hypothetical cell indices\n      // as if every item was 1x1, then convert back to real indices.\n      const cellMap = createGridCellMap(sizes, cols, dense);\n      const minGridIndex = cellMap.findIndex(index => index != null && !isListIndexDisabled(listRef, index, disabledIndices));\n      // last enabled index\n      const maxGridIndex = cellMap.reduce((foundIndex, index, cellIndex) => index != null && !isListIndexDisabled(listRef, index, disabledIndices) ? cellIndex : foundIndex, -1);\n      const index = cellMap[getGridNavigatedIndex({\n        current: cellMap.map(itemIndex => itemIndex != null ? listRef.current[itemIndex] : null)\n      }, {\n        event,\n        orientation,\n        loop,\n        rtl,\n        cols,\n        // treat undefined (empty grid spaces) as disabled indices so we\n        // don't end up in them\n        disabledIndices: getGridCellIndices([...((typeof disabledIndices !== 'function' ? disabledIndices : null) || listRef.current.map((_, index) => isListIndexDisabled(listRef, index, disabledIndices) ? index : undefined)), undefined], cellMap),\n        minIndex: minGridIndex,\n        maxIndex: maxGridIndex,\n        prevIndex: getGridCellIndexOfCorner(indexRef.current > maxIndex ? minIndex : indexRef.current, sizes, cellMap, cols,\n        // use a corner matching the edge closest to the direction\n        // we're moving in so we don't end up in the same item. Prefer\n        // top/left over bottom/right.\n        event.key === ARROW_DOWN ? 'bl' : event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT) ? 'tr' : 'tl'),\n        stopEvent: true\n      })];\n      if (index != null) {\n        indexRef.current = index;\n        onNavigate();\n      }\n      if (orientation === 'both') {\n        return;\n      }\n    }\n    if (isMainOrientationKey(event.key, orientation)) {\n      stopEvent(event);\n\n      // Reset the index if no item is focused.\n      if (open && !virtual && activeElement(event.currentTarget.ownerDocument) === event.currentTarget) {\n        indexRef.current = isMainOrientationToEndKey(event.key, orientation, rtl) ? minIndex : maxIndex;\n        onNavigate();\n        return;\n      }\n      if (isMainOrientationToEndKey(event.key, orientation, rtl)) {\n        if (loop) {\n          indexRef.current = currentIndex >= maxIndex ? allowEscape && currentIndex !== listRef.current.length ? -1 : minIndex : findNonDisabledListIndex(listRef, {\n            startingIndex: currentIndex,\n            disabledIndices\n          });\n        } else {\n          indexRef.current = Math.min(maxIndex, findNonDisabledListIndex(listRef, {\n            startingIndex: currentIndex,\n            disabledIndices\n          }));\n        }\n      } else {\n        if (loop) {\n          indexRef.current = currentIndex <= minIndex ? allowEscape && currentIndex !== -1 ? listRef.current.length : maxIndex : findNonDisabledListIndex(listRef, {\n            startingIndex: currentIndex,\n            decrement: true,\n            disabledIndices\n          });\n        } else {\n          indexRef.current = Math.max(minIndex, findNonDisabledListIndex(listRef, {\n            startingIndex: currentIndex,\n            decrement: true,\n            disabledIndices\n          }));\n        }\n      }\n      if (isIndexOutOfListBounds(listRef, indexRef.current)) {\n        indexRef.current = -1;\n      }\n      onNavigate();\n    }\n  });\n  const ariaActiveDescendantProp = React.useMemo(() => {\n    return virtual && open && hasActiveIndex && {\n      'aria-activedescendant': virtualId || activeId\n    };\n  }, [virtual, open, hasActiveIndex, virtualId, activeId]);\n  const floating = React.useMemo(() => {\n    return {\n      'aria-orientation': orientation === 'both' ? undefined : orientation,\n      ...(!typeableComboboxReference ? ariaActiveDescendantProp : {}),\n      onKeyDown: commonOnKeyDown,\n      onPointerMove() {\n        isPointerModalityRef.current = true;\n      }\n    };\n  }, [ariaActiveDescendantProp, commonOnKeyDown, orientation, typeableComboboxReference]);\n  const reference = React.useMemo(() => {\n    function checkVirtualMouse(event) {\n      if (focusItemOnOpen === 'auto' && isVirtualClick(event.nativeEvent)) {\n        focusItemOnOpenRef.current = true;\n      }\n    }\n    function checkVirtualPointer(event) {\n      // `pointerdown` fires first, reset the state then perform the checks.\n      focusItemOnOpenRef.current = focusItemOnOpen;\n      if (focusItemOnOpen === 'auto' && isVirtualPointerEvent(event.nativeEvent)) {\n        focusItemOnOpenRef.current = true;\n      }\n    }\n    return {\n      ...ariaActiveDescendantProp,\n      onKeyDown(event) {\n        isPointerModalityRef.current = false;\n        const isArrowKey = event.key.startsWith('Arrow');\n        const isHomeOrEndKey = ['Home', 'End'].includes(event.key);\n        const isMoveKey = isArrowKey || isHomeOrEndKey;\n        const isCrossOpenKey = isCrossOrientationOpenKey(event.key, orientation, rtl);\n        const isCrossCloseKey = isCrossOrientationCloseKey(event.key, orientation, rtl, cols);\n        const isParentCrossOpenKey = isCrossOrientationOpenKey(event.key, getParentOrientation(), rtl);\n        const isMainKey = isMainOrientationKey(event.key, orientation);\n        const isNavigationKey = (nested ? isParentCrossOpenKey : isMainKey) || event.key === 'Enter' || event.key.trim() === '';\n        if (virtual && open) {\n          const rootNode = tree == null ? void 0 : tree.nodesRef.current.find(node => node.parentId == null);\n          const deepestNode = tree && rootNode ? getDeepestNode(tree.nodesRef.current, rootNode.id) : null;\n          if (isMoveKey && deepestNode && virtualItemRef) {\n            const eventObject = new KeyboardEvent('keydown', {\n              key: event.key,\n              bubbles: true\n            });\n            if (isCrossOpenKey || isCrossCloseKey) {\n              var _deepestNode$context, _deepestNode$context2;\n              const isCurrentTarget = ((_deepestNode$context = deepestNode.context) == null ? void 0 : _deepestNode$context.elements.domReference) === event.currentTarget;\n              const dispatchItem = isCrossCloseKey && !isCurrentTarget ? (_deepestNode$context2 = deepestNode.context) == null ? void 0 : _deepestNode$context2.elements.domReference : isCrossOpenKey ? listRef.current.find(item => (item == null ? void 0 : item.id) === activeId) : null;\n              if (dispatchItem) {\n                stopEvent(event);\n                dispatchItem.dispatchEvent(eventObject);\n                setVirtualId(undefined);\n              }\n            }\n            if ((isMainKey || isHomeOrEndKey) && deepestNode.context) {\n              if (deepestNode.context.open && deepestNode.parentId && event.currentTarget !== deepestNode.context.elements.domReference) {\n                var _deepestNode$context$;\n                stopEvent(event);\n                (_deepestNode$context$ = deepestNode.context.elements.domReference) == null || _deepestNode$context$.dispatchEvent(eventObject);\n                return;\n              }\n            }\n          }\n          return commonOnKeyDown(event);\n        }\n        // If a floating element should not open on arrow key down, avoid\n        // setting `activeIndex` while it's closed.\n        if (!open && !openOnArrowKeyDown && isArrowKey) {\n          return;\n        }\n        if (isNavigationKey) {\n          const isParentMainKey = isMainOrientationKey(event.key, getParentOrientation());\n          keyRef.current = nested && isParentMainKey ? null : event.key;\n        }\n        if (nested) {\n          if (isParentCrossOpenKey) {\n            stopEvent(event);\n            if (open) {\n              indexRef.current = getMinListIndex(listRef, disabledIndicesRef.current);\n              onNavigate();\n            } else {\n              onOpenChange(true, event.nativeEvent, 'list-navigation');\n            }\n          }\n          return;\n        }\n        if (isMainKey) {\n          if (selectedIndex != null) {\n            indexRef.current = selectedIndex;\n          }\n          stopEvent(event);\n          if (!open && openOnArrowKeyDown) {\n            onOpenChange(true, event.nativeEvent, 'list-navigation');\n          } else {\n            commonOnKeyDown(event);\n          }\n          if (open) {\n            onNavigate();\n          }\n        }\n      },\n      onFocus() {\n        if (open && !virtual) {\n          indexRef.current = -1;\n          onNavigate();\n        }\n      },\n      onPointerDown: checkVirtualPointer,\n      onPointerEnter: checkVirtualPointer,\n      onMouseDown: checkVirtualMouse,\n      onClick: checkVirtualMouse\n    };\n  }, [activeId, ariaActiveDescendantProp, cols, commonOnKeyDown, disabledIndicesRef, focusItemOnOpen, listRef, nested, onNavigate, onOpenChange, open, openOnArrowKeyDown, orientation, getParentOrientation, rtl, selectedIndex, tree, virtual, virtualItemRef]);\n  return React.useMemo(() => enabled ? {\n    reference,\n    floating,\n    item\n  } : {}, [enabled, reference, floating, item]);\n}\n\nconst componentRoleToAriaRoleMap = /*#__PURE__*/new Map([['select', 'listbox'], ['combobox', 'listbox'], ['label', false]]);\n\n/**\n * Adds base screen reader props to the reference and floating elements for a\n * given floating element `role`.\n * @see https://floating-ui.com/docs/useRole\n */\nfunction useRole(context, props) {\n  var _elements$domReferenc, _componentRoleToAriaR;\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    elements,\n    floatingId: defaultFloatingId\n  } = context;\n  const {\n    enabled = true,\n    role = 'dialog'\n  } = props;\n  const defaultReferenceId = useId();\n  const referenceId = ((_elements$domReferenc = elements.domReference) == null ? void 0 : _elements$domReferenc.id) || defaultReferenceId;\n  const floatingId = React.useMemo(() => {\n    var _getFloatingFocusElem;\n    return ((_getFloatingFocusElem = getFloatingFocusElement(elements.floating)) == null ? void 0 : _getFloatingFocusElem.id) || defaultFloatingId;\n  }, [elements.floating, defaultFloatingId]);\n  const ariaRole = (_componentRoleToAriaR = componentRoleToAriaRoleMap.get(role)) != null ? _componentRoleToAriaR : role;\n  const parentId = useFloatingParentNodeId();\n  const isNested = parentId != null;\n  const reference = React.useMemo(() => {\n    if (ariaRole === 'tooltip' || role === 'label') {\n      return {\n        [\"aria-\" + (role === 'label' ? 'labelledby' : 'describedby')]: open ? floatingId : undefined\n      };\n    }\n    return {\n      'aria-expanded': open ? 'true' : 'false',\n      'aria-haspopup': ariaRole === 'alertdialog' ? 'dialog' : ariaRole,\n      'aria-controls': open ? floatingId : undefined,\n      ...(ariaRole === 'listbox' && {\n        role: 'combobox'\n      }),\n      ...(ariaRole === 'menu' && {\n        id: referenceId\n      }),\n      ...(ariaRole === 'menu' && isNested && {\n        role: 'menuitem'\n      }),\n      ...(role === 'select' && {\n        'aria-autocomplete': 'none'\n      }),\n      ...(role === 'combobox' && {\n        'aria-autocomplete': 'list'\n      })\n    };\n  }, [ariaRole, floatingId, isNested, open, referenceId, role]);\n  const floating = React.useMemo(() => {\n    const floatingProps = {\n      id: floatingId,\n      ...(ariaRole && {\n        role: ariaRole\n      })\n    };\n    if (ariaRole === 'tooltip' || role === 'label') {\n      return floatingProps;\n    }\n    return {\n      ...floatingProps,\n      ...(ariaRole === 'menu' && {\n        'aria-labelledby': referenceId\n      })\n    };\n  }, [ariaRole, floatingId, referenceId, role]);\n  const item = React.useCallback(_ref => {\n    let {\n      active,\n      selected\n    } = _ref;\n    const commonProps = {\n      role: 'option',\n      ...(active && {\n        id: floatingId + \"-fui-option\"\n      })\n    };\n\n    // For `menu`, we are unable to tell if the item is a `menuitemradio`\n    // or `menuitemcheckbox`. For backwards-compatibility reasons, also\n    // avoid defaulting to `menuitem` as it may overwrite custom role props.\n    switch (role) {\n      case 'select':\n      case 'combobox':\n        return {\n          ...commonProps,\n          'aria-selected': selected\n        };\n    }\n    return {};\n  }, [floatingId, role]);\n  return React.useMemo(() => enabled ? {\n    reference,\n    floating,\n    item\n  } : {}, [enabled, reference, floating, item]);\n}\n\n// Converts a JS style key like `backgroundColor` to a CSS transition-property\n// like `background-color`.\nconst camelCaseToKebabCase = str => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());\nfunction execWithArgsOrReturn(valueOrFn, args) {\n  return typeof valueOrFn === 'function' ? valueOrFn(args) : valueOrFn;\n}\nfunction useDelayUnmount(open, durationMs) {\n  const [isMounted, setIsMounted] = React.useState(open);\n  if (open && !isMounted) {\n    setIsMounted(true);\n  }\n  React.useEffect(() => {\n    if (!open && isMounted) {\n      const timeout = setTimeout(() => setIsMounted(false), durationMs);\n      return () => clearTimeout(timeout);\n    }\n  }, [open, isMounted, durationMs]);\n  return isMounted;\n}\n/**\n * Provides a status string to apply CSS transitions to a floating element,\n * correctly handling placement-aware transitions.\n * @see https://floating-ui.com/docs/useTransition#usetransitionstatus\n */\nfunction useTransitionStatus(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    open,\n    elements: {\n      floating\n    }\n  } = context;\n  const {\n    duration = 250\n  } = props;\n  const isNumberDuration = typeof duration === 'number';\n  const closeDuration = (isNumberDuration ? duration : duration.close) || 0;\n  const [status, setStatus] = React.useState('unmounted');\n  const isMounted = useDelayUnmount(open, closeDuration);\n  if (!isMounted && status === 'close') {\n    setStatus('unmounted');\n  }\n  useModernLayoutEffect(() => {\n    if (!floating) return;\n    if (open) {\n      setStatus('initial');\n      const frame = requestAnimationFrame(() => {\n        // Ensure it opens before paint. With `FloatingDelayGroup`,\n        // this avoids a flicker when moving between floating elements\n        // to ensure one is always open with no missing frames.\n        ReactDOM.flushSync(() => {\n          setStatus('open');\n        });\n      });\n      return () => {\n        cancelAnimationFrame(frame);\n      };\n    }\n    setStatus('close');\n  }, [open, floating]);\n  return {\n    isMounted,\n    status\n  };\n}\n/**\n * Provides styles to apply CSS transitions to a floating element, correctly\n * handling placement-aware transitions. Wrapper around `useTransitionStatus`.\n * @see https://floating-ui.com/docs/useTransition#usetransitionstyles\n */\nfunction useTransitionStyles(context, props) {\n  if (props === void 0) {\n    props = {};\n  }\n  const {\n    initial: unstable_initial = {\n      opacity: 0\n    },\n    open: unstable_open,\n    close: unstable_close,\n    common: unstable_common,\n    duration = 250\n  } = props;\n  const placement = context.placement;\n  const side = placement.split('-')[0];\n  const fnArgs = React.useMemo(() => ({\n    side,\n    placement\n  }), [side, placement]);\n  const isNumberDuration = typeof duration === 'number';\n  const openDuration = (isNumberDuration ? duration : duration.open) || 0;\n  const closeDuration = (isNumberDuration ? duration : duration.close) || 0;\n  const [styles, setStyles] = React.useState(() => ({\n    ...execWithArgsOrReturn(unstable_common, fnArgs),\n    ...execWithArgsOrReturn(unstable_initial, fnArgs)\n  }));\n  const {\n    isMounted,\n    status\n  } = useTransitionStatus(context, {\n    duration\n  });\n  const initialRef = useLatestRef(unstable_initial);\n  const openRef = useLatestRef(unstable_open);\n  const closeRef = useLatestRef(unstable_close);\n  const commonRef = useLatestRef(unstable_common);\n  useModernLayoutEffect(() => {\n    const initialStyles = execWithArgsOrReturn(initialRef.current, fnArgs);\n    const closeStyles = execWithArgsOrReturn(closeRef.current, fnArgs);\n    const commonStyles = execWithArgsOrReturn(commonRef.current, fnArgs);\n    const openStyles = execWithArgsOrReturn(openRef.current, fnArgs) || Object.keys(initialStyles).reduce((acc, key) => {\n      acc[key] = '';\n      return acc;\n    }, {});\n    if (status === 'initial') {\n      setStyles(styles => ({\n        transitionProperty: styles.transitionProperty,\n        ...commonStyles,\n        ...initialStyles\n      }));\n    }\n    if (status === 'open') {\n      setStyles({\n        transitionProperty: Object.keys(openStyles).map(camelCaseToKebabCase).join(','),\n        transitionDuration: openDuration + \"ms\",\n        ...commonStyles,\n        ...openStyles\n      });\n    }\n    if (status === 'close') {\n      const styles = closeStyles || initialStyles;\n      setStyles({\n        transitionProperty: Object.keys(styles).map(camelCaseToKebabCase).join(','),\n        transitionDuration: closeDuration + \"ms\",\n        ...commonStyles,\n        ...styles\n      });\n    }\n  }, [closeDuration, closeRef, initialRef, openRef, commonRef, openDuration, status, fnArgs]);\n  return {\n    isMounted,\n    styles\n  };\n}\n\n/**\n * Provides a matching callback that can be used to focus an item as the user\n * types, often used in tandem with `useListNavigation()`.\n * @see https://floating-ui.com/docs/useTypeahead\n */\nfunction useTypeahead(context, props) {\n  var _ref;\n  const {\n    open,\n    dataRef\n  } = context;\n  const {\n    listRef,\n    activeIndex,\n    onMatch: unstable_onMatch,\n    onTypingChange: unstable_onTypingChange,\n    enabled = true,\n    findMatch = null,\n    resetMs = 750,\n    ignoreKeys = [],\n    selectedIndex = null\n  } = props;\n  const timeoutIdRef = React.useRef(-1);\n  const stringRef = React.useRef('');\n  const prevIndexRef = React.useRef((_ref = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref : -1);\n  const matchIndexRef = React.useRef(null);\n  const onMatch = useEffectEvent(unstable_onMatch);\n  const onTypingChange = useEffectEvent(unstable_onTypingChange);\n  const findMatchRef = useLatestRef(findMatch);\n  const ignoreKeysRef = useLatestRef(ignoreKeys);\n  useModernLayoutEffect(() => {\n    if (open) {\n      clearTimeoutIfSet(timeoutIdRef);\n      matchIndexRef.current = null;\n      stringRef.current = '';\n    }\n  }, [open]);\n  useModernLayoutEffect(() => {\n    // Sync arrow key navigation but not typeahead navigation.\n    if (open && stringRef.current === '') {\n      var _ref2;\n      prevIndexRef.current = (_ref2 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref2 : -1;\n    }\n  }, [open, selectedIndex, activeIndex]);\n  const setTypingChange = useEffectEvent(value => {\n    if (value) {\n      if (!dataRef.current.typing) {\n        dataRef.current.typing = value;\n        onTypingChange(value);\n      }\n    } else {\n      if (dataRef.current.typing) {\n        dataRef.current.typing = value;\n        onTypingChange(value);\n      }\n    }\n  });\n  const onKeyDown = useEffectEvent(event => {\n    function getMatchingIndex(list, orderedList, string) {\n      const str = findMatchRef.current ? findMatchRef.current(orderedList, string) : orderedList.find(text => (text == null ? void 0 : text.toLocaleLowerCase().indexOf(string.toLocaleLowerCase())) === 0);\n      return str ? list.indexOf(str) : -1;\n    }\n    const listContent = listRef.current;\n    if (stringRef.current.length > 0 && stringRef.current[0] !== ' ') {\n      if (getMatchingIndex(listContent, listContent, stringRef.current) === -1) {\n        setTypingChange(false);\n      } else if (event.key === ' ') {\n        stopEvent(event);\n      }\n    }\n    if (listContent == null || ignoreKeysRef.current.includes(event.key) ||\n    // Character key.\n    event.key.length !== 1 ||\n    // Modifier key.\n    event.ctrlKey || event.metaKey || event.altKey) {\n      return;\n    }\n    if (open && event.key !== ' ') {\n      stopEvent(event);\n      setTypingChange(true);\n    }\n\n    // Bail out if the list contains a word like \"llama\" or \"aaron\". TODO:\n    // allow it in this case, too.\n    const allowRapidSuccessionOfFirstLetter = listContent.every(text => {\n      var _text$, _text$2;\n      return text ? ((_text$ = text[0]) == null ? void 0 : _text$.toLocaleLowerCase()) !== ((_text$2 = text[1]) == null ? void 0 : _text$2.toLocaleLowerCase()) : true;\n    });\n\n    // Allows the user to cycle through items that start with the same letter\n    // in rapid succession.\n    if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) {\n      stringRef.current = '';\n      prevIndexRef.current = matchIndexRef.current;\n    }\n    stringRef.current += event.key;\n    clearTimeoutIfSet(timeoutIdRef);\n    timeoutIdRef.current = window.setTimeout(() => {\n      stringRef.current = '';\n      prevIndexRef.current = matchIndexRef.current;\n      setTypingChange(false);\n    }, resetMs);\n    const prevIndex = prevIndexRef.current;\n    const index = getMatchingIndex(listContent, [...listContent.slice((prevIndex || 0) + 1), ...listContent.slice(0, (prevIndex || 0) + 1)], stringRef.current);\n    if (index !== -1) {\n      onMatch(index);\n      matchIndexRef.current = index;\n    } else if (event.key !== ' ') {\n      stringRef.current = '';\n      setTypingChange(false);\n    }\n  });\n  const reference = React.useMemo(() => ({\n    onKeyDown\n  }), [onKeyDown]);\n  const floating = React.useMemo(() => {\n    return {\n      onKeyDown,\n      onKeyUp(event) {\n        if (event.key === ' ') {\n          setTypingChange(false);\n        }\n      }\n    };\n  }, [onKeyDown, setTypingChange]);\n  return React.useMemo(() => enabled ? {\n    reference,\n    floating\n  } : {}, [enabled, reference, floating]);\n}\n\nfunction getArgsWithCustomFloatingHeight(state, height) {\n  return {\n    ...state,\n    rects: {\n      ...state.rects,\n      floating: {\n        ...state.rects.floating,\n        height\n      }\n    }\n  };\n}\n/**\n * Positions the floating element such that an inner element inside of it is\n * anchored to the reference element.\n * @see https://floating-ui.com/docs/inner\n * @deprecated\n */\nconst inner = props => ({\n  name: 'inner',\n  options: props,\n  async fn(state) {\n    const {\n      listRef,\n      overflowRef,\n      onFallbackChange,\n      offset: innerOffset = 0,\n      index = 0,\n      minItemsVisible = 4,\n      referenceOverflowThreshold = 0,\n      scrollRef,\n      ...detectOverflowOptions\n    } = evaluate(props, state);\n    const {\n      rects,\n      platform,\n      elements: {\n        floating\n      }\n    } = state;\n    const item = listRef.current[index];\n    const scrollEl = (scrollRef == null ? void 0 : scrollRef.current) || floating;\n\n    // Valid combinations:\n    // 1. Floating element is the scrollRef and has a border (default)\n    // 2. Floating element is not the scrollRef, floating element has a border\n    // 3. Floating element is not the scrollRef, scrollRef has a border\n    // Floating > {...getFloatingProps()} wrapper > scrollRef > items is not\n    // allowed as VoiceOver doesn't work.\n    const clientTop = floating.clientTop || scrollEl.clientTop;\n    const floatingIsBordered = floating.clientTop !== 0;\n    const scrollElIsBordered = scrollEl.clientTop !== 0;\n    const floatingIsScrollEl = floating === scrollEl;\n    if (process.env.NODE_ENV !== \"production\") {\n      if (!state.placement.startsWith('bottom')) {\n        warn('`placement` side must be \"bottom\" when using the `inner`', 'middleware.');\n      }\n    }\n    if (!item) {\n      return {};\n    }\n    const nextArgs = {\n      ...state,\n      ...(await offset(-item.offsetTop - floating.clientTop - rects.reference.height / 2 - item.offsetHeight / 2 - innerOffset).fn(state))\n    };\n    const overflow = await platform.detectOverflow(getArgsWithCustomFloatingHeight(nextArgs, scrollEl.scrollHeight + clientTop + floating.clientTop), detectOverflowOptions);\n    const refOverflow = await platform.detectOverflow(nextArgs, {\n      ...detectOverflowOptions,\n      elementContext: 'reference'\n    });\n    const diffY = max(0, overflow.top);\n    const nextY = nextArgs.y + diffY;\n    const isScrollable = scrollEl.scrollHeight > scrollEl.clientHeight;\n    const rounder = isScrollable ? v => v : round;\n    const maxHeight = rounder(max(0, scrollEl.scrollHeight + (floatingIsBordered && floatingIsScrollEl || scrollElIsBordered ? clientTop * 2 : 0) - diffY - max(0, overflow.bottom)));\n    scrollEl.style.maxHeight = maxHeight + \"px\";\n    scrollEl.scrollTop = diffY;\n\n    // There is not enough space, fallback to standard anchored positioning\n    if (onFallbackChange) {\n      const shouldFallback = scrollEl.offsetHeight < item.offsetHeight * min(minItemsVisible, listRef.current.length) - 1 || refOverflow.top >= -referenceOverflowThreshold || refOverflow.bottom >= -referenceOverflowThreshold;\n      ReactDOM.flushSync(() => onFallbackChange(shouldFallback));\n    }\n    if (overflowRef) {\n      overflowRef.current = await platform.detectOverflow(getArgsWithCustomFloatingHeight({\n        ...nextArgs,\n        y: nextY\n      }, scrollEl.offsetHeight + clientTop + floating.clientTop), detectOverflowOptions);\n    }\n    return {\n      y: nextY\n    };\n  }\n});\n/**\n * Changes the `inner` middleware's `offset` upon a `wheel` event to\n * expand the floating element's height, revealing more list items.\n * @see https://floating-ui.com/docs/inner\n * @deprecated\n */\nfunction useInnerOffset(context, props) {\n  const {\n    open,\n    elements\n  } = context;\n  const {\n    enabled = true,\n    overflowRef,\n    scrollRef,\n    onChange: unstable_onChange\n  } = props;\n  const onChange = useEffectEvent(unstable_onChange);\n  const controlledScrollingRef = React.useRef(false);\n  const prevScrollTopRef = React.useRef(null);\n  const initialOverflowRef = React.useRef(null);\n  React.useEffect(() => {\n    if (!enabled) return;\n    function onWheel(e) {\n      if (e.ctrlKey || !el || overflowRef.current == null) {\n        return;\n      }\n      const dY = e.deltaY;\n      const isAtTop = overflowRef.current.top >= -0.5;\n      const isAtBottom = overflowRef.current.bottom >= -0.5;\n      const remainingScroll = el.scrollHeight - el.clientHeight;\n      const sign = dY < 0 ? -1 : 1;\n      const method = dY < 0 ? 'max' : 'min';\n      if (el.scrollHeight <= el.clientHeight) {\n        return;\n      }\n      if (!isAtTop && dY > 0 || !isAtBottom && dY < 0) {\n        e.preventDefault();\n        ReactDOM.flushSync(() => {\n          onChange(d => d + Math[method](dY, remainingScroll * sign));\n        });\n      } else if (/firefox/i.test(getUserAgent())) {\n        // Needed to propagate scrolling during momentum scrolling phase once\n        // it gets limited by the boundary. UX improvement, not critical.\n        el.scrollTop += dY;\n      }\n    }\n    const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;\n    if (open && el) {\n      el.addEventListener('wheel', onWheel);\n\n      // Wait for the position to be ready.\n      requestAnimationFrame(() => {\n        prevScrollTopRef.current = el.scrollTop;\n        if (overflowRef.current != null) {\n          initialOverflowRef.current = {\n            ...overflowRef.current\n          };\n        }\n      });\n      return () => {\n        prevScrollTopRef.current = null;\n        initialOverflowRef.current = null;\n        el.removeEventListener('wheel', onWheel);\n      };\n    }\n  }, [enabled, open, elements.floating, overflowRef, scrollRef, onChange]);\n  const floating = React.useMemo(() => ({\n    onKeyDown() {\n      controlledScrollingRef.current = true;\n    },\n    onWheel() {\n      controlledScrollingRef.current = false;\n    },\n    onPointerMove() {\n      controlledScrollingRef.current = false;\n    },\n    onScroll() {\n      const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating;\n      if (!overflowRef.current || !el || !controlledScrollingRef.current) {\n        return;\n      }\n      if (prevScrollTopRef.current !== null) {\n        const scrollDiff = el.scrollTop - prevScrollTopRef.current;\n        if (overflowRef.current.bottom < -0.5 && scrollDiff < -1 || overflowRef.current.top < -0.5 && scrollDiff > 1) {\n          ReactDOM.flushSync(() => onChange(d => d + scrollDiff));\n        }\n      }\n\n      // [Firefox] Wait for the height change to have been applied.\n      requestAnimationFrame(() => {\n        prevScrollTopRef.current = el.scrollTop;\n      });\n    }\n  }), [elements.floating, onChange, overflowRef, scrollRef]);\n  return React.useMemo(() => enabled ? {\n    floating\n  } : {}, [enabled, floating]);\n}\n\nfunction getNodeChildren(nodes, id, onlyOpenChildren) {\n  if (onlyOpenChildren === void 0) {\n    onlyOpenChildren = true;\n  }\n  const directChildren = nodes.filter(node => {\n    var _node$context;\n    return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));\n  });\n  return directChildren.flatMap(child => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);\n}\n\nfunction isPointInPolygon(point, polygon) {\n  const [x, y] = point;\n  let isInside = false;\n  const length = polygon.length;\n  for (let i = 0, j = length - 1; i < length; j = i++) {\n    const [xi, yi] = polygon[i] || [0, 0];\n    const [xj, yj] = polygon[j] || [0, 0];\n    const intersect = yi >= y !== yj >= y && x <= (xj - xi) * (y - yi) / (yj - yi) + xi;\n    if (intersect) {\n      isInside = !isInside;\n    }\n  }\n  return isInside;\n}\nfunction isInside(point, rect) {\n  return point[0] >= rect.x && point[0] <= rect.x + rect.width && point[1] >= rect.y && point[1] <= rect.y + rect.height;\n}\n/**\n * Generates a safe polygon area that the user can traverse without closing the\n * floating element once leaving the reference element.\n * @see https://floating-ui.com/docs/useHover#safepolygon\n */\nfunction safePolygon(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    buffer = 0.5,\n    blockPointerEvents = false,\n    requireIntent = true\n  } = options;\n  const timeoutRef = {\n    current: -1\n  };\n  let hasLanded = false;\n  let lastX = null;\n  let lastY = null;\n  let lastCursorTime = typeof performance !== 'undefined' ? performance.now() : 0;\n  function getCursorSpeed(x, y) {\n    const currentTime = performance.now();\n    const elapsedTime = currentTime - lastCursorTime;\n    if (lastX === null || lastY === null || elapsedTime === 0) {\n      lastX = x;\n      lastY = y;\n      lastCursorTime = currentTime;\n      return null;\n    }\n    const deltaX = x - lastX;\n    const deltaY = y - lastY;\n    const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n    const speed = distance / elapsedTime; // px / ms\n\n    lastX = x;\n    lastY = y;\n    lastCursorTime = currentTime;\n    return speed;\n  }\n  const fn = _ref => {\n    let {\n      x,\n      y,\n      placement,\n      elements,\n      onClose,\n      nodeId,\n      tree\n    } = _ref;\n    return function onMouseMove(event) {\n      function close() {\n        clearTimeoutIfSet(timeoutRef);\n        onClose();\n      }\n      clearTimeoutIfSet(timeoutRef);\n      if (!elements.domReference || !elements.floating || placement == null || x == null || y == null) {\n        return;\n      }\n      const {\n        clientX,\n        clientY\n      } = event;\n      const clientPoint = [clientX, clientY];\n      const target = getTarget(event);\n      const isLeave = event.type === 'mouseleave';\n      const isOverFloatingEl = contains(elements.floating, target);\n      const isOverReferenceEl = contains(elements.domReference, target);\n      const refRect = elements.domReference.getBoundingClientRect();\n      const rect = elements.floating.getBoundingClientRect();\n      const side = placement.split('-')[0];\n      const cursorLeaveFromRight = x > rect.right - rect.width / 2;\n      const cursorLeaveFromBottom = y > rect.bottom - rect.height / 2;\n      const isOverReferenceRect = isInside(clientPoint, refRect);\n      const isFloatingWider = rect.width > refRect.width;\n      const isFloatingTaller = rect.height > refRect.height;\n      const left = (isFloatingWider ? refRect : rect).left;\n      const right = (isFloatingWider ? refRect : rect).right;\n      const top = (isFloatingTaller ? refRect : rect).top;\n      const bottom = (isFloatingTaller ? refRect : rect).bottom;\n      if (isOverFloatingEl) {\n        hasLanded = true;\n        if (!isLeave) {\n          return;\n        }\n      }\n      if (isOverReferenceEl) {\n        hasLanded = false;\n      }\n      if (isOverReferenceEl && !isLeave) {\n        hasLanded = true;\n        return;\n      }\n\n      // Prevent overlapping floating element from being stuck in an open-close\n      // loop: https://github.com/floating-ui/floating-ui/issues/1910\n      if (isLeave && isElement(event.relatedTarget) && contains(elements.floating, event.relatedTarget)) {\n        return;\n      }\n\n      // If any nested child is open, abort.\n      if (tree && getNodeChildren(tree.nodesRef.current, nodeId).length) {\n        return;\n      }\n\n      // If the pointer is leaving from the opposite side, the \"buffer\" logic\n      // creates a point where the floating element remains open, but should be\n      // ignored.\n      // A constant of 1 handles floating point rounding errors.\n      if (side === 'top' && y >= refRect.bottom - 1 || side === 'bottom' && y <= refRect.top + 1 || side === 'left' && x >= refRect.right - 1 || side === 'right' && x <= refRect.left + 1) {\n        return close();\n      }\n\n      // Ignore when the cursor is within the rectangular trough between the\n      // two elements. Since the triangle is created from the cursor point,\n      // which can start beyond the ref element's edge, traversing back and\n      // forth from the ref to the floating element can cause it to close. This\n      // ensures it always remains open in that case.\n      let rectPoly = [];\n      switch (side) {\n        case 'top':\n          rectPoly = [[left, refRect.top + 1], [left, rect.bottom - 1], [right, rect.bottom - 1], [right, refRect.top + 1]];\n          break;\n        case 'bottom':\n          rectPoly = [[left, rect.top + 1], [left, refRect.bottom - 1], [right, refRect.bottom - 1], [right, rect.top + 1]];\n          break;\n        case 'left':\n          rectPoly = [[rect.right - 1, bottom], [rect.right - 1, top], [refRect.left + 1, top], [refRect.left + 1, bottom]];\n          break;\n        case 'right':\n          rectPoly = [[refRect.right - 1, bottom], [refRect.right - 1, top], [rect.left + 1, top], [rect.left + 1, bottom]];\n          break;\n      }\n      function getPolygon(_ref2) {\n        let [x, y] = _ref2;\n        switch (side) {\n          case 'top':\n            {\n              const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1];\n              const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1];\n              const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.bottom - buffer : isFloatingWider ? rect.bottom - buffer : rect.top], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.bottom - buffer : rect.top : rect.bottom - buffer]];\n              return [cursorPointOne, cursorPointTwo, ...commonPoints];\n            }\n          case 'bottom':\n            {\n              const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer];\n              const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer];\n              const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.top + buffer : isFloatingWider ? rect.top + buffer : rect.bottom], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.top + buffer : rect.bottom : rect.top + buffer]];\n              return [cursorPointOne, cursorPointTwo, ...commonPoints];\n            }\n          case 'left':\n            {\n              const cursorPointOne = [x + buffer + 1, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n              const cursorPointTwo = [x + buffer + 1, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n              const commonPoints = [[cursorLeaveFromBottom ? rect.right - buffer : isFloatingTaller ? rect.right - buffer : rect.left, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.right - buffer : rect.left : rect.right - buffer, rect.bottom]];\n              return [...commonPoints, cursorPointOne, cursorPointTwo];\n            }\n          case 'right':\n            {\n              const cursorPointOne = [x - buffer, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n              const cursorPointTwo = [x - buffer, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4];\n              const commonPoints = [[cursorLeaveFromBottom ? rect.left + buffer : isFloatingTaller ? rect.left + buffer : rect.right, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.left + buffer : rect.right : rect.left + buffer, rect.bottom]];\n              return [cursorPointOne, cursorPointTwo, ...commonPoints];\n            }\n        }\n      }\n      if (isPointInPolygon([clientX, clientY], rectPoly)) {\n        return;\n      }\n      if (hasLanded && !isOverReferenceRect) {\n        return close();\n      }\n      if (!isLeave && requireIntent) {\n        const cursorSpeed = getCursorSpeed(event.clientX, event.clientY);\n        const cursorSpeedThreshold = 0.1;\n        if (cursorSpeed !== null && cursorSpeed < cursorSpeedThreshold) {\n          return close();\n        }\n      }\n      if (!isPointInPolygon([clientX, clientY], getPolygon([x, y]))) {\n        close();\n      } else if (!hasLanded && requireIntent) {\n        timeoutRef.current = window.setTimeout(close, 40);\n      }\n    };\n  };\n  fn.__options = {\n    blockPointerEvents\n  };\n  return fn;\n}\n\nexport { Composite, CompositeItem, FloatingArrow, FloatingDelayGroup, FloatingFocusManager, FloatingList, FloatingNode, FloatingOverlay, FloatingPortal, FloatingTree, NextFloatingDelayGroup, inner, safePolygon, useClick, useClientPoint, useDelayGroup, useDelayGroupContext, useDismiss, useFloating, useFloatingNodeId, useFloatingParentNodeId, useFloatingPortalNode, useFloatingRootContext, useFloatingTree, useFocus, useHover, useId, useInnerOffset, useInteractions, useListItem, useListNavigation, useMergeRefs, useNextDelayGroup, useRole, useTransitionStatus, useTransitionStyles, useTypeahead };\n","\"use client\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useDidUpdate, useIsomorphicEffect, useUncontrolled } from \"@mantine/hooks\";\nimport { arrow, autoUpdate, flip, hide, inline, limitShift, offset, shift, size, useFloating } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/Popover/use-popover.ts\nfunction getDefaultMiddlewares(middlewares) {\n\tif (middlewares === void 0) return {\n\t\tshift: true,\n\t\tflip: true\n\t};\n\tconst result = { ...middlewares };\n\tif (middlewares.shift === void 0) result.shift = true;\n\tif (middlewares.flip === void 0) result.flip = true;\n\treturn result;\n}\nfunction getPopoverMiddlewares(options, getFloating, disableFlip, lockEnabled) {\n\tconst middlewaresOptions = getDefaultMiddlewares(options.middlewares);\n\tconst middlewares = [offset(options.offset), hide()];\n\tif (middlewaresOptions.flip && !disableFlip) {\n\t\tconst userFlip = typeof middlewaresOptions.flip === \"boolean\" ? {} : middlewaresOptions.flip;\n\t\tconst flipOptions = lockEnabled ? {\n\t\t\tfallbackStrategy: \"initialPlacement\",\n\t\t\t...userFlip\n\t\t} : userFlip;\n\t\tmiddlewares.push(flip(flipOptions));\n\t}\n\tif (middlewaresOptions.shift) {\n\t\tconst shiftOptions = typeof middlewaresOptions.shift === \"boolean\" ? {} : middlewaresOptions.shift;\n\t\tmiddlewares.push(shift((state) => {\n\t\t\tconst isVerticalPlacement = state.placement.startsWith(\"top\") || state.placement.startsWith(\"bottom\");\n\t\t\treturn {\n\t\t\t\tlimiter: limitShift(),\n\t\t\t\tpadding: 5,\n\t\t\t\t...options.width === \"target\" && isVerticalPlacement ? { mainAxis: false } : null,\n\t\t\t\t...shiftOptions\n\t\t\t};\n\t\t}));\n\t}\n\tif (middlewaresOptions.inline) middlewares.push(typeof middlewaresOptions.inline === \"boolean\" ? inline() : inline(middlewaresOptions.inline));\n\tmiddlewares.push(arrow({\n\t\telement: options.arrowRef,\n\t\tpadding: options.arrowOffset\n\t}));\n\tif (middlewaresOptions.size || options.width === \"target\") middlewares.push(size({\n\t\t...typeof middlewaresOptions.size === \"boolean\" ? {} : middlewaresOptions.size,\n\t\tapply({ rects, availableWidth, availableHeight, ...rest }) {\n\t\t\tconst styles = getFloating().refs.floating.current?.style ?? {};\n\t\t\tif (middlewaresOptions.size) {\n\t\t\t\tif (typeof middlewaresOptions.size === \"object\" && !!middlewaresOptions.size.apply) middlewaresOptions.size.apply({\n\t\t\t\t\trects,\n\t\t\t\t\tavailableWidth,\n\t\t\t\t\tavailableHeight,\n\t\t\t\t\t...rest\n\t\t\t\t});\n\t\t\t\telse Object.assign(styles, {\n\t\t\t\t\tmaxWidth: `${availableWidth}px`,\n\t\t\t\t\tmaxHeight: `${availableHeight}px`\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (options.width === \"target\") Object.assign(styles, { width: `${rects.reference.width}px` });\n\t\t}\n\t}));\n\treturn middlewares;\n}\nfunction usePopover(options) {\n\tconst [_opened, setOpened] = useUncontrolled({\n\t\tvalue: options.opened,\n\t\tdefaultValue: options.defaultOpened,\n\t\tfinalValue: false,\n\t\tonChange: options.onChange\n\t});\n\tconst previouslyOpened = useRef(_opened);\n\tconst measuredAfterShowRef = useRef(false);\n\tconst [lockedPlacement, setLockedPlacement] = useState(null);\n\tconst lockEnabled = options.preventPositionChangeWhenVisible !== false;\n\tconst wasOpenedRef = useRef(_opened);\n\tif (_opened !== wasOpenedRef.current) {\n\t\twasOpenedRef.current = _opened;\n\t\tif (_opened && lockedPlacement !== null) setLockedPlacement(null);\n\t}\n\tconst previousPositionRef = useRef(options.position);\n\tif (options.position !== previousPositionRef.current) {\n\t\tpreviousPositionRef.current = options.position;\n\t\tmeasuredAfterShowRef.current = false;\n\t\tif (lockedPlacement !== null) setLockedPlacement(null);\n\t}\n\tconst resetLockedPlacement = useCallback(() => setLockedPlacement(null), []);\n\tconst onClose = () => {\n\t\tif (_opened && !options.disabled) setOpened(false);\n\t};\n\tconst onToggle = () => {\n\t\tif (!options.disabled) setOpened(!_opened);\n\t};\n\tconst floating = useFloating({\n\t\topen: _opened,\n\t\tstrategy: options.strategy,\n\t\tplacement: lockEnabled ? lockedPlacement ?? options.position : options.position,\n\t\tmiddleware: getPopoverMiddlewares(options, () => floating, lockEnabled && lockedPlacement !== null, lockEnabled),\n\t\twhileElementsMounted: !options.keepMounted ? autoUpdate : void 0\n\t});\n\tconst placementRef = useRef(floating.placement);\n\tplacementRef.current = floating.placement;\n\tuseEffect(() => {\n\t\tif (!options.keepMounted) return;\n\t\tconst referenceElement = floating.refs.reference.current;\n\t\tconst floatingElement = floating.refs.floating.current;\n\t\tif (_opened && referenceElement && floatingElement) return autoUpdate(referenceElement, floatingElement, floating.update);\n\t}, [\n\t\toptions.keepMounted,\n\t\t_opened,\n\t\tfloating.update,\n\t\tfloating.elements.reference,\n\t\tfloating.elements.floating\n\t]);\n\tuseIsomorphicEffect(() => {\n\t\tif (!_opened) {\n\t\t\tmeasuredAfterShowRef.current = false;\n\t\t\treturn;\n\t\t}\n\t\tif (!lockEnabled || lockedPlacement !== null) return;\n\t\tconst flEl = floating.refs.floating.current;\n\t\tif (!flEl || flEl.offsetHeight === 0 || flEl.offsetWidth === 0) return;\n\t\tif (!measuredAfterShowRef.current) {\n\t\t\tmeasuredAfterShowRef.current = true;\n\t\t\tfloating.update();\n\t\t\tconst frame = requestAnimationFrame(() => setLockedPlacement(placementRef.current));\n\t\t\treturn () => cancelAnimationFrame(frame);\n\t\t}\n\t\tif (floating.isPositioned) setLockedPlacement(floating.placement);\n\t}, [\n\t\tlockEnabled,\n\t\t_opened,\n\t\tfloating.isPositioned,\n\t\tfloating.placement,\n\t\tlockedPlacement,\n\t\tfloating.update\n\t]);\n\tconst previousPlacementRef = useRef(floating.placement);\n\tuseIsomorphicEffect(() => {\n\t\tif (previousPlacementRef.current !== floating.placement) {\n\t\t\tpreviousPlacementRef.current = floating.placement;\n\t\t\toptions.onPositionChange?.(floating.placement);\n\t\t}\n\t}, [floating.placement]);\n\tuseDidUpdate(() => {\n\t\tif (_opened !== previouslyOpened.current) {\n\t\t\tif (!_opened) options.onClose?.();\n\t\t\telse options.onOpen?.();\n\t\t}\n\t\tpreviouslyOpened.current = _opened;\n\t}, [\n\t\t_opened,\n\t\toptions.onClose,\n\t\toptions.onOpen\n\t]);\n\treturn {\n\t\tfloating,\n\t\tcontrolled: typeof options.opened === \"boolean\",\n\t\topened: _opened,\n\t\tonClose,\n\t\tonToggle,\n\t\tresetLockedPlacement\n\t};\n}\nexport { usePopover };\n\n//# sourceMappingURL=use-popover.mjs.map","\"use client\";\nimport { useEffect, useEffectEvent, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-click-outside/use-click-outside.ts\nconst DEFAULT_EVENTS = [\"mousedown\", \"touchstart\"];\nfunction useClickOutside(callback, events, nodes, enabled = true, capture = false) {\n\tconst ref = useRef(null);\n\tconst eventsList = events || DEFAULT_EVENTS;\n\tconst listener = useEffectEvent((event) => {\n\t\tif (!document.body) return;\n\t\tconst { target } = event ?? {};\n\t\tif (!document.body.contains(target) && target?.tagName !== \"HTML\") return;\n\t\tconst path = event.composedPath();\n\t\tif (Array.isArray(nodes)) nodes.every((node) => !!node && !path.includes(node)) && callback(event);\n\t\telse if (ref.current && !path.includes(ref.current)) callback(event);\n\t});\n\tconst eventsKey = eventsList.join(\",\");\n\tuseEffect(() => {\n\t\tif (!enabled) return;\n\t\tconst events = eventsKey.split(\",\");\n\t\tevents.forEach((fn) => document.addEventListener(fn, listener, capture));\n\t\treturn () => {\n\t\t\tevents.forEach((fn) => document.removeEventListener(fn, listener, capture));\n\t\t};\n\t}, [\n\t\teventsKey,\n\t\tenabled,\n\t\tcapture\n\t]);\n\treturn ref;\n}\nexport { useClickOutside };\n\n//# sourceMappingURL=use-click-outside.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getRadius, getShadow } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useMantineEnv } from \"../../core/MantineProvider/Mantine.context.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useResolvedStylesApi } from \"../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { useDirection } from \"../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { getFloatingPosition } from \"../../utils/Floating/get-floating-position/get-floating-position.mjs\";\nimport { Overlay } from \"../Overlay/Overlay.mjs\";\nimport { OptionalPortal } from \"../Portal/OptionalPortal.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { PopoverContextProvider } from \"./Popover.context.mjs\";\nimport { PopoverContextMenu } from \"./PopoverContextMenu/PopoverContextMenu.mjs\";\nimport Popover_module_default from \"./Popover.module.mjs\";\nimport { PopoverDropdown } from \"./PopoverDropdown/PopoverDropdown.mjs\";\nimport { PopoverTarget } from \"./PopoverTarget/PopoverTarget.mjs\";\nimport { usePopover } from \"./use-popover.mjs\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { useClickOutside, useId as useId$1 } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Popover/Popover.tsx\nconst defaultProps = {\n\tposition: \"bottom\",\n\toffset: 8,\n\ttransitionProps: {\n\t\ttransition: \"fade\",\n\t\tduration: 150\n\t},\n\tmiddlewares: {\n\t\tflip: true,\n\t\tshift: true,\n\t\tinline: false\n\t},\n\tarrowSize: 7,\n\tarrowOffset: 5,\n\tarrowRadius: 0,\n\tarrowPosition: \"side\",\n\tcloseOnClickOutside: true,\n\twithinPortal: true,\n\tcloseOnEscape: true,\n\ttrapFocus: false,\n\twithRoles: true,\n\treturnFocus: false,\n\twithOverlay: false,\n\thideDetached: true,\n\tpreventPositionChangeWhenVisible: true,\n\tclickOutsideEvents: [\"mousedown\", \"touchstart\"],\n\tclickOutsideCapture: false,\n\tzIndex: getDefaultZIndex(\"popover\"),\n\t__staticSelector: \"Popover\",\n\twidth: \"max-content\"\n};\nconst varsResolver = createVarsResolver((_, { radius, shadow }) => ({ dropdown: {\n\t\"--popover-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--popover-shadow\": getShadow(shadow)\n} }));\nfunction Popover(_props) {\n\tconst props = useProps(\"Popover\", defaultProps, _props);\n\tconst { children, position, offset, onPositionChange, opened, transitionProps, onExitTransitionEnd, onEnterTransitionEnd, width, middlewares, withArrow, arrowSize, arrowOffset, arrowRadius, arrowPosition, unstyled, classNames, styles, closeOnClickOutside, withinPortal, portalProps, closeOnEscape, clickOutsideEvents, clickOutsideCapture, trapFocus, onClose, onDismiss, onOpen, onChange, zIndex, radius, shadow, id, defaultOpened, __staticSelector, withRoles, disabled, returnFocus, variant, keepMounted, keepMountedMode, vars, floatingStrategy, withOverlay, overlayProps, hideDetached, attributes, preventPositionChangeWhenVisible, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector,\n\t\tprops,\n\t\tclasses: Popover_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"dropdown\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { resolvedStyles } = useResolvedStylesApi({\n\t\tclassNames,\n\t\tstyles,\n\t\tprops\n\t});\n\tconst arrowRef = useRef(null);\n\tconst [targetNode, setTargetNode] = useState(null);\n\tconst [dropdownNode, setDropdownNode] = useState(null);\n\tconst { dir } = useDirection();\n\tconst env = useMantineEnv();\n\tconst uid = useId$1(id);\n\tconst popover = usePopover({\n\t\tmiddlewares,\n\t\twidth,\n\t\tposition: getFloatingPosition(dir, position),\n\t\toffset: typeof offset === \"number\" ? offset + (withArrow ? arrowSize / 2 : 0) : offset,\n\t\tarrowRef,\n\t\tarrowOffset,\n\t\tonPositionChange,\n\t\topened,\n\t\tdefaultOpened,\n\t\tonChange,\n\t\tonOpen,\n\t\tonClose,\n\t\tonDismiss,\n\t\tstrategy: floatingStrategy,\n\t\tdisabled,\n\t\tpreventPositionChangeWhenVisible,\n\t\tkeepMounted\n\t});\n\tuseClickOutside(() => {\n\t\tif (closeOnClickOutside) {\n\t\t\tpopover.onClose();\n\t\t\tonDismiss?.();\n\t\t}\n\t}, clickOutsideEvents, [targetNode, dropdownNode], true, clickOutsideCapture);\n\tconst reference = useCallback((node) => {\n\t\tsetTargetNode(node);\n\t\tpopover.floating.refs.setReference(node);\n\t}, [popover.floating.refs.setReference]);\n\tconst floating = useCallback((node) => {\n\t\tsetDropdownNode(node);\n\t\tpopover.floating.refs.setFloating(node);\n\t}, [popover.floating.refs.setFloating]);\n\tconst onExited = useCallback(() => {\n\t\ttransitionProps?.onExited?.();\n\t\tonExitTransitionEnd?.();\n\t\tpopover.resetLockedPlacement();\n\t}, [\n\t\ttransitionProps?.onExited,\n\t\tonExitTransitionEnd,\n\t\tpopover.resetLockedPlacement\n\t]);\n\tconst onEntered = useCallback(() => {\n\t\ttransitionProps?.onEntered?.();\n\t\tonEnterTransitionEnd?.();\n\t}, [transitionProps?.onEntered, onEnterTransitionEnd]);\n\treturn /* @__PURE__ */ jsxs(PopoverContextProvider, {\n\t\tvalue: {\n\t\t\treturnFocus,\n\t\t\tdisabled,\n\t\t\tcontrolled: popover.controlled,\n\t\t\treference,\n\t\t\tfloating,\n\t\t\tx: popover.floating.x,\n\t\t\ty: popover.floating.y,\n\t\t\tarrowX: popover.floating?.middlewareData?.arrow?.x,\n\t\t\tarrowY: popover.floating?.middlewareData?.arrow?.y,\n\t\t\topened: popover.opened,\n\t\t\tarrowRef,\n\t\t\ttransitionProps: {\n\t\t\t\t...transitionProps,\n\t\t\t\tonExited,\n\t\t\t\tonEntered\n\t\t\t},\n\t\t\twidth,\n\t\t\twithArrow,\n\t\t\tarrowSize,\n\t\t\tarrowOffset,\n\t\t\tarrowRadius,\n\t\t\tarrowPosition,\n\t\t\tplacement: popover.floating.placement,\n\t\t\ttrapFocus,\n\t\t\twithinPortal,\n\t\t\tportalProps,\n\t\t\tzIndex,\n\t\t\tradius,\n\t\t\tshadow,\n\t\t\tcloseOnEscape,\n\t\t\tonDismiss,\n\t\t\tonClose: popover.onClose,\n\t\t\tonToggle: popover.onToggle,\n\t\t\tgetTargetId: () => uid,\n\t\t\tgetDropdownId: () => `${uid}-dropdown`,\n\t\t\twithRoles,\n\t\t\ttargetProps: others,\n\t\t\t__staticSelector,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tunstyled,\n\t\t\tvariant,\n\t\t\tkeepMounted,\n\t\t\tkeepMountedMode,\n\t\t\tgetStyles,\n\t\t\tresolvedStyles,\n\t\t\tfloatingStrategy,\n\t\t\treferenceHidden: hideDetached && env !== \"test\" ? popover.floating.middlewareData.hide?.referenceHidden : false\n\t\t},\n\t\tchildren: [children, withOverlay && /* @__PURE__ */ jsx(Transition, {\n\t\t\ttransition: \"fade\",\n\t\t\tmounted: popover.opened,\n\t\t\tduration: transitionProps?.duration ?? 250,\n\t\t\texitDuration: transitionProps?.exitDuration ?? transitionProps?.duration ?? 250,\n\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(OptionalPortal, {\n\t\t\t\twithinPortal,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(Overlay, {\n\t\t\t\t\t...overlayProps,\n\t\t\t\t\t...getStyles(\"overlay\", {\n\t\t\t\t\t\tclassName: overlayProps?.className,\n\t\t\t\t\t\tstyle: [transitionStyles, overlayProps?.style]\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t})]\n\t});\n}\nPopover.Target = PopoverTarget;\nPopover.Dropdown = PopoverDropdown;\nPopover.ContextMenu = PopoverContextMenu;\nPopover.varsResolver = varsResolver;\nPopover.displayName = \"@mantine/core/Popover\";\nPopover.extend = (input) => input;\nPopover.withProps = (fixedProps) => {\n\tconst Extended = (props) => /* @__PURE__ */ jsx(Popover, {\n\t\t...fixedProps,\n\t\t...props\n\t});\n\tExtended.extend = Popover.extend;\n\tExtended.displayName = `WithProps(${Popover.displayName})`;\n\treturn Extended;\n};\nexport { Popover };\n\n//# sourceMappingURL=Popover.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Menu/Menu.context.ts\nconst [MenuContextProvider, useMenuContext] = createSafeContext(\"Menu component was not found in the tree\");\nexport { MenuContextProvider, useMenuContext };\n\n//# sourceMappingURL=Menu.context.mjs.map","\"use client\";\nimport { createContext } from \"react\";\n// packages/@mantine/core/src/components/Menu/MenuCheckboxGroup/MenuCheckboxGroup.context.tsx\nconst MenuCheckboxGroupContext = createContext(null);\nexport { MenuCheckboxGroupContext };\n\n//# sourceMappingURL=MenuCheckboxGroup.context.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { MenuCheckboxGroupContext } from \"./MenuCheckboxGroup.context.mjs\";\nimport { useCallback } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuCheckboxGroup/MenuCheckboxGroup.tsx\nfunction MenuCheckboxGroup(_props) {\n\tconst { value, defaultValue, onChange, children } = useProps(\"MenuCheckboxGroup\", null, _props);\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: [],\n\t\tonChange\n\t});\n\tconst toggle = useCallback((next) => {\n\t\tsetValue(_value.includes(next) ? _value.filter((item) => item !== next) : [..._value, next]);\n\t}, [_value, setValue]);\n\treturn /* @__PURE__ */ jsx(MenuCheckboxGroupContext, {\n\t\tvalue: {\n\t\t\tvalues: _value,\n\t\t\tonChange: toggle\n\t\t},\n\t\tchildren\n\t});\n}\nMenuCheckboxGroup.displayName = \"@mantine/core/MenuCheckboxGroup\";\nexport { MenuCheckboxGroup };\n\n//# sourceMappingURL=MenuCheckboxGroup.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Menu/Menu.module.css\nvar Menu_module_default = {\n\t\"dropdown\": \"m_dc9b7c9f\",\n\t\"label\": \"m_9bfac126\",\n\t\"divider\": \"m_efdf90cb\",\n\t\"item\": \"m_99ac2aa1\",\n\t\"search\": \"m_ef8769b6\",\n\t\"itemLabel\": \"m_5476e0d3\",\n\t\"itemIndicator\": \"m_8395186e\",\n\t\"itemSection\": \"m_8b75e504\",\n\t\"chevron\": \"m_b85b0bed\"\n};\nexport { Menu_module_default as default };\n\n//# sourceMappingURL=Menu.module.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Checkbox/CheckIcon.tsx\nfunction CheckIcon({ size, style, ...others }) {\n\tconst _style = size !== void 0 ? {\n\t\twidth: rem(size),\n\t\theight: rem(size),\n\t\t...style\n\t} : style;\n\treturn /* @__PURE__ */ jsx(\"svg\", {\n\t\tviewBox: \"0 0 10 7\",\n\t\tfill: \"none\",\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tstyle: _style,\n\t\t\"aria-hidden\": true,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"path\", {\n\t\t\td: \"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tfillRule: \"evenodd\",\n\t\t\tclipRule: \"evenodd\"\n\t\t})\n\t});\n}\nfunction CheckboxIcon({ indeterminate, ...others }) {\n\tif (indeterminate) return /* @__PURE__ */ jsx(\"svg\", {\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tfill: \"none\",\n\t\tviewBox: \"0 0 32 6\",\n\t\t\"aria-hidden\": true,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"rect\", {\n\t\t\twidth: \"32\",\n\t\t\theight: \"6\",\n\t\t\tfill: \"currentColor\",\n\t\t\trx: \"3\"\n\t\t})\n\t});\n\treturn /* @__PURE__ */ jsx(CheckIcon, { ...others });\n}\nexport { CheckIcon, CheckboxIcon };\n\n//# sourceMappingURL=CheckIcon.mjs.map","\"use client\";\nimport { findElementAncestor } from \"../find-element-ancestor/find-element-ancestor.mjs\";\n// packages/@mantine/core/src/core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.ts\nfunction getPreviousIndex(current, elements, loop) {\n\tfor (let i = current - 1; i >= 0; i -= 1) if (!elements[i].disabled) return i;\n\tif (loop) {\n\t\tfor (let i = elements.length - 1; i > -1; i -= 1) if (!elements[i].disabled) return i;\n\t}\n\treturn current;\n}\nfunction getNextIndex(current, elements, loop) {\n\tfor (let i = current + 1; i < elements.length; i += 1) if (!elements[i].disabled) return i;\n\tif (loop) {\n\t\tfor (let i = 0; i < elements.length; i += 1) if (!elements[i].disabled) return i;\n\t}\n\treturn current;\n}\n/** Validates that target element is on the same level as sibling, used to filter out children that have the same sibling selector */\nfunction onSameLevel(target, sibling, parentSelector) {\n\treturn findElementAncestor(target, parentSelector) === findElementAncestor(sibling, parentSelector);\n}\nfunction createScopedKeydownHandler({ parentSelector, siblingSelector, onKeyDown, loop = true, activateOnFocus = false, dir = \"rtl\", orientation }) {\n\treturn (event) => {\n\t\tonKeyDown?.(event);\n\t\tconst elements = Array.from(findElementAncestor(event.currentTarget, parentSelector)?.querySelectorAll(siblingSelector) || []).filter((node) => onSameLevel(event.currentTarget, node, parentSelector));\n\t\tconst current = elements.findIndex((el) => event.currentTarget === el);\n\t\tconst _nextIndex = getNextIndex(current, elements, loop);\n\t\tconst _previousIndex = getPreviousIndex(current, elements, loop);\n\t\tconst nextIndex = dir === \"rtl\" ? _previousIndex : _nextIndex;\n\t\tconst previousIndex = dir === \"rtl\" ? _nextIndex : _previousIndex;\n\t\tswitch (event.key) {\n\t\t\tcase \"ArrowRight\":\n\t\t\t\tif (orientation === \"horizontal\") {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\telements[nextIndex].focus();\n\t\t\t\t\tactivateOnFocus && elements[nextIndex].click();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowLeft\":\n\t\t\t\tif (orientation === \"horizontal\") {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\telements[previousIndex].focus();\n\t\t\t\t\tactivateOnFocus && elements[previousIndex].click();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowUp\":\n\t\t\t\tif (orientation === \"vertical\") {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\telements[_previousIndex].focus();\n\t\t\t\t\tactivateOnFocus && elements[_previousIndex].click();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"ArrowDown\":\n\t\t\t\tif (orientation === \"vertical\") {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\telements[_nextIndex].focus();\n\t\t\t\t\tactivateOnFocus && elements[_nextIndex].click();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"Home\": {\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tconst firstElement = elements[getNextIndex(-1, elements, false)];\n\t\t\t\tfirstElement?.focus();\n\t\t\t\tif (activateOnFocus && firstElement?.getAttribute(\"aria-selected\") !== \"true\") firstElement?.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"End\": {\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tevent.preventDefault();\n\t\t\t\tconst lastElement = elements[getPreviousIndex(elements.length, elements, false)];\n\t\t\t\tlastElement?.focus();\n\t\t\t\tif (activateOnFocus && lastElement?.getAttribute(\"aria-selected\") !== \"true\") lastElement?.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t};\n}\nexport { createScopedKeydownHandler };\n\n//# sourceMappingURL=create-scoped-keydown-handler.mjs.map","\"use client\";\nimport { createContext } from \"react\";\n// packages/@mantine/core/src/components/Menu/MenuSub/MenuSub.context.tsx\nconst SubMenuContext = createContext(null);\nexport { SubMenuContext };\n\n//# sourceMappingURL=MenuSub.context.mjs.map","\"use client\";\nimport { createScopedKeydownHandler } from \"../../../core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { parseThemeColor } from \"../../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { useMantineTheme } from \"../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { SubMenuContext } from \"../MenuSub/MenuSub.context.mjs\";\nimport { use, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuSelectableItem/MenuSelectableItem.tsx\nfunction MenuSelectableItem({ role, checked, indicator, onSelect, color, closeMenuOnClick, rightSection, children, disabled, dataDisabled, className, style, styles, classNames, buttonRef, others }) {\n\tconst ctx = useMenuContext();\n\tconst subCtx = use(SubMenuContext);\n\tconst theme = useMantineTheme();\n\tconst { dir } = useDirection();\n\tconst closeKey = dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n\tconst itemRef = useRef(null);\n\tconst handleClick = createEventHandler(others.onClick, () => {\n\t\tif (dataDisabled) return;\n\t\tonSelect();\n\t\tif (closeMenuOnClick) ctx.closeDropdownImmediately();\n\t});\n\tconst handleMouseMove = createEventHandler(others.onMouseMove, () => {\n\t\tif (!ctx.hasSearch) return;\n\t\tconst dropdown = itemRef.current?.closest(\"[data-menu-dropdown]\");\n\t\tif (!dropdown) return;\n\t\tdropdown.querySelectorAll(\"[data-menu-active]\").forEach((node) => {\n\t\t\tif (node !== itemRef.current && node.closest(\"[data-menu-dropdown]\") === dropdown) node.removeAttribute(\"data-menu-active\");\n\t\t});\n\t});\n\tconst handleKeydown = createEventHandler(others.onKeyDown, (event) => {\n\t\tif (event.key === closeKey && subCtx) {\n\t\t\tsubCtx.close();\n\t\t\tsubCtx.focusParentItem();\n\t\t}\n\t});\n\tconst colors = color ? theme.variantColorResolver({\n\t\tcolor,\n\t\ttheme,\n\t\tvariant: \"light\"\n\t}) : void 0;\n\tconst parsedThemeColor = color ? parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t}) : null;\n\tconst renderIndicator = ctx.alignItemsLabels !== \"none\" || checked;\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\tonMouseDown: (event) => event.preventDefault(),\n\t\t...others,\n\t\tunstyled: ctx.unstyled,\n\t\ttabIndex: ctx.menuItemTabIndex,\n\t\t...ctx.getStyles(\"item\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\tref: useMergedRef(itemRef, buttonRef),\n\t\trole,\n\t\t\"aria-checked\": checked,\n\t\tdisabled,\n\t\t\"aria-disabled\": others[\"aria-disabled\"] ?? (disabled || dataDisabled || void 0),\n\t\t\"data-menu-item\": true,\n\t\t\"data-checked\": checked || void 0,\n\t\t\"data-disabled\": disabled || dataDisabled || void 0,\n\t\t\"data-mantine-stop-propagation\": true,\n\t\tonClick: handleClick,\n\t\tonMouseMove: handleMouseMove,\n\t\tonKeyDown: createScopedKeydownHandler({\n\t\t\tsiblingSelector: \"[data-menu-item]:not([data-disabled])\",\n\t\t\tparentSelector: \"[data-menu-dropdown]\",\n\t\t\tactivateOnFocus: false,\n\t\t\tloop: ctx.loop,\n\t\t\tdir,\n\t\t\torientation: \"vertical\",\n\t\t\tonKeyDown: handleKeydown\n\t\t}),\n\t\t__vars: {\n\t\t\t\"--menu-item-color\": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` : colors?.color,\n\t\t\t\"--menu-item-hover\": colors?.hover\n\t\t},\n\t\tchildren: [\n\t\t\trenderIndicator && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemIndicator\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-checked\": checked || void 0,\n\t\t\t\tchildren: checked ? indicator : null\n\t\t\t}),\n\t\t\tchildren && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemLabel\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-menu-item-label\": true,\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\trightSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemSection\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-position\": \"right\",\n\t\t\t\tchildren: rightSection\n\t\t\t})\n\t\t]\n\t});\n}\nexport { MenuSelectableItem };\n\n//# sourceMappingURL=MenuSelectableItem.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { CheckIcon } from \"../../Checkbox/CheckIcon.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { MenuCheckboxGroupContext } from \"../MenuCheckboxGroup/MenuCheckboxGroup.context.mjs\";\nimport { MenuSelectableItem } from \"../MenuSelectableItem/MenuSelectableItem.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { use } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuCheckboxItem/MenuCheckboxItem.tsx\nconst MenuCheckboxItem = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, color, closeMenuOnClick, rightSection, children, disabled, \"data-disabled\": dataDisabled, value, checked, defaultChecked, onChange, checkIcon, ref, ...others } = useProps(\"MenuCheckboxItem\", null, _props);\n\tconst ctx = useMenuContext();\n\tconst groupCtx = use(MenuCheckboxGroupContext);\n\tconst groupChecked = groupCtx && value !== void 0 ? groupCtx.values.includes(value) : void 0;\n\tconst [_checked, setChecked] = useUncontrolled({\n\t\tvalue: checked ?? groupChecked,\n\t\tdefaultValue: defaultChecked,\n\t\tfinalValue: false,\n\t\tonChange\n\t});\n\tconst resolvedCheckIcon = checkIcon ?? ctx.checkIcon ?? /* @__PURE__ */ jsx(CheckIcon, { size: 10 });\n\treturn /* @__PURE__ */ jsx(MenuSelectableItem, {\n\t\trole: \"menuitemcheckbox\",\n\t\tchecked: _checked,\n\t\tindicator: resolvedCheckIcon,\n\t\tonSelect: () => {\n\t\t\tif (onChange) setChecked(!_checked);\n\t\t\telse if (groupCtx && value !== void 0) groupCtx.onChange(value);\n\t\t\telse setChecked(!_checked);\n\t\t},\n\t\tcolor,\n\t\tcloseMenuOnClick,\n\t\trightSection,\n\t\tdisabled,\n\t\tdataDisabled,\n\t\tclassName,\n\t\tstyle,\n\t\tstyles,\n\t\tclassNames,\n\t\tbuttonRef: ref,\n\t\tothers,\n\t\tchildren\n\t});\n});\nMenuCheckboxItem.classes = Menu_module_default;\nMenuCheckboxItem.displayName = \"@mantine/core/MenuCheckboxItem\";\nexport { MenuCheckboxItem };\n\n//# sourceMappingURL=MenuCheckboxItem.mjs.map","\"use client\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { usePopoverContext } from \"../../Popover/Popover.context.mjs\";\nimport { useContextMenuHandlers } from \"../../../utils/Floating/use-context-menu-handlers.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { cloneElement } from \"react\";\n// packages/@mantine/core/src/components/Menu/MenuContextMenu/MenuContextMenu.tsx\nfunction MenuContextMenu(props) {\n\tconst { children, disabled, longPressDelay } = useProps(\"MenuContextMenu\", null, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst ctx = useMenuContext();\n\tconst popoverCtx = usePopoverContext();\n\tconst handlers = useContextMenuHandlers({\n\t\tchildProps: child.props,\n\t\tdisabled: disabled || popoverCtx.disabled,\n\t\topened: ctx.opened,\n\t\tlongPressDelay,\n\t\tsetReference: popoverCtx.reference,\n\t\topen: () => ctx.openDropdown()\n\t});\n\treturn cloneElement(child, handlers);\n}\nMenuContextMenu.displayName = \"@mantine/core/MenuContextMenu\";\nexport { MenuContextMenu };\n\n//# sourceMappingURL=MenuContextMenu.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuDivider/MenuDivider.tsx\nconst MenuDivider = factory((props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"MenuDivider\", null, props);\n\tconst ctx = useMenuContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"divider\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t...others\n\t});\n});\nMenuDivider.classes = Menu_module_default;\nMenuDivider.displayName = \"@mantine/core/MenuDivider\";\nexport { MenuDivider };\n\n//# sourceMappingURL=MenuDivider.mjs.map","\"use client\";\nimport { useEffect, useRef } from \"react\";\n// packages/@mantine/core/src/components/Menu/use-menu-type-ahead.ts\nconst RESET_DELAY = 500;\nfunction getItemText(item) {\n\treturn ((item.querySelector(\"[data-menu-item-label]\") ?? item).textContent ?? \"\").trim().toLowerCase();\n}\nfunction isRepeatedChar(buffer) {\n\treturn buffer.length > 1 && buffer.split(\"\").every((char) => char === buffer[0]);\n}\nfunction useMenuTypeAhead({ enabled, opened, getDropdown }) {\n\tconst stateRef = useRef({\n\t\tbuffer: \"\",\n\t\ttimeoutId: null\n\t});\n\tuseEffect(() => {\n\t\tif (opened && enabled) return;\n\t\tconst state = stateRef.current;\n\t\tif (state.timeoutId !== null) {\n\t\t\twindow.clearTimeout(state.timeoutId);\n\t\t\tstate.timeoutId = null;\n\t\t}\n\t\tstate.buffer = \"\";\n\t}, [opened, enabled]);\n\tuseEffect(() => () => {\n\t\tconst { timeoutId } = stateRef.current;\n\t\tif (timeoutId !== null) window.clearTimeout(timeoutId);\n\t}, []);\n\treturn (event) => {\n\t\tif (!enabled || event.defaultPrevented) return;\n\t\tif (event.ctrlKey || event.metaKey || event.altKey) return;\n\t\tif (event.key.length !== 1 || event.key === \" \") return;\n\t\tconst target = event.target;\n\t\tif (target && (target.tagName === \"INPUT\" || target.tagName === \"TEXTAREA\" || target.tagName === \"SELECT\" || target.isContentEditable)) return;\n\t\tconst dropdown = getDropdown();\n\t\tif (!dropdown) return;\n\t\tconst items = Array.from(dropdown.querySelectorAll(\"[data-menu-item]:not([data-disabled])\")).filter((item) => item.closest(\"[data-menu-dropdown]\") === dropdown);\n\t\tif (items.length === 0) return;\n\t\tconst state = stateRef.current;\n\t\tstate.buffer = (state.buffer + event.key).toLowerCase();\n\t\tif (state.timeoutId !== null) window.clearTimeout(state.timeoutId);\n\t\tstate.timeoutId = window.setTimeout(() => {\n\t\t\tstate.buffer = \"\";\n\t\t\tstate.timeoutId = null;\n\t\t}, RESET_DELAY);\n\t\tconst activeElement = document.activeElement;\n\t\tconst currentIndex = activeElement ? items.indexOf(activeElement) : -1;\n\t\tlet match = null;\n\t\tif (state.buffer.length === 1 || isRepeatedChar(state.buffer)) {\n\t\t\tconst char = state.buffer[0];\n\t\t\tconst startIndex = currentIndex + 1;\n\t\t\tfor (let i = 0; i < items.length; i += 1) {\n\t\t\t\tconst idx = (startIndex + i) % items.length;\n\t\t\t\tif (getItemText(items[idx]).startsWith(char)) {\n\t\t\t\t\tmatch = items[idx];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else for (let i = 0; i < items.length; i += 1) if (getItemText(items[i]).startsWith(state.buffer)) {\n\t\t\tmatch = items[i];\n\t\t\tbreak;\n\t\t}\n\t\tif (match) {\n\t\t\tevent.preventDefault();\n\t\t\tmatch.focus();\n\t\t}\n\t};\n}\nexport { useMenuTypeAhead };\n\n//# sourceMappingURL=use-menu-type-ahead.mjs.map","\"use client\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { useMenuTypeAhead } from \"../use-menu-type-ahead.mjs\";\nimport { useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuDropdown/MenuDropdown.tsx\nconst MenuDropdown = factory((props) => {\n\tconst { classNames, className, style, styles, vars, onMouseEnter, onMouseLeave, onKeyDown, children, ref, ...others } = useProps(\"MenuDropdown\", null, props);\n\tconst wrapperRef = useRef(null);\n\tconst ctx = useMenuContext();\n\tconst typeAhead = useMenuTypeAhead({\n\t\tenabled: !ctx.hasSearch,\n\t\topened: ctx.opened,\n\t\tgetDropdown: () => wrapperRef.current\n\t});\n\tconst handleKeyDown = createEventHandler(onKeyDown, (event) => {\n\t\ttypeAhead(event);\n\t\tif (event.defaultPrevented || ctx.hasSearch) return;\n\t\tif (event.key === \"ArrowUp\" || event.key === \"ArrowDown\") {\n\t\t\tevent.preventDefault();\n\t\t\twrapperRef.current?.querySelectorAll(\"[data-menu-item]:not(:disabled)\")[0]?.focus();\n\t\t}\n\t});\n\tconst handleMouseEnter = createEventHandler(onMouseEnter, () => (ctx.trigger === \"hover\" || ctx.trigger === \"click-hover\") && ctx.openDropdown());\n\tconst handleMouseLeave = createEventHandler(onMouseLeave, () => (ctx.trigger === \"hover\" || ctx.trigger === \"click-hover\") && ctx.closeDropdown());\n\treturn /* @__PURE__ */ jsxs(Popover.Dropdown, {\n\t\t...others,\n\t\tonMouseEnter: handleMouseEnter,\n\t\tonMouseLeave: handleMouseLeave,\n\t\trole: \"menu\",\n\t\t\"aria-orientation\": \"vertical\",\n\t\tref: useMergedRef(ref, wrapperRef),\n\t\t...ctx.getStyles(\"dropdown\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames,\n\t\t\twithStaticClass: false\n\t\t}),\n\t\ttabIndex: -1,\n\t\t\"data-menu-dropdown\": true,\n\t\tonKeyDown: handleKeyDown,\n\t\tchildren: [ctx.withInitialFocusPlaceholder && !ctx.hasSearch && /* @__PURE__ */ jsx(\"div\", {\n\t\t\trole: \"presentation\",\n\t\t\ttabIndex: -1,\n\t\t\t\"data-autofocus\": true,\n\t\t\t\"data-mantine-stop-propagation\": true,\n\t\t\tstyle: { outline: 0 }\n\t\t}), children]\n\t});\n});\nMenuDropdown.classes = Menu_module_default;\nMenuDropdown.displayName = \"@mantine/core/MenuDropdown\";\nexport { MenuDropdown };\n\n//# sourceMappingURL=MenuDropdown.mjs.map","\"use client\";\nimport { createScopedKeydownHandler } from \"../../../core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { parseThemeColor } from \"../../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { useMantineTheme } from \"../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { polymorphicFactory } from \"../../../core/factory/polymorphic-factory.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { SubMenuContext } from \"../MenuSub/MenuSub.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { use, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuItem/MenuItem.tsx\nconst MenuItem = polymorphicFactory((props) => {\n\tconst { classNames, className, style, styles, vars, color, closeMenuOnClick, leftSection, rightSection, children, disabled, \"data-disabled\": dataDisabled, ref, ...others } = useProps(\"MenuItem\", null, props);\n\tconst ctx = useMenuContext();\n\tconst subCtx = use(SubMenuContext);\n\tconst theme = useMantineTheme();\n\tconst { dir } = useDirection();\n\tconst closeKey = dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n\tconst itemRef = useRef(null);\n\tconst _others = others;\n\tconst handleClick = createEventHandler(_others.onClick, () => {\n\t\tif (dataDisabled) return;\n\t\tif (typeof closeMenuOnClick === \"boolean\") closeMenuOnClick && ctx.closeDropdownImmediately();\n\t\telse ctx.closeOnItemClick && ctx.closeDropdownImmediately();\n\t});\n\tconst handleMouseMove = createEventHandler(_others.onMouseMove, () => {\n\t\tif (!ctx.hasSearch) return;\n\t\tconst dropdown = itemRef.current?.closest(\"[data-menu-dropdown]\");\n\t\tif (!dropdown) return;\n\t\tdropdown.querySelectorAll(\"[data-menu-active]\").forEach((node) => {\n\t\t\tif (node !== itemRef.current && node.closest(\"[data-menu-dropdown]\") === dropdown) node.removeAttribute(\"data-menu-active\");\n\t\t});\n\t});\n\tconst colors = color ? theme.variantColorResolver({\n\t\tcolor,\n\t\ttheme,\n\t\tvariant: \"light\"\n\t}) : void 0;\n\tconst parsedThemeColor = color ? parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t}) : null;\n\tconst handleKeydown = createEventHandler(_others.onKeyDown, (event) => {\n\t\tif (event.key === closeKey && subCtx) {\n\t\t\tsubCtx.close();\n\t\t\tsubCtx.focusParentItem();\n\t\t}\n\t});\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\tonMouseDown: (event) => event.preventDefault(),\n\t\t...others,\n\t\tunstyled: ctx.unstyled,\n\t\ttabIndex: ctx.menuItemTabIndex,\n\t\t...ctx.getStyles(\"item\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\tref: useMergedRef(itemRef, ref),\n\t\trole: \"menuitem\",\n\t\tdisabled,\n\t\t\"aria-disabled\": _others[\"aria-disabled\"] ?? (disabled || dataDisabled || void 0),\n\t\t\"data-menu-item\": true,\n\t\t\"data-disabled\": disabled || dataDisabled || void 0,\n\t\t\"data-mantine-stop-propagation\": true,\n\t\tonClick: handleClick,\n\t\tonMouseMove: handleMouseMove,\n\t\tonKeyDown: createScopedKeydownHandler({\n\t\t\tsiblingSelector: \"[data-menu-item]:not([data-disabled])\",\n\t\t\tparentSelector: \"[data-menu-dropdown]\",\n\t\t\tactivateOnFocus: false,\n\t\t\tloop: ctx.loop,\n\t\t\tdir,\n\t\t\torientation: \"vertical\",\n\t\t\tonKeyDown: handleKeydown\n\t\t}),\n\t\t__vars: {\n\t\t\t\"--menu-item-color\": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` : colors?.color,\n\t\t\t\"--menu-item-hover\": colors?.hover\n\t\t},\n\t\tchildren: [\n\t\t\tctx.alignItemsLabels === \"all\" && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemIndicator\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-placeholder\": true\n\t\t\t}),\n\t\t\tleftSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemSection\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-position\": \"left\",\n\t\t\t\tchildren: leftSection\n\t\t\t}),\n\t\t\tchildren && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemLabel\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-menu-item-label\": true,\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\trightSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemSection\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-position\": \"right\",\n\t\t\t\tchildren: rightSection\n\t\t\t})\n\t\t]\n\t});\n});\nMenuItem.classes = Menu_module_default;\nMenuItem.displayName = \"@mantine/core/MenuItem\";\nexport { MenuItem };\n\n//# sourceMappingURL=MenuItem.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuLabel/MenuLabel.tsx\nconst MenuLabel = factory((props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"MenuLabel\", null, props);\n\tconst ctx = useMenuContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"label\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t...others\n\t});\n});\nMenuLabel.classes = Menu_module_default;\nMenuLabel.displayName = \"@mantine/core/MenuLabel\";\nexport { MenuLabel };\n\n//# sourceMappingURL=MenuLabel.mjs.map","\"use client\";\nimport { createContext } from \"react\";\n// packages/@mantine/core/src/components/Menu/MenuRadioGroup/MenuRadioGroup.context.tsx\nconst MenuRadioGroupContext = createContext(null);\nexport { MenuRadioGroupContext };\n\n//# sourceMappingURL=MenuRadioGroup.context.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { MenuRadioGroupContext } from \"./MenuRadioGroup.context.mjs\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuRadioGroup/MenuRadioGroup.tsx\nfunction MenuRadioGroup(_props) {\n\tconst { value, defaultValue, onChange, children } = useProps(\"MenuRadioGroup\", null, _props);\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: null,\n\t\tonChange\n\t});\n\treturn /* @__PURE__ */ jsx(MenuRadioGroupContext, {\n\t\tvalue: {\n\t\t\tvalue: _value,\n\t\t\tonChange: (next) => setValue(next)\n\t\t},\n\t\tchildren\n\t});\n}\nMenuRadioGroup.displayName = \"@mantine/core/MenuRadioGroup\";\nexport { MenuRadioGroup };\n\n//# sourceMappingURL=MenuRadioGroup.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Radio/RadioIcon.tsx\nfunction RadioIcon({ size, style, ...others }) {\n\treturn /* @__PURE__ */ jsx(\"svg\", {\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tfill: \"none\",\n\t\tviewBox: \"0 0 5 5\",\n\t\tstyle: {\n\t\t\twidth: rem(size),\n\t\t\theight: rem(size),\n\t\t\t...style\n\t\t},\n\t\t\"aria-hidden\": true,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"circle\", {\n\t\t\tcx: \"2.5\",\n\t\t\tcy: \"2.5\",\n\t\t\tr: \"2.5\",\n\t\t\tfill: \"currentColor\"\n\t\t})\n\t});\n}\nexport { RadioIcon };\n\n//# sourceMappingURL=RadioIcon.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { MenuSelectableItem } from \"../MenuSelectableItem/MenuSelectableItem.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { MenuRadioGroupContext } from \"../MenuRadioGroup/MenuRadioGroup.context.mjs\";\nimport { RadioIcon } from \"../../Radio/RadioIcon.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuRadioItem/MenuRadioItem.tsx\nconst MenuRadioItem = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, color, closeMenuOnClick, rightSection, children, disabled, \"data-disabled\": dataDisabled, value, checked, onChange, checkIcon, ref, ...others } = useProps(\"MenuRadioItem\", null, _props);\n\tconst ctx = useMenuContext();\n\tconst groupCtx = use(MenuRadioGroupContext);\n\tconst _checked = checked ?? (groupCtx ? groupCtx.value === value : false);\n\tconst resolvedCheckIcon = checkIcon ?? ctx.checkIcon ?? /* @__PURE__ */ jsx(RadioIcon, { size: 5 });\n\treturn /* @__PURE__ */ jsx(MenuSelectableItem, {\n\t\trole: \"menuitemradio\",\n\t\tchecked: _checked,\n\t\tindicator: resolvedCheckIcon,\n\t\tonSelect: () => {\n\t\t\tif (!_checked) {\n\t\t\t\tif (onChange) onChange(value);\n\t\t\t\telse if (groupCtx) groupCtx.onChange(value);\n\t\t\t}\n\t\t},\n\t\tcolor,\n\t\tcloseMenuOnClick,\n\t\trightSection,\n\t\tdisabled,\n\t\tdataDisabled,\n\t\tclassName,\n\t\tstyle,\n\t\tstyles,\n\t\tclassNames,\n\t\tbuttonRef: ref,\n\t\tothers,\n\t\tchildren\n\t});\n});\nMenuRadioItem.classes = Menu_module_default;\nMenuRadioItem.displayName = \"@mantine/core/MenuRadioItem\";\nexport { MenuRadioItem };\n\n//# sourceMappingURL=MenuRadioItem.mjs.map","\"use client\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { useEffect, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuSearch/MenuSearch.tsx\nconst ITEM_SELECTOR = \"[data-menu-item]:not([data-disabled])\";\nconst ACTIVE_SELECTOR = \"[data-menu-active]\";\nfunction getDropdown(node) {\n\treturn node?.closest(\"[data-menu-dropdown]\");\n}\nfunction getItems(dropdown) {\n\tif (!dropdown) return [];\n\treturn Array.from(dropdown.querySelectorAll(ITEM_SELECTOR)).filter((item) => item.closest(\"[data-menu-dropdown]\") === dropdown);\n}\nfunction clearActive(dropdown) {\n\tif (!dropdown) return;\n\tdropdown.querySelectorAll(ACTIVE_SELECTOR).forEach((node) => {\n\t\tif (node.closest(\"[data-menu-dropdown]\") === dropdown) node.removeAttribute(\"data-menu-active\");\n\t});\n}\nfunction setActive(item, dropdown) {\n\tclearActive(dropdown);\n\tif (item) {\n\t\titem.setAttribute(\"data-menu-active\", \"true\");\n\t\titem.scrollIntoView({ block: \"nearest\" });\n\t}\n}\nfunction getActiveIndex(items) {\n\treturn items.findIndex((item) => item.hasAttribute(\"data-menu-active\"));\n}\nconst defaultProps = { clearSearchOnClose: true };\nconst MenuSearch = factory((props) => {\n\tconst { classNames, styles, onKeyDown, onChange, size, clearSearchOnClose, ref, ...others } = useProps(\"MenuSearch\", defaultProps, props);\n\tconst ctx = useMenuContext();\n\tconst { dir } = useDirection();\n\tconst inputRef = useRef(null);\n\tconst mergedRef = useMergedRef(ref, inputRef);\n\tconst onChangeRef = useRef(onChange);\n\tonChangeRef.current = onChange;\n\tuseEffect(() => {\n\t\treturn ctx.registerSearch();\n\t}, [ctx.registerSearch]);\n\tuseEffect(() => {\n\t\tif (clearSearchOnClose) ctx.searchExitClearRef.current = () => {\n\t\t\tonChangeRef.current?.({ currentTarget: { value: \"\" } });\n\t\t};\n\t\telse ctx.searchExitClearRef.current = null;\n\t}, [clearSearchOnClose, ctx.searchExitClearRef]);\n\tuseEffect(() => {\n\t\tif (!ctx.opened) clearActive(getDropdown(inputRef.current));\n\t}, [ctx.opened]);\n\tconst handleChange = createEventHandler(onChange, (event) => {\n\t\tclearActive(getDropdown(event.currentTarget));\n\t});\n\tconst handleKeyDown = createEventHandler(onKeyDown, (event) => {\n\t\tif (event.defaultPrevented) return;\n\t\tconst dropdown = getDropdown(event.currentTarget);\n\t\tconst items = getItems(dropdown);\n\t\tif (event.key === \"ArrowDown\") {\n\t\t\tevent.preventDefault();\n\t\t\tif (items.length === 0) return;\n\t\t\tconst current = getActiveIndex(items);\n\t\t\tsetActive(items[current >= items.length - 1 ? ctx.loop ? 0 : current : current + 1] ?? null, dropdown);\n\t\t} else if (event.key === \"ArrowUp\") {\n\t\t\tevent.preventDefault();\n\t\t\tif (items.length === 0) return;\n\t\t\tconst current = getActiveIndex(items);\n\t\t\tsetActive(items[current <= 0 ? current === -1 ? items.length - 1 : ctx.loop ? items.length - 1 : 0 : current - 1] ?? null, dropdown);\n\t\t} else if (event.key === \"Home\") {\n\t\t\tevent.preventDefault();\n\t\t\tif (items.length > 0) setActive(items[0], dropdown);\n\t\t} else if (event.key === \"End\") {\n\t\t\tevent.preventDefault();\n\t\t\tif (items.length > 0) setActive(items[items.length - 1], dropdown);\n\t\t} else if (event.key === \"Enter\") {\n\t\t\tif (event.nativeEvent.isComposing || event.nativeEvent.keyCode === 229) return;\n\t\t\tconst target = items[getActiveIndex(items)];\n\t\t\tif (target) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (target.hasAttribute(\"data-sub-menu-item\")) {\n\t\t\t\t\ttarget.focus();\n\t\t\t\t\ttarget.dispatchEvent(new KeyboardEvent(\"keydown\", {\n\t\t\t\t\t\tkey: dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\",\n\t\t\t\t\t\tbubbles: true\n\t\t\t\t\t}));\n\t\t\t\t} else target.click();\n\t\t\t}\n\t\t}\n\t});\n\tconst _styles = ctx.getStyles(\"search\");\n\treturn /* @__PURE__ */ jsx(Input, {\n\t\t\"data-autofocus\": true,\n\t\t\"data-mantine-stop-propagation\": true,\n\t\ttype: \"search\",\n\t\tsize,\n\t\t...others,\n\t\tref: mergedRef,\n\t\tclassNames: [{ input: _styles.className }, classNames],\n\t\tstyles: [{ input: _styles.style }, styles],\n\t\tonKeyDown: handleKeyDown,\n\t\tonChange: handleChange,\n\t\t__staticSelector: \"Menu\"\n\t});\n});\nMenuSearch.classes = Menu_module_default;\nMenuSearch.displayName = \"@mantine/core/MenuSearch\";\nexport { MenuSearch };\n\n//# sourceMappingURL=MenuSearch.mjs.map","\"use client\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { SubMenuContext } from \"../MenuSub/MenuSub.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { useMenuTypeAhead } from \"../use-menu-type-ahead.mjs\";\nimport { use, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuSubDropdown/MenuSubDropdown.tsx\nconst MenuSubDropdown = factory((props) => {\n\tconst { classNames, className, style, styles, vars, onMouseEnter, onMouseLeave, onPointerEnter, onPointerLeave, onKeyDown, children, ref, ...others } = useProps(\"MenuSubDropdown\", null, props);\n\tconst wrapperRef = useRef(null);\n\tconst ctx = useMenuContext();\n\tconst subCtx = use(SubMenuContext);\n\tconst typeAhead = useMenuTypeAhead({\n\t\tenabled: !ctx.hasSearch,\n\t\topened: subCtx?.opened ?? false,\n\t\tgetDropdown: () => wrapperRef.current\n\t});\n\tconst handleKeyDown = createEventHandler(onKeyDown, (event) => {\n\t\ttypeAhead(event);\n\t\tif (!event.ctrlKey && !event.metaKey && !event.altKey && event.key.length === 1 && event.key !== \" \") event.stopPropagation();\n\t});\n\tconst floatingProps = subCtx?.getFloatingProps({\n\t\tonMouseEnter,\n\t\tonMouseLeave,\n\t\tonPointerEnter,\n\t\tonPointerLeave\n\t});\n\treturn /* @__PURE__ */ jsx(Popover.Dropdown, {\n\t\t...others,\n\t\t...floatingProps,\n\t\trole: \"menu\",\n\t\t\"aria-orientation\": \"vertical\",\n\t\tref: useMergedRef(ref, wrapperRef, subCtx?.setFloating),\n\t\t...ctx.getStyles(\"dropdown\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames,\n\t\t\twithStaticClass: false\n\t\t}),\n\t\ttabIndex: -1,\n\t\t\"data-menu-dropdown\": true,\n\t\tonKeyDown: handleKeyDown,\n\t\tchildren\n\t});\n});\nMenuSubDropdown.classes = Menu_module_default;\nMenuSubDropdown.displayName = \"@mantine/core/MenuSubDropdown\";\nexport { MenuSubDropdown };\n\n//# sourceMappingURL=MenuSubDropdown.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Accordion/AccordionChevron.tsx\nfunction AccordionChevron({ style, size = 16, ...others }) {\n\treturn /* @__PURE__ */ jsx(\"svg\", {\n\t\tviewBox: \"0 0 15 15\",\n\t\tfill: \"none\",\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tstyle: {\n\t\t\t...style,\n\t\t\twidth: rem(size),\n\t\t\theight: rem(size),\n\t\t\tdisplay: \"block\"\n\t\t},\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"path\", {\n\t\t\td: \"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tfillRule: \"evenodd\",\n\t\t\tclipRule: \"evenodd\"\n\t\t})\n\t});\n}\nAccordionChevron.displayName = \"@mantine/core/AccordionChevron\";\nexport { AccordionChevron };\n\n//# sourceMappingURL=AccordionChevron.mjs.map","\"use client\";\nimport { createScopedKeydownHandler } from \"../../../core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { parseThemeColor } from \"../../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { useMantineTheme } from \"../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { polymorphicFactory } from \"../../../core/factory/polymorphic-factory.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { AccordionChevron } from \"../../Accordion/AccordionChevron.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { SubMenuContext } from \"../MenuSub/MenuSub.context.mjs\";\nimport Menu_module_default from \"../Menu.module.mjs\";\nimport { use, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuSubItem/MenuSubItem.tsx\nconst MenuSubItem = polymorphicFactory((props) => {\n\tconst { classNames, className, style, styles, vars, color, leftSection, rightSection, children, disabled, \"data-disabled\": dataDisabled, closeMenuOnClick, ref, ...others } = useProps(\"MenuSubItem\", null, props);\n\tconst ctx = useMenuContext();\n\tconst subCtx = use(SubMenuContext);\n\tconst theme = useMantineTheme();\n\tconst { dir } = useDirection();\n\tconst openKey = dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\";\n\tconst closeKey = dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n\tconst itemRef = useRef(null);\n\tconst _others = others;\n\tconst colors = color ? theme.variantColorResolver({\n\t\tcolor,\n\t\ttheme,\n\t\tvariant: \"light\"\n\t}) : void 0;\n\tconst parsedThemeColor = color ? parseThemeColor({\n\t\tcolor,\n\t\ttheme\n\t}) : null;\n\tconst handleKeydown = createEventHandler(_others.onKeyDown, (event) => {\n\t\tif (event.key === openKey) {\n\t\t\tsubCtx?.open();\n\t\t\tsubCtx?.focusFirstItem();\n\t\t}\n\t\tif (event.key === closeKey && subCtx?.parentContext) {\n\t\t\tsubCtx.parentContext.close();\n\t\t\tsubCtx.parentContext.focusParentItem();\n\t\t}\n\t});\n\tconst handleClick = createEventHandler(_others.onClick, () => {\n\t\tif (!dataDisabled && closeMenuOnClick) ctx.closeDropdownImmediately();\n\t});\n\tconst handleMouseMove = createEventHandler(_others.onMouseMove, () => {\n\t\tif (!ctx.hasSearch) return;\n\t\tconst dropdown = itemRef.current?.closest(\"[data-menu-dropdown]\");\n\t\tif (!dropdown) return;\n\t\tdropdown.querySelectorAll(\"[data-menu-active]\").forEach((node) => {\n\t\t\tif (node !== itemRef.current && node.closest(\"[data-menu-dropdown]\") === dropdown) node.removeAttribute(\"data-menu-active\");\n\t\t});\n\t});\n\tconst referenceProps = subCtx?.getReferenceProps({\n\t\tonMouseEnter: _others.onMouseEnter,\n\t\tonMouseLeave: _others.onMouseLeave,\n\t\tonPointerEnter: _others.onPointerEnter,\n\t\tonPointerLeave: _others.onPointerLeave\n\t});\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\tonMouseDown: (event) => event.preventDefault(),\n\t\t...others,\n\t\t...referenceProps,\n\t\tunstyled: ctx.unstyled,\n\t\ttabIndex: ctx.menuItemTabIndex,\n\t\t...ctx.getStyles(\"item\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\tref: useMergedRef(itemRef, ref, subCtx?.setReference),\n\t\trole: \"menuitem\",\n\t\tdisabled,\n\t\t\"aria-disabled\": _others[\"aria-disabled\"] ?? (disabled || dataDisabled || void 0),\n\t\t\"data-menu-item\": true,\n\t\t\"data-sub-menu-item\": true,\n\t\t\"data-disabled\": disabled || dataDisabled || void 0,\n\t\t\"data-mantine-stop-propagation\": true,\n\t\tonClick: handleClick,\n\t\tonMouseMove: handleMouseMove,\n\t\tonKeyDown: createScopedKeydownHandler({\n\t\t\tsiblingSelector: \"[data-menu-item]:not([data-disabled])\",\n\t\t\tparentSelector: \"[data-menu-dropdown]\",\n\t\t\tactivateOnFocus: false,\n\t\t\tloop: ctx.loop,\n\t\t\tdir,\n\t\t\torientation: \"vertical\",\n\t\t\tonKeyDown: handleKeydown\n\t\t}),\n\t\t__vars: {\n\t\t\t\"--menu-item-color\": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` : colors?.color,\n\t\t\t\"--menu-item-hover\": colors?.hover\n\t\t},\n\t\tchildren: [\n\t\t\tctx.alignItemsLabels === \"all\" && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemIndicator\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-placeholder\": true\n\t\t\t}),\n\t\t\tleftSection && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemSection\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-position\": \"left\",\n\t\t\t\tchildren: leftSection\n\t\t\t}),\n\t\t\tchildren && /* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemLabel\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-menu-item-label\": true,\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(\"div\", {\n\t\t\t\t...ctx.getStyles(\"itemSection\", {\n\t\t\t\t\tstyles,\n\t\t\t\t\tclassNames\n\t\t\t\t}),\n\t\t\t\t\"data-position\": \"right\",\n\t\t\t\tchildren: rightSection || /* @__PURE__ */ jsx(AccordionChevron, {\n\t\t\t\t\t...ctx.getStyles(\"chevron\"),\n\t\t\t\t\tsize: 14\n\t\t\t\t})\n\t\t\t})\n\t\t]\n\t});\n});\nMenuSubItem.classes = Menu_module_default;\nMenuSubItem.displayName = \"@mantine/core/MenuSubItem\";\nexport { MenuSubItem };\n\n//# sourceMappingURL=MenuSubItem.mjs.map","\"use client\";\nimport { isElement } from \"../../../core/utils/is-element/is-element.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuSubTarget/MenuSubTarget.tsx\nfunction MenuSubTarget({ children, refProp }) {\n\tif (!isElement(children)) throw new Error(\"Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tuseMenuContext();\n\treturn /* @__PURE__ */ jsx(Popover.Target, {\n\t\trefProp,\n\t\tpopupType: \"menu\",\n\t\tchildren\n\t});\n}\nMenuSubTarget.displayName = \"@mantine/core/MenuSubTarget\";\nexport { MenuSubTarget };\n\n//# sourceMappingURL=MenuSubTarget.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { getFloatingPosition } from \"../../../utils/Floating/get-floating-position/get-floating-position.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { SubMenuContext } from \"./MenuSub.context.mjs\";\nimport { MenuSubDropdown } from \"../MenuSubDropdown/MenuSubDropdown.mjs\";\nimport { MenuSubItem } from \"../MenuSubItem/MenuSubItem.mjs\";\nimport { MenuSubTarget } from \"../MenuSubTarget/MenuSubTarget.mjs\";\nimport { use, useCallback, useEffect, useRef } from \"react\";\nimport { useId as useId$1, useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { safePolygon, useFloating, useHover, useInteractions } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/Menu/MenuSub/MenuSub.tsx\nconst defaultProps = {\n\toffset: 0,\n\tposition: \"right-start\",\n\tsafeAreaPolygon: true,\n\ttransitionProps: { duration: 0 },\n\topenDelay: 0,\n\tmiddlewares: { shift: { crossAxis: true } }\n};\nfunction MenuSub(_props) {\n\tconst { children, closeDelay, openDelay, position, safeAreaPolygon, opened: openedProp, onChange, ...others } = useProps(\"MenuSub\", defaultProps, _props);\n\tconst id = useId$1();\n\tconst [opened, setOpened] = useUncontrolled({\n\t\tvalue: openedProp,\n\t\tfinalValue: false,\n\t\tonChange\n\t});\n\tconst parentSubCtx = use(SubMenuContext);\n\tconst menuCtx = useMenuContext();\n\tconst { dir } = useDirection();\n\tconst resolvedPosition = getFloatingPosition(dir, position);\n\tconst levelRegister = parentSubCtx?.registerOpenSub ?? menuCtx.registerOpenSub;\n\tconst activeChildCloseRef = useRef(null);\n\tconst registerOpenSub = useCallback((closeFn) => {\n\t\tconst prev = activeChildCloseRef.current;\n\t\tif (prev && prev !== closeFn) prev();\n\t\tactiveChildCloseRef.current = closeFn;\n\t\treturn () => {\n\t\t\tif (activeChildCloseRef.current === closeFn) activeChildCloseRef.current = null;\n\t\t};\n\t}, []);\n\tconst setOpenedRef = useRef(setOpened);\n\tsetOpenedRef.current = setOpened;\n\tconst handleOpen = useCallback(() => setOpenedRef.current(true), []);\n\tconst handleClose = useCallback(() => setOpenedRef.current(false), []);\n\tuseEffect(() => {\n\t\tif (!opened) return;\n\t\treturn levelRegister(handleClose);\n\t}, [\n\t\topened,\n\t\tlevelRegister,\n\t\thandleClose\n\t]);\n\tconst { context, refs } = useFloating({\n\t\tplacement: resolvedPosition,\n\t\topen: opened,\n\t\tonOpenChange: (nextOpen) => {\n\t\t\tif (nextOpen) handleOpen();\n\t\t\telse handleClose();\n\t\t}\n\t});\n\tconst { getReferenceProps, getFloatingProps } = useInteractions([useHover(context, {\n\t\thandleClose: safeAreaPolygon ? safePolygon(typeof safeAreaPolygon === \"object\" ? safeAreaPolygon : void 0) : void 0,\n\t\tdelay: {\n\t\t\topen: openDelay,\n\t\t\tclose: closeDelay\n\t\t}\n\t})]);\n\tconst focusFirstItem = () => window.setTimeout(() => {\n\t\tdocument.getElementById(`${id}-dropdown`)?.querySelectorAll(\"[data-menu-item]:not([data-disabled])\")[0]?.focus();\n\t}, 16);\n\tconst focusParentItem = () => window.setTimeout(() => {\n\t\tdocument.getElementById(id)?.focus();\n\t}, 16);\n\treturn /* @__PURE__ */ jsx(SubMenuContext, {\n\t\tvalue: {\n\t\t\topened,\n\t\t\tclose: handleClose,\n\t\t\topen: handleOpen,\n\t\t\tfocusFirstItem,\n\t\t\tfocusParentItem,\n\t\t\tparentContext: parentSubCtx,\n\t\t\tsetReference: refs.setReference,\n\t\t\tsetFloating: refs.setFloating,\n\t\t\tgetReferenceProps,\n\t\t\tgetFloatingProps,\n\t\t\tregisterOpenSub\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Popover, {\n\t\t\topened,\n\t\t\tonChange: (nextOpened) => nextOpened ? handleOpen() : handleClose(),\n\t\t\twithArrow: false,\n\t\t\tid,\n\t\t\tposition,\n\t\t\t...others,\n\t\t\twithinPortal: false,\n\t\t\tchildren\n\t\t})\n\t});\n}\nMenuSub.extend = (input) => input;\nMenuSub.displayName = \"@mantine/core/MenuSub\";\nMenuSub.Target = MenuSubTarget;\nMenuSub.Dropdown = MenuSubDropdown;\nMenuSub.Item = MenuSubItem;\nexport { MenuSub };\n\n//# sourceMappingURL=MenuSub.mjs.map","\"use client\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useMenuContext } from \"../Menu.context.mjs\";\nimport { cloneElement } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/MenuTarget/MenuTarget.tsx\nconst defaultProps = { refProp: \"ref\" };\nfunction MenuTarget(props) {\n\tconst { children, refProp, ...others } = useProps(\"MenuTarget\", defaultProps, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst ctx = useMenuContext();\n\tconst _childProps = child.props;\n\tconst onClick = createEventHandler(_childProps.onClick, () => {\n\t\tif (ctx.trigger === \"click\") ctx.toggleDropdown();\n\t\telse if (ctx.trigger === \"click-hover\") {\n\t\t\tctx.setOpenedViaClick(true);\n\t\t\tif (!ctx.opened) ctx.openDropdown();\n\t\t}\n\t});\n\tconst onMouseEnter = createEventHandler(_childProps.onMouseEnter, () => (ctx.trigger === \"hover\" || ctx.trigger === \"click-hover\") && ctx.openDropdown());\n\tconst onMouseLeave = createEventHandler(_childProps.onMouseLeave, () => {\n\t\tif (ctx.trigger === \"hover\") ctx.closeDropdown();\n\t\telse if (ctx.trigger === \"click-hover\" && !ctx.openedViaClick) ctx.closeDropdown();\n\t});\n\treturn /* @__PURE__ */ jsx(Popover.Target, {\n\t\trefProp,\n\t\tpopupType: \"menu\",\n\t\t...others,\n\t\tchildren: cloneElement(child, {\n\t\t\tonClick,\n\t\t\tonMouseEnter,\n\t\t\tonMouseLeave,\n\t\t\t\"data-expanded\": ctx.opened ? true : void 0\n\t\t})\n\t});\n}\nMenuTarget.displayName = \"@mantine/core/MenuTarget\";\nexport { MenuTarget };\n\n//# sourceMappingURL=MenuTarget.mjs.map","\"use client\";\nimport { getContextItemIndex } from \"../../core/utils/get-context-item-index/get-context-item-index.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useResolvedStylesApi } from \"../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { useDelayedHover } from \"../../utils/Floating/use-delayed-hover.mjs\";\nimport { Popover } from \"../Popover/Popover.mjs\";\nimport { MenuContextProvider } from \"./Menu.context.mjs\";\nimport { MenuCheckboxGroup } from \"./MenuCheckboxGroup/MenuCheckboxGroup.mjs\";\nimport Menu_module_default from \"./Menu.module.mjs\";\nimport { MenuCheckboxItem } from \"./MenuCheckboxItem/MenuCheckboxItem.mjs\";\nimport { MenuContextMenu } from \"./MenuContextMenu/MenuContextMenu.mjs\";\nimport { MenuDivider } from \"./MenuDivider/MenuDivider.mjs\";\nimport { MenuDropdown } from \"./MenuDropdown/MenuDropdown.mjs\";\nimport { MenuItem } from \"./MenuItem/MenuItem.mjs\";\nimport { MenuLabel } from \"./MenuLabel/MenuLabel.mjs\";\nimport { MenuRadioGroup } from \"./MenuRadioGroup/MenuRadioGroup.mjs\";\nimport { MenuRadioItem } from \"./MenuRadioItem/MenuRadioItem.mjs\";\nimport { MenuSearch } from \"./MenuSearch/MenuSearch.mjs\";\nimport { MenuSub } from \"./MenuSub/MenuSub.mjs\";\nimport { MenuTarget } from \"./MenuTarget/MenuTarget.mjs\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Menu/Menu.tsx\nconst defaultProps = {\n\ttrapFocus: true,\n\tcloseOnItemClick: true,\n\twithInitialFocusPlaceholder: true,\n\tclickOutsideEvents: [\n\t\t\"mousedown\",\n\t\t\"touchstart\",\n\t\t\"keydown\"\n\t],\n\tloop: true,\n\ttrigger: \"click\",\n\topenDelay: 0,\n\tcloseDelay: 100,\n\tmenuItemTabIndex: -1,\n\talignItemsLabels: \"with-indicators\"\n};\nconst Menu = factory((_props) => {\n\tconst props = useProps(\"Menu\", defaultProps, _props);\n\tconst { children, onOpen, onClose, opened, defaultOpened, trapFocus, onChange, closeOnItemClick, loop, closeOnEscape, trigger, openDelay, closeDelay, classNames, styles, unstyled, variant, vars, menuItemTabIndex, keepMounted, withInitialFocusPlaceholder, attributes, onExitTransitionEnd, alignItemsLabels, checkIcon, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Menu\",\n\t\tclasses: Menu_module_default,\n\t\tprops,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes\n\t});\n\tconst [_opened, setOpened] = useUncontrolled({\n\t\tvalue: opened,\n\t\tdefaultValue: defaultOpened,\n\t\tfinalValue: false,\n\t\tonChange\n\t});\n\tconst [openedViaClick, setOpenedViaClick] = useState(false);\n\tconst close = () => {\n\t\tsetOpened(false);\n\t\tsetOpenedViaClick(false);\n\t\t_opened && onClose?.();\n\t};\n\tconst open = () => {\n\t\tsetOpened(true);\n\t\t!_opened && onOpen?.();\n\t};\n\tconst toggleDropdown = () => {\n\t\t_opened ? close() : open();\n\t};\n\tconst { openDropdown, closeDropdown } = useDelayedHover({\n\t\topen,\n\t\tclose,\n\t\tcloseDelay,\n\t\topenDelay\n\t});\n\tconst activeSubCloseRef = useRef(null);\n\tconst registerOpenSub = useCallback((closeFn) => {\n\t\tconst prev = activeSubCloseRef.current;\n\t\tif (prev && prev !== closeFn) prev();\n\t\tactiveSubCloseRef.current = closeFn;\n\t\treturn () => {\n\t\t\tif (activeSubCloseRef.current === closeFn) activeSubCloseRef.current = null;\n\t\t};\n\t}, []);\n\tconst searchCountRef = useRef(0);\n\tconst [hasSearch, setHasSearch] = useState(false);\n\tconst registerSearch = useCallback(() => {\n\t\tsearchCountRef.current += 1;\n\t\tif (searchCountRef.current === 1) setHasSearch(true);\n\t\treturn () => {\n\t\t\tsearchCountRef.current -= 1;\n\t\t\tif (searchCountRef.current === 0) setHasSearch(false);\n\t\t};\n\t}, []);\n\tconst searchExitClearRef = useRef(null);\n\tconst handleExitTransitionEnd = () => {\n\t\tsearchExitClearRef.current?.();\n\t\tonExitTransitionEnd?.();\n\t};\n\tconst getItemIndex = (node) => getContextItemIndex(\"[data-menu-item]\", \"[data-menu-dropdown]\", node);\n\tconst { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({\n\t\tclassNames,\n\t\tstyles,\n\t\tprops\n\t});\n\treturn /* @__PURE__ */ jsx(MenuContextProvider, {\n\t\tvalue: {\n\t\t\tgetStyles,\n\t\t\topened: _opened,\n\t\t\ttoggleDropdown,\n\t\t\tgetItemIndex,\n\t\t\topenedViaClick,\n\t\t\tsetOpenedViaClick,\n\t\t\tcloseOnItemClick,\n\t\t\tcloseDropdown: trigger === \"click\" ? close : closeDropdown,\n\t\t\topenDropdown: trigger === \"click\" ? open : openDropdown,\n\t\t\tcloseDropdownImmediately: close,\n\t\t\tloop,\n\t\t\ttrigger,\n\t\t\tunstyled,\n\t\t\tmenuItemTabIndex,\n\t\t\twithInitialFocusPlaceholder,\n\t\t\tregisterOpenSub,\n\t\t\thasSearch,\n\t\t\tregisterSearch,\n\t\t\tsearchExitClearRef,\n\t\t\talignItemsLabels,\n\t\t\tcheckIcon\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Popover, {\n\t\t\treturnFocus: true,\n\t\t\t...others,\n\t\t\topened: _opened,\n\t\t\tonChange: toggleDropdown,\n\t\t\tdefaultOpened,\n\t\t\ttrapFocus: keepMounted ? false : trapFocus,\n\t\t\tcloseOnEscape,\n\t\t\t__staticSelector: \"Menu\",\n\t\t\tclassNames: resolvedClassNames,\n\t\t\tstyles: resolvedStyles,\n\t\t\tunstyled,\n\t\t\tvariant,\n\t\t\tkeepMounted,\n\t\t\tonExitTransitionEnd: handleExitTransitionEnd,\n\t\t\tchildren\n\t\t})\n\t});\n});\nMenu.displayName = \"@mantine/core/Menu\";\nMenu.classes = Menu_module_default;\nMenu.Item = MenuItem;\nMenu.Label = MenuLabel;\nMenu.Dropdown = MenuDropdown;\nMenu.Target = MenuTarget;\nMenu.Divider = MenuDivider;\nMenu.Search = MenuSearch;\nMenu.Sub = MenuSub;\nMenu.CheckboxItem = MenuCheckboxItem;\nMenu.CheckboxGroup = MenuCheckboxGroup;\nMenu.RadioItem = MenuRadioItem;\nMenu.RadioGroup = MenuRadioGroup;\nMenu.ContextMenu = MenuContextMenu;\nexport { Menu };\n\n//# sourceMappingURL=Menu.mjs.map","\"use client\";\nimport { useEffect, useRef } from \"react\";\n// packages/@mantine/core/src/utils/Floating/use-delayed-hover.ts\nfunction useDelayedHover({ open, close, openDelay, closeDelay }) {\n\tconst openTimeout = useRef(-1);\n\tconst closeTimeout = useRef(-1);\n\tconst clearTimeouts = () => {\n\t\twindow.clearTimeout(openTimeout.current);\n\t\twindow.clearTimeout(closeTimeout.current);\n\t};\n\tconst openDropdown = () => {\n\t\tclearTimeouts();\n\t\tif (openDelay === 0 || openDelay === void 0) open();\n\t\telse openTimeout.current = window.setTimeout(open, openDelay);\n\t};\n\tconst closeDropdown = () => {\n\t\tclearTimeouts();\n\t\tif (closeDelay === 0 || closeDelay === void 0) close();\n\t\telse closeTimeout.current = window.setTimeout(close, closeDelay);\n\t};\n\tuseEffect(() => clearTimeouts, []);\n\treturn {\n\t\topenDropdown,\n\t\tcloseDropdown\n\t};\n}\nexport { useDelayedHover };\n\n//# sourceMappingURL=use-delayed-hover.mjs.map","\"use client\";\nimport { findElementAncestor } from \"../find-element-ancestor/find-element-ancestor.mjs\";\n// packages/@mantine/core/src/core/utils/get-context-item-index/get-context-item-index.ts\nfunction getContextItemIndex(elementSelector, parentSelector, node) {\n\tif (!node) return null;\n\treturn Array.from(findElementAncestor(node, parentSelector)?.querySelectorAll(elementSelector) || []).findIndex((element) => element === node);\n}\nexport { getContextItemIndex };\n\n//# sourceMappingURL=get-context-item-index.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ActionIcon/ActionIcon.module.css\nvar ActionIcon_module_default = {\n\t\"root\": \"m_8d3f4000\",\n\t\"icon\": \"m_8d3afb97\",\n\t\"loader\": \"m_302b9fb1\",\n\t\"group\": \"m_1a0f1b21\",\n\t\"groupSection\": \"m_437b6484\"\n};\nexport { ActionIcon_module_default as default };\n\n//# sourceMappingURL=ActionIcon.module.mjs.map","\"use client\";\nimport { rem } from \"../../../core/utils/units-converters/rem.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport ActionIcon_module_default from \"../ActionIcon.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ActionIcon/ActionIconGroup/ActionIconGroup.tsx\nconst defaultProps = { orientation: \"horizontal\" };\nconst varsResolver = createVarsResolver((_, { borderWidth }) => ({ group: { \"--ai-border-width\": rem(borderWidth) } }));\nconst ActionIconGroup = factory((_props) => {\n\tconst props = useProps(\"ActionIconGroup\", defaultProps, _props);\n\tconst { className, style, classNames, styles, unstyled, orientation, vars, borderWidth, variant, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"ActionIconGroup\",\n\t\tprops,\n\t\tclasses: ActionIcon_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"group\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"group\"),\n\t\tvariant,\n\t\tmod: [{ orientation }, mod],\n\t\trole: \"group\",\n\t\t...others\n\t});\n});\nActionIconGroup.classes = ActionIcon_module_default;\nActionIconGroup.varsResolver = varsResolver;\nActionIconGroup.displayName = \"@mantine/core/ActionIconGroup\";\nexport { ActionIconGroup };\n\n//# sourceMappingURL=ActionIconGroup.mjs.map","\"use client\";\nimport { getFontSize, getRadius, getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport ActionIcon_module_default from \"../ActionIcon.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.tsx\nconst varsResolver = createVarsResolver((theme, { radius, color, gradient, variant, autoContrast, size }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tgradient,\n\t\tvariant: variant || \"filled\",\n\t\tautoContrast\n\t});\n\treturn { groupSection: {\n\t\t\"--section-height\": getSize(size, \"section-height\"),\n\t\t\"--section-padding-x\": getSize(size, \"section-padding-x\"),\n\t\t\"--section-fz\": getFontSize(size),\n\t\t\"--section-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--section-bg\": color || variant ? colors.background : void 0,\n\t\t\"--section-color\": colors.color,\n\t\t\"--section-bd\": color || variant ? colors.border : void 0\n\t} };\n});\nconst ActionIconGroupSection = factory((_props) => {\n\tconst props = useProps(\"ActionIconGroupSection\", null, _props);\n\tconst { className, style, classNames, styles, unstyled, vars, variant, gradient, radius, autoContrast, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"ActionIconGroupSection\",\n\t\tprops,\n\t\tclasses: ActionIcon_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"groupSection\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"groupSection\"),\n\t\tvariant,\n\t\t...others\n\t});\n});\nActionIconGroupSection.classes = ActionIcon_module_default;\nActionIconGroupSection.varsResolver = varsResolver;\nActionIconGroupSection.displayName = \"@mantine/core/ActionIconGroupSection\";\nexport { ActionIconGroupSection };\n\n//# sourceMappingURL=ActionIconGroupSection.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { UnstyledButton } from \"../UnstyledButton/UnstyledButton.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { Loader } from \"../Loader/Loader.mjs\";\nimport ActionIcon_module_default from \"./ActionIcon.module.mjs\";\nimport { ActionIconGroup } from \"./ActionIconGroup/ActionIconGroup.mjs\";\nimport { ActionIconGroupSection } from \"./ActionIconGroupSection/ActionIconGroupSection.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ActionIcon/ActionIcon.tsx\nconst varsResolver = createVarsResolver((theme, { size, radius, variant, gradient, color, autoContrast }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tgradient,\n\t\tvariant: variant || \"filled\",\n\t\tautoContrast\n\t});\n\treturn { root: {\n\t\t\"--ai-size\": getSize(size, \"ai-size\"),\n\t\t\"--ai-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--ai-bg\": color || variant ? colors.background : void 0,\n\t\t\"--ai-hover\": color || variant ? colors.hover : void 0,\n\t\t\"--ai-hover-color\": color || variant ? colors.hoverColor : void 0,\n\t\t\"--ai-color\": colors.color,\n\t\t\"--ai-bd\": color || variant ? colors.border : void 0\n\t} };\n});\nconst ActionIcon = polymorphicFactory((_props) => {\n\tconst props = useProps(\"ActionIcon\", null, _props);\n\tconst { className, unstyled, variant, classNames, styles, style, loading, loaderProps, size, color, radius, __staticSelector, gradient, vars, children, disabled, \"data-disabled\": dataDisabled, autoContrast, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: [\"ActionIcon\", __staticSelector],\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclasses: ActionIcon_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\t...getStyles(\"root\", { active: !disabled && !loading && !dataDisabled }),\n\t\t\"aria-busy\": loading || void 0,\n\t\t...others,\n\t\tunstyled,\n\t\tvariant,\n\t\tsize,\n\t\tdisabled: disabled || loading,\n\t\tmod: [{\n\t\t\tloading,\n\t\t\tdisabled: disabled || dataDisabled\n\t\t}, mod],\n\t\tchildren: [typeof loading === \"boolean\" && /* @__PURE__ */ jsx(Transition, {\n\t\t\tmounted: loading,\n\t\t\ttransition: \"slide-down\",\n\t\t\tduration: 150,\n\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(Box, {\n\t\t\t\tcomponent: \"span\",\n\t\t\t\t...getStyles(\"loader\", { style: transitionStyles }),\n\t\t\t\t\"aria-hidden\": true,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(Loader, {\n\t\t\t\t\tcolor: \"var(--ai-color)\",\n\t\t\t\t\tsize: \"calc(var(--ai-size) * 0.55)\",\n\t\t\t\t\t...loaderProps\n\t\t\t\t})\n\t\t\t})\n\t\t}), /* @__PURE__ */ jsx(Box, {\n\t\t\tcomponent: \"span\",\n\t\t\tmod: { loading },\n\t\t\t...getStyles(\"icon\"),\n\t\t\tchildren\n\t\t})]\n\t});\n});\nActionIcon.classes = ActionIcon_module_default;\nActionIcon.varsResolver = varsResolver;\nActionIcon.displayName = \"@mantine/core/ActionIcon\";\nActionIcon.Group = ActionIconGroup;\nActionIcon.GroupSection = ActionIconGroupSection;\nexport { ActionIcon };\n\n//# sourceMappingURL=ActionIcon.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Container/Container.module.css\nvar Container_module_default = { \"root\": \"m_7485cace\" };\nexport { Container_module_default as default };\n\n//# sourceMappingURL=Container.module.mjs.map","\"use client\";\nimport { getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Container_module_default from \"./Container.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Container/Container.tsx\nconst defaultProps = { strategy: \"block\" };\nconst varsResolver = createVarsResolver((_, { size, fluid }) => ({ root: { \"--container-size\": fluid ? void 0 : getSize(size, \"container-size\") } }));\nconst Container = factory((_props) => {\n\tconst props = useProps(\"Container\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, fluid, mod, attributes, strategy, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Container\",\n\t\tclasses: Container_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tmod: [{\n\t\t\tfluid,\n\t\t\tstrategy\n\t\t}, mod],\n\t\t...getStyles(\"root\"),\n\t\t...others\n\t});\n});\nContainer.classes = Container_module_default;\nContainer.varsResolver = varsResolver;\nContainer.displayName = \"@mantine/core/Container\";\nexport { Container };\n\n//# sourceMappingURL=Container.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Transition/get-transition-props/get-transition-props.ts\nconst defaultTransition = {\n\tduration: 100,\n\ttransition: \"fade\"\n};\nfunction getTransitionProps(transitionProps, componentTransition) {\n\treturn {\n\t\t...defaultTransition,\n\t\t...componentTransition,\n\t\t...transitionProps\n\t};\n}\nexport { getTransitionProps };\n\n//# sourceMappingURL=get-transition-props.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Tooltip/Tooltip.module.css\nvar Tooltip_module_default = {\n\t\"tooltip\": \"m_1b3c8819\",\n\t\"arrow\": \"m_f898399f\"\n};\nexport { Tooltip_module_default as default };\n\n//# sourceMappingURL=Tooltip.module.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getRadius } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { getRefProp } from \"../../../core/utils/get-ref-prop/get-ref-prop.mjs\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useMantineTheme } from \"../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { getStyleObject } from \"../../../core/Box/get-style-object/get-style-object.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { OptionalPortal } from \"../../Portal/OptionalPortal.mjs\";\nimport { useFloatingTooltip } from \"./use-floating-tooltip.mjs\";\nimport Tooltip_module_default from \"../Tooltip.module.mjs\";\nimport { cloneElement } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { Fragment as Fragment$1, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tooltip/TooltipFloating/TooltipFloating.tsx\nconst defaultProps = {\n\trefProp: \"ref\",\n\twithinPortal: true,\n\toffset: 10,\n\tposition: \"right\",\n\tzIndex: getDefaultZIndex(\"popover\")\n};\nconst varsResolver = createVarsResolver((theme, { radius, color }) => ({ tooltip: {\n\t\"--tooltip-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--tooltip-bg\": color ? getThemeColor(color, theme) : void 0,\n\t\"--tooltip-color\": color ? \"var(--mantine-color-white)\" : void 0\n} }));\nconst TooltipFloating = factory((_props) => {\n\tconst props = useProps(\"TooltipFloating\", defaultProps, _props);\n\tconst { children, refProp, withinPortal, style, className, classNames, styles, unstyled, radius, color, label, offset, position, multiline, zIndex, disabled, defaultOpened, variant, vars, portalProps, attributes, ref, ...others } = props;\n\tconst theme = useMantineTheme();\n\tconst getStyles = useStyles({\n\t\tname: \"TooltipFloating\",\n\t\tprops,\n\t\tclasses: Tooltip_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"tooltip\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { handleMouseMove, x, y, opened, boundaryRef, floating, setOpened } = useFloatingTooltip({\n\t\toffset,\n\t\tposition,\n\t\tdefaultOpened\n\t});\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported\");\n\tconst targetRef = useMergedRef(boundaryRef, getRefProp(child), ref);\n\tconst childProps = child.props;\n\tconst onMouseEnter = (event) => {\n\t\tchildProps.onMouseEnter?.(event);\n\t\thandleMouseMove(event);\n\t\tsetOpened(true);\n\t};\n\tconst onMouseLeave = (event) => {\n\t\tchildProps.onMouseLeave?.(event);\n\t\tsetOpened(false);\n\t};\n\treturn /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(OptionalPortal, {\n\t\t...portalProps,\n\t\twithinPortal,\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\t...others,\n\t\t\t...getStyles(\"tooltip\", { style: {\n\t\t\t\t...getStyleObject(style, theme),\n\t\t\t\tzIndex,\n\t\t\t\tdisplay: !disabled && opened ? \"block\" : \"none\",\n\t\t\t\ttop: Number.isFinite(y) ? Math.round(y) : \"\",\n\t\t\t\tleft: Number.isFinite(x) ? Math.round(x) : \"\"\n\t\t\t} }),\n\t\t\tvariant,\n\t\t\tref: floating,\n\t\t\tmod: { multiline },\n\t\t\tchildren: label\n\t\t})\n\t}), cloneElement(child, {\n\t\t...childProps,\n\t\t[refProp]: targetRef,\n\t\tonMouseEnter,\n\t\tonMouseLeave\n\t})] });\n});\nTooltipFloating.classes = Tooltip_module_default;\nTooltipFloating.varsResolver = varsResolver;\nTooltipFloating.displayName = \"@mantine/core/TooltipFloating\";\nexport { TooltipFloating };\n\n//# sourceMappingURL=TooltipFloating.mjs.map","\"use client\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { getOverflowAncestors, shift, useFloating } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/Tooltip/TooltipFloating/use-floating-tooltip.ts\nfunction useFloatingTooltip({ offset, position, defaultOpened }) {\n\tconst [opened, setOpened] = useState(defaultOpened);\n\tconst boundaryRef = useRef(null);\n\tconst { x, y, elements, refs, update, placement } = useFloating({\n\t\tplacement: position,\n\t\tmiddleware: [shift({\n\t\t\tcrossAxis: true,\n\t\t\tpadding: 5,\n\t\t\trootBoundary: \"document\"\n\t\t})]\n\t});\n\tconst horizontalOffset = placement.includes(\"right\") ? offset : position.includes(\"left\") ? offset * -1 : 0;\n\tconst verticalOffset = placement.includes(\"bottom\") ? offset : position.includes(\"top\") ? offset * -1 : 0;\n\tconst handleMouseMove = useCallback(({ clientX, clientY }) => {\n\t\tif (!Number.isFinite(clientX) || !Number.isFinite(clientY)) return;\n\t\trefs.setPositionReference({ getBoundingClientRect() {\n\t\t\treturn {\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\tx: clientX,\n\t\t\t\ty: clientY,\n\t\t\t\tleft: clientX + horizontalOffset,\n\t\t\t\ttop: clientY + verticalOffset,\n\t\t\t\tright: clientX,\n\t\t\t\tbottom: clientY\n\t\t\t};\n\t\t} });\n\t}, [elements.reference]);\n\tuseEffect(() => {\n\t\tif (refs.floating.current) {\n\t\t\tconst boundary = boundaryRef.current;\n\t\t\tboundary.addEventListener(\"mousemove\", handleMouseMove);\n\t\t\tconst parents = getOverflowAncestors(refs.floating.current);\n\t\t\tparents.forEach((parent) => {\n\t\t\t\tparent.addEventListener(\"scroll\", update);\n\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tboundary.removeEventListener(\"mousemove\", handleMouseMove);\n\t\t\t\tparents.forEach((parent) => {\n\t\t\t\t\tparent.removeEventListener(\"scroll\", update);\n\t\t\t\t});\n\t\t\t};\n\t\t}\n\t}, [\n\t\telements.reference,\n\t\trefs.floating.current,\n\t\tupdate,\n\t\thandleMouseMove,\n\t\topened\n\t]);\n\treturn {\n\t\thandleMouseMove,\n\t\tx,\n\t\ty,\n\t\topened,\n\t\tsetOpened,\n\t\tboundaryRef,\n\t\tfloating: refs.setFloating\n\t};\n}\nexport { useFloatingTooltip };\n\n//# sourceMappingURL=use-floating-tooltip.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { createContext } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { FloatingDelayGroup } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/Tooltip/TooltipGroup/TooltipGroup.tsx\nconst TooltipGroupContext = createContext({ withinGroup: false });\nconst defaultProps = {\n\topenDelay: 0,\n\tcloseDelay: 0\n};\nfunction TooltipGroup(props) {\n\tconst { openDelay, closeDelay, children } = useProps(\"TooltipGroup\", defaultProps, props);\n\treturn /* @__PURE__ */ jsx(TooltipGroupContext, {\n\t\tvalue: { withinGroup: true },\n\t\tchildren: /* @__PURE__ */ jsx(FloatingDelayGroup, {\n\t\t\tdelay: {\n\t\t\t\topen: openDelay,\n\t\t\t\tclose: closeDelay\n\t\t\t},\n\t\t\tchildren\n\t\t})\n\t});\n}\nTooltipGroup.displayName = \"@mantine/core/TooltipGroup\";\nTooltipGroup.extend = (c) => c;\nexport { TooltipGroup, TooltipGroupContext };\n\n//# sourceMappingURL=TooltipGroup.mjs.map","\"use client\";\nimport { useMantineEnv } from \"../../core/MantineProvider/Mantine.context.mjs\";\nimport { TooltipGroupContext } from \"./TooltipGroup/TooltipGroup.mjs\";\nimport { use, useCallback, useEffect, useRef, useState } from \"react\";\nimport { useId as useId$1, useIsomorphicEffect } from \"@mantine/hooks\";\nimport { arrow, autoUpdate, flip, hide, inline, offset, safePolygon, shift, useDelayGroup, useDismiss, useFloating, useFocus, useHover, useInteractions, useRole } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/Tooltip/use-tooltip.ts\nfunction getDefaultMiddlewares(middlewares) {\n\tif (middlewares === void 0) return {\n\t\tshift: true,\n\t\tflip: true\n\t};\n\tconst result = { ...middlewares };\n\tif (middlewares.shift === void 0) result.shift = true;\n\tif (middlewares.flip === void 0) result.flip = true;\n\treturn result;\n}\nfunction getTooltipMiddlewares(settings) {\n\tconst middlewaresOptions = getDefaultMiddlewares(settings.middlewares);\n\tconst middlewares = [offset(settings.offset), hide()];\n\tif (middlewaresOptions.shift) middlewares.push(shift(typeof middlewaresOptions.shift === \"boolean\" ? { padding: 8 } : {\n\t\tpadding: 8,\n\t\t...middlewaresOptions.shift\n\t}));\n\tif (middlewaresOptions.flip) middlewares.push(typeof middlewaresOptions.flip === \"boolean\" ? flip() : flip(middlewaresOptions.flip));\n\tmiddlewares.push(arrow({\n\t\telement: settings.arrowRef,\n\t\tpadding: settings.arrowOffset\n\t}));\n\tif (middlewaresOptions.inline) middlewares.push(typeof middlewaresOptions.inline === \"boolean\" ? inline() : inline(middlewaresOptions.inline));\n\telse if (settings.inline) middlewares.push(inline());\n\treturn middlewares;\n}\nfunction useTooltip(settings) {\n\tconst [uncontrolledOpened, setUncontrolledOpened] = useState(settings.defaultOpened);\n\tconst controlled = typeof settings.opened === \"boolean\";\n\tconst opened = !settings.disabled && (controlled ? settings.opened : uncontrolledOpened);\n\tuseEffect(() => {\n\t\tif (settings.disabled) setUncontrolledOpened(false);\n\t}, [settings.disabled]);\n\tconst withinGroup = use(TooltipGroupContext).withinGroup;\n\tconst uid = useId$1();\n\tconst env = useMantineEnv();\n\tconst onChange = useCallback((_opened) => {\n\t\tsetUncontrolledOpened(_opened);\n\t\tif (_opened) setCurrentId(uid);\n\t}, [uid]);\n\tconst { x, y, context, refs, placement, middlewareData: { arrow: { x: arrowX, y: arrowY } = {}, hide: hideData } } = useFloating({\n\t\tstrategy: settings.strategy,\n\t\tplacement: settings.position,\n\t\topen: opened,\n\t\tonOpenChange: onChange,\n\t\tmiddleware: getTooltipMiddlewares(settings),\n\t\twhileElementsMounted: autoUpdate\n\t});\n\tconst { delay: groupDelay, currentId, setCurrentId } = useDelayGroup(context, { id: uid });\n\tconst { getReferenceProps, getFloatingProps } = useInteractions([\n\t\tuseHover(context, {\n\t\t\tenabled: !settings.disabled && settings.events?.hover,\n\t\t\tdelay: withinGroup ? groupDelay : {\n\t\t\t\topen: settings.openDelay,\n\t\t\t\tclose: settings.closeDelay\n\t\t\t},\n\t\t\tmouseOnly: !settings.events?.touch,\n\t\t\thandleClose: settings.interactive ? safePolygon() : null\n\t\t}),\n\t\tuseFocus(context, {\n\t\t\tenabled: !settings.disabled && settings.events?.focus,\n\t\t\tvisibleOnly: true\n\t\t}),\n\t\tuseRole(context, { role: \"tooltip\" }),\n\t\tuseDismiss(context, { enabled: typeof settings.opened === \"undefined\" })\n\t]);\n\tconst previousPlacementRef = useRef(placement);\n\tuseIsomorphicEffect(() => {\n\t\tif (previousPlacementRef.current !== placement) {\n\t\t\tpreviousPlacementRef.current = placement;\n\t\t\tsettings.onPositionChange?.(placement);\n\t\t}\n\t}, [placement]);\n\tconst isGroupPhase = opened && currentId && currentId !== uid;\n\treturn {\n\t\tx,\n\t\ty,\n\t\tarrowX,\n\t\tarrowY,\n\t\treference: refs.setReference,\n\t\tfloating: refs.setFloating,\n\t\tgetFloatingProps,\n\t\tgetReferenceProps,\n\t\tisGroupPhase,\n\t\topened,\n\t\tplacement,\n\t\treferenceHidden: settings.hideDetached && env !== \"test\" ? hideData?.referenceHidden : false\n\t};\n}\nexport { useTooltip };\n\n//# sourceMappingURL=use-tooltip.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { getRefProp } from \"../../core/utils/get-ref-prop/get-ref-prop.mjs\";\nimport { getSingleElementChild } from \"../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useDirection } from \"../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { getArrowMergeDropdownStyles } from \"../../utils/Floating/FloatingArrow/get-arrow-position-styles.mjs\";\nimport { FloatingArrow } from \"../../utils/Floating/FloatingArrow/FloatingArrow.mjs\";\nimport { getFloatingPosition } from \"../../utils/Floating/get-floating-position/get-floating-position.mjs\";\nimport { OptionalPortal } from \"../Portal/OptionalPortal.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { getTransitionProps } from \"../Transition/get-transition-props/get-transition-props.mjs\";\nimport Tooltip_module_default from \"./Tooltip.module.mjs\";\nimport { TooltipFloating } from \"./TooltipFloating/TooltipFloating.mjs\";\nimport { TooltipGroup } from \"./TooltipGroup/TooltipGroup.mjs\";\nimport { useTooltip } from \"./use-tooltip.mjs\";\nimport { cloneElement, useEffect, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport cx from \"clsx\";\nimport { Fragment as Fragment$1, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tooltip/Tooltip.tsx\nconst defaultProps = {\n\tposition: \"top\",\n\trefProp: \"ref\",\n\twithinPortal: true,\n\tarrowSize: 4,\n\tarrowOffset: 5,\n\tarrowRadius: 0,\n\tarrowPosition: \"side\",\n\toffset: 5,\n\ttransitionProps: {\n\t\tduration: 100,\n\t\ttransition: \"fade\"\n\t},\n\tevents: {\n\t\thover: true,\n\t\tfocus: false,\n\t\ttouch: false\n\t},\n\tzIndex: getDefaultZIndex(\"popover\"),\n\tmiddlewares: {\n\t\tflip: true,\n\t\tshift: true,\n\t\tinline: false\n\t},\n\thideDetached: true\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, variant, autoContrast }) => {\n\tconst colors = theme.variantColorResolver({\n\t\ttheme,\n\t\tcolor: color || theme.primaryColor,\n\t\tautoContrast,\n\t\tvariant: variant || \"filled\"\n\t});\n\treturn { tooltip: {\n\t\t\"--tooltip-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--tooltip-bg\": color ? colors.background : void 0,\n\t\t\"--tooltip-color\": color ? colors.color : void 0\n\t} };\n});\nconst Tooltip = factory((_props) => {\n\tconst props = useProps(\"Tooltip\", defaultProps, _props);\n\tconst { children, position, refProp, label, openDelay, closeDelay, onPositionChange, opened, defaultOpened, withinPortal, radius, color, classNames, styles, unstyled, style, className, withArrow, arrowSize, arrowOffset, arrowRadius, arrowPosition, offset, transitionProps, multiline, events, interactive, zIndex, disabled, onClick, onMouseEnter, onMouseLeave, inline, variant, keepMounted, vars, portalProps, mod, floatingStrategy, middlewares, autoContrast, attributes, target, hideDetached, ref, ...others } = props;\n\tconst { dir } = useDirection();\n\tconst arrowRef = useRef(null);\n\tconst tooltip = useTooltip({\n\t\tposition: getFloatingPosition(dir, position),\n\t\tcloseDelay,\n\t\topenDelay,\n\t\tonPositionChange,\n\t\topened,\n\t\tdefaultOpened,\n\t\tdisabled,\n\t\tevents,\n\t\tinteractive,\n\t\tarrowRef,\n\t\tarrowOffset,\n\t\toffset: typeof offset === \"number\" ? offset + (withArrow ? arrowSize / 2 : 0) : offset,\n\t\tinline,\n\t\tstrategy: floatingStrategy,\n\t\tmiddlewares,\n\t\thideDetached\n\t});\n\tuseEffect(() => {\n\t\tconst targetNode = target instanceof HTMLElement ? target : typeof target === \"string\" ? document.querySelector(target) : target?.current || null;\n\t\tif (targetNode) tooltip.reference(targetNode);\n\t}, [target, tooltip]);\n\tconst getStyles = useStyles({\n\t\tname: \"Tooltip\",\n\t\tprops,\n\t\tclasses: Tooltip_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"tooltip\",\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst child = getSingleElementChild(children);\n\tif (!target && !child) throw new Error(\"[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported\");\n\tconst tooltipStyles = getStyles(\"tooltip\");\n\tconst interactiveMod = interactive && !disabled && !!tooltip.opened;\n\tconst mergeStyles = arrowPosition === \"merge\" && withArrow ? getArrowMergeDropdownStyles({\n\t\tposition: tooltip.placement,\n\t\tdir\n\t}) : void 0;\n\tif (target) {\n\t\tconst transition = getTransitionProps(transitionProps, {\n\t\t\tduration: 100,\n\t\t\ttransition: \"fade\"\n\t\t});\n\t\treturn /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(OptionalPortal, {\n\t\t\t...portalProps,\n\t\t\twithinPortal,\n\t\t\tchildren: /* @__PURE__ */ jsx(Transition, {\n\t\t\t\t...transition,\n\t\t\t\tkeepMounted,\n\t\t\t\tmounted: !disabled && !!tooltip.opened,\n\t\t\t\tduration: tooltip.isGroupPhase ? 10 : transition.duration,\n\t\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsxs(Box, {\n\t\t\t\t\t...others,\n\t\t\t\t\t\"data-fixed\": floatingStrategy === \"fixed\" || void 0,\n\t\t\t\t\tvariant,\n\t\t\t\t\tmod: [{\n\t\t\t\t\t\tmultiline,\n\t\t\t\t\t\tinteractive: interactiveMod\n\t\t\t\t\t}, mod],\n\t\t\t\t\t...tooltipStyles,\n\t\t\t\t\t...tooltip.getFloatingProps({\n\t\t\t\t\t\tref: tooltip.floating,\n\t\t\t\t\t\tclassName: tooltipStyles.className,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...tooltipStyles.style,\n\t\t\t\t\t\t\t...transitionStyles,\n\t\t\t\t\t\t\t...mergeStyles,\n\t\t\t\t\t\t\tzIndex,\n\t\t\t\t\t\t\ttop: tooltip.y ?? 0,\n\t\t\t\t\t\t\tleft: tooltip.x ?? 0,\n\t\t\t\t\t\t\t...tooltip.referenceHidden ? { display: \"none\" } : null\n\t\t\t\t\t\t}\n\t\t\t\t\t}),\n\t\t\t\t\tchildren: [label, /* @__PURE__ */ jsx(FloatingArrow, {\n\t\t\t\t\t\tref: arrowRef,\n\t\t\t\t\t\tarrowX: tooltip.arrowX,\n\t\t\t\t\t\tarrowY: tooltip.arrowY,\n\t\t\t\t\t\tvisible: withArrow,\n\t\t\t\t\t\tposition: tooltip.placement,\n\t\t\t\t\t\tarrowSize,\n\t\t\t\t\t\tarrowOffset,\n\t\t\t\t\t\tarrowRadius,\n\t\t\t\t\t\tarrowPosition,\n\t\t\t\t\t\t...getStyles(\"arrow\")\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t}) });\n\t}\n\tconst childProps = child.props;\n\tconst targetRef = useMergedRef(tooltip.reference, getRefProp(child), ref);\n\tconst transition = getTransitionProps(transitionProps, {\n\t\tduration: 100,\n\t\ttransition: \"fade\"\n\t});\n\treturn /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(OptionalPortal, {\n\t\t...portalProps,\n\t\twithinPortal,\n\t\tchildren: /* @__PURE__ */ jsx(Transition, {\n\t\t\t...transition,\n\t\t\tkeepMounted,\n\t\t\tmounted: !disabled && !!tooltip.opened,\n\t\t\tduration: tooltip.isGroupPhase ? 10 : transition.duration,\n\t\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsxs(Box, {\n\t\t\t\t...others,\n\t\t\t\t\"data-fixed\": floatingStrategy === \"fixed\" || void 0,\n\t\t\t\tvariant,\n\t\t\t\tmod: [{\n\t\t\t\t\tmultiline,\n\t\t\t\t\tinteractive: interactiveMod\n\t\t\t\t}, mod],\n\t\t\t\t...tooltip.getFloatingProps({\n\t\t\t\t\tref: tooltip.floating,\n\t\t\t\t\tclassName: getStyles(\"tooltip\").className,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...getStyles(\"tooltip\").style,\n\t\t\t\t\t\t...transitionStyles,\n\t\t\t\t\t\t...mergeStyles,\n\t\t\t\t\t\tzIndex,\n\t\t\t\t\t\ttop: tooltip.y ?? 0,\n\t\t\t\t\t\tleft: tooltip.x ?? 0,\n\t\t\t\t\t\t...tooltip.referenceHidden ? { display: \"none\" } : null\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tchildren: [label, /* @__PURE__ */ jsx(FloatingArrow, {\n\t\t\t\t\tref: arrowRef,\n\t\t\t\t\tarrowX: tooltip.arrowX,\n\t\t\t\t\tarrowY: tooltip.arrowY,\n\t\t\t\t\tvisible: withArrow,\n\t\t\t\t\tposition: tooltip.placement,\n\t\t\t\t\tarrowSize,\n\t\t\t\t\tarrowOffset,\n\t\t\t\t\tarrowRadius,\n\t\t\t\t\tarrowPosition,\n\t\t\t\t\t...getStyles(\"arrow\")\n\t\t\t\t})]\n\t\t\t})\n\t\t})\n\t}), cloneElement(child, tooltip.getReferenceProps({\n\t\tonClick,\n\t\tonMouseEnter,\n\t\tonMouseLeave,\n\t\tonMouseMove: props.onMouseMove,\n\t\tonPointerDown: props.onPointerDown,\n\t\tonPointerEnter: props.onPointerEnter,\n\t\t...childProps,\n\t\tclassName: cx(className, childProps.className),\n\t\t[refProp]: targetRef\n\t}))] });\n});\nTooltip.classes = Tooltip_module_default;\nTooltip.varsResolver = varsResolver;\nTooltip.displayName = \"@mantine/core/Tooltip\";\nTooltip.Floating = TooltipFloating;\nTooltip.Group = TooltipGroup;\nexport { Tooltip };\n\n//# sourceMappingURL=Tooltip.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"building-complex\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M10 12h4\", key: \"a56b0p\" }],\n    [\"path\", { d: \"M10 8h4\", key: \"1sr2af\" }],\n    [\"path\", { d: \"M14 21v-3a2 2 0 0 0-4 0v3\", key: \"1rgiei\" }],\n    [\n      \"path\",\n      {\n        d: \"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2\",\n        key: \"secmi2\"\n      }\n    ],\n    [\"path\", { d: \"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16\", key: \"16ra0t\" }]\n  ],\n  aliases: [\"building-2\"]\n};\n__iconData.node;\nconst BuildingComplex = createLucideIcon(__iconData);\n\nexport { __iconData, BuildingComplex as default };\n//# sourceMappingURL=building-complex.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"chevron-down\",\n  size: 24,\n  node: [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]]\n};\n__iconData.node;\nconst ChevronDown = createLucideIcon(__iconData);\n\nexport { __iconData, ChevronDown as default };\n//# sourceMappingURL=chevron-down.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"check\",\n  size: 24,\n  node: [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]]\n};\n__iconData.node;\nconst Check = createLucideIcon(__iconData);\n\nexport { __iconData, Check as default };\n//# sourceMappingURL=check.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"plus\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n    [\"path\", { d: \"M12 5v14\", key: \"s699le\" }]\n  ]\n};\n__iconData.node;\nconst Plus = createLucideIcon(__iconData);\n\nexport { __iconData, Plus as default };\n//# sourceMappingURL=plus.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"user-round\",\n  size: 24,\n  node: [\n    [\"circle\", { cx: \"12\", cy: \"8\", r: \"5\", key: \"1hypcn\" }],\n    [\"path\", { d: \"M20 21a8 8 0 0 0-16 0\", key: \"rfgkzh\" }]\n  ],\n  aliases: [\"user-2\"]\n};\n__iconData.node;\nconst UserRound = createLucideIcon(__iconData);\n\nexport { __iconData, UserRound as default };\n//# sourceMappingURL=user-round.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"globe\",\n  size: 24,\n  node: [\n    [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n    [\"path\", { d: \"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\", key: \"13o1zl\" }],\n    [\"path\", { d: \"M2 12h20\", key: \"9i4pu4\" }]\n  ]\n};\n__iconData.node;\nconst Globe = createLucideIcon(__iconData);\n\nexport { __iconData, Globe as default };\n//# sourceMappingURL=globe.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"log-out\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"m16 17 5-5-5-5\", key: \"1bji2h\" }],\n    [\"path\", { d: \"M21 12H9\", key: \"dn1m92\" }],\n    [\"path\", { d: \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\", key: \"1uf3rs\" }]\n  ]\n};\n__iconData.node;\nconst LogOut = createLucideIcon(__iconData);\n\nexport { __iconData, LogOut as default };\n//# sourceMappingURL=log-out.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"inbox\",\n  size: 24,\n  node: [\n    [\"polyline\", { points: \"22 12 16 12 14 15 10 15 8 12 2 12\", key: \"o97t9d\" }],\n    [\n      \"path\",\n      {\n        d: \"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\",\n        key: \"oot6mr\"\n      }\n    ]\n  ]\n};\n__iconData.node;\nconst Inbox = createLucideIcon(__iconData);\n\nexport { __iconData, Inbox as default };\n//# sourceMappingURL=inbox.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"calendar-clock\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M16 2v3\", key: \"otl347\" }],\n    [\"path\", { d: \"M17 15.5v1.7l1 .625\", key: \"100ewj\" }],\n    [\"path\", { d: \"M21 8.936V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h3.935\", key: \"g2sirp\" }],\n    [\"path\", { d: \"M3 9h9.873\", key: \"7y8bi6\" }],\n    [\"path\", { d: \"M8 2v3\", key: \"1ioesn\" }],\n    [\"circle\", { cx: \"17\", cy: \"17\", r: \"5\", key: \"1op1d2\" }]\n  ]\n};\n__iconData.node;\nconst CalendarClock = createLucideIcon(__iconData);\n\nexport { __iconData, CalendarClock as default };\n//# sourceMappingURL=calendar-clock.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"settings\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915\",\n        key: \"1i5ecw\"\n      }\n    ],\n    [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }]\n  ]\n};\n__iconData.node;\nconst Settings = createLucideIcon(__iconData);\n\nexport { __iconData, Settings as default };\n//# sourceMappingURL=settings.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"message-circle\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n        key: \"1sd12s\"\n      }\n    ]\n  ]\n};\n__iconData.node;\nconst MessageCircle = createLucideIcon(__iconData);\n\nexport { __iconData, MessageCircle as default };\n//# sourceMappingURL=message-circle.mjs.map\n","import { api } from \"./api\";\n\n/** The service worker (notifications only), registered once the page is loaded. */\nexport function registerServiceWorker() {\n  if (typeof navigator === \"undefined\" || !(\"serviceWorker\" in navigator)) return;\n  window.addEventListener(\"load\", () => {\n    navigator.serviceWorker.register(\"/sw.js\", { scope: \"/\" }).catch(() => {});\n  });\n}\n\nexport const isStandalone = () =>\n  typeof window !== \"undefined\" &&\n  ((window.matchMedia && window.matchMedia(\"(display-mode: standalone)\").matches) ||\n    window.navigator.standalone === true);\n\nexport const isIos = () =>\n  typeof navigator !== \"undefined\" && /iPhone|iPad|iPod/.test(navigator.userAgent || \"\");\n\nexport const pushSupported = () =>\n  typeof window !== \"undefined\" &&\n  \"serviceWorker\" in navigator &&\n  \"PushManager\" in window &&\n  \"Notification\" in window;\n\nfunction keyBytes(base64url) {\n  const padded = (base64url + \"=\".repeat((4 - (base64url.length % 4)) % 4)).replace(/-/g, \"+\").replace(/_/g, \"/\");\n  const raw = atob(padded);\n  return Uint8Array.from(raw, (c) => c.charCodeAt(0));\n}\n\nexport async function currentSubscription() {\n  if (!pushSupported()) return null;\n  const registration = await navigator.serviceWorker.ready;\n  return registration.pushManager.getSubscription();\n}\n\nfunction sameKey(subscription, publicKey) {\n  const current = subscription.options && subscription.options.applicationServerKey;\n  if (!current) return false;\n  const a = new Uint8Array(current);\n  const b = keyBytes(publicKey);\n  return a.length === b.length && a.every((byte, i) => byte === b[i]);\n}\n\n/** The browser's subscription for the server's key now; one made for an older key (the\n * key was rotated) is replaced, since its pushes could not be sent. */\nasync function subscriptionFor(publicKey) {\n  const registration = await navigator.serviceWorker.ready;\n  let subscription = await registration.pushManager.getSubscription();\n  if (subscription && !sameKey(subscription, publicKey)) {\n    await subscription.unsubscribe();\n    subscription = null;\n  }\n  if (!subscription) {\n    subscription = await registration.pushManager.subscribe({\n      userVisibleOnly: true,\n      applicationServerKey: keyBytes(publicKey),\n    });\n  }\n  return subscription;\n}\n\n/** Whether this device gets notifications: the browser allows them, and the server holds\n * this browser's subscription for this sign-in and its key now. */\nexport async function pushIsOn(publicKey, registered) {\n  if (!pushSupported() || Notification.permission !== \"granted\" || !publicKey) return false;\n  const subscription = await currentSubscription();\n  return Boolean(subscription && sameKey(subscription, publicKey) && (registered || []).includes(subscription.endpoint));\n}\n\n/** Asks the browser for permission (must follow a tap) and registers this device. */\nexport async function enablePush(publicKey) {\n  const permission = await Notification.requestPermission();\n  if (permission !== \"granted\") throw new Error(\"denied\");\n  const subscription = await subscriptionFor(publicKey);\n  await api(\"/api/push/subscribe/\", { method: \"POST\", body: subscription.toJSON() });\n  return subscription;\n}\n\n/** Stops notifications on this device. The browser's subscription goes even when telling\n * the server fails: the push service then refuses our pushes and the server drops it. */\nexport async function disablePush() {\n  const subscription = await currentSubscription();\n  if (!subscription) return;\n  try {\n    await api(\"/api/push/unsubscribe/\", { method: \"POST\", body: { endpoint: subscription.endpoint } });\n  } finally {\n    await subscription.unsubscribe();\n  }\n}\n\n/** After a new sign-in on a device that already allowed notifications, the server has no\n * subscription for the new session: register it again, silently. */\nexport async function renewPush(publicKey) {\n  if (!pushSupported() || Notification.permission !== \"granted\" || !publicKey) return;\n  if (!(await currentSubscription())) return;\n  const subscription = await subscriptionFor(publicKey);\n  await api(\"/api/push/subscribe/\", { method: \"POST\", body: subscription.toJSON() });\n}\n","\"use client\";\n// packages/@mantine/core/src/components/Modal/Modal.module.css\nvar Modal_module_default = {\n\t\"root\": \"m_9df02822\",\n\t\"content\": \"m_54c44539\",\n\t\"inner\": \"m_1f958f16\",\n\t\"header\": \"m_d0e2b9cd\"\n};\nexport { Modal_module_default as default };\n\n//# sourceMappingURL=Modal.module.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/ModalBase/ModalBase.context.ts\nconst [ModalBaseProvider, useModalBaseContext] = createSafeContext(\"ModalBase component was not found in tree\");\nexport { ModalBaseProvider, useModalBaseContext };\n\n//# sourceMappingURL=ModalBase.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ModalBase/ModalBase.module.css\nvar ModalBase_module_default = {\n\t\"title\": \"m_615af6c9\",\n\t\"header\": \"m_b5489c3c\",\n\t\"inner\": \"m_60c222c7\",\n\t\"content\": \"m_fd1ab0aa\",\n\t\"close\": \"m_606cb269\",\n\t\"body\": \"m_5df29311\"\n};\nexport { ModalBase_module_default as default };\n\n//# sourceMappingURL=ModalBase.module.mjs.map","\"use client\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport { useModalBodyId } from \"./use-modal-body-id.mjs\";\nimport ModalBase_module_default from \"./ModalBase.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseBody.tsx\nfunction ModalBaseBody({ className, ...others }) {\n\tconst bodyId = useModalBodyId();\n\tconst ctx = useModalBaseContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tid: bodyId,\n\t\tclassName: cx({ [ModalBase_module_default.body]: !ctx.unstyled }, className),\n\t\t...others\n\t});\n}\nModalBaseBody.displayName = \"@mantine/core/ModalBaseBody\";\nexport { ModalBaseBody };\n\n//# sourceMappingURL=ModalBaseBody.mjs.map","\"use client\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport { useEffect } from \"react\";\n// packages/@mantine/core/src/components/ModalBase/use-modal-body-id.ts\nfunction useModalBodyId() {\n\tconst ctx = useModalBaseContext();\n\tuseEffect(() => {\n\t\tctx.setBodyMounted(true);\n\t\treturn () => ctx.setBodyMounted(false);\n\t}, []);\n\treturn ctx.getBodyId();\n}\nexport { useModalBodyId };\n\n//# sourceMappingURL=use-modal-body-id.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Modal/Modal.context.ts\nconst [ModalProvider, useModalContext] = createSafeContext(\"Modal component was not found in tree\");\nexport { ModalProvider, useModalContext };\n\n//# sourceMappingURL=Modal.context.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseBody } from \"../ModalBase/ModalBaseBody.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalBody.tsx\nconst ModalBody = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ModalBody\", null, _props);\n\tconst ctx = useModalContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseBody, {\n\t\t...ctx.getStyles(\"body\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nModalBody.classes = Modal_module_default;\nModalBody.displayName = \"@mantine/core/ModalBody\";\nexport { ModalBody };\n\n//# sourceMappingURL=ModalBody.mjs.map","\"use client\";\nimport { CloseButton } from \"../CloseButton/CloseButton.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport ModalBase_module_default from \"./ModalBase.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseCloseButton.tsx\nfunction ModalBaseCloseButton({ className, onClick, ...others }) {\n\tconst ctx = useModalBaseContext();\n\treturn /* @__PURE__ */ jsx(CloseButton, {\n\t\t...others,\n\t\tonClick: (event) => {\n\t\t\tctx.onClose();\n\t\t\tonClick?.(event);\n\t\t},\n\t\tclassName: cx({ [ModalBase_module_default.close]: !ctx.unstyled }, className),\n\t\tunstyled: ctx.unstyled\n\t});\n}\nModalBaseCloseButton.displayName = \"@mantine/core/ModalBaseCloseButton\";\nexport { ModalBaseCloseButton };\n\n//# sourceMappingURL=ModalBaseCloseButton.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseCloseButton } from \"../ModalBase/ModalBaseCloseButton.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalCloseButton.tsx\nconst ModalCloseButton = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ModalCloseButton\", null, _props);\n\tconst ctx = useModalContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseCloseButton, {\n\t\t...ctx.getStyles(\"close\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nModalCloseButton.classes = Modal_module_default;\nModalCloseButton.displayName = \"@mantine/core/ModalCloseButton\";\nexport { ModalCloseButton };\n\n//# sourceMappingURL=ModalCloseButton.mjs.map","\"use client\";\nimport { Paper } from \"../Paper/Paper.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { FocusTrap } from \"../FocusTrap/FocusTrap.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport ModalBase_module_default from \"./ModalBase.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseContent.tsx\nfunction ModalBaseContent({ transitionProps, className, innerProps, onKeyDown, style, ref, ...others }) {\n\tconst ctx = useModalBaseContext();\n\treturn /* @__PURE__ */ jsx(Transition, {\n\t\tmounted: ctx.opened,\n\t\ttransition: \"pop\",\n\t\t...ctx.transitionProps,\n\t\tonExited: () => {\n\t\t\tctx.onExitTransitionEnd?.();\n\t\t\tctx.transitionProps?.onExited?.();\n\t\t},\n\t\tonEntered: () => {\n\t\t\tctx.onEnterTransitionEnd?.();\n\t\t\tctx.transitionProps?.onEntered?.();\n\t\t},\n\t\t...transitionProps,\n\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(\"div\", {\n\t\t\t...innerProps,\n\t\t\tclassName: cx({ [ModalBase_module_default.inner]: !ctx.unstyled }, innerProps.className),\n\t\t\tchildren: /* @__PURE__ */ jsx(FocusTrap, {\n\t\t\t\tactive: ctx.opened && ctx.trapFocus,\n\t\t\t\tinnerRef: ref,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(Paper, {\n\t\t\t\t\t...others,\n\t\t\t\t\tcomponent: \"section\",\n\t\t\t\t\trole: \"dialog\",\n\t\t\t\t\ttabIndex: -1,\n\t\t\t\t\t\"aria-modal\": true,\n\t\t\t\t\t\"aria-describedby\": ctx.bodyMounted ? ctx.getBodyId() : void 0,\n\t\t\t\t\t\"aria-labelledby\": ctx.titleMounted ? ctx.getTitleId() : void 0,\n\t\t\t\t\tstyle: [style, transitionStyles],\n\t\t\t\t\tclassName: cx({ [ModalBase_module_default.content]: !ctx.unstyled }, className),\n\t\t\t\t\tunstyled: ctx.unstyled,\n\t\t\t\t\tchildren: others.children\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t});\n}\nModalBaseContent.displayName = \"@mantine/core/ModalBaseContent\";\nexport { ModalBaseContent };\n\n//# sourceMappingURL=ModalBaseContent.mjs.map","\"use client\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/NativeScrollArea.tsx\nfunction NativeScrollArea({ children }) {\n\treturn /* @__PURE__ */ jsx(Fragment, { children });\n}\nexport { NativeScrollArea };\n\n//# sourceMappingURL=NativeScrollArea.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseContent } from \"../ModalBase/ModalBaseContent.mjs\";\nimport { NativeScrollArea } from \"../ModalBase/NativeScrollArea.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalContent.tsx\nconst ModalContent = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, children, __hidden, ...others } = useProps(\"ModalContent\", null, _props);\n\tconst ctx = useModalContext();\n\tconst Scroll = ctx.scrollAreaComponent || NativeScrollArea;\n\treturn /* @__PURE__ */ jsx(ModalBaseContent, {\n\t\t...ctx.getStyles(\"content\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\tinnerProps: ctx.getStyles(\"inner\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t\"data-full-screen\": ctx.fullScreen || void 0,\n\t\t\"data-modal-content\": true,\n\t\t\"data-hidden\": __hidden || void 0,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(Scroll, {\n\t\t\tstyle: { maxHeight: ctx.fullScreen ? \"100dvh\" : `calc(100dvh - (${rem(ctx.yOffset)} * 2))` },\n\t\t\tchildren\n\t\t})\n\t});\n});\nModalContent.classes = Modal_module_default;\nModalContent.displayName = \"@mantine/core/ModalContent\";\nexport { ModalContent };\n\n//# sourceMappingURL=ModalContent.mjs.map","\"use client\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport ModalBase_module_default from \"./ModalBase.module.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseHeader.tsx\nfunction ModalBaseHeader({ className, ...others }) {\n\tconst ctx = useModalBaseContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"header\",\n\t\tclassName: cx({ [ModalBase_module_default.header]: !ctx.unstyled }, className),\n\t\t...others\n\t});\n}\nModalBaseHeader.displayName = \"@mantine/core/ModalBaseHeader\";\nexport { ModalBaseHeader };\n\n//# sourceMappingURL=ModalBaseHeader.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseHeader } from \"../ModalBase/ModalBaseHeader.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalHeader.tsx\nconst ModalHeader = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ModalHeader\", null, _props);\n\tconst ctx = useModalContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseHeader, {\n\t\t...ctx.getStyles(\"header\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nModalHeader.classes = Modal_module_default;\nModalHeader.displayName = \"@mantine/core/ModalHeader\";\nexport { ModalHeader };\n\n//# sourceMappingURL=ModalHeader.mjs.map","\"use client\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\n// packages/@mantine/core/src/components/ModalBase/use-modal-transition.ts\nconst DEFAULT_TRANSITION = {\n\tduration: 200,\n\ttimingFunction: \"ease\",\n\ttransition: \"fade\"\n};\nfunction useModalTransition(transitionOverride) {\n\tconst ctx = useModalBaseContext();\n\treturn {\n\t\t...DEFAULT_TRANSITION,\n\t\t...ctx.transitionProps,\n\t\t...transitionOverride\n\t};\n}\nexport { useModalTransition };\n\n//# sourceMappingURL=use-modal-transition.mjs.map","\"use client\";\nimport { Overlay } from \"../Overlay/Overlay.mjs\";\nimport { Transition } from \"../Transition/Transition.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport { useModalTransition } from \"./use-modal-transition.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseOverlay.tsx\nfunction ModalBaseOverlay({ onClick, transitionProps, style, visible, ...others }) {\n\tconst ctx = useModalBaseContext();\n\tconst transition = useModalTransition(transitionProps);\n\tconst isMounted = visible !== void 0 ? visible : ctx.opened;\n\treturn /* @__PURE__ */ jsx(Transition, {\n\t\tmounted: isMounted,\n\t\t...transition,\n\t\ttransition: \"fade\",\n\t\tchildren: (transitionStyles) => /* @__PURE__ */ jsx(Overlay, {\n\t\t\tfixed: true,\n\t\t\tstyle: [\n\t\t\t\tstyle,\n\t\t\t\ttransitionStyles,\n\t\t\t\t!isMounted ? { pointerEvents: \"none\" } : void 0\n\t\t\t],\n\t\t\tzIndex: ctx.zIndex,\n\t\t\tunstyled: ctx.unstyled,\n\t\t\tonClick: (event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\tctx.closeOnClickOutside && ctx.onClose();\n\t\t\t},\n\t\t\t...others\n\t\t})\n\t});\n}\nModalBaseOverlay.displayName = \"@mantine/core/ModalBaseOverlay\";\nexport { ModalBaseOverlay };\n\n//# sourceMappingURL=ModalBaseOverlay.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseOverlay } from \"../ModalBase/ModalBaseOverlay.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalOverlay.tsx\nconst ModalOverlay = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ModalOverlay\", null, _props);\n\tconst ctx = useModalContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseOverlay, {\n\t\t...ctx.getStyles(\"overlay\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nModalOverlay.classes = Modal_module_default;\nModalOverlay.displayName = \"@mantine/core/ModalOverlay\";\nexport { ModalOverlay };\n\n//# sourceMappingURL=ModalOverlay.mjs.map","\"use client\";\nimport { useEffectEvent } from \"react\";\nimport { useIsomorphicEffect } from \"@mantine/hooks\";\n// packages/@mantine/core/src/components/ScrollArea/use-resize-observer.ts\nfunction useResizeObserver(element, onResize) {\n\tconst handleResize = useEffectEvent(onResize);\n\tuseIsomorphicEffect(() => {\n\t\tlet rAF = 0;\n\t\tif (element) {\n\t\t\tconst resizeObserver = new ResizeObserver(() => {\n\t\t\t\tcancelAnimationFrame(rAF);\n\t\t\t\trAF = window.requestAnimationFrame(handleResize);\n\t\t\t});\n\t\t\tresizeObserver.observe(element);\n\t\t\treturn () => {\n\t\t\t\twindow.cancelAnimationFrame(rAF);\n\t\t\t\tresizeObserver.unobserve(element);\n\t\t\t};\n\t\t}\n\t}, [element]);\n}\nexport { useResizeObserver };\n\n//# sourceMappingURL=use-resize-observer.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollArea.context.ts\nconst [ScrollAreaProvider, useScrollAreaContext] = createSafeContext(\"ScrollArea.Root component was not found in tree\");\nexport { ScrollAreaProvider, useScrollAreaContext };\n\n//# sourceMappingURL=ScrollArea.context.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { useResizeObserver } from \"../use-resize-observer.mjs\";\nimport { useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.tsx\nfunction Corner(props) {\n\tconst { style, ...others } = props;\n\tconst ctx = useScrollAreaContext();\n\tconst [width, setWidth] = useState(0);\n\tconst [height, setHeight] = useState(0);\n\tconst hasSize = Boolean(width && height);\n\tuseResizeObserver(ctx.scrollbarX, () => {\n\t\tconst h = ctx.scrollbarX?.offsetHeight || 0;\n\t\tctx.onCornerHeightChange(h);\n\t\tsetHeight(h);\n\t});\n\tuseResizeObserver(ctx.scrollbarY, () => {\n\t\tconst w = ctx.scrollbarY?.offsetWidth || 0;\n\t\tctx.onCornerWidthChange(w);\n\t\tsetWidth(w);\n\t});\n\treturn hasSize ? /* @__PURE__ */ jsx(\"div\", {\n\t\t...others,\n\t\tstyle: {\n\t\t\t...style,\n\t\t\twidth,\n\t\t\theight\n\t\t}\n\t}) : null;\n}\nfunction ScrollAreaCorner(props) {\n\tconst ctx = useScrollAreaContext();\n\tconst hasBothScrollbarsVisible = Boolean(ctx.scrollbarX && ctx.scrollbarY);\n\treturn ctx.type !== \"scroll\" && hasBothScrollbarsVisible ? /* @__PURE__ */ jsx(Corner, { ...props }) : null;\n}\nexport { Corner, ScrollAreaCorner };\n\n//# sourceMappingURL=ScrollAreaCorner.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { ScrollAreaProvider } from \"../ScrollArea.context.mjs\";\nimport { useState } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.tsx\nconst defaultProps = {\n\tscrollHideDelay: 1e3,\n\ttype: \"hover\"\n};\nfunction ScrollAreaRoot(_props) {\n\tconst { type, scrollHideDelay, scrollbars, getStyles, ref, ...others } = useProps(\"ScrollAreaRoot\", defaultProps, _props);\n\tconst [scrollArea, setScrollArea] = useState(null);\n\tconst [viewport, setViewport] = useState(null);\n\tconst [content, setContent] = useState(null);\n\tconst [scrollbarX, setScrollbarX] = useState(null);\n\tconst [scrollbarY, setScrollbarY] = useState(null);\n\tconst [cornerWidth, setCornerWidth] = useState(0);\n\tconst [cornerHeight, setCornerHeight] = useState(0);\n\tconst [scrollbarXEnabled, setScrollbarXEnabled] = useState(false);\n\tconst [scrollbarYEnabled, setScrollbarYEnabled] = useState(false);\n\tconst rootRef = useMergedRef(ref, setScrollArea);\n\treturn /* @__PURE__ */ jsx(ScrollAreaProvider, {\n\t\tvalue: {\n\t\t\ttype,\n\t\t\tscrollHideDelay,\n\t\t\tscrollArea,\n\t\t\tviewport,\n\t\t\tonViewportChange: setViewport,\n\t\t\tcontent,\n\t\t\tonContentChange: setContent,\n\t\t\tscrollbarX,\n\t\t\tonScrollbarXChange: setScrollbarX,\n\t\t\tscrollbarXEnabled,\n\t\t\tonScrollbarXEnabledChange: setScrollbarXEnabled,\n\t\t\tscrollbarY,\n\t\t\tonScrollbarYChange: setScrollbarY,\n\t\t\tscrollbarYEnabled,\n\t\t\tonScrollbarYEnabledChange: setScrollbarYEnabled,\n\t\t\tonCornerWidthChange: setCornerWidth,\n\t\t\tonCornerHeightChange: setCornerHeight,\n\t\t\tgetStyles\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\t...others,\n\t\t\tref: rootRef,\n\t\t\t__vars: {\n\t\t\t\t\"--sa-corner-width\": scrollbars !== \"xy\" ? \"0px\" : `${cornerWidth}px`,\n\t\t\t\t\"--sa-corner-height\": scrollbars !== \"xy\" ? \"0px\" : `${cornerHeight}px`\n\t\t\t}\n\t\t})\n\t});\n}\nScrollAreaRoot.displayName = \"@mantine/core/ScrollAreaRoot\";\nexport { ScrollAreaRoot };\n\n//# sourceMappingURL=ScrollAreaRoot.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/get-thumb-ratio.tsx\nfunction getThumbRatio(viewportSize, contentSize) {\n\tconst ratio = viewportSize / contentSize;\n\treturn Number.isNaN(ratio) ? 0 : ratio;\n}\nexport { getThumbRatio };\n\n//# sourceMappingURL=get-thumb-ratio.mjs.map","\"use client\";\nimport { getThumbRatio } from \"./get-thumb-ratio.mjs\";\n// packages/@mantine/core/src/components/ScrollArea/utils/get-thumb-size.tsx\nfunction getThumbSize(sizes) {\n\tconst ratio = getThumbRatio(sizes.viewport, sizes.content);\n\tconst scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n\tconst thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n\treturn Math.max(thumbSize, 18);\n}\nexport { getThumbSize };\n\n//# sourceMappingURL=get-thumb-size.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/linear-scale.ts\nfunction linearScale(input, output) {\n\treturn (value) => {\n\t\tif (input[0] === input[1] || output[0] === output[1]) return output[0];\n\t\tconst ratio = (output[1] - output[0]) / (input[1] - input[0]);\n\t\treturn output[0] + ratio * (value - input[0]);\n\t};\n}\nexport { linearScale };\n\n//# sourceMappingURL=linear-scale.mjs.map","\"use client\";\nimport { getThumbSize } from \"./get-thumb-size.mjs\";\nimport { linearScale } from \"./linear-scale.mjs\";\n// packages/@mantine/core/src/components/ScrollArea/utils/get-thumb-offset-from-scroll.ts\nfunction clamp(value, [min, max]) {\n\treturn Math.min(max, Math.max(min, value));\n}\nfunction getThumbOffsetFromScroll(scrollPos, sizes, dir = \"ltr\") {\n\tconst thumbSizePx = getThumbSize(sizes);\n\tconst scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n\tconst scrollbar = sizes.scrollbar.size - scrollbarPadding;\n\tconst maxScrollPos = sizes.content - sizes.viewport;\n\tconst maxThumbPos = scrollbar - thumbSizePx;\n\tconst scrollWithoutMomentum = clamp(scrollPos, dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0]);\n\treturn linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);\n}\nexport { getThumbOffsetFromScroll };\n\n//# sourceMappingURL=get-thumb-offset-from-scroll.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/is-scrolling-within-scrollbar-bounds.ts\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n\treturn scrollPos > 0 && scrollPos < maxScrollPos;\n}\nexport { isScrollingWithinScrollbarBounds };\n\n//# sourceMappingURL=is-scrolling-within-scrollbar-bounds.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/to-int.ts\nfunction toInt(value) {\n\treturn value ? parseInt(value, 10) : 0;\n}\nexport { toInt };\n\n//# sourceMappingURL=to-int.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/compose-event-handlers.ts\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n\treturn (event) => {\n\t\toriginalEventHandler?.(event);\n\t\tif (checkForDefaultPrevented === false || !event.defaultPrevented) ourEventHandler?.(event);\n\t};\n}\nexport { composeEventHandlers };\n\n//# sourceMappingURL=compose-event-handlers.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.context.ts\nconst [ScrollbarProvider, useScrollbarContext] = createSafeContext(\"ScrollAreaScrollbar was not found in tree\");\nexport { ScrollbarProvider, useScrollbarContext };\n\n//# sourceMappingURL=Scrollbar.context.mjs.map","\"use client\";\nimport { useEffect, useMemo, useRef } from \"react\";\n// packages/@mantine/hooks/src/utils/use-callback-ref/use-callback-ref.ts\nfunction useCallbackRef(callback) {\n\tconst callbackRef = useRef(callback);\n\tuseEffect(() => {\n\t\tcallbackRef.current = callback;\n\t});\n\treturn useMemo(() => ((...args) => callbackRef.current?.(...args)), []);\n}\nexport { useCallbackRef };\n\n//# sourceMappingURL=use-callback-ref.mjs.map","\"use client\";\nimport { useCallbackRef } from \"../utils/use-callback-ref/use-callback-ref.mjs\";\nimport { useEffect, useMemo, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-debounced-callback/use-debounced-callback.ts\nfunction useDebouncedCallback(callback, options) {\n\tconst { delay, flushOnUnmount, leading, maxWait } = typeof options === \"number\" ? {\n\t\tdelay: options,\n\t\tflushOnUnmount: false,\n\t\tleading: false,\n\t\tmaxWait: void 0\n\t} : options;\n\tconst handleCallback = useCallbackRef(callback);\n\tconst debounceTimerRef = useRef(0);\n\tconst maxWaitTimerRef = useRef(0);\n\tconst latestArgsRef = useRef(null);\n\tconst lastCallback = useMemo(() => {\n\t\tconst currentCallback = Object.assign((...args) => {\n\t\t\twindow.clearTimeout(debounceTimerRef.current);\n\t\t\tlatestArgsRef.current = args;\n\t\t\tconst isFirstCall = currentCallback._isFirstCall;\n\t\t\tcurrentCallback._isFirstCall = false;\n\t\t\tfunction clearTimeoutAndLeadingRef() {\n\t\t\t\twindow.clearTimeout(debounceTimerRef.current);\n\t\t\t\twindow.clearTimeout(maxWaitTimerRef.current);\n\t\t\t\tdebounceTimerRef.current = 0;\n\t\t\t\tmaxWaitTimerRef.current = 0;\n\t\t\t\tcurrentCallback._isFirstCall = true;\n\t\t\t\tcurrentCallback._hasPendingCallback = false;\n\t\t\t}\n\t\t\tfunction startMaxWaitTimer() {\n\t\t\t\tif (maxWait !== void 0 && maxWaitTimerRef.current === 0) maxWaitTimerRef.current = window.setTimeout(() => {\n\t\t\t\t\tmaxWaitTimerRef.current = 0;\n\t\t\t\t\tif (debounceTimerRef.current !== 0 && currentCallback._hasPendingCallback) {\n\t\t\t\t\t\tconst latestArgs = latestArgsRef.current;\n\t\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t\t\thandleCallback(...latestArgs);\n\t\t\t\t\t}\n\t\t\t\t}, maxWait);\n\t\t\t}\n\t\t\tif (leading && isFirstCall) {\n\t\t\t\thandleCallback(...args);\n\t\t\t\tconst resetLeadingState = () => {\n\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t};\n\t\t\t\tconst flush = () => {\n\t\t\t\t\tif (debounceTimerRef.current !== 0) clearTimeoutAndLeadingRef();\n\t\t\t\t};\n\t\t\t\tconst cancel = () => {\n\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t};\n\t\t\t\tcurrentCallback.flush = flush;\n\t\t\t\tcurrentCallback.cancel = cancel;\n\t\t\t\tdebounceTimerRef.current = window.setTimeout(resetLeadingState, delay);\n\t\t\t\tstartMaxWaitTimer();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (leading && !isFirstCall) {\n\t\t\t\tcurrentCallback._hasPendingCallback = true;\n\t\t\t\tconst flush = () => {\n\t\t\t\t\tif (debounceTimerRef.current !== 0) {\n\t\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t\t\thandleCallback(...args);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tconst cancel = () => {\n\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t};\n\t\t\t\tcurrentCallback.flush = flush;\n\t\t\t\tcurrentCallback.cancel = cancel;\n\t\t\t\tconst resetLeadingState = () => {\n\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t};\n\t\t\t\tdebounceTimerRef.current = window.setTimeout(resetLeadingState, delay);\n\t\t\t\tstartMaxWaitTimer();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrentCallback._hasPendingCallback = true;\n\t\t\tconst flush = () => {\n\t\t\t\tif (debounceTimerRef.current !== 0) {\n\t\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t\t\thandleCallback(...args);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst cancel = () => {\n\t\t\t\tclearTimeoutAndLeadingRef();\n\t\t\t};\n\t\t\tcurrentCallback.flush = flush;\n\t\t\tcurrentCallback.cancel = cancel;\n\t\t\tdebounceTimerRef.current = window.setTimeout(flush, delay);\n\t\t\tstartMaxWaitTimer();\n\t\t}, {\n\t\t\tflush: () => {},\n\t\t\tcancel: () => {},\n\t\t\tisPending: () => currentCallback._hasPendingCallback,\n\t\t\t_isFirstCall: true,\n\t\t\t_hasPendingCallback: false\n\t\t});\n\t\treturn currentCallback;\n\t}, [\n\t\thandleCallback,\n\t\tdelay,\n\t\tleading,\n\t\tmaxWait\n\t]);\n\tuseEffect(() => () => {\n\t\tif (flushOnUnmount) lastCallback.flush();\n\t\telse lastCallback.cancel();\n\t}, [lastCallback, flushOnUnmount]);\n\treturn lastCallback;\n}\nexport { useDebouncedCallback };\n\n//# sourceMappingURL=use-debounced-callback.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { useResizeObserver } from \"../use-resize-observer.mjs\";\nimport { composeEventHandlers } from \"../utils/compose-event-handlers.mjs\";\nimport { ScrollbarProvider } from \"./Scrollbar.context.mjs\";\nimport { useEffect, useEffectEvent, useRef, useState } from \"react\";\nimport { useCallbackRef, useDebouncedCallback, useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx\nfunction Scrollbar(props) {\n\tconst { sizes, hasThumb, onThumbChange, onThumbPointerUp, onThumbPointerDown, onThumbPositionChange, onDragScroll, onWheelScroll, onResize, ref, ...scrollbarProps } = props;\n\tconst context = useScrollAreaContext();\n\tconst [scrollbar, setScrollbar] = useState(null);\n\tconst composeRefs = useMergedRef(ref, setScrollbar);\n\tconst rectRef = useRef(null);\n\tconst prevWebkitUserSelectRef = useRef(\"\");\n\tconst maxScrollPos = sizes.content - sizes.viewport;\n\tconst handleWheelScroll = useEffectEvent((event) => onWheelScroll(event, maxScrollPos));\n\tconst handleThumbPositionChange = useCallbackRef(onThumbPositionChange);\n\tconst handleResize = useDebouncedCallback(onResize, 10);\n\tconst handleDragScroll = (event) => {\n\t\tif (rectRef.current) {\n\t\t\tconst x = event.clientX - rectRef.current.left;\n\t\t\tconst y = event.clientY - rectRef.current.top;\n\t\t\tonDragScroll({\n\t\t\t\tx,\n\t\t\t\ty\n\t\t\t});\n\t\t}\n\t};\n\tuseEffect(() => {\n\t\tif (!scrollbar) return;\n\t\tconst handleWheel = (event) => handleWheelScroll(event);\n\t\tscrollbar.addEventListener(\"wheel\", handleWheel, { passive: false });\n\t\treturn () => scrollbar.removeEventListener(\"wheel\", handleWheel);\n\t}, [scrollbar]);\n\tuseEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]);\n\tuseResizeObserver(scrollbar, handleResize);\n\tuseResizeObserver(context.content, handleResize);\n\treturn /* @__PURE__ */ jsx(ScrollbarProvider, {\n\t\tvalue: {\n\t\t\tscrollbar,\n\t\t\thasThumb,\n\t\t\tonThumbChange: useCallbackRef(onThumbChange),\n\t\t\tonThumbPointerUp: useCallbackRef(onThumbPointerUp),\n\t\t\tonThumbPositionChange: handleThumbPositionChange,\n\t\t\tonThumbPointerDown: useCallbackRef(onThumbPointerDown)\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(\"div\", {\n\t\t\t...scrollbarProps,\n\t\t\tref: composeRefs,\n\t\t\t\"data-mantine-scrollbar\": true,\n\t\t\tstyle: {\n\t\t\t\tposition: \"absolute\",\n\t\t\t\t...scrollbarProps.style\n\t\t\t},\n\t\t\tonPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (event.button === 0) {\n\t\t\t\t\tevent.target.setPointerCapture(event.pointerId);\n\t\t\t\t\trectRef.current = scrollbar.getBoundingClientRect();\n\t\t\t\t\tprevWebkitUserSelectRef.current = document.body.style.webkitUserSelect;\n\t\t\t\t\tdocument.body.style.webkitUserSelect = \"none\";\n\t\t\t\t\thandleDragScroll(event);\n\t\t\t\t}\n\t\t\t}),\n\t\t\tonPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),\n\t\t\tonPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n\t\t\t\tconst element = event.target;\n\t\t\t\tif (element.hasPointerCapture(event.pointerId)) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\telement.releasePointerCapture(event.pointerId);\n\t\t\t\t}\n\t\t\t}),\n\t\t\tonLostPointerCapture: () => {\n\t\t\t\tdocument.body.style.webkitUserSelect = prevWebkitUserSelectRef.current;\n\t\t\t\trectRef.current = null;\n\t\t\t}\n\t\t})\n\t});\n}\nexport { Scrollbar };\n\n//# sourceMappingURL=Scrollbar.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { isScrollingWithinScrollbarBounds } from \"../utils/is-scrolling-within-scrollbar-bounds.mjs\";\nimport { getThumbSize } from \"../utils/get-thumb-size.mjs\";\nimport { toInt } from \"../utils/to-int.mjs\";\nimport { Scrollbar } from \"./Scrollbar.mjs\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollbarX.tsx\nconst ScrollAreaScrollbarX = (props) => {\n\tconst { sizes, onSizesChange, style, ref: forwardedRef, ...others } = props;\n\tconst ctx = useScrollAreaContext();\n\tconst [computedStyle, setComputedStyle] = useState();\n\tconst ref = useRef(null);\n\tconst composeRefs = useMergedRef(forwardedRef, ref, ctx.onScrollbarXChange);\n\tuseEffect(() => {\n\t\tif (ref.current) setComputedStyle(getComputedStyle(ref.current));\n\t}, [ref]);\n\treturn /* @__PURE__ */ jsx(Scrollbar, {\n\t\t\"data-orientation\": \"horizontal\",\n\t\t...others,\n\t\tref: composeRefs,\n\t\tsizes,\n\t\tstyle: {\n\t\t\t...style,\n\t\t\t[\"--sa-thumb-width\"]: `${getThumbSize(sizes)}px`\n\t\t},\n\t\tonThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),\n\t\tonDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),\n\t\tonWheelScroll: (event, maxScrollPos) => {\n\t\t\tif (ctx.viewport) {\n\t\t\t\tconst scrollPos = ctx.viewport.scrollLeft + event.deltaX;\n\t\t\t\tprops.onWheelScroll(scrollPos);\n\t\t\t\tif (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) event.preventDefault();\n\t\t\t}\n\t\t},\n\t\tonResize: () => {\n\t\t\tif (ref.current && ctx.viewport && computedStyle) onSizesChange({\n\t\t\t\tcontent: ctx.viewport.scrollWidth,\n\t\t\t\tviewport: ctx.viewport.offsetWidth,\n\t\t\t\tscrollbar: {\n\t\t\t\t\tsize: ref.current.clientWidth,\n\t\t\t\t\tpaddingStart: toInt(computedStyle.paddingLeft),\n\t\t\t\t\tpaddingEnd: toInt(computedStyle.paddingRight)\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n};\nScrollAreaScrollbarX.displayName = \"@mantine/core/ScrollAreaScrollbarX\";\nexport { ScrollAreaScrollbarX };\n\n//# sourceMappingURL=ScrollbarX.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { isScrollingWithinScrollbarBounds } from \"../utils/is-scrolling-within-scrollbar-bounds.mjs\";\nimport { getThumbSize } from \"../utils/get-thumb-size.mjs\";\nimport { toInt } from \"../utils/to-int.mjs\";\nimport { Scrollbar } from \"./Scrollbar.mjs\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollbarY.tsx\nfunction ScrollAreaScrollbarY(props) {\n\tconst { sizes, onSizesChange, style, ref: forwardedRef, ...others } = props;\n\tconst context = useScrollAreaContext();\n\tconst [computedStyle, setComputedStyle] = useState();\n\tconst ref = useRef(null);\n\tconst composeRefs = useMergedRef(forwardedRef, ref, context.onScrollbarYChange);\n\tuseEffect(() => {\n\t\tif (ref.current) setComputedStyle(window.getComputedStyle(ref.current));\n\t}, []);\n\treturn /* @__PURE__ */ jsx(Scrollbar, {\n\t\t...others,\n\t\t\"data-orientation\": \"vertical\",\n\t\tref: composeRefs,\n\t\tsizes,\n\t\tstyle: {\n\t\t\t[\"--sa-thumb-height\"]: `${getThumbSize(sizes)}px`,\n\t\t\t...style\n\t\t},\n\t\tonThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),\n\t\tonDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),\n\t\tonWheelScroll: (event, maxScrollPos) => {\n\t\t\tif (context.viewport) {\n\t\t\t\tconst scrollPos = context.viewport.scrollTop + event.deltaY;\n\t\t\t\tprops.onWheelScroll(scrollPos);\n\t\t\t\tif (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) event.preventDefault();\n\t\t\t}\n\t\t},\n\t\tonResize: () => {\n\t\t\tif (ref.current && context.viewport && computedStyle) onSizesChange({\n\t\t\t\tcontent: context.viewport.scrollHeight,\n\t\t\t\tviewport: context.viewport.offsetHeight,\n\t\t\t\tscrollbar: {\n\t\t\t\t\tsize: ref.current.clientHeight,\n\t\t\t\t\tpaddingStart: toInt(computedStyle.paddingTop),\n\t\t\t\t\tpaddingEnd: toInt(computedStyle.paddingBottom)\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\nScrollAreaScrollbarY.displayName = \"@mantine/core/ScrollAreaScrollbarY\";\nexport { ScrollAreaScrollbarY };\n\n//# sourceMappingURL=ScrollbarY.mjs.map","\"use client\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { getThumbRatio } from \"../utils/get-thumb-ratio.mjs\";\nimport { getThumbOffsetFromScroll } from \"../utils/get-thumb-offset-from-scroll.mjs\";\nimport { getScrollPositionFromPointer } from \"../utils/get-scroll-position-from-pointer.mjs\";\nimport { ScrollAreaScrollbarX } from \"./ScrollbarX.mjs\";\nimport { ScrollAreaScrollbarY } from \"./ScrollbarY.mjs\";\nimport { useRef, useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.tsx\nfunction ScrollAreaScrollbarVisible(props) {\n\tconst { orientation = \"vertical\", ...scrollbarProps } = props;\n\tconst { dir } = useDirection();\n\tconst context = useScrollAreaContext();\n\tconst thumbRef = useRef(null);\n\tconst pointerOffsetRef = useRef(0);\n\tconst [sizes, setSizes] = useState({\n\t\tcontent: 0,\n\t\tviewport: 0,\n\t\tscrollbar: {\n\t\t\tsize: 0,\n\t\t\tpaddingStart: 0,\n\t\t\tpaddingEnd: 0\n\t\t}\n\t});\n\tconst thumbRatio = getThumbRatio(sizes.viewport, sizes.content);\n\tconst commonProps = {\n\t\t...scrollbarProps,\n\t\tsizes,\n\t\tonSizesChange: setSizes,\n\t\thasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1),\n\t\tonThumbChange: (thumb) => {\n\t\t\tthumbRef.current = thumb;\n\t\t},\n\t\tonThumbPointerUp: () => {\n\t\t\tpointerOffsetRef.current = 0;\n\t\t},\n\t\tonThumbPointerDown: (pointerPos) => {\n\t\t\tpointerOffsetRef.current = pointerPos;\n\t\t}\n\t};\n\tconst getScrollPosition = (pointerPos, direction) => getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, direction);\n\tif (orientation === \"horizontal\") return /* @__PURE__ */ jsx(ScrollAreaScrollbarX, {\n\t\t...commonProps,\n\t\tonThumbPositionChange: () => {\n\t\t\tif (context.viewport && thumbRef.current) {\n\t\t\t\tconst scrollPos = context.viewport.scrollLeft;\n\t\t\t\tconst offset = getThumbOffsetFromScroll(scrollPos, sizes, dir);\n\t\t\t\tthumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;\n\t\t\t}\n\t\t},\n\t\tonWheelScroll: (scrollPos) => {\n\t\t\tif (context.viewport) context.viewport.scrollLeft = scrollPos;\n\t\t},\n\t\tonDragScroll: (pointerPos) => {\n\t\t\tif (context.viewport) context.viewport.scrollLeft = getScrollPosition(pointerPos, dir);\n\t\t}\n\t});\n\tif (orientation === \"vertical\") return /* @__PURE__ */ jsx(ScrollAreaScrollbarY, {\n\t\t...commonProps,\n\t\tonThumbPositionChange: () => {\n\t\t\tif (context.viewport && thumbRef.current) {\n\t\t\t\tconst scrollPos = context.viewport.scrollTop;\n\t\t\t\tconst offset = getThumbOffsetFromScroll(scrollPos, sizes);\n\t\t\t\tif (sizes.scrollbar.size === 0) thumbRef.current.style.setProperty(\"--thumb-opacity\", \"0\");\n\t\t\t\telse thumbRef.current.style.setProperty(\"--thumb-opacity\", \"1\");\n\t\t\t\tthumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;\n\t\t\t}\n\t\t},\n\t\tonWheelScroll: (scrollPos) => {\n\t\t\tif (context.viewport) context.viewport.scrollTop = scrollPos;\n\t\t},\n\t\tonDragScroll: (pointerPos) => {\n\t\t\tif (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos);\n\t\t}\n\t});\n\treturn null;\n}\nScrollAreaScrollbarVisible.displayName = \"@mantine/core/ScrollAreaScrollbarVisible\";\nexport { ScrollAreaScrollbarVisible };\n\n//# sourceMappingURL=ScrollAreaScrollbarVisible.mjs.map","\"use client\";\nimport { getThumbSize } from \"./get-thumb-size.mjs\";\nimport { linearScale } from \"./linear-scale.mjs\";\n// packages/@mantine/core/src/components/ScrollArea/utils/get-scroll-position-from-pointer.ts\nfunction getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = \"ltr\") {\n\tconst thumbSizePx = getThumbSize(sizes);\n\tconst thumbCenter = thumbSizePx / 2;\n\tconst offset = pointerOffset || thumbCenter;\n\tconst thumbOffsetFromEnd = thumbSizePx - offset;\n\tconst minPointerPos = sizes.scrollbar.paddingStart + offset;\n\tconst maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n\tconst maxScrollPos = sizes.content - sizes.viewport;\n\tconst scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n\treturn linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);\n}\nexport { getScrollPositionFromPointer };\n\n//# sourceMappingURL=get-scroll-position-from-pointer.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { useResizeObserver } from \"../use-resize-observer.mjs\";\nimport { ScrollAreaScrollbarVisible } from \"./ScrollAreaScrollbarVisible.mjs\";\nimport { useState } from \"react\";\nimport { useDebouncedCallback } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarAuto.tsx\nfunction ScrollAreaScrollbarAuto(props) {\n\tconst context = useScrollAreaContext();\n\tconst { forceMount, ...scrollbarProps } = props;\n\tconst [visible, setVisible] = useState(false);\n\tconst isHorizontal = props.orientation === \"horizontal\";\n\tconst handleResize = useDebouncedCallback(() => {\n\t\tif (context.viewport) {\n\t\t\tconst isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth;\n\t\t\tconst isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;\n\t\t\tsetVisible(isHorizontal ? isOverflowX : isOverflowY);\n\t\t}\n\t}, 10);\n\tuseResizeObserver(context.viewport, handleResize);\n\tuseResizeObserver(context.content, handleResize);\n\tif (forceMount || visible) return /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, {\n\t\t\"data-state\": visible ? \"visible\" : \"hidden\",\n\t\t...scrollbarProps\n\t});\n\treturn null;\n}\nScrollAreaScrollbarAuto.displayName = \"@mantine/core/ScrollAreaScrollbarAuto\";\nexport { ScrollAreaScrollbarAuto };\n\n//# sourceMappingURL=ScrollAreaScrollbarAuto.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { ScrollAreaScrollbarAuto } from \"./ScrollAreaScrollbarAuto.mjs\";\nimport { useEffect, useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarHover.tsx\nfunction ScrollAreaScrollbarHover(props) {\n\tconst { forceMount, ...scrollbarProps } = props;\n\tconst context = useScrollAreaContext();\n\tconst [visible, setVisible] = useState(false);\n\tuseEffect(() => {\n\t\tconst { scrollArea } = context;\n\t\tlet hideTimer = 0;\n\t\tif (scrollArea) {\n\t\t\tconst handlePointerEnter = () => {\n\t\t\t\twindow.clearTimeout(hideTimer);\n\t\t\t\tsetVisible(true);\n\t\t\t};\n\t\t\tconst handlePointerLeave = () => {\n\t\t\t\thideTimer = window.setTimeout(() => setVisible(false), context.scrollHideDelay);\n\t\t\t};\n\t\t\tscrollArea.addEventListener(\"pointerenter\", handlePointerEnter);\n\t\t\tscrollArea.addEventListener(\"pointerleave\", handlePointerLeave);\n\t\t\treturn () => {\n\t\t\t\twindow.clearTimeout(hideTimer);\n\t\t\t\tscrollArea.removeEventListener(\"pointerenter\", handlePointerEnter);\n\t\t\t\tscrollArea.removeEventListener(\"pointerleave\", handlePointerLeave);\n\t\t\t};\n\t\t}\n\t}, [context.scrollArea, context.scrollHideDelay]);\n\tif (forceMount || visible) return /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, {\n\t\t\"data-state\": visible ? \"visible\" : \"hidden\",\n\t\t...scrollbarProps\n\t});\n\treturn null;\n}\nScrollAreaScrollbarHover.displayName = \"@mantine/core/ScrollAreaScrollbarHover\";\nexport { ScrollAreaScrollbarHover };\n\n//# sourceMappingURL=ScrollAreaScrollbarHover.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { composeEventHandlers } from \"../utils/compose-event-handlers.mjs\";\nimport { ScrollAreaScrollbarVisible } from \"./ScrollAreaScrollbarVisible.mjs\";\nimport { useEffect, useState } from \"react\";\nimport { useDebouncedCallback } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarScroll.tsx\nfunction ScrollAreaScrollbarScroll(props) {\n\tconst { forceMount, ...scrollbarProps } = props;\n\tconst context = useScrollAreaContext();\n\tconst isHorizontal = props.orientation === \"horizontal\";\n\tconst [state, setState] = useState(\"hidden\");\n\tconst debounceScrollEnd = useDebouncedCallback(() => setState(\"idle\"), 100);\n\tuseEffect(() => {\n\t\tif (state === \"idle\") {\n\t\t\tconst hideTimer = window.setTimeout(() => setState(\"hidden\"), context.scrollHideDelay);\n\t\t\treturn () => window.clearTimeout(hideTimer);\n\t\t}\n\t}, [state, context.scrollHideDelay]);\n\tuseEffect(() => {\n\t\tconst { viewport } = context;\n\t\tconst scrollDirection = isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n\t\tif (viewport) {\n\t\t\tlet prevScrollPos = viewport[scrollDirection];\n\t\t\tconst handleScroll = () => {\n\t\t\t\tconst scrollPos = viewport[scrollDirection];\n\t\t\t\tif (prevScrollPos !== scrollPos) {\n\t\t\t\t\tsetState(\"scrolling\");\n\t\t\t\t\tdebounceScrollEnd();\n\t\t\t\t}\n\t\t\t\tprevScrollPos = scrollPos;\n\t\t\t};\n\t\t\tviewport.addEventListener(\"scroll\", handleScroll);\n\t\t\treturn () => viewport.removeEventListener(\"scroll\", handleScroll);\n\t\t}\n\t}, [\n\t\tcontext.viewport,\n\t\tisHorizontal,\n\t\tdebounceScrollEnd\n\t]);\n\tif (forceMount || state !== \"hidden\") return /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, {\n\t\t\"data-state\": state === \"hidden\" ? \"hidden\" : \"visible\",\n\t\t...scrollbarProps,\n\t\tonPointerEnter: composeEventHandlers(props.onPointerEnter, () => setState(\"interacting\")),\n\t\tonPointerLeave: composeEventHandlers(props.onPointerLeave, () => setState(\"idle\"))\n\t});\n\treturn null;\n}\nexport { ScrollAreaScrollbarScroll };\n\n//# sourceMappingURL=ScrollAreaScrollbarScroll.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { ScrollAreaScrollbarVisible } from \"./ScrollAreaScrollbarVisible.mjs\";\nimport { ScrollAreaScrollbarAuto } from \"./ScrollAreaScrollbarAuto.mjs\";\nimport { ScrollAreaScrollbarHover } from \"./ScrollAreaScrollbarHover.mjs\";\nimport { ScrollAreaScrollbarScroll } from \"./ScrollAreaScrollbarScroll.mjs\";\nimport { useEffect } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.tsx\nfunction ScrollAreaScrollbar(props) {\n\tconst { forceMount, ...scrollbarProps } = props;\n\tconst context = useScrollAreaContext();\n\tconst { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context;\n\tconst isHorizontal = props.orientation === \"horizontal\";\n\tuseEffect(() => {\n\t\tisHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true);\n\t\treturn () => {\n\t\t\tisHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false);\n\t\t};\n\t}, [\n\t\tisHorizontal,\n\t\tonScrollbarXEnabledChange,\n\t\tonScrollbarYEnabledChange\n\t]);\n\treturn context.type === \"hover\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, {\n\t\t...scrollbarProps,\n\t\tforceMount\n\t}) : context.type === \"scroll\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, {\n\t\t...scrollbarProps,\n\t\tforceMount\n\t}) : context.type === \"auto\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, {\n\t\t...scrollbarProps,\n\t\tforceMount\n\t}) : context.type === \"always\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps }) : null;\n}\nScrollAreaScrollbar.displayName = \"@mantine/core/ScrollAreaScrollbar\";\nexport { ScrollAreaScrollbar };\n\n//# sourceMappingURL=ScrollAreaScrollbar.mjs.map","\"use client\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { composeEventHandlers } from \"../utils/compose-event-handlers.mjs\";\nimport { addUnlinkedScrollListener } from \"../utils/add-unlinked-scroll-listener.mjs\";\nimport { useScrollbarContext } from \"../ScrollAreaScrollbar/Scrollbar.context.mjs\";\nimport { useEffect, useRef } from \"react\";\nimport { useDebouncedCallback, useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.tsx\nfunction Thumb(props) {\n\tconst { style, ref: forwardedRef, ...others } = props;\n\tconst scrollAreaContext = useScrollAreaContext();\n\tconst scrollbarContext = useScrollbarContext();\n\tconst { onThumbPositionChange } = scrollbarContext;\n\tconst composedRef = useMergedRef(forwardedRef, scrollbarContext.onThumbChange);\n\tconst removeUnlinkedScrollListenerRef = useRef(void 0);\n\tconst debounceScrollEnd = useDebouncedCallback(() => {\n\t\tif (removeUnlinkedScrollListenerRef.current) {\n\t\t\tremoveUnlinkedScrollListenerRef.current();\n\t\t\tremoveUnlinkedScrollListenerRef.current = void 0;\n\t\t}\n\t}, 100);\n\tuseEffect(() => {\n\t\tconst { viewport } = scrollAreaContext;\n\t\tif (viewport) {\n\t\t\tconst handleScroll = () => {\n\t\t\t\tdebounceScrollEnd();\n\t\t\t\tif (!removeUnlinkedScrollListenerRef.current) {\n\t\t\t\t\tconst listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);\n\t\t\t\t\tremoveUnlinkedScrollListenerRef.current = listener;\n\t\t\t\t\tonThumbPositionChange();\n\t\t\t\t}\n\t\t\t};\n\t\t\tonThumbPositionChange();\n\t\t\tviewport.addEventListener(\"scroll\", handleScroll);\n\t\t\treturn () => {\n\t\t\t\tviewport.removeEventListener(\"scroll\", handleScroll);\n\t\t\t\tremoveUnlinkedScrollListenerRef.current?.();\n\t\t\t\tremoveUnlinkedScrollListenerRef.current = void 0;\n\t\t\t};\n\t\t}\n\t}, [\n\t\tscrollAreaContext.viewport,\n\t\tdebounceScrollEnd,\n\t\tonThumbPositionChange\n\t]);\n\treturn /* @__PURE__ */ jsx(\"div\", {\n\t\t\"data-state\": scrollbarContext.hasThumb ? \"visible\" : \"hidden\",\n\t\t...others,\n\t\tref: composedRef,\n\t\tstyle: {\n\t\t\twidth: \"var(--sa-thumb-width)\",\n\t\t\theight: \"var(--sa-thumb-height)\",\n\t\t\t...style\n\t\t},\n\t\tonPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {\n\t\t\tconst thumbRect = event.target.getBoundingClientRect();\n\t\t\tconst x = event.clientX - thumbRect.left;\n\t\t\tconst y = event.clientY - thumbRect.top;\n\t\t\tscrollbarContext.onThumbPointerDown({\n\t\t\t\tx,\n\t\t\t\ty\n\t\t\t});\n\t\t}),\n\t\tonPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)\n\t});\n}\nThumb.displayName = \"@mantine/core/ScrollAreaThumb\";\nfunction ScrollAreaThumb(props) {\n\tconst { forceMount, ...thumbProps } = props;\n\tconst scrollbarContext = useScrollbarContext();\n\tif (forceMount || scrollbarContext.hasThumb) return /* @__PURE__ */ jsx(Thumb, { ...thumbProps });\n\treturn null;\n}\nScrollAreaThumb.displayName = \"@mantine/core/ScrollAreaThumb\";\nexport { ScrollAreaThumb, Thumb };\n\n//# sourceMappingURL=ScrollAreaThumb.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/utils/add-unlinked-scroll-listener.tsx\nfunction addUnlinkedScrollListener(node, handler = () => {}) {\n\tlet prevPosition = {\n\t\tleft: node.scrollLeft,\n\t\ttop: node.scrollTop\n\t};\n\tlet rAF = 0;\n\t(function loop() {\n\t\tconst position = {\n\t\t\tleft: node.scrollLeft,\n\t\t\ttop: node.scrollTop\n\t\t};\n\t\tconst isHorizontalScroll = prevPosition.left !== position.left;\n\t\tconst isVerticalScroll = prevPosition.top !== position.top;\n\t\tif (isHorizontalScroll || isVerticalScroll) handler();\n\t\tprevPosition = position;\n\t\trAF = window.requestAnimationFrame(loop);\n\t})();\n\treturn () => window.cancelAnimationFrame(rAF);\n}\nexport { addUnlinkedScrollListener };\n\n//# sourceMappingURL=add-unlinked-scroll-listener.mjs.map","\"use client\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useScrollAreaContext } from \"../ScrollArea.context.mjs\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.tsx\nfunction ScrollAreaViewport({ children, style, ref, onWheel, ...others }) {\n\tconst ctx = useScrollAreaContext();\n\tconst rootRef = useMergedRef(ref, ctx.onViewportChange);\n\tconst handleWheel = (event) => {\n\t\tonWheel?.(event);\n\t\tif (ctx.scrollbarXEnabled && ctx.viewport && event.shiftKey) {\n\t\t\tconst { scrollTop, scrollHeight, clientHeight, scrollWidth, clientWidth } = ctx.viewport;\n\t\t\tconst isAtTop = scrollTop < 1;\n\t\t\tconst isAtBottom = scrollTop >= scrollHeight - clientHeight - 1;\n\t\t\tif (scrollWidth > clientWidth && (isAtTop || isAtBottom)) event.stopPropagation();\n\t\t}\n\t};\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...others,\n\t\tref: rootRef,\n\t\tonWheel: handleWheel,\n\t\t\"data-scrollarea-viewport\": true,\n\t\tstyle: {\n\t\t\toverflowX: ctx.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n\t\t\toverflowY: ctx.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n\t\t\t...style\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(\"div\", {\n\t\t\t...ctx.getStyles(\"content\"),\n\t\t\tref: ctx.onContentChange,\n\t\t\tchildren\n\t\t})\n\t});\n}\nScrollAreaViewport.displayName = \"@mantine/core/ScrollAreaViewport\";\nexport { ScrollAreaViewport };\n\n//# sourceMappingURL=ScrollAreaViewport.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollArea.module.css\nvar ScrollArea_module_default = {\n\t\"root\": \"m_d57069b5\",\n\t\"content\": \"m_b1336c6\",\n\t\"viewport\": \"m_c0783ff9\",\n\t\"viewportInner\": \"m_f8f631dd\",\n\t\"scrollbar\": \"m_c44ba933\",\n\t\"thumb\": \"m_d8b5e363\",\n\t\"corner\": \"m_21657268\"\n};\nexport { ScrollArea_module_default as default };\n\n//# sourceMappingURL=ScrollArea.module.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useResizeObserver } from \"./use-resize-observer.mjs\";\nimport { ScrollAreaCorner } from \"./ScrollAreaCorner/ScrollAreaCorner.mjs\";\nimport { ScrollAreaRoot } from \"./ScrollAreaRoot/ScrollAreaRoot.mjs\";\nimport { ScrollAreaScrollbar } from \"./ScrollAreaScrollbar/ScrollAreaScrollbar.mjs\";\nimport { ScrollAreaThumb } from \"./ScrollAreaThumb/ScrollAreaThumb.mjs\";\nimport { ScrollAreaViewport } from \"./ScrollAreaViewport/ScrollAreaViewport.mjs\";\nimport ScrollArea_module_default from \"./ScrollArea.module.mjs\";\nimport { useCallback, useEffectEvent, useRef, useState } from \"react\";\nimport { useIsomorphicEffect } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useMergeRefs } from \"@floating-ui/react\";\n// packages/@mantine/core/src/components/ScrollArea/ScrollArea.tsx\nconst defaultProps = {\n\tscrollHideDelay: 1e3,\n\ttype: \"hover\",\n\tscrollbars: \"xy\"\n};\nconst varsResolver = createVarsResolver((_, { scrollbarSize, overscrollBehavior, scrollbars }) => {\n\tlet overrideOverscrollBehavior = overscrollBehavior;\n\tif (overscrollBehavior && scrollbars) {\n\t\tif (scrollbars === \"x\") overrideOverscrollBehavior = `${overscrollBehavior} auto`;\n\t\telse if (scrollbars === \"y\") overrideOverscrollBehavior = `auto ${overscrollBehavior}`;\n\t}\n\treturn { root: {\n\t\t\"--scrollarea-scrollbar-size\": rem(scrollbarSize),\n\t\t\"--scrollarea-over-scroll-behavior\": overrideOverscrollBehavior,\n\t\t\"--scrollarea-offset-size\": void 0\n\t} };\n});\nconst ScrollArea = factory((_props) => {\n\tconst props = useProps(\"ScrollArea\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, scrollbarSize, vars, type, scrollHideDelay, viewportProps, viewportRef, onScrollPositionChange, children, offsetScrollbars, scrollbars, onBottomReached, onTopReached, onLeftReached, onRightReached, overscrollBehavior, startScrollPosition, verticalScrollbarPosition, attributes, ...others } = props;\n\tconst [scrollbarHovered, setScrollbarHovered] = useState(false);\n\tconst [verticalThumbVisible, setVerticalThumbVisible] = useState(false);\n\tconst [horizontalThumbVisible, setHorizontalThumbVisible] = useState(false);\n\tconst prevAtTopRef = useRef(true);\n\tconst prevAtBottomRef = useRef(false);\n\tconst prevAtLeftRef = useRef(true);\n\tconst prevAtRightRef = useRef(false);\n\tconst getStyles = useStyles({\n\t\tname: \"ScrollArea\",\n\t\tprops,\n\t\tclasses: ScrollArea_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst localViewportRef = useRef(null);\n\tconst [viewportElement, setViewportElement] = useState(null);\n\tconst viewportCallbackRef = useCallback((node) => {\n\t\tsetViewportElement((current) => current === node ? current : node);\n\t}, []);\n\tconst combinedViewportRef = useMergeRefs([\n\t\tviewportRef,\n\t\tlocalViewportRef,\n\t\tviewportCallbackRef\n\t]);\n\tuseResizeObserver(offsetScrollbars === \"present\" ? viewportElement : null, () => {\n\t\tconst element = localViewportRef.current;\n\t\tif (element) {\n\t\t\tsetVerticalThumbVisible(element.scrollHeight > element.clientHeight);\n\t\t\tsetHorizontalThumbVisible(element.scrollWidth > element.clientWidth);\n\t\t}\n\t});\n\tuseIsomorphicEffect(() => {\n\t\tif (startScrollPosition && localViewportRef.current) localViewportRef.current.scrollTo({\n\t\t\tleft: startScrollPosition.x ?? 0,\n\t\t\ttop: startScrollPosition.y ?? 0\n\t\t});\n\t}, []);\n\treturn /* @__PURE__ */ jsxs(ScrollAreaRoot, {\n\t\tgetStyles,\n\t\ttype: type === \"never\" ? \"always\" : type,\n\t\tscrollHideDelay,\n\t\tscrollbars,\n\t\t...getStyles(\"root\"),\n\t\t...others,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ jsx(ScrollAreaViewport, {\n\t\t\t\t...viewportProps,\n\t\t\t\t...getStyles(\"viewport\", { style: viewportProps?.style }),\n\t\t\t\tref: combinedViewportRef,\n\t\t\t\t\"data-offset-scrollbars\": offsetScrollbars === true ? \"xy\" : offsetScrollbars || void 0,\n\t\t\t\t\"data-scrollbars\": scrollbars || void 0,\n\t\t\t\t\"data-vertical-scrollbar-position\": verticalScrollbarPosition || void 0,\n\t\t\t\t\"data-horizontal-hidden\": offsetScrollbars === \"present\" && !horizontalThumbVisible ? \"true\" : void 0,\n\t\t\t\t\"data-vertical-hidden\": offsetScrollbars === \"present\" && !verticalThumbVisible ? \"true\" : void 0,\n\t\t\t\tonScroll: (e) => {\n\t\t\t\t\tviewportProps?.onScroll?.(e);\n\t\t\t\t\tonScrollPositionChange?.({\n\t\t\t\t\t\tx: e.currentTarget.scrollLeft,\n\t\t\t\t\t\ty: e.currentTarget.scrollTop\n\t\t\t\t\t});\n\t\t\t\t\tconst { scrollTop, scrollHeight, clientHeight, scrollLeft, scrollWidth, clientWidth } = e.currentTarget;\n\t\t\t\t\tconst isAtBottom = scrollTop - (scrollHeight - clientHeight) >= -1;\n\t\t\t\t\tconst isAtTop = scrollTop === 0;\n\t\t\t\t\tif (isAtBottom && !prevAtBottomRef.current) onBottomReached?.();\n\t\t\t\t\tif (isAtTop && !prevAtTopRef.current) onTopReached?.();\n\t\t\t\t\tprevAtBottomRef.current = isAtBottom;\n\t\t\t\t\tprevAtTopRef.current = isAtTop;\n\t\t\t\t\tconst isAtRight = scrollLeft - (scrollWidth - clientWidth) >= -1;\n\t\t\t\t\tconst isAtLeft = scrollLeft === 0;\n\t\t\t\t\tif (isAtRight && !prevAtRightRef.current) onRightReached?.();\n\t\t\t\t\tif (isAtLeft && !prevAtLeftRef.current) onLeftReached?.();\n\t\t\t\t\tprevAtRightRef.current = isAtRight;\n\t\t\t\t\tprevAtLeftRef.current = isAtLeft;\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\t(scrollbars === \"xy\" || scrollbars === \"x\") && /* @__PURE__ */ jsx(ScrollAreaScrollbar, {\n\t\t\t\t...getStyles(\"scrollbar\"),\n\t\t\t\torientation: \"horizontal\",\n\t\t\t\t\"data-vertical-scrollbar-position\": verticalScrollbarPosition || void 0,\n\t\t\t\t\"data-hidden\": type === \"never\" || offsetScrollbars === \"present\" && !horizontalThumbVisible ? true : void 0,\n\t\t\t\tforceMount: true,\n\t\t\t\tonMouseEnter: () => setScrollbarHovered(true),\n\t\t\t\tonMouseLeave: () => setScrollbarHovered(false),\n\t\t\t\tchildren: /* @__PURE__ */ jsx(ScrollAreaThumb, { ...getStyles(\"thumb\") })\n\t\t\t}),\n\t\t\t(scrollbars === \"xy\" || scrollbars === \"y\") && /* @__PURE__ */ jsx(ScrollAreaScrollbar, {\n\t\t\t\t...getStyles(\"scrollbar\"),\n\t\t\t\torientation: \"vertical\",\n\t\t\t\t\"data-vertical-scrollbar-position\": verticalScrollbarPosition || void 0,\n\t\t\t\t\"data-hidden\": type === \"never\" || offsetScrollbars === \"present\" && !verticalThumbVisible ? true : void 0,\n\t\t\t\tforceMount: true,\n\t\t\t\tonMouseEnter: () => setScrollbarHovered(true),\n\t\t\t\tonMouseLeave: () => setScrollbarHovered(false),\n\t\t\t\tchildren: /* @__PURE__ */ jsx(ScrollAreaThumb, { ...getStyles(\"thumb\") })\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(ScrollAreaCorner, {\n\t\t\t\t...getStyles(\"corner\"),\n\t\t\t\t\"data-vertical-scrollbar-position\": verticalScrollbarPosition || void 0,\n\t\t\t\t\"data-hovered\": scrollbarHovered || void 0,\n\t\t\t\t\"data-hidden\": type === \"never\" || void 0\n\t\t\t})\n\t\t]\n\t});\n});\nScrollArea.displayName = \"@mantine/core/ScrollArea\";\nconst ScrollAreaAutosize = factory((props) => {\n\tconst { children, classNames, styles, scrollbarSize, scrollHideDelay, type, dir, offsetScrollbars, overscrollBehavior, viewportRef, onScrollPositionChange, unstyled, variant, viewportProps, scrollbars, style, vars, onBottomReached, onTopReached, startScrollPosition, verticalScrollbarPosition, onOverflowChange, ...others } = useProps(\"ScrollAreaAutosize\", defaultProps, props);\n\tconst viewportObserverRef = useRef(null);\n\tconst [viewportObserverElement, setViewportObserverElement] = useState(null);\n\tconst viewportObserverCallbackRef = useCallback((node) => {\n\t\tsetViewportObserverElement((current) => current === node ? current : node);\n\t}, []);\n\tconst combinedViewportRef = useMergeRefs([\n\t\tviewportRef,\n\t\tviewportObserverRef,\n\t\tviewportObserverCallbackRef\n\t]);\n\tconst overflowingRef = useRef(false);\n\tconst didMountRef = useRef(false);\n\tconst handleOverflowCheck = useEffectEvent(() => {\n\t\tconst el = viewportObserverRef.current;\n\t\tif (!el || !onOverflowChange) return;\n\t\tconst isOverflowing = el.scrollHeight > el.clientHeight;\n\t\tif (isOverflowing !== overflowingRef.current) {\n\t\t\tif (didMountRef.current) onOverflowChange(isOverflowing);\n\t\t\telse {\n\t\t\t\tdidMountRef.current = true;\n\t\t\t\tif (isOverflowing) onOverflowChange(true);\n\t\t\t}\n\t\t\toverflowingRef.current = isOverflowing;\n\t\t}\n\t});\n\tuseResizeObserver(onOverflowChange ? viewportObserverElement : null, handleOverflowCheck);\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...others,\n\t\tvariant,\n\t\tstyle: [{\n\t\t\tdisplay: \"flex\",\n\t\t\toverflow: \"hidden\"\n\t\t}, style],\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\tstyle: {\n\t\t\t\tdisplay: \"flex\",\n\t\t\t\tflexDirection: \"column\",\n\t\t\t\tflex: 1,\n\t\t\t\toverflow: \"hidden\",\n\t\t\t\t...scrollbars === \"y\" && { minWidth: 0 },\n\t\t\t\t...scrollbars === \"x\" && { minHeight: 0 },\n\t\t\t\t...scrollbars === \"xy\" && {\n\t\t\t\t\tminWidth: 0,\n\t\t\t\t\tminHeight: 0\n\t\t\t\t},\n\t\t\t\t...scrollbars === false && {\n\t\t\t\t\tminWidth: 0,\n\t\t\t\t\tminHeight: 0\n\t\t\t\t}\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ jsx(ScrollArea, {\n\t\t\t\tclassNames,\n\t\t\t\tstyles,\n\t\t\t\tscrollHideDelay,\n\t\t\t\tscrollbarSize,\n\t\t\t\ttype,\n\t\t\t\tdir,\n\t\t\t\toffsetScrollbars,\n\t\t\t\toverscrollBehavior,\n\t\t\t\tviewportRef: combinedViewportRef,\n\t\t\t\tonScrollPositionChange,\n\t\t\t\tunstyled,\n\t\t\t\tvariant,\n\t\t\t\tviewportProps,\n\t\t\t\tvars,\n\t\t\t\tscrollbars,\n\t\t\t\tonBottomReached,\n\t\t\t\tonTopReached,\n\t\t\t\tstartScrollPosition,\n\t\t\t\tverticalScrollbarPosition,\n\t\t\t\t\"data-autosize\": \"true\",\n\t\t\t\tchildren\n\t\t\t})\n\t\t})\n\t});\n});\nScrollArea.classes = ScrollArea_module_default;\nScrollArea.varsResolver = varsResolver;\nScrollAreaAutosize.displayName = \"@mantine/core/ScrollAreaAutosize\";\nScrollAreaAutosize.classes = ScrollArea_module_default;\nScrollArea.Autosize = ScrollAreaAutosize;\nexport { ScrollArea, ScrollAreaAutosize };\n\n//# sourceMappingURL=ScrollArea.mjs.map","\"use client\";\nimport { useLockScroll } from \"./use-lock-scroll.mjs\";\nimport { useState } from \"react\";\nimport { useFocusReturn, useId as useId$1, useWindowEvent } from \"@mantine/hooks\";\n// packages/@mantine/core/src/components/ModalBase/use-modal.ts\nfunction useModal({ id, transitionProps, opened, trapFocus, closeOnEscape, onClose, returnFocus, handledEscapeEvents }) {\n\tconst _id = useId$1(id);\n\tconst [titleMounted, setTitleMounted] = useState(false);\n\tconst [bodyMounted, setBodyMounted] = useState(false);\n\tconst transitionDuration = typeof transitionProps?.duration === \"number\" ? transitionProps?.duration : 200;\n\tconst shouldLockScroll = useLockScroll({\n\t\topened,\n\t\ttransitionDuration\n\t});\n\tuseWindowEvent(\"keydown\", (event) => {\n\t\tif (event.key === \"Escape\" && closeOnEscape && !event.isComposing && opened && !handledEscapeEvents?.has(event)) {\n\t\t\tif (event.target?.getAttribute(\"data-mantine-stop-propagation\") !== \"true\") {\n\t\t\t\thandledEscapeEvents?.add(event);\n\t\t\t\tonClose();\n\t\t\t}\n\t\t}\n\t}, { capture: true });\n\tuseFocusReturn({\n\t\topened,\n\t\tshouldReturnFocus: trapFocus && returnFocus\n\t});\n\treturn {\n\t\t_id,\n\t\ttitleMounted,\n\t\tbodyMounted,\n\t\tshouldLockScroll,\n\t\tsetTitleMounted,\n\t\tsetBodyMounted\n\t};\n}\nexport { useModal };\n\n//# sourceMappingURL=use-modal.mjs.map","\"use client\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"@mantine/hooks\";\n// packages/@mantine/core/src/components/ModalBase/use-lock-scroll.ts\nfunction useLockScroll({ opened, transitionDuration }) {\n\tconst [shouldLockScroll, setShouldLockScroll] = useState(opened);\n\tconst timeout = useRef(-1);\n\tconst _transitionDuration = useReducedMotion() ? 0 : transitionDuration;\n\tuseEffect(() => {\n\t\tif (opened) {\n\t\t\tsetShouldLockScroll(true);\n\t\t\twindow.clearTimeout(timeout.current);\n\t\t} else if (_transitionDuration === 0) setShouldLockScroll(false);\n\t\telse timeout.current = window.setTimeout(() => setShouldLockScroll(false), _transitionDuration);\n\t\treturn () => window.clearTimeout(timeout.current);\n\t}, [opened, _transitionDuration]);\n\treturn shouldLockScroll;\n}\nexport { useLockScroll };\n\n//# sourceMappingURL=use-lock-scroll.mjs.map","\"use client\";\nimport { useEffect, useEffectEvent } from \"react\";\n// packages/@mantine/hooks/src/use-window-event/use-window-event.ts\nfunction useWindowEvent(type, listener, options) {\n\tconst stableListener = useEffectEvent(listener);\n\tconst { capture = false, passive, once = false, signal } = typeof options === \"object\" ? options : { capture: options };\n\tuseEffect(() => {\n\t\twindow.addEventListener(type, stableListener, {\n\t\t\tcapture,\n\t\t\tpassive,\n\t\t\tonce,\n\t\t\tsignal\n\t\t});\n\t\treturn () => window.removeEventListener(type, stableListener, capture);\n\t}, [\n\t\ttype,\n\t\tcapture,\n\t\tpassive,\n\t\tonce,\n\t\tsignal\n\t]);\n}\nexport { useWindowEvent };\n\n//# sourceMappingURL=use-window-event.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getShadow, getSpacing } from \"../../core/utils/get-size/get-size.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { OptionalPortal } from \"../Portal/OptionalPortal.mjs\";\nimport { ModalBaseProvider } from \"./ModalBase.context.mjs\";\nimport { useModal } from \"./use-modal.mjs\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBase.tsx\nfunction ModalBase({ keepMounted, keepMountedMode = \"activity\", opened, onClose, id, transitionProps, onExitTransitionEnd, onEnterTransitionEnd, trapFocus, closeOnEscape, returnFocus, closeOnClickOutside, withinPortal, portalProps, lockScroll, children, zIndex, shadow, padding, __vars, unstyled, removeScrollProps, __handledEscapeEvents, ...others }) {\n\tconst { _id, titleMounted, bodyMounted, shouldLockScroll, setTitleMounted, setBodyMounted } = useModal({\n\t\tid,\n\t\ttransitionProps,\n\t\topened,\n\t\ttrapFocus,\n\t\tcloseOnEscape,\n\t\tonClose,\n\t\treturnFocus,\n\t\thandledEscapeEvents: __handledEscapeEvents\n\t});\n\tconst { key: removeScrollKey, ...otherRemoveScrollProps } = removeScrollProps || {};\n\treturn /* @__PURE__ */ jsx(OptionalPortal, {\n\t\t...portalProps,\n\t\twithinPortal,\n\t\tchildren: /* @__PURE__ */ jsx(ModalBaseProvider, {\n\t\t\tvalue: {\n\t\t\t\topened,\n\t\t\t\tonClose,\n\t\t\t\tcloseOnClickOutside,\n\t\t\t\tonExitTransitionEnd,\n\t\t\t\tonEnterTransitionEnd,\n\t\t\t\ttransitionProps: {\n\t\t\t\t\t...transitionProps,\n\t\t\t\t\tkeepMounted,\n\t\t\t\t\tkeepMountedMode\n\t\t\t\t},\n\t\t\t\tgetTitleId: () => `${_id}-title`,\n\t\t\t\tgetBodyId: () => `${_id}-body`,\n\t\t\t\ttitleMounted,\n\t\t\t\tbodyMounted,\n\t\t\t\tsetTitleMounted,\n\t\t\t\tsetBodyMounted,\n\t\t\t\ttrapFocus,\n\t\t\t\tcloseOnEscape,\n\t\t\t\tzIndex,\n\t\t\t\tunstyled\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ jsx(RemoveScroll, {\n\t\t\t\tenabled: shouldLockScroll && lockScroll,\n\t\t\t\t...otherRemoveScrollProps,\n\t\t\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\t\t\t...others,\n\t\t\t\t\tid: _id,\n\t\t\t\t\t__vars: {\n\t\t\t\t\t\t...__vars,\n\t\t\t\t\t\t\"--mb-z-index\": (zIndex ?? getDefaultZIndex(\"modal\")).toString(),\n\t\t\t\t\t\t\"--mb-shadow\": getShadow(shadow),\n\t\t\t\t\t\t\"--mb-padding\": getSpacing(padding)\n\t\t\t\t\t},\n\t\t\t\t\tchildren\n\t\t\t\t})\n\t\t\t}, removeScrollKey)\n\t\t})\n\t});\n}\nModalBase.displayName = \"@mantine/core/ModalBase\";\nexport { ModalBase };\n\n//# sourceMappingURL=ModalBase.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ScrollArea } from \"../ScrollArea/ScrollArea.mjs\";\nimport { ModalBase } from \"../ModalBase/ModalBase.mjs\";\nimport { ModalProvider } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalRoot.tsx\nconst defaultProps = {\n\t__staticSelector: \"Modal\",\n\tcloseOnClickOutside: true,\n\twithinPortal: true,\n\tlockScroll: true,\n\ttrapFocus: true,\n\treturnFocus: true,\n\tcloseOnEscape: true,\n\tkeepMounted: false,\n\tzIndex: getDefaultZIndex(\"modal\"),\n\ttransitionProps: {\n\t\tduration: 200,\n\t\ttransition: \"fade-down\"\n\t},\n\tyOffset: \"5dvh\"\n};\nconst varsResolver = createVarsResolver((_, { radius, size, yOffset, xOffset }) => ({ root: {\n\t\"--modal-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--modal-size\": getSize(size, \"modal-size\"),\n\t\"--modal-y-offset\": rem(yOffset),\n\t\"--modal-x-offset\": rem(xOffset)\n} }));\nconst ModalRoot = factory((_props) => {\n\tconst props = useProps(\"ModalRoot\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, yOffset, scrollAreaComponent, radius, fullScreen, centered, xOffset, __staticSelector, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector,\n\t\tclasses: Modal_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(ModalProvider, {\n\t\tvalue: {\n\t\t\tyOffset,\n\t\t\tscrollAreaComponent,\n\t\t\tgetStyles,\n\t\t\tfullScreen\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(ModalBase, {\n\t\t\t...getStyles(\"root\"),\n\t\t\t\"data-full-screen\": fullScreen || void 0,\n\t\t\t\"data-centered\": centered || void 0,\n\t\t\t\"data-offset-scrollbars\": scrollAreaComponent === ScrollArea.Autosize || void 0,\n\t\t\tunstyled,\n\t\t\t...others\n\t\t})\n\t});\n});\nModalRoot.classes = Modal_module_default;\nModalRoot.varsResolver = varsResolver;\nModalRoot.displayName = \"@mantine/core/ModalRoot\";\nexport { ModalRoot };\n\n//# sourceMappingURL=ModalRoot.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { createContext, useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalStack.tsx\nconst ModalStackContext = createContext(null);\nfunction ModalStack({ children }) {\n\tconst [stack, setStack] = useState([]);\n\tconst [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex(\"modal\"));\n\tconst [handledEscapeEvents] = useState(() => /* @__PURE__ */ new WeakSet());\n\treturn /* @__PURE__ */ jsx(ModalStackContext, {\n\t\tvalue: {\n\t\t\tstack,\n\t\t\taddModal: (id, zIndex) => {\n\t\t\t\tsetStack((current) => [.../* @__PURE__ */ new Set([...current, id])]);\n\t\t\t\tsetMaxZIndex((current) => typeof zIndex === \"number\" && typeof current === \"number\" ? Math.max(current, zIndex) : current);\n\t\t\t},\n\t\t\tremoveModal: (id) => setStack((current) => current.filter((currentId) => currentId !== id)),\n\t\t\tgetZIndex: (id) => `calc(${maxZIndex} + ${stack.indexOf(id)} + 1)`,\n\t\t\tcurrentId: stack[stack.length - 1],\n\t\t\tmaxZIndex,\n\t\t\thandledEscapeEvents\n\t\t},\n\t\tchildren\n\t});\n}\nModalStack.displayName = \"@mantine/core/ModalStack\";\nexport { ModalStack, ModalStackContext };\n\n//# sourceMappingURL=ModalStack.mjs.map","\"use client\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport ModalBase_module_default from \"./ModalBase.module.mjs\";\nimport { useModalTitle } from \"./use-modal-title-id.mjs\";\nimport cx from \"clsx\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/ModalBase/ModalBaseTitle.tsx\nfunction ModalBaseTitle({ className, ...others }) {\n\tconst id = useModalTitle();\n\tconst ctx = useModalBaseContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"h2\",\n\t\tclassName: cx({ [ModalBase_module_default.title]: !ctx.unstyled }, className),\n\t\tid,\n\t\t...others\n\t});\n}\nModalBaseTitle.displayName = \"@mantine/core/ModalBaseTitle\";\nexport { ModalBaseTitle };\n\n//# sourceMappingURL=ModalBaseTitle.mjs.map","\"use client\";\nimport { useModalBaseContext } from \"./ModalBase.context.mjs\";\nimport { useEffect } from \"react\";\n// packages/@mantine/core/src/components/ModalBase/use-modal-title-id.ts\nfunction useModalTitle() {\n\tconst ctx = useModalBaseContext();\n\tuseEffect(() => {\n\t\tctx.setTitleMounted(true);\n\t\treturn () => ctx.setTitleMounted(false);\n\t}, []);\n\treturn ctx.getTitleId();\n}\nexport { useModalTitle };\n\n//# sourceMappingURL=use-modal-title-id.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseTitle } from \"../ModalBase/ModalBaseTitle.mjs\";\nimport { useModalContext } from \"./Modal.context.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/ModalTitle.tsx\nconst ModalTitle = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ModalTitle\", null, _props);\n\tconst ctx = useModalContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseTitle, {\n\t\t...ctx.getStyles(\"title\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nModalTitle.classes = Modal_module_default;\nModalTitle.displayName = \"@mantine/core/ModalTitle\";\nexport { ModalTitle };\n\n//# sourceMappingURL=ModalTitle.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport Modal_module_default from \"./Modal.module.mjs\";\nimport { ModalBody } from \"./ModalBody.mjs\";\nimport { ModalCloseButton } from \"./ModalCloseButton.mjs\";\nimport { ModalContent } from \"./ModalContent.mjs\";\nimport { ModalHeader } from \"./ModalHeader.mjs\";\nimport { ModalOverlay } from \"./ModalOverlay.mjs\";\nimport { ModalRoot } from \"./ModalRoot.mjs\";\nimport { ModalStack, ModalStackContext } from \"./ModalStack.mjs\";\nimport { ModalTitle } from \"./ModalTitle.mjs\";\nimport { use, useEffect } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Modal/Modal.tsx\nconst defaultProps = {\n\tcloseOnClickOutside: true,\n\twithinPortal: true,\n\tlockScroll: true,\n\ttrapFocus: true,\n\treturnFocus: true,\n\tcloseOnEscape: true,\n\tkeepMounted: false,\n\tzIndex: getDefaultZIndex(\"modal\"),\n\ttransitionProps: {\n\t\tduration: 200,\n\t\ttransition: \"fade-down\"\n\t},\n\twithOverlay: true,\n\twithCloseButton: true\n};\nconst Modal = factory((_props) => {\n\tconst { title, withOverlay, overlayProps, withCloseButton, closeButtonProps, children, radius, opened, stackId, zIndex, ...others } = useProps(\"Modal\", defaultProps, _props);\n\tconst ctx = use(ModalStackContext);\n\tconst hasHeader = !!title || withCloseButton;\n\tconst stackProps = ctx && stackId ? {\n\t\tcloseOnEscape: ctx.currentId === stackId,\n\t\ttrapFocus: ctx.currentId === stackId,\n\t\tzIndex: ctx.getZIndex(stackId),\n\t\t__handledEscapeEvents: ctx.handledEscapeEvents\n\t} : {};\n\tconst overlayVisible = withOverlay === false ? false : stackId && ctx ? ctx.currentId === stackId : opened;\n\tuseEffect(() => {\n\t\tif (ctx && stackId) opened ? ctx.addModal(stackId, zIndex ?? getDefaultZIndex(\"modal\")) : ctx.removeModal(stackId);\n\t}, [\n\t\topened,\n\t\tstackId,\n\t\tzIndex\n\t]);\n\treturn /* @__PURE__ */ jsxs(ModalRoot, {\n\t\tradius,\n\t\topened,\n\t\tzIndex: ctx && stackId ? ctx.getZIndex(stackId) : zIndex,\n\t\t...others,\n\t\t...stackProps,\n\t\tchildren: [withOverlay && /* @__PURE__ */ jsx(ModalOverlay, {\n\t\t\tvisible: overlayVisible,\n\t\t\ttransitionProps: ctx && stackId ? { duration: 0 } : void 0,\n\t\t\t...overlayProps\n\t\t}), /* @__PURE__ */ jsxs(ModalContent, {\n\t\t\tradius,\n\t\t\t__hidden: ctx && stackId && opened ? stackId !== ctx.currentId : false,\n\t\t\tchildren: [hasHeader && /* @__PURE__ */ jsxs(ModalHeader, { children: [title && /* @__PURE__ */ jsx(ModalTitle, { children: title }), withCloseButton && /* @__PURE__ */ jsx(ModalCloseButton, { ...closeButtonProps })] }), /* @__PURE__ */ jsx(ModalBody, { children })]\n\t\t})]\n\t});\n});\nModal.classes = Modal_module_default;\nModal.displayName = \"@mantine/core/Modal\";\nModal.Root = ModalRoot;\nModal.Overlay = ModalOverlay;\nModal.Content = ModalContent;\nModal.Body = ModalBody;\nModal.Header = ModalHeader;\nModal.Title = ModalTitle;\nModal.CloseButton = ModalCloseButton;\nModal.Stack = ModalStack;\nexport { Modal };\n\n//# sourceMappingURL=Modal.mjs.map","import React, { useEffect, useState } from \"react\";\nimport { Alert, Button, Group, Modal, PinInput, Stack, Text, TextInput } from \"@mantine/core\";\nimport { notifications } from \"@mantine/notifications\";\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { api, ME } from \"./api\";\nimport { useMediaQuery } from \"@mantine/hooks\";\nimport { t } from \"./i18n\";\n\n/** \"Show another company in this account\": the IČO, then a code sent to that company's\n * main email. Not a group or a shared folder, so never called \"connect\" or \"join\". */\nexport default function AddFirm({ opened, onClose, onAdded }) {\n  const queryClient = useQueryClient();\n  const narrow = useMediaQuery(\"(max-width: 400px)\");\n  const [ico, setIco] = useState(\"\");\n  const [sent, setSent] = useState(false);\n  const [code, setCode] = useState(\"\");\n  const [error, setError] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n\n  useEffect(() => {\n    if (!opened) return;\n    setIco(\"\");\n    setSent(false);\n    setCode(\"\");\n    setError(\"\");\n  }, [opened]);\n\n  async function start(event) {\n    event.preventDefault();\n    setBusy(true);\n    setError(\"\");\n    try {\n      await api(\"/api/firms/add/start/\", { method: \"POST\", body: { ico } });\n      setSent(true);\n    } catch (e) {\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  async function verify(value) {\n    setBusy(true);\n    setError(\"\");\n    try {\n      const answer = await api(\"/api/firms/add/verify/\", { method: \"POST\", body: { ico, code: value } });\n      await queryClient.invalidateQueries({ queryKey: ME });\n      notifications.show({ color: \"fmGreen\", message: answer.detail });\n      onAdded(answer.id);\n      onClose();\n    } catch (e) {\n      setError(e.message);\n      setCode(\"\");\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  return (\n    <Modal\n      opened={opened}\n      onClose={onClose}\n      title={<Text fw={600}>{t(\"Show another company in this account\")}</Text>}\n      centered\n    >\n      <Stack gap=\"md\">\n        <Text size=\"sm\">\n          {t(\n            \"The companies stay separate, with their own mail and folder. You will just see them when you sign in with this email.\"\n          )}\n        </Text>\n        {!sent ? (\n          <form onSubmit={start}>\n            <Stack gap=\"md\">\n              <TextInput\n                label={t(\"Company ID (IČO)\")}\n                inputMode=\"numeric\"\n                value={ico}\n                onChange={(e) => setIco(e.currentTarget.value)}\n                required\n              />\n              <Text size=\"sm\" c=\"dimmed\">\n                {t(\"We send a code to the company's main email. Whoever reads it gives you the code.\")}\n              </Text>\n              {error && <Alert color=\"fmRed\">{error}</Alert>}\n              <Group justify=\"flex-end\">\n                <Button type=\"submit\" loading={busy} disabled={!ico.trim()}>\n                  {t(\"Send code\")}\n                </Button>\n              </Group>\n            </Stack>\n          </form>\n        ) : (\n          <Stack gap=\"md\">\n            <Text size=\"sm\">\n              {t(\"If the company is our client, its main email has a 6-digit code now. It is valid for 15 minutes.\")}\n            </Text>\n            <Group justify=\"center\">\n              <PinInput\n                length={6}\n                type=\"number\"\n                oneTimeCode\n                size={narrow ? \"md\" : \"lg\"}\n                value={code}\n                onChange={setCode}\n                onComplete={verify}\n                aria-label={t(\"Code from the email\")}\n              />\n            </Group>\n            {error && <Alert color=\"fmRed\">{error}</Alert>}\n            <Group justify=\"flex-end\">\n              <Button onClick={() => verify(code)} loading={busy} disabled={code.length !== 6}>\n                {t(\"Show the company\")}\n              </Button>\n            </Group>\n          </Stack>\n        )}\n      </Stack>\n    </Modal>\n  );\n}\n","\"use client\";\n// packages/@mantine/core/src/components/Drawer/Drawer.module.css\nvar Drawer_module_default = {\n\t\"root\": \"m_f11b401e\",\n\t\"header\": \"m_5a7c2c9\",\n\t\"content\": \"m_b8a05bbd\",\n\t\"inner\": \"m_31cd769a\"\n};\nexport { Drawer_module_default as default };\n\n//# sourceMappingURL=Drawer.module.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Drawer/Drawer.context.ts\nconst [DrawerProvider, useDrawerContext] = createSafeContext(\"Drawer component was not found in tree\");\nexport { DrawerProvider, useDrawerContext };\n\n//# sourceMappingURL=Drawer.context.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseBody } from \"../ModalBase/ModalBaseBody.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerBody.tsx\nconst DrawerBody = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"DrawerBody\", null, _props);\n\tconst ctx = useDrawerContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseBody, {\n\t\t...ctx.getStyles(\"body\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nDrawerBody.classes = Drawer_module_default;\nDrawerBody.displayName = \"@mantine/core/DrawerBody\";\nexport { DrawerBody };\n\n//# sourceMappingURL=DrawerBody.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseCloseButton } from \"../ModalBase/ModalBaseCloseButton.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerCloseButton.tsx\nconst DrawerCloseButton = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"DrawerCloseButton\", null, _props);\n\tconst ctx = useDrawerContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseCloseButton, {\n\t\t...ctx.getStyles(\"close\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nDrawerCloseButton.classes = Drawer_module_default;\nDrawerCloseButton.displayName = \"@mantine/core/DrawerCloseButton\";\nexport { DrawerCloseButton };\n\n//# sourceMappingURL=DrawerCloseButton.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseContent } from \"../ModalBase/ModalBaseContent.mjs\";\nimport { NativeScrollArea } from \"../ModalBase/NativeScrollArea.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerContent.tsx\nconst DrawerContent = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, children, radius, __hidden, ...others } = useProps(\"DrawerContent\", null, _props);\n\tconst ctx = useDrawerContext();\n\tconst Scroll = ctx.scrollAreaComponent || NativeScrollArea;\n\treturn /* @__PURE__ */ jsx(ModalBaseContent, {\n\t\t...ctx.getStyles(\"content\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\tinnerProps: ctx.getStyles(\"inner\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t...others,\n\t\tradius: radius || ctx.radius || 0,\n\t\t\"data-hidden\": __hidden || void 0,\n\t\tchildren: /* @__PURE__ */ jsx(Scroll, {\n\t\t\tstyle: { height: \"calc(100vh - var(--drawer-offset) * 2)\" },\n\t\t\tchildren\n\t\t})\n\t});\n});\nDrawerContent.classes = Drawer_module_default;\nDrawerContent.displayName = \"@mantine/core/DrawerContent\";\nexport { DrawerContent };\n\n//# sourceMappingURL=DrawerContent.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseHeader } from \"../ModalBase/ModalBaseHeader.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerHeader.tsx\nconst DrawerHeader = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"DrawerHeader\", null, _props);\n\tconst ctx = useDrawerContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseHeader, {\n\t\t...ctx.getStyles(\"header\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nDrawerHeader.classes = Drawer_module_default;\nDrawerHeader.displayName = \"@mantine/core/DrawerHeader\";\nexport { DrawerHeader };\n\n//# sourceMappingURL=DrawerHeader.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseOverlay } from \"../ModalBase/ModalBaseOverlay.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerOverlay.tsx\nconst DrawerOverlay = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"DrawerOverlay\", null, _props);\n\tconst ctx = useDrawerContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseOverlay, {\n\t\t...ctx.getStyles(\"overlay\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nDrawerOverlay.classes = Drawer_module_default;\nDrawerOverlay.displayName = \"@mantine/core/DrawerOverlay\";\nexport { DrawerOverlay };\n\n//# sourceMappingURL=DrawerOverlay.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { useDirection } from \"../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { ScrollArea } from \"../ScrollArea/ScrollArea.mjs\";\nimport { ModalBase } from \"../ModalBase/ModalBase.mjs\";\nimport { DrawerProvider } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerRoot.tsx\nfunction getDrawerAlign(position) {\n\tswitch (position) {\n\t\tcase \"top\": return \"flex-start\";\n\t\tcase \"bottom\": return \"flex-end\";\n\t\tdefault: return;\n\t}\n}\nfunction getDrawerFlex(position) {\n\tif (position === \"top\" || position === \"bottom\") return \"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)\";\n}\nconst transitions = {\n\ttop: \"slide-down\",\n\tbottom: \"slide-up\",\n\tleft: \"slide-right\",\n\tright: \"slide-left\"\n};\nconst rtlTransitions = {\n\ttop: \"slide-down\",\n\tbottom: \"slide-up\",\n\tright: \"slide-right\",\n\tleft: \"slide-left\"\n};\nconst defaultProps = {\n\tcloseOnClickOutside: true,\n\twithinPortal: true,\n\tlockScroll: true,\n\ttrapFocus: true,\n\treturnFocus: true,\n\tcloseOnEscape: true,\n\tkeepMounted: false,\n\tzIndex: getDefaultZIndex(\"modal\"),\n\tposition: \"left\"\n};\nconst varsResolver = createVarsResolver((_, { position, size, offset }) => ({ root: {\n\t\"--drawer-size\": getSize(size, \"drawer-size\"),\n\t\"--drawer-flex\": getDrawerFlex(position),\n\t\"--drawer-height\": position === \"left\" || position === \"right\" ? void 0 : \"var(--drawer-size)\",\n\t\"--drawer-align\": getDrawerAlign(position),\n\t\"--drawer-justify\": position === \"right\" ? \"flex-end\" : void 0,\n\t\"--drawer-offset\": rem(offset)\n} }));\nconst DrawerRoot = factory((_props) => {\n\tconst props = useProps(\"DrawerRoot\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, scrollAreaComponent, position, transitionProps, radius, attributes, ...others } = props;\n\tconst { dir } = useDirection();\n\tconst getStyles = useStyles({\n\t\tname: \"Drawer\",\n\t\tclasses: Drawer_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst drawerTransition = (dir === \"rtl\" ? rtlTransitions : transitions)[position];\n\treturn /* @__PURE__ */ jsx(DrawerProvider, {\n\t\tvalue: {\n\t\t\tscrollAreaComponent,\n\t\t\tgetStyles,\n\t\t\tradius\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(ModalBase, {\n\t\t\t...getStyles(\"root\"),\n\t\t\ttransitionProps: {\n\t\t\t\ttransition: drawerTransition,\n\t\t\t\t...transitionProps\n\t\t\t},\n\t\t\t\"data-offset-scrollbars\": scrollAreaComponent === ScrollArea.Autosize || void 0,\n\t\t\tunstyled,\n\t\t\t...others\n\t\t})\n\t});\n});\nDrawerRoot.classes = Drawer_module_default;\nDrawerRoot.varsResolver = varsResolver;\nDrawerRoot.displayName = \"@mantine/core/DrawerRoot\";\nexport { DrawerRoot };\n\n//# sourceMappingURL=DrawerRoot.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { createContext, useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerStack.tsx\nconst DrawerStackContext = createContext(null);\nfunction DrawerStack({ children }) {\n\tconst [stack, setStack] = useState([]);\n\tconst [maxZIndex, setMaxZIndex] = useState(getDefaultZIndex(\"modal\"));\n\tconst [handledEscapeEvents] = useState(() => /* @__PURE__ */ new WeakSet());\n\treturn /* @__PURE__ */ jsx(DrawerStackContext, {\n\t\tvalue: {\n\t\t\tstack,\n\t\t\taddModal: (id, zIndex) => {\n\t\t\t\tsetStack((current) => [.../* @__PURE__ */ new Set([...current, id])]);\n\t\t\t\tsetMaxZIndex((current) => typeof zIndex === \"number\" && typeof current === \"number\" ? Math.max(current, zIndex) : current);\n\t\t\t},\n\t\t\tremoveModal: (id) => setStack((current) => current.filter((currentId) => currentId !== id)),\n\t\t\tgetZIndex: (id) => `calc(${maxZIndex} + ${stack.indexOf(id)} + 1)`,\n\t\t\tcurrentId: stack[stack.length - 1],\n\t\t\tmaxZIndex,\n\t\t\thandledEscapeEvents\n\t\t},\n\t\tchildren\n\t});\n}\nDrawerStack.displayName = \"@mantine/core/DrawerStack\";\nexport { DrawerStack, DrawerStackContext };\n\n//# sourceMappingURL=DrawerStack.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { ModalBaseTitle } from \"../ModalBase/ModalBaseTitle.mjs\";\nimport { useDrawerContext } from \"./Drawer.context.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/DrawerTitle.tsx\nconst DrawerTitle = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"DrawerTitle\", null, _props);\n\tconst ctx = useDrawerContext();\n\treturn /* @__PURE__ */ jsx(ModalBaseTitle, {\n\t\t...ctx.getStyles(\"title\", {\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassName\n\t\t}),\n\t\t...others\n\t});\n});\nDrawerTitle.classes = Drawer_module_default;\nDrawerTitle.displayName = \"@mantine/core/DrawerTitle\";\nexport { DrawerTitle };\n\n//# sourceMappingURL=DrawerTitle.mjs.map","\"use client\";\nimport { getDefaultZIndex } from \"../../core/utils/get-default-z-index/get-default-z-index.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport Drawer_module_default from \"./Drawer.module.mjs\";\nimport { DrawerBody } from \"./DrawerBody.mjs\";\nimport { DrawerCloseButton } from \"./DrawerCloseButton.mjs\";\nimport { DrawerContent } from \"./DrawerContent.mjs\";\nimport { DrawerHeader } from \"./DrawerHeader.mjs\";\nimport { DrawerOverlay } from \"./DrawerOverlay.mjs\";\nimport { DrawerRoot } from \"./DrawerRoot.mjs\";\nimport { DrawerStack, DrawerStackContext } from \"./DrawerStack.mjs\";\nimport { DrawerTitle } from \"./DrawerTitle.mjs\";\nimport { use, useEffect } from \"react\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Drawer/Drawer.tsx\nconst defaultProps = {\n\tcloseOnClickOutside: true,\n\twithinPortal: true,\n\tlockScroll: true,\n\ttrapFocus: true,\n\treturnFocus: true,\n\tcloseOnEscape: true,\n\tkeepMounted: false,\n\tzIndex: getDefaultZIndex(\"modal\"),\n\twithOverlay: true,\n\twithCloseButton: true\n};\nconst Drawer = factory((_props) => {\n\tconst { title, withOverlay, overlayProps, withCloseButton, closeButtonProps, children, opened, stackId, zIndex, ...others } = useProps(\"Drawer\", defaultProps, _props);\n\tconst ctx = use(DrawerStackContext);\n\tconst hasHeader = !!title || withCloseButton;\n\tconst stackProps = ctx && stackId ? {\n\t\tcloseOnEscape: ctx.currentId === stackId,\n\t\ttrapFocus: ctx.currentId === stackId,\n\t\tzIndex: ctx.getZIndex(stackId),\n\t\t__handledEscapeEvents: ctx.handledEscapeEvents\n\t} : {};\n\tconst overlayVisible = withOverlay === false ? false : stackId && ctx ? ctx.currentId === stackId : opened;\n\tuseEffect(() => {\n\t\tif (ctx && stackId) opened ? ctx.addModal(stackId, zIndex ?? getDefaultZIndex(\"modal\")) : ctx.removeModal(stackId);\n\t}, [\n\t\topened,\n\t\tstackId,\n\t\tzIndex\n\t]);\n\treturn /* @__PURE__ */ jsxs(DrawerRoot, {\n\t\topened,\n\t\tzIndex: ctx && stackId ? ctx.getZIndex(stackId) : zIndex,\n\t\t...others,\n\t\t...stackProps,\n\t\tchildren: [withOverlay && /* @__PURE__ */ jsx(DrawerOverlay, {\n\t\t\tvisible: overlayVisible,\n\t\t\ttransitionProps: ctx && stackId ? { duration: 0 } : void 0,\n\t\t\t...overlayProps\n\t\t}), /* @__PURE__ */ jsxs(DrawerContent, {\n\t\t\t__hidden: ctx && stackId && opened ? stackId !== ctx.currentId : false,\n\t\t\tchildren: [hasHeader && /* @__PURE__ */ jsxs(DrawerHeader, { children: [title && /* @__PURE__ */ jsx(DrawerTitle, { children: title }), withCloseButton && /* @__PURE__ */ jsx(DrawerCloseButton, { ...closeButtonProps })] }), /* @__PURE__ */ jsx(DrawerBody, { children })]\n\t\t})]\n\t});\n});\nDrawer.classes = Drawer_module_default;\nDrawer.displayName = \"@mantine/core/Drawer\";\nDrawer.Root = DrawerRoot;\nDrawer.Overlay = DrawerOverlay;\nDrawer.Content = DrawerContent;\nDrawer.Body = DrawerBody;\nDrawer.Header = DrawerHeader;\nDrawer.Title = DrawerTitle;\nDrawer.CloseButton = DrawerCloseButton;\nDrawer.Stack = DrawerStack;\nexport { Drawer };\n\n//# sourceMappingURL=Drawer.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.ts\nfunction parseItem(item) {\n\tif (typeof item === \"string\") return {\n\t\tvalue: item,\n\t\tlabel: item\n\t};\n\tif (typeof item === \"object\" && \"value\" in item && !(\"label\" in item)) return {\n\t\tvalue: item.value,\n\t\tlabel: `${item.value}`,\n\t\tdisabled: item.disabled\n\t};\n\tif (typeof item === \"object\" && \"group\" in item) return {\n\t\tgroup: item.group,\n\t\titems: item.items.map((i) => parseItem(i))\n\t};\n\tif (typeof item === \"number\" || typeof item === \"bigint\" || typeof item === \"boolean\") return {\n\t\tvalue: item,\n\t\tlabel: `${item}`\n\t};\n\treturn item;\n}\nfunction getParsedComboboxData(data) {\n\tif (!data) return [];\n\treturn data.map((item) => parseItem(item));\n}\nexport { getParsedComboboxData };\n\n//# sourceMappingURL=get-parsed-combobox-data.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/get-options-lockup/get-options-lockup.ts\nfunction getOptionsLockup(options) {\n\treturn options.reduce((acc, item) => {\n\t\tif (\"group\" in item) return {\n\t\t\t...acc,\n\t\t\t...getOptionsLockup(item.items)\n\t\t};\n\t\tacc[`${item.value}`] = item;\n\t\treturn acc;\n\t}, {});\n}\nexport { getOptionsLockup };\n\n//# sourceMappingURL=get-options-lockup.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/find-element-in-shadow-dom/find-element-in-shadow-dom.ts\nfunction findElementBySelector(selector, root = document) {\n\tconst element = root.querySelector(selector);\n\tif (element) return element;\n\tconst allElements = root.querySelectorAll(\"*\");\n\tfor (let i = 0; i < allElements.length; i += 1) {\n\t\tconst el = allElements[i];\n\t\tif (el.shadowRoot) {\n\t\t\tconst shadowElement = findElementBySelector(selector, el.shadowRoot);\n\t\t\tif (shadowElement) return shadowElement;\n\t\t}\n\t}\n\treturn null;\n}\nfunction findElementsBySelector(selector, root = document) {\n\tconst results = [];\n\tconst elements = root.querySelectorAll(selector);\n\tresults.push(...Array.from(elements));\n\tconst allElements = root.querySelectorAll(\"*\");\n\tfor (let i = 0; i < allElements.length; i += 1) {\n\t\tconst el = allElements[i];\n\t\tif (el.shadowRoot) {\n\t\t\tconst shadowElements = findElementsBySelector(selector, el.shadowRoot);\n\t\t\tresults.push(...shadowElements);\n\t\t}\n\t}\n\treturn results;\n}\n/**\n* Gets the appropriate root element (Document or ShadowRoot) for DOM queries\n* based on the provided target element reference.\n*/\nfunction getRootElement(targetElement) {\n\tif (!targetElement) return document;\n\tconst root = targetElement.getRootNode();\n\tconst isDocument = root.nodeType === Node.DOCUMENT_NODE;\n\tconst isShadowRoot = root.nodeType === Node.DOCUMENT_FRAGMENT_NODE && \"host\" in root;\n\treturn isDocument || isShadowRoot ? root : document;\n}\nexport { findElementBySelector, findElementsBySelector, getRootElement };\n\n//# sourceMappingURL=find-element-in-shadow-dom.mjs.map","\"use client\";\nimport { findElementBySelector, findElementsBySelector, getRootElement } from \"../../../core/utils/find-element-in-shadow-dom/find-element-in-shadow-dom.mjs\";\nimport { getFirstIndex, getNextIndex, getPreviousIndex } from \"./get-index/get-index.mjs\";\nimport { useCallback, useEffect, useRef } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\n// packages/@mantine/core/src/components/Combobox/use-combobox/use-combobox.ts\nfunction useCombobox({ defaultOpened, opened, onOpenedChange, onDropdownClose, onDropdownOpen, loop = true, scrollBehavior = \"instant\" } = {}) {\n\tconst [dropdownOpened, setDropdownOpened] = useUncontrolled({\n\t\tvalue: opened,\n\t\tdefaultValue: defaultOpened,\n\t\tfinalValue: false,\n\t\tonChange: onOpenedChange\n\t});\n\tconst listId = useRef(null);\n\tconst selectedOptionIndex = useRef(-1);\n\tconst searchRef = useRef(null);\n\tconst targetRef = useRef(null);\n\tconst focusSearchTimeout = useRef(-1);\n\tconst focusTargetTimeout = useRef(-1);\n\tconst selectedIndexUpdateTimeout = useRef(-1);\n\tconst openDropdown = useCallback((eventSource = \"unknown\") => {\n\t\tif (!dropdownOpened) {\n\t\t\tsetDropdownOpened(true);\n\t\t\tonDropdownOpen?.(eventSource);\n\t\t}\n\t}, [\n\t\tsetDropdownOpened,\n\t\tonDropdownOpen,\n\t\tdropdownOpened\n\t]);\n\tconst closeDropdown = useCallback((eventSource = \"unknown\") => {\n\t\tif (dropdownOpened) {\n\t\t\tsetDropdownOpened(false);\n\t\t\tonDropdownClose?.(eventSource);\n\t\t}\n\t}, [\n\t\tsetDropdownOpened,\n\t\tonDropdownClose,\n\t\tdropdownOpened\n\t]);\n\tconst toggleDropdown = useCallback((eventSource = \"unknown\") => {\n\t\tif (dropdownOpened) closeDropdown(eventSource);\n\t\telse openDropdown(eventSource);\n\t}, [\n\t\tcloseDropdown,\n\t\topenDropdown,\n\t\tdropdownOpened\n\t]);\n\tconst clearSelectedItem = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tfindElementBySelector(`#${listId.current} [data-combobox-selected]`, root)?.removeAttribute(\"data-combobox-selected\");\n\t}, []);\n\tconst selectOption = useCallback((index) => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tconst list = findElementBySelector(`#${listId.current}`, root);\n\t\tconst items = list ? findElementsBySelector(\"[data-combobox-option]\", list) : null;\n\t\tif (!items) return null;\n\t\tconst nextIndex = index >= items.length ? 0 : index < 0 ? items.length - 1 : index;\n\t\tselectedOptionIndex.current = nextIndex;\n\t\tif (items?.[nextIndex] && !items[nextIndex].hasAttribute(\"data-combobox-disabled\")) {\n\t\t\tclearSelectedItem();\n\t\t\titems[nextIndex].setAttribute(\"data-combobox-selected\", \"true\");\n\t\t\titems[nextIndex].scrollIntoView({\n\t\t\t\tblock: \"nearest\",\n\t\t\t\tbehavior: scrollBehavior\n\t\t\t});\n\t\t\treturn items[nextIndex].id;\n\t\t}\n\t\treturn null;\n\t}, [scrollBehavior, clearSelectedItem]);\n\tconst selectActiveOption = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tconst activeOption = findElementBySelector(`#${listId.current} [data-combobox-active]`, root);\n\t\tif (activeOption) {\n\t\t\tconst index = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root).findIndex((option) => option === activeOption);\n\t\t\treturn selectOption(index);\n\t\t}\n\t\treturn selectOption(0);\n\t}, [selectOption]);\n\tconst selectNextOption = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tconst items = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root);\n\t\treturn selectOption(getNextIndex(selectedOptionIndex.current, items, loop));\n\t}, [selectOption, loop]);\n\tconst selectPreviousOption = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tconst items = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root);\n\t\treturn selectOption(getPreviousIndex(selectedOptionIndex.current, items, loop));\n\t}, [selectOption, loop]);\n\tconst selectFirstOption = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\tconst items = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root);\n\t\treturn selectOption(getFirstIndex(items));\n\t}, [selectOption]);\n\tconst updateSelectedOptionIndex = useCallback((target = \"selected\", options) => {\n\t\tif (typeof target === \"number\") {\n\t\t\tselectedOptionIndex.current = target;\n\t\t\tconst root = getRootElement(targetRef.current);\n\t\t\tconst items = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root);\n\t\t\tif (options?.scrollIntoView) items[target]?.scrollIntoView({\n\t\t\t\tblock: \"nearest\",\n\t\t\t\tbehavior: scrollBehavior\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tselectedIndexUpdateTimeout.current = window.setTimeout(() => {\n\t\t\tconst root = getRootElement(targetRef.current);\n\t\t\tconst items = findElementsBySelector(`#${listId.current} [data-combobox-option]`, root);\n\t\t\tconst index = items.findIndex((option) => option.hasAttribute(`data-combobox-${target}`));\n\t\t\tselectedOptionIndex.current = index;\n\t\t\tif (options?.scrollIntoView) items[index]?.scrollIntoView({\n\t\t\t\tblock: \"nearest\",\n\t\t\t\tbehavior: scrollBehavior\n\t\t\t});\n\t\t}, 0);\n\t}, []);\n\tconst resetSelectedOption = useCallback(() => {\n\t\tselectedOptionIndex.current = -1;\n\t\tclearSelectedItem();\n\t}, [clearSelectedItem]);\n\tconst clickSelectedOption = useCallback(() => {\n\t\tconst root = getRootElement(targetRef.current);\n\t\t(findElementsBySelector(`#${listId.current} [data-combobox-option]`, root)?.[selectedOptionIndex.current])?.click();\n\t}, []);\n\tconst setListId = useCallback((id) => {\n\t\tlistId.current = id;\n\t}, []);\n\tconst focusSearchInput = useCallback(() => {\n\t\tfocusSearchTimeout.current = window.setTimeout(() => searchRef.current?.focus(), 0);\n\t}, []);\n\tconst focusTarget = useCallback(() => {\n\t\tfocusTargetTimeout.current = window.setTimeout(() => targetRef.current?.focus(), 0);\n\t}, []);\n\tconst getSelectedOptionIndex = useCallback(() => selectedOptionIndex.current, []);\n\tuseEffect(() => () => {\n\t\twindow.clearTimeout(focusSearchTimeout.current);\n\t\twindow.clearTimeout(focusTargetTimeout.current);\n\t\twindow.clearTimeout(selectedIndexUpdateTimeout.current);\n\t}, []);\n\treturn {\n\t\tdropdownOpened,\n\t\topenDropdown,\n\t\tcloseDropdown,\n\t\ttoggleDropdown,\n\t\tselectedOptionIndex: selectedOptionIndex.current,\n\t\tgetSelectedOptionIndex,\n\t\tselectOption,\n\t\tselectFirstOption,\n\t\tselectActiveOption,\n\t\tselectNextOption,\n\t\tselectPreviousOption,\n\t\tresetSelectedOption,\n\t\tupdateSelectedOptionIndex,\n\t\tlistId: listId.current,\n\t\tsetListId,\n\t\tclickSelectedOption,\n\t\tsearchRef,\n\t\tfocusSearchInput,\n\t\ttargetRef,\n\t\tfocusTarget\n\t};\n}\nexport { useCombobox };\n\n//# sourceMappingURL=use-combobox.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/use-combobox/get-index/get-index.ts\nfunction getPreviousIndex(currentIndex, elements, loop) {\n\tfor (let i = currentIndex - 1; i >= 0; i -= 1) if (!elements[i].hasAttribute(\"data-combobox-disabled\")) return i;\n\tif (loop) {\n\t\tfor (let i = elements.length - 1; i > -1; i -= 1) if (!elements[i].hasAttribute(\"data-combobox-disabled\")) return i;\n\t}\n\treturn currentIndex;\n}\nfunction getNextIndex(currentIndex, elements, loop) {\n\tfor (let i = currentIndex + 1; i < elements.length; i += 1) if (!elements[i].hasAttribute(\"data-combobox-disabled\")) return i;\n\tif (loop) {\n\t\tfor (let i = 0; i < elements.length; i += 1) if (!elements[i].hasAttribute(\"data-combobox-disabled\")) return i;\n\t}\n\treturn currentIndex;\n}\nfunction getFirstIndex(elements) {\n\tfor (let i = 0; i < elements.length; i += 1) if (!elements[i].hasAttribute(\"data-combobox-disabled\")) return i;\n\treturn -1;\n}\nexport { getFirstIndex, getNextIndex, getPreviousIndex };\n\n//# sourceMappingURL=get-index.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/Combobox.module.css\nvar Combobox_module_default = {\n\t\"dropdown\": \"m_88b62a41\",\n\t\"search\": \"m_985517d8\",\n\t\"options\": \"m_b2821a6e\",\n\t\"option\": \"m_92253aa5\",\n\t\"empty\": \"m_2530cd1d\",\n\t\"header\": \"m_858f94bd\",\n\t\"footer\": \"m_82b967cb\",\n\t\"group\": \"m_254f3e4f\",\n\t\"groupLabel\": \"m_2bb2e9e5\",\n\t\"chevron\": \"m_2943220b\",\n\t\"optionsDropdownOption\": \"m_390b5f4\",\n\t\"optionsDropdownCheckIcon\": \"m_8ee53fc2\",\n\t\"optionsDropdownCheckPlaceholder\": \"m_a530ee0a\"\n};\nexport { Combobox_module_default as default };\n\n//# sourceMappingURL=Combobox.module.mjs.map","\"use client\";\nimport { getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxChevron/ComboboxChevron.tsx\nconst defaultProps = { error: null };\nconst varsResolver = createVarsResolver((theme, { size, color }) => ({ chevron: {\n\t\"--combobox-chevron-size\": getSize(size, \"combobox-chevron-size\"),\n\t\"--combobox-chevron-color\": color ? getThemeColor(color, theme) : void 0\n} }));\nconst ComboboxChevron = factory((_props) => {\n\tconst props = useProps(\"ComboboxChevron\", defaultProps, _props);\n\tconst { size, error, style, className, classNames, styles, unstyled, vars, attributes, mod, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"ComboboxChevron\",\n\t\tclasses: Combobox_module_default,\n\t\tprops,\n\t\tstyle,\n\t\tclassName,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tvars,\n\t\tvarsResolver,\n\t\tattributes,\n\t\trootSelector: \"chevron\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"svg\",\n\t\t...others,\n\t\t...getStyles(\"chevron\"),\n\t\tsize,\n\t\tviewBox: \"0 0 15 15\",\n\t\tfill: \"none\",\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tmod: [\n\t\t\t\"combobox-chevron\",\n\t\t\t{ error },\n\t\t\tmod\n\t\t],\n\t\tchildren: /* @__PURE__ */ jsx(\"path\", {\n\t\t\td: \"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tfillRule: \"evenodd\",\n\t\t\tclipRule: \"evenodd\"\n\t\t})\n\t});\n});\nComboboxChevron.classes = Combobox_module_default;\nComboboxChevron.varsResolver = varsResolver;\nComboboxChevron.displayName = \"@mantine/core/ComboboxChevron\";\nexport { ComboboxChevron };\n\n//# sourceMappingURL=ComboboxChevron.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Combobox/Combobox.context.ts\nconst [ComboboxProvider, useComboboxContext] = createSafeContext(\"Combobox component was not found in tree\");\nexport { ComboboxProvider, useComboboxContext };\n\n//# sourceMappingURL=Combobox.context.mjs.map","\"use client\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxClearButton/ComboboxClearButton.tsx\nfunction ComboboxClearButton({ onMouseDown, onClick, onClear, ...others }) {\n\treturn /* @__PURE__ */ jsx(Input.ClearButton, {\n\t\ttabIndex: -1,\n\t\t\"aria-hidden\": true,\n\t\t...others,\n\t\tonMouseDown: (event) => {\n\t\t\tevent.preventDefault();\n\t\t\tonMouseDown?.(event);\n\t\t},\n\t\tonClick: (event) => {\n\t\t\tonClear();\n\t\t\tonClick?.(event);\n\t\t}\n\t});\n}\nComboboxClearButton.displayName = \"@mantine/core/ComboboxClearButton\";\nexport { ComboboxClearButton };\n\n//# sourceMappingURL=ComboboxClearButton.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxDropdown/ComboboxDropdown.tsx\nconst ComboboxDropdown = factory((props) => {\n\tconst { classNames, styles, className, style, hidden, ...others } = useProps(\"ComboboxDropdown\", null, props);\n\tconst ctx = useComboboxContext();\n\treturn /* @__PURE__ */ jsx(Popover.Dropdown, {\n\t\t...others,\n\t\trole: \"presentation\",\n\t\t\"data-hidden\": hidden || void 0,\n\t\t\"data-floating-height\": ctx.floatingHeight || void 0,\n\t\t...ctx.getStyles(\"dropdown\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tclassNames,\n\t\t\tstyles\n\t\t})\n\t});\n});\nComboboxDropdown.classes = Combobox_module_default;\nComboboxDropdown.displayName = \"@mantine/core/ComboboxDropdown\";\nexport { ComboboxDropdown };\n\n//# sourceMappingURL=ComboboxDropdown.mjs.map","\"use client\";\nimport { isElement } from \"../../../core/utils/is-element/is-element.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.tsx\nconst defaultProps = { refProp: \"ref\" };\nconst ComboboxDropdownTarget = factory((props) => {\n\tconst { children, refProp, ref } = useProps(\"ComboboxDropdownTarget\", defaultProps, props);\n\tuseComboboxContext();\n\tif (!isElement(children)) throw new Error(\"Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\treturn /* @__PURE__ */ jsx(Popover.Target, {\n\t\tref,\n\t\trefProp,\n\t\tchildren\n\t});\n});\nComboboxDropdownTarget.displayName = \"@mantine/core/ComboboxDropdownTarget\";\nexport { ComboboxDropdownTarget };\n\n//# sourceMappingURL=ComboboxDropdownTarget.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxEmpty/ComboboxEmpty.tsx\nconst ComboboxEmpty = factory((props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ComboboxEmpty\", null, props);\n\tconst ctx = useComboboxContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"empty\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tstyle\n\t\t}),\n\t\t...others\n\t});\n});\nComboboxEmpty.classes = Combobox_module_default;\nComboboxEmpty.displayName = \"@mantine/core/ComboboxEmpty\";\nexport { ComboboxEmpty };\n\n//# sourceMappingURL=ComboboxEmpty.mjs.map","\"use client\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useState } from \"react\";\n// packages/@mantine/core/src/components/Combobox/use-combobox-target-props/use-combobox-target-props.ts\nfunction useComboboxTargetProps({ onKeyDown, onClick, withKeyboardNavigation, withAriaAttributes, withExpandedAttribute, targetType, autoComplete }) {\n\tconst ctx = useComboboxContext();\n\tconst [selectedOptionId, setSelectedOptionId] = useState(null);\n\tconst handleKeyDown = (event) => {\n\t\tonKeyDown?.(event);\n\t\tif (ctx.readOnly) return;\n\t\tif (withKeyboardNavigation) {\n\t\t\tif (event.nativeEvent.isComposing) return;\n\t\t\tif (event.nativeEvent.code === \"ArrowDown\") {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (!ctx.store.dropdownOpened) {\n\t\t\t\t\tctx.store.openDropdown(\"keyboard\");\n\t\t\t\t\tsetSelectedOptionId(ctx.store.selectActiveOption());\n\t\t\t\t\tctx.store.updateSelectedOptionIndex(\"selected\", { scrollIntoView: true });\n\t\t\t\t} else setSelectedOptionId(ctx.store.selectNextOption());\n\t\t\t}\n\t\t\tif (event.nativeEvent.code === \"ArrowUp\") {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tif (!ctx.store.dropdownOpened) {\n\t\t\t\t\tctx.store.openDropdown(\"keyboard\");\n\t\t\t\t\tsetSelectedOptionId(ctx.store.selectActiveOption());\n\t\t\t\t\tctx.store.updateSelectedOptionIndex(\"selected\", { scrollIntoView: true });\n\t\t\t\t} else setSelectedOptionId(ctx.store.selectPreviousOption());\n\t\t\t}\n\t\t\tif (event.nativeEvent.code === \"Enter\" || event.nativeEvent.code === \"NumpadEnter\") {\n\t\t\t\tif (event.nativeEvent.keyCode === 229) return;\n\t\t\t\tconst selectedOptionIndex = ctx.store.getSelectedOptionIndex();\n\t\t\t\tif (ctx.store.dropdownOpened && selectedOptionIndex !== -1) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tctx.store.clickSelectedOption();\n\t\t\t\t} else if (targetType === \"button\") {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tctx.store.openDropdown(\"keyboard\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (event.key === \"Escape\") ctx.store.closeDropdown(\"keyboard\");\n\t\t\tif (event.nativeEvent.code === \"Space\") {\n\t\t\t\tif (targetType === \"button\") {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tctx.store.toggleDropdown(\"keyboard\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tconst ariaAttributes = withAriaAttributes ? {\n\t\t...withExpandedAttribute ? { role: \"combobox\" } : {},\n\t\t\"aria-haspopup\": \"listbox\",\n\t\t\"aria-expanded\": withExpandedAttribute ? !!(ctx.store.listId && ctx.store.dropdownOpened) : void 0,\n\t\t\"aria-controls\": ctx.store.dropdownOpened && ctx.store.listId ? ctx.store.listId : void 0,\n\t\t\"aria-activedescendant\": ctx.store.dropdownOpened ? selectedOptionId || void 0 : void 0,\n\t\tautoComplete,\n\t\t\"data-expanded\": ctx.store.dropdownOpened || void 0,\n\t\t\"data-mantine-stop-propagation\": ctx.store.dropdownOpened || void 0\n\t} : {};\n\tconst handleClick = (event) => {\n\t\tif (targetType === \"button\") event.currentTarget.focus();\n\t\tonClick?.(event);\n\t};\n\treturn {\n\t\t...ariaAttributes,\n\t\tonKeyDown: handleKeyDown,\n\t\tonClick: handleClick\n\t};\n}\nexport { useComboboxTargetProps };\n\n//# sourceMappingURL=use-combobox-target-props.mjs.map","\"use client\";\nimport { getRefProp } from \"../../../core/utils/get-ref-prop/get-ref-prop.mjs\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useComboboxTargetProps } from \"../use-combobox-target-props/use-combobox-target-props.mjs\";\nimport { cloneElement } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\n// packages/@mantine/core/src/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.tsx\nconst defaultProps = {\n\trefProp: \"ref\",\n\ttargetType: \"input\",\n\twithKeyboardNavigation: true,\n\twithAriaAttributes: true,\n\twithExpandedAttribute: false,\n\tautoComplete: \"off\"\n};\nconst ComboboxEventsTarget = factory((props) => {\n\tconst { children, refProp, withKeyboardNavigation, withAriaAttributes, withExpandedAttribute, targetType, autoComplete, ref, ...others } = useProps(\"ComboboxEventsTarget\", defaultProps, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst ctx = useComboboxContext();\n\tconst targetProps = useComboboxTargetProps({\n\t\ttargetType,\n\t\twithAriaAttributes,\n\t\twithKeyboardNavigation,\n\t\twithExpandedAttribute,\n\t\tonKeyDown: child.props.onKeyDown,\n\t\tonClick: child.props.onClick,\n\t\tautoComplete\n\t});\n\treturn cloneElement(child, {\n\t\t...targetProps,\n\t\t...others,\n\t\t[refProp]: useMergedRef(ref, ctx.store.targetRef, getRefProp(child))\n\t});\n});\nComboboxEventsTarget.displayName = \"@mantine/core/ComboboxEventsTarget\";\nexport { ComboboxEventsTarget };\n\n//# sourceMappingURL=ComboboxEventsTarget.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxFooter/ComboboxFooter.tsx\nconst ComboboxFooter = factory((props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ComboboxFooter\", null, props);\n\tconst ctx = useComboboxContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"footer\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles\n\t\t}),\n\t\t...others,\n\t\tonMouseDown: (event) => {\n\t\t\tevent.preventDefault();\n\t\t}\n\t});\n});\nComboboxFooter.classes = Combobox_module_default;\nComboboxFooter.displayName = \"@mantine/core/ComboboxFooter\";\nexport { ComboboxFooter };\n\n//# sourceMappingURL=ComboboxFooter.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useId } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxGroup/ComboboxGroup.tsx\nconst ComboboxGroup = factory((props) => {\n\tconst { classNames, className, style, styles, vars, children, label, id, ...others } = useProps(\"ComboboxGroup\", null, props);\n\tconst ctx = useComboboxContext();\n\tconst _id = useId(id);\n\tconst hasLabel = label !== void 0 && label !== null && label !== false && label !== \"\";\n\treturn /* @__PURE__ */ jsxs(Box, {\n\t\trole: \"group\",\n\t\t\"aria-labelledby\": hasLabel ? _id : void 0,\n\t\t...ctx.getStyles(\"group\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles\n\t\t}),\n\t\t...others,\n\t\tchildren: [hasLabel && /* @__PURE__ */ jsx(\"div\", {\n\t\t\tid: _id,\n\t\t\t...ctx.getStyles(\"groupLabel\", {\n\t\t\t\tclassNames,\n\t\t\t\tstyles\n\t\t\t}),\n\t\t\tchildren: label\n\t\t}), children]\n\t});\n});\nComboboxGroup.classes = Combobox_module_default;\nComboboxGroup.displayName = \"@mantine/core/ComboboxGroup\";\nexport { ComboboxGroup };\n\n//# sourceMappingURL=ComboboxGroup.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxHeader/ComboboxHeader.tsx\nconst ComboboxHeader = factory((props) => {\n\tconst { classNames, className, style, styles, vars, ...others } = useProps(\"ComboboxHeader\", null, props);\n\tconst ctx = useComboboxContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"header\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyle,\n\t\t\tstyles\n\t\t}),\n\t\t...others,\n\t\tonMouseDown: (event) => {\n\t\t\tevent.preventDefault();\n\t\t}\n\t});\n});\nComboboxHeader.classes = Combobox_module_default;\nComboboxHeader.displayName = \"@mantine/core/ComboboxHeader\";\nexport { ComboboxHeader };\n\n//# sourceMappingURL=ComboboxHeader.mjs.map","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxHiddenInput/ComboboxHiddenInput.tsx\nfunction ComboboxHiddenInput({ value, valuesDivider = \",\", ...others }) {\n\treturn /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"hidden\",\n\t\tvalue: Array.isArray(value) ? value.join(valuesDivider) : value == null ? \"\" : `${value}`,\n\t\t...others\n\t});\n}\nComboboxHiddenInput.displayName = \"@mantine/core/ComboboxHiddenInput\";\nexport { ComboboxHiddenInput };\n\n//# sourceMappingURL=ComboboxHiddenInput.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useId } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxOption/ComboboxOption.tsx\nconst ComboboxOption = factory((_props) => {\n\tconst props = useProps(\"ComboboxOption\", null, _props);\n\tconst { classNames, className, style, styles, vars, onClick, id, active, onMouseDown, onMouseOver, disabled, selected, mod, ...others } = props;\n\tconst ctx = useComboboxContext();\n\tconst uuid = useId();\n\tconst _id = id || uuid;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"option\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tstyle\n\t\t}),\n\t\t\"aria-disabled\": disabled || void 0,\n\t\t...others,\n\t\tid: _id,\n\t\tmod: [\n\t\t\t\"combobox-option\",\n\t\t\t{\n\t\t\t\t\"combobox-active\": active,\n\t\t\t\t\"combobox-disabled\": disabled,\n\t\t\t\t\"combobox-selected\": selected\n\t\t\t},\n\t\t\tmod\n\t\t],\n\t\trole: \"option\",\n\t\tonClick: (event) => {\n\t\t\tif (!disabled) {\n\t\t\t\tctx.onOptionSubmit?.(props.value, props);\n\t\t\t\tonClick?.(event);\n\t\t\t} else event.preventDefault();\n\t\t},\n\t\tonMouseDown: (event) => {\n\t\t\tevent.preventDefault();\n\t\t\tonMouseDown?.(event);\n\t\t},\n\t\tonMouseOver: (event) => {\n\t\t\tif (ctx.resetSelectionOnOptionHover) ctx.store.resetSelectedOption();\n\t\t\tonMouseOver?.(event);\n\t\t}\n\t});\n});\nComboboxOption.classes = Combobox_module_default;\nComboboxOption.displayName = \"@mantine/core/ComboboxOption\";\nexport { ComboboxOption };\n\n//# sourceMappingURL=ComboboxOption.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useEffect } from \"react\";\nimport { useId as useId$1 } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxOptions/ComboboxOptions.tsx\nconst ComboboxOptions = factory((_props) => {\n\tconst { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = useProps(\"ComboboxOptions\", null, _props);\n\tconst ctx = useComboboxContext();\n\tconst _id = useId$1(id);\n\tuseEffect(() => {\n\t\tctx.store.setListId(_id);\n\t}, [_id]);\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"options\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tclassNames,\n\t\t\tstyles\n\t\t}),\n\t\t...others,\n\t\tid: _id,\n\t\trole: \"listbox\",\n\t\t\"aria-labelledby\": labelledBy,\n\t\tonMouseDown: (event) => {\n\t\t\tevent.preventDefault();\n\t\t\tonMouseDown?.(event);\n\t\t}\n\t});\n});\nComboboxOptions.classes = Combobox_module_default;\nComboboxOptions.displayName = \"@mantine/core/ComboboxOptions\";\nexport { ComboboxOptions };\n\n//# sourceMappingURL=ComboboxOptions.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useComboboxTargetProps } from \"../use-combobox-target-props/use-combobox-target-props.mjs\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxSearch/ComboboxSearch.tsx\nconst defaultProps = {\n\twithAriaAttributes: true,\n\twithKeyboardNavigation: true\n};\nconst ComboboxSearch = factory((_props) => {\n\tconst { classNames, styles, unstyled, vars, withAriaAttributes, onKeyDown, onClick, withKeyboardNavigation, size, ref, ...others } = useProps(\"ComboboxSearch\", defaultProps, _props);\n\tconst ctx = useComboboxContext();\n\tconst _styles = ctx.getStyles(\"search\");\n\tconst targetProps = useComboboxTargetProps({\n\t\ttargetType: \"input\",\n\t\twithAriaAttributes,\n\t\twithKeyboardNavigation,\n\t\twithExpandedAttribute: false,\n\t\tonKeyDown,\n\t\tonClick,\n\t\tautoComplete: \"off\"\n\t});\n\treturn /* @__PURE__ */ jsx(Input, {\n\t\tref: useMergedRef(ref, ctx.store.searchRef),\n\t\tclassNames: [{ input: _styles.className }, classNames],\n\t\tstyles: [{ input: _styles.style }, styles],\n\t\tsize: size || ctx.size,\n\t\t...targetProps,\n\t\t...others,\n\t\t__staticSelector: \"Combobox\"\n\t});\n});\nComboboxSearch.classes = Combobox_module_default;\nComboboxSearch.displayName = \"@mantine/core/ComboboxSearch\";\nexport { ComboboxSearch };\n\n//# sourceMappingURL=ComboboxSearch.mjs.map","\"use client\";\nimport { getSingleElementChild } from \"../../../core/utils/get-single-element-child/get-single-element-child.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Popover } from \"../../Popover/Popover.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { useComboboxTargetProps } from \"../use-combobox-target-props/use-combobox-target-props.mjs\";\nimport { cloneElement } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/ComboboxTarget/ComboboxTarget.tsx\nconst defaultProps = {\n\trefProp: \"ref\",\n\ttargetType: \"input\",\n\twithKeyboardNavigation: true,\n\twithAriaAttributes: true,\n\twithExpandedAttribute: false,\n\tautoComplete: \"off\"\n};\nconst ComboboxTarget = factory((props) => {\n\tconst { children, refProp, withKeyboardNavigation, withAriaAttributes, withExpandedAttribute, targetType, autoComplete, ref, ...others } = useProps(\"ComboboxTarget\", defaultProps, props);\n\tconst child = getSingleElementChild(children);\n\tif (!child) throw new Error(\"Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported\");\n\tconst ctx = useComboboxContext();\n\tconst targetProps = useComboboxTargetProps({\n\t\ttargetType,\n\t\twithAriaAttributes,\n\t\twithKeyboardNavigation,\n\t\twithExpandedAttribute,\n\t\tonKeyDown: child.props.onKeyDown,\n\t\tonClick: child.props.onClick,\n\t\tautoComplete\n\t});\n\tconst clonedElement = cloneElement(child, {\n\t\t...targetProps,\n\t\t...others\n\t});\n\treturn /* @__PURE__ */ jsx(Popover.Target, {\n\t\trefProp,\n\t\tref: useMergedRef(ref, ctx.store.targetRef),\n\t\tchildren: clonedElement\n\t});\n});\nComboboxTarget.displayName = \"@mantine/core/ComboboxTarget\";\nexport { ComboboxTarget };\n\n//# sourceMappingURL=ComboboxTarget.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getFontSize, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { Popover } from \"../Popover/Popover.mjs\";\nimport Combobox_module_default from \"./Combobox.module.mjs\";\nimport { ComboboxChevron } from \"./ComboboxChevron/ComboboxChevron.mjs\";\nimport { ComboboxProvider } from \"./Combobox.context.mjs\";\nimport { ComboboxClearButton } from \"./ComboboxClearButton/ComboboxClearButton.mjs\";\nimport { ComboboxDropdown } from \"./ComboboxDropdown/ComboboxDropdown.mjs\";\nimport { ComboboxDropdownTarget } from \"./ComboboxDropdownTarget/ComboboxDropdownTarget.mjs\";\nimport { ComboboxEmpty } from \"./ComboboxEmpty/ComboboxEmpty.mjs\";\nimport { ComboboxEventsTarget } from \"./ComboboxEventsTarget/ComboboxEventsTarget.mjs\";\nimport { ComboboxFooter } from \"./ComboboxFooter/ComboboxFooter.mjs\";\nimport { ComboboxGroup } from \"./ComboboxGroup/ComboboxGroup.mjs\";\nimport { ComboboxHeader } from \"./ComboboxHeader/ComboboxHeader.mjs\";\nimport { ComboboxHiddenInput } from \"./ComboboxHiddenInput/ComboboxHiddenInput.mjs\";\nimport { ComboboxOption } from \"./ComboboxOption/ComboboxOption.mjs\";\nimport { ComboboxOptions } from \"./ComboboxOptions/ComboboxOptions.mjs\";\nimport { ComboboxSearch } from \"./ComboboxSearch/ComboboxSearch.mjs\";\nimport { ComboboxTarget } from \"./ComboboxTarget/ComboboxTarget.mjs\";\nimport { useCombobox } from \"./use-combobox/use-combobox.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/Combobox.tsx\nconst defaultProps = {\n\tkeepMounted: true,\n\tkeepMountedMode: \"display-none\",\n\twithinPortal: true,\n\tresetSelectionOnOptionHover: false,\n\twidth: \"target\",\n\ttransitionProps: {\n\t\ttransition: \"fade\",\n\t\tduration: 0\n\t},\n\tsize: \"sm\"\n};\nconst varsResolver = createVarsResolver((_, { size, dropdownPadding }) => ({\n\toptions: {\n\t\t\"--combobox-option-fz\": getFontSize(size),\n\t\t\"--combobox-option-padding\": getSize(size, \"combobox-option-padding\")\n\t},\n\tdropdown: {\n\t\t\"--combobox-padding\": dropdownPadding === void 0 ? void 0 : rem(dropdownPadding),\n\t\t\"--combobox-option-fz\": getFontSize(size),\n\t\t\"--combobox-option-padding\": getSize(size, \"combobox-option-padding\")\n\t}\n}));\nconst Combobox = (_props) => {\n\tconst props = useProps(\"Combobox\", defaultProps, _props);\n\tconst { classNames, styles, unstyled, children, store: controlledStore, vars, onOptionSubmit, onClose, size, dropdownPadding, resetSelectionOnOptionHover, __staticSelector, readOnly, attributes, floatingHeight, middlewares, ...others } = props;\n\tconst resolvedMiddlewares = floatingHeight === \"viewport\" ? {\n\t\t...middlewares,\n\t\tflip: false,\n\t\tsize: {\n\t\t\t...typeof middlewares?.size === \"object\" ? middlewares.size : {},\n\t\t\tpadding: typeof middlewares?.size === \"object\" && middlewares.size.padding !== void 0 ? middlewares.size.padding : 10,\n\t\t\tapply: ({ availableHeight, availableWidth, elements, ...rest }) => {\n\t\t\t\telements.floating.style.setProperty(\"--combobox-floating-max-height\", `${availableHeight}px`);\n\t\t\t\tconst userSize = middlewares?.size;\n\t\t\t\tif (typeof userSize === \"object\" && userSize.apply) userSize.apply({\n\t\t\t\t\tavailableHeight,\n\t\t\t\t\tavailableWidth,\n\t\t\t\t\telements,\n\t\t\t\t\t...rest\n\t\t\t\t});\n\t\t\t\telse if (userSize) Object.assign(elements.floating.style, {\n\t\t\t\t\tmaxWidth: `${availableWidth}px`,\n\t\t\t\t\tmaxHeight: `${availableHeight}px`\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t} : middlewares;\n\tconst uncontrolledStore = useCombobox();\n\tconst store = controlledStore || uncontrolledStore;\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector || \"Combobox\",\n\t\tclasses: Combobox_module_default,\n\t\tprops,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst onDropdownClose = () => {\n\t\tonClose?.();\n\t\tstore.closeDropdown();\n\t};\n\treturn /* @__PURE__ */ jsx(ComboboxProvider, {\n\t\tvalue: {\n\t\t\tgetStyles,\n\t\t\tstore,\n\t\t\tonOptionSubmit,\n\t\t\tsize,\n\t\t\tresetSelectionOnOptionHover,\n\t\t\treadOnly,\n\t\t\tfloatingHeight\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Popover, {\n\t\t\topened: store.dropdownOpened,\n\t\t\t...others,\n\t\t\tmiddlewares: resolvedMiddlewares,\n\t\t\tonChange: (_opened) => !_opened && onDropdownClose(),\n\t\t\twithRoles: false,\n\t\t\tunstyled,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst extendCombobox = (c) => c;\nCombobox.extend = extendCombobox;\nCombobox.classes = Combobox_module_default;\nCombobox.varsResolver = varsResolver;\nCombobox.displayName = \"@mantine/core/Combobox\";\nCombobox.Target = ComboboxTarget;\nCombobox.Dropdown = ComboboxDropdown;\nCombobox.Options = ComboboxOptions;\nCombobox.Option = ComboboxOption;\nCombobox.Search = ComboboxSearch;\nCombobox.Empty = ComboboxEmpty;\nCombobox.Chevron = ComboboxChevron;\nCombobox.Footer = ComboboxFooter;\nCombobox.Header = ComboboxHeader;\nCombobox.EventsTarget = ComboboxEventsTarget;\nCombobox.DropdownTarget = ComboboxDropdownTarget;\nCombobox.Group = ComboboxGroup;\nCombobox.ClearButton = ComboboxClearButton;\nCombobox.HiddenInput = ComboboxHiddenInput;\nexport { Combobox };\n\n//# sourceMappingURL=Combobox.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/OptionsDropdown/is-options-group.ts\nfunction isOptionsGroup(item) {\n\treturn \"group\" in item;\n}\nexport { isOptionsGroup };\n\n//# sourceMappingURL=is-options-group.mjs.map","\"use client\";\nimport { isOptionsGroup } from \"./is-options-group.mjs\";\n// packages/@mantine/core/src/components/Combobox/OptionsDropdown/default-options-filter.ts\nfunction defaultOptionsFilter({ options, search, limit }) {\n\tconst parsedSearch = search.trim().toLowerCase();\n\tconst result = [];\n\tfor (let i = 0; i < options.length; i += 1) {\n\t\tconst item = options[i];\n\t\tif (result.length === limit) return result;\n\t\tif (isOptionsGroup(item)) {\n\t\t\tconst filteredItems = defaultOptionsFilter({\n\t\t\t\toptions: item.items,\n\t\t\t\tsearch,\n\t\t\t\tlimit: limit - result.length\n\t\t\t});\n\t\t\tif (filteredItems.length > 0) result.push({\n\t\t\t\tgroup: item.group,\n\t\t\t\titems: filteredItems\n\t\t\t});\n\t\t}\n\t\tif (!isOptionsGroup(item)) {\n\t\t\tif (item.label.toLowerCase().includes(parsedSearch)) result.push(item);\n\t\t}\n\t}\n\treturn result;\n}\nexport { defaultOptionsFilter };\n\n//# sourceMappingURL=default-options-filter.mjs.map","\"use client\";\nimport { isOptionsGroup } from \"./is-options-group.mjs\";\n// packages/@mantine/core/src/components/Combobox/OptionsDropdown/validate-options.ts\nfunction validateOptions(options, valuesSet = /* @__PURE__ */ new Set()) {\n\tif (!Array.isArray(options)) return;\n\tfor (const option of options) if (isOptionsGroup(option)) validateOptions(option.items, valuesSet);\n\telse {\n\t\tif (typeof option.value === \"undefined\") throw new Error(\"[@mantine/core] Each option must have value property\");\n\t\tif (valuesSet.has(option.value)) throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value \"${option.value}\" was provided more than once`);\n\t\tvaluesSet.add(option.value);\n\t}\n}\nexport { validateOptions };\n\n//# sourceMappingURL=validate-options.mjs.map","\"use client\";\nimport { ScrollArea } from \"../../ScrollArea/ScrollArea.mjs\";\nimport Combobox_module_default from \"../Combobox.module.mjs\";\nimport { useComboboxContext } from \"../Combobox.context.mjs\";\nimport { Combobox } from \"../Combobox.mjs\";\nimport { CheckIcon } from \"../../Checkbox/CheckIcon.mjs\";\nimport { isOptionsGroup } from \"./is-options-group.mjs\";\nimport { defaultOptionsFilter } from \"./default-options-filter.mjs\";\nimport { isEmptyComboboxData } from \"./is-empty-combobox-data.mjs\";\nimport { validateOptions } from \"./validate-options.mjs\";\nimport cx from \"clsx\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Combobox/OptionsDropdown/OptionsDropdown.tsx\nfunction isValueChecked(value, optionValue) {\n\treturn Array.isArray(value) ? value.includes(optionValue) : value === optionValue;\n}\nfunction Option({ data, withCheckIcon, withAlignedLabels, value, checkIconPosition, unstyled, renderOption }) {\n\tif (!isOptionsGroup(data)) {\n\t\tconst checked = isValueChecked(value, data.value);\n\t\tconst check = withCheckIcon && (checked ? /* @__PURE__ */ jsx(CheckIcon, { className: Combobox_module_default.optionsDropdownCheckIcon }) : withAlignedLabels ? /* @__PURE__ */ jsx(\"div\", { className: Combobox_module_default.optionsDropdownCheckPlaceholder }) : null);\n\t\tconst defaultContent = /* @__PURE__ */ jsxs(Fragment, { children: [\n\t\t\tcheckIconPosition === \"left\" && check,\n\t\t\t/* @__PURE__ */ jsx(\"span\", { children: data.label }),\n\t\t\tcheckIconPosition === \"right\" && check\n\t\t] });\n\t\treturn /* @__PURE__ */ jsx(Combobox.Option, {\n\t\t\tvalue: data.value,\n\t\t\tdisabled: data.disabled,\n\t\t\tclassName: cx({ [Combobox_module_default.optionsDropdownOption]: !unstyled }),\n\t\t\t\"data-reverse\": checkIconPosition === \"right\" || void 0,\n\t\t\t\"data-checked\": checked || void 0,\n\t\t\t\"aria-selected\": checked,\n\t\t\tactive: checked,\n\t\t\tchildren: typeof renderOption === \"function\" ? renderOption({\n\t\t\t\toption: data,\n\t\t\t\tchecked\n\t\t\t}) : defaultContent\n\t\t});\n\t}\n\tconst options = data.items.map((item) => /* @__PURE__ */ jsx(Option, {\n\t\tdata: item,\n\t\tvalue,\n\t\tunstyled,\n\t\twithCheckIcon,\n\t\twithAlignedLabels,\n\t\tcheckIconPosition,\n\t\trenderOption\n\t}, `${item.value}`));\n\treturn /* @__PURE__ */ jsx(Combobox.Group, {\n\t\tlabel: data.group,\n\t\tchildren: options\n\t});\n}\nfunction OptionsDropdown({ data, hidden, hiddenWhenEmpty, filter, search, limit, maxDropdownHeight, floatingHeight, withScrollArea = true, filterOptions = true, withCheckIcon = false, withAlignedLabels = false, value, checkIconPosition, nothingFoundMessage, unstyled, labelId, renderOption, scrollAreaProps, \"aria-label\": ariaLabel }) {\n\tconst ctx = useComboboxContext();\n\tvalidateOptions(data);\n\tconst filteredData = typeof search === \"string\" ? (filter || defaultOptionsFilter)({\n\t\toptions: data,\n\t\tsearch: filterOptions ? search : \"\",\n\t\tlimit: limit ?? Infinity\n\t}) : data;\n\tconst isEmpty = isEmptyComboboxData(filteredData);\n\tconst options = filteredData.map((item, index) => /* @__PURE__ */ jsx(Option, {\n\t\tdata: item,\n\t\twithCheckIcon,\n\t\twithAlignedLabels,\n\t\tvalue,\n\t\tcheckIconPosition,\n\t\tunstyled,\n\t\trenderOption\n\t}, isOptionsGroup(item) ? `group-${typeof item.group === \"string\" ? item.group : index}` : `${item.value}`));\n\treturn /* @__PURE__ */ jsx(Combobox.Dropdown, {\n\t\thidden: hidden || hiddenWhenEmpty && isEmpty,\n\t\t\"data-composed\": true,\n\t\tchildren: /* @__PURE__ */ jsxs(Combobox.Options, {\n\t\t\tlabelledBy: labelId,\n\t\t\t\"aria-label\": ariaLabel,\n\t\t\tchildren: [withScrollArea ? /* @__PURE__ */ jsx(ScrollArea.Autosize, {\n\t\t\t\tmah: (floatingHeight ?? ctx.floatingHeight) === \"viewport\" ? \"var(--combobox-floating-options-max-height)\" : maxDropdownHeight ?? 220,\n\t\t\t\ttype: \"scroll\",\n\t\t\t\tscrollbarSize: \"var(--combobox-padding)\",\n\t\t\t\toffsetScrollbars: \"y\",\n\t\t\t\t...scrollAreaProps,\n\t\t\t\tchildren: options\n\t\t\t}) : options, isEmpty && nothingFoundMessage && /* @__PURE__ */ jsx(Combobox.Empty, { children: nothingFoundMessage })]\n\t\t})\n\t});\n}\nexport { OptionsDropdown };\n\n//# sourceMappingURL=OptionsDropdown.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/OptionsDropdown/is-empty-combobox-data.ts\nfunction isEmptyComboboxData(data) {\n\tif (data.length === 0) return true;\n\tfor (const item of data) {\n\t\tif (!(\"group\" in item)) return false;\n\t\tif (item.items.length > 0) return false;\n\t}\n\treturn true;\n}\nexport { isEmptyComboboxData };\n\n//# sourceMappingURL=is-empty-combobox-data.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useResolvedStylesApi } from \"../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs\";\nimport { genericFactory } from \"../../core/factory/factory.mjs\";\nimport { InputBase } from \"../InputBase/InputBase.mjs\";\nimport { getParsedComboboxData } from \"../Combobox/get-parsed-combobox-data/get-parsed-combobox-data.mjs\";\nimport { getOptionsLockup } from \"../Combobox/get-options-lockup/get-options-lockup.mjs\";\nimport { useCombobox } from \"../Combobox/use-combobox/use-combobox.mjs\";\nimport { Combobox } from \"../Combobox/Combobox.mjs\";\nimport { OptionsDropdown } from \"../Combobox/OptionsDropdown/OptionsDropdown.mjs\";\nimport { getComboboxLabelId } from \"../Combobox/get-combobox-label-id/get-combobox-label-id.mjs\";\nimport { isExternalInputChange } from \"../Combobox/is-external-input-change/is-external-input-change.mjs\";\nimport { getOptionByLabel } from \"../Combobox/get-options-lockup/get-option-by-label.mjs\";\nimport { useEffect, useMemo, useRef } from \"react\";\nimport { useId as useId$1, usePrevious, useUncontrolled } from \"@mantine/hooks\";\nimport { Fragment as Fragment$1, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Select/Select.tsx\nconst defaultProps = {\n\tsize: \"sm\",\n\twithCheckIcon: true,\n\tallowDeselect: true,\n\tcheckIconPosition: \"left\",\n\topenOnFocus: true\n};\nconst Select = genericFactory((_props) => {\n\tconst props = useProps([\n\t\t\"Input\",\n\t\t\"InputWrapper\",\n\t\t\"Select\"\n\t], defaultProps, _props);\n\tconst { classNames, styles, unstyled, vars, dropdownOpened, defaultDropdownOpened, onDropdownClose, onDropdownOpen, onFocus, onBlur, onClick, onChange, data, value, defaultValue, selectFirstOptionOnChange, selectFirstOptionOnDropdownOpen, onOptionSubmit, comboboxProps, readOnly, disabled, filter, limit, withScrollArea, maxDropdownHeight, floatingHeight, size, searchable, rightSection, checkIconPosition, withCheckIcon, withAlignedLabels, nothingFoundMessage, name, form, searchValue, defaultSearchValue, onSearchChange, allowDeselect, error, rightSectionPointerEvents, id, clearable, clearSectionMode, clearButtonProps, hiddenInputProps, renderOption, onClear, autoComplete, scrollAreaProps, __defaultRightSection, __clearSection, __clearable, chevronColor, autoSelectOnBlur, openOnFocus, attributes, ...others } = props;\n\tconst parsedData = useMemo(() => getParsedComboboxData(data), [data]);\n\tconst retainedSelectedOptions = useRef({});\n\tconst optionsLockup = useMemo(() => getOptionsLockup(parsedData), [parsedData]);\n\tconst _id = useId$1(id);\n\tconst comboboxLabelId = getComboboxLabelId({\n\t\tid: _id,\n\t\tlabel: others.label,\n\t\tlabelProps: others.labelProps,\n\t\tinputWrapperOrder: others.inputWrapperOrder\n\t});\n\tconst [_value, setValue, controlled] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: null,\n\t\tonChange\n\t});\n\tconst selectedOption = _value != null ? `${_value}` in optionsLockup ? optionsLockup[`${_value}`] : retainedSelectedOptions.current[`${_value}`] : void 0;\n\tconst previousSelectedOption = usePrevious(selectedOption);\n\tconst [search, setSearch, searchControlled] = useUncontrolled({\n\t\tvalue: searchValue,\n\t\tdefaultValue: defaultSearchValue,\n\t\tfinalValue: selectedOption ? selectedOption.label : \"\",\n\t\tonChange: onSearchChange\n\t});\n\tconst combobox = useCombobox({\n\t\topened: dropdownOpened,\n\t\tdefaultOpened: defaultDropdownOpened,\n\t\tonDropdownOpen: () => {\n\t\t\tonDropdownOpen?.();\n\t\t\tif (selectFirstOptionOnDropdownOpen) combobox.selectFirstOption();\n\t\t\telse combobox.updateSelectedOptionIndex(\"active\", { scrollIntoView: true });\n\t\t},\n\t\tonDropdownClose: () => {\n\t\t\tonDropdownClose?.();\n\t\t\tsetTimeout(combobox.resetSelectedOption, 0);\n\t\t}\n\t});\n\tconst handleSearchChange = (value) => {\n\t\tsetSearch(value);\n\t\tcombobox.resetSelectedOption();\n\t};\n\tconst { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({\n\t\tprops,\n\t\tstyles,\n\t\tclassNames\n\t});\n\tuseEffect(() => {\n\t\tif (selectFirstOptionOnChange) combobox.selectFirstOption();\n\t}, [selectFirstOptionOnChange, search]);\n\tuseEffect(() => {\n\t\tif (value === null) handleSearchChange(\"\");\n\t\tif (value != null && selectedOption && (previousSelectedOption?.value !== selectedOption.value || previousSelectedOption?.label !== selectedOption.label)) handleSearchChange(selectedOption.label);\n\t}, [value, selectedOption]);\n\tuseEffect(() => {\n\t\tif (!controlled && !searchControlled) handleSearchChange(_value != null ? `${_value}` in optionsLockup ? optionsLockup[`${_value}`]?.label : retainedSelectedOptions.current[`${_value}`]?.label || \"\" : \"\");\n\t}, [optionsLockup, _value]);\n\tuseEffect(() => {\n\t\tif (_value) {\n\t\t\tif (`${_value}` in optionsLockup) retainedSelectedOptions.current[`${_value}`] = optionsLockup[`${_value}`];\n\t\t}\n\t}, [optionsLockup, _value]);\n\tconst clearButton = /* @__PURE__ */ jsx(Combobox.ClearButton, {\n\t\t...clearButtonProps,\n\t\tonClear: () => {\n\t\t\tsetValue(null, null);\n\t\t\thandleSearchChange(\"\");\n\t\t\tonClear?.();\n\t\t}\n\t});\n\tconst _clearable = clearable && _value != null && !disabled && !readOnly;\n\treturn /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Combobox, {\n\t\tstore: combobox,\n\t\t__staticSelector: \"Select\",\n\t\tclassNames: resolvedClassNames,\n\t\tstyles: resolvedStyles,\n\t\tunstyled,\n\t\treadOnly,\n\t\tsize,\n\t\tattributes,\n\t\tfloatingHeight,\n\t\tkeepMounted: autoSelectOnBlur,\n\t\tonOptionSubmit: (val) => {\n\t\t\tonOptionSubmit?.(val);\n\t\t\tconst optionLockup = allowDeselect ? `${optionsLockup[val].value}` === `${_value}` ? null : optionsLockup[val] : optionsLockup[val];\n\t\t\tconst nextValue = optionLockup ? optionLockup.value : null;\n\t\t\tnextValue !== _value && setValue(nextValue, optionLockup);\n\t\t\t!controlled && handleSearchChange(nextValue != null ? optionLockup?.label || \"\" : \"\");\n\t\t\tcombobox.closeDropdown();\n\t\t},\n\t\t...comboboxProps,\n\t\tchildren: [/* @__PURE__ */ jsx(Combobox.Target, {\n\t\t\ttargetType: searchable ? \"input\" : \"button\",\n\t\t\tautoComplete,\n\t\t\twithExpandedAttribute: true,\n\t\t\tchildren: /* @__PURE__ */ jsx(InputBase, {\n\t\t\t\tid: _id,\n\t\t\t\t__defaultRightSection: /* @__PURE__ */ jsx(Combobox.Chevron, {\n\t\t\t\t\tsize,\n\t\t\t\t\terror,\n\t\t\t\t\tunstyled,\n\t\t\t\t\tcolor: chevronColor\n\t\t\t\t}),\n\t\t\t\t__clearSection: clearButton,\n\t\t\t\t__clearable: _clearable,\n\t\t\t\t__clearSectionMode: clearSectionMode,\n\t\t\t\trightSection,\n\t\t\t\trightSectionPointerEvents: rightSectionPointerEvents || \"none\",\n\t\t\t\t...others,\n\t\t\t\tsize,\n\t\t\t\t__staticSelector: \"Select\",\n\t\t\t\tdisabled,\n\t\t\t\treadOnly: readOnly || !searchable,\n\t\t\t\tvalue: search,\n\t\t\t\tonChange: (event) => {\n\t\t\t\t\tif (isExternalInputChange(event)) {\n\t\t\t\t\t\tif (!readOnly) {\n\t\t\t\t\t\t\tconst externalOption = getOptionByLabel(optionsLockup, event.currentTarget.value);\n\t\t\t\t\t\t\tif (externalOption && `${externalOption.value}` !== `${_value}`) {\n\t\t\t\t\t\t\t\tsetValue(externalOption.value, externalOption);\n\t\t\t\t\t\t\t\t!controlled && handleSearchChange(externalOption.label);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\thandleSearchChange(event.currentTarget.value);\n\t\t\t\t\tcombobox.openDropdown();\n\t\t\t\t\tselectFirstOptionOnChange && combobox.selectFirstOption();\n\t\t\t\t},\n\t\t\t\tonFocus: (event) => {\n\t\t\t\t\topenOnFocus && searchable && combobox.openDropdown();\n\t\t\t\t\tonFocus?.(event);\n\t\t\t\t},\n\t\t\t\tonBlur: (event) => {\n\t\t\t\t\tif (autoSelectOnBlur) combobox.clickSelectedOption();\n\t\t\t\t\tcombobox.closeDropdown();\n\t\t\t\t\tconst optionLockup = _value != null && (`${_value}` in optionsLockup ? optionsLockup[`${_value}`] : retainedSelectedOptions.current[`${_value}`]);\n\t\t\t\t\thandleSearchChange(optionLockup ? optionLockup.label || \"\" : \"\");\n\t\t\t\t\tonBlur?.(event);\n\t\t\t\t},\n\t\t\t\tonClick: (event) => {\n\t\t\t\t\tsearchable ? combobox.openDropdown() : combobox.toggleDropdown();\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t},\n\t\t\t\tclassNames: resolvedClassNames,\n\t\t\t\tstyles: resolvedStyles,\n\t\t\t\tunstyled,\n\t\t\t\tpointer: !searchable,\n\t\t\t\terror,\n\t\t\t\tattributes\n\t\t\t})\n\t\t}), /* @__PURE__ */ jsx(OptionsDropdown, {\n\t\t\tdata: parsedData,\n\t\t\thidden: readOnly || disabled,\n\t\t\tfilter,\n\t\t\tsearch,\n\t\t\tlimit,\n\t\t\thiddenWhenEmpty: !nothingFoundMessage,\n\t\t\twithScrollArea,\n\t\t\tmaxDropdownHeight,\n\t\t\tfilterOptions: !!searchable && selectedOption?.label !== search,\n\t\t\tvalue: _value,\n\t\t\tcheckIconPosition,\n\t\t\twithCheckIcon,\n\t\t\twithAlignedLabels,\n\t\t\tnothingFoundMessage,\n\t\t\tunstyled,\n\t\t\tlabelId: comboboxLabelId,\n\t\t\t\"aria-label\": comboboxLabelId ? void 0 : others[\"aria-label\"],\n\t\t\trenderOption,\n\t\t\tscrollAreaProps\n\t\t})]\n\t}), /* @__PURE__ */ jsx(Combobox.HiddenInput, {\n\t\tvalue: _value,\n\t\tname,\n\t\tform,\n\t\tdisabled,\n\t\t...hiddenInputProps\n\t})] });\n});\nSelect.classes = {\n\t...InputBase.classes,\n\t...Combobox.classes\n};\nSelect.displayName = \"@mantine/core/Select\";\nexport { Select };\n\n//# sourceMappingURL=Select.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/get-combobox-label-id/get-combobox-label-id.ts\nfunction getComboboxLabelId({ id, label, labelProps, inputWrapperOrder }) {\n\tif (!label) return;\n\tif (inputWrapperOrder && !inputWrapperOrder.includes(\"label\")) return;\n\treturn labelProps?.id || `${id}-label`;\n}\nexport { getComboboxLabelId };\n\n//# sourceMappingURL=get-combobox-label-id.mjs.map","\"use client\";\nimport { useEffect, useRef } from \"react\";\n// packages/@mantine/hooks/src/use-previous/use-previous.ts\nfunction usePrevious(value) {\n\tconst ref = useRef(void 0);\n\tuseEffect(() => {\n\t\tref.current = value;\n\t}, [value]);\n\treturn ref.current;\n}\nexport { usePrevious };\n\n//# sourceMappingURL=use-previous.mjs.map","\"use client\";\nimport { getRootElement } from \"../../../core/utils/find-element-in-shadow-dom/find-element-in-shadow-dom.mjs\";\n// packages/@mantine/core/src/components/Combobox/is-external-input-change/is-external-input-change.ts\n/**\n* Determines whether an input change was produced by something other than the user typing into the\n* input – browser autofill, password managers and browser extensions all write to inputs without\n* focusing them first. Combobox components reconcile the search value with the selected value on\n* blur, which never happens for such writes.\n*/\nfunction isExternalInputChange(event) {\n\tconst target = event.currentTarget;\n\treturn getRootElement(target).activeElement !== target;\n}\nexport { isExternalInputChange };\n\n//# sourceMappingURL=is-external-input-change.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Combobox/get-options-lockup/get-option-by-label.ts\n/**\n* Finds an enabled option by its label, ignoring casing and surrounding whitespace. Returns\n* `undefined` when the label is ambiguous: options with duplicate labels are valid data, and there\n* is no way to tell which of them was meant.\n*/\nfunction getOptionByLabel(optionsLockup, label) {\n\tconst normalizedLabel = label.trim().toLowerCase();\n\tif (normalizedLabel === \"\") return;\n\tconst matchedOptions = Object.values(optionsLockup).filter((option) => !option.disabled && option.label.trim().toLowerCase() === normalizedLabel);\n\treturn matchedOptions.length === 1 ? matchedOptions[0] : void 0;\n}\nexport { getOptionByLabel };\n\n//# sourceMappingURL=get-option-by-label.mjs.map","\"use client\";\nimport { useEffect, useEffectEvent, useLayoutEffect, useRef } from \"react\";\nimport { useMergedRef } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Textarea/Autosize.tsx\nconst SIZING_STYLE_KEYS = [\n\t\"borderBottomWidth\",\n\t\"borderLeftWidth\",\n\t\"borderRightWidth\",\n\t\"borderTopWidth\",\n\t\"boxSizing\",\n\t\"fontFamily\",\n\t\"fontSize\",\n\t\"fontStyle\",\n\t\"fontWeight\",\n\t\"letterSpacing\",\n\t\"lineHeight\",\n\t\"paddingBottom\",\n\t\"paddingLeft\",\n\t\"paddingRight\",\n\t\"paddingTop\",\n\t\"tabSize\",\n\t\"textIndent\",\n\t\"textRendering\",\n\t\"textTransform\",\n\t\"width\",\n\t\"wordBreak\",\n\t\"wordSpacing\",\n\t\"scrollbarGutter\"\n];\nconst HIDDEN_TEXTAREA_STYLE = {\n\t\"min-height\": \"0\",\n\t\"max-height\": \"none\",\n\theight: \"0\",\n\tvisibility: \"hidden\",\n\toverflow: \"hidden\",\n\tposition: \"absolute\",\n\t\"z-index\": \"-1000\",\n\ttop: \"0\",\n\tright: \"0\",\n\tdisplay: \"block\"\n};\nfunction forceHiddenStyles(node) {\n\tObject.keys(HIDDEN_TEXTAREA_STYLE).forEach((key) => {\n\t\tnode.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], \"important\");\n\t});\n}\nfunction getSizingData(node) {\n\tconst style = window.getComputedStyle(node);\n\tif (style === null) return null;\n\tconst sizingStyle = {};\n\tfor (const key of SIZING_STYLE_KEYS) sizingStyle[key] = style[key];\n\tif (sizingStyle.boxSizing === \"\") return null;\n\treturn {\n\t\tsizingStyle,\n\t\tpaddingSize: parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop),\n\t\tborderSize: parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth)\n\t};\n}\nlet hiddenTextarea = null;\nfunction calculateNodeHeight(sizingData, value, minRows = 1, maxRows = Infinity) {\n\tif (!hiddenTextarea) {\n\t\thiddenTextarea = document.createElement(\"textarea\");\n\t\thiddenTextarea.setAttribute(\"tabindex\", \"-1\");\n\t\thiddenTextarea.setAttribute(\"aria-hidden\", \"true\");\n\t\thiddenTextarea.setAttribute(\"aria-label\", \"autosize measurement\");\n\t\tforceHiddenStyles(hiddenTextarea);\n\t}\n\tif (hiddenTextarea.parentNode === null) document.body.appendChild(hiddenTextarea);\n\tconst { paddingSize, borderSize, sizingStyle } = sizingData;\n\tconst { boxSizing } = sizingStyle;\n\tObject.keys(sizingStyle).forEach((key) => {\n\t\thiddenTextarea.style[key] = sizingStyle[key];\n\t});\n\tforceHiddenStyles(hiddenTextarea);\n\thiddenTextarea.value = value;\n\tlet height = boxSizing === \"border-box\" ? hiddenTextarea.scrollHeight + borderSize : hiddenTextarea.scrollHeight - paddingSize;\n\thiddenTextarea.value = value;\n\theight = boxSizing === \"border-box\" ? hiddenTextarea.scrollHeight + borderSize : hiddenTextarea.scrollHeight - paddingSize;\n\thiddenTextarea.value = \"x\";\n\tconst rowHeight = hiddenTextarea.scrollHeight - paddingSize;\n\tlet minHeight = rowHeight * minRows;\n\tif (boxSizing === \"border-box\") minHeight = minHeight + paddingSize + borderSize;\n\theight = Math.max(minHeight, height);\n\tlet maxHeight = rowHeight * maxRows;\n\tif (boxSizing === \"border-box\") maxHeight = maxHeight + paddingSize + borderSize;\n\theight = Math.min(maxHeight, height);\n\treturn [height, rowHeight];\n}\nfunction TextareaAutosize({ maxRows, minRows, onChange, ref: userRef, ...props }) {\n\tconst isControlled = props.value !== void 0;\n\tconst libRef = useRef(null);\n\tconst ref = useMergedRef(libRef, userRef);\n\tconst heightRef = useRef(0);\n\tconst widthRef = useRef(0);\n\tconst resizeTextarea = () => {\n\t\tconst node = libRef.current;\n\t\tif (!node) return;\n\t\tconst nodeSizingData = getSizingData(node);\n\t\tif (!nodeSizingData) return;\n\t\tconst [height] = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || \"x\", minRows, maxRows);\n\t\tif (heightRef.current !== height) {\n\t\t\theightRef.current = height;\n\t\t\tnode.style.setProperty(\"height\", `${height}px`, \"important\");\n\t\t}\n\t};\n\tconst handleResize = useEffectEvent(resizeTextarea);\n\tconst handleChange = (event) => {\n\t\tif (!isControlled) resizeTextarea();\n\t\tonChange?.(event);\n\t};\n\tuseLayoutEffect(resizeTextarea);\n\tuseEffect(() => {\n\t\tconst handleResize = () => resizeTextarea();\n\t\twindow.addEventListener(\"resize\", handleResize);\n\t\treturn () => window.removeEventListener(\"resize\", handleResize);\n\t}, []);\n\tuseEffect(() => {\n\t\tconst node = libRef.current;\n\t\tif (!node || typeof ResizeObserver === \"undefined\") return;\n\t\twidthRef.current = node.offsetWidth;\n\t\tlet frame = 0;\n\t\tconst observer = new ResizeObserver(() => {\n\t\t\tif (libRef.current && libRef.current.offsetWidth !== widthRef.current) {\n\t\t\t\twidthRef.current = libRef.current.offsetWidth;\n\t\t\t\tcancelAnimationFrame(frame);\n\t\t\t\tframe = requestAnimationFrame(handleResize);\n\t\t\t}\n\t\t});\n\t\tobserver.observe(node);\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t\tobserver.disconnect();\n\t\t};\n\t}, []);\n\tuseEffect(() => {\n\t\tconst handleFontsLoaded = () => resizeTextarea();\n\t\tdocument.fonts.addEventListener(\"loadingdone\", handleFontsLoaded);\n\t\treturn () => document.fonts.removeEventListener(\"loadingdone\", handleFontsLoaded);\n\t}, []);\n\tuseEffect(() => {\n\t\tconst handleReset = (event) => {\n\t\t\tif (libRef.current?.form === event.target && !isControlled) {\n\t\t\t\tconst currentValue = libRef.current.value;\n\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\tif (libRef.current && currentValue !== libRef.current.value) resizeTextarea();\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t\tdocument.body.addEventListener(\"reset\", handleReset);\n\t\treturn () => document.body.removeEventListener(\"reset\", handleReset);\n\t}, [isControlled]);\n\treturn /* @__PURE__ */ jsx(\"textarea\", {\n\t\trows: minRows,\n\t\t...props,\n\t\tonChange: handleChange,\n\t\tref\n\t});\n}\nexport { TextareaAutosize };\n\n//# sourceMappingURL=Autosize.mjs.map","\"use client\";\nimport { getEnv } from \"../../core/utils/get-env/get-env.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { InputBase } from \"../InputBase/InputBase.mjs\";\nimport { TextareaAutosize } from \"./Autosize.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Textarea/Textarea.tsx\nconst Textarea = factory((props) => {\n\tconst { autosize, maxRows, minRows, __staticSelector, resize, bottomSection, bottomSectionProps, ...others } = useProps([\n\t\t\"Input\",\n\t\t\"InputWrapper\",\n\t\t\"Textarea\"\n\t], null, props);\n\tconst shouldAutosize = autosize && getEnv() !== \"test\";\n\tconst autosizeProps = shouldAutosize ? {\n\t\tmaxRows,\n\t\tminRows\n\t} : {};\n\treturn /* @__PURE__ */ jsx(InputBase, {\n\t\tcomponent: shouldAutosize ? TextareaAutosize : \"textarea\",\n\t\t...others,\n\t\t__staticSelector: __staticSelector || \"Textarea\",\n\t\t__bottomSection: bottomSection,\n\t\t__bottomSectionProps: bottomSectionProps,\n\t\tmultiline: true,\n\t\t\"data-no-overflow\": autosize && maxRows === void 0 || void 0,\n\t\t__vars: { \"--input-resize\": resize },\n\t\t...autosizeProps\n\t});\n});\nTextarea.classes = InputBase.classes;\nTextarea.displayName = \"@mantine/core/Textarea\";\nexport { Textarea };\n\n//# sourceMappingURL=Textarea.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/get-env/get-env.ts\nfunction getEnv() {\n\tif (typeof process !== \"undefined\" && process.env && \"development\") return \"development\";\n\treturn \"development\";\n}\nexport { getEnv };\n\n//# sourceMappingURL=get-env.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Divider/Divider.module.css\nvar Divider_module_default = {\n\t\"root\": \"m_3eebeb36\",\n\t\"label\": \"m_9e365f20\"\n};\nexport { Divider_module_default as default };\n\n//# sourceMappingURL=Divider.module.mjs.map","\"use client\";\nimport { getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Divider_module_default from \"./Divider.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Divider/Divider.tsx\nconst defaultProps = { orientation: \"horizontal\" };\nconst varsResolver = createVarsResolver((theme, { color, variant, size }) => ({ root: {\n\t\"--divider-color\": color ? getThemeColor(color, theme) : void 0,\n\t\"--divider-border-style\": variant,\n\t\"--divider-size\": getSize(size, \"divider-size\")\n} }));\nconst Divider = factory((_props) => {\n\tconst props = useProps(\"Divider\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, color, orientation, label, labelPosition, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Divider\",\n\t\tclasses: Divider_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tmod: [{\n\t\t\torientation,\n\t\t\twithLabel: !!label\n\t\t}, mod],\n\t\trole: \"separator\",\n\t\t\"aria-orientation\": orientation,\n\t\t...getStyles(\"root\"),\n\t\t...others,\n\t\tchildren: label && /* @__PURE__ */ jsx(Box, {\n\t\t\tcomponent: \"span\",\n\t\t\tmod: { position: labelPosition },\n\t\t\t...getStyles(\"label\"),\n\t\t\tchildren: label\n\t\t})\n\t});\n});\nDivider.classes = Divider_module_default;\nDivider.varsResolver = varsResolver;\nDivider.displayName = \"@mantine/core/Divider\";\nexport { Divider };\n\n//# sourceMappingURL=Divider.mjs.map","import React, { useEffect, useState } from \"react\";\nimport { Alert, Anchor, Button, Divider, Drawer, Select, Stack, Text, Textarea } from \"@mantine/core\";\nimport { useMediaQuery } from \"@mantine/hooks\";\nimport { notifications } from \"@mantine/notifications\";\nimport { api } from \"./api\";\nimport { t } from \"./i18n\";\n\nexport default function Contact({ opened, prefill, firms, current, info, onClose }) {\n  const phone = useMediaQuery(\"(max-width: 36em)\");\n  const [firm, setFirm] = useState(\"\");\n  const [message, setMessage] = useState(\"\");\n  const [error, setError] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n\n  useEffect(() => {\n    if (!opened) return;\n    const preset = prefill.firm || (current !== \"all\" ? current : firms.length === 1 ? firms[0].id : \"\");\n    setFirm(preset ? String(preset) : \"\");\n    setMessage(prefill.message || \"\");\n    setError(\"\");\n  }, [opened]); // eslint-disable-line react-hooks/exhaustive-deps\n\n  async function send(event) {\n    event.preventDefault();\n    setBusy(true);\n    setError(\"\");\n    try {\n      const answer = await api(\"/api/contact/\", {\n        method: \"POST\",\n        body: { message, firm: firm ? Number(firm) : null },\n      });\n      notifications.show({ color: \"fmGreen\", message: answer.detail });\n      onClose();\n    } catch (e) {\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  return (\n    <Drawer\n      opened={opened}\n      onClose={onClose}\n      position=\"right\"\n      size={phone ? \"100%\" : \"md\"}\n      title={<Text fw={600} size=\"lg\">{t(\"Contact\")}</Text>}\n    >\n      <form onSubmit={send}>\n        <Stack gap=\"md\">\n          {firms.length > 1 && (\n            <Select\n              label={t(\"Company\")}\n              placeholder={t(\"Not about one company\")}\n              clearable\n              searchable\n              value={firm}\n              onChange={(v) => setFirm(v || \"\")}\n              data={firms.map((f) => ({ value: String(f.id), label: f.name }))}\n            />\n          )}\n          <Textarea\n            label={t(\"Message\")}\n            required\n            autosize\n            minRows={5}\n            maxLength={5000}\n            value={message}\n            onChange={(e) => setMessage(e.currentTarget.value)}\n          />\n          <Text size=\"xs\" c=\"dimmed\">\n            {t(\"We will answer to your email address.\")}\n          </Text>\n          {error && <Alert color=\"fmRed\">{error}</Alert>}\n          <Button type=\"submit\" loading={busy} disabled={!message.trim()}>\n            {t(\"Send message\")}\n          </Button>\n        </Stack>\n      </form>\n      {info && (\n        <>\n          <Divider my=\"lg\" />\n          <Stack gap={4}>\n            <Text fw={600}>FIRMIN s.r.o.</Text>\n            <Anchor href={info.map_url} target=\"_blank\" rel=\"noopener noreferrer\" size=\"sm\">\n              {info.address}\n            </Anchor>\n            <Text size=\"sm\">\n              {t(\"Mail\")}: <Anchor href={`tel:${info.phone_mail.replace(/\\s/g, \"\")}`}>{info.phone_mail}</Anchor>\n            </Text>\n            <Text size=\"sm\">\n              {t(\"Other matters\")}: <Anchor href={`tel:${info.phone_other.replace(/\\s/g, \"\")}`}>{info.phone_other}</Anchor>\n            </Text>\n            <Anchor href={`mailto:${info.email}`} size=\"sm\">\n              {info.email}\n            </Anchor>\n            <Anchor href={info.hours_url} target=\"_blank\" rel=\"noopener noreferrer\" size=\"sm\">\n              {t(\"Opening hours\")}\n            </Anchor>\n          </Stack>\n        </>\n      )}\n    </Drawer>\n  );\n}\n","\"use client\";\n// packages/@mantine/core/src/components/Badge/Badge.module.css\nvar Badge_module_default = {\n\t\"root\": \"m_347db0ec\",\n\t\"root--dot\": \"m_fbd81e3d\",\n\t\"label\": \"m_5add502a\",\n\t\"section\": \"m_91fdda9b\"\n};\nexport { Badge_module_default as default };\n\n//# sourceMappingURL=Badge.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Badge_module_default from \"./Badge.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Badge/Badge.tsx\nconst varsResolver = createVarsResolver((theme, { radius, color, gradient, variant, size, autoContrast, circle }) => {\n\tconst colors = theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tgradient,\n\t\tvariant: variant || \"filled\",\n\t\tautoContrast\n\t});\n\treturn { root: {\n\t\t\"--badge-height\": getSize(size, \"badge-height\"),\n\t\t\"--badge-padding-x\": getSize(size, \"badge-padding-x\"),\n\t\t\"--badge-fz\": getSize(size, \"badge-fz\"),\n\t\t\"--badge-radius\": circle || radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--badge-bg\": color || variant ? colors.background : void 0,\n\t\t\"--badge-color\": color || variant ? colors.color : void 0,\n\t\t\"--badge-bd\": color || variant ? colors.border : void 0,\n\t\t\"--badge-dot-color\": variant === \"dot\" ? getThemeColor(color, theme) : void 0\n\t} };\n});\nconst Badge = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Badge\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, radius, color, gradient, leftSection, rightSection, children, variant, fullWidth, autoContrast, circle, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Badge\",\n\t\tprops,\n\t\tclasses: Badge_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsxs(Box, {\n\t\tvariant,\n\t\tmod: [{\n\t\t\tblock: fullWidth,\n\t\t\tcircle,\n\t\t\t\"with-right-section\": !!rightSection,\n\t\t\t\"with-left-section\": !!leftSection\n\t\t}, mod],\n\t\t...getStyles(\"root\", { variant }),\n\t\t...others,\n\t\tchildren: [\n\t\t\tleftSection && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...getStyles(\"section\"),\n\t\t\t\t\"data-position\": \"left\",\n\t\t\t\tchildren: leftSection\n\t\t\t}),\n\t\t\t/* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...getStyles(\"label\"),\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\trightSection && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...getStyles(\"section\"),\n\t\t\t\t\"data-position\": \"right\",\n\t\t\t\tchildren: rightSection\n\t\t\t})\n\t\t]\n\t});\n});\nBadge.classes = Badge_module_default;\nBadge.varsResolver = varsResolver;\nBadge.displayName = \"@mantine/core/Badge\";\nexport { Badge };\n\n//# sourceMappingURL=Badge.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/utils/get-safe-id/get-safe-id.ts\nfunction getSafeId(uid, errorMessage) {\n\treturn (value) => {\n\t\tif (typeof value !== \"string\" || value.trim().length === 0) throw new Error(errorMessage);\n\t\treturn `${uid}-${value}`;\n\t};\n}\nexport { getSafeId };\n\n//# sourceMappingURL=get-safe-id.mjs.map","\"use client\";\n// packages/@mantine/core/src/core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.ts\nfunction getAutoContrastValue(autoContrast, theme) {\n\treturn typeof autoContrast === \"boolean\" ? autoContrast : theme.autoContrast;\n}\nexport { getAutoContrastValue };\n\n//# sourceMappingURL=get-auto-contrast-value.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Tabs/Tabs.context.ts\nconst [TabsProvider, useTabsContext] = createSafeContext(\"Tabs component was not found in the tree\");\nexport { TabsProvider, useTabsContext };\n\n//# sourceMappingURL=Tabs.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Tabs/Tabs.module.css\nvar Tabs_module_default = {\n\t\"root\": \"m_89d60db1\",\n\t\"list--default\": \"m_576c9d4\",\n\t\"list\": \"m_89d33d6d\",\n\t\"tab\": \"m_4ec4dce6\",\n\t\"panel\": \"m_b0c91715\",\n\t\"tabSection\": \"m_fc420b1f\",\n\t\"tabLabel\": \"m_42bbd1ae\",\n\t\"tab--default\": \"m_539e827b\",\n\t\"list--outline\": \"m_6772fbd5\",\n\t\"tab--outline\": \"m_b59ab47c\",\n\t\"tab--pills\": \"m_c3381914\"\n};\nexport { Tabs_module_default as default };\n\n//# sourceMappingURL=Tabs.module.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useTabsContext } from \"../Tabs.context.mjs\";\nimport Tabs_module_default from \"../Tabs.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tabs/TabsList/TabsList.tsx\nconst TabsList = factory((_props) => {\n\tconst props = useProps(\"TabsList\", null, _props);\n\tconst { children, className, grow, justify, classNames, styles, style, mod, ...others } = props;\n\tconst ctx = useTabsContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"list\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tprops,\n\t\t\tvariant: ctx.variant\n\t\t}),\n\t\trole: \"tablist\",\n\t\tvariant: ctx.variant,\n\t\tmod: [{\n\t\t\tgrow,\n\t\t\torientation: ctx.orientation,\n\t\t\tplacement: ctx.orientation === \"vertical\" && ctx.placement,\n\t\t\tinverted: ctx.inverted\n\t\t}, mod],\n\t\t\"aria-orientation\": ctx.orientation,\n\t\t__vars: { \"--tabs-justify\": justify },\n\t\t...others,\n\t\tchildren\n\t});\n});\nTabsList.classes = Tabs_module_default;\nTabsList.displayName = \"@mantine/core/TabsList\";\nexport { TabsList };\n\n//# sourceMappingURL=TabsList.mjs.map","\"use client\";\nimport { useMantineEnv } from \"../../../core/MantineProvider/Mantine.context.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useTabsContext } from \"../Tabs.context.mjs\";\nimport Tabs_module_default from \"../Tabs.module.mjs\";\nimport { Activity, useEffect } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tabs/TabsPanel/TabsPanel.tsx\nconst TabsPanel = factory((_props) => {\n\tconst props = useProps(\"TabsPanel\", null, _props);\n\tconst { children, className, value, classNames, styles, style, mod, keepMounted, ...others } = props;\n\tconst env = useMantineEnv();\n\tconst ctx = useTabsContext();\n\tuseEffect(() => {\n\t\tctx.setMountedPanel(value, true);\n\t\treturn () => {\n\t\t\tctx.setMountedPanel(value, false);\n\t\t};\n\t}, [value]);\n\tconst active = ctx.value === value;\n\tconst shouldKeepMounted = ctx.keepMounted || keepMounted;\n\tconst useActivity = ctx.keepMountedMode !== \"display-none\";\n\tconst content = shouldKeepMounted && useActivity && env !== \"test\" ? /* @__PURE__ */ jsx(Activity, {\n\t\tmode: active ? \"visible\" : \"hidden\",\n\t\tchildren\n\t}) : shouldKeepMounted ? children : active ? children : null;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"panel\", {\n\t\t\tclassName,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tstyle: [style, !active ? { display: \"none\" } : void 0],\n\t\t\tprops\n\t\t}),\n\t\tmod: [{ orientation: ctx.orientation }, mod],\n\t\trole: \"tabpanel\",\n\t\tid: ctx.getPanelId(value),\n\t\t\"aria-labelledby\": ctx.getTabId(value),\n\t\t...others,\n\t\tchildren: content\n\t});\n});\nTabsPanel.classes = Tabs_module_default;\nTabsPanel.displayName = \"@mantine/core/TabsPanel\";\nexport { TabsPanel };\n\n//# sourceMappingURL=TabsPanel.mjs.map","\"use client\";\nimport { createScopedKeydownHandler } from \"../../../core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useMantineTheme } from \"../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { useTabsContext } from \"../Tabs.context.mjs\";\nimport Tabs_module_default from \"../Tabs.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tabs/TabsTab/TabsTab.tsx\nconst TabsTab = factory((_props) => {\n\tconst props = useProps(\"TabsTab\", null, _props);\n\tconst { className, children, rightSection, leftSection, value, onClick, onKeyDown, disabled, color, style, classNames, styles, vars, mod, tabIndex, ...others } = props;\n\tconst theme = useMantineTheme();\n\tconst { dir } = useDirection();\n\tconst ctx = useTabsContext();\n\tconst active = value === ctx.value;\n\tconst activateTab = (event) => {\n\t\tctx.onChange(ctx.allowTabDeactivation ? value === ctx.value ? null : value : value);\n\t\tonClick?.(event);\n\t};\n\tconst stylesApiProps = {\n\t\tclassNames,\n\t\tstyles,\n\t\tprops\n\t};\n\treturn /* @__PURE__ */ jsxs(UnstyledButton, {\n\t\t...ctx.getStyles(\"tab\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tvariant: ctx.variant,\n\t\t\t...stylesApiProps\n\t\t}),\n\t\tdisabled,\n\t\tunstyled: ctx.unstyled,\n\t\tvariant: ctx.variant,\n\t\tmod: [{\n\t\t\tactive,\n\t\t\tdisabled,\n\t\t\torientation: ctx.orientation,\n\t\t\tinverted: ctx.inverted,\n\t\t\tplacement: ctx.orientation === \"vertical\" && ctx.placement\n\t\t}, mod],\n\t\trole: \"tab\",\n\t\tid: ctx.getTabId(value),\n\t\t\"aria-selected\": active,\n\t\ttabIndex: tabIndex !== void 0 ? tabIndex : active || ctx.value === null ? 0 : -1,\n\t\t\"aria-controls\": ctx.mountedPanels.current.has(value) ? ctx.getPanelId(value) : void 0,\n\t\tonClick: activateTab,\n\t\t__vars: { \"--tabs-color\": color ? getThemeColor(color, theme) : void 0 },\n\t\tonKeyDown: createScopedKeydownHandler({\n\t\t\tsiblingSelector: \"[role=\\\"tab\\\"]\",\n\t\t\tparentSelector: \"[role=\\\"tablist\\\"]\",\n\t\t\tactivateOnFocus: ctx.activateTabWithKeyboard,\n\t\t\tloop: ctx.loop,\n\t\t\torientation: ctx.orientation || \"horizontal\",\n\t\t\tdir,\n\t\t\tonKeyDown\n\t\t}),\n\t\t...others,\n\t\tchildren: [\n\t\t\tleftSection && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...ctx.getStyles(\"tabSection\", stylesApiProps),\n\t\t\t\t\"data-position\": \"left\",\n\t\t\t\tchildren: leftSection\n\t\t\t}),\n\t\t\tchildren && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...ctx.getStyles(\"tabLabel\", stylesApiProps),\n\t\t\t\tchildren\n\t\t\t}),\n\t\t\trightSection && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...ctx.getStyles(\"tabSection\", stylesApiProps),\n\t\t\t\t\"data-position\": \"right\",\n\t\t\t\tchildren: rightSection\n\t\t\t})\n\t\t]\n\t});\n});\nTabsTab.classes = Tabs_module_default;\nTabsTab.displayName = \"@mantine/core/TabsTab\";\nexport { TabsTab };\n\n//# sourceMappingURL=TabsTab.mjs.map","\"use client\";\nimport { getSafeId } from \"../../core/utils/get-safe-id/get-safe-id.mjs\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { TabsProvider } from \"./Tabs.context.mjs\";\nimport Tabs_module_default from \"./Tabs.module.mjs\";\nimport { TabsList } from \"./TabsList/TabsList.mjs\";\nimport { TabsPanel } from \"./TabsPanel/TabsPanel.mjs\";\nimport { TabsTab } from \"./TabsTab/TabsTab.mjs\";\nimport { useCallback, useRef } from \"react\";\nimport { useForceUpdate, useId as useId$1, useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Tabs/Tabs.tsx\nconst VALUE_ERROR = \"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value\";\nconst defaultProps = {\n\tkeepMounted: true,\n\tkeepMountedMode: \"activity\",\n\torientation: \"horizontal\",\n\tloop: true,\n\tactivateTabWithKeyboard: true,\n\tvariant: \"default\",\n\tplacement: \"left\"\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, autoContrast }) => ({ root: {\n\t\"--tabs-radius\": getRadius(radius),\n\t\"--tabs-color\": getThemeColor(color, theme),\n\t\"--tabs-text-color\": getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\tcolor,\n\t\ttheme,\n\t\tautoContrast\n\t}) : void 0\n} }));\nconst Tabs = factory((_props) => {\n\tconst props = useProps(\"Tabs\", defaultProps, _props);\n\tconst { defaultValue, value, onChange, orientation, children, loop, id, activateTabWithKeyboard, allowTabDeactivation, variant, color, radius, inverted, placement, keepMounted, keepMountedMode, classNames, styles, unstyled, className, style, vars, autoContrast, mod, attributes, ...others } = props;\n\tconst uid = useId$1(id);\n\tconst mountedPanels = useRef(/* @__PURE__ */ new Set());\n\tconst forceUpdate = useForceUpdate();\n\tconst setMountedPanel = useCallback((panelValue, mounted) => {\n\t\tconst panels = mountedPanels.current;\n\t\tif (mounted && !panels.has(panelValue)) {\n\t\t\tpanels.add(panelValue);\n\t\t\tforceUpdate();\n\t\t} else if (!mounted && panels.has(panelValue)) {\n\t\t\tpanels.delete(panelValue);\n\t\t\tforceUpdate();\n\t\t}\n\t}, []);\n\tconst [currentTab, setCurrentTab] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: null,\n\t\tonChange\n\t});\n\tconst getStyles = useStyles({\n\t\tname: \"Tabs\",\n\t\tprops,\n\t\tclasses: Tabs_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(TabsProvider, {\n\t\tvalue: {\n\t\t\tplacement,\n\t\t\tvalue: currentTab,\n\t\t\torientation,\n\t\t\tid: uid,\n\t\t\tloop,\n\t\t\tactivateTabWithKeyboard,\n\t\t\tgetTabId: getSafeId(`${uid}-tab`, VALUE_ERROR),\n\t\t\tgetPanelId: getSafeId(`${uid}-panel`, VALUE_ERROR),\n\t\t\tonChange: setCurrentTab,\n\t\t\tallowTabDeactivation,\n\t\t\tvariant,\n\t\t\tcolor,\n\t\t\tradius,\n\t\t\tinverted,\n\t\t\tkeepMounted,\n\t\t\tkeepMountedMode,\n\t\t\tunstyled,\n\t\t\tgetStyles,\n\t\t\tmountedPanels,\n\t\t\tsetMountedPanel\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\tid: uid,\n\t\t\tvariant,\n\t\t\tmod: [{\n\t\t\t\torientation,\n\t\t\t\tinverted: orientation === \"horizontal\" && inverted,\n\t\t\t\tplacement: orientation === \"vertical\" && placement\n\t\t\t}, mod],\n\t\t\t...getStyles(\"root\"),\n\t\t\t...others,\n\t\t\tchildren\n\t\t})\n\t});\n});\nTabs.classes = Tabs_module_default;\nTabs.varsResolver = varsResolver;\nTabs.displayName = \"@mantine/core/Tabs\";\nTabs.Tab = TabsTab;\nTabs.Panel = TabsPanel;\nTabs.List = TabsList;\nexport { Tabs };\n\n//# sourceMappingURL=Tabs.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Pagination/Pagination.context.ts\nconst [PaginationProvider, usePaginationContext] = createSafeContext(\"Pagination.Root component was not found in tree\");\nexport { PaginationProvider, usePaginationContext };\n\n//# sourceMappingURL=Pagination.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Pagination/Pagination.module.css\nvar Pagination_module_default = {\n\t\"root\": \"m_4addd315\",\n\t\"control\": \"m_326d024a\",\n\t\"dots\": \"m_4ad7767d\",\n\t\"items\": \"m_105fdbed\",\n\t\"label\": \"m_10817321\"\n};\nexport { Pagination_module_default as default };\n\n//# sourceMappingURL=Pagination.module.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { usePaginationContext } from \"../Pagination.context.mjs\";\nimport Pagination_module_default from \"../Pagination.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationControl/PaginationControl.tsx\nconst defaultProps = { withPadding: true };\nconst PaginationControl = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, active, disabled, withPadding, mod, ...others } = useProps(\"PaginationControl\", defaultProps, _props);\n\tconst ctx = usePaginationContext();\n\tconst _disabled = disabled || ctx.disabled;\n\treturn /* @__PURE__ */ jsx(UnstyledButton, {\n\t\tdisabled: _disabled,\n\t\tmod: [{\n\t\t\tactive,\n\t\t\tdisabled: _disabled,\n\t\t\t\"with-padding\": withPadding\n\t\t}, mod],\n\t\t...ctx.getStyles(\"control\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tclassNames,\n\t\t\tstyles,\n\t\t\tactive: !_disabled\n\t\t}),\n\t\t...others\n\t});\n});\nPaginationControl.classes = Pagination_module_default;\nPaginationControl.displayName = \"@mantine/core/PaginationControl\";\nexport { PaginationControl };\n\n//# sourceMappingURL=PaginationControl.mjs.map","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/Pagination.icons.tsx\nfunction PaginationIcon({ style, children, path, ...others }) {\n\treturn /* @__PURE__ */ jsx(\"svg\", {\n\t\tviewBox: \"0 0 16 16\",\n\t\txmlns: \"http://www.w3.org/2000/svg\",\n\t\tstyle: {\n\t\t\twidth: \"calc(var(--pagination-control-size) / 1.8)\",\n\t\t\theight: \"calc(var(--pagination-control-size) / 1.8)\",\n\t\t\t...style\n\t\t},\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"path\", {\n\t\t\td: path,\n\t\t\tfill: \"currentColor\"\n\t\t})\n\t});\n}\nconst PaginationNextIcon = (props) => /* @__PURE__ */ jsx(PaginationIcon, {\n\t...props,\n\tpath: \"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z\"\n});\nconst PaginationPreviousIcon = (props) => /* @__PURE__ */ jsx(PaginationIcon, {\n\t...props,\n\tpath: \"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z\"\n});\nconst PaginationFirstIcon = (props) => /* @__PURE__ */ jsx(PaginationIcon, {\n\t...props,\n\tpath: \"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z\"\n});\nconst PaginationLastIcon = (props) => /* @__PURE__ */ jsx(PaginationIcon, {\n\t...props,\n\tpath: \"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z\"\n});\nconst PaginationDotsIcon = (props) => /* @__PURE__ */ jsx(PaginationIcon, {\n\t...props,\n\tpath: \"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z\"\n});\nexport { PaginationDotsIcon, PaginationFirstIcon, PaginationLastIcon, PaginationNextIcon, PaginationPreviousIcon };\n\n//# sourceMappingURL=Pagination.icons.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { usePaginationContext } from \"../Pagination.context.mjs\";\nimport Pagination_module_default from \"../Pagination.module.mjs\";\nimport { PaginationDotsIcon } from \"../Pagination.icons.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationDots/PaginationDots.tsx\nconst defaultProps = { icon: PaginationDotsIcon };\nconst PaginationDots = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, icon: Icon, ...others } = useProps(\"PaginationDots\", defaultProps, _props);\n\tconst ctx = usePaginationContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"dots\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(Icon, { style: {\n\t\t\twidth: \"calc(var(--pagination-control-size) / 1.8)\",\n\t\t\theight: \"calc(var(--pagination-control-size) / 1.8)\"\n\t\t} })\n\t});\n});\nPaginationDots.classes = Pagination_module_default;\nPaginationDots.displayName = \"@mantine/core/PaginationDots\";\nexport { PaginationDots };\n\n//# sourceMappingURL=PaginationDots.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { polymorphic } from \"../../../core/factory/create-polymorphic-component.mjs\";\nimport { usePaginationContext } from \"../Pagination.context.mjs\";\nimport { PaginationControl } from \"../PaginationControl/PaginationControl.mjs\";\nimport { PaginationFirstIcon, PaginationLastIcon, PaginationNextIcon, PaginationPreviousIcon } from \"../Pagination.icons.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationEdges/PaginationEdges.tsx\nfunction createEdgeComponent({ icon, name, action, type }) {\n\tconst defaultProps = { icon };\n\tconst Component = (props) => {\n\t\tconst { icon: Icon, ...others } = useProps(name, defaultProps, props);\n\t\tconst ctx = usePaginationContext();\n\t\tconst disabled = type === \"next\" ? ctx.active === ctx.total : ctx.active === 1;\n\t\treturn /* @__PURE__ */ jsx(PaginationControl, {\n\t\t\tdisabled: ctx.disabled || disabled,\n\t\t\tonClick: ctx[action],\n\t\t\twithPadding: false,\n\t\t\t...others,\n\t\t\tchildren: /* @__PURE__ */ jsx(Icon, {\n\t\t\t\tclassName: \"mantine-rotate-rtl\",\n\t\t\t\tstyle: {\n\t\t\t\t\twidth: \"calc(var(--pagination-control-size) / 1.8)\",\n\t\t\t\t\theight: \"calc(var(--pagination-control-size) / 1.8)\"\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t};\n\tComponent.displayName = `@mantine/core/${name}`;\n\treturn polymorphic(Component);\n}\nconst PaginationNext = createEdgeComponent({\n\ticon: PaginationNextIcon,\n\tname: \"PaginationNext\",\n\taction: \"onNext\",\n\ttype: \"next\"\n});\nconst PaginationPrevious = createEdgeComponent({\n\ticon: PaginationPreviousIcon,\n\tname: \"PaginationPrevious\",\n\taction: \"onPrevious\",\n\ttype: \"previous\"\n});\nconst PaginationFirst = createEdgeComponent({\n\ticon: PaginationFirstIcon,\n\tname: \"PaginationFirst\",\n\taction: \"onFirst\",\n\ttype: \"previous\"\n});\nconst PaginationLast = createEdgeComponent({\n\ticon: PaginationLastIcon,\n\tname: \"PaginationLast\",\n\taction: \"onLast\",\n\ttype: \"next\"\n});\nexport { PaginationFirst, PaginationLast, PaginationNext, PaginationPrevious, createEdgeComponent };\n\n//# sourceMappingURL=PaginationEdges.mjs.map","\"use client\";\nimport { usePaginationContext } from \"../Pagination.context.mjs\";\nimport { PaginationControl } from \"../PaginationControl/PaginationControl.mjs\";\nimport { PaginationDots } from \"../PaginationDots/PaginationDots.mjs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationItems/PaginationItems.tsx\nfunction PaginationItems({ dotsIcon }) {\n\tconst ctx = usePaginationContext();\n\tconst items = ctx.range.map((page, index) => {\n\t\tif (page === \"dots\") return /* @__PURE__ */ jsx(PaginationDots, { icon: dotsIcon }, index);\n\t\treturn /* @__PURE__ */ jsx(PaginationControl, {\n\t\t\tactive: page === ctx.active,\n\t\t\t\"aria-current\": page === ctx.active ? \"page\" : void 0,\n\t\t\tonClick: () => ctx.onChange(page),\n\t\t\tdisabled: ctx.disabled,\n\t\t\t...ctx.getItemProps?.(page),\n\t\t\tchildren: ctx.getItemProps?.(page)?.children ?? page\n\t\t}, index);\n\t});\n\treturn /* @__PURE__ */ jsx(Fragment, { children: items });\n}\nPaginationItems.displayName = \"@mantine/core/PaginationItems\";\nexport { PaginationItems };\n\n//# sourceMappingURL=PaginationItems.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { usePaginationContext } from \"../Pagination.context.mjs\";\nimport Pagination_module_default from \"../Pagination.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationLabel/PaginationLabel.tsx\nconst defaultProps = { formatLabel: ({ page, totalPages }) => `Page ${page} of ${totalPages}` };\nconst PaginationLabel = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, formatLabel, ...others } = useProps(\"PaginationLabel\", defaultProps, _props);\n\tconst ctx = usePaginationContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"label\", {\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\tstyles,\n\t\t\tclassNames\n\t\t}),\n\t\t...others,\n\t\tchildren: formatLabel({\n\t\t\tpage: ctx.active,\n\t\t\ttotalPages: ctx.total\n\t\t})\n\t});\n});\nPaginationLabel.classes = Pagination_module_default;\nPaginationLabel.displayName = \"@mantine/core/PaginationLabel\";\nexport { PaginationLabel };\n\n//# sourceMappingURL=PaginationLabel.mjs.map","\"use client\";\nimport { useUncontrolled } from \"../use-uncontrolled/use-uncontrolled.mjs\";\nimport { useCallback, useMemo } from \"react\";\n// packages/@mantine/hooks/src/use-pagination/use-pagination.ts\nfunction range(start, end) {\n\tconst length = end - start + 1;\n\treturn Array.from({ length }, (_, index) => index + start);\n}\nconst DOTS = \"dots\";\nfunction usePagination({ total, siblings = 1, boundaries = 1, page, initialPage, onChange, startValue = 1 }) {\n\tconst _startValue = Math.max(Math.trunc(startValue), 1);\n\tconst _endValue = Math.max(Math.trunc(total), _startValue);\n\tconst _total = _endValue - _startValue + 1;\n\tconst _initialPage = initialPage ?? _startValue;\n\tconst [activePage, setActivePage] = useUncontrolled({\n\t\tvalue: page,\n\t\tonChange,\n\t\tdefaultValue: _initialPage,\n\t\tfinalValue: _initialPage\n\t});\n\tconst setPage = useCallback((pageNumber) => {\n\t\tif (pageNumber < _startValue) setActivePage(_startValue);\n\t\telse if (pageNumber > _endValue) setActivePage(_endValue);\n\t\telse setActivePage(pageNumber);\n\t}, [\n\t\t_startValue,\n\t\t_endValue,\n\t\tsetActivePage\n\t]);\n\tconst next = useCallback(() => setPage(activePage + 1), [activePage, setPage]);\n\tconst previous = useCallback(() => setPage(activePage - 1), [activePage, setPage]);\n\tconst first = useCallback(() => setPage(_startValue), [setPage, _startValue]);\n\tconst last = useCallback(() => setPage(_endValue), [_endValue, setPage]);\n\treturn {\n\t\trange: useMemo(() => {\n\t\t\tif (siblings * 2 + 3 + boundaries * 2 >= _total) return range(_startValue, _endValue);\n\t\t\tconst leftSiblingIndex = Math.max(activePage - siblings, _startValue + boundaries - 1);\n\t\t\tconst rightSiblingIndex = Math.min(activePage + siblings, _endValue - boundaries);\n\t\t\tconst shouldShowLeftDots = leftSiblingIndex > _startValue + boundaries + 1;\n\t\t\tconst shouldShowRightDots = rightSiblingIndex < _endValue - (boundaries + 1);\n\t\t\tif (!shouldShowLeftDots && shouldShowRightDots) {\n\t\t\t\tconst leftItemCount = siblings * 2 + boundaries + 2;\n\t\t\t\treturn [\n\t\t\t\t\t...range(_startValue, _startValue + leftItemCount - 1),\n\t\t\t\t\tDOTS,\n\t\t\t\t\t...range(_endValue - (boundaries - 1), _endValue)\n\t\t\t\t];\n\t\t\t}\n\t\t\tif (shouldShowLeftDots && !shouldShowRightDots) {\n\t\t\t\tconst rightItemCount = boundaries + 1 + 2 * siblings;\n\t\t\t\treturn [\n\t\t\t\t\t...range(_startValue, _startValue + boundaries - 1),\n\t\t\t\t\tDOTS,\n\t\t\t\t\t...range(_endValue - rightItemCount, _endValue)\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [\n\t\t\t\t...range(_startValue, _startValue + boundaries - 1),\n\t\t\t\tDOTS,\n\t\t\t\t...range(leftSiblingIndex, rightSiblingIndex),\n\t\t\t\tDOTS,\n\t\t\t\t...range(_endValue - boundaries + 1, _endValue)\n\t\t\t];\n\t\t}, [\n\t\t\t_total,\n\t\t\tsiblings,\n\t\t\tactivePage,\n\t\t\t_startValue,\n\t\t\t_endValue,\n\t\t\tboundaries\n\t\t]),\n\t\tactive: activePage,\n\t\tsetPage,\n\t\tnext,\n\t\tprevious,\n\t\tfirst,\n\t\tlast\n\t};\n}\nexport { DOTS, usePagination };\n\n//# sourceMappingURL=use-pagination.mjs.map","\"use client\";\nimport { getFontSize, getRadius, getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createEventHandler } from \"../../../core/utils/create-event-handler/create-event-handler.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { PaginationProvider } from \"../Pagination.context.mjs\";\nimport Pagination_module_default from \"../Pagination.module.mjs\";\nimport { usePagination } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/PaginationRoot/PaginationRoot.tsx\nconst defaultProps = {\n\tsiblings: 1,\n\tboundaries: 1\n};\nconst varsResolver = createVarsResolver((theme, { size, radius, color, autoContrast }) => ({ root: {\n\t\"--pagination-control-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--pagination-control-size\": getSize(size, \"pagination-control-size\"),\n\t\"--pagination-control-fz\": getFontSize(size),\n\t\"--pagination-active-bg\": color ? getThemeColor(color, theme) : void 0,\n\t\"--pagination-active-color\": getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\tcolor,\n\t\ttheme,\n\t\tautoContrast\n\t}) : void 0\n} }));\nconst PaginationRoot = factory((_props) => {\n\tconst props = useProps(\"PaginationRoot\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, total, value, defaultValue, onChange, disabled, siblings, boundaries, color, radius, onNextPage, onPreviousPage, onFirstPage, onLastPage, getItemProps, autoContrast, startValue, layout, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Pagination\",\n\t\tclasses: Pagination_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { range, setPage, next, previous, active, first, last } = usePagination({\n\t\tpage: value,\n\t\tinitialPage: defaultValue,\n\t\tonChange,\n\t\ttotal,\n\t\tsiblings,\n\t\tboundaries,\n\t\tstartValue\n\t});\n\treturn /* @__PURE__ */ jsx(PaginationProvider, {\n\t\tvalue: {\n\t\t\ttotal,\n\t\t\trange,\n\t\t\tactive,\n\t\t\tdisabled,\n\t\t\tlayout,\n\t\t\tgetItemProps,\n\t\t\tonChange: setPage,\n\t\t\tonNext: createEventHandler(onNextPage, next),\n\t\t\tonPrevious: createEventHandler(onPreviousPage, previous),\n\t\t\tonFirst: createEventHandler(onFirstPage, first),\n\t\t\tonLast: createEventHandler(onLastPage, last),\n\t\t\tgetStyles\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\t...getStyles(\"root\"),\n\t\t\tmod: [{ layout }, mod],\n\t\t\t...others\n\t\t})\n\t});\n});\nPaginationRoot.classes = Pagination_module_default;\nPaginationRoot.varsResolver = varsResolver;\nPaginationRoot.displayName = \"@mantine/core/PaginationRoot\";\nexport { PaginationRoot };\n\n//# sourceMappingURL=PaginationRoot.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { Group } from \"../Group/Group.mjs\";\nimport { usePaginationContext } from \"./Pagination.context.mjs\";\nimport Pagination_module_default from \"./Pagination.module.mjs\";\nimport { PaginationControl } from \"./PaginationControl/PaginationControl.mjs\";\nimport { PaginationDots } from \"./PaginationDots/PaginationDots.mjs\";\nimport { PaginationFirst, PaginationLast, PaginationNext, PaginationPrevious } from \"./PaginationEdges/PaginationEdges.mjs\";\nimport { PaginationItems } from \"./PaginationItems/PaginationItems.mjs\";\nimport { PaginationLabel } from \"./PaginationLabel/PaginationLabel.mjs\";\nimport { PaginationRoot } from \"./PaginationRoot/PaginationRoot.mjs\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Pagination/Pagination.tsx\nconst defaultProps = {\n\twithControls: true,\n\twithPages: true,\n\tsiblings: 1,\n\tboundaries: 1,\n\tgap: 8\n};\nfunction PaginationItemsGroup({ children }) {\n\tconst ctx = usePaginationContext();\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"items\"),\n\t\tchildren\n\t});\n}\nconst Pagination = factory((_props) => {\n\tconst { withEdges, withControls, getControlProps, nextIcon, previousIcon, lastIcon, firstIcon, dotsIcon, total, gap, hideWithOnePage, withPages, layout, formatLabel, ...others } = useProps(\"Pagination\", defaultProps, _props);\n\tif (total <= 0 || hideWithOnePage && total === 1) return null;\n\tconst pagesContent = withPages ? layout === \"responsive\" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PaginationItemsGroup, { children: /* @__PURE__ */ jsx(PaginationItems, { dotsIcon }) }), /* @__PURE__ */ jsx(PaginationLabel, { formatLabel })] }) : /* @__PURE__ */ jsx(PaginationItems, { dotsIcon }) : null;\n\treturn /* @__PURE__ */ jsx(PaginationRoot, {\n\t\ttotal,\n\t\tlayout,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsxs(Group, {\n\t\t\tgap,\n\t\t\tchildren: [\n\t\t\t\twithEdges && /* @__PURE__ */ jsx(PaginationFirst, {\n\t\t\t\t\ticon: firstIcon,\n\t\t\t\t\t...getControlProps?.(\"first\")\n\t\t\t\t}),\n\t\t\t\twithControls && /* @__PURE__ */ jsx(PaginationPrevious, {\n\t\t\t\t\ticon: previousIcon,\n\t\t\t\t\t...getControlProps?.(\"previous\")\n\t\t\t\t}),\n\t\t\t\tpagesContent,\n\t\t\t\twithControls && /* @__PURE__ */ jsx(PaginationNext, {\n\t\t\t\t\ticon: nextIcon,\n\t\t\t\t\t...getControlProps?.(\"next\")\n\t\t\t\t}),\n\t\t\t\twithEdges && /* @__PURE__ */ jsx(PaginationLast, {\n\t\t\t\t\ticon: lastIcon,\n\t\t\t\t\t...getControlProps?.(\"last\")\n\t\t\t\t})\n\t\t\t]\n\t\t})\n\t});\n});\nPagination.classes = Pagination_module_default;\nPagination.displayName = \"@mantine/core/Pagination\";\nPagination.Root = PaginationRoot;\nPagination.Control = PaginationControl;\nPagination.Dots = PaginationDots;\nPagination.First = PaginationFirst;\nPagination.Last = PaginationLast;\nPagination.Next = PaginationNext;\nPagination.Previous = PaginationPrevious;\nPagination.Items = PaginationItems;\nPagination.Label = PaginationLabel;\nexport { Pagination };\n\n//# sourceMappingURL=Pagination.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"eye\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n        key: \"1nclc0\"\n      }\n    ],\n    [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }]\n  ]\n};\n__iconData.node;\nconst Eye = createLucideIcon(__iconData);\n\nexport { __iconData, Eye as default };\n//# sourceMappingURL=eye.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"file-scan\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M20 10V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.35\",\n        key: \"1cdjst\"\n      }\n    ],\n    [\"path\", { d: \"M14 2v5a1 1 0 0 0 1 1h5\", key: \"wfsgrz\" }],\n    [\"path\", { d: \"M16 14a2 2 0 0 0-2 2\", key: \"ceaadl\" }],\n    [\"path\", { d: \"M16 22a2 2 0 0 1-2-2\", key: \"1wqh5n\" }],\n    [\"path\", { d: \"M20 14a2 2 0 0 1 2 2\", key: \"1ny6zw\" }],\n    [\"path\", { d: \"M20 22a2 2 0 0 0 2-2\", key: \"1l9q4k\" }]\n  ]\n};\n__iconData.node;\nconst FileScan = createLucideIcon(__iconData);\n\nexport { __iconData, FileScan as default };\n//# sourceMappingURL=file-scan.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"shredder\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M4 13V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5\",\n        key: \"1eob4r\"\n      }\n    ],\n    [\"path\", { d: \"M14 2v5a1 1 0 0 0 1 1h5\", key: \"wfsgrz\" }],\n    [\"path\", { d: \"M10 22v-5\", key: \"sfixh4\" }],\n    [\"path\", { d: \"M14 19v-2\", key: \"pdve8j\" }],\n    [\"path\", { d: \"M18 20v-3\", key: \"uox2gk\" }],\n    [\"path\", { d: \"M2 13h20\", key: \"5evz65\" }],\n    [\"path\", { d: \"M6 20v-3\", key: \"c6pdcb\" }]\n  ]\n};\n__iconData.node;\nconst Shredder = createLucideIcon(__iconData);\n\nexport { __iconData, Shredder as default };\n//# sourceMappingURL=shredder.mjs.map\n","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useClipboard } from \"@mantine/hooks\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/CopyButton/CopyButton.tsx\nconst defaultProps = { timeout: 1e3 };\nfunction CopyButton(props) {\n\tconst { children, timeout, value, ...others } = useProps(\"CopyButton\", defaultProps, props);\n\tconst clipboard = useClipboard({ timeout });\n\tconst copy = () => clipboard.copy(value);\n\treturn /* @__PURE__ */ jsx(Fragment, { children: children({\n\t\tcopy,\n\t\tcopied: clipboard.copied,\n\t\t...others\n\t}) });\n}\nCopyButton.displayName = \"@mantine/core/CopyButton\";\nexport { CopyButton };\n\n//# sourceMappingURL=CopyButton.mjs.map","\"use client\";\nimport { useEffect, useRef, useState } from \"react\";\n// packages/@mantine/hooks/src/use-clipboard/use-clipboard.ts\nfunction useClipboard(options = {}) {\n\tconst timeout = options.timeout ?? 2e3;\n\tconst [error, setError] = useState(null);\n\tconst [copied, setCopied] = useState(false);\n\tconst timeoutRef = useRef(null);\n\tuseEffect(() => () => {\n\t\twindow.clearTimeout(timeoutRef.current);\n\t}, []);\n\tconst handleCopyResult = (value) => {\n\t\twindow.clearTimeout(timeoutRef.current);\n\t\ttimeoutRef.current = window.setTimeout(() => setCopied(false), timeout);\n\t\tsetCopied(value);\n\t};\n\tconst copy = (value) => {\n\t\tif (\"clipboard\" in navigator) navigator.clipboard.writeText(value).then(() => {\n\t\t\tsetError(null);\n\t\t\thandleCopyResult(true);\n\t\t}).catch((err) => {\n\t\t\tsetError(err);\n\t\t\tsetCopied(false);\n\t\t});\n\t\telse setError(/* @__PURE__ */ new Error(\"useClipboard: navigator.clipboard is not supported\"));\n\t};\n\tconst reset = () => {\n\t\tsetCopied(false);\n\t\tsetError(null);\n\t\twindow.clearTimeout(timeoutRef.current);\n\t};\n\treturn {\n\t\tcopy,\n\t\treset,\n\t\terror,\n\t\tcopied\n\t};\n}\nexport { useClipboard };\n\n//# sourceMappingURL=use-clipboard.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Image/Image.module.css\nvar Image_module_default = { \"root\": \"m_9e117634\" };\nexport { Image_module_default as default };\n\n//# sourceMappingURL=Image.module.mjs.map","\"use client\";\nimport { getRadius } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { polymorphicFactory } from \"../../core/factory/polymorphic-factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport Image_module_default from \"./Image.module.mjs\";\nimport { useEffect, useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Image/Image.tsx\nconst varsResolver = createVarsResolver((_, { radius, fit }) => ({ root: {\n\t\"--image-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--image-object-fit\": fit\n} }));\nconst Image = polymorphicFactory((_props) => {\n\tconst props = useProps(\"Image\", null, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, onError, src, radius, fit, fallbackSrc, mod, attributes, ...others } = props;\n\tconst [error, setError] = useState(!src);\n\tuseEffect(() => setError(!src), [src]);\n\tconst getStyles = useStyles({\n\t\tname: \"Image\",\n\t\tclasses: Image_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tif (error && fallbackSrc) return /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"img\",\n\t\tsrc: fallbackSrc,\n\t\t...getStyles(\"root\"),\n\t\tonError,\n\t\tmod: [\"fallback\", mod],\n\t\t...others\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: \"img\",\n\t\t...getStyles(\"root\"),\n\t\tsrc,\n\t\tonError: (event) => {\n\t\t\tonError?.(event);\n\t\t\tsetError(true);\n\t\t},\n\t\tmod,\n\t\t...others\n\t});\n});\nImage.classes = Image_module_default;\nImage.varsResolver = varsResolver;\nImage.displayName = \"@mantine/core/Image\";\nexport { Image };\n\n//# sourceMappingURL=Image.mjs.map","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/Table/Table.context.ts\nconst [TableProvider, useTableContext] = createSafeContext(\"Table component was not found in the tree\");\nexport { TableProvider, useTableContext };\n\n//# sourceMappingURL=Table.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Table/Table.module.css\nvar Table_module_default = {\n\t\"table\": \"m_b23fa0ef\",\n\t\"th\": \"m_4e7aa4f3\",\n\t\"tr\": \"m_4e7aa4fd\",\n\t\"td\": \"m_4e7aa4ef\",\n\t\"tbody\": \"m_b2404537\",\n\t\"thead\": \"m_b242d975\",\n\t\"caption\": \"m_9e5a3ac7\",\n\t\"scrollContainer\": \"m_a100c15\",\n\t\"scrollContainerInner\": \"m_62259741\"\n};\nexport { Table_module_default as default };\n\n//# sourceMappingURL=Table.module.mjs.map","\"use client\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { useTableContext } from \"./Table.context.mjs\";\nimport Table_module_default from \"./Table.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Table/Table.components.tsx\nfunction getDataAttributes(ctx, options) {\n\tif (!options) return;\n\tconst data = {};\n\tif (options.columnBorder && ctx.withColumnBorders) data[\"data-with-column-border\"] = true;\n\tif (options.rowBorder && ctx.withRowBorders) data[\"data-with-row-border\"] = true;\n\tif (options.striped && ctx.striped) data[\"data-striped\"] = ctx.striped;\n\tif (options.highlightOnHover && ctx.highlightOnHover) data[\"data-hover\"] = true;\n\tif (options.captionSide && ctx.captionSide) data[\"data-side\"] = ctx.captionSide;\n\tif (options.stickyHeader && ctx.stickyHeader) data[\"data-sticky\"] = true;\n\treturn data;\n}\nfunction tableElement(element, options) {\n\tconst name = `Table${element.charAt(0).toUpperCase()}${element.slice(1)}`;\n\tconst Component = factory((_props) => {\n\t\tconst props = useProps(name, {}, _props);\n\t\tconst { classNames, className, style, styles, ...others } = props;\n\t\tconst ctx = useTableContext();\n\t\treturn /* @__PURE__ */ jsx(Box, {\n\t\t\tcomponent: element,\n\t\t\t...getDataAttributes(ctx, options),\n\t\t\t...ctx.getStyles(element, {\n\t\t\t\tclassName,\n\t\t\t\tclassNames,\n\t\t\t\tstyle,\n\t\t\t\tstyles,\n\t\t\t\tprops\n\t\t\t}),\n\t\t\t...others\n\t\t});\n\t});\n\tComponent.displayName = `@mantine/core/${name}`;\n\tComponent.classes = Table_module_default;\n\treturn Component;\n}\nconst TableTh = tableElement(\"th\", { columnBorder: true });\nconst TableTd = tableElement(\"td\", { columnBorder: true });\nconst TableTr = tableElement(\"tr\", {\n\trowBorder: true,\n\tstriped: true,\n\thighlightOnHover: true\n});\nconst TableThead = tableElement(\"thead\", { stickyHeader: true });\nconst TableTbody = tableElement(\"tbody\");\nconst TableTfoot = tableElement(\"tfoot\");\nconst TableCaption = tableElement(\"caption\", { captionSide: true });\nexport { TableCaption, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr, tableElement };\n\n//# sourceMappingURL=Table.components.mjs.map","\"use client\";\nimport { TableCaption, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr } from \"./Table.components.mjs\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Table/TableDataRenderer.tsx\nfunction TableDataRenderer({ data }) {\n\treturn /* @__PURE__ */ jsxs(Fragment, { children: [\n\t\tdata.caption && /* @__PURE__ */ jsx(TableCaption, { children: data.caption }),\n\t\tdata.head && /* @__PURE__ */ jsx(TableThead, { children: /* @__PURE__ */ jsx(TableTr, { children: data.head.map((item, index) => /* @__PURE__ */ jsx(TableTh, { children: item }, index)) }) }),\n\t\tdata.body && /* @__PURE__ */ jsx(TableTbody, { children: data.body.map((row, rowIndex) => /* @__PURE__ */ jsx(TableTr, { children: row.map((item, index) => /* @__PURE__ */ jsx(TableTd, { children: item }, index)) }, rowIndex)) }),\n\t\tdata.foot && /* @__PURE__ */ jsx(TableTfoot, { children: /* @__PURE__ */ jsx(TableTr, { children: data.foot.map((item, index) => /* @__PURE__ */ jsx(TableTh, { children: item }, index)) }) })\n\t] });\n}\nTableDataRenderer.displayName = \"@mantine/core/TableDataRenderer\";\nexport { TableDataRenderer };\n\n//# sourceMappingURL=TableDataRenderer.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { ScrollArea } from \"../ScrollArea/ScrollArea.mjs\";\nimport Table_module_default from \"./Table.module.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Table/TableScrollContainer.tsx\nconst defaultProps = { type: \"scrollarea\" };\nconst varsResolver = createVarsResolver((_, { minWidth, maxHeight, type }) => ({ scrollContainer: {\n\t\"--table-min-width\": rem(minWidth),\n\t\"--table-max-height\": rem(maxHeight),\n\t\"--table-overflow\": type === \"native\" ? \"auto\" : void 0\n} }));\nconst TableScrollContainer = factory((_props) => {\n\tconst props = useProps(\"TableScrollContainer\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, children, minWidth, maxHeight, type, scrollAreaProps, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"TableScrollContainer\",\n\t\tclasses: Table_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"scrollContainer\"\n\t});\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\tcomponent: type === \"scrollarea\" ? ScrollArea : \"div\",\n\t\t...type === \"scrollarea\" ? maxHeight ? {\n\t\t\toffsetScrollbars: \"xy\",\n\t\t\t...scrollAreaProps\n\t\t} : {\n\t\t\toffsetScrollbars: \"x\",\n\t\t\t...scrollAreaProps\n\t\t} : {},\n\t\t...getStyles(\"scrollContainer\"),\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(\"div\", {\n\t\t\t...getStyles(\"scrollContainerInner\"),\n\t\t\tchildren\n\t\t})\n\t});\n});\nTableScrollContainer.classes = Table_module_default;\nTableScrollContainer.varsResolver = varsResolver;\nTableScrollContainer.displayName = \"@mantine/core/TableScrollContainer\";\nexport { TableScrollContainer };\n\n//# sourceMappingURL=TableScrollContainer.mjs.map","\"use client\";\nimport { rem } from \"../../core/utils/units-converters/rem.mjs\";\nimport { getSpacing } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { TableProvider } from \"./Table.context.mjs\";\nimport Table_module_default from \"./Table.module.mjs\";\nimport { TableCaption, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr } from \"./Table.components.mjs\";\nimport { TableDataRenderer } from \"./TableDataRenderer.mjs\";\nimport { TableScrollContainer } from \"./TableScrollContainer.mjs\";\nimport { useMemo } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Table/Table.tsx\nconst defaultProps = {\n\twithRowBorders: true,\n\tverticalSpacing: 7\n};\nconst varsResolver = createVarsResolver((theme, { layout, captionSide, horizontalSpacing, verticalSpacing, borderColor, stripedColor, highlightOnHoverColor, striped, highlightOnHover, stickyHeaderOffset, stickyHeader }) => ({ table: {\n\t\"--table-layout\": layout,\n\t\"--table-caption-side\": captionSide,\n\t\"--table-horizontal-spacing\": getSpacing(horizontalSpacing),\n\t\"--table-vertical-spacing\": getSpacing(verticalSpacing),\n\t\"--table-border-color\": borderColor ? getThemeColor(borderColor, theme) : void 0,\n\t\"--table-striped-color\": striped && stripedColor ? getThemeColor(stripedColor, theme) : void 0,\n\t\"--table-highlight-on-hover-color\": highlightOnHover && highlightOnHoverColor ? getThemeColor(highlightOnHoverColor, theme) : void 0,\n\t\"--table-sticky-header-offset\": stickyHeader ? rem(stickyHeaderOffset) : void 0\n} }));\nconst Table = factory((_props) => {\n\tconst props = useProps(\"Table\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, horizontalSpacing, verticalSpacing, captionSide, stripedColor, highlightOnHoverColor, striped, highlightOnHover, withColumnBorders, withRowBorders, withTableBorder, borderColor, layout, data, children, stickyHeader, stickyHeaderOffset, mod, tabularNums, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Table\",\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclasses: Table_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\trootSelector: \"table\",\n\t\tvars,\n\t\tvarsResolver,\n\t\tstable: true\n\t});\n\tconst stripedValue = striped === true ? \"odd\" : striped || void 0;\n\tconst resolvedCaptionSide = captionSide || \"bottom\";\n\tconst contextValue = useMemo(() => ({\n\t\tgetStyles,\n\t\tstickyHeader,\n\t\tstriped: stripedValue,\n\t\thighlightOnHover,\n\t\twithColumnBorders,\n\t\twithRowBorders,\n\t\tcaptionSide: resolvedCaptionSide\n\t}), [\n\t\tgetStyles,\n\t\tstickyHeader,\n\t\tstripedValue,\n\t\thighlightOnHover,\n\t\twithColumnBorders,\n\t\twithRowBorders,\n\t\tresolvedCaptionSide\n\t]);\n\treturn /* @__PURE__ */ jsx(TableProvider, {\n\t\tvalue: contextValue,\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\tcomponent: \"table\",\n\t\t\tmod: [{\n\t\t\t\twithTableBorder,\n\t\t\t\ttabularNums\n\t\t\t}, mod],\n\t\t\t...getStyles(\"table\"),\n\t\t\t...others,\n\t\t\tchildren: children || !!data && /* @__PURE__ */ jsx(TableDataRenderer, { data })\n\t\t})\n\t});\n});\nTable.classes = Table_module_default;\nTable.varsResolver = varsResolver;\nTable.displayName = \"@mantine/core/Table\";\nTable.Td = TableTd;\nTable.Th = TableTh;\nTable.Tr = TableTr;\nTable.Thead = TableThead;\nTable.Tbody = TableTbody;\nTable.Tfoot = TableTfoot;\nTable.Caption = TableCaption;\nTable.ScrollContainer = TableScrollContainer;\nTable.DataRenderer = TableDataRenderer;\nexport { Table };\n\n//# sourceMappingURL=Table.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"copy\",\n  size: 24,\n  node: [\n    [\"rect\", { width: \"14\", height: \"14\", x: \"8\", y: \"8\", rx: \"2\", ry: \"2\", key: \"17jyea\" }],\n    [\"path\", { d: \"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\", key: \"zix9uf\" }]\n  ]\n};\n__iconData.node;\nconst Copy = createLucideIcon(__iconData);\n\nexport { __iconData, Copy as default };\n//# sourceMappingURL=copy.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"circle-check\",\n  size: 24,\n  node: [\n    [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n    [\"path\", { d: \"m16 9-5.5 5.5L8 12\", key: \"xofnsj\" }]\n  ],\n  aliases: [\"check-circle-2\"]\n};\n__iconData.node;\nconst CircleCheck = createLucideIcon(__iconData);\n\nexport { __iconData, CircleCheck as default };\n//# sourceMappingURL=circle-check.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"truck\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\", key: \"wrbu53\" }],\n    [\"path\", { d: \"M15 18H9\", key: \"1lyqi6\" }],\n    [\n      \"path\",\n      {\n        d: \"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14\",\n        key: \"lysw3i\"\n      }\n    ],\n    [\"circle\", { cx: \"17\", cy: \"18\", r: \"2\", key: \"332jqn\" }],\n    [\"circle\", { cx: \"7\", cy: \"18\", r: \"2\", key: \"19iecd\" }]\n  ]\n};\n__iconData.node;\nconst Truck = createLucideIcon(__iconData);\n\nexport { __iconData, Truck as default };\n//# sourceMappingURL=truck.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"send\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\",\n        key: \"1ffxy3\"\n      }\n    ],\n    [\"path\", { d: \"m21.854 2.147-10.94 10.939\", key: \"12cjpa\" }]\n  ]\n};\n__iconData.node;\nconst Send = createLucideIcon(__iconData);\n\nexport { __iconData, Send as default };\n//# sourceMappingURL=send.mjs.map\n","import React, { useEffect, useState } from \"react\";\nimport {\n  ActionIcon,\n  Alert,\n  Badge,\n  Button,\n  CopyButton,\n  Group,\n  Image,\n  Loader,\n  Modal,\n  Paper,\n  Stack,\n  Table,\n  Text,\n  Tooltip,\n} from \"@mantine/core\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Check, CircleCheck, Copy, Send, Truck } from \"lucide-react\";\nimport { api, ME } from \"./api\";\nimport { t } from \"./i18n\";\n\nexport function CopyValue({ value }) {\n  return (\n    <CopyButton value={String(value)} timeout={1500}>\n      {({ copied, copy }) => (\n        <Tooltip label={copied ? t(\"Copied\") : t(\"Copy\")}>\n          <ActionIcon variant=\"subtle\" color={copied ? \"fmGreen\" : \"gray\"} onClick={copy} aria-label={t(\"Copy\")}>\n            {copied ? <Check size={16} /> : <Copy size={16} />}\n          </ActionIcon>\n        </Tooltip>\n      )}\n    </CopyButton>\n  );\n}\n\nconst WATCH_MS = 15 * 60 * 1000;\n\n/** The payment details, taken when the dialog opened: they stay while the dialog is open,\n * also after the payment arrives. Watches for a forwarding paired after it opened: the\n * first answer is the server's cursor, later ones say whether one came after it. Stops on\n * a lost session or access, and after 15 minutes. */\nfunction PaymentModal({ firm, onClose }) {\n  const queryClient = useQueryClient();\n  const [opened] = useState(() => ({\n    at: Date.now(),\n    payment: firm.forwarding.payment,\n    target: firm.forwarding.target,\n    id: firm.id,\n  }));\n  const [cursor, setCursor] = useState(null);\n  const [expired, setExpired] = useState(false);\n  useEffect(() => {\n    const timer = setTimeout(() => setExpired(true), WATCH_MS);\n    return () => clearTimeout(timer);\n  }, []);\n  const status = useQuery({\n    queryKey: [\"forwarding-paid\", opened.id, opened.at, cursor],\n    queryFn: () =>\n      api(`/api/firms/${opened.id}/forwarding-paid/${cursor === null ? \"\" : `?after=${cursor}`}`),\n    // Every 4 s while the page is visible, until it arrives\n    refetchInterval: (query) => {\n      const error = query.state.error;\n      if (expired || (error && (error.status === 401 || error.status === 404))) return false;\n      // No cursor yet: ask again only after a failed first call\n      if (cursor === null) return error ? 4000 : false;\n      return query.state.data && query.state.data.paid ? false : 4000;\n    },\n    retry: false,\n  });\n  useEffect(() => {\n    if (cursor === null && status.data && typeof status.data.cursor === \"number\") setCursor(status.data.cursor);\n  }, [cursor, status.data]);\n  const paid = Boolean(cursor !== null && status.data && status.data.paid);\n  const lost = Boolean(status.error && (status.error.status === 401 || status.error.status === 404));\n  useEffect(() => {\n    if (paid || lost) queryClient.invalidateQueries({ queryKey: ME });\n  }, [paid, lost, queryClient]);\n  if (lost) {\n    return (\n      <Modal opened onClose={onClose} title={<Text fw={600}>{t(\"Pay for the forwarding\")}</Text>} centered>\n        <Stack gap=\"md\">\n          <Alert color=\"fmAmber\" variant=\"light\">\n            {t(\"This company is no longer available here. Please reload the page.\")}\n          </Alert>\n          <Button onClick={onClose}>{t(\"Close\")}</Button>\n        </Stack>\n      </Modal>\n    );\n  }\n  const { payment, target } = opened;\n  return (\n    <Modal opened onClose={onClose} title={<Text fw={600}>{t(\"Pay for the forwarding\")}</Text>} centered>\n      {paid ? (\n        <Stack gap=\"md\" align=\"center\" py=\"md\">\n          <CircleCheck size={48} color=\"var(--mantine-color-fmGreen-7)\" />\n          <Text fw={600} size=\"lg\" ta=\"center\">\n            {t(\"The payment has arrived.\")}\n          </Text>\n          <Text ta=\"center\">{t(\"We are getting your mail ready to send. You will see it here.\")}</Text>\n          <Button onClick={onClose}>{t(\"Close\")}</Button>\n        </Stack>\n      ) : (\n        <Stack gap=\"md\">\n          <Group align=\"flex-start\" wrap=\"wrap\" gap=\"lg\">\n            <Image\n              src={`/api/firms/${opened.id}/forwarding-qr.png`}\n              alt={t(\"QR payment\")}\n              w={160}\n              h={160}\n              fit=\"contain\"\n            />\n            <Table withRowBorders={false} verticalSpacing={4} style={{ flex: 1, minWidth: 200 }}>\n              <Table.Tbody>\n                <Table.Tr>\n                  <Table.Td c=\"dimmed\">{t(\"Amount\")}</Table.Td>\n                  <Table.Td fw={600}>{t(\"{{amount}} Kč incl. VAT\", { amount: payment.amount })}</Table.Td>\n                  <Table.Td />\n                </Table.Tr>\n                <Table.Tr>\n                  <Table.Td c=\"dimmed\">{t(\"Account\")}</Table.Td>\n                  <Table.Td fw={600}>{payment.account}</Table.Td>\n                  <Table.Td>\n                    <CopyValue value={payment.account} />\n                  </Table.Td>\n                </Table.Tr>\n                <Table.Tr>\n                  <Table.Td c=\"dimmed\">{t(\"Variable symbol\")}</Table.Td>\n                  <Table.Td fw={600}>{payment.vs}</Table.Td>\n                  <Table.Td>\n                    <CopyValue value={payment.vs} />\n                  </Table.Td>\n                </Table.Tr>\n              </Table.Tbody>\n            </Table>\n          </Group>\n          {target && (\n            <Text size=\"sm\">\n              {target.kind === \"box\"\n                ? t(\"We will send all mail waiting with us to the DPD box {{name}}, {{address}}.\", target)\n                : t(\"We will send all mail waiting with us to {{address}}.\", target)}\n            </Text>\n          )}\n          {expired ? (\n            <Alert color=\"gray\" variant=\"light\">\n              <Text size=\"sm\">\n                {t(\"We have stopped watching for the payment here. Once it arrives, you will see it in Mail.\")}\n              </Text>\n            </Alert>\n          ) : status.isError ? (\n            <Alert color=\"fmAmber\" variant=\"light\">\n              <Text size=\"sm\">{status.error.message}</Text>\n            </Alert>\n          ) : (\n            <Alert color=\"firmin\" variant=\"light\">\n              <Group gap=\"xs\" wrap=\"nowrap\">\n                <Loader size=\"xs\" />\n                <Text size=\"sm\">{t(\"We are waiting for the payment. You can close this window; you will see it here.\")}</Text>\n              </Group>\n            </Alert>\n          )}\n          <Button onClick={onClose}>{t(\"Close\")}</Button>\n        </Stack>\n      )}\n    </Modal>\n  );\n}\n\n/** The bar at the top of Mail: where the mail goes and the one main action. */\nexport default function ForwardingBar({ firm, openContact }) {\n  const [paying, setPaying] = useState(false);\n  const bar = firm.forwarding;\n  if (bar.kind === \"member\") {\n    return (\n      <Paper withBorder p=\"md\" mb=\"md\">\n        <Text>\n          {t(\n            \"The head company of your group, {{head}}, keeps the mail of the whole group in its folder and arranges its forwarding.\",\n            { head: bar.head }\n          )}\n        </Text>\n        <Button\n          variant=\"subtle\"\n          px={0}\n          mt=\"xs\"\n          onClick={() =>\n            openContact({\n              firm: firm.id,\n              message: t(\"Please take {{name}} out of the group with {{head}}.\", { name: firm.name, head: bar.head }),\n            })\n          }\n        >\n          {t(\"Ask to be taken out of the group\")}\n        </Button>\n      </Paper>\n    );\n  }\n  if (!bar.waiting && !bar.queued) return null;\n  const target = bar.target;\n  return (\n    <Paper withBorder p=\"md\" mb=\"md\" className=\"pt-forwarding\">\n      <Group justify=\"space-between\" align=\"center\" wrap=\"wrap\" gap=\"md\">\n        <Stack gap={4} style={{ flex: 1, minWidth: 240 }}>\n          <Group gap=\"xs\">\n            <Text fw={600} size=\"lg\">\n              {bar.group_size > 1\n                ? t(\"Uncollected mail of the whole group: {{n}}\", { n: bar.waiting })\n                : t(\"Uncollected mail: {{n}}\", { n: bar.waiting })}\n            </Text>\n            {bar.queued && (\n              <Badge color=\"fmGreen\" variant=\"light\" leftSection={<Truck size={14} />}>\n                {t(\"Queued for forwarding\")}\n              </Badge>\n            )}\n          </Group>\n          {target && (\n            <Text size=\"sm\" c=\"dimmed\">\n              {target.kind === \"box\"\n                ? t(\"Forwarding to the DPD box {{name}}, {{address}} (preferred box)\", target)\n                : t(\"Forwarding to {{address}}\", target)}\n            </Text>\n          )}\n          {bar.individual_price && !bar.queued && (\n            <Text size=\"sm\" c=\"dimmed\">\n              {t(\"We will confirm the price of sending it separately.\")}\n            </Text>\n          )}\n          {bar.regular && (\n            <Text size=\"sm\" c=\"dimmed\">\n              {bar.regular === \"weekly\"\n                ? t(\"We forward your mail every week.\")\n                : t(\"We forward your mail every month.\")}\n            </Text>\n          )}\n        </Stack>\n        {bar.can_pay && (\n          <Button leftSection={<Send size={18} />} size=\"md\" onClick={() => setPaying(true)}>\n            {t(\"Forward everything · {{amount}} Kč\", { amount: bar.payment.amount })}\n          </Button>\n        )}\n        {!bar.can_pay && !bar.queued && (\n          <Button\n            variant=\"light\"\n            onClick={() =>\n              openContact({\n                firm: firm.id,\n                message: target ? t(\"Please forward all my mail.\") : t(\"Please forward my mail to this address:\"),\n              })\n            }\n          >\n            {target ? t(\"Ask for forwarding\") : t(\"Tell us where to send it\")}\n          </Button>\n        )}\n      </Group>\n      {paying && <PaymentModal firm={firm} onClose={() => setPaying(false)} />}\n    </Paper>\n  );\n}\n","import React, { useEffect, useMemo, useState } from \"react\";\nimport {\n  ActionIcon,\n  Alert,\n  Anchor,\n  Badge,\n  Button,\n  Center,\n  Group,\n  Loader,\n  Modal,\n  Pagination,\n  Paper,\n  Stack,\n  Tabs,\n  Text,\n  Tooltip,\n} from \"@mantine/core\";\nimport { notifications } from \"@mantine/notifications\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Eye, FileScan, Inbox, Shredder } from \"lucide-react\";\nimport { api, formatDate, ME } from \"./api\";\nimport { t } from \"./i18n\";\nimport ForwardingBar from \"./Forwarding\";\n\n// From the 4th scan request of a month the scanning service is offered (scans stay free)\nconst SCAN_OFFER_FROM = 4;\nconst ICON = { size: 18, strokeWidth: 1.75 };\n\nfunction statusText(item) {\n  const date = formatDate(item.date_done);\n  switch (item.state) {\n    case \"collected\":\n      return t(\"Collected {{date}}\", { date });\n    case \"sent\":\n      return t(\"Sent {{date}}\", { date });\n    case \"sending\":\n      return t(\"Being prepared for sending\");\n    case \"shredded\":\n      return t(\"Shredded {{date}}\", { date });\n    case \"done\":\n      return t(\"Done {{date}}\", { date });\n    default:\n      return \"\";\n  }\n}\n\nfunction Flags({ item }) {\n  return (\n    <Group gap={6}>\n      {item.registered && (\n        <Badge variant=\"light\" color=\"firmin\">\n          {t(\"registered\")}\n        </Badge>\n      )}\n      {item.large && (\n        <Badge variant=\"light\" color=\"gray\">\n          {t(\"large\")}\n        </Badge>\n      )}\n      {item.scan_requested && (\n        <Badge variant=\"light\" color=\"fmGreen\">\n          {t(\"scan requested\")}\n        </Badge>\n      )}\n      {item.shred_requested && (\n        <Badge variant=\"light\" color=\"fmRed\">\n          {t(\"to be shredded\")}\n        </Badge>\n      )}\n      {item.shred_planned && !item.shred_requested && (\n        <Badge variant=\"light\" color=\"fmRed\">\n          {t(\"shredding on {{date}}\", { date: formatDate(item.shred_planned) })}\n        </Badge>\n      )}\n    </Group>\n  );\n}\n\n/** A row action as in the staff mail table: an icon with a tooltip; \"active\" shows a\n * request that is on (a click cancels it). */\nfunction Action({ label, icon, onClick, href, active, color = \"gray\" }) {\n  return (\n    <Tooltip label={label}>\n      <ActionIcon\n        size=\"lg\"\n        variant={active ? \"light\" : \"subtle\"}\n        color={active ? color : \"gray\"}\n        aria-label={label}\n        aria-pressed={active === undefined ? undefined : active}\n        onClick={onClick}\n        component={href ? \"a\" : \"button\"}\n        href={href}\n        target={href ? \"_blank\" : undefined}\n        rel={href ? \"noopener\" : undefined}\n      >\n        {icon}\n      </ActionIcon>\n    </Tooltip>\n  );\n}\n\nfunction MailRow({ item, showFirm, act }) {\n  const waiting = item.state === \"waiting\";\n  return (\n    <div className=\"pt-row\" data-state={item.state}>\n      <div className=\"pt-row-main\">\n        <Group gap=\"xs\" wrap=\"wrap\">\n          <Text fw={600} className=\"pt-sender\">\n            {item.sender}\n          </Text>\n          <Flags item={item} />\n        </Group>\n        <Text size=\"sm\" c=\"dimmed\">\n          {t(\"Received {{date}}\", { date: formatDate(item.date) })}\n          {showFirm ? ` · ${item.firm_name}` : \"\"}\n          {!waiting ? ` · ${statusText(item)}` : \"\"}\n          {item.tracking_url ? \" · \" : \"\"}\n          {item.tracking_url && (\n            <Anchor href={item.tracking_url} target=\"_blank\" rel=\"noopener noreferrer\" size=\"sm\">\n              {t(\"Track\")}\n            </Anchor>\n          )}\n        </Text>\n      </div>\n      <Group gap={4} className=\"pt-row-actions\" wrap=\"nowrap\">\n        {item.has_scan && (\n          <Action label={t(\"Open the scan\")} icon={<Eye {...ICON} />} href={`/api/mail/${item.id}/scan/`} />\n        )}\n        {waiting && !item.has_scan && (\n          <Action\n            label={item.scan_requested ? t(\"Cancel the scan request\") : t(\"Request a scan\")}\n            icon={<FileScan {...ICON} />}\n            active={item.scan_requested}\n            color=\"fmGreen\"\n            onClick={() => act(\"scan\", item, !item.scan_requested)}\n          />\n        )}\n        {waiting && (\n          <Action\n            label={item.shred_requested ? t(\"Cancel the shredding\") : t(\"Have it shredded\")}\n            icon={<Shredder {...ICON} />}\n            active={item.shred_requested}\n            color=\"fmRed\"\n            onClick={() => act(\"shred\", item, !item.shred_requested)}\n          />\n        )}\n      </Group>\n    </div>\n  );\n}\n\nexport default function MailPage({ firms, current, openContact }) {\n  const queryClient = useQueryClient();\n  // A notification about sent mail opens \"/?stav=vyzvednute\"\n  const [state, setState] = useState(() =>\n    typeof window !== \"undefined\" && new URLSearchParams(window.location.search).get(\"stav\") === \"vyzvednute\"\n      ? \"done\"\n      : \"waiting\"\n  );\n  const [page, setPage] = useState(1);\n  const [confirm, setConfirm] = useState(null);\n  const [offer, setOffer] = useState(0);\n  const [offered, setOffered] = useState(false);\n  const firm = current === \"all\" ? null : firms.find((f) => f.id === current);\n  const waitingTotal = firm ? firm.waiting : firms.reduce((sum, f) => sum + f.waiting, 0);\n\n  useEffect(() => {\n    setPage(1);\n    setConfirm(null);\n  }, [current, state]);\n\n  const mail = useQuery({\n    queryKey: [\"mail\", current, state, page],\n    queryFn: () => api(`/api/mail/?firm=${current}&state=${state}&page=${page}`),\n    // Keep the rows only while paging: rows of another company or tab must never stay\n    // clickable under the new choice\n    placeholderData: (previous, previousQuery) =>\n      previousQuery && previousQuery.queryKey[1] === current && previousQuery.queryKey[2] === state\n        ? previous\n        : undefined,\n  });\n  const items = useMemo(() => (mail.data ? mail.data.items : []), [mail.data]);\n\n  async function run(action, item, on) {\n    try {\n      const answer = await api(\n        `/api/mail/${item.id}/${action === \"scan\" ? \"scan-request\" : \"shred-request\"}/`,\n        { method: \"POST\", body: { on } }\n      );\n      if (action === \"scan\" && on && answer.month_requests >= SCAN_OFFER_FROM && !offered) {\n        setOffer(answer.month_requests);\n        setOffered(true);\n      }\n    } catch (e) {\n      notifications.show({ color: \"fmRed\", message: e.message });\n    }\n    queryClient.invalidateQueries({ queryKey: [\"mail\"] });\n    queryClient.invalidateQueries({ queryKey: ME });\n  }\n\n  function act(action, item, on) {\n    if (action === \"shred\" && on) {\n      setConfirm(item);\n      return;\n    }\n    run(action, item, on);\n  }\n\n  const planned = items.filter((i) => i.shred_planned && i.state === \"waiting\");\n\n  return (\n    <div>\n      {firm && <ForwardingBar firm={firm} openContact={openContact} />}\n      {!firm && firms.some((f) => f.forwarding.kind === \"own\" && f.forwarding.can_pay && f.waiting) && (\n        <Text size=\"sm\" c=\"dimmed\" mb=\"md\">\n          {t(\"Choose a company above to have its mail forwarded.\")}\n        </Text>\n      )}\n      <Tabs value={state} onChange={(value) => value && setState(value)} mb=\"md\" className=\"pt-tabs\">\n        <Tabs.List>\n          <Tabs.Tab value=\"waiting\" rightSection={<span className=\"pt-tab-count\">{waitingTotal}</span>}>\n            {t(\"Not collected\")}\n          </Tabs.Tab>\n          <Tabs.Tab value=\"done\">{t(\"Collected\")}</Tabs.Tab>\n          <Tabs.Tab value=\"all\">{t(\"All\")}</Tabs.Tab>\n        </Tabs.List>\n      </Tabs>\n      {planned.length > 0 && (\n        <Alert color=\"fmRed\" variant=\"light\" mb=\"sm\">\n          {t(\n            \"Some items are planned for shredding, as we told you by email. If you want to keep them, write to us before the shredding date.\"\n          )}{\" \"}\n          <Anchor component=\"button\" type=\"button\" onClick={() => openContact({ firm: firm && firm.id })}>\n            {t(\"Write to us\")}\n          </Anchor>\n        </Alert>\n      )}\n      {mail.isPending ? (\n        <Center py=\"xl\">\n          <Loader />\n        </Center>\n      ) : mail.isError ? (\n        <Alert color=\"fmRed\">{mail.error.message}</Alert>\n      ) : items.length === 0 ? (\n        <Paper withBorder p=\"xl\">\n          <Stack align=\"center\" gap=\"xs\">\n            <Inbox size={32} color=\"var(--mantine-color-dimmed)\" />\n            <Text fw={600}>\n              {state === \"waiting\" ? t(\"You have no uncollected mail.\") : t(\"No mail here.\")}\n            </Text>\n          </Stack>\n        </Paper>\n      ) : (\n        <Paper withBorder className=\"pt-list\">\n          {items.map((item) => (\n            <MailRow key={item.id} item={item} showFirm={!firm && firms.length > 1} act={act} />\n          ))}\n        </Paper>\n      )}\n      {mail.data && mail.data.pages > 1 && (\n        <Group justify=\"center\" mt=\"md\">\n          <Pagination value={page} onChange={setPage} total={mail.data.pages} />\n        </Group>\n      )}\n\n      <Modal\n        opened={confirm !== null}\n        onClose={() => setConfirm(null)}\n        title={<Text fw={600}>{t(\"Have it shredded?\")}</Text>}\n        centered\n      >\n        <Stack gap=\"md\">\n          {confirm && (\n            <Text size=\"sm\" fw={500}>\n              {t(\"{{sender}}, received {{date}}\", { sender: confirm.sender, date: formatDate(confirm.date) })}\n              {\" · \"}\n              {confirm.firm_name}\n            </Text>\n          )}\n          <Text>{t(\"We will shred it at the next shredding. Until then you can cancel it here.\")}</Text>\n          <Group justify=\"flex-end\">\n            <Button variant=\"subtle\" color=\"gray\" onClick={() => setConfirm(null)}>\n              {t(\"Back\")}\n            </Button>\n            <Button\n              color=\"fmRed\"\n              leftSection={<Shredder size={16} />}\n              onClick={() => {\n                const item = confirm;\n                setConfirm(null);\n                run(\"shred\", item, true);\n              }}\n            >\n              {t(\"Shred\")}\n            </Button>\n          </Group>\n        </Stack>\n      </Modal>\n\n      <Modal opened={offer > 0} onClose={() => setOffer(0)} title={<Text fw={600}>{t(\"Scanning service\")}</Text>} centered>\n        <Stack gap=\"md\">\n          <Text>\n            {t(\n              \"This is your scan request number {{n}} this month. Scans on request stay free. If you would like all your mail scanned, we offer a scanning service.\",\n              { n: offer }\n            )}\n          </Text>\n          <Group justify=\"flex-end\">\n            <Button variant=\"subtle\" color=\"gray\" onClick={() => setOffer(0)}>\n              {t(\"Close\")}\n            </Button>\n            <Button\n              onClick={() => {\n                setOffer(0);\n                openContact({ firm: firm && firm.id, message: t(\"I am interested in the scanning service.\") });\n              }}\n            >\n              {t(\"I am interested\")}\n            </Button>\n          </Group>\n        </Stack>\n      </Modal>\n    </div>\n  );\n}\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"file-text\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\",\n        key: \"1oefj6\"\n      }\n    ],\n    [\"path\", { d: \"M14 2v5a1 1 0 0 0 1 1h5\", key: \"wfsgrz\" }],\n    [\"path\", { d: \"M10 9H8\", key: \"b1mrlr\" }],\n    [\"path\", { d: \"M16 13H8\", key: \"t4e002\" }],\n    [\"path\", { d: \"M16 17H8\", key: \"z1uh3a\" }]\n  ]\n};\n__iconData.node;\nconst FileText = createLucideIcon(__iconData);\n\nexport { __iconData, FileText as default };\n//# sourceMappingURL=file-text.mjs.map\n","import React, { useEffect } from \"react\";\nimport { Alert, Anchor, Badge, Button, Center, Group, Image, Loader, Paper, Stack, Table, Text, Title } from \"@mantine/core\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { CalendarClock, CircleCheck, FileText } from \"lucide-react\";\nimport { api, formatDate, ME } from \"./api\";\nimport { t } from \"./i18n\";\nimport { CopyValue } from \"./Forwarding\";\n\nfunction Billing({ billing, firm, openContact }) {\n  return (\n    <Group justify=\"space-between\" align=\"flex-start\" wrap=\"wrap\" gap=\"xs\">\n      <div>\n        <Text size=\"sm\" c=\"dimmed\">\n          {t(\"We bill\")}\n        </Text>\n        <Text fw={600}>\n          {billing.self ? t(\"your company\") : billing.name || t(\"Company ID {{ico}}\", { ico: billing.ico })}\n        </Text>\n        {!billing.self && billing.name && (\n          <Text size=\"sm\" c=\"dimmed\">\n            {t(\"Company ID {{ico}}\", { ico: billing.ico })}\n          </Text>\n        )}\n      </div>\n      <Anchor\n        component=\"button\"\n        type=\"button\"\n        size=\"sm\"\n        onClick={() =>\n          openContact({ firm: firm.id, message: t(\"Please bill our renewal to another company:\") })\n        }\n      >\n        {t(\"Ask for a change\")}\n      </Anchor>\n    </Group>\n  );\n}\n\n/** Watches the extension to pay every 10 s while the page is visible. A change (a part\n * payment, paid, no longer offered) reloads the renewal list, so the card, its amount and\n * its QR are always the server's; a lost session or access stops watching. */\nfunction usePaid(pay) {\n  const queryClient = useQueryClient();\n  const status = useQuery({\n    queryKey: [\"renewal-status\", pay.extension],\n    queryFn: () => api(`/api/renewal/${pay.extension}/status/`),\n    refetchInterval: (query) => {\n      const data = query.state.data;\n      const error = query.state.error;\n      if (error && (error.status === 401 || error.status === 404)) return false;\n      return data && data.state !== \"open\" ? false : 10000;\n    },\n    retry: false,\n  });\n  const data = status.data;\n  const paid = Boolean(data && data.state === \"paid\");\n  // Paid: the card says so until the page is left (the menu badge goes at once)\n  const changed = Boolean(data && !paid && (data.state !== \"open\" || data.amount !== pay.amount));\n  const lost = Boolean(status.error && (status.error.status === 401 || status.error.status === 404));\n  useEffect(() => {\n    if (changed || lost) queryClient.invalidateQueries({ queryKey: [\"renewal\"] });\n    if (changed || lost || paid) queryClient.invalidateQueries({ queryKey: ME });\n  }, [changed, lost, paid, queryClient]);\n  return paid ? data : null;\n}\n\nfunction PaymentCard({ item, openContact }) {\n  const pay = item.payment;\n  const paid = usePaid(pay);\n  if (paid) {\n    return (\n      <Alert color=\"fmGreen\" variant=\"light\" icon={<CircleCheck size={18} />}>\n        <Text fw={600}>{t(\"The payment has arrived.\")}</Text>\n        {paid.seat_until ? (\n          <Text size=\"sm\">{t(\"Your office runs until {{date}}.\", { date: formatDate(paid.seat_until) })}</Text>\n        ) : (\n          <Text size=\"sm\">{t(\"We will let you know by email what happens with your office.\")}</Text>\n        )}\n      </Alert>\n    );\n  }\n  const terminated = pay.kind === \"termination\";\n  return (\n    <Paper withBorder p=\"lg\" className={pay.overdue ? \"pt-card-alert\" : \"pt-card-accent\"}>\n      <Stack gap=\"md\">\n        <Group justify=\"space-between\" wrap=\"wrap\" gap=\"xs\">\n          <Title order={3} size=\"h4\">\n            {terminated\n              ? t(\"Unpaid renewal\")\n              : t(\"Renewal for {{months}} months\", { months: pay.months })}\n          </Title>\n          {pay.overdue ? (\n            <Badge color=\"fmRed\" variant=\"filled\">\n              {t(\"overdue\")}\n            </Badge>\n          ) : (\n            <Badge color=\"fmAmber\" variant=\"light\">\n              {t(\"to pay\")}\n            </Badge>\n          )}\n        </Group>\n        {terminated && (\n          <Text size=\"sm\">\n            {t(\n              \"Your contract is terminated because the renewal stayed unpaid. If you want to keep the office, pay the whole amount.\"\n            )}\n          </Text>\n        )}\n        <Group align=\"flex-start\" gap=\"xl\" wrap=\"wrap\">\n          <Image src={`/api/renewal/${pay.extension}/qr.png?a=${pay.amount}`} alt={t(\"QR payment\")} w={150} h={150} fit=\"contain\" />\n          <Table withRowBorders={false} verticalSpacing={4} style={{ flex: 1, minWidth: 240 }}>\n            <Table.Tbody>\n              <Table.Tr>\n                <Table.Td c=\"dimmed\">{pay.partly_paid ? t(\"Left to pay\") : t(\"Amount\")}</Table.Td>\n                <Table.Td fw={700}>{pay.amount_text}</Table.Td>\n                <Table.Td />\n              </Table.Tr>\n              <Table.Tr>\n                <Table.Td c=\"dimmed\">{t(\"Account\")}</Table.Td>\n                <Table.Td fw={600}>{pay.account}</Table.Td>\n                <Table.Td>\n                  <CopyValue value={pay.account} />\n                </Table.Td>\n              </Table.Tr>\n              <Table.Tr>\n                <Table.Td c=\"dimmed\">{t(\"Variable symbol\")}</Table.Td>\n                <Table.Td fw={600}>{pay.vs}</Table.Td>\n                <Table.Td>\n                  <CopyValue value={pay.vs} />\n                </Table.Td>\n              </Table.Tr>\n              {pay.due && (\n                <Table.Tr>\n                  <Table.Td c=\"dimmed\">{t(\"Due\")}</Table.Td>\n                  <Table.Td fw={600} c={pay.overdue ? \"fmRed\" : undefined}>\n                    {formatDate(pay.due)}\n                  </Table.Td>\n                  <Table.Td />\n                </Table.Tr>\n              )}\n            </Table.Tbody>\n          </Table>\n        </Group>\n        {pay.partly_paid && (\n          <Text size=\"sm\" c=\"dimmed\">\n            {t(\"Part is paid already. The QR above is for the rest; the QR in the PDF is for the whole amount.\")}\n          </Text>\n        )}\n        <Group justify=\"space-between\" wrap=\"wrap\">\n          {pay.has_pdf ? (\n            <Button\n              component=\"a\"\n              href={`/api/renewal/${pay.extension}/proforma.pdf`}\n              target=\"_blank\"\n              rel=\"noopener\"\n              variant=\"light\"\n              leftSection={<FileText size={16} />}\n            >\n              {t(\"Proforma (PDF)\")}\n            </Button>\n          ) : (\n            <span />\n          )}\n          {!pay.billed_to.self && (\n            <Text size=\"sm\" c=\"dimmed\">\n              {t(\"Billed to {{name}}\", { name: pay.billed_to.name || pay.billed_to.ico })}\n            </Text>\n          )}\n        </Group>\n        <Text size=\"xs\" c=\"dimmed\">\n          {t(\"Once the payment arrives, you will see it here.\")}\n        </Text>\n      </Stack>\n    </Paper>\n  );\n}\n\nfunction FirmRenewal({ item, showName, openContact }) {\n  return (\n    <Stack gap=\"md\">\n      {showName && (\n        <Title order={2} size=\"h4\">\n          {item.name}\n        </Title>\n      )}\n      {item.payment && <PaymentCard item={item} openContact={openContact} />}\n      {!item.payment && item.payment_note && (\n        <Alert color=\"fmAmber\" variant=\"light\">\n          <Text size=\"sm\">\n            {item.payment_note === \"court\"\n              ? t(\"The termination has gone further, so a payment no longer settles it by itself. Please write to us.\")\n              : t(\"We cannot show what to pay here. Please write to us and we will send the details.\")}\n          </Text>\n          <Button\n            mt=\"sm\"\n            size=\"xs\"\n            variant=\"light\"\n            onClick={() =>\n              openContact({\n                firm: item.id,\n                message:\n                  item.payment_note === \"court\"\n                    ? t(\"I would like to settle the terminated contract.\")\n                    : t(\"Please send me the payment details for the renewal.\"),\n              })\n            }\n          >\n            {t(\"Write to us\")}\n          </Button>\n        </Alert>\n      )}\n      <Paper withBorder p=\"lg\">\n        <Stack gap=\"md\">\n          <Group gap=\"md\" wrap=\"nowrap\" align=\"flex-start\">\n            <CalendarClock size={22} className=\"pt-muted-icon\" />\n            <div>\n              <Text size=\"sm\" c=\"dimmed\">\n                {item.state === \"current\" ? t(\"Your office runs until\") : t(\"Your office ended\")}\n              </Text>\n              <Text fw={700} size=\"xl\">\n                {item.seat_until ? formatDate(item.seat_until) : \"–\"}\n              </Text>\n              {item.state === \"terminated\" && (\n                <Text size=\"sm\" c=\"dimmed\">\n                  {t(\"The contract is terminated.\")}\n                </Text>\n              )}\n              {item.renewal_sent_ahead && !item.payment && (\n                <Text size=\"sm\" c=\"dimmed\">\n                  {t(\n                    \"We send the renewal about 2 months ahead to the main email and the addresses chosen for renewals.\"\n                  )}\n                </Text>\n              )}\n            </div>\n          </Group>\n          <Billing billing={item.billing} firm={item} openContact={openContact} />\n        </Stack>\n      </Paper>\n    </Stack>\n  );\n}\n\nexport default function RenewalPage({ firms, current, openContact }) {\n  const data = useQuery({\n    queryKey: [\"renewal\", current],\n    queryFn: () => api(`/api/renewal/?firm=${current}`),\n  });\n  if (data.isPending)\n    return (\n      <Center py=\"xl\">\n        <Loader />\n      </Center>\n    );\n  if (data.isError) return <Alert color=\"fmRed\">{data.error.message}</Alert>;\n  const items = data.data.firms;\n  if (!items.length)\n    return (\n      <Paper withBorder p=\"xl\">\n        <Text>{t(\"There is nothing to renew for this company.\")}</Text>\n      </Paper>\n    );\n  return (\n    <Stack gap=\"xl\">\n      {items.map((item) => (\n        <FirmRenewal key={item.id} item={item} showName={items.length > 1} openContact={openContact} />\n      ))}\n    </Stack>\n  );\n}\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"lock\",\n  size: 24,\n  node: [\n    [\"rect\", { width: \"18\", height: \"11\", x: \"3\", y: \"11\", rx: \"2\", ry: \"2\", key: \"1w4ew1\" }],\n    [\"path\", { d: \"M7 11V7a5 5 0 0 1 10 0v4\", key: \"fwvmzm\" }]\n  ]\n};\n__iconData.node;\nconst Lock = createLucideIcon(__iconData);\n\nexport { __iconData, Lock as default };\n//# sourceMappingURL=lock.mjs.map\n","\"use client\";\nimport { createSafeContext } from \"../../core/utils/create-safe-context/create-safe-context.mjs\";\n// packages/@mantine/core/src/components/List/List.context.ts\nconst [ListProvider, useListContext] = createSafeContext(\"List component was not found in tree\");\nexport { ListProvider, useListContext };\n\n//# sourceMappingURL=List.context.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/List/List.module.css\nvar List_module_default = {\n\t\"root\": \"m_abbac491\",\n\t\"item\": \"m_abb6bec2\",\n\t\"itemWrapper\": \"m_75cd9f71\",\n\t\"itemIcon\": \"m_60f83e5b\"\n};\nexport { List_module_default as default };\n\n//# sourceMappingURL=List.module.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { useListContext } from \"../List.context.mjs\";\nimport List_module_default from \"../List.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/List/ListItem/ListItem.tsx\nconst ListItem = factory((_props) => {\n\tconst { classNames, className, style, styles, vars, icon, children, mod, ...others } = useProps(\"ListItem\", null, _props);\n\tconst ctx = useListContext();\n\tconst _icon = icon || ctx.icon;\n\tconst stylesApiProps = {\n\t\tclassNames,\n\t\tstyles\n\t};\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...ctx.getStyles(\"item\", {\n\t\t\t...stylesApiProps,\n\t\t\tclassName,\n\t\t\tstyle\n\t\t}),\n\t\tcomponent: \"li\",\n\t\tmod: [{\n\t\t\t\"with-icon\": !!_icon,\n\t\t\tcentered: ctx.center\n\t\t}, mod],\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsxs(\"div\", {\n\t\t\t...ctx.getStyles(\"itemWrapper\", stylesApiProps),\n\t\t\tchildren: [_icon && /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...ctx.getStyles(\"itemIcon\", stylesApiProps),\n\t\t\t\tchildren: _icon\n\t\t\t}), /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...ctx.getStyles(\"itemLabel\", stylesApiProps),\n\t\t\t\tchildren\n\t\t\t})]\n\t\t})\n\t});\n});\nListItem.classes = List_module_default;\nListItem.displayName = \"@mantine/core/ListItem\";\nexport { ListItem };\n\n//# sourceMappingURL=ListItem.mjs.map","\"use client\";\nimport { getFontSize, getLineHeight, getSpacing } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { ListProvider } from \"./List.context.mjs\";\nimport List_module_default from \"./List.module.mjs\";\nimport { ListItem } from \"./ListItem/ListItem.mjs\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/List/List.tsx\nconst defaultProps = { type: \"unordered\" };\nconst varsResolver = createVarsResolver((_, { size, spacing }) => ({ root: {\n\t\"--list-fz\": getFontSize(size),\n\t\"--list-lh\": getLineHeight(size),\n\t\"--list-spacing\": getSpacing(spacing)\n} }));\nconst List = factory((_props) => {\n\tconst props = useProps(\"List\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, children, type, withPadding, icon, spacing, center, listStyleType, mod, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"List\",\n\t\tclasses: List_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\treturn /* @__PURE__ */ jsx(ListProvider, {\n\t\tvalue: {\n\t\t\tcenter,\n\t\t\ticon,\n\t\t\tgetStyles\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Box, {\n\t\t\t...getStyles(\"root\", { style: { listStyleType } }),\n\t\t\tcomponent: type === \"unordered\" ? \"ul\" : \"ol\",\n\t\t\tmod: [{\n\t\t\t\t\"with-padding\": withPadding,\n\t\t\t\ttype: icon ? \"none\" : listStyleType\n\t\t\t}, mod],\n\t\t\t...others,\n\t\t\tchildren\n\t\t})\n\t});\n});\nList.classes = List_module_default;\nList.varsResolver = varsResolver;\nList.displayName = \"@mantine/core/List\";\nList.Item = ListItem;\nexport { List };\n\n//# sourceMappingURL=List.mjs.map","\"use client\";\n// packages/@mantine/core/src/utils/InlineInput/InlineInput.module.css\nvar InlineInput_module_default = {\n\t\"root\": \"m_5f75b09e\",\n\t\"body\": \"m_5f6e695e\",\n\t\"labelWrapper\": \"m_d3ea56bb\",\n\t\"label\": \"m_8ee546b8\",\n\t\"description\": \"m_328f68c0\",\n\t\"error\": \"m_8e8a99cc\"\n};\nexport { InlineInput_module_default as default };\n\n//# sourceMappingURL=InlineInput.module.mjs.map","\"use client\";\nimport { getFontSize, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { Input } from \"../../components/Input/Input.mjs\";\nimport InlineInput_module_default from \"./InlineInput.module.mjs\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/utils/InlineInput/InlineInput.tsx\nconst InlineInputClasses = InlineInput_module_default;\nfunction InlineInput({ __staticSelector, __stylesApiProps, className, classNames, styles, unstyled, children, label, description, id, disabled, error, size, labelPosition = \"left\", bodyElement = \"div\", labelElement = \"label\", variant, style, vars, mod, attributes, ...others }) {\n\tconst getStyles = useStyles({\n\t\tname: __staticSelector,\n\t\tprops: __stylesApiProps,\n\t\tclassName,\n\t\tstyle,\n\t\tclasses: InlineInput_module_default,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes\n\t});\n\tconst descriptionId = description ? `${id}-description` : void 0;\n\tconst errorId = error && typeof error !== \"boolean\" ? `${id}-error` : void 0;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"root\"),\n\t\t__vars: {\n\t\t\t\"--label-fz\": getFontSize(size),\n\t\t\t\"--label-lh\": getSize(size, \"label-lh\")\n\t\t},\n\t\tmod: [{ \"label-position\": labelPosition }, mod],\n\t\tvariant,\n\t\tsize,\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsxs(Box, {\n\t\t\tcomponent: bodyElement,\n\t\t\thtmlFor: bodyElement === \"label\" ? id : void 0,\n\t\t\t...getStyles(\"body\"),\n\t\t\tchildren: [children, /* @__PURE__ */ jsxs(\"div\", {\n\t\t\t\t...getStyles(\"labelWrapper\"),\n\t\t\t\t\"data-disabled\": disabled || void 0,\n\t\t\t\tchildren: [\n\t\t\t\t\tlabel && /* @__PURE__ */ jsx(Box, {\n\t\t\t\t\t\tcomponent: labelElement,\n\t\t\t\t\t\thtmlFor: labelElement === \"label\" ? id : void 0,\n\t\t\t\t\t\t...getStyles(\"label\"),\n\t\t\t\t\t\t\"data-disabled\": disabled || void 0,\n\t\t\t\t\t\tchildren: label\n\t\t\t\t\t}),\n\t\t\t\t\tdescription && /* @__PURE__ */ jsx(Input.Description, {\n\t\t\t\t\t\tid: descriptionId,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\t__inheritStyles: false,\n\t\t\t\t\t\t...getStyles(\"description\"),\n\t\t\t\t\t\tchildren: description\n\t\t\t\t\t}),\n\t\t\t\t\terror && typeof error !== \"boolean\" && /* @__PURE__ */ jsx(Input.Error, {\n\t\t\t\t\t\tid: errorId,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\t__inheritStyles: false,\n\t\t\t\t\t\t...getStyles(\"error\"),\n\t\t\t\t\t\tchildren: error\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t})]\n\t\t})\n\t});\n}\nInlineInput.displayName = \"@mantine/core/InlineInput\";\nexport { InlineInput, InlineInputClasses };\n\n//# sourceMappingURL=InlineInput.mjs.map","\"use client\";\nimport { InputWrapperContext } from \"../../components/Input/InputWrapper.context.mjs\";\nimport { use } from \"react\";\nimport { Fragment as Fragment$1, jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/utils/InputsGroupFieldset/InputsGroupFieldset.tsx\nfunction InputsGroupFieldset({ children, role }) {\n\tconst ctx = use(InputWrapperContext);\n\tif (!ctx) return /* @__PURE__ */ jsx(Fragment$1, { children });\n\treturn /* @__PURE__ */ jsx(\"div\", {\n\t\trole,\n\t\t\"aria-labelledby\": ctx.labelId,\n\t\t\"aria-describedby\": ctx.describedBy,\n\t\tchildren\n\t});\n}\nexport { InputsGroupFieldset };\n\n//# sourceMappingURL=InputsGroupFieldset.mjs.map","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { genericFactory } from \"../../../core/factory/factory.mjs\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport { InputsGroupFieldset } from \"../../../utils/InputsGroupFieldset/InputsGroupFieldset.mjs\";\nimport { createContext } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Switch/SwitchGroup/SwitchGroup.tsx\nconst SwitchGroupContext = createContext(null);\nconst defaultProps = { hiddenInputValuesSeparator: \",\" };\nconst SwitchGroup = genericFactory(((props) => {\n\tconst { value, defaultValue, onChange, size, wrapperProps, children, readOnly, name, hiddenInputValuesSeparator, hiddenInputProps, maxSelectedValues, disabled, ...others } = useProps(\"SwitchGroup\", defaultProps, props);\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: [],\n\t\tonChange\n\t});\n\tconst handleChange = (event) => {\n\t\tconst itemValue = event.currentTarget.value;\n\t\tif (readOnly) return;\n\t\tconst isCurrentlySelected = _value.includes(itemValue);\n\t\tif (!isCurrentlySelected && maxSelectedValues && _value.length >= maxSelectedValues) return;\n\t\tsetValue(isCurrentlySelected ? _value.filter((item) => item !== itemValue) : [..._value, itemValue]);\n\t};\n\tconst isDisabled = (switchValue) => {\n\t\tif (disabled) return true;\n\t\tif (!maxSelectedValues) return false;\n\t\tconst isCurrentlySelected = _value.includes(switchValue);\n\t\tconst hasReachedLimit = _value.length >= maxSelectedValues;\n\t\treturn !isCurrentlySelected && hasReachedLimit;\n\t};\n\tconst hiddenInputValue = _value.join(hiddenInputValuesSeparator);\n\treturn /* @__PURE__ */ jsx(SwitchGroupContext, {\n\t\tvalue: {\n\t\t\tvalue: _value,\n\t\t\tonChange: handleChange,\n\t\t\tsize,\n\t\t\tisDisabled\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsxs(Input.Wrapper, {\n\t\t\tsize,\n\t\t\t...wrapperProps,\n\t\t\t...others,\n\t\t\tlabelElement: \"div\",\n\t\t\t__staticSelector: \"SwitchGroup\",\n\t\t\tchildren: [/* @__PURE__ */ jsx(InputsGroupFieldset, {\n\t\t\t\trole: \"group\",\n\t\t\t\tchildren\n\t\t\t}), /* @__PURE__ */ jsx(\"input\", {\n\t\t\t\ttype: \"hidden\",\n\t\t\t\tname,\n\t\t\t\tvalue: hiddenInputValue,\n\t\t\t\t...hiddenInputProps\n\t\t\t})]\n\t\t})\n\t});\n}));\nSwitchGroup.classes = Input.Wrapper.classes;\nSwitchGroup.displayName = \"@mantine/core/SwitchGroup\";\nexport { SwitchGroup, SwitchGroupContext };\n\n//# sourceMappingURL=SwitchGroup.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Switch/Switch.module.css\nvar Switch_module_default = {\n\t\"root\": \"m_5f93f3bb\",\n\t\"input\": \"m_926b4011\",\n\t\"track\": \"m_9307d992\",\n\t\"thumb\": \"m_93039a1d\",\n\t\"trackLabel\": \"m_8277e082\"\n};\nexport { Switch_module_default as default };\n\n//# sourceMappingURL=Switch.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { extractStyleProps } from \"../../core/Box/style-props/extract-style-props/extract-style-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { InlineInput, InlineInputClasses } from \"../../utils/InlineInput/InlineInput.mjs\";\nimport { SwitchGroup, SwitchGroupContext } from \"./SwitchGroup/SwitchGroup.mjs\";\nimport Switch_module_default from \"./Switch.module.mjs\";\nimport { use } from \"react\";\nimport { useId as useId$1, useUncontrolled } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Switch/Switch.tsx\nconst defaultProps = {\n\tlabelPosition: \"right\",\n\twithThumbIndicator: true\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, size }) => ({ root: {\n\t\"--switch-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\"--switch-height\": getSize(size, \"switch-height\"),\n\t\"--switch-width\": getSize(size, \"switch-width\"),\n\t\"--switch-thumb-size\": getSize(size, \"switch-thumb-size\"),\n\t\"--switch-label-font-size\": getSize(size, \"switch-label-font-size\"),\n\t\"--switch-track-label-padding\": getSize(size, \"switch-track-label-padding\"),\n\t\"--switch-color\": color ? getThemeColor(color, theme) : void 0\n} }));\nconst Switch = factory((_props) => {\n\tconst props = useProps(\"Switch\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, color, label, offLabel, onLabel, id, size, radius, wrapperProps, thumbIcon, checked, defaultChecked, onChange, labelPosition, description, error, disabled, variant, rootRef, mod, withThumbIndicator, attributes, ...others } = props;\n\tconst ctx = use(SwitchGroupContext);\n\tconst _size = size || ctx?.size;\n\tconst getStyles = useStyles({\n\t\tname: \"Switch\",\n\t\tprops,\n\t\tclasses: Switch_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst uuid = useId$1(id);\n\tconst describedBy = [\n\t\tdescription ? `${uuid}-description` : void 0,\n\t\terror && typeof error !== \"boolean\" ? `${uuid}-error` : void 0,\n\t\trest[\"aria-describedby\"]\n\t].filter(Boolean).join(\" \") || void 0;\n\tconst withContextProps = {\n\t\tchecked: ctx?.value.includes(rest.value) ?? checked,\n\t\tonChange: (event) => {\n\t\t\tctx?.onChange(event);\n\t\t\tonChange?.(event);\n\t\t}\n\t};\n\tconst _disabled = disabled || ctx?.isDisabled?.(rest.value);\n\tconst [_checked, handleChange] = useUncontrolled({\n\t\tvalue: withContextProps.checked ?? checked,\n\t\tdefaultValue: defaultChecked,\n\t\tfinalValue: false\n\t});\n\treturn /* @__PURE__ */ jsxs(InlineInput, {\n\t\t...getStyles(\"root\"),\n\t\t__staticSelector: \"Switch\",\n\t\t__stylesApiProps: props,\n\t\tid: uuid,\n\t\tsize: _size,\n\t\tlabelPosition,\n\t\tlabel,\n\t\tdescription,\n\t\terror,\n\t\tdisabled: _disabled,\n\t\tbodyElement: \"label\",\n\t\tlabelElement: \"span\",\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\t\"data-checked\": withContextProps.checked,\n\t\tvariant,\n\t\tref: rootRef,\n\t\tmod,\n\t\tattributes,\n\t\tinert: rest.inert,\n\t\t...styleProps,\n\t\t...wrapperProps,\n\t\tchildren: [/* @__PURE__ */ jsx(\"input\", {\n\t\t\t...rest,\n\t\t\t...withContextProps,\n\t\t\tdisabled: _disabled,\n\t\t\tchecked: _checked,\n\t\t\t\"data-checked\": withContextProps.checked,\n\t\t\tonChange: (event) => {\n\t\t\t\tif (rest.readOnly) return;\n\t\t\t\twithContextProps.onChange?.(event);\n\t\t\t\thandleChange(event.currentTarget.checked);\n\t\t\t},\n\t\t\tid: uuid,\n\t\t\ttype: \"checkbox\",\n\t\t\trole: \"switch\",\n\t\t\tinert: rest.inert,\n\t\t\t\"aria-describedby\": describedBy,\n\t\t\t...getStyles(\"input\")\n\t\t}), /* @__PURE__ */ jsxs(Box, {\n\t\t\t\"aria-hidden\": \"true\",\n\t\t\tcomponent: \"span\",\n\t\t\tmod: {\n\t\t\t\terror,\n\t\t\t\t\"label-position\": labelPosition,\n\t\t\t\t\"without-labels\": !onLabel && !offLabel\n\t\t\t},\n\t\t\t...getStyles(\"track\"),\n\t\t\tchildren: [/* @__PURE__ */ jsx(Box, {\n\t\t\t\tcomponent: \"span\",\n\t\t\t\tmod: {\n\t\t\t\t\t\"reduce-motion\": true,\n\t\t\t\t\t\"with-thumb-indicator\": withThumbIndicator && !thumbIcon\n\t\t\t\t},\n\t\t\t\t...getStyles(\"thumb\"),\n\t\t\t\tchildren: thumbIcon\n\t\t\t}), /* @__PURE__ */ jsx(\"span\", {\n\t\t\t\t...getStyles(\"trackLabel\"),\n\t\t\t\tchildren: _checked ? onLabel : offLabel\n\t\t\t})]\n\t\t})]\n\t});\n});\nSwitch.classes = {\n\t...Switch_module_default,\n\t...InlineInputClasses\n};\nSwitch.varsResolver = varsResolver;\nSwitch.displayName = \"@mantine/core/Switch\";\nSwitch.Group = SwitchGroup;\nexport { Switch };\n\n//# sourceMappingURL=Switch.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"share\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M12 2v13\", key: \"1km8f5\" }],\n    [\"path\", { d: \"m16 6-4-4-4 4\", key: \"13yo43\" }],\n    [\"path\", { d: \"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\", key: \"1b2hhj\" }]\n  ]\n};\n__iconData.node;\nconst Share = createLucideIcon(__iconData);\n\nexport { __iconData, Share as default };\n//# sourceMappingURL=share.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"square-plus\",\n  size: 24,\n  node: [\n    [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", key: \"afitv7\" }],\n    [\"path\", { d: \"M8 12h8\", key: \"1wcyev\" }],\n    [\"path\", { d: \"M12 8v8\", key: \"napkw2\" }]\n  ],\n  aliases: [\"plus-square\"]\n};\n__iconData.node;\nconst SquarePlus = createLucideIcon(__iconData);\n\nexport { __iconData, SquarePlus as default };\n//# sourceMappingURL=square-plus.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"download\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M12 15V3\", key: \"m9g1x1\" }],\n    [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n    [\"path\", { d: \"m7 10 5 5 5-5\", key: \"brsn70\" }]\n  ]\n};\n__iconData.node;\nconst Download = createLucideIcon(__iconData);\n\nexport { __iconData, Download as default };\n//# sourceMappingURL=download.mjs.map\n","import React, { useEffect, useState } from \"react\";\nimport { Alert, Button, Group, List, Paper, Stack, Switch, Text, Title } from \"@mantine/core\";\nimport { notifications } from \"@mantine/notifications\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Download, Share, SquarePlus } from \"lucide-react\";\nimport { api, ApiError } from \"./api\";\nimport { t } from \"./i18n\";\nimport { disablePush, enablePush, isIos, isStandalone, pushIsOn, pushSupported } from \"./pwa\";\n\n// The browser's install offer (Android, Chrome and Edge on a computer), kept for the button\nlet installEvent = null;\nif (typeof window !== \"undefined\") {\n  window.addEventListener(\"beforeinstallprompt\", (event) => {\n    event.preventDefault();\n    installEvent = event;\n  });\n}\n\nfunction Install() {\n  const [offer, setOffer] = useState(installEvent);\n  useEffect(() => {\n    const onOffer = (event) => setOffer(event);\n    window.addEventListener(\"beforeinstallprompt\", onOffer);\n    return () => window.removeEventListener(\"beforeinstallprompt\", onOffer);\n  }, []);\n  if (isStandalone()) return <Text>{t(\"The app is installed on this device.\")}</Text>;\n  if (isIos())\n    return (\n      <Stack gap=\"xs\">\n        <Text>{t(\"On iPhone and iPad, in Safari:\")}</Text>\n        <List spacing={4} size=\"sm\">\n          <List.Item icon={<Share size={16} />}>{t(\"Tap Share at the bottom of the screen.\")}</List.Item>\n          <List.Item icon={<SquarePlus size={16} />}>{t(\"Choose Add to Home Screen.\")}</List.Item>\n        </List>\n        <Text size=\"sm\" c=\"dimmed\">\n          {t(\"Notifications on iPhone work only in the app opened from the home screen.\")}\n        </Text>\n      </Stack>\n    );\n  if (offer)\n    return (\n      <Button\n        leftSection={<Download size={16} />}\n        onClick={async () => {\n          offer.prompt();\n          await offer.userChoice.catch(() => null);\n          installEvent = null;\n          setOffer(null);\n        }}\n      >\n        {t(\"Install the app\")}\n      </Button>\n    );\n  return <Text size=\"sm\">{t(\"Install it from your browser's menu: Install app or Add to Home screen.\")}</Text>;\n}\n\nfunction Notifications() {\n  const queryClient = useQueryClient();\n  const key = useQuery({ queryKey: [\"push-key\"], queryFn: () => api(\"/api/push/\") });\n  const [on, setOn] = useState(false);\n  const [busy, setBusy] = useState(false);\n\n  useEffect(() => {\n    if (!key.data) return;\n    pushIsOn(key.data.key, key.data.registered)\n      .then(setOn)\n      .catch(() => setOn(false));\n  }, [key.data]);\n\n  if (key.isPending) return null;\n  if (!key.data || !key.data.key)\n    return <Text size=\"sm\" c=\"dimmed\">{t(\"Notifications are not available yet.\")}</Text>;\n  if (!pushSupported())\n    return (\n      <Text size=\"sm\" c=\"dimmed\">\n        {isIos() && !isStandalone()\n          ? t(\"Install the app first; notifications on iPhone work only there.\")\n          : t(\"This browser does not support notifications.\")}\n      </Text>\n    );\n  if (typeof Notification !== \"undefined\" && Notification.permission === \"denied\")\n    return (\n      <Alert color=\"fmAmber\" variant=\"light\">\n        {t(\"Notifications are blocked for this site in the browser's settings.\")}\n      </Alert>\n    );\n\n  async function toggle(next) {\n    setBusy(true);\n    try {\n      if (next) await enablePush(key.data.key);\n      else await disablePush();\n      setOn(next);\n    } catch (e) {\n      notifications.show({\n        color: \"fmRed\",\n        message:\n          e.message === \"denied\"\n            ? t(\"Notifications were not allowed.\")\n            : e instanceof ApiError\n              ? e.message\n              : next\n                ? t(\"Notifications could not be turned on in this browser.\")\n                : t(\"Notifications could not be turned off in this browser.\"),\n      });\n    } finally {\n      setBusy(false);\n      // The switch shows what the server holds now\n      queryClient.invalidateQueries({ queryKey: [\"push-key\"] });\n    }\n  }\n\n  async function test() {\n    try {\n      const answer = await api(\"/api/push/test/\", { method: \"POST\" });\n      notifications.show({ color: \"fmGreen\", message: answer.detail });\n    } catch (e) {\n      notifications.show({ color: \"fmRed\", message: e.message });\n    }\n  }\n\n  return (\n    <Stack gap=\"sm\">\n      <Switch\n        checked={on}\n        disabled={busy}\n        onChange={(e) => toggle(e.currentTarget.checked)}\n        label={t(\"Notifications on this device\")}\n        description={t(\"New mail, a ready scan, a received payment, sent mail and a renewal to pay.\")}\n        size=\"md\"\n      />\n      {on && (\n        <Group>\n          <Button variant=\"light\" size=\"xs\" onClick={test}>\n            {t(\"Send a test notification\")}\n          </Button>\n        </Group>\n      )}\n    </Stack>\n  );\n}\n\n/** Nastavení → Aplikace: install the portal and notifications on this device. */\nexport default function AppSettings() {\n  return (\n    <Stack gap=\"md\">\n      <Paper withBorder p=\"lg\">\n        <Stack gap=\"md\">\n          <Title order={3} size=\"h5\">\n            {t(\"The app on this device\")}\n          </Title>\n          <Install />\n        </Stack>\n      </Paper>\n      <Paper withBorder p=\"lg\">\n        <Stack gap=\"md\">\n          <Title order={3} size=\"h5\">\n            {t(\"Notifications\")}\n          </Title>\n          <Notifications />\n        </Stack>\n      </Paper>\n    </Stack>\n  );\n}\n","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { genericFactory } from \"../../../core/factory/factory.mjs\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport { InputsGroupFieldset } from \"../../../utils/InputsGroupFieldset/InputsGroupFieldset.mjs\";\nimport { createContext } from \"react\";\nimport { useId as useId$1, useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Radio/RadioGroup/RadioGroup.tsx\nconst RadioGroupContext = createContext(null);\nconst RadioGroup = genericFactory(((props) => {\n\tconst { value, defaultValue, onChange, size, wrapperProps, children, name, readOnly, disabled, ...others } = useProps(\"RadioGroup\", null, props);\n\tconst _name = useId$1(name);\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: \"\",\n\t\tonChange\n\t});\n\tconst handleChange = (event) => !readOnly && setValue(typeof event === \"string\" ? event : event.currentTarget.value);\n\treturn /* @__PURE__ */ jsx(RadioGroupContext, {\n\t\tvalue: {\n\t\t\tvalue: _value,\n\t\t\tonChange: handleChange,\n\t\t\tsize,\n\t\t\tname: _name,\n\t\t\tdisabled\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(Input.Wrapper, {\n\t\t\tsize,\n\t\t\t...wrapperProps,\n\t\t\t...others,\n\t\t\tlabelElement: \"div\",\n\t\t\t__staticSelector: \"RadioGroup\",\n\t\t\tchildren: /* @__PURE__ */ jsx(InputsGroupFieldset, {\n\t\t\t\trole: \"radiogroup\",\n\t\t\t\tchildren\n\t\t\t})\n\t\t})\n\t});\n}));\nRadioGroup.classes = Input.Wrapper.classes;\nRadioGroup.displayName = \"@mantine/core/RadioGroup\";\nexport { RadioGroup, RadioGroupContext };\n\n//# sourceMappingURL=RadioGroup.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Radio/RadioCard/RadioCard.module.css\nvar RadioCard_module_default = { \"card\": \"m_9dc8ae12\" };\nexport { RadioCard_module_default as default };\n\n//# sourceMappingURL=RadioCard.module.mjs.map","\"use client\";\nimport { getRadius } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { useDirection } from \"../../../core/DirectionProvider/DirectionProvider.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { RadioGroupContext } from \"../RadioGroup/RadioGroup.mjs\";\nimport RadioCard_module_default from \"./RadioCard.module.mjs\";\nimport { createContext, use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Radio/RadioCard/RadioCard.tsx\nconst RadioCardContext = createContext(null);\nconst defaultProps = { withBorder: true };\nconst varsResolver = createVarsResolver((_, { radius }) => ({ card: { \"--card-radius\": getRadius(radius) } }));\nconst RadioCard = factory((_props) => {\n\tconst props = useProps(\"RadioCard\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, checked, mod, withBorder, value, onClick, name, onKeyDown, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"RadioCard\",\n\t\tclasses: RadioCard_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"card\"\n\t});\n\tconst { dir } = useDirection();\n\tconst ctx = use(RadioGroupContext);\n\tconst _checked = typeof checked === \"boolean\" ? checked : ctx?.value === value || false;\n\tconst _name = name || ctx?.name;\n\tconst handleKeyDown = (event) => {\n\t\tonKeyDown?.(event);\n\t\tif (!_name) return;\n\t\tif ([\n\t\t\t\"ArrowDown\",\n\t\t\t\"ArrowUp\",\n\t\t\t\"ArrowLeft\",\n\t\t\t\"ArrowRight\"\n\t\t].includes(event.nativeEvent.code)) {\n\t\t\tevent.preventDefault();\n\t\t\tconst siblings = Array.from(document.querySelectorAll(`[role=\"radio\"][name=\"${_name}\"]`));\n\t\t\tconst currentIndex = siblings.findIndex((element) => element === event.target);\n\t\t\tconst nextIndex = currentIndex + 1 >= siblings.length ? 0 : currentIndex + 1;\n\t\t\tconst prevIndex = currentIndex - 1 < 0 ? siblings.length - 1 : currentIndex - 1;\n\t\t\tif (event.nativeEvent.code === \"ArrowDown\") {\n\t\t\t\tsiblings[nextIndex].focus();\n\t\t\t\tsiblings[nextIndex].click();\n\t\t\t}\n\t\t\tif (event.nativeEvent.code === \"ArrowUp\") {\n\t\t\t\tsiblings[prevIndex].focus();\n\t\t\t\tsiblings[prevIndex].click();\n\t\t\t}\n\t\t\tif (event.nativeEvent.code === \"ArrowLeft\") {\n\t\t\t\tsiblings[dir === \"ltr\" ? prevIndex : nextIndex].focus();\n\t\t\t\tsiblings[dir === \"ltr\" ? prevIndex : nextIndex].click();\n\t\t\t}\n\t\t\tif (event.nativeEvent.code === \"ArrowRight\") {\n\t\t\t\tsiblings[dir === \"ltr\" ? nextIndex : prevIndex].focus();\n\t\t\t\tsiblings[dir === \"ltr\" ? nextIndex : prevIndex].click();\n\t\t\t}\n\t\t}\n\t};\n\treturn /* @__PURE__ */ jsx(RadioCardContext, {\n\t\tvalue: { checked: _checked },\n\t\tchildren: /* @__PURE__ */ jsx(UnstyledButton, {\n\t\t\tmod: [{\n\t\t\t\t\"with-border\": withBorder,\n\t\t\t\tchecked: _checked\n\t\t\t}, mod],\n\t\t\t...getStyles(\"card\"),\n\t\t\t...others,\n\t\t\trole: \"radio\",\n\t\t\t\"aria-checked\": _checked,\n\t\t\tname: _name,\n\t\t\tonClick: (event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\tctx?.onChange(value || \"\");\n\t\t\t},\n\t\t\tonKeyDown: handleKeyDown\n\t\t})\n\t});\n});\nRadioCard.displayName = \"@mantine/core/RadioCard\";\nRadioCard.classes = RadioCard_module_default;\nRadioCard.varsResolver = varsResolver;\nexport { RadioCard, RadioCardContext };\n\n//# sourceMappingURL=RadioCard.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Radio/RadioIndicator/RadioIndicator.module.css\nvar RadioIndicator_module_default = {\n\t\"indicator\": \"m_717d7ff6\",\n\t\"icon\": \"m_3e4da632\",\n\t\"indicator--light\": \"m_7eec72c0\",\n\t\"indicator--outline\": \"m_2980836c\"\n};\nexport { RadioIndicator_module_default as default };\n\n//# sourceMappingURL=RadioIndicator.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { parseThemeColor } from \"../../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { RadioIcon } from \"../RadioIcon.mjs\";\nimport { RadioCardContext } from \"../RadioCard/RadioCard.mjs\";\nimport RadioIndicator_module_default from \"./RadioIndicator.module.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Radio/RadioIndicator/RadioIndicator.tsx\nconst defaultProps = { icon: RadioIcon };\nconst varsResolver = createVarsResolver((theme, { radius, color, size, iconColor, variant, autoContrast }) => {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme\n\t});\n\tconst outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;\n\tconst lightColors = variant === \"light\" ? theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tvariant: \"light\",\n\t\tautoContrast\n\t}) : void 0;\n\tconst resolvedColor = variant === \"outline\" ? outlineColor : lightColors ? lightColors.color : getThemeColor(color, theme);\n\treturn { indicator: {\n\t\t\"--radio-size\": getSize(size, \"radio-size\"),\n\t\t\"--radio-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--radio-color\": resolvedColor,\n\t\t\"--radio-bg\": lightColors?.background,\n\t\t\"--radio-icon-size\": typeof size === \"number\" ? `calc(${getSize(size, \"radio-size\")} * 0.4)` : getSize(size, \"radio-icon-size\"),\n\t\t\"--radio-icon-color\": iconColor ? getThemeColor(iconColor, theme) : lightColors ? lightColors.color : getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\t\tcolor,\n\t\t\ttheme,\n\t\t\tautoContrast\n\t\t}) : void 0\n\t} };\n});\nconst RadioIndicator = factory((_props) => {\n\tconst props = useProps(\"RadioIndicator\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, icon: Icon, radius, color, iconColor, autoContrast, checked, mod, variant, disabled, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"RadioIndicator\",\n\t\tclasses: RadioIndicator_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"indicator\"\n\t});\n\tconst ctx = use(RadioCardContext);\n\tconst _checked = typeof checked === \"boolean\" ? checked : ctx?.checked || false;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"indicator\", { variant }),\n\t\tvariant,\n\t\tmod: [{\n\t\t\tchecked: _checked,\n\t\t\tdisabled\n\t\t}, mod],\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(Icon, { ...getStyles(\"icon\") })\n\t});\n});\nRadioIndicator.displayName = \"@mantine/core/RadioIndicator\";\nRadioIndicator.classes = RadioIndicator_module_default;\nRadioIndicator.varsResolver = varsResolver;\nexport { RadioIndicator };\n\n//# sourceMappingURL=RadioIndicator.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Radio/Radio.module.css\nvar Radio_module_default = {\n\t\"root\": \"m_f3f1af94\",\n\t\"inner\": \"m_89c4f5e4\",\n\t\"icon\": \"m_f3ed6b2b\",\n\t\"radio\": \"m_8a3dbb89\",\n\t\"radio--light\": \"m_99d09bcd\",\n\t\"radio--outline\": \"m_1bfe9d39\"\n};\nexport { Radio_module_default as default };\n\n//# sourceMappingURL=Radio.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { parseThemeColor } from \"../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { extractStyleProps } from \"../../core/Box/style-props/extract-style-props/extract-style-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { InlineInput } from \"../../utils/InlineInput/InlineInput.mjs\";\nimport { RadioIcon } from \"./RadioIcon.mjs\";\nimport { RadioGroup, RadioGroupContext } from \"./RadioGroup/RadioGroup.mjs\";\nimport { RadioCard } from \"./RadioCard/RadioCard.mjs\";\nimport { RadioIndicator } from \"./RadioIndicator/RadioIndicator.mjs\";\nimport Radio_module_default from \"./Radio.module.mjs\";\nimport { use } from \"react\";\nimport { useId as useId$1 } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Radio/Radio.tsx\nconst defaultProps = {\n\tlabelPosition: \"right\",\n\twithErrorStyles: true\n};\nconst varsResolver = createVarsResolver((theme, { size, radius, color, iconColor, variant, autoContrast }) => {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme\n\t});\n\tconst outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;\n\tconst lightColors = variant === \"light\" ? theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tvariant: \"light\",\n\t\tautoContrast\n\t}) : void 0;\n\tconst resolvedColor = variant === \"outline\" ? outlineColor : lightColors ? lightColors.color : getThemeColor(color, theme);\n\treturn { root: {\n\t\t\"--radio-size\": getSize(size, \"radio-size\"),\n\t\t\"--radio-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--radio-color\": resolvedColor,\n\t\t\"--radio-bg\": lightColors?.background,\n\t\t\"--radio-icon-color\": iconColor ? getThemeColor(iconColor, theme) : lightColors ? lightColors.color : getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\t\tcolor,\n\t\t\ttheme,\n\t\t\tautoContrast\n\t\t}) : void 0,\n\t\t\"--radio-icon-size\": getSize(size, \"radio-icon-size\")\n\t} };\n});\nconst Radio = factory((_props) => {\n\tconst props = useProps(\"Radio\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, id, size, label, labelPosition, description, error, radius, color, variant, disabled, wrapperProps, icon: Icon = RadioIcon, rootRef, iconColor, onChange, mod, attributes, withErrorStyles, checked, readOnly, onClick, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"Radio\",\n\t\tclasses: Radio_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst ctx = use(RadioGroupContext);\n\tconst contextSize = ctx?.size ?? size;\n\tconst componentSize = props.size ? size : contextSize;\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst uuid = useId$1(id);\n\tconst describedBy = [\n\t\tdescription ? `${uuid}-description` : void 0,\n\t\terror && typeof error !== \"boolean\" ? `${uuid}-error` : void 0,\n\t\trest[\"aria-describedby\"]\n\t].filter(Boolean).join(\" \") || void 0;\n\tconst contextChecked = ctx ? ctx.value === rest.value : void 0;\n\tconst withContextProps = {\n\t\tchecked: contextChecked ?? checked,\n\t\tname: rest.name ?? ctx?.name,\n\t\tonChange: (event) => {\n\t\t\tif (readOnly) return;\n\t\t\tctx?.onChange(event);\n\t\t\tonChange?.(event);\n\t\t},\n\t\tdisabled: ctx?.disabled ?? disabled\n\t};\n\treturn /* @__PURE__ */ jsx(InlineInput, {\n\t\t...getStyles(\"root\"),\n\t\t__staticSelector: \"Radio\",\n\t\t__stylesApiProps: props,\n\t\tid: uuid,\n\t\tsize: componentSize,\n\t\tlabelPosition,\n\t\tlabel,\n\t\tdescription,\n\t\terror,\n\t\tdisabled: withContextProps.disabled,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\t\"data-checked\": (contextChecked ?? checked) || void 0,\n\t\tvariant,\n\t\tref: rootRef,\n\t\tmod,\n\t\tattributes,\n\t\t...styleProps,\n\t\t...wrapperProps,\n\t\tchildren: /* @__PURE__ */ jsxs(Box, {\n\t\t\t...getStyles(\"inner\"),\n\t\t\tmod: { \"label-position\": labelPosition },\n\t\t\tchildren: [/* @__PURE__ */ jsx(Box, {\n\t\t\t\t...getStyles(\"radio\", {\n\t\t\t\t\tfocusable: true,\n\t\t\t\t\tvariant\n\t\t\t\t}),\n\t\t\t\t...rest,\n\t\t\t\t...withContextProps,\n\t\t\t\tcomponent: \"input\",\n\t\t\t\tmod: {\n\t\t\t\t\terror: !!error,\n\t\t\t\t\t\"with-error-styles\": withErrorStyles\n\t\t\t\t},\n\t\t\t\tid: uuid,\n\t\t\t\ttype: \"radio\",\n\t\t\t\treadOnly,\n\t\t\t\t\"aria-describedby\": describedBy,\n\t\t\t\tonClick: (event) => {\n\t\t\t\t\tif (readOnly && withContextProps.checked === void 0) event.preventDefault();\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t}\n\t\t\t}), /* @__PURE__ */ jsx(Icon, {\n\t\t\t\t...getStyles(\"icon\"),\n\t\t\t\t\"aria-hidden\": true\n\t\t\t})]\n\t\t})\n\t});\n});\nRadio.classes = Radio_module_default;\nRadio.varsResolver = varsResolver;\nRadio.displayName = \"@mantine/core/Radio\";\nRadio.Group = RadioGroup;\nRadio.Card = RadioCard;\nRadio.Indicator = RadioIndicator;\nexport { Radio };\n\n//# sourceMappingURL=Radio.mjs.map","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"map-pin\",\n  size: 24,\n  node: [\n    [\n      \"path\",\n      {\n        d: \"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\",\n        key: \"1r0f0z\"\n      }\n    ],\n    [\"circle\", { cx: \"12\", cy: \"10\", r: \"3\", key: \"ilqhr7\" }]\n  ]\n};\n__iconData.node;\nconst MapPin = createLucideIcon(__iconData);\n\nexport { __iconData, MapPin as default };\n//# sourceMappingURL=map-pin.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"arrow-up\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"m5 12 7-7 7 7\", key: \"hav0vg\" }],\n    [\"path\", { d: \"M12 19V5\", key: \"x0mq9r\" }]\n  ]\n};\n__iconData.node;\nconst ArrowUp = createLucideIcon(__iconData);\n\nexport { __iconData, ArrowUp as default };\n//# sourceMappingURL=arrow-up.mjs.map\n","/**\n * @license lucide-react v1.79.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n  name: \"trash\",\n  size: 24,\n  node: [\n    [\"path\", { d: \"M10 11v6\", key: \"nco0om\" }],\n    [\"path\", { d: \"M14 11v6\", key: \"outv1u\" }],\n    [\"path\", { d: \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\", key: \"miytrc\" }],\n    [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n    [\"path\", { d: \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\", key: \"e791ji\" }]\n  ],\n  aliases: [\"trash-2\"]\n};\n__iconData.node;\nconst Trash = createLucideIcon(__iconData);\n\nexport { __iconData, Trash as default };\n//# sourceMappingURL=trash.mjs.map\n","import React, { useEffect, useRef, useState } from \"react\";\nimport {\n  Anchor,\n  Button,\n  Combobox,\n  Group,\n  Loader,\n  Radio,\n  Select,\n  Stack,\n  Text,\n  TextInput,\n  useCombobox,\n} from \"@mantine/core\";\nimport { api } from \"./api\";\nimport { getLanguageFromCookie, t } from \"./i18n\";\n\n// Every ISO 3166-1 alpha-2 code; the names come from the browser (Intl.DisplayNames)\nconst CODES =\n  \"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW\".split(\n    \" \"\n  );\n\nfunction countries() {\n  let names;\n  try {\n    names = new Intl.DisplayNames([getLanguageFromCookie()], { type: \"region\" });\n  } catch (e) {\n    names = null;\n  }\n  return CODES.map((code) => ({ value: code, label: (names && names.of(code)) || code })).sort((a, b) =>\n    a.label.localeCompare(b.label)\n  );\n}\n\n/** One line of an address as the bar and the e-mails show it. */\nexport function addressLine(a) {\n  if (!a || !(a.street || a.city)) return \"\";\n  const country = a.country && a.country !== \"CZ\" ? a.country : \"\";\n  return [a.name, a.street, [a.zip_code, a.city].filter(Boolean).join(\" \"), country].filter(Boolean).join(\", \");\n}\n\n/** RÚIAN search: suggestions while typing; a picked one is read from ČÚZK by the server. */\nfunction RuianSearch({ onPicked }) {\n  const combobox = useCombobox();\n  const [query, setQuery] = useState(\"\");\n  const [found, setFound] = useState([]);\n  const [loading, setLoading] = useState(false);\n  const [error, setError] = useState(\"\");\n  const picked = useRef(false);\n\n  useEffect(() => {\n    if (picked.current) {\n      picked.current = false;\n      return undefined;\n    }\n    const text = query.trim();\n    if (text.length < 3) {\n      setFound([]);\n      return undefined;\n    }\n    const timer = setTimeout(async () => {\n      setLoading(true);\n      try {\n        setFound(await api(`/api/address/suggest/?q=${encodeURIComponent(text)}`));\n        setError(\"\");\n        combobox.openDropdown();\n      } catch (e) {\n        setError(e.message);\n      } finally {\n        setLoading(false);\n      }\n    }, 250);\n    return () => clearTimeout(timer);\n  }, [query]); // eslint-disable-line react-hooks/exhaustive-deps\n\n  async function pick(key) {\n    const item = found.find((f) => f.key === key);\n    picked.current = true;\n    setQuery(item ? item.label : \"\");\n    combobox.closeDropdown();\n    try {\n      onPicked(await api(`/api/address/lookup/?key=${encodeURIComponent(key)}`));\n      setError(\"\");\n    } catch (e) {\n      setError(e.message);\n    }\n  }\n\n  return (\n    <Combobox store={combobox} onOptionSubmit={pick}>\n      <Combobox.Target>\n        <TextInput\n          label={t(\"Address\")}\n          placeholder={t(\"Start typing the street and number\")}\n          value={query}\n          onChange={(e) => {\n            setQuery(e.currentTarget.value);\n            onPicked(null);\n          }}\n          onFocus={() => found.length && combobox.openDropdown()}\n          onBlur={() => combobox.closeDropdown()}\n          rightSection={loading ? <Loader size={16} /> : null}\n          error={error || null}\n          autoComplete=\"off\"\n        />\n      </Combobox.Target>\n      <Combobox.Dropdown hidden={!found.length}>\n        <Combobox.Options>\n          {found.map((item) => (\n            <Combobox.Option value={item.key} key={item.key}>\n              {item.label}\n            </Combobox.Option>\n          ))}\n        </Combobox.Options>\n      </Combobox.Dropdown>\n    </Combobox>\n  );\n}\n\n/** Change (or delete) the correspondence address. A Czech address is picked from RÚIAN\n * (or typed when RÚIAN does not have it or does not answer); a foreign one is typed. */\nexport default function AddressEditor({ current: live, busy, onSave, onCancel, onDelete }) {\n  // The address as it was when the editor opened: a refetch meanwhile must not become\n  // `previous`, or a change made by someone else would be overwritten silently\n  const [current] = useState(live);\n  const foreignNow = current.country && current.country !== \"CZ\";\n  const [where, setWhere] = useState(foreignNow ? \"abroad\" : \"cz\");\n  const [manual, setManual] = useState(false);\n  const [place, setPlace] = useState(null);\n  const [fields, setFields] = useState({\n    street: foreignNow ? current.street : \"\",\n    zip_code: foreignNow ? current.zip_code : \"\",\n    city: foreignNow ? current.city : \"\",\n    country: foreignNow ? current.country : \"\",\n  });\n  const [name, setName] = useState(current.name || \"\");\n  const [confirmDelete, setConfirmDelete] = useState(false);\n  const set = (key) => (e) => setFields({ ...fields, [key]: e.currentTarget.value });\n\n  function body() {\n    const base = { name, previous: current };\n    if (where === \"abroad\") return { ...base, ...fields, ruian: \"\" };\n    if (manual) return { ...base, street: fields.street, zip_code: fields.zip_code, city: fields.city, country: \"\", ruian: \"\" };\n    return { ...base, ruian: place ? String(place.code) : \"\", country: \"\" };\n  }\n\n  const ready =\n    where === \"abroad\"\n      ? fields.street && fields.city && fields.country\n      : manual\n        ? fields.street && fields.zip_code && fields.city\n        : Boolean(place);\n\n  return (\n    <Stack gap=\"md\">\n      {addressLine(current) && (\n        <Text size=\"sm\" c=\"dimmed\">\n          {t(\"Now: {{address}}\", { address: addressLine(current) })}\n        </Text>\n      )}\n      <Radio.Group value={where} onChange={setWhere}>\n        <Group gap=\"lg\">\n          <Radio value=\"cz\" label={t(\"In the Czech Republic\")} />\n          <Radio value=\"abroad\" label={t(\"Abroad\")} />\n        </Group>\n      </Radio.Group>\n      {where === \"cz\" && !manual && (\n        <>\n          <RuianSearch onPicked={setPlace} />\n          {place && (\n            <Text size=\"sm\">\n              {t(\"Chosen: {{address}}\", {\n                address: [place.street, [place.zip_code, place.city].filter(Boolean).join(\" \")].join(\", \"),\n              })}\n            </Text>\n          )}\n          <Anchor component=\"button\" type=\"button\" size=\"sm\" onClick={() => setManual(true)}>\n            {t(\"The address is not in the list\")}\n          </Anchor>\n        </>\n      )}\n      {(where === \"abroad\" || manual) && (\n        <Stack gap=\"sm\">\n          <TextInput label={t(\"Street and number\")} value={fields.street} onChange={set(\"street\")} required />\n          <Group grow>\n            <TextInput label={t(\"Postal code\")} value={fields.zip_code} onChange={set(\"zip_code\")} required={where === \"cz\"} />\n            <TextInput label={t(\"Town\")} value={fields.city} onChange={set(\"city\")} required />\n          </Group>\n          {where === \"abroad\" && (\n            <Select\n              label={t(\"Country\")}\n              data={countries().filter((c) => c.value !== \"CZ\")}\n              value={fields.country || null}\n              onChange={(value) => setFields({ ...fields, country: value || \"\" })}\n              searchable\n              required\n            />\n          )}\n        </Stack>\n      )}\n      <TextInput\n        label={t(\"Another name on the envelope (optional)\")}\n        description={t(\"Only when the mail should go to another name than the company's.\")}\n        value={name}\n        onChange={(e) => setName(e.currentTarget.value)}\n      />\n      <Group justify=\"space-between\" wrap=\"wrap\">\n        {addressLine(current) ? (\n          confirmDelete ? (\n            <Group gap=\"xs\">\n              <Text size=\"sm\">{t(\"Delete the address? We will have nowhere to send your mail.\")}</Text>\n              <Button color=\"fmRed\" size=\"xs\" onClick={() => onDelete(current)} loading={busy}>\n                {t(\"Delete\")}\n              </Button>\n              <Button variant=\"subtle\" color=\"gray\" size=\"xs\" onClick={() => setConfirmDelete(false)}>\n                {t(\"Back\")}\n              </Button>\n            </Group>\n          ) : (\n            <Anchor component=\"button\" type=\"button\" c=\"fmRed\" size=\"sm\" onClick={() => setConfirmDelete(true)}>\n              {t(\"Delete the address\")}\n            </Anchor>\n          )\n        ) : (\n          <span />\n        )}\n        <Group gap=\"xs\">\n          <Button variant=\"subtle\" color=\"gray\" onClick={onCancel}>\n            {t(\"Cancel\")}\n          </Button>\n          <Button onClick={() => onSave(body())} disabled={!ready} loading={busy}>\n            {t(\"Save\")}\n          </Button>\n        </Group>\n      </Group>\n    </Stack>\n  );\n}\n","import React, { useEffect, useRef, useState } from \"react\";\nimport {\n  ActionIcon,\n  Alert,\n  Anchor,\n  Badge,\n  Button,\n  Center,\n  Group,\n  Loader,\n  Modal,\n  Paper,\n  Radio,\n  Stack,\n  Text,\n  Title,\n  Tooltip,\n} from \"@mantine/core\";\nimport { notifications } from \"@mantine/notifications\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { ArrowUp, MapPin, Plus, Trash2 } from \"lucide-react\";\nimport { api, ME } from \"./api\";\nimport { getLanguageFromCookie, t } from \"./i18n\";\nimport AddressEditor, { addressLine } from \"./AddressEditor\";\n\n// DPD's pickup point map; it posts the chosen point to this window\nexport const DPD_ORIGIN = \"https://api.dpd.cz\";\nconst POINT_ID = /^[A-Z]{2}\\d{5}$/;\n\n/** DPD's map in a dialog. A message counts only from DPD's origin, from this very frame,\n * with a valid point ID; the pick belongs to the company the dialog was opened for. */\nexport function DpdMap({ opened, onPick, onClose }) {\n  const frame = useRef(null);\n  useEffect(() => {\n    if (!opened) return undefined;\n    let done = false;\n    const onMessage = (event) => {\n      if (event.origin !== DPD_ORIGIN) return;\n      if (!frame.current || event.source !== frame.current.contentWindow) return;\n      const data = event.data && event.data.dpdWidget;\n      if (!data || typeof data !== \"object\") return;\n      if (data.message === \"widgetClose\") onClose();\n      else if (!done && typeof data.id === \"string\" && POINT_ID.test(data.id)) {\n        done = true;\n        onPick(data.id);\n      }\n    };\n    window.addEventListener(\"message\", onMessage);\n    return () => window.removeEventListener(\"message\", onMessage);\n  }, [opened, onPick, onClose]);\n  const lang = getLanguageFromCookie() === \"en\" ? \"en\" : \"cs\";\n  return (\n    <Modal opened={opened} onClose={onClose} title={<Text fw={600}>{t(\"Choose a DPD box\")}</Text>} size={980} centered>\n      <iframe\n        ref={frame}\n        title={t(\"DPD pickup point map\")}\n        src={`${DPD_ORIGIN}/widget/latest/?lang=${lang}`}\n        className=\"pt-map\"\n        allow=\"geolocation\"\n      />\n    </Modal>\n  );\n}\n\nfunction Section({ title, children, action }) {\n  return (\n    <Paper withBorder p=\"lg\">\n      <Stack gap=\"md\">\n        <Group justify=\"space-between\" wrap=\"wrap\">\n          <Title order={3} size=\"h5\">\n            {title}\n          </Title>\n          {action}\n        </Group>\n        {children}\n      </Stack>\n    </Paper>\n  );\n}\n\nexport default function DeliverySettings({ firm, openContact }) {\n  const queryClient = useQueryClient();\n  const key = [\"delivery\", firm.id];\n  const data = useQuery({ queryKey: key, queryFn: () => api(`/api/settings/${firm.id}/delivery/`) });\n  const [map, setMap] = useState(false);\n  const [editing, setEditing] = useState(false);\n  const [busy, setBusy] = useState(false);\n\n  // A dialog opened for another company is closed when the company changes\n  useEffect(() => {\n    setMap(false);\n    setEditing(false);\n  }, [firm.id]);\n\n  async function change(method, path, body) {\n    setBusy(true);\n    try {\n      const state = await api(`/api/settings/${firm.id}/${path}`, { method, body });\n      queryClient.setQueryData(key, state);\n      queryClient.invalidateQueries({ queryKey: ME });\n      return true;\n    } catch (e) {\n      notifications.show({ color: \"fmRed\", message: e.message });\n      queryClient.invalidateQueries({ queryKey: key });\n      return false;\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  if (data.isPending)\n    return (\n      <Center py=\"xl\">\n        <Loader />\n      </Center>\n    );\n  if (data.isError) return <Alert color=\"fmRed\">{data.error.message}</Alert>;\n  const state = data.data;\n  if (state.member_of) {\n    return (\n      <Alert color=\"firmin\" variant=\"light\">\n        {t(\n          \"The head company of your group, {{head}}, decides where the mail of the whole group is forwarded.\",\n          { head: state.member_of }\n        )}\n      </Alert>\n    );\n  }\n  const editable = state.can_edit;\n  const line = addressLine(state.address);\n\n  return (\n    <Stack gap=\"md\">\n      {state.dpd && (\n        <Section title={t(\"Where we send forwarded mail\")}>\n          <Radio.Group value={state.mode} onChange={(mode) => change(\"PUT\", \"delivery/\", { mode })}>\n            <Stack gap=\"xs\">\n              <Radio.Card\n                value=\"address\"\n                className=\"pt-radio-card\"\n                disabled={!editable || busy || (state.mode !== \"address\" && !state.can_switch)}\n              >\n                <Group wrap=\"nowrap\" align=\"flex-start\">\n                  <Radio.Indicator />\n                  <div>\n                    <Text fw={600}>{t(\"To the address\")}</Text>\n                    <Text size=\"sm\" c=\"dimmed\">\n                      {line || t(\"No address yet\")}\n                    </Text>\n                  </div>\n                </Group>\n              </Radio.Card>\n              <Radio.Card\n                value=\"box\"\n                className=\"pt-radio-card\"\n                disabled={!editable || busy || !state.boxes.length || (state.mode !== \"box\" && !state.can_switch)}\n              >\n                <Group wrap=\"nowrap\" align=\"flex-start\">\n                  <Radio.Indicator />\n                  <div>\n                    <Text fw={600}>{t(\"To a DPD box\")}</Text>\n                    <Text size=\"sm\" c=\"dimmed\">\n                      {state.boxes.length\n                        ? t(\"To the first box below; when it is full, to the next one.\")\n                        : t(\"Add a box first.\")}\n                    </Text>\n                  </div>\n                </Group>\n              </Radio.Card>\n            </Stack>\n          </Radio.Group>\n          {editable && !state.can_switch && (\n            <Text size=\"sm\" c=\"dimmed\">\n              {t(\"We change the way of delivery for you on request.\")}{\" \"}\n              <Anchor component=\"button\" type=\"button\" size=\"sm\" onClick={() => openContact({ firm: firm.id })}>\n                {t(\"Write to us\")}\n              </Anchor>\n            </Text>\n          )}\n          {state.box_problem && (\n            <Alert color=\"fmAmber\" variant=\"light\">\n              {t(\"None of your boxes can take mail now. Add another box or choose the address.\")}\n            </Alert>\n          )}\n        </Section>\n      )}\n\n      {state.dpd && (\n        <Section\n          title={t(\"DPD boxes\")}\n          action={\n            editable && (\n              <Button variant=\"light\" leftSection={<Plus size={16} />} onClick={() => setMap(true)} disabled={busy}>\n                {t(\"Add a box from the map\")}\n              </Button>\n            )\n          }\n        >\n          {state.boxes.length === 0 ? (\n            <Text c=\"dimmed\" size=\"sm\">\n              {t(\"You have no box yet.\")}\n            </Text>\n          ) : (\n            <Stack gap={0} className=\"pt-boxes\">\n              {state.boxes.map((box, index) => (\n                <Group key={box.id} justify=\"space-between\" wrap=\"nowrap\" className=\"pt-box\">\n                  <Group gap=\"sm\" wrap=\"nowrap\" align=\"flex-start\">\n                    <MapPin size={18} className=\"pt-muted-icon\" />\n                    <div>\n                      <Group gap={6}>\n                        <Text fw={600}>{box.name}</Text>\n                        {index === 0 && (\n                          <Badge variant=\"light\" color=\"firmin\">\n                            {t(\"first choice\")}\n                          </Badge>\n                        )}\n                        {!box.enabled && (\n                          <Badge variant=\"light\" color=\"fmRed\">\n                            {t(\"switched off by DPD\")}\n                          </Badge>\n                        )}\n                      </Group>\n                      <Text size=\"sm\" c=\"dimmed\">\n                        {box.address} · {box.id}\n                      </Text>\n                    </div>\n                  </Group>\n                  {editable && (\n                    <Group gap={4} wrap=\"nowrap\">\n                      {index > 0 && (\n                        <Tooltip label={t(\"Make it the first choice\")}>\n                          <ActionIcon\n                            variant=\"subtle\"\n                            color=\"gray\"\n                            size=\"lg\"\n                            aria-label={t(\"Make it the first choice\")}\n                            onClick={() => change(\"POST\", `boxes/${box.id}/prefer/`)}\n                            disabled={busy}\n                          >\n                            <ArrowUp size={18} />\n                          </ActionIcon>\n                        </Tooltip>\n                      )}\n                      <Tooltip label={t(\"Remove the box\")}>\n                        <ActionIcon\n                          variant=\"subtle\"\n                          color=\"fmRed\"\n                          size=\"lg\"\n                          aria-label={t(\"Remove the box\")}\n                          onClick={() => change(\"DELETE\", `boxes/${box.id}/`)}\n                          disabled={busy}\n                        >\n                          <Trash2 size={18} />\n                        </ActionIcon>\n                      </Tooltip>\n                    </Group>\n                  )}\n                </Group>\n              ))}\n            </Stack>\n          )}\n        </Section>\n      )}\n\n      <Section\n        title={t(\"Correspondence address\")}\n        action={\n          editable &&\n          !editing && (\n            <Button variant=\"light\" onClick={() => setEditing(true)}>\n              {line ? t(\"Change\") : t(\"Add the address\")}\n            </Button>\n          )\n        }\n      >\n        {editing ? (\n          <AddressEditor\n            current={state.address}\n            busy={busy}\n            onCancel={() => setEditing(false)}\n            onSave={async (body) => {\n              if (await change(\"PUT\", \"address/\", body)) setEditing(false);\n            }}\n            onDelete={async (previous) => {\n              if (await change(\"DELETE\", \"address/\", { previous })) setEditing(false);\n            }}\n          />\n        ) : (\n          <Text>{line || t(\"No address yet: we have nowhere to send your mail.\")}</Text>\n        )}\n      </Section>\n\n      <Section title={t(\"Regular forwarding\")}>\n        <Group justify=\"space-between\" wrap=\"wrap\">\n          <Text>\n            {state.regular === \"weekly\"\n              ? t(\"We forward your mail every week.\")\n              : state.regular === \"monthly\"\n                ? t(\"We forward your mail every month.\")\n                : t(\"You have no regular forwarding.\")}\n          </Text>\n          {editable && (\n            <Anchor\n              component=\"button\"\n              type=\"button\"\n              onClick={() =>\n                openContact({ firm: firm.id, message: t(\"I would like to change the regular forwarding to:\") })\n              }\n            >\n              {t(\"I want to change it\")}\n            </Anchor>\n          )}\n        </Group>\n      </Section>\n\n      <DpdMap\n        opened={map}\n        onClose={() => setMap(false)}\n        onPick={async (pointId) => {\n          setMap(false);\n          if (await change(\"POST\", \"boxes/\", { point_id: pointId }))\n            notifications.show({ color: \"fmGreen\", message: t(\"The box is added.\") });\n        }}\n      />\n    </Stack>\n  );\n}\n","\"use client\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { genericFactory } from \"../../../core/factory/factory.mjs\";\nimport { Input } from \"../../Input/Input.mjs\";\nimport { InputsGroupFieldset } from \"../../../utils/InputsGroupFieldset/InputsGroupFieldset.mjs\";\nimport { createContext } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx\nconst CheckboxGroupContext = createContext(null);\nconst defaultProps = { hiddenInputValuesSeparator: \",\" };\nconst CheckboxGroup = genericFactory(((props) => {\n\tconst { value, defaultValue, onChange, size, wrapperProps, children, readOnly, name, hiddenInputValuesSeparator, hiddenInputProps, maxSelectedValues, disabled, ...others } = useProps(\"CheckboxGroup\", defaultProps, props);\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue,\n\t\tdefaultValue,\n\t\tfinalValue: [],\n\t\tonChange\n\t});\n\tconst handleChange = (event) => {\n\t\tconst itemValue = typeof event === \"string\" ? event : event.currentTarget.value;\n\t\tif (readOnly) return;\n\t\tconst isCurrentlySelected = _value.includes(itemValue);\n\t\tif (!isCurrentlySelected && maxSelectedValues && _value.length >= maxSelectedValues) return;\n\t\tsetValue(isCurrentlySelected ? _value.filter((item) => item !== itemValue) : [..._value, itemValue]);\n\t};\n\tconst isDisabled = (checkboxValue) => {\n\t\tif (disabled) return true;\n\t\tif (!maxSelectedValues) return false;\n\t\tconst isCurrentlySelected = _value.includes(checkboxValue);\n\t\tconst hasReachedLimit = _value.length >= maxSelectedValues;\n\t\treturn !isCurrentlySelected && hasReachedLimit;\n\t};\n\tconst hiddenInputValue = _value.join(hiddenInputValuesSeparator);\n\treturn /* @__PURE__ */ jsx(CheckboxGroupContext, {\n\t\tvalue: {\n\t\t\tvalue: _value,\n\t\t\tonChange: handleChange,\n\t\t\tsize,\n\t\t\tisDisabled\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsxs(Input.Wrapper, {\n\t\t\tsize,\n\t\t\t...wrapperProps,\n\t\t\t...others,\n\t\t\tlabelElement: \"div\",\n\t\t\t__staticSelector: \"CheckboxGroup\",\n\t\t\tchildren: [/* @__PURE__ */ jsx(InputsGroupFieldset, {\n\t\t\t\trole: \"group\",\n\t\t\t\tchildren\n\t\t\t}), /* @__PURE__ */ jsx(\"input\", {\n\t\t\t\ttype: \"hidden\",\n\t\t\t\tname,\n\t\t\t\tvalue: hiddenInputValue,\n\t\t\t\t...hiddenInputProps\n\t\t\t})]\n\t\t})\n\t});\n}));\nCheckboxGroup.classes = Input.Wrapper.classes;\nCheckboxGroup.displayName = \"@mantine/core/CheckboxGroup\";\nexport { CheckboxGroup, CheckboxGroupContext };\n\n//# sourceMappingURL=CheckboxGroup.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Checkbox/CheckboxCard/CheckboxCard.module.css\nvar CheckboxCard_module_default = { \"card\": \"m_26775b0a\" };\nexport { CheckboxCard_module_default as default };\n\n//# sourceMappingURL=CheckboxCard.module.mjs.map","\"use client\";\nimport { getRadius } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { UnstyledButton } from \"../../UnstyledButton/UnstyledButton.mjs\";\nimport { CheckboxGroupContext } from \"../CheckboxGroup/CheckboxGroup.mjs\";\nimport CheckboxCard_module_default from \"./CheckboxCard.module.mjs\";\nimport { createContext, use } from \"react\";\nimport { useUncontrolled } from \"@mantine/hooks\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Checkbox/CheckboxCard/CheckboxCard.tsx\nconst CheckboxCardContext = createContext(null);\nconst defaultProps = { withBorder: true };\nconst varsResolver = createVarsResolver((_, { radius }) => ({ card: { \"--card-radius\": getRadius(radius) } }));\nconst CheckboxCard = factory((_props) => {\n\tconst props = useProps(\"CheckboxCard\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, checked, mod, withBorder, value, onClick, defaultChecked, onChange, indeterminate, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"CheckboxCard\",\n\t\tclasses: CheckboxCard_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"card\"\n\t});\n\tconst ctx = use(CheckboxGroupContext);\n\tconst _checked = typeof checked === \"boolean\" ? checked : ctx ? ctx.value.includes(value || \"\") : void 0;\n\tconst [_value, setValue] = useUncontrolled({\n\t\tvalue: _checked,\n\t\tdefaultValue: defaultChecked,\n\t\tfinalValue: false,\n\t\tonChange\n\t});\n\treturn /* @__PURE__ */ jsx(CheckboxCardContext, {\n\t\tvalue: {\n\t\t\tchecked: _value,\n\t\t\tindeterminate\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(UnstyledButton, {\n\t\t\tmod: [{\n\t\t\t\t\"with-border\": withBorder,\n\t\t\t\tchecked: _value,\n\t\t\t\tindeterminate\n\t\t\t}, mod],\n\t\t\t...getStyles(\"card\"),\n\t\t\t...others,\n\t\t\trole: \"checkbox\",\n\t\t\t\"aria-checked\": indeterminate ? \"mixed\" : _value,\n\t\t\tonClick: (event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\tctx?.onChange(value || \"\");\n\t\t\t\tsetValue(!_value);\n\t\t\t}\n\t\t})\n\t});\n});\nCheckboxCard.displayName = \"@mantine/core/CheckboxCard\";\nCheckboxCard.classes = CheckboxCard_module_default;\nCheckboxCard.varsResolver = varsResolver;\nexport { CheckboxCard, CheckboxCardContext };\n\n//# sourceMappingURL=CheckboxCard.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.css\nvar CheckboxIndicator_module_default = {\n\t\"indicator\": \"m_5e5256ee\",\n\t\"icon\": \"m_1b1c543a\",\n\t\"indicator--light\": \"m_193e54c8\",\n\t\"indicator--outline\": \"m_76e20374\"\n};\nexport { CheckboxIndicator_module_default as default };\n\n//# sourceMappingURL=CheckboxIndicator.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { parseThemeColor } from \"../../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { getThemeColor } from \"../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../../core/styles-api/use-styles/use-styles.mjs\";\nimport { factory } from \"../../../core/factory/factory.mjs\";\nimport { Box } from \"../../../core/Box/Box.mjs\";\nimport { CheckboxCardContext } from \"../CheckboxCard/CheckboxCard.mjs\";\nimport { CheckboxIcon } from \"../CheckIcon.mjs\";\nimport CheckboxIndicator_module_default from \"./CheckboxIndicator.module.mjs\";\nimport { use } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Checkbox/CheckboxIndicator/CheckboxIndicator.tsx\nconst defaultProps = {\n\ticon: CheckboxIcon,\n\tvariant: \"filled\",\n\tradius: \"sm\"\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, size, iconColor, variant, autoContrast }) => {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme\n\t});\n\tconst outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;\n\tconst lightColors = variant === \"light\" ? theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tvariant: \"light\",\n\t\tautoContrast\n\t}) : void 0;\n\tconst resolvedColor = variant === \"outline\" ? outlineColor : lightColors ? lightColors.color : getThemeColor(color, theme);\n\treturn { indicator: {\n\t\t\"--checkbox-size\": getSize(size, \"checkbox-size\"),\n\t\t\"--checkbox-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--checkbox-color\": resolvedColor,\n\t\t\"--checkbox-bg\": lightColors?.background,\n\t\t\"--checkbox-icon-color\": iconColor ? getThemeColor(iconColor, theme) : lightColors ? lightColors.color : getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\t\tcolor,\n\t\t\ttheme,\n\t\t\tautoContrast\n\t\t}) : void 0\n\t} };\n});\nconst CheckboxIndicator = factory((_props) => {\n\tconst props = useProps(\"CheckboxIndicator\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, icon: Icon, indeterminate, radius, color, iconColor, autoContrast, checked, mod, variant, disabled, attributes, ...others } = props;\n\tconst getStyles = useStyles({\n\t\tname: \"CheckboxIndicator\",\n\t\tclasses: CheckboxIndicator_module_default,\n\t\tprops,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver,\n\t\trootSelector: \"indicator\"\n\t});\n\tconst ctx = use(CheckboxCardContext);\n\tconst _indeterminate = typeof indeterminate === \"boolean\" ? indeterminate : ctx?.indeterminate;\n\tconst _checked = typeof checked === \"boolean\" || typeof indeterminate === \"boolean\" ? checked || indeterminate : ctx?.checked || ctx?.indeterminate || false;\n\treturn /* @__PURE__ */ jsx(Box, {\n\t\t...getStyles(\"indicator\", { variant }),\n\t\tvariant,\n\t\tmod: [{\n\t\t\tchecked: _checked,\n\t\t\tdisabled\n\t\t}, mod],\n\t\t...others,\n\t\tchildren: /* @__PURE__ */ jsx(Icon, {\n\t\t\tindeterminate: _indeterminate,\n\t\t\t...getStyles(\"icon\")\n\t\t})\n\t});\n});\nCheckboxIndicator.displayName = \"@mantine/core/CheckboxIndicator\";\nCheckboxIndicator.classes = CheckboxIndicator_module_default;\nCheckboxIndicator.varsResolver = varsResolver;\nexport { CheckboxIndicator };\n\n//# sourceMappingURL=CheckboxIndicator.mjs.map","\"use client\";\n// packages/@mantine/core/src/components/Checkbox/Checkbox.module.css\nvar Checkbox_module_default = {\n\t\"root\": \"m_bf2d988c\",\n\t\"inner\": \"m_26062bec\",\n\t\"input\": \"m_26063560\",\n\t\"icon\": \"m_bf295423\",\n\t\"input--light\": \"m_595ab216\",\n\t\"input--outline\": \"m_215c4542\"\n};\nexport { Checkbox_module_default as default };\n\n//# sourceMappingURL=Checkbox.module.mjs.map","\"use client\";\nimport { getRadius, getSize } from \"../../core/utils/get-size/get-size.mjs\";\nimport { createVarsResolver } from \"../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs\";\nimport { parseThemeColor } from \"../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs\";\nimport { getThemeColor } from \"../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs\";\nimport { getContrastColor } from \"../../core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs\";\nimport { getAutoContrastValue } from \"../../core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs\";\nimport { useProps } from \"../../core/MantineProvider/use-props/use-props.mjs\";\nimport { useStyles } from \"../../core/styles-api/use-styles/use-styles.mjs\";\nimport { extractStyleProps } from \"../../core/Box/style-props/extract-style-props/extract-style-props.mjs\";\nimport { factory } from \"../../core/factory/factory.mjs\";\nimport { Box } from \"../../core/Box/Box.mjs\";\nimport { InlineInput, InlineInputClasses } from \"../../utils/InlineInput/InlineInput.mjs\";\nimport { CheckboxGroup, CheckboxGroupContext } from \"./CheckboxGroup/CheckboxGroup.mjs\";\nimport { CheckboxCard } from \"./CheckboxCard/CheckboxCard.mjs\";\nimport { CheckboxIcon } from \"./CheckIcon.mjs\";\nimport { CheckboxIndicator } from \"./CheckboxIndicator/CheckboxIndicator.mjs\";\nimport Checkbox_module_default from \"./Checkbox.module.mjs\";\nimport { use, useEffect, useRef } from \"react\";\nimport { useId as useId$1, useMergedRef } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n// packages/@mantine/core/src/components/Checkbox/Checkbox.tsx\nconst defaultProps = {\n\tlabelPosition: \"right\",\n\ticon: CheckboxIcon,\n\twithErrorStyles: true,\n\tvariant: \"filled\",\n\tradius: \"sm\"\n};\nconst varsResolver = createVarsResolver((theme, { radius, color, size, iconColor, variant, autoContrast }) => {\n\tconst parsedColor = parseThemeColor({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme\n\t});\n\tconst outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;\n\tconst lightColors = variant === \"light\" ? theme.variantColorResolver({\n\t\tcolor: color || theme.primaryColor,\n\t\ttheme,\n\t\tvariant: \"light\",\n\t\tautoContrast\n\t}) : void 0;\n\tconst resolvedColor = variant === \"outline\" ? outlineColor : lightColors ? lightColors.color : getThemeColor(color, theme);\n\treturn { root: {\n\t\t\"--checkbox-size\": getSize(size, \"checkbox-size\"),\n\t\t\"--checkbox-radius\": radius === void 0 ? void 0 : getRadius(radius),\n\t\t\"--checkbox-color\": resolvedColor,\n\t\t\"--checkbox-bg\": lightColors?.background,\n\t\t\"--checkbox-icon-color\": iconColor ? getThemeColor(iconColor, theme) : lightColors ? lightColors.color : getAutoContrastValue(autoContrast, theme) ? getContrastColor({\n\t\t\tcolor,\n\t\t\ttheme,\n\t\t\tautoContrast\n\t\t}) : void 0\n\t} };\n});\nconst Checkbox = factory((_props) => {\n\tconst props = useProps(\"Checkbox\", defaultProps, _props);\n\tconst { classNames, className, style, styles, unstyled, vars, color, label, id, size, radius, wrapperProps, checked, labelPosition, description, error, disabled, variant, indeterminate, icon: Icon, rootRef, iconColor, onChange, autoContrast, mod, attributes, readOnly, onClick, withErrorStyles, ref, ...others } = props;\n\tconst inputRef = useRef(null);\n\tconst ctx = use(CheckboxGroupContext);\n\tconst _size = size || ctx?.size;\n\tconst getStyles = useStyles({\n\t\tname: \"Checkbox\",\n\t\tprops,\n\t\tclasses: Checkbox_module_default,\n\t\tclassName,\n\t\tstyle,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\tattributes,\n\t\tvars,\n\t\tvarsResolver\n\t});\n\tconst { styleProps, rest } = extractStyleProps(others);\n\tconst uuid = useId$1(id);\n\tconst describedBy = [\n\t\tdescription ? `${uuid}-description` : void 0,\n\t\terror && typeof error !== \"boolean\" ? `${uuid}-error` : void 0,\n\t\trest[\"aria-describedby\"]\n\t].filter(Boolean).join(\" \") || void 0;\n\tconst withContextProps = {\n\t\tchecked: ctx?.value.includes(rest.value) ?? checked,\n\t\tonChange: (event) => {\n\t\t\tif (readOnly) return;\n\t\t\tctx?.onChange(event);\n\t\t\tonChange?.(event);\n\t\t}\n\t};\n\tconst isDisabledByGroup = ctx?.isDisabled?.(rest.value) ?? false;\n\tconst finalDisabled = disabled || isDisabledByGroup;\n\tuseEffect(() => {\n\t\tif (inputRef.current) {\n\t\t\tinputRef.current.indeterminate = indeterminate || false;\n\t\t\tif (indeterminate) inputRef.current.setAttribute(\"data-indeterminate\", \"true\");\n\t\t\telse inputRef.current.removeAttribute(\"data-indeterminate\");\n\t\t}\n\t}, [indeterminate]);\n\treturn /* @__PURE__ */ jsx(InlineInput, {\n\t\t...getStyles(\"root\"),\n\t\t__staticSelector: \"Checkbox\",\n\t\t__stylesApiProps: props,\n\t\tid: uuid,\n\t\tsize: _size,\n\t\tlabelPosition,\n\t\tlabel,\n\t\tdescription,\n\t\terror,\n\t\tdisabled: finalDisabled,\n\t\tclassNames,\n\t\tstyles,\n\t\tunstyled,\n\t\t\"data-checked\": withContextProps.checked || checked || void 0,\n\t\tvariant,\n\t\tref: rootRef,\n\t\tmod,\n\t\tattributes,\n\t\tinert: rest.inert,\n\t\t...styleProps,\n\t\t...wrapperProps,\n\t\tchildren: /* @__PURE__ */ jsxs(Box, {\n\t\t\t...getStyles(\"inner\"),\n\t\t\tmod: { labelPosition },\n\t\t\tchildren: [/* @__PURE__ */ jsx(Box, {\n\t\t\t\tcomponent: \"input\",\n\t\t\t\tid: uuid,\n\t\t\t\tref: useMergedRef(inputRef, ref),\n\t\t\t\tmod: {\n\t\t\t\t\terror: !!error,\n\t\t\t\t\t\"with-error-styles\": withErrorStyles\n\t\t\t\t},\n\t\t\t\t...getStyles(\"input\", {\n\t\t\t\t\tfocusable: true,\n\t\t\t\t\tvariant\n\t\t\t\t}),\n\t\t\t\t...rest,\n\t\t\t\t...withContextProps,\n\t\t\t\t\"aria-describedby\": describedBy,\n\t\t\t\tdisabled: finalDisabled,\n\t\t\t\tinert: rest.inert,\n\t\t\t\ttype: \"checkbox\",\n\t\t\t\treadOnly,\n\t\t\t\tonClick: (event) => {\n\t\t\t\t\tif (readOnly && withContextProps.checked === void 0) event.preventDefault();\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t}\n\t\t\t}), /* @__PURE__ */ jsx(Icon, {\n\t\t\t\tindeterminate,\n\t\t\t\t...getStyles(\"icon\")\n\t\t\t})]\n\t\t})\n\t});\n});\nCheckbox.classes = {\n\t...Checkbox_module_default,\n\t...InlineInputClasses\n};\nCheckbox.varsResolver = varsResolver;\nCheckbox.displayName = \"@mantine/core/Checkbox\";\nCheckbox.Group = CheckboxGroup;\nCheckbox.Indicator = CheckboxIndicator;\nCheckbox.Card = CheckboxCard;\nexport { Checkbox };\n\n//# sourceMappingURL=Checkbox.mjs.map","import React, { useEffect, useState } from \"react\";\nimport {\n  ActionIcon,\n  Alert,\n  Anchor,\n  Badge,\n  Button,\n  Center,\n  Checkbox,\n  Group,\n  Loader,\n  Paper,\n  Stack,\n  Table,\n  Text,\n  TextInput,\n  Title,\n  Tooltip,\n} from \"@mantine/core\";\nimport { notifications } from \"@mantine/notifications\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Lock, Plus, Trash2 } from \"lucide-react\";\nimport { api, ME } from \"./api\";\nimport { t } from \"./i18n\";\n\nconst FLAGS = [\n  { key: \"mail_notices\", label: () => t(\"Mail notices\") },\n  { key: \"renewals\", label: () => t(\"Renewals\") },\n  { key: \"portal\", label: () => t(\"Access here\") },\n];\n\n/** The company's emails: the main one (changed by FIRMIN on request) and the others the\n * client manages. A new address gets nothing until its owner confirms it by a link. */\nexport default function EmailsSettings({ firm, openContact }) {\n  const queryClient = useQueryClient();\n  const key = [\"emails\", firm.id];\n  const data = useQuery({ queryKey: key, queryFn: () => api(`/api/settings/${firm.id}/emails/`) });\n  const [rows, setRows] = useState([]);\n  const [mainNotices, setMainNotices] = useState(true);\n  const [adding, setAdding] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n  const [error, setError] = useState(\"\");\n  // The state the edits started from: sent as `previous`, kept over a refetch while the\n  // client is editing (a change made meanwhile is then refused, not overwritten)\n  const [base, setBase] = useState(null);\n  const [dirty, setDirty] = useState(false);\n\n  useEffect(() => {\n    if (!data.data || data.data.gone || dirty) return;\n    setBase(data.data);\n    setRows(data.data.emails.map((e) => ({ ...e })));\n    setMainNotices(data.data.main_mail_notices);\n    setError(\"\");\n  }, [data.data, dirty]);\n\n  if (data.isPending)\n    return (\n      <Center py=\"xl\">\n        <Loader />\n      </Center>\n    );\n  if (data.isError) return <Alert color=\"fmRed\">{data.error.message}</Alert>;\n  const state = base || data.data;\n  const editable = state.can_edit;\n  const changed =\n    mainNotices !== state.main_mail_notices || JSON.stringify(rows.map(strip)) !== JSON.stringify(state.emails.map(strip));\n  const losesOwnAccess =\n    state.emails.some((e) => e.email === state.you && e.portal) &&\n    !rows.some((e) => e.email === state.you && e.portal);\n\n  function strip(e) {\n    return { email: e.email, mail_notices: !!e.mail_notices, renewals: !!e.renewals, portal: !!e.portal };\n  }\n\n  function toggle(index, flag) {\n    setDirty(true);\n    setRows(rows.map((r, i) => (i === index ? { ...r, [flag]: !r[flag] } : r)));\n  }\n\n  function add() {\n    const email = adding.trim().toLowerCase();\n    if (!email) return;\n    setDirty(true);\n    setRows([...rows, { email, mail_notices: true, renewals: false, portal: false, confirmed: false, isNew: true }]);\n    setAdding(\"\");\n  }\n\n  async function save() {\n    if (losesOwnAccess && !window.confirm(t(\"After saving you will no longer see this company here. Save?\"))) return;\n    setBusy(true);\n    setError(\"\");\n    try {\n      const answer = await api(`/api/settings/${firm.id}/emails/`, {\n        method: \"PUT\",\n        body: {\n          main_mail_notices: mainNotices,\n          emails: rows.map(strip),\n          previous: { main: state.main, main_mail_notices: state.main_mail_notices, emails: state.emails },\n        },\n      });\n      queryClient.invalidateQueries({ queryKey: ME });\n      setDirty(false);\n      if (answer.gone) return;\n      queryClient.setQueryData(key, answer);\n      notifications.show({ color: \"fmGreen\", message: t(\"Saved.\") });\n    } catch (e) {\n      // A refusal (e.g. changed meanwhile): the edits stay; \"Reload\" starts from the saved state\n      setError(e.message);\n    } finally {\n      setBusy(false);\n    }\n  }\n\n  function reload() {\n    setDirty(false);\n    setBase(null);\n    queryClient.invalidateQueries({ queryKey: key });\n  }\n\n  async function resend(email) {\n    try {\n      const answer = await api(`/api/settings/${firm.id}/emails/resend/`, { method: \"POST\", body: { email } });\n      notifications.show({ color: \"fmGreen\", message: answer.detail });\n      queryClient.invalidateQueries({ queryKey: key });\n    } catch (e) {\n      notifications.show({ color: \"fmRed\", message: e.message });\n    }\n  }\n\n  return (\n    <Paper withBorder p=\"lg\">\n      <Stack gap=\"md\">\n        <Title order={3} size=\"h5\">\n          {t(\"Who gets what\")}\n        </Title>\n        <div className=\"pt-table-wrap\">\n          <Table verticalSpacing=\"sm\" className=\"pt-emails\">\n            <Table.Thead>\n              <Table.Tr>\n                <Table.Th>{t(\"Address\")}</Table.Th>\n                {FLAGS.map((f) => (\n                  <Table.Th key={f.key} ta=\"center\">\n                    {f.label()}\n                  </Table.Th>\n                ))}\n                <Table.Th />\n              </Table.Tr>\n            </Table.Thead>\n            <Table.Tbody>\n              <Table.Tr>\n                <Table.Td>\n                  <Group gap={6} wrap=\"nowrap\">\n                    <Lock size={14} className=\"pt-muted-icon\" />\n                    <Text fw={600} className=\"pt-break\">\n                      {state.main}\n                    </Text>\n                  </Group>\n                  <Group gap={6}>\n                    <Text size=\"xs\" c=\"dimmed\">\n                      {t(\"main email\")}\n                    </Text>\n                    {editable && (\n                      <Anchor\n                        component=\"button\"\n                        type=\"button\"\n                        size=\"xs\"\n                        onClick={() =>\n                          openContact({ firm: firm.id, message: t(\"Please change our main email to:\") })\n                        }\n                      >\n                        {t(\"Ask for a change\")}\n                      </Anchor>\n                    )}\n                  </Group>\n                </Table.Td>\n                <Table.Td ta=\"center\">\n                  <Checkbox\n                    checked={mainNotices}\n                    onChange={() => {\n                      setDirty(true);\n                      setMainNotices(!mainNotices);\n                    }}\n                    disabled={!editable}\n                    aria-label={t(\"Mail notices\")}\n                    styles={{ body: { justifyContent: \"center\" } }}\n                  />\n                </Table.Td>\n                <Table.Td ta=\"center\">\n                  <Tooltip label={t(\"The main email always gets renewals.\")}>\n                    <span>\n                      <Checkbox checked disabled aria-label={t(\"Renewals\")} styles={{ body: { justifyContent: \"center\" } }} />\n                    </span>\n                  </Tooltip>\n                </Table.Td>\n                <Table.Td ta=\"center\">\n                  <Checkbox checked disabled aria-label={t(\"Access here\")} styles={{ body: { justifyContent: \"center\" } }} />\n                </Table.Td>\n                <Table.Td />\n              </Table.Tr>\n              {rows.map((row, index) => (\n                <Table.Tr key={row.email}>\n                  <Table.Td>\n                    <Text className=\"pt-break\">{row.email}</Text>\n                    {!row.confirmed && (\n                      <Group gap={6}>\n                        <Badge variant=\"light\" color=\"fmAmber\">\n                          {row.isNew ? t(\"will get a confirmation link\") : t(\"waiting for confirmation\")}\n                        </Badge>\n                        {editable && !row.isNew && (\n                          <Anchor component=\"button\" type=\"button\" size=\"xs\" onClick={() => resend(row.email)}>\n                            {t(\"Send the link again\")}\n                          </Anchor>\n                        )}\n                      </Group>\n                    )}\n                  </Table.Td>\n                  {FLAGS.map((f) => (\n                    <Table.Td key={f.key} ta=\"center\">\n                      <Checkbox\n                        checked={!!row[f.key]}\n                        onChange={() => toggle(index, f.key)}\n                        disabled={!editable}\n                        aria-label={`${f.label()}: ${row.email}`}\n                        styles={{ body: { justifyContent: \"center\" } }}\n                      />\n                    </Table.Td>\n                  ))}\n                  <Table.Td>\n                    {editable && (\n                      <Tooltip label={t(\"Remove\")}>\n                        <ActionIcon\n                          variant=\"subtle\"\n                          color=\"fmRed\"\n                          aria-label={t(\"Remove {{email}}\", { email: row.email })}\n                          onClick={() => {\n                            setDirty(true);\n                            setRows(rows.filter((_, i) => i !== index));\n                          }}\n                        >\n                          <Trash2 size={16} />\n                        </ActionIcon>\n                      </Tooltip>\n                    )}\n                  </Table.Td>\n                </Table.Tr>\n              ))}\n            </Table.Tbody>\n          </Table>\n        </div>\n        {editable && (\n          <Group align=\"flex-end\" wrap=\"nowrap\">\n            <TextInput\n              label={t(\"Add an address\")}\n              placeholder=\"ucetni@example.cz\"\n              type=\"email\"\n              value={adding}\n              onChange={(e) => setAdding(e.currentTarget.value)}\n              onKeyDown={(e) => e.key === \"Enter\" && add()}\n              style={{ flex: 1 }}\n            />\n            <Button variant=\"light\" leftSection={<Plus size={16} />} onClick={add} disabled={!adding.trim()}>\n              {t(\"Add\")}\n            </Button>\n          </Group>\n        )}\n        <Text size=\"sm\" c=\"dimmed\">\n          {t(\n            \"Renewals and the termination always go to the main email too. A new address gets a link to confirm it; until then it gets nothing.\"\n          )}\n        </Text>\n        {error && (\n          <Alert color=\"fmRed\">\n            {error}{\" \"}\n            <Anchor component=\"button\" type=\"button\" size=\"sm\" onClick={reload}>\n              {t(\"Load the saved state\")}\n            </Anchor>\n          </Alert>\n        )}\n        {editable && (\n          <Group justify=\"flex-end\">\n            <Button onClick={save} disabled={!changed} loading={busy}>\n              {t(\"Save\")}\n            </Button>\n          </Group>\n        )}\n      </Stack>\n    </Paper>\n  );\n}\n","import React from \"react\";\nimport { Alert, Paper, Stack, Tabs, Text, UnstyledButton } from \"@mantine/core\";\nimport { Lock } from \"lucide-react\";\nimport { t } from \"./i18n\";\nimport AppSettings from \"./AppSettings\";\nimport DeliverySettings from \"./DeliverySettings\";\nimport EmailsSettings from \"./EmailsSettings\";\n\n/** Nastavení: Doručení and E-maily of one company (\"All companies\" asks to pick one for\n * them), and Aplikace of this device (always there). */\nexport default function SettingsPage({ firms, current, tab, onTab, onChoose, openContact }) {\n  const firm = current === \"all\" ? null : firms.find((f) => f.id === current);\n  const tabs = (\n    <Tabs value={tab} onChange={(value) => value && onTab(value)} className=\"pt-tabs\">\n      <Tabs.List>\n        <Tabs.Tab value=\"delivery\">{t(\"Delivery\")}</Tabs.Tab>\n        <Tabs.Tab value=\"emails\">\n          {t(\"Emails\")}\n          {firm && firm.can_edit && firm.pending_emails > 0 && <span className=\"pt-nav-dot pt-tab-dot\" />}\n        </Tabs.Tab>\n        <Tabs.Tab value=\"app\">{t(\"App\")}</Tabs.Tab>\n      </Tabs.List>\n    </Tabs>\n  );\n  // The app and its notifications belong to the device, not to a company\n  if (tab === \"app\") {\n    return (\n      <Stack gap=\"md\">\n        {tabs}\n        <AppSettings />\n      </Stack>\n    );\n  }\n  if (!firm) {\n    return (\n      <Stack gap=\"md\">\n        {tabs}\n        <Stack gap=\"sm\">\n          <Text c=\"dimmed\">{t(\"Choose the company whose settings you want to see.\")}</Text>\n          {firms.map((f) => (\n            <UnstyledButton key={f.id} onClick={() => onChoose(f.id)}>\n              <Paper withBorder p=\"md\" className=\"pt-pick\">\n                <Text fw={600}>{f.name}</Text>\n              </Paper>\n            </UnstyledButton>\n          ))}\n        </Stack>\n      </Stack>\n    );\n  }\n  return (\n    <Stack gap=\"md\">\n      {!firm.can_edit && (\n        <Alert color=\"gray\" variant=\"light\" icon={<Lock size={16} />}>\n          {t(\"This company's settings are managed by its own email. You can only see them.\")}\n        </Alert>\n      )}\n      {tabs}\n      {tab === \"emails\" ? (\n        <EmailsSettings firm={firm} openContact={openContact} />\n      ) : (\n        <DeliverySettings firm={firm} openContact={openContact} />\n      )}\n    </Stack>\n  );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { ActionIcon, Box, Button, Container, Group, Menu, Text, Tooltip, UnstyledButton } from \"@mantine/core\";\nimport {\n  Building2,\n  CalendarClock,\n  Check,\n  ChevronDown,\n  Globe,\n  Inbox,\n  LogOut,\n  MessageCircle,\n  Plus,\n  Settings,\n  UserRound,\n} from \"lucide-react\";\nimport { api } from \"./api\";\nimport { renewPush } from \"./pwa\";\nimport { getLanguageFromCookie, setLanguage, t } from \"./i18n\";\nimport AddFirm from \"./AddFirm\";\nimport Brand from \"./Brand\";\nimport Contact from \"./Contact\";\nimport MailPage from \"./MailPage\";\nimport RenewalPage from \"./RenewalPage\";\nimport SettingsPage from \"./SettingsPage\";\n\nexport const ALL = \"all\";\n\n/** The page from the address: \"/\", \"/prodlouzeni\", \"/nastaveni\", \"/nastaveni/emaily\". */\nfunction routeFrom(pathname) {\n  if (pathname.startsWith(\"/prodlouzeni\")) return { page: \"renewal\" };\n  if (pathname.startsWith(\"/nastaveni/emaily\")) return { page: \"settings\", tab: \"emails\" };\n  if (pathname.startsWith(\"/nastaveni/aplikace\")) return { page: \"settings\", tab: \"app\" };\n  if (pathname.startsWith(\"/nastaveni\")) return { page: \"settings\", tab: \"delivery\" };\n  return { page: \"mail\" };\n}\n\nconst PATHS = { mail: \"/\", renewal: \"/prodlouzeni\", settings: \"/nastaveni\" };\n\nfunction FirmSwitcher({ firms, current, onChange, onAdd }) {\n  const label =\n    current === ALL ? t(\"All companies\") : firms.find((f) => f.id === current)?.name || t(\"Choose a company\");\n  return (\n    <Menu position=\"bottom-start\" shadow=\"md\" width={320}>\n      <Menu.Target>\n        <UnstyledButton className=\"pt-switcher\" aria-label={t(\"Choose a company\")}>\n          <Building2 size={18} />\n          <Text truncate=\"end\" fw={600}>\n            {label}\n          </Text>\n          <ChevronDown size={16} />\n        </UnstyledButton>\n      </Menu.Target>\n      <Menu.Dropdown>\n        {firms.length > 1 && (\n          <>\n            <Menu.Item onClick={() => onChange(ALL)} rightSection={current === ALL ? <Check size={16} /> : null}>\n              {t(\"All companies\")}\n            </Menu.Item>\n            <Menu.Divider />\n          </>\n        )}\n        {firms.map((f) => (\n          <Menu.Item\n            key={f.id}\n            onClick={() => onChange(f.id)}\n            rightSection={current === f.id ? <Check size={16} /> : null}\n          >\n            <Text size=\"sm\">{f.name}</Text>\n            {f.waiting > 0 && (\n              <Text size=\"xs\" c=\"dimmed\">\n                {t(\"Not collected: {{n}}\", { n: f.waiting })}\n              </Text>\n            )}\n          </Menu.Item>\n        ))}\n        <Menu.Divider />\n        <Menu.Item leftSection={<Plus size={16} />} onClick={onAdd}>\n          {t(\"Do you have another company with us?\")}\n        </Menu.Item>\n      </Menu.Dropdown>\n    </Menu>\n  );\n}\n\nfunction AccountMenu({ email }) {\n  const language = getLanguageFromCookie();\n  async function signOut() {\n    try {\n      await api(\"/api/logout/\", { method: \"POST\" });\n    } finally {\n      window.location.replace(\"/\");\n    }\n  }\n  return (\n    <Menu position=\"bottom-end\" shadow=\"md\" width={260}>\n      <Menu.Target>\n        <ActionIcon variant=\"subtle\" color=\"gray\" size=\"lg\" aria-label={t(\"Account\")}>\n          <UserRound size={20} />\n        </ActionIcon>\n      </Menu.Target>\n      <Menu.Dropdown>\n        <Menu.Label>{email}</Menu.Label>\n        <Menu.Item leftSection={<Globe size={16} />} onClick={() => setLanguage(language === \"en\" ? \"cs\" : \"en\")}>\n          {language === \"en\" ? \"Čeština\" : \"English\"}\n        </Menu.Item>\n        <Menu.Item leftSection={<LogOut size={16} />} onClick={signOut}>\n          {t(\"Sign out\")}\n        </Menu.Item>\n      </Menu.Dropdown>\n    </Menu>\n  );\n}\n\n/** The worst renewal state over the companies: \"overdue\" > \"due\" > \"\". */\nfunction renewalBadge(firms) {\n  if (firms.some((f) => f.renewal_badge === \"overdue\")) return \"overdue\";\n  if (firms.some((f) => f.renewal_badge === \"due\")) return \"due\";\n  return \"\";\n}\n\nfunction NavItems({ route, go, firms, className }) {\n  const waiting = firms.reduce((sum, f) => sum + f.waiting, 0);\n  const badge = renewalBadge(firms);\n  const pending = firms.some((f) => f.can_edit && f.pending_emails > 0);\n  // Prodloužení only when some company has a contract (P0 and our own companies have none)\n  const contract = firms.some((f) => f.has_contract !== false);\n  const items = [\n    {\n      page: \"mail\",\n      label: t(\"Mail items\"),\n      icon: Inbox,\n      extra: waiting > 0 ? <span className=\"pt-nav-badge\">{waiting}</span> : null,\n    },\n    {\n      page: \"renewal\",\n      label: t(\"Renewal\"),\n      icon: CalendarClock,\n      extra: badge ? (\n        <span className={`pt-nav-pill ${badge === \"overdue\" ? \"pt-nav-pill-red\" : \"\"}`}>\n          {badge === \"overdue\" ? t(\"overdue\") : t(\"to pay\")}\n        </span>\n      ) : null,\n    },\n    {\n      page: \"settings\",\n      label: t(\"Settings\"),\n      icon: Settings,\n      extra: pending ? <span className=\"pt-nav-dot\" title={t(\"An address waits for its confirmation\")} /> : null,\n    },\n  ];\n  return (\n    <nav className={className} aria-label={t(\"Sections\")}>\n      {items.filter((item) => item.page !== \"renewal\" || contract).map(({ page, label, icon: Icon, extra }) => (\n        <a\n          key={page}\n          href={PATHS[page]}\n          className=\"pt-nav-item\"\n          aria-current={route.page === page ? \"page\" : undefined}\n          onClick={(e) => {\n            if (e.metaKey || e.ctrlKey || e.shiftKey) return;\n            e.preventDefault();\n            go(PATHS[page]);\n          }}\n        >\n          <Icon size={18} className=\"pt-nav-icon\" />\n          <span className=\"pt-nav-label\">{label}</span>\n          {extra}\n        </a>\n      ))}\n    </nav>\n  );\n}\n\nexport default function Shell({ me }) {\n  const firms = me.firms;\n  const [current, setCurrent] = useState(firms.length === 1 ? firms[0].id : ALL);\n  const [contact, setContact] = useState(null);\n  const [adding, setAdding] = useState(false);\n  const [route, setRoute] = useState(() => routeFrom(window.location.pathname));\n  const openContact = (prefill = {}) => setContact(prefill);\n\n  // A new sign-in on a device with notifications allowed: register it for this session\n  useEffect(() => {\n    api(\"/api/push/\")\n      .then((answer) => renewPush(answer && answer.key))\n      .catch(() => {});\n  }, []);\n\n  useEffect(() => {\n    const onPop = () => setRoute(routeFrom(window.location.pathname));\n    window.addEventListener(\"popstate\", onPop);\n    return () => window.removeEventListener(\"popstate\", onPop);\n  }, []);\n\n  // A company that left the account (e.g. its own access removed) is no longer chosen\n  useEffect(() => {\n    if (current !== ALL && !firms.some((f) => f.id === current)) {\n      setCurrent(firms.length === 1 ? firms[0].id : ALL);\n    }\n  }, [firms, current]);\n\n  function go(path) {\n    if (window.location.pathname !== path) window.history.pushState(null, \"\", path);\n    setRoute(routeFrom(path));\n    window.scrollTo(0, 0);\n  }\n\n  let page;\n  if (route.page === \"renewal\") page = <RenewalPage firms={firms} current={current} openContact={openContact} />;\n  else if (route.page === \"settings\")\n    page = (\n      <SettingsPage\n        firms={firms}\n        current={current}\n        tab={route.tab}\n        onTab={(tab) =>\n          go(tab === \"emails\" ? \"/nastaveni/emaily\" : tab === \"app\" ? \"/nastaveni/aplikace\" : \"/nastaveni\")\n        }\n        onChoose={setCurrent}\n        openContact={openContact}\n      />\n    );\n  else page = <MailPage firms={firms} current={current} openContact={openContact} />;\n\n  return (\n    <Box className=\"pt-canvas\" mih=\"100vh\">\n      <header className=\"pt-header\">\n        <Container size=\"lg\" className=\"pt-header-inner\">\n          <Group gap=\"lg\" wrap=\"nowrap\" className=\"pt-header-left\">\n            <a\n              href=\"/\"\n              className=\"pt-logo\"\n              onClick={(e) => {\n                e.preventDefault();\n                go(\"/\");\n              }}\n            >\n              <Brand />\n            </a>\n            <NavItems route={route} go={go} firms={firms} className=\"pt-nav pt-nav-top\" />\n          </Group>\n          <Group gap=\"xs\" wrap=\"nowrap\">\n            <Tooltip label={t(\"Contact\")}>\n              <ActionIcon variant=\"subtle\" color=\"gray\" size=\"lg\" aria-label={t(\"Contact\")} onClick={() => openContact()}>\n                <MessageCircle size={20} />\n              </ActionIcon>\n            </Tooltip>\n            <AccountMenu email={me.email} />\n          </Group>\n        </Container>\n      </header>\n      <Container size=\"lg\" py=\"lg\" className=\"pt-main\">\n        {firms.length === 0 ? (\n          <Box ta=\"center\" py=\"xl\">\n            <Text fw={600} size=\"lg\">\n              {t(\"Your address has no company with us at the moment.\")}\n            </Text>\n            <Text c=\"dimmed\" mt=\"xs\">\n              {t(\"If that is a mistake, write to us.\")}\n            </Text>\n            <Group justify=\"center\" mt=\"md\">\n              <Button onClick={() => openContact()}>{t(\"Write to us\")}</Button>\n              <Button variant=\"light\" onClick={() => setAdding(true)}>\n                {t(\"Do you have another company with us?\")}\n              </Button>\n            </Group>\n          </Box>\n        ) : (\n          <>\n            <Group mb=\"md\">\n              <FirmSwitcher firms={firms} current={current} onChange={setCurrent} onAdd={() => setAdding(true)} />\n            </Group>\n            {page}\n          </>\n        )}\n      </Container>\n      <NavItems route={route} go={go} firms={firms} className=\"pt-nav pt-nav-bottom\" />\n      <Contact\n        opened={contact !== null}\n        prefill={contact || {}}\n        firms={firms}\n        current={current}\n        info={me.contact}\n        onClose={() => setContact(null)}\n      />\n      <AddFirm opened={adding} onClose={() => setAdding(false)} onAdded={(id) => id && setCurrent(id)} />\n    </Box>\n  );\n}\n","import React from \"react\";\nimport { Center, Loader, MantineProvider } from \"@mantine/core\";\nimport { Notifications } from \"@mantine/notifications\";\nimport { QueryClient, QueryClientProvider, useQuery } from \"@tanstack/react-query\";\nimport { firminTheme } from \"../../firminadmin/src/theme\";\n\n// The phone's own font (SF Pro, Roboto, Segoe UI): no web font to download, and the\n// portal feels like an app there. The operator UI keeps its bundled Inter.\nconst SYSTEM_FONT =\n  \"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\";\nconst portalTheme = {\n  ...firminTheme,\n  fontFamily: SYSTEM_FONT,\n  headings: { ...firminTheme.headings, fontFamily: SYSTEM_FONT },\n};\nimport { api, ME } from \"./api\";\nimport ConfirmPage from \"./ConfirmPage\";\nimport Login, { LinkLogin } from \"./Login\";\nimport Shell from \"./Shell\";\n\nexport function makeQueryClient() {\n  return new QueryClient({\n    defaultOptions: {\n      queries: {\n        retry: (count, error) => error.status !== 401 && error.status !== 404 && count < 2,\n        refetchOnWindowFocus: true,\n      },\n    },\n  });\n}\n\nconst queryClient = makeQueryClient();\n\nexport function Portal() {\n  const isLink = window.location.pathname.startsWith(\"/prihlaseni/odkaz\");\n  const isConfirm = window.location.pathname.startsWith(\"/potvrzeni\");\n  const me = useQuery({\n    queryKey: ME,\n    queryFn: () => api(\"/api/me/\"),\n    enabled: !isLink && !isConfirm,\n    // Signed in: check on return to the tab (a session may have ended). Signed out: never,\n    // or a refetch would remount the sign-in and drop the code step (Jay, 27. 11.)\n    refetchOnWindowFocus: (query) => query.state.data !== undefined,\n  });\n  if (isLink) return <LinkLogin />;\n  if (isConfirm) return <ConfirmPage />;\n  // A session that ended meanwhile (401 on a refetch) keeps its old data: sign in again\n  if (me.data && !(me.error && me.error.status === 401)) return <Shell me={me.data} />;\n  if (me.isPending && !me.isError) {\n    return (\n      <Center h=\"100vh\">\n        <Loader />\n      </Center>\n    );\n  }\n  return <Login />;\n}\n\nexport function Providers({ children, client = queryClient }) {\n  return (\n    <MantineProvider theme={portalTheme}>\n      <Notifications position=\"top-center\" />\n      <QueryClientProvider client={client}>{children}</QueryClientProvider>\n    </MantineProvider>\n  );\n}\n\nexport default function App() {\n  return (\n    <Providers>\n      <Portal />\n    </Providers>\n  );\n}\n","import { focusManager } from \"./focusManager.js\";\nimport { MutationCache } from \"./mutationCache.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { QueryCache } from \"./queryCache.js\";\nimport { functionalUpdate, hashKey, hashQueryKeyByOptions, noop, partialMatchKey, resolveQueryValue, skipToken } from \"./utils.js\";\n// src/queryClient.ts\n/**\n* `QueryClient` is used to interact with a cache of queries and mutations. It owns a\n* `QueryCache` and a `MutationCache` (creating default ones if none are passed in) and holds\n* the default options that are applied to queries and mutations created through it.\n* @example\n* ```ts\n* const queryClient = new QueryClient({\n*   defaultOptions: {\n*     queries: {\n*       staleTime: Infinity,\n*     },\n*   },\n* })\n*\n* await queryClient.query({ queryKey: ['posts'], queryFn: fetchPosts })\n* ```\n*/\nvar QueryClient = class {\n\t#queryCache;\n\t#mutationCache;\n\t#defaultOptions;\n\t#queryDefaults;\n\t#mutationDefaults;\n\t#mountCount;\n\t#unsubscribeFocus;\n\t#unsubscribeOnline;\n\tconstructor(config = {}) {\n\t\tthis.#queryCache = config.queryCache || new QueryCache();\n\t\tthis.#mutationCache = config.mutationCache || new MutationCache();\n\t\tthis.#defaultOptions = config.defaultOptions || {};\n\t\tthis.#queryDefaults = /* @__PURE__ */ new Map();\n\t\tthis.#mutationDefaults = /* @__PURE__ */ new Map();\n\t\tthis.#mountCount = 0;\n\t}\n\t/**\n\t* Called by a framework adapter's `QueryClientProvider`-equivalent when it mounts, to start\n\t* listening for focus/online events and resume paused mutations. Ref-counted via an internal\n\t* mount count, so nested or multiple providers sharing the same `QueryClient` don't tear down\n\t* the shared listeners until the last one unmounts.\n\t*/\n\tmount() {\n\t\tthis.#mountCount++;\n\t\tif (this.#mountCount !== 1) return;\n\t\tthis.#unsubscribeFocus = focusManager.subscribe(async (focused) => {\n\t\t\tif (focused) {\n\t\t\t\tawait this.resumePausedMutations();\n\t\t\t\tthis.#queryCache.onFocus();\n\t\t\t}\n\t\t});\n\t\tthis.#unsubscribeOnline = onlineManager.subscribe(async (online) => {\n\t\t\tif (online) {\n\t\t\t\tawait this.resumePausedMutations();\n\t\t\t\tthis.#queryCache.onOnline();\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* The inverse of {@link QueryClient#mount} — called by a framework adapter's\n\t* `QueryClientProvider`-equivalent when it unmounts. Only tears down the focus/online\n\t* listeners once the mount count returns to `0`.\n\t*/\n\tunmount() {\n\t\tthis.#mountCount--;\n\t\tif (this.#mountCount !== 0) return;\n\t\tthis.#unsubscribeFocus?.();\n\t\tthis.#unsubscribeFocus = void 0;\n\t\tthis.#unsubscribeOnline?.();\n\t\tthis.#unsubscribeOnline = void 0;\n\t}\n\t/**\n\t* Returns the number of queries in the cache that are currently fetching, optionally\n\t* matching a set of filters. This includes background-fetching, loading new pages, and\n\t* loading more infinite query results.\n\t* @param filters - Narrows down which fetching queries are counted. Without filters, every\n\t* fetching query is counted.\n\t* @returns The number of matching queries whose `fetchStatus` is `'fetching'`.\n\t* @example\n\t* ```ts\n\t* if (queryClient.isFetching()) {\n\t*   console.log('At least one query is fetching!')\n\t* }\n\t* ```\n\t*/\n\tisFetching(filters) {\n\t\treturn this.#queryCache.findAll({\n\t\t\t...filters,\n\t\t\tfetchStatus: \"fetching\"\n\t\t}).length;\n\t}\n\t/**\n\t* Returns the number of mutations in the cache that are currently pending, optionally\n\t* matching a set of filters.\n\t* @param filters - Narrows down which pending mutations are counted. Without filters, every\n\t* pending mutation is counted.\n\t* @returns The number of matching mutations whose `status` is `'pending'`.\n\t* @example\n\t* ```ts\n\t* if (queryClient.isMutating()) {\n\t*   console.log('At least one mutation is pending!')\n\t* }\n\t* ```\n\t*/\n\tisMutating(filters) {\n\t\treturn this.#mutationCache.findAll({\n\t\t\t...filters,\n\t\t\tstatus: \"pending\"\n\t\t}).length;\n\t}\n\t/**\n\t* Imperative (non-reactive) way to retrieve data for a QueryKey.\n\t* Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.\n\t*\n\t* Hint: Do not use this function inside a component, because it won't receive updates.\n\t* Use `useQuery` to create a `QueryObserver` that subscribes to changes.\n\t* @param queryKey - The query key of the query to read.\n\t* @returns The cached data for the query, or `undefined` if no query with this key has been observed yet.\n\t* @see {@link QueryClient#getQueriesData}\n\t*/\n\tgetQueryData(queryKey) {\n\t\tconst options = this.defaultQueryOptions({ queryKey });\n\t\treturn this.#queryCache.get(options.queryHash)?.state.data;\n\t}\n\t/**\n\t* Returns the cached data of a query, or fetches it if there is none. With `revalidateIfStale`,\n\t* stale cached data is also refetched in the background.\n\t* @param options - The query options. If the query has no cached data yet, it is fetched with\n\t* these options.\n\t* @returns A promise that resolves to the cached data, or to the fetched data if nothing was\n\t* cached yet.\n\t* @deprecated Use queryClient.query({ ...options, staleTime: 'static' }) instead. This method will be removed in the next major version.\n\t*/\n\tensureQueryData(options) {\n\t\tconst defaultedOptions = this.defaultQueryOptions(options);\n\t\tconst query = this.#queryCache.build(this, defaultedOptions);\n\t\tconst cachedData = query.state.data;\n\t\tif (cachedData === void 0) return this.fetchQuery(options);\n\t\tif (options.revalidateIfStale && query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime, query))) this.prefetchQuery(defaultedOptions);\n\t\treturn Promise.resolve(cachedData);\n\t}\n\t/**\n\t* Imperative (non-reactive) way to retrieve the cached data of multiple queries at once.\n\t* Only queries matching the given filters are returned; if none match, an empty array is\n\t* returned.\n\t*\n\t* Because the matched queries can hold data of different shapes (e.g. a broad filter can match\n\t* queries with unrelated data types), the `TQueryFnData` generic defaults to `unknown` rather\n\t* than being inferred. Passing a more specific type is a convenience for call sites that know\n\t* every matched query holds the same shape — it is not checked against the actual cache\n\t* contents.\n\t* @param filters - The filters that select which queries to read.\n\t* @returns An array of query key and data pairs. The data is `undefined` for a query with no cached data.\n\t* @see {@link QueryClient#getQueryData}\n\t* @example\n\t* ```ts\n\t* const data = queryClient.getQueriesData({ queryKey: ['posts'] })\n\t* ```\n\t*/\n\tgetQueriesData(filters) {\n\t\treturn this.#queryCache.findAll(filters).map(({ queryKey, state }) => {\n\t\t\treturn [queryKey, state.data];\n\t\t});\n\t}\n\t/**\n\t* Synchronous way to immediately update a query's cached data. If the updater (or the value\n\t* passed) resolves to `undefined`, the cache is left untouched and no query is created;\n\t* otherwise, if the query does not exist yet, it will be created. To update multiple queries\n\t* at once by partially matching query keys, use {@link QueryClient#setQueriesData} instead.\n\t*\n\t* Updates must be performed immutably: do not mutate `oldData`, or data previously retrieved\n\t* via {@link QueryClient#getQueryData}, in place.\n\t* @param queryKey - The query key to set data for.\n\t* @param updater - Either the new data, or a function that receives the current data (which\n\t* may be `undefined`) and returns the new data.\n\t* @param options - Set `updatedAt` to override the timestamp the written data is recorded with.\n\t* @returns The data that was written, or `undefined` if the updater returned `undefined` — in that case\n\t* the write is skipped and the cache is left unchanged.\n\t* @example\n\t* ```ts\n\t* queryClient.setQueryData(['posts'], newPosts)\n\t*\n\t* // Or, using an updater function that receives the current data:\n\t* queryClient.setQueryData(['posts'], (oldPosts) => [...oldPosts, newPost])\n\t* ```\n\t*/\n\tsetQueryData(queryKey, updater, options) {\n\t\tconst defaultedOptions = this.defaultQueryOptions({ queryKey });\n\t\tconst prevData = this.#queryCache.get(defaultedOptions.queryHash)?.state.data;\n\t\tconst data = functionalUpdate(updater, prevData);\n\t\tif (data === void 0) return;\n\t\treturn this.#queryCache.build(this, defaultedOptions).setData(data, {\n\t\t\t...options,\n\t\t\tmanual: true\n\t\t});\n\t}\n\t/**\n\t* Synchronous way to immediately update the cached data of multiple queries at once, using\n\t* filters or partial query key matching. Only queries that already exist and match the given\n\t* filters are updated; no new cache entries are created. Internally this calls\n\t* {@link QueryClient#setQueryData} for each matching query.\n\t* @param filters - The filters that select which existing queries to update.\n\t* @param updater - Either the new data, or a function that receives each matched query's current\n\t* data (which may be `undefined`) and returns the new data.\n\t* @param options - Set `updatedAt` to override the timestamp the written data is recorded with.\n\t* @returns One `[queryKey, data]` tuple per matched query, in the same shape and with the same\n\t* `undefined` case as {@link QueryClient#setQueryData}.\n\t* @example\n\t* ```ts\n\t* queryClient.setQueriesData({ queryKey: ['posts'] }, (oldPosts) =>\n\t*   oldPosts ? oldPosts.filter((post) => post.id !== deletedId) : oldPosts,\n\t* )\n\t* ```\n\t*/\n\tsetQueriesData(filters, updater, options) {\n\t\treturn notifyManager.batch(() => this.#queryCache.findAll(filters).map(({ queryKey }) => [queryKey, this.setQueryData(queryKey, updater, options)]));\n\t}\n\t/**\n\t* Imperative (non-reactive) way to retrieve an existing query's state. If the query does not\n\t* exist, `undefined` is returned.\n\t* @param queryKey - The query key of the query to read.\n\t* @returns The query's state, or `undefined` if no query with this key exists.\n\t* @example\n\t* ```ts\n\t* const state = queryClient.getQueryState(['posts'])\n\t* console.log(state?.dataUpdatedAt)\n\t* ```\n\t*/\n\tgetQueryState(queryKey) {\n\t\tconst options = this.defaultQueryOptions({ queryKey });\n\t\treturn this.#queryCache.get(options.queryHash)?.state;\n\t}\n\t/**\n\t* Removes queries from the cache that match the given filters. Unlike\n\t* {@link QueryClient#invalidateQueries} or {@link QueryClient#refetchQueries}, this removes\n\t* matching queries from the cache instead of refetching them. Without filters, every query in\n\t* the cache is removed.\n\t* @param filters - The filters that select which queries to remove. Without filters, every query\n\t* is removed.\n\t* @example\n\t* ```ts\n\t* queryClient.removeQueries({ queryKey: ['posts'], exact: true })\n\t* ```\n\t*/\n\tremoveQueries(filters) {\n\t\tconst queryCache = this.#queryCache;\n\t\tnotifyManager.batch(() => {\n\t\t\tqueryCache.findAll(filters).forEach((query) => {\n\t\t\t\tqueryCache.remove(query);\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Resets queries matching the given filters back to their initial state (e.g. any\n\t* `initialData`), notifying subscribers rather than removing them. Active queries among the\n\t* matched set are then refetched, and the returned promise resolves once that refetch settles.\n\t* @param filters - The filters that select which queries to reset. Without filters, every query\n\t* is reset.\n\t* @param options - Passed to the refetch of the active matched queries, e.g. `cancelRefetch` and\n\t* `throwOnError`.\n\t* @returns A promise that resolves once the refetch of the active matched queries settles.\n\t* @example\n\t* ```ts\n\t* await queryClient.resetQueries({ queryKey: ['posts'], exact: true })\n\t* ```\n\t*/\n\tresetQueries(filters, options) {\n\t\tconst queryCache = this.#queryCache;\n\t\treturn notifyManager.batch(() => {\n\t\t\tconst matched = queryCache.findAll(filters);\n\t\t\tconst queriesToRefetch = new Set(matched);\n\t\t\tmatched.forEach((query) => {\n\t\t\t\tquery.reset();\n\t\t\t});\n\t\t\treturn this.refetchQueries({\n\t\t\t\ttype: \"active\",\n\t\t\t\tpredicate: (query) => queriesToRefetch.has(query)\n\t\t\t}, options);\n\t\t});\n\t}\n\t/**\n\t* Cancels outgoing fetches for queries matching the given filters. Most useful when performing\n\t* optimistic updates, since any outgoing refetch that resolves afterwards would otherwise\n\t* overwrite the optimistic update. By default (`revert: true`), a cancelled query's data is\n\t* reverted to its state before the outgoing fetch started.\n\t*\n\t* The returned promise never rejects, even if individual cancellations fail.\n\t* @param filters - The filters that select which queries to cancel. Without filters, every query\n\t* is cancelled.\n\t* @param cancelOptions - Passed to each matched query's cancellation. `revert` defaults to\n\t* `true`.\n\t* @returns A promise that resolves once every cancellation has settled.\n\t* @example\n\t* ```ts\n\t* await queryClient.cancelQueries({ queryKey: ['posts'], exact: true })\n\t* ```\n\t*/\n\tcancelQueries(filters, cancelOptions = {}) {\n\t\tconst defaultedCancelOptions = {\n\t\t\trevert: true,\n\t\t\t...cancelOptions\n\t\t};\n\t\tconst promises = notifyManager.batch(() => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions)));\n\t\treturn Promise.all(promises).then(noop).catch(noop);\n\t}\n\t/**\n\t* Marks queries matching the given filters as invalidated. Unlike\n\t* {@link QueryClient#removeQueries}, invalidated queries stay in the cache.\n\t*\n\t* Unless `filters.refetchType` is `'none'`, matching queries are then refetched via\n\t* {@link QueryClient#refetchQueries}, using `filters.refetchType` if set, otherwise\n\t* `filters.type`, otherwise `'active'`.\n\t* @param filters - The filters that select which queries to invalidate, plus `refetchType` to\n\t* control which of them to refetch afterwards. Without filters, every query is invalidated.\n\t* @param options - Passed to {@link QueryClient#refetchQueries}, e.g. `cancelRefetch` and\n\t* `throwOnError`.\n\t* @returns A promise that resolves once the refetch settles, or immediately if `refetchType` is\n\t* `'none'`.\n\t* @example\n\t* ```ts\n\t* await queryClient.invalidateQueries({ queryKey: ['posts'], refetchType: 'active' })\n\t* ```\n\t*/\n\tinvalidateQueries(filters, options = {}) {\n\t\treturn notifyManager.batch(() => {\n\t\t\tthis.#queryCache.findAll(filters).forEach((query) => {\n\t\t\t\tquery.invalidate();\n\t\t\t});\n\t\t\tif (filters?.refetchType === \"none\") return Promise.resolve();\n\t\t\treturn this.refetchQueries({\n\t\t\t\t...filters,\n\t\t\t\ttype: filters?.refetchType ?? filters?.type ?? \"active\"\n\t\t\t}, options);\n\t\t});\n\t}\n\t/**\n\t* Refetches queries matching the given filters, regardless of whether they are stale. Without\n\t* filters, every query in the cache is refetched. Queries that are disabled, or static (only\n\t* have observers with a static `staleTime`), are never refetched.\n\t*\n\t* By default (`cancelRefetch: true`), a currently running fetch is cancelled before the new\n\t* one starts. The returned promise does not reject on individual query failures unless\n\t* `throwOnError` is `true`.\n\t*\n\t* Initially paused fetches do not delay the returned promise. Their later errors are handled\n\t* even when `throwOnError` is `true`.\n\t* @param filters - The filters that select which queries to refetch. Without filters, every query\n\t* in the cache is included.\n\t* @param options - Set `cancelRefetch` to `false` to keep a running fetch instead of cancelling\n\t* it, and `throwOnError` to `true` to reject when a refetch that was not initially paused fails.\n\t* @returns A promise that resolves once all matching refetches that were not initially paused\n\t* have settled.\n\t* @example\n\t* ```ts\n\t* // refetch all active queries partially matching a query key:\n\t* await queryClient.refetchQueries({ queryKey: ['posts'], type: 'active' })\n\t* ```\n\t*/\n\trefetchQueries(filters, options = {}) {\n\t\tconst fetchOptions = {\n\t\t\t...options,\n\t\t\tcancelRefetch: options.cancelRefetch ?? true\n\t\t};\n\t\tconst promises = notifyManager.batch(() => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {\n\t\t\tlet promise = query.fetch(void 0, fetchOptions);\n\t\t\tconst isPaused = query.state.fetchStatus === \"paused\";\n\t\t\tif (!fetchOptions.throwOnError || isPaused) promise = promise.catch(noop);\n\t\t\treturn isPaused ? Promise.resolve() : promise;\n\t\t}));\n\t\treturn Promise.all(promises).then(noop);\n\t}\n\t/**\n\t* Asynchronous method to fetch and cache a query, resolving with the data or throwing with\n\t* the error.\n\t*\n\t* If the query already exists in the cache and its data is not stale (per the given\n\t* `staleTime`), the cached data is returned without fetching. Otherwise, the query is fetched\n\t* and the promise resolves once the fetch settles. If a `select` function is provided, it is\n\t* applied to the data in both cases (cached or freshly fetched) before it is returned.\n\t*\n\t* Unlike a reactive observer, retries are disabled by default here (`retry: false`) unless\n\t* explicitly configured, since there is no component to catch a thrown error and retry through\n\t* re-render.\n\t*\n\t* The accepted options are `QueryObserverOptions` minus the fields that only make sense for a\n\t* reactive observer — `enabled`, `refetchInterval`, `refetchIntervalInBackground`,\n\t* `refetchOnWindowFocus`, `refetchOnReconnect`, `refetchOnMount`, `retryOnMount`,\n\t* `notifyOnChangeProps`, `throwOnError`, `suspense`, and `placeholderData` are not part of this\n\t* method's options.\n\t*\n\t* This method replaces the deprecated `fetchQuery`, and — combined with\n\t* `{ staleTime: 'static' }` — the deprecated `ensureQueryData`.\n\t* @param options - The query options, including the `queryKey` and the `queryFn` used if the\n\t* query needs to fetch.\n\t* @returns A promise that resolves to the data, or to the result of `select` if provided. It\n\t* rejects with the error from the fetch or from `select`.\n\t* @example\n\t* ```ts\n\t* try {\n\t*   const data = await queryClient.query({ queryKey, queryFn, staleTime: 10000 })\n\t* } catch (error) {\n\t*   console.log(error)\n\t* }\n\t* ```\n\t*/\n\tasync query(options) {\n\t\tconst defaultedOptions = this.defaultQueryOptions(options);\n\t\tif (defaultedOptions.retry === void 0) defaultedOptions.retry = false;\n\t\tconst query = this.#queryCache.build(this, defaultedOptions);\n\t\tconst queryData = query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime, query)) ? await query.fetch(defaultedOptions) : query.state.data;\n\t\tconst select = defaultedOptions.select;\n\t\tif (select) return select(queryData);\n\t\treturn queryData;\n\t}\n\t/**\n\t* Fetches and caches a query, or returns its cached data if it isn't stale. Unlike in observers,\n\t* the fetch isn't retried unless `retry` is set.\n\t* @param options - The query options, including the `queryKey` and the `queryFn` used if the\n\t* query needs to fetch.\n\t* @returns A promise that resolves to the cached or fetched data, or rejects with the fetch\n\t* error.\n\t* @deprecated Use queryClient.query(options) instead. This method will be removed in the next major version.\n\t*/\n\tfetchQuery(options) {\n\t\tconst defaultedOptions = this.defaultQueryOptions(options);\n\t\tif (defaultedOptions.retry === void 0) defaultedOptions.retry = false;\n\t\tconst query = this.#queryCache.build(this, defaultedOptions);\n\t\treturn query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime, query)) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);\n\t}\n\t/**\n\t* Fetches and caches a query like {@link QueryClient#fetchQuery}, but ignores the result and any\n\t* error.\n\t* @param options - The query options, including the `queryKey` and the `queryFn` used if the\n\t* query needs to fetch.\n\t* @returns A promise that resolves once the fetch settles. It never rejects.\n\t* @deprecated Use queryClient.query(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version.\n\t*/\n\tprefetchQuery(options) {\n\t\treturn this.fetchQuery(options).then(noop).catch(noop);\n\t}\n\t/**\n\t* Asynchronous method to fetch and cache an infinite query, resolving with an\n\t* {@link InfiniteData} object or throwing with the error.\n\t*\n\t* Requires `initialPageParam` and `getNextPageParam`. Use `pages` to specify how many\n\t* pages to fetch. If you omit `pages`, the client fetches up to the number of cached\n\t* pages, or one page if the cache has no pages.\n\t*\n\t* This method replaces the deprecated `fetchInfiniteQuery`, and — combined with\n\t* `{ staleTime: 'static' }` — the deprecated `ensureInfiniteQueryData`.\n\t* @param options - The query to fetch and the options that control which pages to fetch.\n\t* @returns A promise that resolves to the {@link InfiniteData}, or to the result of `select` if\n\t* provided. It rejects with the error from the fetch or from `select`.\n\t* @example\n\t* ```ts\n\t* try {\n\t*   const data = await queryClient.infiniteQuery({\n\t*     queryKey,\n\t*     queryFn,\n\t*     initialPageParam: 0,\n\t*     getNextPageParam: (lastPage) => lastPage.nextCursor,\n\t*   })\n\t*   console.log(data.pages)\n\t* } catch (error) {\n\t*   console.log(error)\n\t* }\n\t* ```\n\t*/\n\tinfiniteQuery(options) {\n\t\toptions._type = \"infinite\";\n\t\treturn this.query(options);\n\t}\n\t/**\n\t* Fetches and caches an infinite query, or returns its cached data if it isn't stale.\n\t* @param options - The infinite query options, including `initialPageParam` and `getNextPageParam`.\n\t* @returns A promise that resolves to the cached or fetched {@link InfiniteData}, or rejects with\n\t* the fetch error.\n\t* @deprecated Use queryClient.infiniteQuery(options) instead. This method will be removed in the next major version.\n\t*/\n\tfetchInfiniteQuery(options) {\n\t\toptions._type = \"infinite\";\n\t\treturn this.fetchQuery(options);\n\t}\n\t/**\n\t* Fetches and caches an infinite query like {@link QueryClient#fetchInfiniteQuery}, but ignores\n\t* the result and any error.\n\t* @param options - The infinite query options, including `initialPageParam` and `getNextPageParam`.\n\t* @returns A promise that resolves once the fetch settles. It never rejects.\n\t* @deprecated Use queryClient.infiniteQuery(options) instead. You can swallow errors with `.catch(noop)`. This method will be removed in the next major version.\n\t*/\n\tprefetchInfiniteQuery(options) {\n\t\treturn this.fetchInfiniteQuery(options).then(noop).catch(noop);\n\t}\n\t/**\n\t* Returns the cached data of an infinite query, or fetches it if there is none. With\n\t* `revalidateIfStale`, stale cached data is also refetched in the background.\n\t* @param options - The infinite query options, including `initialPageParam` and `getNextPageParam`.\n\t* @returns A promise that resolves to the cached {@link InfiniteData}, or to the fetched data if\n\t* nothing was cached yet.\n\t* @deprecated Use queryClient.infiniteQuery({ ...options, staleTime: 'static' }) instead. This method will be removed in the next major version.\n\t*/\n\tensureInfiniteQueryData(options) {\n\t\toptions._type = \"infinite\";\n\t\treturn this.ensureQueryData(options);\n\t}\n\t/**\n\t* Resumes mutations that were paused because there was no network connection. Does nothing\n\t* (resolving immediately) if the client is currently offline.\n\t* @returns A promise that resolves once the resumed mutations have settled.\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* await queryClient.resumePausedMutations()\n\t* ```\n\t*/\n\tresumePausedMutations() {\n\t\tif (onlineManager.isOnline()) return this.#mutationCache.resumePausedMutations();\n\t\treturn Promise.resolve();\n\t}\n\t/**\n\t* Returns the query cache this client is connected to.\n\t* @returns The {@link QueryCache} instance.\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* const queryCache = queryClient.getQueryCache()\n\t* const queries = queryCache.findAll({ queryKey: ['posts'] })\n\t* ```\n\t*/\n\tgetQueryCache() {\n\t\treturn this.#queryCache;\n\t}\n\t/**\n\t* Returns the mutation cache this client is connected to.\n\t* @returns The {@link MutationCache} instance.\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* const mutationCache = queryClient.getMutationCache()\n\t* const mutations = mutationCache.findAll({ status: 'pending' })\n\t* ```\n\t*/\n\tgetMutationCache() {\n\t\treturn this.#mutationCache;\n\t}\n\t/**\n\t* Returns the default options that were set when creating the client, or via\n\t* {@link QueryClient#setDefaultOptions}.\n\t* @returns The client's current default options.\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* const defaultOptions = queryClient.getDefaultOptions()\n\t* ```\n\t*/\n\tgetDefaultOptions() {\n\t\treturn this.#defaultOptions;\n\t}\n\t/**\n\t* Dynamically sets the default options for this client, overwriting any previously defined\n\t* default options.\n\t* @param options - The new default options for queries and mutations.\n\t* @see {@link QueryClient#getDefaultOptions}\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* queryClient.setDefaultOptions({\n\t*   queries: {\n\t*     staleTime: Infinity,\n\t*   },\n\t* })\n\t* ```\n\t*/\n\tsetDefaultOptions(options) {\n\t\tthis.#defaultOptions = options;\n\t}\n\t/**\n\t* Sets default options for queries whose query key partially matches the given `queryKey`.\n\t*\n\t* If several registered query defaults match a given query key, they are merged together in\n\t* registration order by {@link QueryClient#getQueryDefaults}, so register defaults from the\n\t* most generic key to the least generic one — more specific defaults should be registered\n\t* after more generic ones so they take precedence.\n\t* @param queryKey - The query key that query keys are partially matched against.\n\t* @param options - The default options applied to matching queries.\n\t* @example\n\t* ```ts\n\t* queryClient.setQueryDefaults(['posts'], { queryFn: fetchPosts })\n\t*\n\t* await queryClient.query({ queryKey: ['posts'] })\n\t* ```\n\t*/\n\tsetQueryDefaults(queryKey, options) {\n\t\tthis.#queryDefaults.set(hashKey(queryKey), {\n\t\t\tqueryKey,\n\t\t\tdefaultOptions: options\n\t\t});\n\t}\n\t/**\n\t* Returns the default options registered for queries whose query key partially matches the\n\t* given `queryKey`, via {@link QueryClient#setQueryDefaults}. If multiple registered defaults\n\t* match, they are merged together in registration order.\n\t* @param queryKey - The query key to look up registered defaults for.\n\t* @returns The merged default options of every registration that matches, or an empty object if\n\t* none match.\n\t* @example\n\t* ```ts\n\t* const defaultOptions = queryClient.getQueryDefaults(['posts'])\n\t* ```\n\t*/\n\tgetQueryDefaults(queryKey) {\n\t\tconst defaults = [...this.#queryDefaults.values()];\n\t\tconst result = {};\n\t\tdefaults.forEach((queryDefault) => {\n\t\t\tif (partialMatchKey(queryKey, queryDefault.queryKey)) Object.assign(result, queryDefault.defaultOptions);\n\t\t});\n\t\treturn result;\n\t}\n\t/**\n\t* Sets default options for mutations whose mutation key partially matches the given\n\t* `mutationKey`. As with {@link QueryClient#setQueryDefaults}, the order of registration\n\t* matters when several registered defaults match the same mutation key.\n\t* @param mutationKey - The mutation key that mutation keys are partially matched against.\n\t* @param options - The default options applied to matching mutations.\n\t* @see {@link QueryClient#getMutationDefaults}\n\t* @example\n\t* ```ts\n\t* queryClient.setMutationDefaults(['addPost'], { mutationFn: addPost })\n\t* ```\n\t*/\n\tsetMutationDefaults(mutationKey, options) {\n\t\tthis.#mutationDefaults.set(hashKey(mutationKey), {\n\t\t\tmutationKey,\n\t\t\tdefaultOptions: options\n\t\t});\n\t}\n\t/**\n\t* Returns the default options registered for mutations whose mutation key partially matches\n\t* the given `mutationKey`, via {@link QueryClient#setMutationDefaults}. If multiple registered\n\t* defaults match, they are merged together in registration order.\n\t* @param mutationKey - The mutation key to look up registered defaults for.\n\t* @returns The merged default options of every registration that matches, or an empty object if\n\t* none match.\n\t* @example\n\t* ```ts\n\t* const defaultOptions = queryClient.getMutationDefaults(['addPost'])\n\t* ```\n\t*/\n\tgetMutationDefaults(mutationKey) {\n\t\tconst defaults = [...this.#mutationDefaults.values()];\n\t\tconst result = {};\n\t\tdefaults.forEach((queryDefault) => {\n\t\t\tif (partialMatchKey(mutationKey, queryDefault.mutationKey)) Object.assign(result, queryDefault.defaultOptions);\n\t\t});\n\t\treturn result;\n\t}\n\t/**\n\t* Called by framework adapters (e.g. inside `useQuery`) to resolve the options passed by the\n\t* caller into their final, defaulted form: merging the client's own `defaultOptions.queries`,\n\t* then `queryClient.setQueryDefaults` for the given `queryKey`, then the caller's options on\n\t* top. A no-op if the options are already defaulted (`_defaulted: true`).\n\t* @param options - The query options passed by the caller.\n\t* @returns The defaulted options, with `queryHash` and dependent defaults (e.g.\n\t* `refetchOnReconnect`) filled in.\n\t*/\n\tdefaultQueryOptions(options) {\n\t\tif (options._defaulted) return options;\n\t\tconst defaultedOptions = {\n\t\t\t...this.#defaultOptions.queries,\n\t\t\t...this.getQueryDefaults(options.queryKey),\n\t\t\t...options,\n\t\t\t_defaulted: true\n\t\t};\n\t\tif (!defaultedOptions.queryHash) defaultedOptions.queryHash = hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions);\n\t\tif (defaultedOptions.refetchOnReconnect === void 0) defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== \"always\";\n\t\tif (defaultedOptions.throwOnError === void 0) defaultedOptions.throwOnError = !!defaultedOptions.suspense;\n\t\tif (!defaultedOptions.networkMode && defaultedOptions.persister) defaultedOptions.networkMode = \"offlineFirst\";\n\t\tif (defaultedOptions.queryFn === skipToken) defaultedOptions.enabled = false;\n\t\treturn defaultedOptions;\n\t}\n\t/**\n\t* The mutation counterpart of {@link QueryClient#defaultQueryOptions}. Called by framework\n\t* adapters (e.g. inside `useMutation`) to merge the client's `defaultOptions.mutations`, then\n\t* `queryClient.setMutationDefaults` for the given `mutationKey`, then the caller's options on\n\t* top. A no-op if the options are already defaulted (`_defaulted: true`).\n\t* @param options - The mutation options passed by the caller.\n\t* @returns The defaulted options.\n\t*/\n\tdefaultMutationOptions(options) {\n\t\tif (options?._defaulted) return options;\n\t\treturn {\n\t\t\t...this.#defaultOptions.mutations,\n\t\t\t...options?.mutationKey && this.getMutationDefaults(options.mutationKey),\n\t\t\t...options,\n\t\t\t_defaulted: true\n\t\t};\n\t}\n\t/**\n\t* Clears both the query cache and the mutation cache this client is connected to.\n\t* This clears their garbage collection timers and cancels in-flight query fetches.\n\t* Running mutations continue to execute.\n\t* @example\n\t* ```ts\n\t* import { QueryClient } from '@tanstack/query-core'\n\t*\n\t* const queryClient = new QueryClient()\n\t* queryClient.clear()\n\t* ```\n\t*/\n\tclear() {\n\t\tthis.#queryCache.clear();\n\t\tthis.#mutationCache.clear();\n\t}\n};\nexport { QueryClient };\n\n//# sourceMappingURL=queryClient.js.map","import React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport \"./mantine-styles.css\";\nimport \"./portal.css\";\nimport App from \"./App\";\nimport { registerServiceWorker } from \"./pwa\";\n\nregisterServiceWorker();\n\nconst root = document.getElementById(\"root\");\nif (root) {\n  createRoot(root).render(<App />);\n}\n"],"names":["__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","cw","body","mod","fn","call","getProto","Object","getPrototypeOf","leafPrototypes","t","value","mode","this","__esModule","then","ns","create","r","def","current","indexOf","getOwnPropertyNames","forEach","key","d","definition","o","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","defineProperties","Symbol","toStringTag","nc","Scheduler","React","ReactDOM","formatProdErrorMessage","code","url","arguments","length","encodeURIComponent","i","getNearestMountedFiber","fiber","node","nextNode","alternate","flags","return","tag","getSuspenseInstanceFromFiber","suspenseState","memoizedState","dehydrated","getActivityInstanceFromFiber","activityState","assertIsMounted","Error","findCurrentHostFiberImpl","child","sibling","traverseVisibleInstancesAndTextInstances","searchWithinHosts","a","b","c","getFragmentParentInstanceOrContainerFiber","fiberIsPortaledIntoHost","foundPortalParent","getFragmentInstanceOrTextInstanceSiblings","result","parentHostFiber","findFragmentInstanceOrTextInstanceSiblings","foundSelf","self","state","getInstanceFromHostFiber","stateNode","containerInfo","searchTarget","searchBoundary","isFiberPrecedingCheck","target","boundary","isFiberFollowingCheck","getParentForFragmentAncestors","inst","getLowestCommonAncestor","instA","instB","getParent","depthA","tempA","tempB","assign","REACT_LEGACY_ELEMENT_TYPE","for","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_CONSUMER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_ACTIVITY_TYPE","REACT_LEGACY_HIDDEN_TYPE","REACT_MEMO_CACHE_SENTINEL","REACT_VIEW_TRANSITION_TYPE","REACT_RECOVERABLE_TYPE","MAYBE_ITERATOR_SYMBOL","iterator","getIteratorFn","maybeIterable","REACT_CLIENT_REFERENCE","getComponentNameFromType","type","$$typeof","displayName","name","_context","innerType","render","_payload","_init","x","isArrayImpl","Array","isArray","ReactSharedInternals","__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","ReactDOMSharedInternals","__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","sharedNotPendingObject","pending","data","method","action","valueStack","index","createCursor","defaultValue","pop","cursor","push","prefix","suffix","contextStackCursor","contextFiberStackCursor","rootInstanceStackCursor","hostTransitionProviderCursor","pushHostContainer","nextRootInstance","nodeType","documentElement","namespaceURI","getOwnHostContext","tagName","getChildHostContextProd","popHostContainer","pushHostContext","stateHook","HostTransitionContext","_currentValue","JSCompiler_inline_result","popHostContext","describeBuiltInComponentFrame","match","stack","trim","reentry","describeNativeComponentFrame","construct","previousPrepareStackTrace","prepareStackTrace","RunInRootFrame","DetermineComponentFrameRoot","Fake","set","Reflect","control","x$1","prevProps","getOwnPropertyDescriptor","configurable","props","x$2","catch","sample","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","split","controlLines","includes","frame","replace","describeFiber","childFiber","getStackByFiberInDevAndProd","workInProgress","info","previous","message","scheduleCallback$3","unstable_scheduleCallback","cancelCallback$1","unstable_cancelCallback","shouldYield","unstable_shouldYield","requestPaint","unstable_requestPaint","now","unstable_now","getCurrentPriorityLevel","unstable_getCurrentPriorityLevel","ImmediatePriority","unstable_ImmediatePriority","UserBlockingPriority","unstable_UserBlockingPriority","NormalPriority$1","unstable_NormalPriority","LowPriority","unstable_LowPriority","IdlePriority","unstable_IdlePriority","log$1","log","unstable_setDisableYieldValue","rendererID","injectedHook","setIsStrictModeForDevtools","newIsStrictMode","setStrictMode","err","clz32","Math","LN2","nextTransitionUpdateLane","nextTransitionDeferredLane","nextRetryLane","getHighestPriorityLanes","lanes","pendingSyncLanes","getNextLanes","root","wipLanes","rootHasPendingCommit","pendingLanes","nextLanes","suspendedLanes","pingedLanes","warmLanes","nonIdlePendingLanes","checkIfRootIsPrerendering","renderLanes","getEntangledLanes","allEntangledLanes","entangledLanes","entanglements","index$4","lane","computeExpirationTime","currentTime","claimNextRetryLane","createLaneMap","initial","laneMap","markRootUpdated$1","updateLane","markSpawnedDeferredLane","spawnedLane","spawnedLaneIndex","markRootEntangled","rootEntangledLanes","index$8","getBumpedLaneForHydration","renderLane","getBumpedLaneForHydrationByLane","lanesToEventPriority","resolveUpdatePriority","updatePriority","p","window","event","getEventPriority","runWithPriority","priority","previousPriority","randomKey","random","toString","slice","internalInstanceKey","internalPropsKey","internalContainerInstanceKey","internalEventHandlersKey","internalEventHandlerListenersKey","internalEventHandlesSetKey","internalRootNodeResourcesKey","internalHoistableMarker","internalLoadPendingKey","detachDeletedInstance","getClosestInstanceFromNode","targetNode","targetInst","parentNode","getParentHydrationBoundary","getInstanceFromNode","getNodeFromInstance","getResourcesFromRoot","resources","hoistableStyles","Map","hoistableScripts","markNodeAsHoistable","clearPendingLoadOnNode","allNativeEvents","Set","registrationNameDependencies","registerTwoPhaseEvent","registrationName","dependencies","registerDirectEvent","add","VALID_ATTRIBUTE_NAME_REGEX","RegExp","illegalAttributeNameCache","validatedAttributeNameCache","viewTransitionMutationContext","pushMutationContext","prev","setValueForAttribute","attributeName","test","removeAttribute","prefix$10","toLowerCase","setAttribute","setValueForKnownAttribute","setValueForNamespacedAttribute","namespace","setAttributeNS","getToStringValue","isCheckable","elem","nodeName","track","_valueTracker","valueField","currentValue","descriptor","constructor","getValue","setValue","stopTracking","trackValueOnNode","updateValueIfChanged","tracker","lastValue","checked","escapeSelectorAttributeValueInsideDoubleQuotesRegex","escapeSelectorAttributeValueInsideDoubleQuotes","ch","charCodeAt","updateInput","element","lastDefaultValue","defaultChecked","setDefaultValue","initInput","isHydrating","updateOptions","multiple","propValue","setDefaultSelected","options","selected","defaultSelected","disabled","updateTextarea","initTextarea","children","textContent","setTextContent","text","firstChild","lastChild","nodeValue","unitlessNumbers","setValueForStyle","style","styleName","isCustomProperty","setProperty","cssFloat","has","setValueForStyles","styles","prevStyles","styleName$16","styleName$17","isCustomElement","aliases","isJavaScriptProtocol","sanitizeURL","noop$1","currentReplayingEvent","getEventTarget","nativeEvent","srcElement","correspondingUseElement","restoreTarget","restoreQueue","restoreStateOfTarget","internalInstance","querySelectorAll","otherNode","form","otherProps","isInsideEventHandler","batchedUpdates$1","flushSyncWork$1","getListener","canUseDOM","document","createElement","passiveBrowserEventsSupported","addEventListener","removeEventListener","e","startText","fallbackText","getData","start","end","startValue","startLength","endValue","endLength","minEnd","getEventCharCode","keyCode","charCode","functionThatReturnsTrue","functionThatReturnsFalse","createSyntheticEvent","Interface","SyntheticBaseEvent","reactName","reactEventType","nativeEventTarget","propName","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","preventDefault","stopPropagation","cancelBubble","persist","isPersistent","lastMovementX","lastMovementY","lastMouseEvent","EventInterface","eventPhase","bubbles","cancelable","timeStamp","Date","isTrusted","SyntheticEvent","UIEventInterface","view","detail","SyntheticUIEvent","MouseEventInterface","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","getEventModifierState","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","SyntheticMouseEvent","SyntheticDragEvent","dataTransfer","SyntheticFocusEvent","SyntheticAnimationEvent","animationName","elapsedTime","pseudoElement","SyntheticClipboardEvent","clipboardData","SyntheticCompositionEvent","normalizeKey","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","translateToKey","modifierKeyToProp","Alt","Control","Meta","Shift","modifierStateGetter","keyArg","SyntheticKeyboardEvent","String","fromCharCode","location","repeat","locale","which","SyntheticPointerEvent","pointerId","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","SyntheticSubmitEvent","submitter","SyntheticTouchEvent","touches","targetTouches","changedTouches","SyntheticTransitionEvent","propertyName","SyntheticWheelEvent","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","SyntheticToggleEvent","newState","oldState","source","END_KEYCODES","canUseCompositionEvent","documentMode","canUseTextInputEvent","useFallbackCompositionData","SPACEBAR_CHAR","hasSpaceKeypress","isFallbackCompositionEnd","domEventName","getDataFromCustomEvent","isComposing","supportedInputTypes","color","date","datetime","email","month","number","password","range","search","tel","time","week","isTextInputElement","createAndAccumulateChangeEvent","dispatchQueue","accumulateTwoPhaseListeners","listeners","activeElement$1","activeElementInst$1","runEventInBatch","processDispatchQueue","getInstIfValueChanged","getTargetInstForChangeEvent","isInputEventSupported","JSCompiler_inline_result$jscomp$318","isSupported$jscomp$inline_474","element$jscomp$inline_475","oninput","stopWatchingForValueChange","detachEvent","handlePropertyChange","handleEventsForInputEventPolyfill","attachEvent","getTargetInstForInputEventPolyfill","getTargetInstForClickEvent","getTargetInstForInputOrChangeEvent","objectIs","is","y","shallowEqual","objA","objB","keysA","keys","keysB","currentKey","getActiveElement","doc","activeElement","e$20","getLeafNode","getNodeForCharacterOffset","offset","nodeEnd","nextSibling","containsNode","outerNode","innerNode","contains","compareDocumentPosition","getActiveElementDeep","ownerDocument","defaultView","HTMLIFrameElement","contentWindow","href","hasSelectionCapabilities","contentEditable","skipSelectionChangeEvent","activeElementInst","lastSelection","mouseDown","constructSelectEvent","selectionStart","selectionEnd","anchorNode","getSelection","anchorOffset","focusNode","focusOffset","makePrefixMap","styleProp","eventName","prefixes","vendorPrefixes","animationend","animationiteration","animationstart","transitionrun","transitionstart","transitioncancel","transitionend","prefixedEventNames","getVendorPrefixedEventName","prefixMap","animation","transition","ANIMATION_END","ANIMATION_ITERATION","ANIMATION_START","TRANSITION_RUN","TRANSITION_START","TRANSITION_CANCEL","TRANSITION_END","topLevelEventsToReactNames","simpleEventPluginEvents","registerSimpleEvent","globalClientIdCounter$1","getViewTransitionName","instance","autoName","pendingEffectsRoot","identifierPrefix","getClassNameByType","classByType","className","activeTypes","pendingTransitionTypes","default","getViewTransitionClassName","defaultClass","eventClass","reportGlobalError","reportError","error","ErrorEvent","dispatchEvent","process","emit","console","concurrentQueues","concurrentQueuesIndex","concurrentlyUpdatedLanes","finishQueueingConcurrentUpdates","endIndex","queue","update","next","markUpdateLaneFromFiberToRoot","enqueueUpdate$1","enqueueConcurrentHookUpdate","getRootForUpdatedFiber","enqueueConcurrentRenderForLane","sourceFiber","isHidden","parent","childLanes","_visibility","hiddenUpdates","nestedUpdateCount","rootWithNestedUpdates","emptyContextObject","FiberNode","pendingProps","elementType","refCleanup","ref","updateQueue","memoizedProps","subtreeFlags","deletions","createFiberImplClass","shouldConstruct","Component","isReactComponent","createWorkInProgress","firstContext","resetWorkInProgress","createFiberFromTypeAndProps","owner","fiberTag","hostContext","itemProp","precedence","rel","onLoad","onError","async","src","isHostHoistableType","createFiberFromFragment","paired","clones","elements","createFiberFromText","content","createFiberFromDehydratedFragment","dehydratedNode","createFiberFromPortal","portal","pendingChildren","implementation","CapturedStacks","WeakMap","createCapturedValueAtFiber","existing","forkStack","forkStackIndex","treeForkProvider","treeForkCount","idStack","idStackIndex","treeContextProvider","treeContextId","treeContextOverflow","pushTreeFork","totalChildren","pushTreeId","baseIdWithLeadingBit","baseLength","numberOfOverflowBits","pushMaterializedTreeId","popTreeContext","restoreSuspendedTreeContext","suspendedContext","id","overflow","hydrationParentFiber","nextHydratableInstance","hydrationErrors","rootOrSingletonContext","HydrationMismatchException","throwOnHydrationMismatch","queueHydrationError","prepareToHydrateHostInstance","listenToNonDelegatedEvent","mediaEventTypes","suppressHydrationWarning","checkForUnmatchedText","popover","onScroll","onScrollEnd","onClick","onclick","popToNextHostParent","popHydrationState","JSCompiler_temp","shouldSetTextContent","getNextHydratableInstanceAfterHydrationBoundary","isSingletonScope","previousHydratableOnEnteringScopedSingleton","getNextHydratable","resetHydrationState","upgradeHydrationErrorsToRecoverable","queuedErrors","workInProgressRootRecoverableErrors","apply","valueCursor","currentlyRenderingFiber$1","lastContextDependency","pushProvider","providerFiber","context","nextValue","popProvider","scheduleContextWorkOnParentPath","propagationRoot","propagateContextChanges","contexts","forcePropagateEntireTree","list","nextFiber","dependency","propagateParentContextChanges","isInsidePropagationBailout","currentParent","checkIfContextChanged","currentDependencies","memoizedValue","prepareToReadContext","readContext","readContextForConsumer","readContextDuringReconciliation","consumer","AbortControllerLocal","AbortController","signal","aborted","listener","abort","scheduleCallback$2","NormalPriority","CacheContext","Consumer","Provider","_currentValue2","_threadCount","createCache","controller","refCount","releaseCache","cache","queueTransitionTypes","transitionTypes","queued","transitionType","entangledTransitionTypes","currentEntangledListeners","currentEntangledPendingCount","currentEntangledLane","currentEntangledActionThenable","pingEngtangledActionScope","status","prevOnStartTransitionFinish","S","globalMostRecentTransitionTime","thenable","entangledListeners","requestTransitionLane","resolve","entangleAsyncAction","root$28","firstScheduledRoot","types","root$29","resumedCache","peekCacheFromPool","cacheResumedFromPreviousRender","workInProgressRoot","pooledCache","pushTransition","offscreenWorkInProgress","prevCachePool","pool","getSuspendedCache","cacheFromPool","SuspenseException","SuspenseyCommitException","SuspenseActionException","noopSuspenseyCommitThenable","isThenableResolved","trackUsedThenable","thenableState","checkIfUseWrappedInAsyncCatch","reason","shellSuspendCounter","fulfilledValue","fulfilledThenable","rejectedThenable","suspendedThenable","resolveLazy","lazyType","init","getSuspendedThenable","rejectedReason","thenableState$1","thenableIndexCounter$1","unwrapThenable","coerceRef","throwOnInvalidObjectTypeImpl","returnFiber","newChild","join","createChildReconciler","shouldTrackSideEffects","deleteChild","childToDelete","deleteRemainingChildren","currentFirstChild","mapRemainingChildren","existingChildren","useFiber","placeChild","newFiber","lastPlacedIndex","newIndex","placeSingleChild","updateTextNode","updateElement","updateFragment","updatePortal","fragment","createChild","updateSlot","oldFiber","updateFromMap","newIdx","reconcileChildFibersImpl","newChildren","resultingFirstChild","previousNewFiber","nextOldFiber","delete","reconcileChildrenArray","step","done","reconcileChildrenIterator","firstChildFiber","reconcileChildFibers","mountChildFibers","hasForceUpdate","initializeUpdateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","hiddenCallbacks","callbacks","cloneUpdateQueue","createUpdate","payload","callback","enqueueUpdate","executionContext","entangleTransitions","queueLanes","enqueueCapturedUpdate","capturedUpdate","newFirst","newLast","clone","didReadFromEntangledAsyncAction","suspendIfUpdateReadFromEntangledAsyncAction","processUpdateQueue","workInProgress$jscomp$0","instance$jscomp$0","pendingQueue","lastPendingUpdate","firstPendingUpdate","isHiddenUpdate","workInProgressRootRenderLanes","workInProgressRootSkippedLanes","callCallback","commitCallbacks","currentTreeHiddenStackCursor","prevEntangledRenderLanesCursor","pushHiddenContext","entangledRenderLanes","baseLanes","reuseHiddenContextOnStack","popHiddenContext","suspenseHandlerStackCursor","shellBoundary","pushPrimaryTreeSuspenseHandler","handler","suspenseStackCursor","pushDehydratedActivitySuspenseHandler","pushOffscreenSuspenseHandler","reuseSuspenseHandlerOnStack","popSuspenseHandler","pushSuspenseListContext","newContext","popSuspenseListContext","findFirstSuspended","row","isSuspenseInstancePending","isSuspenseInstanceFallback","revealOrder","currentlyRenderingFiber","currentHook","workInProgressHook","didScheduleRenderPhaseUpdate","didScheduleRenderPhaseUpdateDuringThisPass","shouldDoubleInvokeUserFnsInHooksDEV","localIdCounter","thenableIndexCounter","globalClientIdCounter","throwInvalidHookError","areHookInputsEqual","nextDeps","prevDeps","renderWithHooks","secondArg","nextRenderLanes","H","HooksDispatcherOnMount","HooksDispatcherOnUpdate","renderWithHooksAgain","finishRenderingHooks","ContextOnlyDispatcher","didRenderTooFewHooks","didReceiveUpdate","numberOfReRenders","lastEffect","events","stores","memoCache","HooksDispatcherOnRerender","TransitionAwareHostComponent","dispatcher","maybeThenable","useState","useThenable","checkDidRenderIdHook","didRenderIdHook","bailoutHooks","resetHooksOnUnwind","mountWorkInProgressHook","hook","baseQueue","updateWorkInProgressHook","nextCurrentHook","nextWorkInProgressHook","use","usable","useMemoCache","size","map","array","basicStateReducer","updateReducer","reducer","updateReducerImpl","lastRenderedReducer","baseFirst","newBaseQueueFirst","newBaseQueueLast","didReadFromEntangledAsyncAction$64","revertLane","gesture","hasEagerState","eagerState","lastRenderedState","dispatch","rerenderReducer","lastRenderPhaseUpdate","updateSyncExternalStore","subscribe","getSnapshot","getServerSnapshot","isHydrating$jscomp$0","snapshotChanged","updateEffect","subscribeToStore","bind","pushSimpleEffect","destroy","updateStoreInstance","pushStoreConsistencyCheck","renderedSnapshot","nextSnapshot","checkIfSnapshotChanged","forceStoreRerender","latestGetSnapshot","scheduleUpdateOnFiber","mountStateImpl","initialState","initialStateInitializer","updateOptimisticImpl","passthrough","dispatchActionState","actionQueue","setPendingState","setState","isRenderPhaseUpdate","actionNode","isTransition","T","runActionStateAction","prevState","prevTransition","currentTransition","onStartTransitionFinish","handleActionReturnValue","onActionError","error$70","nextState","onActionSuccess","notifyActionListeners","last","actionStateReducer","mountActionState","initialStateProp","ssrFormState","formState","JSCompiler_inline_result$jscomp$0","inRootOrSingleton","dispatchSetState","dispatchOptimisticSetState","updateActionState","updateActionStateImpl","currentStateHook","actionStateActionEffect","rerenderActionState","deps","updateRef","mountEffectImpl","fiberFlags","hookFlags","updateEffectImpl","mountEffect","updateEvent","componentUpdateQueue","useEffectEventImpl","nextImpl","impl","updateInsertionEffect","updateLayoutEffect","imperativeHandleEffect","updateImperativeHandle","concat","mountDebugValue","updateCallback","updateMemo","nextCreate","mountDeferredValueImpl","initialValue","requestDeferredLane","updateDeferredValueImpl","prevValue","startTransition","pendingState","finishedState","thenableWithOverride","dispatchSetStateInternal","requestUpdateLane","noop","startHostTransition","formFiber","formData","ensureFormComponentIsStateful","requestFormReset$1","existingStateHook","initialResetState","useHostTransitionStatus","updateId","updateRefresh","refreshCache","provider","root$73","dispatchReducerAction","enqueueRenderPhaseUpdate","entangleTransitionUpdate","currentState","throwIfDuringRender","useCallback","useContext","useEffect","useImperativeHandle","useLayoutEffect","useInsertionEffect","useMemo","useReducer","useRef","useDebugValue","useDeferredValue","useTransition","useSyncExternalStore","useId","useFormState","useActionState","useOptimistic","useCacheRefresh","useEffectEvent","initialArg","booleanOrThenable","applyDerivedStateFromProps","ctor","getDerivedStateFromProps","nextProps","classComponentUpdater","enqueueSetState","_reactInternals","enqueueReplaceState","enqueueForceUpdate","checkShouldComponentUpdate","oldProps","newProps","nextContext","shouldComponentUpdate","isPureReactComponent","callComponentWillReceiveProps","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","resolveClassComponentProps","baseProps","defaultProps","propName$77","defaultOnUncaughtError","defaultOnCaughtError","defaultOnRecoverableError","logUncaughtError","errorInfo","onUncaughtError","componentStack","e$78","setTimeout","logCaughtError","onCaughtError","errorBoundary","e$79","createRootErrorUpdate","createClassErrorUpdate","initializeClassErrorUpdate","getDerivedStateFromError","componentDidCatch","legacyErrorBoundariesThatAlreadyFailed","SelectiveHydrationException","reconcileChildren","nextChildren","updateForwardRef","propsWithoutRef","bailoutOnAlreadyFinishedWork","updateMemoComponent","compare","updateSimpleMemoComponent","checkScheduledUpdateOrContext","updateFunctionComponent","updateOffscreenComponent","_pendingMarkers","_retryCache","_transitions","deferHiddenOffscreenComponent","cachePool","bailoutOffscreenComponent","nextBaseLanes","remainingChildLanes","mountActivityChildren","mountWorkInProgressOffscreenFiber","retryActivityComponentWithoutHydrating","markRef","replayFunctionComponent","updateClassComponent","contextType","updater","refs","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","unresolvedOldProps","oldContext","contextType$jscomp$0","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","mountHostRootWithoutHydrating","SUSPENDED_MARKER","treeContext","retryLane","mountSuspenseOffscreenState","getRemainingWorkInPrimaryTree","primaryTreeDidDefer","workInProgressDeferredLane","updateSuspenseComponent","showFallback","didSuspend","canHydrateHydrationBoundary","fallback","mountSuspensePrimaryChildren","dehydrated$96","didPrimaryChildrenDefer","suspenseInstance","retrySuspenseComponentWithoutHydrating","dataset","digest","dgst","renderDidSuspendDelayIfPossible","updateDehydratedSuspenseComponent","primaryChildren","offscreenProps","scheduleSuspenseWorkOnFiber","findLastContentRow","lastContentRow","currentRow","initSuspenseListRenderState","isBackwards","tail","tailMode","renderState","rendering","renderingStartTime","reverseChildren","nextRow","updateSuspenseListComponent","suspenseContext","shouldForceFallback","updateContextProvider","beginWork","state$108","primaryChildLanes","attemptEarlyBailoutIfNoScheduledUpdate","isDehydrated","getResource","createHoistableInstance","resolveSingletonInstance","anyProps","hasAttribute","getAttribute","crossOrigin","title","canHydrateInstance","canHydrateTextInstance","updateActivityComponent","pooledCacheLanes","markUpdate","preloadInstanceAndSuspendIfNeeded","maySuspendCommit","srcSet","complete","shouldRemainOnPreviousScreen","preloadResourceAndSuspendIfNeeded","resource","loading","preloadResource","scheduleRetryEffect","retryQueue","workInProgressSuspendedRetryLanes","cutOffTailIfNeeded","hasRenderedATailFallback","tailNode","lastTailNode","bubbleProperties","completedWork","didBailout","newChildLanes","child$113","completeWork","pendingContext","nextResource","getOwnerDocumentFromRootContainer","createElementNS","innerHTML","removeChild","appendChild","setInitialProperties","autoFocus","createTextNode","listenToAllSupportedEvents","workInProgressRootExitStatus","workInProgressRootRenderTargetTime","unwindWork","unwindInterruptedWork","interruptedWork","commitHookEffectListMount","finishedWork","firstEffect","captureCommitPhaseError","commitHookEffectListUnmount","nearestMountedAncestor$jscomp$0","nearestMountedAncestor","destroy_","commitClassCallbacks","safelyCallComponentWillUnmount","componentWillUnmount","safelyAttachRef","instanceToUse","createViewTransitionInstance","fragmentInstance","FragmentInstance","addFragmentHandleToFiber","safelyDetachRef","error$148","commitNewChildToFragmentInstances","parentFragmentInstances","commitNewChildToFragmentInstance","commitFragmentInstanceInsertionEffects","isFragmentInstanceParent","isFragmentInstanceHostBoundary","commitFragmentInstanceDeletionEffects","deleteChildFromFragmentInstance","commitHostMount","focus","srcset","commitHostUpdate","domElement","lastProps","propKey","lastProp","setProp","propKey$221","propKey$237","propKey$242","propKey$247","setPropOnCustomElement","propKey$252","updateProperties","isHostParent","getHostSibling","insertOrAppendPlacementNodeIntoContainer","before","insertBefore","_reactRootContainer","insertOrAppendPlacementNode","commitHostSingletonAcquisition","singleton","attributes","removeAttributeNode","shouldStartViewTransition","appearingViewTransitions","trackEnterViewTransitions","placement","viewTransitionCancelableChildren","pushViewTransitionCancelableScope","prevChildren","viewTransitionHostInstanceIdx","applyViewTransitionToHostInstances","collectMeasurements","stopAtNestedViewTransitions","applyViewTransitionToHostInstancesRecursive","inViewport","measurement","measureInstance","applyViewTransitionName","restoreViewTransitionOnHostInstances","restoreViewTransitionName","commitAppearingPairViewTransitions","share","commitEnterViewTransitions","enter","scheduleViewTransitionEvent","onEnter","commitDeletedPairViewTransitions","deletion","pairs","pair","onShare","commitExitViewTransitions","exit","onExit","commitNestedViewTransitions","changedParent","restorePairedViewTransitions","restoreEnterOrExitViewTransitions","restoreNestedViewTransitions","measureViewTransitionHostInstancesRecursive","parentViewTransition","newName","oldName","previousMeasurements","previousMeasurement","nextMeasurement","clip","rect","newRect","abs","measureNestedViewTransitions","measureClonedInstance","onUpdate","offscreenSubtreeIsHidden","offscreenSubtreeWasHidden","offscreenDirectParentIsHidden","needsFormReset","PossiblyWeakSet","WeakSet","nextEffect","viewTransitionContextChanged","inUpdateViewTransition","rootViewTransitionAffected","rootViewTransitionNameCanceled","commitBeforeMutationEffects_complete","isViewTransitionEligible$jscomp$0","isViewTransitionEligible","resolvedPrevProps","__reactInternalSnapshotBeforeUpdate","clearContainerSparingly","commitLayoutEffectOnFiber","finishedRoot","recursivelyTraverseLayoutEffects","error$146","commitActivityHydrationCallbacks","commitSuspenseHydrationCallbacks","_reactRetry","readyState","registerSuspenseInstanceRetry","retryDehydratedSuspenseBoundary","newOffscreenSubtreeWasHidden","recursivelyTraverseReappearLayoutEffects","hideOrUnhideAllChildren","parentFiber","hideOrUnhideAllChildrenOnFiber","display","hideOrUnhideNearestPortals","instance$jscomp$1","hideOrUnhideDehydratedBoundary","isHidden$jscomp$0","detachFiberAfterEffects","hostParent","hostParentIsContainer","recursivelyTraverseDeletionEffects","commitDeletionEffectsOnFiber","deletedFiber","onCommitFiberUnmount","count","prevHostParent","prevHostParentIsContainer","releaseSingletonInstance","clearHydrationBoundary","retryIfBlockedOn","attachSuspenseRetryListeners","wakeables","retryCache","getRetryCache","wakeable","retry","resolveRetryWakeable","recursivelyTraverseMutationEffects","root$jscomp$0","commitMutationEffectsOnFiber","currentHoistableRoot","ii","_eventPayloads$ii2","commitReconciliationEffects","getElementsByTagName","head","querySelector","getHydratableHoistableCache","splice","property","httpEquiv","charSet","mountHoistable","acquireResource","tagCaches","getHoistableRoot","recursivelyResetForms","globalMostRecentFallbackTime","prevOffscreenSubtreeIsHidden","prevOffscreenSubtreeWasHidden","prevOffscreenDirectParentIsHidden$166","recursivelyTraverseDisappearLayoutEffects","_fragmentFiber","hostParentFiber","parent$jscomp$0","parent$149","parent$151","_enabled","reset","recursivelyTraverseAfterMutationEffects","commitAfterMutationEffectsOnFiber","animate","opacity","pointerEvents","duration","fill","viewTransitionName","layoutEffectTraversalFlags$jscomp$0","layoutEffectTraversalFlags","finishedRoot$jscomp$0","includeWorkInProgressEffects","commitOffscreenPassiveMountEffects","previousCache","commitCachePassiveMountEffect","recursivelyTraversePassiveMountEffects","committedLanes","committedTransitions","commitPassiveMountOnFiber","_finishedWork$memoize2","onPostCommit","passiveEffectDuration","recursivelyTraverseAtomicPassiveEffects","recursivelyTraverseReconnectPassiveEffects","committedLanes$jscomp$0","committedTransitions$jscomp$0","suspenseyCommitFlag","recursivelyAccumulateSuspenseyCommit","suspendedState","accumulateSuspenseyCommitOnFiber","hoistableRoot","media","matchMedia","matches","getStyleKey","getStylesheetSelectorFromKey","_p","onUnsuspend","stylesheetPropsFromRawProps","preloadPropsMap","adoptPreloadPropsForStylesheet","linkInstance","Promise","reject","onload","onerror","stylesheets","preload","suspendResource","suspendInstance","previousHoistableRoot","detachAlternateSiblings","previousFiber","recursivelyTraversePassiveUnmountEffects","commitPassiveUnmountEffectsInsideOfDeletedTree_begin","commitPassiveUnmountOnFiber","recursivelyTraverseDisconnectPassiveEffects","deletedSubtreeRoot","DefaultAsyncDispatcher","getCacheForType","resourceType","cacheForType","cacheSignal","PossiblyWeakMap","workInProgressSuspendedReason","workInProgressThrownValue","workInProgressRootDidSkipSuspendedSiblings","workInProgressRootIsPrerendering","workInProgressRootDidAttachPingListener","workInProgressRootInterleavedUpdatedLanes","workInProgressRootPingedLanes","workInProgressRootConcurrentErrors","workInProgressRootDidIncludeRecursiveRenderUpdate","Infinity","workInProgressTransitions","pendingEffectsStatus","pendingFinishedWork","pendingEffectsLanes","pendingEffectsRemainingLanes","pendingPassiveTransitions","pendingRecoverableErrors","pendingViewTransition","pendingViewTransitionEvents","cancelPendingCommit","prepareFreshStack","markRootSuspended","ensureRootIsScheduled","performWorkOnRoot","forceSync","shouldTimeSlice","expiredLanes","exitStatus","prevExecutionContext","prevDispatcher","pushDispatcher","prevAsyncDispatcher","pushAsyncDispatcher","thrownValue","throwAndUnwindWorkLoop","replaySuspendedUnitOfWork","hostFiber","completeUnitOfWork","resetWorkInProgressStack","workLoopConcurrentByScheduler","thrownValue$186","handleThrow","A","renderRootConcurrent","renderRootSync","renderWasConcurrent","isRenderConsistentWithExternalStores","errorRecoveryDisabledLanes","wasRootDehydrated","timeoutHandle","scheduleTimeout","completeRootWhenReady","recoverableErrors","transitions","didIncludeRenderPhaseUpdate","updatedLanes","suspendedRetryLanes","didSkipSuspendedSiblings","suspendedCommitReason","completedRenderStartTime","completedRenderEndTime","timeoutOffset","imgCount","imgBytes","suspenseyImages","waitingForImages","waitingForViewTransition","unsuspend","__reactViewTransition","finished","insertSuspendedStylesheets","commit","stylesheetTimer","estimatedBytesWithinLimit","performance","getEntriesByType","bits","resourceEntries","entry","transferSize","initiatorType","isLikelyStaticResource","responseEnd","overlapEntry","overlapStartTime","startTime","overlapTransferSize","overlapInitiatorType","navigator","connection","downlink","estimateBandwidth","imgTimer","clearTimeout","completeRoot","check","didAttemptEntireTree","expirationTimes","index$6","flushSyncWorkAcrossRoots_impl","cancelTimeout","shouldYieldForPrerendering","unitOfWork","workLoopSync","thrownValue$184","performUnitOfWork","suspendedReason","rootRenderLanes","attachPingListener","markerInstances","cause","wrapperError","throwException","unwindUnitOfWork","skipSiblings","flushPendingEffects","remainingLanes","finishedLanes","previouslyPendingLanes","index$7","hiddenUpdatesForLane","markRootFinished","claimed","claimQueuedTransitionTypes","callbackNode","callbackPriority","flushPassiveEffects","eventsEnabled","selection","rangeCount","e$21","indexWithinAnchor","indexWithinFocus","selectionInformation","focusedElem","selectionRange","commitBeforeMutationEffects","rootContainer","mutationCallback","layoutCallback","afterMutationCallback","spawnedWorkCallback","passiveCallback","errorCallback","startViewTransition","ownerWindow","pendingNavigation","navigation","previousFontLoadingStatus","fonts","blockingPromises","clientHeight","forceLayout","ready","suspenseyImage","getBoundingClientRect","bottom","right","top","innerHeight","left","innerWidth","estimateImageBytes","waitForImageToLoad","race","all","allSettled","viewTransitionAnimations","animations","getAnimations","subtree","effect","startsWith","getKeyframes","unchangedDimensions","j","keyframe","w","transform","setKeyframes","getComputedStyle","finally","cancel","flushMutationEffects","flushLayoutEffects","flushAfterMutationEffects","flushSpawnedWork","reportViewTransitionError","commitRoot","onRecoverableError","rootMutationHasEffect","curFocusedElem","priorFocusedElem","priorSelectionRange","min","win","start$jscomp$0","end$jscomp$0","extend","startMarker","endMarker","createRange","setStart","removeAllRanges","addRange","setEnd","scrollLeft","scrollTop","rootHasLayoutEffect","committedViewTransition","passiveSubtreeMask","releaseRootPooledCache","onCommitFiberRoot","recoverableError","skipTransition","renderPriority","onPostCommitFiberRoot","captureCommitPhaseErrorOnRoot","rootFiber","pingCache","threadIDs","pingSuspendedRoot","retryTimedOutBoundary","boundaryFiber","lastScheduledRoot","didScheduleMicrotask","mightHavePendingSyncWork","isFlushingWork","currentEventTransitionLane","scheduleMicrotask","processRootScheduleInImmediateTask","processRootScheduleInMicrotask","syncTransitionLanes","onlyLegacy","didPerformSomeWork","root$190","performSyncWorkOnRoot","currentPopstateTransitionEvent","scheduleTaskForRootDuringMicrotask","index$5","expirationTime","performWorkOnRootViaSchedulerTask","didTimeout","originalCallbackNode","workInProgressRootRenderLanes$jscomp$0","actionScopeLane","coerceFormActionProp","actionProp","i$jscomp$inline_1667","eventName$jscomp$inline_1668","toUpperCase","nonDelegatedEvents","eventSystemFlags","_dispatchQueue$i","previousInstance","i$jscomp$0","_dispatchListeners$i","targetElement","listenerSetKey","addTrappedEventListener","listenToNativeEvent","isCapturePhaseListener","listeningMarker","rootContainerElement","targetContainer","listenerWrapper","dispatchDiscreteEvent","dispatchContinuousEvent","capture","passive","dispatchEventForPluginEventSystem","targetInst$jscomp$0","ancestorInst","nodeTag","container","grandTag","SyntheticEventCtor","inCapturePhase","accumulateTargetOnly","reactEventName","lastHostComponent","_instance","createDispatchListener","parentWindow","accumulateEnterLeaveListenersForEvent","getTargetInstFunc","handleEventFunc","fallbackData","eventType","getNativeBeforeInputChars","char","getFallbackBeforeInputChars","maybeTargetInst","formAction","FormData","extractEvents$1","targetFiber","captureName","_instance2","unshift","common","_instance3","NORMALIZE_NEWLINES_REGEX","NORMALIZE_NULL_AND_REPLACEMENT_REGEX","normalizeMarkupForTextOrAttribute","markup","serverText","clientText","formEncType","formMethod","formTarget","encType","__html","muted","isNaN","endsWith","hasSrc","hasSrcSet","propValue$204","emptyProps","parentNamespace","rootContainerInstance","internalInstanceHandle","dangerouslySetInnerHTML","localPromise","localRequestAnimationFrame","requestAnimationFrame","queueMicrotask","handleErrorInNextTick","parentInstance","hydrationInstance","depth","clearSingletonPreambleContribution","node$jscomp$0","nextNode$jscomp$0","_stashedDisplay","_stashedText","CSS","escape","btoa","viewTransitionClass","getClientRects","marginTop","paddingTop","marginBottom","paddingBottom","margin","createMeasurement","computedStyle","position","clipPath","filter","mask","borderRadius","measuredRect","DOMRect","ViewTransitionPseudoElement","pseudo","_scope","_selector","group","imagePair","old","new","fragmentFiber","_observers","_eventListeners","addEventListenerToChild","optionsOrUseCapture","removeEventListenerFromChild","getAttachOptions","opts","once","AbortSignal","normalizeListenerOptions","indexOfEventListener","eventListeners","item","setFocusOnFiberIfFocusable","focusOptions","handleFocus","didFocus","HTMLElement","setFocusIfFocusable","collectChildren","collection","blurActiveElementWithinFragment","blur","observeChild","observer","observe","unobserveChild","unobserve","keyframes","scope","selector","cleanup","attachedListener","handleEvent","_listeners$index","temp","createComment","_eventListeners$i","focusLast","observeUsing","unobserveUsing","observers","pendingIntersectionUnobserves","intersectionUnobserveScheduled","collectClientRects","rects","selectNodeContents","scrollTextNodeIntoView","textNode","resolvedAlignToTop","scrollTo","scrollX","scrollY","addFragmentHandleToInstance","reactFragments","childInstance","_eventListeners$i3","writeIdx","_eventListeners$i4","rootMargin","schedulePendingIntersectionUnobserve","getRootNode","getRootNodeOptions","Node","DOCUMENT_POSITION_DISCONNECTED","parentHostInstance","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","parentHostInstanceFromDOM","parentElement","firstResult","lastResult","otherNodeIsWithinFirstOrLastChild","documentPosition","precedingBoundaryFiber","followingBoundaryFiber","otherFiber","validateDocumentPositionWithFiberTree","scrollIntoView","alignToTop","hostSiblings","host","targetInstance","previousSibling","preconnectsSet","rootNode","previousDispatcher","f","previousWasRendering","wasRendering","formInst","D","preconnectAs","C","L","as","globalDocument","preloadSelector","imageSrcSet","imageSizes","getScriptKey","getScriptSelectorFromKey","m","X","scripts","adoptPreloadPropsForScript","link","insertStylesheet","M","limitedEscapedHref","currentProps","currentResource","styles$268","resource$269","integrity","hrefLang","referrerPolicy","preloadProps","preloadStylesheet","rawProps","styleProps","instance$274","nodes","prior","stylesheetProps","scriptProps","keyAttribute","caches","nodeKey","devicePixelRatio","decode","onUnsuspendImg","checkIfFullyUnsuspended","precedencesByRoot","insertStylesheetIntoRoot","precedences","FiberRootNode","hydrate","onDefaultTransitionIndicator","incompleteTransitions","updateContainerImpl","parentComponent","getContextForSubtree","markRetryLaneImpl","markRetryLaneIfNotHydrated","attemptContinuousHydration","attemptHydrationAtCurrentPriority","blockedOn","findInstanceBlockingEvent","return_targetInst","clearIfContinuousEvent","queuedFocus","accumulateOrCreateContinuousQueuedReplayableEvent","queuedDrag","queuedMouse","queuedPointers","queuedPointerCaptures","queueIfContinuousEvent","discreteReplayableEvents","findInstanceBlockingTarget","nearestMounted","hasScheduledReplayAttempt","queuedExplicitHydrationTargets","existingQueuedEvent","targetContainers","attemptExplicitHydrationTarget","queuedTarget","attemptReplayContinuousQueuedEvent","queuedEvent","nextBlockedOn","nativeEventClone","shift","attemptReplayContinuousQueuedEventInMap","replayUnblockedEvents","scheduleCallbackIfUnblocked","unblocked","lastScheduledReplayQueue","scheduleReplayQueueIfNeeded","formReplayingQueue","submitterOrAction","unblock","$$reactFormReplay","formProps","defaultOnDefaultTransitionIndicator","handleNavigate","canIntercept","intercept","pendingResolve","focusReset","scroll","handleNavigateComplete","isCancelled","startFakeNavigation","currentEntry","navigate","getState","history","ReactDOMRoot","internalRoot","_internalRoot","ReactDOMHydrationRoot","unmount","unstable_scheduleHydration","isomorphicReactPackageVersion$jscomp$inline_2043","version","findDOMNode","componentOrElement","parentA","parentB","didFindChild","child$0","findCurrentFiberUsingSlowPath","internals$jscomp$inline_2586","bundleType","rendererPackageName","currentDispatcherRef","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","hook$jscomp$inline_2587","isDisabled","supportsFiber","inject","createRoot","isStrictMode","unstable_strictMode","initialChildren","hydrationCallbacks","createFiberRoot","Internals","REACT_OPTIMISTIC_KEY","getCrossOriginStringAs","input","browser","_reason","createPortal","createPortal$1","flushSync","previousTransition","previousUpdatePriority","preconnect","prefetchDNS","preinit","fetchPriority","nonce","preinitModule","preloadModule","requestFormReset","unstable_batchedUpdates","permalink","useFormStatus","checkDCE","jsxProd","config","maybeKey","Fragment","jsx","jsxs","ReactNoopUpdateQueue","isMounted","emptyObject","ComponentDummy","PureComponent","partialState","forceUpdate","pureComponentPrototype","ReactElement","refProp","isValidElement","object","userProvidedKeyEscapeRegex","getElementKey","escaperLookup","mapIntoArray","escapedPrefix","nameSoFar","oldElement","newKey","invokeCallback","nextNamePrefix","resolveThenable","mapChildren","func","lazyInitializer","_status","_result","moduleObject","Children","forEachFunc","forEachContext","n","toArray","only","Activity","Profiler","StrictMode","Suspense","ViewTransition","__COMPILER_RUNTIME","__proto__","addTransitionType","cloneElement","childArray","createContext","childrenLength","createRef","forwardRef","lazy","memo","unstable_useCacheRefresh","Context","heap","parentIndex","peek","first","halfLength","leftIndex","rightIndex","diff","sortIndex","localPerformance","localDate","initialTime","taskQueue","timerQueue","taskIdCounter","currentTask","currentPriorityLevel","isPerformingWork","isHostCallbackScheduled","isHostTimeoutScheduled","needsPaint","localSetTimeout","localClearTimeout","localSetImmediate","setImmediate","advanceTimers","timer","handleTimeout","isMessageLoopRunning","schedulePerformWorkUntilDeadline","firstTimer","requestHostTimeout","taskTimeoutID","frameInterval","shouldYieldToHost","performWorkUntilDeadline","hasMoreWork","previousPriorityLevel","priorityLevel","continuationCallback","MessageChannel","channel","port","port2","port1","onmessage","postMessage","ms","unstable_Profiling","task","unstable_forceFrameRate","fps","floor","unstable_next","eventHandler","unstable_runWithPriority","delay","timeout","unstable_wrapCallback","parentPriorityLevel","filterProps","reduce","acc","scaleRem","remValue","createConverter","units","shouldScale","converter","val","replaced","Number","rem","getPrimaryShade","theme","colorScheme","primaryShade","dark","light","toRgba","hexString","alpha","parseInt","g","parsed","hexToRgba","parseFloat","rgbStringToRgba","hslaString","h","s","l","chroma","huePrime","round","hslStringToRgba","gammaCorrect","isLightColor","luminanceThreshold","oklchColor","getLightnessFromOklch","sG","sB","luminance","parseThemeColor","white","black","shade","isThemeColor","isLight","variable","colors","gray","_color","colorShade","colorValue","isVirtualColor","darken","getThemeColor","primaryColor","getGradient","gradient","merged","from","defaultGradient","to","deg","fromColor","toColor","rgba","DEFAULT_FONT_FAMILY","DEFAULT_THEME","scale","fontSmoothing","focusRing","red","pink","grape","violet","indigo","blue","cyan","teal","green","lime","yellow","orange","variantColorResolver","variant","autoContrast","_autoContrast","background","hover","border","isVirtual","textColor","parsedColor","fontFamily","fontFamilyMonospace","respectReducedMotion","cursorType","defaultRadius","activeClassName","focusClassName","headings","fontWeight","textWrap","sizes","h1","fontSize","lineHeight","h2","h3","h4","h5","h6","fontSizes","xs","sm","md","lg","xl","lineHeights","fontWeights","regular","medium","bold","radius","spacing","breakpoints","shadows","other","components","isObject","isPlainObject","hasOwn","Function","deepMerge","_source","INVALID_PRIMARY_SHADE_ERROR","isValidPrimaryShade","validateMantineTheme","MantineThemeContext","useMantineTheme","ctx","MantineThemeProvider","inherit","parentTheme","mergedTheme","currentTheme","themeOverride","mergeMantineTheme","useProps","component","names","Boolean","contextProps","resolved","EMPTY_CLASS_NAMES","resolveClassNames","classNames","stylesCtx","objects","entries","mergeClassNames","resolveStyles","arrayStyles","MantineContext","useMantineContext","useMantineStyleNonce","getStyleNonce","useMantineEnv","env","aKeys","FOCUS_CLASS_NAMES","always","auto","never","getClassName","themeName","classNamesPrefix","resolvedClassNames","resolvedThemeClassNames","classes","unstyled","rootSelector","withStaticClasses","headless","transformedStyles","focusable","active","getGlobalClassNames","getVariantClassName","getResolvedClassNames","getOptionsClassNames","getRootClassName","getSelectorClassName","withStaticClass","getStaticClassNames","resolveStyle","getStyle","withStylesTransform","resolvedStyles","resolvedThemeStyles","resolvedVars","resolvedRootStyle","useStyles","vars","varsResolver","stable","getTransformedStyles","stylesTransform","useStylesTransform","resolvedComponentStyles","mergeVars","getStyles","useStableGetStyles","identity","factory","ui","withProps","fixedProps","Extended","genericFactory","polymorphicFactory","isNumberLike","cssUnitsRegex","every","cssObjectToString","css","rule","letter","simpleHash","str","hash","InlineStyles","deduplicate","baseStyles","mediaQueryStyles","query","containerStyles","stylesToString","extractStyleProps","others","mx","my","mt","mb","ml","mr","me","mis","mie","px","py","pt","pb","pl","pr","pe","ps","pis","pie","bd","bdrs","bg","ff","fz","fw","lts","ta","lh","fs","tt","td","miw","maw","mih","mah","bgsz","bgp","bgr","bga","pos","inset","flex","hiddenFrom","visibleFrom","lightHidden","darkHidden","sx","rest","STYLE_PROPS_DATA","colorResolver","values","mono","monospace","heading","resolvers","colorTuple","replaceMediaQuery","getBreakpointValue","breakpoint","transformModKey","getBoxMod","mergeStyles","getBoxStyle","_Box","__vars","renderRoot","__size","Element","transformedSx","useMantineSxTransform","randomClassName","parsedStyleProps","sort","sortMediaQueries","propertyData","properties","baseValue","base","hasResponsiveStyles","inlineStyles","getBreakpointKeys","bp","parseStyleProps","deduplicateInlineStyles","responsiveClassName","djb2Hash","Box","Center_module_default","Center","_props","inline","getSize","convertToRem","getSpacing","getRadius","getFontSize","getLineHeight","getShadow","Loader_module_default","Bars","barsLoader","bar","Dots","dotsLoader","dot","Oval","ovalLoader","defaultLoaders","bars","oval","dots","loaders","Loader","isMantineColorScheme","localStorageColorSchemeManager","handleStorageEvent","storedColorScheme","localStorage","getItem","setItem","warn","storageArea","newValue","unsubscribe","clear","removeItem","useIsomorphicEffect","setColorSchemeAttribute","getRootElement","hasDarkColorScheme","computedColorScheme","MantineClasses","isPxBreakpoint","pxValue","transformedValue","getTransformedScaledValue","NaN","cssVariablesObjectToString","variables","convertCssVariables","selectorOverride","selectors","sharedVariables","selectorsWithScheme","scheme","getContrastColor","getVirtualColorContrast","getPrimaryContrastColor","getCSSColorVariables","withColorValues","dynamicVariables","max","assignSizeVariables","defaultCssVariablesResolver","lightPrimaryShade","_","defaultCssVariables","MantineCssVariables","cssVariablesSelector","deduplicateCssVariables","mergedVariables","generator","defaultResolver","providerGenerator","getMergedVariables","cssVariablesResolver","shouldCleanVariables","cleaned","removeDefaultVariables","MantineProvider","withGlobalClasses","withCssVariables","colorSchemeManager","defaultColorScheme","forceColorScheme","setColorScheme","clearColorScheme","manager","colorSchemeValue","useProviderColorScheme","useRespectReduceMotion","randomId","notificationSequence","getDistributedNotifications","defaultPosition","limit","notifications","groups","__sequence","notificationsStore","initialized","updateState","initialize","createStore","updateNotificationsState","store","updated","showNotification","notification","some","hideNotification","onClose","updateNotification","resolvePromiseNotificationData","upsertNotification","pendingPromises","show","hide","promise","owners","autoClose","settle","success","clean","cleanQueue","positions","transforms","noTransform","getNotificationStateStyles","maxHeight","transitionDuration","vertical","horizontal","inState","outState","transitionTimingFunction","transitionProperty","entering","entered","exiting","exited","sign","getThresholdVector","threshold","assignRef","useMergedRef","cleanupMap","mergeRefs","useDidUpdate","mounted","previousRender","previousDependencies","isSameRender","dep","dependenciesChanged","getStyleObject","UnstyledButton_module_default","__staticSelector","UnstyledButton","CloseIcon","viewBox","xmlns","fillRule","clipRule","CloseButton_module_default","iconSize","CloseButton","dataDisabled","icon","Notification_module_default","withCloseButton","withBorder","closeButtonProps","loaderProps","role","withIcon","withTitle","NON_DOM_PROPS","pickDomProps","fromEntries","NotificationContainer","onHide","allowDragDismiss","allowScrollDismiss","paused","withAutoCloseProgress","autoCloseProgressPosition","progressProps","onHoverStart","onHoverEnd","onExpandRequest","renderNotification","layout","stackIndex","stackSize","stackPosition","stackExpanded","stackExpandedOffset","transitionState","setOffset","dismissed","setDismissed","dismissDirection","setDismissDirection","scrollDismissActive","setScrollDismissActive","_autoClose","allowClose","_position","dataStyle","_renderNotification","onOpen","_onOpen","_priority","_withAutoCloseProgress","_autoCloseProgressPosition","_sequence","notificationProps","autoCloseDuration","notificationAutoClose","getAutoClose","autoCloseProgress","setAutoCloseProgress","running","cycle","hasAutoCloseProgress","autoCloseTimeout","hideTimeout","scrollDismissTimeout","notificationRef","hoveredRef","focusedRef","contributedActiveRef","offsetRef","isCloseDisabled","syncActive","shouldContribute","releaseActive","cancelAutoClose","cancelHide","cancelScrollDismissReset","setSwipeOffset","handleHide","pausedRef","handleAutoClose","getExitOffset","direction","offsetWidth","shouldDismiss","movement","velocity","dismissNotification","dragRef","setActive","handlerRef","optionsRef","stateRef","isActive","startXY","prevXY","startTimestamp","prevTimestamp","thresholdMet","firstFired","lockedAxis","canceled","lastVelocity","documentControllerRef","elementController","applyAxisConstraint","v","axis","axisThreshold","resetDrag","userSelect","webkitUserSelect","activateDrag","onPointerMove","rawMovement","tx","ty","rawDelta","delta","timeDelta","isFirst","xy","distance","tap","onPointerUp","filterTaps","rawMov","mov","dist","isTap","tapThreshold","maxDistance","onPointerCancel","enabled","sig","useDrag","mergedRef","baseStyle","baseOpacity","swipeOpacity","resolvedTransitionDuration","isStackedLayout","isStacked","isCollapsed","isExiting","stackDirection","stackDepth","collapsedOffset","staggerDelay","isDragging","notificationStyle","touchAction","gridArea","zIndex","alignSelf","transitionDelay","handleFocusCapture","handleBlurCapture","handleWheel","isDocumentEvent","nextOffset","handleResize","previousTransitionState","wasExiting","consumerProps","interactionProps","inert","onMouseEnter","onMouseLeave","onFocusCapture","onBlurCapture","onPointerDownCapture","handlePointerDownCapture","Notifications_module_default","useForceUpdate","useMediaQuery","getInitialValueInEffect","setMatches","getInitialValue","mediaQuery","useReducedMotion","_objectWithoutPropertiesLoose","_setPrototypeOf","setPrototypeOf","_inheritsLoose","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","_React$Component","Transition","_this","initialStatus","appear","isMounting","appearStatus","in","unmountOnExit","mountOnEnter","nextCallback","_ref","_proto","updateStatus","nextStatus","cancelNextCallback","getTimeouts","mounting","nodeRef","forceReflow","performEnter","performExit","_this2","appearing","_ref2","maybeNode","maybeAppearing","timeouts","enterTimeout","safeSetState","onEntering","onTransitionEnd","onEntered","_this3","onExiting","onExited","setNextCallback","_this4","doesNotHaveTimeoutOrListener","addEndListener","_ref3","maybeNextCallback","_this$props","childProps","TransitionGroupContext","propTypes","_extends","getChildMapping","mapFn","mapper","getProp","getNextChildMapping","prevChildMapping","nextChildMapping","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","mergeChildMappings","hasPrev","hasNext","prevChild","isLeaving","k","TransitionGroup","handleExited","ReferenceError","_assertThisInitialized","contextValue","firstRender","currentChildMapping","childFactory","elevations","app","modal","overlay","getDefaultZIndex","level","createPortalNode","classList","cachedSharedPortalNode","reuseTargetNode","setNode","portalNode","existingNode","getTargetNode","disconnect","MutationObserver","childList","remove","OptionalPortal","withinPortal","__assign","__rest","getOwnPropertySymbols","propertyIsEnumerable","zeroRightClassName","fullWidthClassName","useIsomorphicLayoutEffect","currentValues","ItoI","effectCar","defaults","middleware","buffer","assigned","read","useMedium","assignSyncMedium","cb","cbs","assignMedium","executeQueue","innerCreateMedium","ssr","createSidecarMedium","nothing","RemoveScroll","parentRef","_a","onScrollCapture","onWheelCapture","onTouchMoveCapture","setCallbacks","forwardProps","removeScrollBar","shards","sideCar","noRelative","noIsolation","allowPinchZoom","_b","Container","gapMode","SideCar","containerRef","callbackRef","facade","oldValue","prevRefs_1","nextRefs_1","current_1","useMergeRefs","containerProps","lockRef","fullWidth","zeroRight","Target","isSideCarExport","stylesheetSingleton","counter","stylesheet","makeStyleTag","styleSheet","cssText","insertStyleTag","styleSingleton","sheet","useStyle","isDynamic","dynamic","zeroGap","gap","parse","Style","lockAttribute","allowRelative","important","getCurrentUseCounter","isFinite","RemoveScrollBar","noImportant","newCounter","offsets","cs","getOffset","documentWidth","clientWidth","windowWidth","getGapWidth","passiveSupported","nonPassive","elementCanBeScrolled","overflowY","overflowX","alwaysContainsScroll","locationCouldBeScrolled","ShadowRoot","elementCouldBeScrolled","getScrollVariables","elementCouldBeVScrolled","elementCouldBeHScrolled","scrollHeight","scrollWidth","getHScrollVariables","getTouchXY","getDeltaXY","extractRef","generateStyle","idCounter","lockStack","getOutermostShadowParent","shadowParent","exported","shouldPreventQueue","touchStartRef","activeAxis","allow_1","pack","ar","__spreadArray","el","shouldCancelEvent","currentAxis","touch","touchStart","moveDirection","canBeScrolledInMainDirection","cancelingAxis","endTarget","sourceDelta","directionFactor","getDirectionFactor","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","elementScroll","parent_1","DOCUMENT_FRAGMENT_NODE","handleScroll","shouldPrevent","_event","sourceEvent","should","shardNodes","shouldCancel","scrollTouchStart","scrollWheel","scrollTouchMove","ReactRemoveScroll","Transition$1","containerWidth","notificationMaxHeight","pauseResetOnHover","Notifications","portalProps","useStore","useNotifications","shouldReduceMotion","previousLength","hoveredCounts","setHoveredCounts","expandedPositions","setExpandedPositions","hoveredGroups","setHoveredGroups","pinnedPosition","setPinnedPosition","collapseTimeouts","hoveredCount","handleHoverStart","handleHoverEnd","getGroupHoverProps","handleExpandRequest","handlePointerDown","grouped","getGroupedNotifications","pinnedCount","resizeObserver","measuredHeights","observedIds","measureNotification","offsetHeight","ResizeObserver","changed","refCallbacks","getNotificationRef","groupedComponents","groupLength","expandedOffsets","stackOrder","cumOffset","Subscribable","onSubscribe","onUnsubscribe","hasListeners","focusManager","super","onFocus","setEventListener","setup","focused","setFocused","isFocused","globalThis","visibilityState","defaultTimeoutProvider","timeoutId","setInterval","clearInterval","intervalId","timeoutManager","setTimeoutProvider","defaultScheduler","notifyManager","transactions","notifyFn","batchNotifyFn","scheduleFn","schedule","batch","originalQueue","flush","batchCalls","args","setNotifyFunction","setBatchNotifyFunction","setScheduler","createNotifyManager","isServer","isValidTimeout","timeUntilStale","updatedAt","staleTime","resolveQueryValue","matchQuery","filters","exact","fetchStatus","predicate","queryKey","stale","queryHash","hashQueryKeyByOptions","partialMatchKey","isStale","matchMutation","mutation","mutationKey","hashKey","queryKeyHashFn","JSON","stringify","bKeys","replaceEqualDeep","isPlainArray","aSize","bItems","bSize","copy","equalItems","aItem","bItem","shallowEqualObjects","hasObjectPrototype","objectPrototype","prot","replaceData","prevData","structuralSharing","addToArray","items","prepend","newItems","skipToken","ensureQueryFn","fetchOptions","queryFn","initialPromise","shouldThrowError","throwOnError","params","fetchSignal","Removable","clearGcTimeout","scheduleGc","gcTime","optionalRemove","updateGcTime","newGcTime","onlineManager","onOnline","onlineListener","offlineListener","setOnline","online","isOnline","defaultRetryDelay","failureCount","canFetch","networkMode","CancelledError","revert","silent","createRetryer","continueFn","promiseResolve","promiseReject","isRetryCancelled","isResolved","canContinue","canRun","canStart","pause","canResume","continueResolve","onPause","onContinue","run","promiseOrValue","retryDelay","shouldRetry","onFail","cancelOptions","onCancel","continue","cancelRetry","continueRetry","Mutation","client","mutationId","mutationCache","failureReason","isPaused","submittedAt","setOptions","meta","addObserver","notify","removeObserver","execute","mutationFnContext","retryer","mutationFn","restored","onMutate","onSuccess","onSettled","runNext","onMutationUpdate","MutationCache","build","defaultMutationOptions","scopeFor","scopedMutations","firstPendingMutation","find","mutations","getAll","defaultedFilters","findAll","resumePausedMutations","pausedMutations","infiniteQueryBehavior","pages","onFetch","fetchMore","oldPages","oldPageParams","pageParams","currentPage","fetchFn","cancelled","signalContext","addSignalProperty","getSignal","onCancelled","internalSignal","consumed","addConsumeAwareSignal","fetchPage","param","queryFnContext","pageParam","createQueryFnContext","page","maxPages","pageParamFn","getPreviousPageParam","getNextPageParam","oldData","remainingPages","initialPageParam","persister","lastIndex","Query","defaultOptions","getQueryCache","queryType","_type","defaultState","successState","dataUpdatedAt","setData","newData","manual","resetState","getObserversCount","isFetched","dataUpdateCount","errorUpdateCount","isStatic","getCurrentResult","isInvalidated","isStaleByTime","shouldFetchOnWindowFocus","refetch","cancelRefetch","shouldFetchOnReconnect","invalidate","fetch","abortController","createFetchContext","behavior","fetchMeta","fetchPromise","fetchFailureCount","fetchFailureReason","fetchState","errorUpdatedAt","onQueryUpdate","initialData","hasData","initialDataUpdatedAt","QueryCache","defaultQueryOptions","getQueryDefaults","queries","IsRestoringContext","QueryClientContext","useQueryClient","queryClient","QueryClientProvider","mount","QueryErrorResetBoundaryContext","isReset","clearReset","createValue","QueryObserver","bindMethods","shouldFetchOnMount","updateResult","shouldFetchOn","refetchOnReconnect","refetchOnWindowFocus","prevOptions","prevQuery","_defaulted","shouldFetchOptionally","nextRefetchInterval","getOptimisticResult","createResult","trackResult","onPropTracked","Proxy","trackProp","getCurrentQuery","fetchOptimistic","defaultedOptions","resolveEarly","cachePromise","refetchInterval","nextInterval","refetchIntervalInBackground","prevResult","prevResultOptions","queryInitialState","isPlaceholderData","_optimisticResults","fetchOnMount","fetchOptionally","skipSelect","placeholderData","isMemoizedPlaceholder","select","selectError","isFetching","isPending","isError","isLoading","isSuccess","isInitialLoading","isFetchedAfterMount","isRefetching","isLoadingError","isRefetchError","isEnabled","nextResult","notifyListeners","notifyOnChangeProps","notifyOnChangePropsValue","shouldNotifyListeners","retryOnMount","shouldLoadOnMount","refetchOnMount","field","suspense","useQuery","Observer","isRestoring","errorResetBoundary","subscribed","MIN_SUSPENSE_TIME_MS","clamp","originalStaleTime","ensureSuspenseTimers","ensurePreventErrorBoundaryRetry","useClearResetErrorBoundary","shouldSubscribe","onStoreChange","shouldSuspend","getHasError","useBaseQuery","firminTheme","firmin","fmRed","fmAmber","fmGreen","canvasBg","borderSubtle","surfaceMuted","inkMuted","inkSecondary","linkColor","linkHoverColor","Card","shadow","padding","Paper","Button","ActionIcon","Badge","Chip","SegmentedControl","Modal","Popover","Tooltip","withArrow","openDelay","getLanguageFromCookie","cookie","decodeURIComponent","CATALOGS","en","whole","ME","ApiError","api","path","headers","Accept","response","readCookie","getElementById","csrfCookie","csrfCookieName","credentials","json","ok","formatDate","iso","Paper_module_default","Stack_module_default","align","justify","Stack","Alert_module_default","useId$1","staticId","reactId","uuid","setUuid","hasInitializedRef","Alert","closeButtonLabel","rootId","titleId","bodyId","Text_module_default","getTextTruncate","truncate","lineClamp","Text","span","popIn","out","fade","transformOrigin","transitionStatuses","getTransitionStyles","timingFunction","WebkitBackfaceVisibility","keepMounted","keepMountedMode","exitDuration","enterDelay","exitDelay","transitionStatus","reduceMotion","setTransitionDuration","setStatus","transitionTimeoutRef","delayTimeoutRef","rafRef","clearAllTimeouts","cancelAnimationFrame","handleStateChange","shouldMount","preHandler","newTransitionDuration","isExited","keepMountedChildren","Button_module_default","orientation","borderWidth","ButtonGroup","groupSection","ButtonGroupSection","loaderTransition","hoverColor","leftSection","rightSection","hasLeftSection","hasRightSection","block","transitionStyles","Brand","alt","ConfirmPage","token","setDone","setError","busy","setBusy","answer","Group","GroupSection","Title_module_default","order","sizeVariables","titleSize","getTitleSize","Title","InputContext","useResolvedStylesApi","InputClearButton","clearSectionOffset","InputWrapperContext","offsetBottom","offsetTop","describedBy","inputId","labelId","Input_module_default","description","InputDescription","__inheritStyles","_getStyles","InputError","labelElement","label","InputLabel","required","htmlFor","onMouseDown","rootElement","supportsHtmlFor","InputPlaceholder","InputSuccess","getInputOffsets","inputWrapperOrder","hasDescription","hasError","inputIndex","findIndex","part","aboveInput","belowInput","inputContainer","InputWrapper","labelProps","descriptionProps","errorProps","successProps","withAsterisk","__stylesApiProps","sharedProps","idBase","isRequired","errorId","successId","descriptionId","hasSuccess","_describedBy","_label","_description","_input","_error","_success","leftSectionPointerEvents","rightSectionPointerEvents","withAria","withErrorStyles","withSuccessStyles","loadingPosition","wrapper","leftSectionWidth","rightSectionWidth","multiline","Input","wrapperProps","leftSectionProps","rightSectionProps","pointer","inputSize","__clearSection","__clearable","__clearSectionMode","__defaultRightSection","__bottomSection","__bottomSectionProps","rootRef","dir","ariaAttributes","loadingIndicator","_leftSection","_rightSection","clearSection","alignItems","paddingInlineEnd","InputClearSection","withRightSection","withLeftSection","withBottomSection","Wrapper","Label","Success","Description","Placeholder","ClearButton","InputBase","inputProps","_wrapperProps","useInputProps","TextInput","Group_module_default","preventGrowOverflow","wrap","grow","childWidth","filteredChildren","filterFalsyChildren","childrenCount","resolvedGap","createPinArray","splitted","PinInput_module_default","useUncontrolled","finalValue","onChange","uncontrolledValue","setUncontrolledValue","regex","alphanumeric","manageFocus","oneTimeCode","placeholder","ariaLabel","PinInput","onComplete","readOnly","inputType","inputMode","hiddenInputProps","getInputProps","focusedIndex","setFocusedIndex","inputsRef","currentLength","completedRef","_value","setValues","stringValue","_valueToString","validate","focusInputField","nextIndex","prevIndex","setFieldValue","handleBlur","handlePaste","pasteData","pasteArray","filledCount","inputValue","newChar","handleChange","onKeyDown","isModifierShortcut","handleKeyDown","onBlur","onPaste","autoComplete","Anchor_module_default","underline","Anchor","mergeClasses","tokens","cls","defaultAttributes","stroke","isDefined","LucideContext","Icon","strokeWidth","absoluteStrokeWidth","nonScalingStroke","iconNode","contextSize","contextStrokeWidth","contextAbsoluteStrokeWidth","contextNonScalingStroke","contextColor","contextClass","hasAccessibleProp","hasA11yProp","svgAttributes","builtIconNode","attributeNames","getAttributeName","viewBoxWidth","viewBoxHeight","aliasClassNames","alias","iconClassNames","classNamesFromClassName","includeDefaultClasses","calculatedStrokeWidth","scaled","attrs","attrName","nextAttrs","buildLucideIconNode","class","buildLucideIconForReact","createLucideIcon","iconDataOrName","iconData","iconName","toLucideIconData","string","camelCase","upperNext","toCamelCase","charAt","toPascalCase","Mail","rx","Frame","Login","narrow","setEmail","sentTo","setSentTo","setCode","wait","setWait","requestCode","verify","replaceState","invalidateQueries","signedIn","loginOpen","onSubmit","seconds","LinkLogin","findElementAncestor","_element","DirectionContext","toggleDirection","setDirection","useDirection","getFloatingPosition","side","flippedPosition","Overlay_module_default","backgroundOpacity","Overlay","fixed","center","createSafeContext","errorMessage","PopoverContextProvider","usePopoverContext","isElement","getSingleElementChild","_children","createEventHandler","parentEventHandler","DEFAULT_EVENTS","getEventPosition","isTouchEvent","TouchEvent","isMouseEvent","MouseEvent","useContextMenuHandlers","opened","longPressDelay","setReference","open","touchActiveRef","gestureHandledRef","touchTargetRef","disabledRef","openAtPoint","contextElement","toJSON","onContextMenu","longPressHandlers","onLongPress","cancelOnMove","onStart","onFinish","isLongPressActive","isPressed","startPosition","eventsKey","moveEnabled","moveThreshold","move","dx","dy","sqrt","handlers","onMouseUp","onMouseMove","onTouchStart","onTouchEnd","onTouchCancel","onTouchMove","useLongPress","touchEvent","WebkitTouchCallout","WebkitUserSelect","PopoverContextMenu","reference","onToggle","Popover_module_default","closeOnEscape","onTrigger","horizontalSide","arrowY","arrowOffset","arrowPosition","verticalSide","arrowX","radiusByFloatingSide","getArrowPositionStyles","arrowSize","arrowRadius","isStart","physicalSide","getMergeArrowStyles","arrowPlacement","borderLeftColor","borderBottomColor","borderRightColor","borderTopColor","getArrowMergeDropdownStyles","isPhysicallyLeft","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","FloatingArrow","visible","VisuallyHidden_module_default","VisuallyHidden","TABBABLE_NODES","FOCUS_SELECTOR","getElementTabIndex","tabIndex","isTabIndexNotNaN","isContentEditable","hasMediaControls","HTMLAnchorElement","tabbable","findTabbableDescendants","NATIVE_TAB_STOPS_INPUT_TYPES","NATIVE_TAB_STOPS_NODES","isRadio","isSameRadioGroup","focusFirstAvailable","candidates","candidate","scopeTab","backwards","sequence","getTabSequence","reverse","startIndex","activeIndex","getStartIndex","getCandidates","hasNativeTabStops","isConnected","activeTraps","FocusTrap","innerRef","focusElement","preventScroll","setRef","trap","nested","hasNestedActiveTrap","useFocusTrap","FocusTrapInitialFocus","useFocusReturn","shouldReturnFocus","lastActiveElement","returnFocus","clearFocusTimeout","activeElementAtClose","currentActiveElement","InitialFocus","PopoverDropdown","onKeyDownCapture","accessibleProps","withRoles","getTargetId","getDropdownId","floating","transitionProps","trapFocus","onDismiss","floatingStrategy","referenceHidden","dropdown","arrowRef","getRefProp","popupType","PopoverTarget","forwardedProps","targetRef","targetProps","controlled","sides","createCoords","oppositeSideMap","evaluate","getSide","getAlignment","getOppositeAxis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getOppositePlacement","getPaddingObject","_padding$top","_padding$right","_padding$bottom","_padding$left","expandPaddingObject","rectToClientRect","computeCoordsFromPlacement","rtl","sideAxis","alignmentAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","alignment","detectOverflow","_await$platform$isEle","platform","strategy","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","getClippingRect","getDocumentElement","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","getSideOffsets","isAnySideFullyClipped","getBoundingRect","minX","minY","originSides","hasWindow","getNodeName","isNode","getWindow","_node$ownerDocument","isHTMLElement","isShadowRoot","isOverflowElement","isTableElement","isTopLayer","_e","willChangeRe","containRe","isNotNone","isWebKitValue","isContainingBlock","elementOrCss","translate","rotate","perspective","isWebKit","backdropFilter","willChange","contain","supports","isLastTraversableNode","getNodeScroll","getParentNode","assignedSlot","getNearestOverflowAncestor","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","frameElement","getFrameElement","visualViewport","getCssDimensions","hasOffset","shouldFallback","$","unwrapElement","noOffsets","getVisualOffsets","offsetLeft","includeScale","isFixedStrategy","clientRect","visualOffsets","isFixed","floatingOffsetParent","shouldAddVisualOffsets","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","getWindowScrollBarX","leftScroll","getHTMLOffset","htmlRect","getClientRectFromClippingAncestor","clippingAncestor","isLayoutViewport","html","layoutRelativeClientCoords","bodyStyles","bodyMarginInline","compatMode","marginLeft","marginRight","reservedWidth","gutter","scrollbarGutter","getViewportRect","getDocumentRect","getInnerBoundingClientRect","getRectRelativeToOffsetParent","isOffsetParentAnElement","offsetRect","htmlOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","svgOffsetParent","currentNode","getContainingBlock","topLayer","clippingAncestors","cachedResult","lastKeptComputedStyle","elementIsFixed","currentNodeIsContaining","lastPosition","ancestor","getClippingElementAncestors","_c","firstRect","getElementRects","getOffsetParentFn","getDimensionsFn","getDimensions","floatingDimensions","isRTL","rectsAreEqual","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","IntersectionObserver","animationFrame","referenceEl","ancestors","cleanupIo","onMove","io","_io","refresh","skip","elementRectForRootMargin","isFirstUpdate","handleObserve","ratio","intersectionRatio","observeMove","frameId","reobserveFrame","firstEntry","_resizeObserver","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","_middlewareData$arrow","_middlewareData$flip","middlewareData","initialPlacement","mainAxis","checkMainAxis","crossAxis","checkCrossAxis","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","detectOverflowOptions","arrow","alignmentOffset","initialSideAxis","isBasePlacement","oppositePlacement","getExpandedPlacements","hasFallbackAxisSideDirection","getSideList","getOppositeAxisPlacements","placements","overflows","overflowsData","flip","mainAlignmentSide","getAlignmentSides","_middlewareData$flip2","_overflowsData$filter","nextPlacement","resetPlacement","_overflowsData$filter2","currentSideAxis","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","shouldAddOffset","centerOffset","_rawOffset$mainAxis","_rawOffset$crossAxis","mainAxisCoord","crossAxisCoord","rawOffset","computedOffset","len","limitMin","limitMax","_middlewareData$offse","_middlewareData$offse2","isOriginSide","mergedOptions","platformWithCache","platformWithDetectOverflow","statefulPlacement","resetCount","currentMiddleware","nextX","nextY","computePosition","deepEqual","getDPR","roundByDPR","dpr","useLatestRef","diffCoords","mainAxisMulti","crossAxisMulti","rawValue","convertValueToCoords","limiter","clampCoord","coord","limitedCoords","referenceHiddenOffsets","escapedOffsets","escaped","nativeClientRects","clientRects","sortedRects","prevRect","getRectsByLine","resetRects","lastRect","isTop","isLeftSide","maxRight","minLeft","measureRects","arrow$1","isJSDOM","uaData","userAgentData","brands","brand","userAgent","getUserAgent","FOCUSABLE_ATTRIBUTE","_activeElement","shadowRoot","getTarget","composedPath","isEventTargetWithin","getDocument","getNodeChildren","onlyOpenChildren","_node$context","parentId","flatMap","isMouseLikePointerType","strict","useSafeInsertionEffect","_len","_key","cleanupRef","refEffect","cleanups","refCallback","ACTIVE_KEY","SELECTED_KEY","serverHandoffComplete","genId","setId","FloatingNodeContext","FloatingTreeContext","useFloatingParentNodeId","_React$useContext","useFloatingTree","createAttribute","clearTimeoutIfSet","timeoutRef","safePolygonIdentifier","getDelay","getRestMs","useHover","onOpenChange","dataRef","handleClose","mouseOnly","restMs","tree","handleCloseRef","delayRef","openRef","restMsRef","pointerTypeRef","restTimeoutRef","blockMouseMoveRef","performedPointerEventsMutationRef","unbindMouseMoveRef","restTimeoutPendingRef","isHoverOpen","_dataRef$current$open","openEvent","on","off","onLeave","closeWithDelay","runElseBranch","closeDelay","cleanupMouseMoveHandler","clearPointerEvents","isClickLikeOpenEvent","domReference","onScrollMouseLeave","onReferenceMouseEnter","onReferenceMouseLeave","onFloatingMouseEnter","onFloatingMouseLeave","floatingContext","_handleCloseRef$curre","__options","blockPointerEvents","floatingEl","_tree$nodesRef$curren","parentFloating","nodesRef","setPointerRef","onPointerDown","onPointerEnter","handleMouseMove","NOOP","FloatingDelayGroupContext","initialDelay","timeoutMs","currentId","setCurrentId","isInstantPhase","FloatingDelayGroup","initialCurrentIdRef","bubbleHandlerKeys","pointerdown","mousedown","click","captureHandlerKeys","normalizeProp","normalizable","_normalizable$escapeK","_normalizable$outside","escapeKey","outsidePress","useDismiss","unstable_outsidePress","outsidePressEvent","referencePress","referencePressEvent","outsidePressFn","endedOrStartedInsideRef","escapeKeyBubbles","outsidePressBubbles","escapeKeyCapture","outsidePressCapture","isComposingRef","closeOnEscapeKeyDown","_dataRef$current$floa","nodeId","_child$context","__escapeKeyBubbles","isReactEvent","closeOnEscapeKeyDownCapture","_getTarget2","_getTarget","closeOnPressOutside","_dataRef$current$floa2","insideReactTree","endedOrStartedInside","inertSelector","markers","targetRootAncestor","nextParent","marker","lastTraversableNode","scrollRe","isScrollableX","isScrollableY","canScrollX","canScrollY","pressedVerticalScrollbar","offsetX","pressedHorizontalScrollbar","offsetY","targetIsInsideChildren","_child$context2","__outsidePressBubbles","closeOnPressOutsideCapture","_getTarget4","_getTarget3","compositionTimeout","handleCompositionStart","handleCompositionEnd","_doc$defaultView","setMouseDownOrUpInside","_temp","_elementsOption$refer","_elementsOption$float","elementsOption","internalRootContext","onOpenChangeProp","elementsProp","floatingId","_map$get","_map$get2","createEventEmitter","positionReference","setPositionReference","useFloatingRootContext","rootContext","computedElements","_domReference","setDomReference","_setPositionReference","domReferenceRef","externalReference","externalFloating","whileElementsMounted","isPositioned","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","referenceRef","setFloating","floatingRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","fullData","isMountedRef","floatingStyles","initialStyles","useFloating","computedPositionReference","isMacSafari","getPlatform","maxTouchPoints","vendor","useFocus","visibleOnly","blockFocusRef","keyboardModalityRef","matchesFocusVisible","movedToFocusGuard","activeEl","mergeProps","userProps","propsList","elementKey","isItem","domUserProps","__","validProps","propsOrGetProps","useInteractions","referenceDeps","floatingDeps","itemDeps","getReferenceProps","getFloatingProps","getItemProps","componentRoleToAriaRoleMap","useRole","_elements$domReferenc","_componentRoleToAriaR","defaultFloatingId","defaultReferenceId","referenceId","_getFloatingFocusElem","floatingElement","ariaRole","isNested","floatingProps","commonProps","isPointInPolygon","point","polygon","isInside","xi","yi","xj","yj","safePolygon","requireIntent","hasLanded","lastX","lastY","lastCursorTime","close","clientPoint","isLeave","isOverFloatingEl","isOverReferenceEl","refRect","cursorLeaveFromRight","cursorLeaveFromBottom","isOverReferenceRect","isFloatingWider","isFloatingTaller","rectPoly","cursorSpeed","getCursorSpeed","cursorPointOne","cursorPointTwo","getPolygon","getPopoverMiddlewares","getFloating","disableFlip","lockEnabled","middlewaresOptions","middlewares","getDefaultMiddlewares","userFlip","flipOptions","shiftOptions","isVerticalPlacement","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","shiftData","noShift","availableHeight","availableWidth","nextDimensions","maxWidth","closeOnClickOutside","withOverlay","hideDetached","preventPositionChangeWhenVisible","clickOutsideEvents","clickOutsideCapture","onPositionChange","onExitTransitionEnd","onEnterTransitionEnd","defaultOpened","overlayProps","setTargetNode","dropdownNode","setDropdownNode","uid","_opened","setOpened","previouslyOpened","measuredAfterShowRef","lockedPlacement","setLockedPlacement","wasOpenedRef","previousPositionRef","resetLockedPlacement","placementRef","referenceElement","flEl","previousPlacementRef","usePopover","eventsList","useClickOutside","Dropdown","ContextMenu","MenuContextProvider","useMenuContext","MenuCheckboxGroupContext","MenuCheckboxGroup","toggle","Menu_module_default","CheckIcon","_style","CheckboxIcon","indeterminate","getPreviousIndex","loop","getNextIndex","createScopedKeydownHandler","parentSelector","siblingSelector","activateOnFocus","onSameLevel","_nextIndex","_previousIndex","previousIndex","firstElement","lastElement","SubMenuContext","MenuSelectableItem","indicator","onSelect","closeMenuOnClick","buttonRef","subCtx","closeKey","itemRef","handleClick","closeDropdownImmediately","hasSearch","closest","handleKeydown","focusParentItem","parsedThemeColor","renderIndicator","alignItemsLabels","menuItemTabIndex","MenuCheckboxItem","checkIcon","groupCtx","groupChecked","_checked","setChecked","resolvedCheckIcon","MenuContextMenu","popoverCtx","openDropdown","MenuDivider","getItemText","useMenuTypeAhead","getDropdown","currentIndex","idx","MenuDropdown","wrapperRef","typeAhead","handleMouseEnter","trigger","handleMouseLeave","closeDropdown","withInitialFocusPlaceholder","outline","MenuItem","_others","closeOnItemClick","MenuLabel","MenuRadioGroupContext","MenuRadioGroup","RadioIcon","cx","cy","MenuRadioItem","clearActive","getActiveIndex","clearSearchOnClose","MenuSearch","inputRef","onChangeRef","registerSearch","searchExitClearRef","getItems","KeyboardEvent","_styles","MenuSubDropdown","onPointerLeave","AccordionChevron","MenuSubItem","openKey","focusFirstItem","parentContext","referenceProps","MenuSubTarget","safeAreaPolygon","MenuSub","openedProp","parentSubCtx","menuCtx","resolvedPosition","levelRegister","registerOpenSub","activeChildCloseRef","closeFn","setOpenedRef","handleOpen","nextOpen","nextOpened","Item","MenuTarget","_childProps","toggleDropdown","setOpenedViaClick","openedViaClick","openTimeout","closeTimeout","clearTimeouts","useDelayedHover","activeSubCloseRef","searchCountRef","setHasSearch","getItemIndex","elementSelector","getContextItemIndex","Divider","Search","Sub","CheckboxItem","CheckboxGroup","RadioItem","RadioGroup","ActionIcon_module_default","ActionIconGroup","ActionIconGroupSection","Container_module_default","fluid","defaultTransition","getTransitionProps","componentTransition","Tooltip_module_default","tooltip","TooltipFloating","boundaryRef","horizontalOffset","verticalOffset","parents","useFloatingTooltip","TooltipGroupContext","withinGroup","TooltipGroup","getTooltipMiddlewares","settings","interactive","uncontrolledOpened","setUncontrolledOpened","hideData","groupDelay","optionId","groupContext","unset","useDelayGroup","isGroupPhase","useTooltip","tooltipStyles","interactiveMod","Floating","BuildingComplex","ChevronDown","Check","Plus","UserRound","Globe","LogOut","Inbox","points","CalendarClock","Settings","MessageCircle","isStandalone","standalone","isIos","pushSupported","keyBytes","base64url","padded","raw","atob","Uint8Array","currentSubscription","serviceWorker","pushManager","getSubscription","sameKey","subscription","publicKey","applicationServerKey","byte","subscriptionFor","registration","userVisibleOnly","Modal_module_default","ModalBaseProvider","useModalBaseContext","ModalBase_module_default","ModalBaseBody","setBodyMounted","getBodyId","useModalBodyId","ModalProvider","useModalContext","ModalBody","ModalBaseCloseButton","ModalCloseButton","ModalBaseContent","innerProps","bodyMounted","titleMounted","getTitleId","NativeScrollArea","ModalContent","__hidden","scrollAreaComponent","fullScreen","yOffset","ModalBaseHeader","ModalHeader","DEFAULT_TRANSITION","ModalBaseOverlay","transitionOverride","useModalTransition","ModalOverlay","useResizeObserver","onResize","rAF","ScrollAreaProvider","useScrollAreaContext","Corner","setWidth","setHeight","hasSize","scrollbarX","onCornerHeightChange","scrollbarY","onCornerWidthChange","ScrollAreaCorner","hasBothScrollbarsVisible","scrollHideDelay","ScrollAreaRoot","scrollbars","scrollArea","setScrollArea","viewport","setViewport","setContent","setScrollbarX","setScrollbarY","cornerWidth","setCornerWidth","cornerHeight","setCornerHeight","scrollbarXEnabled","setScrollbarXEnabled","scrollbarYEnabled","setScrollbarYEnabled","onViewportChange","onContentChange","onScrollbarXChange","onScrollbarXEnabledChange","onScrollbarYChange","onScrollbarYEnabledChange","getThumbRatio","viewportSize","contentSize","getThumbSize","scrollbarPadding","scrollbar","paddingStart","paddingEnd","thumbSize","linearScale","output","getThumbOffsetFromScroll","scrollPos","thumbSizePx","maxScrollPos","maxThumbPos","scrollWithoutMomentum","isScrollingWithinScrollbarBounds","toInt","composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","ScrollbarProvider","useScrollbarContext","useDebouncedCallback","flushOnUnmount","leading","maxWait","handleCallback","debounceTimerRef","maxWaitTimerRef","latestArgsRef","lastCallback","currentCallback","isFirstCall","_isFirstCall","clearTimeoutAndLeadingRef","_hasPendingCallback","startMaxWaitTimer","latestArgs","resetLeadingState","Scrollbar","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","scrollbarProps","setScrollbar","composeRefs","rectRef","prevWebkitUserSelectRef","handleWheelScroll","handleThumbPositionChange","handleDragScroll","setPointerCapture","hasPointerCapture","releasePointerCapture","onLostPointerCapture","ScrollAreaScrollbarX","onSizesChange","forwardedRef","setComputedStyle","pointerPos","paddingRight","ScrollAreaScrollbarY","ScrollAreaScrollbarVisible","thumbRef","pointerOffsetRef","setSizes","thumbRatio","thumb","getScrollPosition","pointerOffset","thumbOffsetFromEnd","minPointerPos","maxPointerPos","getScrollPositionFromPointer","ScrollAreaScrollbarAuto","forceMount","setVisible","isHorizontal","isOverflowX","isOverflowY","ScrollAreaScrollbarHover","hideTimer","handlePointerEnter","handlePointerLeave","ScrollAreaScrollbarScroll","debounceScrollEnd","scrollDirection","prevScrollPos","ScrollAreaScrollbar","Thumb","scrollAreaContext","scrollbarContext","composedRef","removeUnlinkedScrollListenerRef","prevPosition","isHorizontalScroll","isVerticalScroll","addUnlinkedScrollListener","thumbRect","ScrollAreaThumb","thumbProps","ScrollAreaViewport","onWheel","ScrollArea_module_default","scrollbarSize","overscrollBehavior","overrideOverscrollBehavior","ScrollArea","viewportProps","viewportRef","onScrollPositionChange","offsetScrollbars","onBottomReached","onTopReached","onLeftReached","onRightReached","startScrollPosition","verticalScrollbarPosition","scrollbarHovered","setScrollbarHovered","verticalThumbVisible","setVerticalThumbVisible","horizontalThumbVisible","setHorizontalThumbVisible","prevAtTopRef","prevAtBottomRef","prevAtLeftRef","prevAtRightRef","localViewportRef","viewportElement","setViewportElement","viewportCallbackRef","combinedViewportRef","isAtBottom","isAtTop","isAtRight","isAtLeft","ScrollAreaAutosize","onOverflowChange","viewportObserverRef","viewportObserverElement","setViewportObserverElement","viewportObserverCallbackRef","overflowingRef","didMountRef","handleOverflowCheck","isOverflowing","flexDirection","minWidth","minHeight","useModal","handledEscapeEvents","_id","setTitleMounted","shouldLockScroll","setShouldLockScroll","_transitionDuration","useLockScroll","stableListener","useWindowEvent","ModalBase","lockScroll","removeScrollProps","__handledEscapeEvents","removeScrollKey","otherRemoveScrollProps","Autosize","xOffset","ModalRoot","centered","ModalStackContext","ModalStack","setStack","maxZIndex","setMaxZIndex","addModal","removeModal","getZIndex","ModalBaseTitle","useModalTitle","ModalTitle","stackId","hasHeader","stackProps","overlayVisible","AddFirm","onAdded","ico","setIco","sent","setSent","Root","Content","Body","Header","Drawer_module_default","DrawerProvider","useDrawerContext","DrawerBody","DrawerCloseButton","DrawerContent","DrawerHeader","DrawerOverlay","getDrawerAlign","getDrawerFlex","rtlTransitions","DrawerRoot","drawerTransition","DrawerStackContext","DrawerStack","DrawerTitle","Drawer","parseItem","getParsedComboboxData","getOptionsLockup","findElementBySelector","allElements","shadowElement","findElementsBySelector","results","shadowElements","isDocument","DOCUMENT_NODE","useCombobox","onOpenedChange","onDropdownClose","onDropdownOpen","scrollBehavior","dropdownOpened","setDropdownOpened","listId","selectedOptionIndex","searchRef","focusSearchTimeout","focusTargetTimeout","selectedIndexUpdateTimeout","eventSource","clearSelectedItem","selectOption","selectActiveOption","activeOption","option","selectNextOption","selectPreviousOption","selectFirstOption","getFirstIndex","updateSelectedOptionIndex","resetSelectedOption","clickSelectedOption","setListId","focusSearchInput","focusTarget","getSelectedOptionIndex","Combobox_module_default","chevron","ComboboxChevron","ComboboxProvider","useComboboxContext","ComboboxClearButton","onClear","ComboboxDropdown","hidden","floatingHeight","ComboboxDropdownTarget","ComboboxEmpty","useComboboxTargetProps","withKeyboardNavigation","withAriaAttributes","withExpandedAttribute","targetType","selectedOptionId","setSelectedOptionId","ComboboxEventsTarget","ComboboxFooter","ComboboxGroup","hasLabel","ComboboxHeader","ComboboxHiddenInput","valuesDivider","ComboboxOption","onMouseOver","onOptionSubmit","resetSelectionOnOptionHover","ComboboxOptions","labelledBy","ComboboxSearch","ComboboxTarget","clonedElement","dropdownPadding","Combobox","controlledStore","resolvedMiddlewares","userSize","uncontrolledStore","isOptionsGroup","defaultOptionsFilter","parsedSearch","filteredItems","validateOptions","valuesSet","Option","withCheckIcon","withAlignedLabels","checkIconPosition","renderOption","optionValue","isValueChecked","optionsDropdownCheckIcon","optionsDropdownCheckPlaceholder","defaultContent","optionsDropdownOption","OptionsDropdown","hiddenWhenEmpty","maxDropdownHeight","withScrollArea","filterOptions","nothingFoundMessage","scrollAreaProps","filteredData","isEmpty","isEmptyComboboxData","Options","Empty","Chevron","Footer","EventsTarget","DropdownTarget","HiddenInput","allowDeselect","openOnFocus","Select","defaultDropdownOpened","selectFirstOptionOnChange","selectFirstOptionOnDropdownOpen","comboboxProps","searchable","searchValue","defaultSearchValue","onSearchChange","clearable","clearSectionMode","clearButtonProps","chevronColor","autoSelectOnBlur","parsedData","retainedSelectedOptions","optionsLockup","comboboxLabelId","getComboboxLabelId","selectedOption","previousSelectedOption","usePrevious","setSearch","searchControlled","combobox","handleSearchChange","clearButton","_clearable","optionLockup","isExternalInputChange","externalOption","normalizedLabel","matchedOptions","getOptionByLabel","SIZING_STYLE_KEYS","HIDDEN_TEXTAREA_STYLE","visibility","forceHiddenStyles","hiddenTextarea","TextareaAutosize","maxRows","minRows","userRef","isControlled","libRef","heightRef","widthRef","resizeTextarea","nodeSizingData","sizingStyle","boxSizing","paddingSize","borderSize","borderBottomWidth","borderTopWidth","getSizingData","sizingData","rowHeight","calculateNodeHeight","handleFontsLoaded","handleReset","rows","Textarea","autosize","resize","bottomSection","bottomSectionProps","shouldAutosize","autosizeProps","Divider_module_default","labelPosition","withLabel","Contact","prefill","firms","phone","firm","setFirm","setMessage","preset","maxLength","map_url","address","phone_mail","phone_other","hours_url","Badge_module_default","circle","getSafeId","getAutoContrastValue","TabsProvider","useTabsContext","Tabs_module_default","TabsList","inverted","TabsPanel","setMountedPanel","shouldKeepMounted","useActivity","getPanelId","getTabId","TabsTab","stylesApiProps","mountedPanels","allowTabDeactivation","activateTabWithKeyboard","VALUE_ERROR","Tabs","panelValue","panels","currentTab","setCurrentTab","Tab","Panel","List","PaginationProvider","usePaginationContext","Pagination_module_default","withPadding","PaginationControl","_disabled","PaginationIcon","PaginationDots","createEdgeComponent","total","PaginationNext","PaginationPrevious","PaginationFirst","PaginationLast","PaginationItems","dotsIcon","formatLabel","totalPages","PaginationLabel","DOTS","siblings","boundaries","PaginationRoot","onNextPage","onPreviousPage","onFirstPage","onLastPage","setPage","initialPage","_startValue","trunc","_endValue","_total","_initialPage","activePage","setActivePage","pageNumber","leftSiblingIndex","rightSiblingIndex","shouldShowLeftDots","shouldShowRightDots","rightItemCount","usePagination","onNext","onPrevious","onFirst","onLast","withControls","withPages","PaginationItemsGroup","Pagination","withEdges","getControlProps","nextIcon","previousIcon","lastIcon","firstIcon","hideWithOnePage","pagesContent","First","Last","Next","Previous","Items","Eye","FileScan","Shredder","CopyButton","clipboard","copied","setCopied","writeText","useClipboard","Image_module_default","fit","Image","fallbackSrc","TableProvider","useTableContext","Table_module_default","getDataAttributes","columnBorder","withColumnBorders","rowBorder","withRowBorders","striped","highlightOnHover","captionSide","stickyHeader","tableElement","TableTh","TableTd","TableTr","TableThead","TableTbody","TableTfoot","TableCaption","TableDataRenderer","caption","rowIndex","foot","scrollContainer","TableScrollContainer","verticalSpacing","horizontalSpacing","borderColor","stripedColor","highlightOnHoverColor","stickyHeaderOffset","table","Table","withTableBorder","tabularNums","stripedValue","resolvedCaptionSide","Td","Th","Tr","Thead","Tbody","Tfoot","Caption","ScrollContainer","DataRenderer","Copy","ry","CircleCheck","Truck","Send","CopyValue","PaymentModal","at","payment","forwarding","setCursor","expired","setExpired","paid","lost","amount","account","vs","kind","ForwardingBar","openContact","paying","setPaying","waiting","group_size","individual_price","can_pay","ICON","statusText","date_done","Flags","registered","large","scan_requested","shred_requested","shred_planned","Action","MailRow","showFirm","act","sender","firm_name","tracking_url","has_scan","MailPage","URLSearchParams","confirm","setConfirm","offer","setOffer","offered","setOffered","waitingTotal","sum","mail","previousQuery","month_requests","planned","FileText","Billing","billing","PaymentCard","pay","extension","usePaid","seat_until","terminated","overdue","months","partly_paid","amount_text","due","has_pdf","billed_to","FirmRenewal","showName","payment_note","renewal_sent_ahead","RenewalPage","Lock","ListProvider","useListContext","List_module_default","ListItem","_icon","listStyleType","InlineInput_module_default","InlineInputClasses","InlineInput","bodyElement","InputsGroupFieldset","SwitchGroupContext","hiddenInputValuesSeparator","SwitchGroup","maxSelectedValues","hiddenInputValue","itemValue","isCurrentlySelected","switchValue","hasReachedLimit","Switch_module_default","withThumbIndicator","Switch","offLabel","onLabel","thumbIcon","_size","withContextProps","Share","SquarePlus","Download","installEvent","Install","onOffer","prompt","userChoice","setOn","Notification","permission","endpoint","pushIsOn","requestPermission","enablePush","disablePush","AppSettings","RadioGroupContext","_name","RadioCard_module_default","RadioCardContext","card","RadioCard","RadioIndicator_module_default","iconColor","outlineColor","lightColors","resolvedColor","RadioIndicator","Radio_module_default","Radio","componentSize","contextChecked","Indicator","MapPin","Trash","CODES","countries","Intl","DisplayNames","of","localeCompare","addressLine","street","city","country","zip_code","RuianSearch","onPicked","setQuery","found","setFound","setLoading","picked","AddressEditor","live","onSave","onDelete","foreignNow","where","setWhere","setManual","place","setPlace","fields","setFields","setName","confirmDelete","setConfirmDelete","ruian","DPD_ORIGIN","POINT_ID","DpdMap","onPick","onMessage","origin","dpdWidget","lang","allow","Section","DeliverySettings","setMap","editing","setEditing","change","setQueryData","member_of","editable","can_edit","line","dpd","can_switch","boxes","box_problem","box","point_id","pointId","CheckboxGroupContext","checkboxValue","CheckboxCard_module_default","CheckboxCardContext","CheckboxCard","CheckboxIndicator_module_default","CheckboxIndicator","_indeterminate","Checkbox_module_default","Checkbox","isDisabledByGroup","finalDisabled","FLAGS","EmailsSettings","setRows","mainNotices","setMainNotices","adding","setAdding","setBase","dirty","setDirty","gone","emails","main_mail_notices","strip","losesOwnAccess","you","mail_notices","renewals","confirmed","isNew","main","justifyContent","resend","flag","SettingsPage","tab","onTab","onChoose","tabs","pending_emails","ALL","routeFrom","pathname","PATHS","renewal","FirmSwitcher","onAdd","AccountMenu","language","setLanguage","reload","NavItems","route","go","badge","renewal_badge","renewalBadge","contract","has_contract","extra","Shell","setCurrent","contact","setContact","setRoute","pushState","renewPush","onPop","SYSTEM_FONT","portalTheme","queryCache","isMutating","getQueryData","ensureQueryData","cachedData","fetchQuery","revalidateIfStale","prefetchQuery","getQueriesData","functionalUpdate","setQueriesData","getQueryState","removeQueries","resetQueries","matched","queriesToRefetch","refetchQueries","cancelQueries","defaultedCancelOptions","promises","refetchType","queryData","infiniteQuery","fetchInfiniteQuery","prefetchInfiniteQuery","ensureInfiniteQueryData","getMutationCache","getDefaultOptions","setDefaultOptions","setQueryDefaults","queryDefault","setMutationDefaults","getMutationDefaults","isLink","isConfirm","Providers","App","register"],"sourceRoot":""}