diff --git a/.vite/manifest.json b/.vite/manifest.json index 8f74f4f..39325bd 100644 --- a/.vite/manifest.json +++ b/.vite/manifest.json @@ -1,68 +1,1728 @@ { - "_exceljs.min-82ueBMmB.js": { - "file": "assets/exceljs.min-82ueBMmB.js", - "name": "exceljs.min", - "isDynamicEntry": true, + "_ArrowLeftOutlined-Bae7unhy.js": { + "file": "assets/ArrowLeftOutlined-Bae7unhy.js", + "name": "ArrowLeftOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_BaseActionButton-C-haanPv.js": { + "file": "assets/BaseActionButton-C-haanPv.js", + "name": "BaseActionButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_Checkbox-D2PZJZxq.js": { + "file": "assets/Checkbox-D2PZJZxq.js", + "name": "Checkbox", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_context-CpzI18et.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_CloseButton-CawXCByx.js": { + "file": "assets/CloseButton-CawXCByx.js", + "name": "CloseButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_input-C55Uc3oN.js", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_ctiAxios-HKh7HuhO.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_jsx-runtime-CEixWuwE.js" + ], + "css": [ + "assets/CloseButton-DRGleAxl.css" + ] + }, + "_CloseButton-DRGleAxl.css": { + "file": "assets/CloseButton-DRGleAxl.css", + "src": "_CloseButton-DRGleAxl.css" + }, + "_ColorPicker-B-UA61SD.css": { + "file": "assets/ColorPicker-B-UA61SD.css", + "src": "_ColorPicker-B-UA61SD.css" + }, + "_ColorPicker-BYeWsagE.js": { + "file": "assets/ColorPicker-BYeWsagE.js", + "name": "ColorPicker", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_cloneDeep-CmY0yaDx.js", + "_map-CF4UXsnC.js", + "_react-redux-Bek2gPun.js", + "_jsx-runtime-CEixWuwE.js" + ], + "css": [ + "assets/ColorPicker-B-UA61SD.css" + ] + }, + "_CopyOutlined-DYcCtig4.js": { + "file": "assets/CopyOutlined-DYcCtig4.js", + "name": "CopyOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_CopyToClipboard-CHoMvyT3.js": { + "file": "assets/CopyToClipboard-CHoMvyT3.js", + "name": "CopyToClipboard", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_CopyOutlined-DYcCtig4.js", + "_ctiAxios-HKh7HuhO.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js", + "_CloseButton-CawXCByx.js" + ] + }, + "_DiscardChangesButton-BFEqbiGO.js": { + "file": "assets/DiscardChangesButton-BFEqbiGO.js", + "name": "DiscardChangesButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_UndoOutlined-DAvTbx0c.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_DownloadOutlined-BxQhjjNl.js": { + "file": "assets/DownloadOutlined-BxQhjjNl.js", + "name": "DownloadOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_Filter-6hGzrL6X.js": { + "file": "assets/Filter-6hGzrL6X.js", + "name": "Filter", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_FilterOutline-0NxB8lny.js": { + "file": "assets/FilterOutline-0NxB8lny.js", + "name": "FilterOutline", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_Home-C0KXjxek.js": { + "file": "assets/Home-C0KXjxek.js", + "name": "Home", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_HomeOutline-DA8r8OiJ.js": { + "file": "assets/HomeOutline-DA8r8OiJ.js", + "name": "HomeOutline", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_ImportOutlined-okr1I4Tb.js": { + "file": "assets/ImportOutlined-okr1I4Tb.js", + "name": "ImportOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_Information-BXzTZc0Z.js": { + "file": "assets/Information-BXzTZc0Z.js", + "name": "Information", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_LeftSquareOutlined-DRQwPml3.js": { + "file": "assets/LeftSquareOutlined-DRQwPml3.js", + "name": "LeftSquareOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_Loader-BvAKWCqv.js": { + "file": "assets/Loader-BvAKWCqv.js", + "name": "Loader", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_react-redux-Bek2gPun.js", + "_jsx-runtime-CEixWuwE.js" + ], + "css": [ + "assets/Loader-Df31oCEP.css" + ] + }, + "_Loader-Df31oCEP.css": { + "file": "assets/Loader-Df31oCEP.css", + "src": "_Loader-Df31oCEP.css" + }, + "_NotificationsOutline-COWH5lJd.js": { + "file": "assets/NotificationsOutline-COWH5lJd.js", + "name": "NotificationsOutline", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_PersonCircleOutline-DFO77GzI.js": { + "file": "assets/PersonCircleOutline-DFO77GzI.js", + "name": "PersonCircleOutline", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_ResetButton-BWz1k8XX.js": { + "file": "assets/ResetButton-BWz1k8XX.js", + "name": "ResetButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_UndoOutlined-DAvTbx0c.js", + "_jsx-runtime-CEixWuwE.js", + "_BaseActionButton-C-haanPv.js" + ] + }, + "_RightOutlined-C8iXxAwf.js": { + "file": "assets/RightOutlined-C8iXxAwf.js", + "name": "RightOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_RightSquareOutlined-C-Af7NvS.js": { + "file": "assets/RightSquareOutlined-C-Af7NvS.js", + "name": "RightSquareOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_RowLabelWithIcon-Uk-N0Fra.js": { + "file": "assets/RowLabelWithIcon-Uk-N0Fra.js", + "name": "RowLabelWithIcon", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_preload-helper-DZmVH3u5.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ], + "dynamicImports": [ + "_Filter-6hGzrL6X.js", + "_FilterOutline-0NxB8lny.js", + "_Home-C0KXjxek.js", + "_HomeOutline-DA8r8OiJ.js", + "src/components/shared/svg/icons/Hospital.jsx", + "_Information-BXzTZc0Z.js", + "_NotificationsOutline-COWH5lJd.js", + "src/components/shared/svg/icons/PeopleOutline.jsx", + "_PersonCircleOutline-DFO77GzI.js", + "_SynthesisOutline-DU1b2CPh.js" + ] + }, + "_SaveButton-BWNmkjLW.js": { + "file": "assets/SaveButton-BWNmkjLW.js", + "name": "SaveButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_SaveOutlined-uzaDTRdi.js", + "_jsx-runtime-CEixWuwE.js", + "_BaseActionButton-C-haanPv.js" + ] + }, + "_SaveOutlined-uzaDTRdi.js": { + "file": "assets/SaveOutlined-uzaDTRdi.js", + "name": "SaveOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_SearchOutlined-ouHQf-Hv.js": { + "file": "assets/SearchOutlined-ouHQf-Hv.js", + "name": "SearchOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_SynthesisOutline-DU1b2CPh.js": { + "file": "assets/SynthesisOutline-DU1b2CPh.js", + "name": "SynthesisOutline", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_UndoOutlined-DAvTbx0c.js": { + "file": "assets/UndoOutlined-DAvTbx0c.js", + "name": "UndoOutlined", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_WarningFilled-UnKqlBYo.js": { + "file": "assets/WarningFilled-UnKqlBYo.js", + "name": "WarningFilled", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "__assignValue-BF_ln0J3.js": { + "file": "assets/_assignValue-BF_ln0J3.js", + "name": "_assignValue", + "imports": [ + "_chunk-jRWAZmH_.js", + "__getTag-Hpw31fpV.js" + ] + }, + "__baseIsEqual-udCdU_aU.js": { + "file": "assets/_baseIsEqual-udCdU_aU.js", + "name": "_baseIsEqual", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "__getTag-Hpw31fpV.js" + ] + }, + "__baseMap-DDCPwLOI.js": { + "file": "assets/_baseMap-DDCPwLOI.js", + "name": "_baseMap", + "imports": [ + "_chunk-jRWAZmH_.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "__getTag-Hpw31fpV.js" + ] + }, + "__getTag-Hpw31fpV.js": { + "file": "assets/_getTag-Hpw31fpV.js", + "name": "_getTag", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js" + ] + }, + "_asyncToGenerator-BFc9W-7V.js": { + "file": "assets/asyncToGenerator-BFc9W-7V.js", + "name": "asyncToGenerator", + "imports": [ + "_chunk-jRWAZmH_.js", + "_typeof-C6uZ2mkP.js" + ] + }, + "_axios-BDcMaxoP.js": { + "file": "assets/axios-BDcMaxoP.js", + "name": "axios", + "imports": [ + "_chunk-jRWAZmH_.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_button-xukQsL9n.js": { + "file": "assets/button-xukQsL9n.js", + "name": "button", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_chunk-4N6VE7H7-DnASKJzj.js": { + "file": "assets/chunk-4N6VE7H7-DnASKJzj.js", + "name": "chunk-4N6VE7H7", + "imports": [ + "_chunk-jRWAZmH_.js", + "_preload-helper-DZmVH3u5.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_chunk-jRWAZmH_.js": { + "file": "assets/chunk-jRWAZmH_.js", + "name": "chunk" + }, + "_cloneDeep-CmY0yaDx.js": { + "file": "assets/cloneDeep-CmY0yaDx.js", + "name": "cloneDeep", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "__getTag-Hpw31fpV.js", + "__assignValue-BF_ln0J3.js" + ] + }, + "_context-CpzI18et.js": { + "file": "assets/context-CpzI18et.js", + "name": "context", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_SearchOutlined-ouHQf-Hv.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_ctiAxios-DdKuH37F.css": { + "file": "assets/ctiAxios-DdKuH37F.css", + "src": "_ctiAxios-DdKuH37F.css" + }, + "_ctiAxios-HKh7HuhO.js": { + "file": "assets/ctiAxios-HKh7HuhO.js", + "name": "ctiAxios", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_notification-DIuyPXAV.js" + ], + "css": [ + "assets/ctiAxios-DdKuH37F.css" + ] + }, + "_es--u5We8Xl.js": { + "file": "assets/es--u5We8Xl.js", + "name": "es", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_asyncToGenerator-BFc9W-7V.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_es-BXfxijUd.js": { + "file": "assets/es-BXfxijUd.js", + "name": "es", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_es-Cq2vejJh.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_es-Cq2vejJh.js": { + "file": "assets/es-Cq2vejJh.js", + "name": "es", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_es-Dcp-L5EG.js": { + "file": "assets/es-Dcp-L5EG.js", + "name": "es", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_favoritesAdapter-DE050Zpa.js": { + "file": "assets/favoritesAdapter-DE050Zpa.js", + "name": "favoritesAdapter", + "imports": [ + "_axios-BDcMaxoP.js" + ] + }, + "_filterByCode-B4_opWRI.js": { + "file": "assets/filterByCode-B4_opWRI.js", + "name": "filterByCode", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_getDataOrAriaProps-TbY0lpHj.js": { + "file": "assets/getDataOrAriaProps-TbY0lpHj.js", + "name": "getDataOrAriaProps" + }, + "_iconUtil-DGYSxFEZ.js": { + "file": "assets/iconUtil-DGYSxFEZ.js", + "name": "iconUtil", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_SearchOutlined-ouHQf-Hv.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_es-Dcp-L5EG.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_importColumn-GAofQzY-.js": { + "file": "assets/importColumn-GAofQzY-.js", + "name": "importColumn", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_ctiAxios-HKh7HuhO.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js", + "_path-DqrO9bqq.js" + ] + }, + "_index.esm-D4i6w2dF.js": { + "file": "assets/index.esm-D4i6w2dF.js", + "name": "index.esm", + "imports": [ + "_chunk-jRWAZmH_.js", + "_input-C55Uc3oN.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_indicatorsColumns-BR3REQy_.js": { + "file": "assets/indicatorsColumns-BR3REQy_.js", + "name": "indicatorsColumns", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_input-C55Uc3oN.js": { + "file": "assets/input-C55Uc3oN.js", + "name": "input", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_SearchOutlined-ouHQf-Hv.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_jsx-runtime-CEixWuwE.js": { + "file": "assets/jsx-runtime-CEixWuwE.js", + "name": "jsx-runtime", + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "_logs.queries-Dl26GlbD.js": { + "file": "assets/logs.queries-Dl26GlbD.js", + "name": "logs.queries", + "imports": [ + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_queryOptions-Cg9orY1Y.js" + ] + }, + "_map-CF4UXsnC.js": { + "file": "assets/map-CF4UXsnC.js", + "name": "map", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_cloneDeep-CmY0yaDx.js", + "__baseMap-DDCPwLOI.js" + ] + }, + "_menu.keys-DakaQcND.js": { + "file": "assets/menu.keys-DakaQcND.js", + "name": "menu.keys" + }, + "_menu.queries-DYe2vnq9.js": { + "file": "assets/menu.queries-DYe2vnq9.js", + "name": "menu.queries", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_queryOptions-Cg9orY1Y.js", + "_slugify-CltC00V7.js", + "_menu.keys-DakaQcND.js" + ] + }, + "_module-eIe9lCj8.js": { + "file": "assets/module-eIe9lCj8.js", + "name": "module" + }, + "_notification-DIuyPXAV.js": { + "file": "assets/notification-DIuyPXAV.js", + "name": "notification", + "imports": [ + "_axios-BDcMaxoP.js" + ] + }, + "_pagination-Bbd-H34x.js": { + "file": "assets/pagination-Bbd-H34x.js", + "name": "pagination", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_RightOutlined-C8iXxAwf.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_useFlexGapSupport-CC7UZaio.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_path-DqrO9bqq.js": { + "file": "assets/path-DqrO9bqq.js", + "name": "path", + "imports": [ + "_ctiAxios-HKh7HuhO.js" + ] + }, + "_popconfirm-BanNBanA.js": { + "file": "assets/popconfirm-BanNBanA.js", + "name": "popconfirm", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_popover-BeDAihUH.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_popover-BeDAihUH.js": { + "file": "assets/popover-BeDAihUH.js", + "name": "popover", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_tooltip-D0a9NNK5.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_preload-helper-DZmVH3u5.js": { + "file": "assets/preload-helper-DZmVH3u5.js", + "name": "preload-helper" + }, + "_queryOptions-Cg9orY1Y.js": { + "file": "assets/queryOptions-Cg9orY1Y.js", + "name": "queryOptions" + }, + "_radio-ChcrxtKW.js": { + "file": "assets/radio-ChcrxtKW.js", + "name": "radio", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_SearchOutlined-ouHQf-Hv.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_getDataOrAriaProps-TbY0lpHj.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_react-redux-Bek2gPun.js": { + "file": "assets/react-redux-Bek2gPun.js", + "name": "react-redux", + "imports": [ + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_ref-CAN0g-GQ.js": { + "file": "assets/ref-CAN0g-GQ.js", + "name": "ref", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_context-CpzI18et.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_row-BOgZfbSg.js": { + "file": "assets/row-BOgZfbSg.js", + "name": "row", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_useFlexGapSupport-CC7UZaio.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_row-CaO7bYqu.js": { + "file": "assets/row-CaO7bYqu.js", + "name": "row", + "imports": [ + "_row-BOgZfbSg.js" + ] + }, + "_sanitizeDataUtils-DBUp8Fd9.js": { + "file": "assets/sanitizeDataUtils-DBUp8Fd9.js", + "name": "sanitizeDataUtils", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "__getTag-Hpw31fpV.js", + "__baseIsEqual-udCdU_aU.js", + "__assignValue-BF_ln0J3.js" + ] + }, + "_select-dQ-XiIfN.js": { + "file": "assets/select-dQ-XiIfN.js", + "name": "select", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_SearchOutlined-ouHQf-Hv.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_button-xukQsL9n.js", + "_es-Cq2vejJh.js", + "_es-Dcp-L5EG.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_slicedToArray-BjCmY1mt.js": { + "file": "assets/slicedToArray-BjCmY1mt.js", + "name": "slicedToArray", + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "_slugify-CltC00V7.js": { + "file": "assets/slugify-CltC00V7.js", + "name": "slugify", + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "_sortBy-DH7cP1bl.js": { + "file": "assets/sortBy-DH7cP1bl.js", + "name": "sortBy", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "__getTag-Hpw31fpV.js", + "__baseMap-DDCPwLOI.js" + ] + }, + "_spin-BSto2uUH.js": { + "file": "assets/spin-BSto2uUH.js", + "name": "spin", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_styleChecker-Co66DjKC.js": { + "file": "assets/styleChecker-Co66DjKC.js", + "name": "styleChecker", + "imports": [ + "_axios-BDcMaxoP.js" + ] + }, + "_synchronize.queries-BZpHRXuv.js": { + "file": "assets/synchronize.queries-BZpHRXuv.js", + "name": "synchronize.queries", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_queryOptions-Cg9orY1Y.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_table-adA-XDZ0.js": { + "file": "assets/table-adA-XDZ0.js", + "name": "table", + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_iconUtil-DGYSxFEZ.js", + "_select-dQ-XiIfN.js", + "_pagination-Bbd-H34x.js", + "_input-C55Uc3oN.js", + "_tree-Df2nuFCU.js", + "_SearchOutlined-ouHQf-Hv.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_styleChecker-Co66DjKC.js", + "_radio-ChcrxtKW.js", + "_spin-BSto2uUH.js", + "__baseIsEqual-udCdU_aU.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_tooltip-D0a9NNK5.js": { + "file": "assets/tooltip-D0a9NNK5.js", + "name": "tooltip", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_transButton-D8TVp4Ts.js": { + "file": "assets/transButton-D8TVp4Ts.js", + "name": "transButton", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_tree-Df2nuFCU.js": { + "file": "assets/tree-Df2nuFCU.js", + "name": "tree", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_iconUtil-DGYSxFEZ.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_typeof-C6uZ2mkP.js": { + "file": "assets/typeof-C6uZ2mkP.js", + "name": "typeof", + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "_typography-CKptiUMY.js": { + "file": "assets/typography-CKptiUMY.js", + "name": "typography", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_CopyOutlined-DYcCtig4.js", + "_input-C55Uc3oN.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_styleChecker-Co66DjKC.js", + "_transButton-D8TVp4Ts.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_useFlexGapSupport-CC7UZaio.js": { + "file": "assets/useFlexGapSupport-CC7UZaio.js", + "name": "useFlexGapSupport", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_styleChecker-Co66DjKC.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_useFormIsActive-Bgv4fpIz.js": { + "file": "assets/useFormIsActive-Bgv4fpIz.js", + "name": "useFormIsActive", + "imports": [ + "_chunk-jRWAZmH_.js", + "_ctiAxios-HKh7HuhO.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_useMutation-BtpRmKbj.js": { + "file": "assets/useMutation-BtpRmKbj.js", + "name": "useMutation", + "imports": [ + "_chunk-jRWAZmH_.js", + "_axios-BDcMaxoP.js", + "_notification-DIuyPXAV.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "_userUtils-Cx2i_4wQ.js": { + "file": "assets/userUtils-Cx2i_4wQ.js", + "name": "userUtils", "imports": [ "index.html" ] }, + "_users.mutations-CKeA39Fu.js": { + "file": "assets/users.mutations-CKeA39Fu.js", + "name": "users.mutations", + "imports": [ + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_favoritesAdapter-DE050Zpa.js" + ] + }, "index.html": { - "file": "assets/index-mh7VHmRi.js", + "file": "assets/index-C1mw6CgG.js", "name": "index", "src": "index.html", "isEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "_preload-helper-DZmVH3u5.js", + "_axios-BDcMaxoP.js", + "_iconUtil-DGYSxFEZ.js", + "_select-dQ-XiIfN.js", + "_typography-CKptiUMY.js", + "_es-BXfxijUd.js", + "_input-C55Uc3oN.js", + "_RightOutlined-C8iXxAwf.js", + "_SearchOutlined-ouHQf-Hv.js", + "_WarningFilled-UnKqlBYo.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_es--u5We8Xl.js", + "_typeof-C6uZ2mkP.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_tooltip-D0a9NNK5.js", + "_getDataOrAriaProps-TbY0lpHj.js", + "_popover-BeDAihUH.js", + "_useFlexGapSupport-CC7UZaio.js", + "_button-xukQsL9n.js", + "_styleChecker-Co66DjKC.js", + "_row-BOgZfbSg.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "__getTag-Hpw31fpV.js", + "_cloneDeep-CmY0yaDx.js", + "__assignValue-BF_ln0J3.js", + "_react-redux-Bek2gPun.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_slugify-CltC00V7.js", + "_Loader-BvAKWCqv.js", + "_Filter-6hGzrL6X.js", + "_FilterOutline-0NxB8lny.js", + "_Home-C0KXjxek.js", + "_HomeOutline-DA8r8OiJ.js", + "_NotificationsOutline-COWH5lJd.js", + "_PersonCircleOutline-DFO77GzI.js", + "_SynthesisOutline-DU1b2CPh.js", + "_favoritesAdapter-DE050Zpa.js", + "_menu.queries-DYe2vnq9.js", + "_menu.keys-DakaQcND.js" + ], "dynamicImports": [ - "node_modules/html2canvas/dist/html2canvas.esm.js", - "node_modules/dompurify/dist/purify.es.mjs", - "node_modules/canvg/lib/index.es.js", - "_exceljs.min-82ueBMmB.js", - "_exceljs.min-82ueBMmB.js", - "_exceljs.min-82ueBMmB.js", - "src/components/shared/svg/icons/Hospital.jsx", - "src/components/shared/svg/icons/PeopleOutline.jsx" + "src/components/Page/Logs/Logs.jsx", + "src/components/Page/Exploit/Exploit.jsx", + "src/components/Page/SalarieVentilation/SalarieVentilationListing.jsx", + "src/components/Page/SalarieVentilation/SalarieVentilationEditor.jsx", + "src/components/Settings/ClassesManager/ClassesManager.jsx", + "src/components/Settings/FavoritesEditor/FavoritesEditor.jsx", + "src/components/Settings/Import/Import.jsx", + "src/components/Settings/Import/OvalideImports/OvalideImports.jsx", + "src/components/Settings/Import/ValoImports/ValoImports.jsx", + "src/components/Settings/IndicatorsManager/IndicatorsManager.jsx", + "src/components/Settings/LicencesManager/LicencesManager.jsx", + "src/components/Settings/ListesManager/ListesManagers.jsx", + "src/components/Settings/PasswordManager/PasswordManager.jsx", + "src/components/Settings/PresentationManager/PresentationManager.jsx", + "src/components/Settings/ReportsManager/ReportsManager.jsx", + "src/components/Settings/Simulations/Simulations.jsx", + "src/components/Settings/SpecSynchronize/SpecSynchronize.jsx", + "src/components/Settings/Synchronize/Synchronize.jsx", + "src/components/Settings/TablesManager/TablesManager.jsx", + "src/components/Settings/UserManager/UserManager.jsx", + "src/components/Settings/expertControls/ExpertControlsSettings/ExpertControlsSettings.jsx", + "node_modules/jspdf/dist/jspdf.es.min.js", + "node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.mjs", + "node_modules/exceljs/dist/exceljs.min.js", + "src/components/View/Charts/Charts.jsx" ], "css": [ - "assets/index-D_bXJ9X0.css" + "assets/index-KL9zvhxd.css" ] }, "node_modules/canvg/lib/index.es.js": { - "file": "assets/index.es-Dl2ES1_s.js", + "file": "assets/index.es-KDfAzJSG.js", "name": "index.es", "src": "node_modules/canvg/lib/index.es.js", "isDynamicEntry": true, "imports": [ - "index.html" + "_chunk-jRWAZmH_.js", + "_asyncToGenerator-BFc9W-7V.js" ] }, "node_modules/dompurify/dist/purify.es.mjs": { - "file": "assets/purify.es-sD_vkJLq.js", + "file": "assets/purify.es-B66OrZKW.js", "name": "purify.es", "src": "node_modules/dompurify/dist/purify.es.mjs", "isDynamicEntry": true }, - "node_modules/html2canvas/dist/html2canvas.esm.js": { - "file": "assets/html2canvas.esm-DTBFANbd.js", - "name": "html2canvas.esm", - "src": "node_modules/html2canvas/dist/html2canvas.esm.js", + "node_modules/exceljs/dist/exceljs.min.js": { + "file": "assets/exceljs.min-BuZL5Si9.js", + "name": "exceljs.min", + "src": "node_modules/exceljs/dist/exceljs.min.js", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "node_modules/html2canvas/dist/html2canvas.js": { + "file": "assets/html2canvas-Csps4_cl.js", + "name": "html2canvas", + "src": "node_modules/html2canvas/dist/html2canvas.js", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js" + ] + }, + "node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.mjs": { + "file": "assets/jspdf.plugin.autotable-DWZSWzo_.js", + "name": "jspdf.plugin.autotable", + "src": "node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.mjs", "isDynamicEntry": true }, + "node_modules/jspdf/dist/jspdf.es.min.js": { + "file": "assets/jspdf.es.min-DVktlV69.js", + "name": "jspdf.es.min", + "src": "node_modules/jspdf/dist/jspdf.es.min.js", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "_preload-helper-DZmVH3u5.js", + "_slicedToArray-BjCmY1mt.js", + "_typeof-C6uZ2mkP.js" + ], + "dynamicImports": [ + "node_modules/html2canvas/dist/html2canvas.js", + "node_modules/dompurify/dist/purify.es.mjs", + "node_modules/canvg/lib/index.es.js" + ] + }, + "src/components/Page/Exploit/Exploit.jsx": { + "file": "assets/Exploit-BaWtWdll.js", + "name": "Exploit", + "src": "src/components/Page/Exploit/Exploit.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_button-xukQsL9n.js", + "_jsx-runtime-CEixWuwE.js", + "_logs.queries-Dl26GlbD.js" + ], + "css": [ + "assets/Exploit-yVAt52Ij.css" + ] + }, + "src/components/Page/Logs/Logs.jsx": { + "file": "assets/Logs-DCS0HMPY.js", + "name": "Logs", + "src": "src/components/Page/Logs/Logs.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ctiAxios-HKh7HuhO.js", + "_button-xukQsL9n.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_logs.queries-Dl26GlbD.js" + ], + "css": [ + "assets/Logs-9Q14oB_B.css" + ] + }, + "src/components/Page/SalarieVentilation/SalarieVentilationEditor.jsx": { + "file": "assets/SalarieVentilationEditor-QEw3R70S.js", + "name": "SalarieVentilationEditor", + "src": "src/components/Page/SalarieVentilation/SalarieVentilationEditor.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ArrowLeftOutlined-Bae7unhy.js", + "_table-adA-XDZ0.js", + "_pagination-Bbd-H34x.js", + "_input-C55Uc3oN.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_tooltip-D0a9NNK5.js", + "_useFlexGapSupport-CC7UZaio.js", + "_button-xukQsL9n.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_ResetButton-BWz1k8XX.js", + "_Loader-BvAKWCqv.js", + "_BaseActionButton-C-haanPv.js", + "_SaveButton-BWNmkjLW.js" + ], + "css": [ + "assets/SalarieVentilationEditor-Bu7A8pR3.css" + ] + }, + "src/components/Page/SalarieVentilation/SalarieVentilationListing.jsx": { + "file": "assets/SalarieVentilationListing-Br3rPhPn.js", + "name": "SalarieVentilationListing", + "src": "src/components/Page/SalarieVentilation/SalarieVentilationListing.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "_table-adA-XDZ0.js", + "_button-xukQsL9n.js", + "_index.esm-D4i6w2dF.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_ResetButton-BWz1k8XX.js", + "_Loader-BvAKWCqv.js" + ] + }, + "src/components/Settings/ClassesManager/ClassesManager.jsx": { + "file": "assets/ClassesManager-BjD_1net.js", + "name": "ClassesManager", + "src": "src/components/Settings/ClassesManager/ClassesManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ArrowLeftOutlined-Bae7unhy.js", + "_iconUtil-DGYSxFEZ.js", + "_select-dQ-XiIfN.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_typography-CKptiUMY.js", + "_input-C55Uc3oN.js", + "_filterByCode-B4_opWRI.js", + "_tree-Df2nuFCU.js", + "_ImportOutlined-okr1I4Tb.js", + "_LeftSquareOutlined-DRQwPml3.js", + "_RightSquareOutlined-C-Af7NvS.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_tooltip-D0a9NNK5.js", + "_popover-BeDAihUH.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_spin-BSto2uUH.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "_sortBy-DH7cP1bl.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js", + "_module-eIe9lCj8.js", + "_useFormIsActive-Bgv4fpIz.js" + ], + "css": [ + "assets/ClassesManager-BNh7Cc9N.css" + ] + }, + "src/components/Settings/FavoritesEditor/FavoritesEditor.jsx": { + "file": "assets/FavoritesEditor-mJChfUvn.js", + "name": "FavoritesEditor", + "src": "src/components/Settings/FavoritesEditor/FavoritesEditor.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_input-C55Uc3oN.js", + "_tree-Df2nuFCU.js", + "_LeftSquareOutlined-DRQwPml3.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js", + "_SaveButton-BWNmkjLW.js", + "_userUtils-Cx2i_4wQ.js" + ], + "css": [ + "assets/FavoritesEditor-DNSVAy1I.css" + ] + }, + "src/components/Settings/Import/Import.jsx": { + "file": "assets/Import-D6wnUmCv.js", + "name": "Import", + "src": "src/components/Settings/Import/Import.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_iconUtil-DGYSxFEZ.js", + "_table-adA-XDZ0.js", + "_select-dQ-XiIfN.js", + "_pagination-Bbd-H34x.js", + "_DownloadOutlined-BxQhjjNl.js", + "_input-C55Uc3oN.js", + "_UndoOutlined-DAvTbx0c.js", + "_context-CpzI18et.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_ref-CAN0g-GQ.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_BaseActionButton-C-haanPv.js", + "_importColumn-GAofQzY-.js", + "_path-DqrO9bqq.js" + ], + "css": [ + "assets/Import-DlPp7kZf.css" + ] + }, + "src/components/Settings/Import/OvalideImports/OvalideImports.jsx": { + "file": "assets/OvalideImports-CuBGxFMT.js", + "name": "OvalideImports", + "src": "src/components/Settings/Import/OvalideImports/OvalideImports.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_DownloadOutlined-BxQhjjNl.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_importColumn-GAofQzY-.js", + "_path-DqrO9bqq.js" + ], + "css": [ + "assets/OvalideImports-C882gTRJ.css" + ] + }, + "src/components/Settings/Import/ValoImports/ValoImports.jsx": { + "file": "assets/ValoImports-DehVfKO5.js", + "name": "ValoImports", + "src": "src/components/Settings/Import/ValoImports/ValoImports.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js" + ], + "css": [ + "assets/ValoImports-9nK6dK5V.css" + ] + }, + "src/components/Settings/IndicatorsManager/IndicatorsManager.jsx": { + "file": "assets/IndicatorsManager-B1yIccHe.js", + "name": "IndicatorsManager", + "src": "src/components/Settings/IndicatorsManager/IndicatorsManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_CopyOutlined-DYcCtig4.js", + "_input-C55Uc3oN.js", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_SearchOutlined-ouHQf-Hv.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_row-CaO7bYqu.js", + "_popconfirm-BanNBanA.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_CloseButton-CawXCByx.js", + "_Loader-BvAKWCqv.js", + "_CopyToClipboard-CHoMvyT3.js", + "_SaveButton-BWNmkjLW.js", + "_Information-BXzTZc0Z.js", + "_indicatorsColumns-BR3REQy_.js", + "_useFormIsActive-Bgv4fpIz.js" + ], + "css": [ + "assets/IndicatorsManager-CugyWTGU.css" + ] + }, + "src/components/Settings/LicencesManager/LicencesManager.jsx": { + "file": "assets/LicencesManager-DziwskFR.js", + "name": "LicencesManager", + "src": "src/components/Settings/LicencesManager/LicencesManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_input-C55Uc3oN.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_button-xukQsL9n.js", + "_row-CaO7bYqu.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js" + ], + "css": [ + "assets/LicencesManager-BlZQO97C.css" + ] + }, + "src/components/Settings/ListesManager/ListesManagers.jsx": { + "file": "assets/ListesManagers-DpNtgPfM.js", + "name": "ListesManagers", + "src": "src/components/Settings/ListesManager/ListesManagers.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ArrowLeftOutlined-Bae7unhy.js", + "_iconUtil-DGYSxFEZ.js", + "_select-dQ-XiIfN.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_input-C55Uc3oN.js", + "_filterByCode-B4_opWRI.js", + "_tree-Df2nuFCU.js", + "_ImportOutlined-okr1I4Tb.js", + "_LeftSquareOutlined-DRQwPml3.js", + "_RightSquareOutlined-C-Af7NvS.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_spin-BSto2uUH.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "_chunk-4N6VE7H7-DnASKJzj.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js", + "_module-eIe9lCj8.js", + "_useFormIsActive-Bgv4fpIz.js" + ], + "css": [ + "assets/ListesManagers-7BB0kOmZ.css" + ] + }, + "src/components/Settings/PasswordManager/PasswordManager.jsx": { + "file": "assets/PasswordManager-Dlhyw8pK.js", + "name": "PasswordManager", + "src": "src/components/Settings/PasswordManager/PasswordManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_input-C55Uc3oN.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_SaveButton-BWNmkjLW.js", + "_users.mutations-CKeA39Fu.js" + ], + "css": [ + "assets/PasswordManager-Ry4JHtDv.css" + ] + }, + "src/components/Settings/PresentationManager/PresentationManager.jsx": { + "file": "assets/PresentationManager-CGXwNKt6.js", + "name": "PresentationManager", + "src": "src/components/Settings/PresentationManager/PresentationManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_select-dQ-XiIfN.js", + "_ColorPicker-BYeWsagE.js", + "_row-CaO7bYqu.js", + "_react-redux-Bek2gPun.js", + "_jsx-runtime-CEixWuwE.js", + "_SaveButton-BWNmkjLW.js", + "_menu.queries-DYe2vnq9.js", + "_users.mutations-CKeA39Fu.js" + ], + "css": [ + "assets/PresentationManager-DSEhDZxm.css" + ] + }, + "src/components/Settings/ReportsManager/ReportsManager.jsx": { + "file": "assets/ReportsManager-bB9elu33.js", + "name": "ReportsManager", + "src": "src/components/Settings/ReportsManager/ReportsManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_ArrowLeftOutlined-Bae7unhy.js", + "_select-dQ-XiIfN.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_CopyOutlined-DYcCtig4.js", + "_input-C55Uc3oN.js", + "_tree-Df2nuFCU.js", + "_ImportOutlined-okr1I4Tb.js", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_SearchOutlined-ouHQf-Hv.js", + "_UndoOutlined-DAvTbx0c.js", + "_context-CpzI18et.js", + "_es--u5We8Xl.js", + "_ColorPicker-BYeWsagE.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_button-xukQsL9n.js", + "_row-CaO7bYqu.js", + "_popconfirm-BanNBanA.js", + "_Checkbox-D2PZJZxq.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_CloseButton-CawXCByx.js", + "_Loader-BvAKWCqv.js", + "_CopyToClipboard-CHoMvyT3.js", + "_Information-BXzTZc0Z.js", + "_useFormIsActive-Bgv4fpIz.js" + ], + "css": [ + "assets/ReportsManager-BAs2sDjN.css" + ] + }, + "src/components/Settings/Simulations/Simulations.jsx": { + "file": "assets/Simulations-3b4H2jez.js", + "name": "Simulations", + "src": "src/components/Settings/Simulations/Simulations.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_DownloadOutlined-BxQhjjNl.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_button-xukQsL9n.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js" + ] + }, + "src/components/Settings/SpecSynchronize/SpecSynchronize.jsx": { + "file": "assets/SpecSynchronize-DIhae1qi.js", + "name": "SpecSynchronize", + "src": "src/components/Settings/SpecSynchronize/SpecSynchronize.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_input-C55Uc3oN.js", + "_UndoOutlined-DAvTbx0c.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js", + "_synchronize.queries-BZpHRXuv.js" + ], + "css": [ + "assets/SpecSynchronize-Za88ZlAG.css" + ] + }, + "src/components/Settings/Synchronize/Synchronize.jsx": { + "file": "assets/Synchronize-I6VOf-nB.js", + "name": "Synchronize", + "src": "src/components/Settings/Synchronize/Synchronize.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_UndoOutlined-DAvTbx0c.js", + "_useMutation-BtpRmKbj.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_Loader-BvAKWCqv.js", + "_synchronize.queries-BZpHRXuv.js" + ], + "css": [ + "assets/Synchronize-lo2f-wsS.css" + ] + }, + "src/components/Settings/TablesManager/TablesManager.jsx": { + "file": "assets/TablesManager-Bh8eOhLi.js", + "name": "TablesManager", + "src": "src/components/Settings/TablesManager/TablesManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_iconUtil-DGYSxFEZ.js", + "_select-dQ-XiIfN.js", + "_DiscardChangesButton-BFEqbiGO.js", + "_CopyOutlined-DYcCtig4.js", + "_DownloadOutlined-BxQhjjNl.js", + "_input-C55Uc3oN.js", + "_ImportOutlined-okr1I4Tb.js", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_SaveOutlined-uzaDTRdi.js", + "_SearchOutlined-ouHQf-Hv.js", + "_UndoOutlined-DAvTbx0c.js", + "_context-CpzI18et.js", + "_slicedToArray-BjCmY1mt.js", + "_asyncToGenerator-BFc9W-7V.js", + "_es--u5We8Xl.js", + "_typeof-C6uZ2mkP.js", + "_ctiAxios-HKh7HuhO.js", + "_useMutation-BtpRmKbj.js", + "_queryOptions-Cg9orY1Y.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_popconfirm-BanNBanA.js", + "_ref-CAN0g-GQ.js", + "_Checkbox-D2PZJZxq.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "__getTag-Hpw31fpV.js", + "_cloneDeep-CmY0yaDx.js", + "__assignValue-BF_ln0J3.js", + "_map-CF4UXsnC.js", + "_jsx-runtime-CEixWuwE.js", + "_CloseButton-CawXCByx.js", + "_Loader-BvAKWCqv.js", + "_path-DqrO9bqq.js" + ], + "css": [ + "assets/TablesManager-BCrQPm9h.css" + ] + }, + "src/components/Settings/UserManager/UserManager.jsx": { + "file": "assets/UserManager-DpuJwxM4.js", + "name": "UserManager", + "src": "src/components/Settings/UserManager/UserManager.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_CopyOutlined-DYcCtig4.js", + "_pagination-Bbd-H34x.js", + "_input-C55Uc3oN.js", + "_LeftSquareOutlined-DRQwPml3.js", + "_RightOutlined-C8iXxAwf.js", + "_RightSquareOutlined-C-Af7NvS.js", + "_SearchOutlined-ouHQf-Hv.js", + "_UndoOutlined-DAvTbx0c.js", + "_asyncToGenerator-BFc9W-7V.js", + "_typeof-C6uZ2mkP.js", + "_queryOptions-Cg9orY1Y.js", + "_button-xukQsL9n.js", + "_transButton-D8TVp4Ts.js", + "_row-CaO7bYqu.js", + "_index.esm-D4i6w2dF.js", + "_jsx-runtime-CEixWuwE.js", + "_users.mutations-CKeA39Fu.js", + "_userUtils-Cx2i_4wQ.js" + ], + "css": [ + "assets/UserManager-DcvxKXrX.css" + ] + }, + "src/components/Settings/expertControls/ExpertControlsSettings/ExpertControlsSettings.jsx": { + "file": "assets/ExpertControlsSettings-CpBaaD43.js", + "name": "ExpertControlsSettings", + "src": "src/components/Settings/expertControls/ExpertControlsSettings/ExpertControlsSettings.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_select-dQ-XiIfN.js", + "_typography-CKptiUMY.js", + "_input-C55Uc3oN.js", + "_RowLabelWithIcon-Uk-N0Fra.js", + "_UndoOutlined-DAvTbx0c.js", + "_WarningFilled-UnKqlBYo.js", + "_ctiAxios-HKh7HuhO.js", + "_notification-DIuyPXAV.js", + "_useMutation-BtpRmKbj.js", + "_tooltip-D0a9NNK5.js", + "_button-xukQsL9n.js", + "_row-CaO7bYqu.js", + "_radio-ChcrxtKW.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_index.esm-D4i6w2dF.js", + "_react-redux-Bek2gPun.js", + "_jsx-runtime-CEixWuwE.js", + "_indicatorsColumns-BR3REQy_.js", + "_module-eIe9lCj8.js" + ], + "css": [ + "assets/ExpertControlsSettings-BOPHWS0D.css" + ] + }, + "src/components/View/Charts/Charts.jsx": { + "file": "assets/Charts-BRAizZCw.js", + "name": "Charts", + "src": "src/components/View/Charts/Charts.jsx", + "isDynamicEntry": true, + "imports": [ + "_chunk-jRWAZmH_.js", + "index.html", + "_axios-BDcMaxoP.js", + "_asyncToGenerator-BFc9W-7V.js", + "_es--u5We8Xl.js", + "_typeof-C6uZ2mkP.js", + "_ctiAxios-HKh7HuhO.js", + "_tooltip-D0a9NNK5.js", + "_sanitizeDataUtils-DBUp8Fd9.js", + "_sortBy-DH7cP1bl.js", + "_react-redux-Bek2gPun.js", + "_jsx-runtime-CEixWuwE.js" + ], + "css": [ + "assets/Charts-B4BgDwW4.css" + ] + }, "src/components/shared/svg/icons/Hospital.jsx": { - "file": "assets/Hospital-B-IOUtwu.js", + "file": "assets/Hospital-Cq8lBfIi.js", "name": "Hospital", "src": "src/components/shared/svg/icons/Hospital.jsx", "isDynamicEntry": true, "imports": [ - "index.html" + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" ] }, "src/components/shared/svg/icons/PeopleOutline.jsx": { - "file": "assets/PeopleOutline-D4Hyxmyn.js", + "file": "assets/PeopleOutline-D1hS4ztT.js", "name": "PeopleOutline", "src": "src/components/shared/svg/icons/PeopleOutline.jsx", "isDynamicEntry": true, "imports": [ - "index.html" + "_chunk-jRWAZmH_.js", + "_jsx-runtime-CEixWuwE.js" ] } } \ No newline at end of file diff --git a/assets/ArrowLeftOutlined-Bae7unhy.js b/assets/ArrowLeftOutlined-Bae7unhy.js new file mode 100644 index 0000000..032a823 --- /dev/null +++ b/assets/ArrowLeftOutlined-Bae7unhy.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/BaseActionButton-C-haanPv.js b/assets/BaseActionButton-C-haanPv.js new file mode 100644 index 0000000..c71a36c --- /dev/null +++ b/assets/BaseActionButton-C-haanPv.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BDcMaxoP.js";import{t as i}from"./button-xukQsL9n.js";import{t as a}from"./popconfirm-BanNBanA.js";import{F as o,et as s}from"./index-C1mw6CgG.js";var c=e(r()),l=n(),u=({toolTipTitle:e,children:t})=>e?(0,l.jsx)(o,{title:e,children:t}):t;u.propTypes={toolTipTitle:c.default.string,children:c.default.node.isRequired};var d=e(t()),f=({withModalConfirm:e,withPopConfirm:t,confirmTitle:n,okText:r,cancelText:i,disabled:o,onConfirm:c,children:u})=>{let f=()=>{s.confirm({title:n,okText:r,cancelText:i,onOk:c,centered:!0,width:450})};return e?d.cloneElement(u,{onClick:()=>{o||f()}}):t?(0,l.jsx)(a,{title:n,onConfirm:c,okText:r,cancelText:i,disabled:o,children:u}):u};f.propTypes={withPopConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,disabled:c.default.bool,onConfirm:c.default.func.isRequired,children:c.default.node.isRequired};var p=({icon:e,onClick:t,disabled:n=!1,type:r=`primary`,loading:a=!1,toolTipTitle:o=``,withPopConfirm:s=!1,withModalConfirm:c=!1,confirmTitle:d=`Confirmez-vous cette action ?`,okText:p=`Oui`,cancelText:m=`Annuler`,children:h,...g})=>(0,l.jsx)(u,{toolTipTitle:o,children:(0,l.jsx)(f,{withModalConfirm:c,withPopConfirm:s,confirmTitle:d,okText:p,cancelText:m,disabled:n,onConfirm:t,children:(0,l.jsx)(i,{type:r,icon:e,loading:a,onClick:!s&&!c?t:void 0,disabled:n,...g,children:h})})});p.propTypes={icon:c.default.node,onClick:c.default.func.isRequired,disabled:c.default.bool,type:c.default.string,toolTipTitle:c.default.string,loading:c.default.bool,withConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,children:c.default.node};export{p as t}; \ No newline at end of file diff --git a/assets/Charts-B4BgDwW4.css b/assets/Charts-B4BgDwW4.css new file mode 100644 index 0000000..1e68c99 --- /dev/null +++ b/assets/Charts-B4BgDwW4.css @@ -0,0 +1 @@ +.view-graphs{width:100%;height:100%}.graphs{flex-flow:row;justify-content:center;align-items:stretch;height:100%;display:flex;overflow:hidden}.timeline-graph{height:100%;overflow:hidden}.sub-graph{flex-direction:column;width:95%;padding:0 6px;display:flex}.graph-title{text-align:center;max-height:20px;font-size:14px;font-weight:600}.slick-slide,.slick-slide>div{height:100%}.slick-slide>div>div{height:90%}.labelText{font-size:10px}.graph-wrapper{flex-flow:row;flex:3;justify-content:center;min-width:0;min-height:0;display:flex}.graph-wrapper>div{flex:3;min-width:0;min-height:0} diff --git a/assets/Charts-BRAizZCw.js b/assets/Charts-BRAizZCw.js new file mode 100644 index 0000000..a85890e --- /dev/null +++ b/assets/Charts-BRAizZCw.js @@ -0,0 +1,29 @@ +import{a as e,n as t,o as n,r,t as i}from"./chunk-jRWAZmH_.js";import{n as a,t as o}from"./jsx-runtime-CEixWuwE.js";import{Cn as s,Gn as c,In as l,Kn as u,Ln as d,Sn as f,Wn as p,Y as m,ar as h,cr as g,ir as _,n as v,nn as y,nr as b,or as x,rr as S,sr as C,tn as w,tr as T,ur as E,wn as D,wr as O,xn as k}from"./axios-BDcMaxoP.js";import{V as A}from"./ctiAxios-HKh7HuhO.js";import{n as ee,t as te}from"./typeof-C6uZ2mkP.js";import{i as j,r as M}from"./asyncToGenerator-BFc9W-7V.js";import{t as ne}from"./tooltip-D0a9NNK5.js";import{E as re,g as ie,m as ae,w as oe}from"./sanitizeDataUtils-DBUp8Fd9.js";import{r as N}from"./react-redux-Bek2gPun.js";import{t as se}from"./es--u5We8Xl.js";import{O as ce,l as le,p as ue}from"./index-C1mw6CgG.js";import{t as de}from"./sortBy-DH7cP1bl.js";var fe={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function pe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function me(e,t,n){var r=(n||{}).atBegin;return pe(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}d();var P=n(a());function he(e,t,n){return Math.max(t,Math.min(e,n))}var ge=function(e){[`onTouchStart`,`onTouchMove`,`onWheel`].includes(e._reactName)||e.preventDefault()},_e=function(e){for(var t=[],n=ve(e),r=ye(e),i=n;i0):0},xe=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+ +(parseInt(e.centerPadding)>0):e.slidesToShow},Se=function(e){return e&&e.offsetWidth||0},Ce=function(e){return e&&e.offsetHeight||0},we=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.startX-e.curX,r=e.startY-e.curY,i=Math.round(Math.atan2(r,n)*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?`left`:i>=135&&i<=225?`right`:t===!0?i>=35&&i<=135?`up`:`down`:`vertical`},Te=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Ee=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},De=function(e){var t=P.Children.count(e.children),n=e.listRef,r=Math.ceil(Se(n)),i=e.trackRef&&e.trackRef.node,a=Math.ceil(Se(i)),o;if(e.vertical)o=r;else{var s=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding==`string`&&e.centerPadding.slice(-1)===`%`&&(s*=r/100),o=Math.ceil((r-s)/e.slidesToShow)}var c=n&&Ce(n.querySelector(`[data-index="0"]`)),u=c*e.slidesToShow,d=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(d=t-1-e.initialSlide);var f=e.lazyLoadedList||[],p=_e(l(l({},e),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(p);var m={slideCount:t,slideWidth:o,listWidth:r,trackWidth:a,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:f};return e.autoplaying===null&&e.autoplay&&(m.autoplaying=`playing`),m},Oe=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,a=e.index,o=e.slideCount,s=e.lazyLoad,c=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var h=a,g,_,v,y={},b={},x=i?a:he(a,0,o-1);if(r){if(!i&&(a<0||a>=o))return{};a<0?h=a+o:a>=o&&(h=a-o),s&&m.indexOf(h)<0&&(m=m.concat(h)),y={animating:!0,currentSlide:h,lazyLoadedList:m,targetSlide:h},b={animating:!1,targetSlide:h}}else g=h,h<0?(g=h+o,i?o%d!==0&&(g=o-o%d):g=0):!Te(e)&&h>c?h=g=c:u&&h>=o?(h=i?o:o-1,g=i?0:o-1):h>=o&&(g=h-o,i?o%d!==0&&(g=0):g=o-f),!i&&h+f>=o&&(g=o-f),_=Be(l(l({},e),{},{slideIndex:h})),v=Be(l(l({},e),{},{slideIndex:g})),i||(_===v&&(h=g),_=v),s&&(m=m.concat(_e(l(l({},e),{},{currentSlide:h})))),p?(y={animating:!0,currentSlide:g,trackStyle:ze(l(l({},e),{},{left:_})),lazyLoadedList:m,targetSlide:x},b={animating:!1,currentSlide:g,trackStyle:Re(l(l({},e),{},{left:v})),swipeLeft:null,targetSlide:x}):y={currentSlide:g,trackStyle:Re(l(l({},e),{},{left:v})),lazyLoadedList:m,targetSlide:x};return{state:y,nextState:b}},ke=function(e,t){var n,r,i,a,o,s=e.slidesToScroll,c=e.slidesToShow,u=e.slideCount,d=e.currentSlide,f=e.targetSlide,p=e.lazyLoad,m=e.infinite;if(a=u%s!==0,n=a?0:(u-d)%s,t.message===`previous`)i=n===0?s:c-n,o=d-i,p&&!m&&(r=d-i,o=r===-1?u-1:r),m||(o=f-s);else if(t.message===`next`)i=n===0?s:n,o=d+i,p&&!m&&(o=(d+s)%u+n),m||(o=f+s);else if(t.message===`dots`)o=t.index*t.slidesToScroll;else if(t.message===`children`){if(o=t.index,m){var h=We(l(l({},e),{},{targetSlide:o}));o>t.currentSlide&&h===`left`?o-=u:o10)return{scrolling:!0};o&&(v.swipeLength=T);var E=(s?-1:1)*(v.curX>v.startX?1:-1);o&&(E=v.curY>v.startY?1:-1);var D=Math.ceil(h/g),O=we(t.touchObject,o),k=v.swipeLength;return _||(c===0&&(O===`right`||O===`down`)||c+1>=D&&(O===`left`||O===`up`)||!Te(t)&&(O===`left`||O===`up`))&&(k=v.swipeLength*u,d===!1&&f&&(f(O),C.edgeDragged=!0)),!p&&y&&(y(O),C.swiped=!0),S=i?w+b/x*k*E:s?w-k*E:w+k*E,o&&(S=w+k*E),C=l(l({},C),{},{touchObject:v,swipeLeft:S,trackStyle:Re(l(l({},t),{},{left:S}))}),Math.abs(v.curX-v.startX)10&&(C.swiping=!0,ge(e)),C}},Ne=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,a=t.listWidth,o=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,m=t.currentSlide,h=t.infinite;if(!n)return r&&ge(e),{};var g=s?c/o:a/o,_=we(i,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return v;if(i.swipeLength>g){ge(e),f&&f(_);var y,b,x=h?m:p;switch(_){case`left`:case`up`:b=x+Ie(t),y=u?Fe(t,b):b,v.currentDirection=0;break;case`right`:case`down`:b=x-Ie(t),y=u?Fe(t,b):b,v.currentDirection=1;break;default:y=x}v.triggerSlideHandler=y}else{var S=Be(t);v.trackStyle=ze(l(l({},t),{},{left:S}))}return v},Pe=function(e){for(var t=e.infinite?e.slideCount*2:e.slideCount,n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,i=[];nn[n.length-1])t=n[n.length-1];else for(var i in n){if(te.swipeLeft*-1)return n=r,!1}else if(r.offsetTop+Ce(r)/2>e.swipeLeft*-1)return n=r,!1;return!0}),!n)return 0;var a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},Le=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error(`Keys Missing:`,e)},Re=function(e){Le(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`]);var t,n,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=Ue(e)*e.slideWidth;var i={opacity:1,transition:``,WebkitTransition:``};if(e.useTransform){var a=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,o=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,s=e.vertical?`translateY(`+e.left+`px)`:`translateX(`+e.left+`px)`;i=l(l({},i),{},{WebkitTransform:a,transform:o,msTransform:s})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+`px`:i.marginLeft=e.left+`px`),i},ze=function(e){Le(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`,`speed`,`cssEase`]);var t=Re(e);return e.useTransform?(t.WebkitTransition=`-webkit-transform `+e.speed+`ms `+e.cssEase,t.transition=`transform `+e.speed+`ms `+e.cssEase):e.vertical?t.transition=`top `+e.speed+`ms `+e.cssEase:t.transition=`left `+e.speed+`ms `+e.cssEase,t},Be=function(e){if(e.unslick)return 0;Le(e,[`slideIndex`,`trackRef`,`infinite`,`centerMode`,`slideCount`,`slidesToShow`,`slidesToScroll`,`slideWidth`,`listWidth`,`variableWidth`,`slideHeight`]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,i=e.centerMode,a=e.slideCount,o=e.slidesToShow,s=e.slidesToScroll,c=e.slideWidth,l=e.listWidth,u=e.variableWidth,d=e.slideHeight,f=e.fade,p=e.vertical,m=0,h,g,_=0;if(f||e.slideCount===1)return 0;var v=0;if(r?(v=-Ve(e),a%s!==0&&t+s>a&&(v=-(t>a?o-(t-a):a%s)),i&&(v+=parseInt(o/2))):(a%s!==0&&t+s>a&&(v=o-a%s),i&&(v=parseInt(o/2))),m=v*c,_=v*d,h=p?t*d*-1+_:t*c*-1+m,u===!0){var y,b=n&&n.node;if(y=t+Ve(e),g=b&&b.childNodes[y],h=g?g.offsetLeft*-1:0,i===!0){y=r?t+Ve(e):t,g=b&&b.children[y],h=0;for(var x=0;xe.currentSlide?e.targetSlide>e.currentSlide+Ge(e)?`left`:`right`:e.targetSlide0&&(a+=1),r&&t%2==0&&(a+=1),a}return r?0:t-1},Ke=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),!r&&t%2==0&&(a+=1),a}return r?t-1:0},qe=function(){return!!(typeof window<`u`&&window.document&&window.document.createElement)};g(),x(),_(),b(),u(),f(),j(),d();var Je=n(p()),Ye=function(e){var t,n,r,i,a=e.rtl?e.slideCount-1-e.index:e.index;r=a<0||a>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-i-1&&a<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=a&&a=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":a===o}},Xe=function(e){var t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth),e.fade&&(t.position=`relative`,e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=+(e.currentSlide===e.index),e.useCSS&&(t.transition=`opacity `+e.speed+`ms `+e.cssEase+`, visibility `+e.speed+`ms `+e.cssEase)),t},Ze=function(e,t){return e.key+`-`+t},Qe=function(e){var t,n=[],r=[],i=[],a=P.Children.count(e.children),o=ve(e),s=ye(e);return P.Children.forEach(e.children,function(c,u){var d,f={message:`children`,index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:P.createElement(`div`,null);var p=Xe(l(l({},e),{},{index:u})),m=d.props.className||``,h=Ye(l(l({},e),{},{index:u}));if(n.push(P.cloneElement(d,{key:`original`+Ze(d,u),"data-index":u,className:(0,Je.default)(h,m),tabIndex:`-1`,"aria-hidden":!h[`slick-active`],style:l(l({outline:`none`},d.props.style||{}),p),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){var g=a-u;g<=Ve(e)&&a!==e.slidesToShow&&(t=-g,t>=o&&(d=c),h=Ye(l(l({},e),{},{index:t})),r.push(P.cloneElement(d,{key:`precloned`+Ze(d,t),"data-index":t,tabIndex:`-1`,className:(0,Je.default)(h,m),"aria-hidden":!h[`slick-active`],style:l(l({},d.props.style||{}),p),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),a!==e.slidesToShow&&(t=a+u,t=_&&c<=h:c===_}),y={message:`dots`,index:p,slidesToScroll:a,currentSlide:c},b=this.clickHandler.bind(this,y);f=f.concat(P.createElement(`li`,{key:p,className:v},P.cloneElement(this.props.customPaging(p),{onClick:b})))}return P.cloneElement(this.props.appendDots(f),l({className:this.props.dotsClass},d))}}]),n}(P.PureComponent);g(),d(),x(),_(),u(),f();var nt=function(e){c(n,e);var t=k(n);function n(){return h(this,n),t.apply(this,arguments)}return S(n,[{key:`clickHandler`,value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:`render`,value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:`previous`});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(e[`slick-disabled`]=!0,t=null);var n={key:`0`,"data-role":`none`,className:(0,Je.default)(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?P.cloneElement(this.props.prevArrow,l(l({},n),r)):P.createElement(`button`,C({key:`0`,type:`button`},n),` `,`Previous`)}}]),n}(P.PureComponent),rt=function(e){c(n,e);var t=k(n);function n(){return h(this,n),t.apply(this,arguments)}return S(n,[{key:`clickHandler`,value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:`render`,value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:`next`});Te(this.props)||(e[`slick-disabled`]=!0,t=null);var n={key:`1`,"data-role":`none`,className:(0,Je.default)(e),style:{display:`block`},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?P.cloneElement(this.props.nextArrow,l(l({},n),r)):P.createElement(`button`,C({key:`1`,type:`button`},n),` `,`Next`)}}]),n}(P.PureComponent);ee(),g(),y(),d(),x(),_(),b(),u(),f(),j(),D();var it=[`animating`],at=function(e){c(n,e);var t=k(n);function n(e){var r;h(this,n),r=t.call(this,e),M(T(r),`listRefHandler`,function(e){return r.list=e}),M(T(r),`trackRefHandler`,function(e){return r.track=e}),M(T(r),`adaptHeight`,function(){if(r.props.adaptiveHeight&&r.list){var e=r.list.querySelector(`[data-index="${r.state.currentSlide}"]`);r.list.style.height=Ce(e)+`px`}}),M(T(r),`componentDidMount`,function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var e=_e(l(l({},r.props),r.state));e.length>0&&(r.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),r.props.onLazyLoad&&r.props.onLazyLoad(e))}var t=l({listRef:r.list,trackRef:r.track},r.props);r.updateState(t,!0,function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay(`playing`)}),r.props.lazyLoad===`progressive`&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new s(function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout(function(){return r.onWindowResized()},r.props.speed))):r.onWindowResized()}),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(`.slick-slide`),function(e){e.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,e.onblur=r.props.pauseOnFocus?r.onSlideBlur:null}),window.addEventListener?window.addEventListener(`resize`,r.onWindowResized):window.attachEvent(`onresize`,r.onWindowResized)}),M(T(r),`componentWillUnmount`,function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach(function(e){return clearTimeout(e)}),r.callbackTimers=[]),window.addEventListener?window.removeEventListener(`resize`,r.onWindowResized):window.detachEvent(`onresize`,r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()}),M(T(r),`componentDidUpdate`,function(e){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var t=_e(l(l({},r.props),r.state));t.length>0&&(r.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),r.props.onLazyLoad&&r.props.onLazyLoad(t))}r.adaptHeight();var n=l(l({listRef:r.list,trackRef:r.track},r.props),r.state),i=r.didPropsChange(e);i&&r.updateState(n,i,function(){r.state.currentSlide>=P.Children.count(r.props.children)&&r.changeSlide({message:`index`,index:P.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),(e.autoplay!==r.props.autoplay||e.autoplaySpeed!==r.props.autoplaySpeed)&&(!e.autoplay&&r.props.autoplay?r.autoPlay(`playing`):r.props.autoplay?r.autoPlay(`update`):r.pause(`paused`))})}),M(T(r),`onWindowResized`,function(e){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=me(50,function(){return r.resizeWindow(e)}),r.debouncedResize()}),M(T(r),`resizeWindow`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(r.track&&r.track.node){var t=l(l({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(t,e,function(){r.props.autoplay?r.autoPlay(`update`):r.pause(`paused`)}),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}}),M(T(r),`updateState`,function(e,t,n){var i=De(e);e=l(l(l({},e),i),{},{slideIndex:i.currentSlide});var a=Be(e);e=l(l({},e),{},{left:a});var o=Re(e);(t||P.Children.count(r.props.children)!==P.Children.count(e.children))&&(i.trackStyle=o),r.setState(i,n)}),M(T(r),`ssrInit`,function(){if(r.props.variableWidth){var e=0,t=0,n=[],i=Ve(l(l(l({},r.props),r.state),{},{slideCount:r.props.children.length})),a=He(l(l(l({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var o=0;o=t&&r.onWindowResized()};if(!e.onclick)e.onclick=function(){return e.parentNode.focus()};else{var a=e.onclick;e.onclick=function(t){a(t),e.parentNode.focus()}}e.onload||(r.props.lazyLoad?e.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(e.onload=i,e.onerror=function(){i(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))})}),M(T(r),`progressiveLazyLoad`,function(){for(var e=[],t=l(l({},r.props),r.state),n=r.state.currentSlide;n=-Ve(t);i--)if(r.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(r.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),r.props.onLazyLoad&&r.props.onLazyLoad(e)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)}),M(T(r),`slideHandler`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=r.props,i=n.asNavFor,a=n.beforeChange,o=n.onLazyLoad,s=n.speed,c=n.afterChange,u=r.state.currentSlide,d=Oe(l(l(l({index:e},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter(function(e){return r.state.lazyLoadedList.indexOf(e)<0});o&&m.length>0&&o(m),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),c&&c(u),delete r.animationEndCallback),r.setState(f,function(){i&&r.asNavForIndex!==e&&(r.asNavForIndex=e,i.innerSlider.slideHandler(e)),p&&(r.animationEndCallback=setTimeout(function(){var e=p.animating,t=w(p,it);r.setState(t,function(){r.callbackTimers.push(setTimeout(function(){return r.setState({animating:e})},10)),c&&c(f.currentSlide),delete r.animationEndCallback})},s))})}}),M(T(r),`changeSlide`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ke(l(l({},r.props),r.state),e);if(!(n!==0&&!n)&&(t===!0?r.slideHandler(n,t):r.slideHandler(n),r.props.autoplay&&r.autoPlay(`update`),r.props.focusOnSelect)){var i=r.list.querySelectorAll(`.slick-current`);i[0]&&i[0].focus()}}),M(T(r),`clickHandler`,function(e){r.clickable===!1&&(e.stopPropagation(),e.preventDefault()),r.clickable=!0}),M(T(r),`keyHandler`,function(e){var t=Ae(e,r.props.accessibility,r.props.rtl);t!==``&&r.changeSlide({message:t})}),M(T(r),`selectHandler`,function(e){r.changeSlide(e)}),M(T(r),`disableBodyScroll`,function(){window.ontouchmove=function(e){e||=window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1}}),M(T(r),`enableBodyScroll`,function(){window.ontouchmove=null}),M(T(r),`swipeStart`,function(e){r.props.verticalSwiping&&r.disableBodyScroll();var t=je(e,r.props.swipe,r.props.draggable);t!==``&&r.setState(t)}),M(T(r),`swipeMove`,function(e){var t=Me(e,l(l(l({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));t&&(t.swiping&&(r.clickable=!1),r.setState(t))}),M(T(r),`swipeEnd`,function(e){var t=Ne(e,l(l(l({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,r.setState(t),n!==void 0&&(r.slideHandler(n),r.props.verticalSwiping&&r.enableBodyScroll())}}),M(T(r),`touchEnd`,function(e){r.swipeEnd(e),r.clickable=!0}),M(T(r),`slickPrev`,function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`previous`})},0))}),M(T(r),`slickNext`,function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`next`})},0))}),M(T(r),`slickGoTo`,function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return``;r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:`index`,index:e,currentSlide:r.state.currentSlide},t)},0))}),M(T(r),`play`,function(){var e;if(r.props.rtl)e=r.state.currentSlide-r.props.slidesToScroll;else if(Te(l(l({},r.props),r.state)))e=r.state.currentSlide+r.props.slidesToScroll;else return!1;r.slideHandler(e)}),M(T(r),`autoPlay`,function(e){r.autoplayTimer&&clearInterval(r.autoplayTimer);var t=r.state.autoplaying;if(e===`update`){if(t===`hovered`||t===`focused`||t===`paused`)return}else if(e===`leave`){if(t===`paused`||t===`focused`)return}else if(e===`blur`&&(t===`paused`||t===`hovered`))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:`playing`})}),M(T(r),`pause`,function(e){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var t=r.state.autoplaying;e===`paused`?r.setState({autoplaying:`paused`}):e===`focused`?(t===`hovered`||t===`playing`)&&r.setState({autoplaying:`focused`}):t===`playing`&&r.setState({autoplaying:`hovered`})}),M(T(r),`onDotsOver`,function(){return r.props.autoplay&&r.pause(`hovered`)}),M(T(r),`onDotsLeave`,function(){return r.props.autoplay&&r.state.autoplaying===`hovered`&&r.autoPlay(`leave`)}),M(T(r),`onTrackOver`,function(){return r.props.autoplay&&r.pause(`hovered`)}),M(T(r),`onTrackLeave`,function(){return r.props.autoplay&&r.state.autoplaying===`hovered`&&r.autoPlay(`leave`)}),M(T(r),`onSlideFocus`,function(){return r.props.autoplay&&r.pause(`focused`)}),M(T(r),`onSlideBlur`,function(){return r.props.autoplay&&r.state.autoplaying===`focused`&&r.autoPlay(`blur`)}),M(T(r),`render`,function(){var e=(0,Je.default)(`slick-slider`,r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),t=l(l({},r.props),r.state),n=Ee(t,[`fade`,`cssEase`,`speed`,`infinite`,`centerMode`,`focusOnSelect`,`currentSlide`,`lazyLoad`,`lazyLoadedList`,`rtl`,`slideWidth`,`slideHeight`,`listHeight`,`vertical`,`slidesToShow`,`slidesToScroll`,`slideCount`,`trackStyle`,`variableWidth`,`unslick`,`centerPadding`,`targetSlide`,`useCSS`]),i=r.props.pauseOnHover;n=l(l({},n),{},{onMouseEnter:i?r.onTrackOver:null,onMouseLeave:i?r.onTrackLeave:null,onMouseOver:i?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});var a;if(r.props.dots===!0&&r.state.slideCount>=r.props.slidesToShow){var o=Ee(t,[`dotsClass`,`slideCount`,`slidesToShow`,`currentSlide`,`slidesToScroll`,`clickHandler`,`children`,`customPaging`,`infinite`,`appendDots`]),s=r.props.pauseOnDotsHover;o=l(l({},o),{},{clickHandler:r.changeSlide,onMouseEnter:s?r.onDotsLeave:null,onMouseOver:s?r.onDotsOver:null,onMouseLeave:s?r.onDotsLeave:null}),a=P.createElement(tt,o)}var c,u,d=Ee(t,[`infinite`,`centerMode`,`currentSlide`,`slideCount`,`slidesToShow`,`prevArrow`,`nextArrow`]);d.clickHandler=r.changeSlide,r.props.arrows&&(c=P.createElement(nt,d),u=P.createElement(rt,d));var f=null;r.props.vertical&&(f={height:r.state.listHeight});var p=null;r.props.vertical===!1?r.props.centerMode===!0&&(p={padding:`0px `+r.props.centerPadding}):r.props.centerMode===!0&&(p={padding:r.props.centerPadding+` 0px`});var m=l(l({},f),p),h=r.props.touchMove,g={className:`slick-list`,style:m,onClick:r.clickHandler,onMouseDown:h?r.swipeStart:null,onMouseMove:r.state.dragging&&h?r.swipeMove:null,onMouseUp:h?r.swipeEnd:null,onMouseLeave:r.state.dragging&&h?r.swipeEnd:null,onTouchStart:h?r.swipeStart:null,onTouchMove:r.state.dragging&&h?r.swipeMove:null,onTouchEnd:h?r.touchEnd:null,onTouchCancel:r.state.dragging&&h?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},_={className:e,dir:`ltr`,style:r.props.style};return r.props.unslick&&(g={className:`slick-list`},_={className:e,style:r.props.style}),P.createElement(`div`,_,r.props.unslick?``:c,P.createElement(`div`,C({ref:r.listRefHandler},g),P.createElement($e,C({ref:r.trackRefHandler},n),r.props.children)),r.props.unslick?``:u,r.props.unslick?``:a)}),r.list=null,r.track=null,r.state=l(l({},fe),{},{currentSlide:r.props.initialSlide,slideCount:P.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var i=r.ssrInit();return r.state=l(l({},r.state),i),r}return S(n,[{key:`didPropsChange`,value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n{t.exports=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}).toLowerCase()}})),st=i(((e,t)=>{var n=ot(),r=function(e){return/[height|width]$/.test(e)},i=function(e){var t=``,i=Object.keys(e);return i.forEach(function(a,o){var s=e[a];a=n(a),r(a)&&typeof s==`number`&&(s+=`px`),s===!0?t+=a:s===!1?t+=`not `+a:t+=`(`+a+`: `+s+`)`,o1&&arguments[1]!==void 0?arguments[1]:!1;return r.innerSlider.slickGoTo(e,t)}),M(T(r),`slickPause`,function(){return r.innerSlider.pause(`paused`)}),M(T(r),`slickPlay`,function(){return r.innerSlider.autoPlay(`play`)}),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return S(n,[{key:`media`,value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:`componentDidMount`,value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var i=r===0?(0,lt.default)({minWidth:0,maxWidth:n}):(0,lt.default)({minWidth:t[r-1]+1,maxWidth:n});qe()&&e.media(i,function(){e.setState({breakpoint:n})})});var n=(0,lt.default)({minWidth:t.slice(-1)[0]});qe()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:`componentWillUnmount`,value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:`render`,value:function(){var e=this,t,n;this.state.breakpoint?(n=this.props.responsive.filter(function(t){return t.breakpoint===e.state.breakpoint}),t=n[0].settings===`unslick`?`unslick`:l(l(l({},ct),this.props),n[0].settings)):t=l(l({},ct),this.props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var r=P.Children.toArray(this.props.children);r=r.filter(function(e){return typeof e==`string`?!!e.trim():!!e}),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn(`variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`),t.variableWidth=!1);for(var i=[],a=null,o=0;o=r.length));d+=1)u.push(P.cloneElement(r[d],{key:100*o+10*c+d,tabIndex:-1,style:{width:`${100/t.slidesPerRow}%`,display:`inline-block`}}));s.push(P.createElement(`div`,{key:10*o+c},u))}t.variableWidth?i.push(P.createElement(`div`,{key:o,style:{width:a}},s)):i.push(P.createElement(`div`,{key:o},s))}if(t===`unslick`){var f=`regular slider `+(this.props.className||``);return P.createElement(`div`,{className:f},r)}else i.length<=t.slidesToShow&&(t.unslick=!0);return P.createElement(at,C({style:this.props.style,ref:this.innerSliderRefHandler},t),i)}}]),n}(P.Component);j(),g();var dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0?arguments[1]:!1;_.current.slickGoTo(e,t)};P.useImperativeHandle(t,function(){return{goTo:v,autoPlay:_.current.innerSlider.autoPlay,innerSlider:_.current.innerSlider,prev:_.current.slickPrev,next:_.current.slickNext}},[_.current]);var y=P.useRef(P.Children.count(f.children));P.useEffect(function(){y.current!==P.Children.count(f.children)&&(v(f.initialSlide||0,!1),y.current=P.Children.count(f.children))},[f.children]);var b=C({vertical:d},f);b.effect===`fade`&&(b.fade=!0);var x=h(`carousel`,b.prefixCls),S=`slick-dots`,w=!!r,T=(0,Je.default)(S,`${S}-${l}`,typeof r==`boolean`?!1:r?.className),E=(0,Je.default)(x,M(M({},`${x}-rtl`,g===`rtl`),`${x}-vertical`,l===`left`||l===`right`));return P.createElement(`div`,{className:E},P.createElement(ut,C({ref:_},b,{dots:w,dotsClass:T,arrows:a,draggable:s})))}),F=r({__addDisposableResource:()=>zt,__assign:()=>L,__asyncDelegator:()=>jt,__asyncGenerator:()=>At,__asyncValues:()=>Mt,__await:()=>kt,__awaiter:()=>xt,__classPrivateFieldGet:()=>It,__classPrivateFieldIn:()=>Rt,__classPrivateFieldSet:()=>Lt,__createBinding:()=>Ut,__decorate:()=>mt,__disposeResources:()=>Bt,__esDecorate:()=>gt,__exportStar:()=>Ct,__extends:()=>I,__generator:()=>St,__importDefault:()=>Ft,__importStar:()=>Pt,__makeTemplateObject:()=>Nt,__metadata:()=>bt,__param:()=>ht,__propKey:()=>vt,__read:()=>Tt,__rest:()=>pt,__rewriteRelativeImportExtension:()=>Vt,__runInitializers:()=>_t,__setFunctionName:()=>yt,__spread:()=>Et,__spreadArray:()=>Ot,__spreadArrays:()=>Dt,__values:()=>wt,default:()=>qt});function I(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ht(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function pt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ht(e,t){return function(n,r){t(n,r,e)}}function gt(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function _t(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Tt(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Et(){for(var e=[],t=0;t1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof kt?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function jt(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:kt(e[r](t)),done:!1}:i?i(t):t}:i}}function Mt(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wt==`function`?wt(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Nt(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Pt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Gt(e),r=0;r{Ht=function(e,t){return Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ht(e,t)},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Jt=function(e){return e!==null&&typeof e!=`function`&&isFinite(e.length)}})),Xt,Zt=t((()=>{Yt(),Xt=function(e,t){return Jt(e)?e.indexOf(t)>-1:!1}})),Qt,$t=t((()=>{Yt(),Qt=function(e,t){if(!Jt(e))return e;for(var n=[],r=0;r{$t(),Zt(),en=function(e,t){return t===void 0&&(t=[]),Qt(e,function(e){return!Xt(t,e)})}})),nn,rn,an=t((()=>{nn={}.toString,rn=function(e,t){return nn.call(e)===`[object `+t+`]`}})),z,on=t((()=>{an(),z=(function(e){return rn(e,`Function`)})})),B,sn=t((()=>{B=function(e){return e==null}})),V,cn=t((()=>{an(),V=(function(e){return Array.isArray?Array.isArray(e):rn(e,`Array`)})})),ln,un=t((()=>{ln=(function(e){var t=typeof e;return e!==null&&t===`object`||t===`function`})}));function H(e,t){if(e){var n;if(V(e))for(var r=0,i=e.length;r{cn(),un()})),fn,pn=t((()=>{dn(),on(),fn=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return H(e,function(n,r){z(e)&&r===`prototype`||t.push(r)}),t}}));function mn(e,t){var n=fn(t),r=n.length;if(B(e))return!r;for(var i=0;i{sn(),pn()})),gn,_n=t((()=>{gn=function(e){return typeof e==`object`&&!!e}})),vn,yn=t((()=>{_n(),an(),vn=function(e){if(!gn(e)||!rn(e,`Object`))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}));function bn(e,t){if(!V(e))return null;var n;if(z(t)&&(n=t),vn(t)&&(n=function(e){return mn(e,t)}),n){for(var r=0;r{on(),hn(),cn(),yn()}));function Sn(e,t,n){n===void 0&&(n=0);for(var r=n;r{})),wn,Tn=t((()=>{sn(),cn(),wn=function(e,t){for(var n=null,r=0;r{cn(),En=function(e){if(!V(e))return[];for(var t=[],n=0;n{cn(),On=function(e,t){if(t===void 0&&(t=[]),!V(e))t.push(e);else for(var n=0;n{cn(),An=(function(e){if(V(e))return e.reduce(function(e,t){return Math.max(e,t)},e[0])})})),Mn,Nn=t((()=>{cn(),Mn=(function(e){if(V(e))return e.reduce(function(e,t){return Math.min(e,t)},e[0])})})),Pn,Fn=t((()=>{cn(),jn(),Nn(),Pn=function(e){var t=e.filter(function(e){return!isNaN(e)});if(!t.length)return{min:0,max:0};if(V(e[0])){for(var n=[],r=0;r{In=Array.prototype,Ln=In.splice,Rn=In.indexOf,zn=function(e){for(var t=[...arguments].slice(1),n=0;n-1;)Ln.call(e,i,1);return e}})),Vn,Hn,Un=t((()=>{Yt(),Vn=Array.prototype.splice,Hn=function(e,t){if(!Jt(e))return[];for(var n=e?t.length:0,r=n-1;n--;){var i=void 0,a=t[n];(n===r||a!==i)&&(i=a,Vn.call(e,a,1))}return e}})),Wn,Gn=t((()=>{dn(),cn(),yn(),Wn=function(e,t,n){if(!V(e)&&!vn(e))return e;var r=n;return H(e,function(e,n){r=t(r,e,n)}),r}})),Kn,qn=t((()=>{Yt(),Un(),Kn=function(e,t){var n=[];if(!Jt(e))return n;for(var r=-1,i=[],a=e.length;++r{an(),U=(function(e){return rn(e,`String`)})}));function Yn(e,t){var n;if(z(t))n=function(e,n){return t(e)-t(n)};else{var r=[];U(t)?r.push(t):V(t)&&(r=t),n=function(e,t){for(var n=0;nt[i])return 1;if(e[i]{cn(),Jn(),on()}));function Zn(e,t){t===void 0&&(t=new Map);var n=[];if(Array.isArray(e))for(var r=0,i=e.length;r{})),$n,er=t((()=>{Qn(),$n=function(){var e=[...arguments];return Zn([].concat.apply([],e))}})),tr,nr=t((()=>{cn(),sn(),tr=(function(e,t){for(var n=[],r={},i=0;i{Yt()}));function ar(e){if(Jt(e)){var t=e;return t[t.length-1]}}var or=t((()=>{Yt()}));function sr(e,t){return V(e)||U(e)?e[0]===t:!1}var cr=t((()=>{cn(),Jn()}));function lr(e,t){return V(e)||U(e)?e[e.length-1]===t:!1}var ur=t((()=>{cn(),Jn()})),dr,fr=t((()=>{dr=function(e,t){for(var n=0;n{pr=function(e,t){for(var n=0;n{cn(),on(),gr=Object.prototype.hasOwnProperty}));function vr(e,t){if(!t)return{0:e};if(!z(t)){var n=V(t)?t:t.replace(/\s+/g,``).split(`*`);t=function(e){for(var t=`_`,r=0,i=n.length;r{cn(),on(),_r()})),br,xr=t((()=>{yr(),br=(function(e,t){if(!t)return[e];var n=vr(e,t),r=[];for(var i in n)r.push(n[i]);return r})}));function Sr(e,t){return e[`_wrap_`+t]}var Cr=t((()=>{}));function wr(e,t){if(e[`_wrap_`+t])return e[`_wrap_`+t];var n=function(n){e[t](n)};return e[`_wrap_`+t]=n,n}var Tr=t((()=>{}));function Er(e){var t=Dr[e];if(!t){for(var n=e.toString(16),r=n.length;r<6;r++)n=`0`+n;t=`#`+n,Dr[e]=t}return t}var Dr,Or=t((()=>{Dr={}}));function kr(e){var t=0,n=0,r=0,i=0;return V(e)?e.length===1?t=n=r=i=e[0]:e.length===2?(t=r=e[0],n=i=e[1]):e.length===3?(t=e[0],n=i=e[1],r=e[2]):(t=e[0],n=e[1],r=e[2],i=e[3]):t=n=r=i=e,{r1:t,r2:n,r3:r,r4:i}}var Ar=t((()=>{cn()})),jr,Mr=t((()=>{jr=function(e,t,n){return en?n:e}})),Nr,Pr=t((()=>{Nr=function(e,t){var n=t.toString(),r=n.indexOf(`.`);if(r===-1)return Math.round(e);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(e.toFixed(i))}})),W,Fr=t((()=>{an(),W=function(e){return rn(e,`Number`)}})),Ir,Lr=t((()=>{Fr(),Ir=function(e){return W(e)&&e%1!=0}})),Rr,zr=t((()=>{Fr(),Rr=function(e){return W(e)&&e%2==0}})),Br,Vr=t((()=>{Fr(),Br=Number.isInteger?Number.isInteger:function(e){return W(e)&&e%1==0}})),Hr,Ur=t((()=>{Fr(),Hr=function(e){return W(e)&&e<0}}));function Wr(e,t,n){return n===void 0&&(n=Gr),Math.abs(e-t){Gr=1e-5})),qr,Jr=t((()=>{Fr(),qr=function(e){return W(e)&&e%2!=0}})),Yr,Xr=t((()=>{Fr(),Yr=function(e){return W(e)&&e>0}})),Zr,Qr=t((()=>{cn(),on(),Zr=(function(e,t){if(V(e)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}})})),$r,ei=t((()=>{cn(),on(),$r=(function(e,t){if(V(e)){for(var n,r=1/0,i=0;i{ti=function(e,t){return(e%t+t)%t}})),ri,ii,ai=t((()=>{ri=180/Math.PI,ii=function(e){return ri*e}})),oi,si=t((()=>{oi=parseInt})),ci,li,ui=t((()=>{ci=Math.PI/180,li=function(e){return ci*e}})),di,fi=t((()=>{dn(),di=H})),pi,mi=t((()=>{pi=(function(e,t){return e.hasOwnProperty(t)})})),hi,gi=t((()=>{mi(),hi=pi})),_i,vi=t((()=>{dn(),on(),_i=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return H(e,function(n,r){z(e)&&r===`prototype`||t.push(n)}),t}})),yi,bi=t((()=>{Zt(),vi(),yi=(function(e,t){return Xt(_i(e),t)})})),xi,Si=t((()=>{sn(),xi=(function(e){return B(e)?``:e.toString()})})),Ci,wi=t((()=>{Si(),Ci=function(e){return xi(e).toLowerCase()}})),Ti,Ei=t((()=>{Si(),Ti=function(e){var t=xi(e);return t.charAt(0).toLowerCase()+t.substring(1)}}));function Di(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(e,n){return e.charAt(0)===`\\`?e.slice(1):t[n]===void 0?``:t[n]})}var Oi=t((()=>{})),ki,Ai=t((()=>{Si(),ki=function(e){return xi(e).toUpperCase()}})),ji,Mi=t((()=>{Si(),ji=function(e){var t=xi(e);return t.charAt(0).toUpperCase()+t.substring(1)}})),Ni,Pi,Fi=t((()=>{Ni={}.toString,Pi=function(e){return Ni.call(e).replace(/^\[object /,``).replace(/]$/,``)}})),Ii,Li=t((()=>{an(),Ii=function(e){return rn(e,`Arguments`)}})),Ri,zi=t((()=>{an(),Ri=function(e){return rn(e,`Boolean`)}})),Bi,Vi=t((()=>{an(),Bi=function(e){return rn(e,`Date`)}})),Hi,Ui=t((()=>{an(),Hi=function(e){return rn(e,`Error`)}}));function Wi(e){return W(e)&&isFinite(e)}var Gi=t((()=>{Fr()})),Ki,qi=t((()=>{Ki=function(e){return e===null}})),Ji,Yi,Xi=t((()=>{Ji=Object.prototype,Yi=function(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ji)}})),Zi,Qi=t((()=>{an(),Zi=function(e){return rn(e,`RegExp`)}})),$i,ea=t((()=>{$i=function(e){return e===void 0}})),ta,na=t((()=>{ta=function(e){return e instanceof Element||e instanceof HTMLDocument}}));function ra(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)}var ia=t((()=>{}));function aa(e){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(e)}var oa=t((()=>{}));function sa(e,t){for(var n in t)t.hasOwnProperty(n)&&n!==`constructor`&&t[n]!==void 0&&(e[n]=t[n])}function G(e,t,n,r){return t&&sa(e,t),n&&sa(e,n),r&&sa(e,r),e}var ca=t((()=>{})),la,ua=t((()=>{ca(),on(),la=function(){for(var e=[...arguments],t=e[0],n=1;n{cn(),da=function(e){if(typeof e!=`object`||!e)return e;var t;if(V(e)){t=[];for(var n=0,r=e.length;n{})),ha,ga=t((()=>{on(),ha=(function(e,t){if(!z(e))throw TypeError(`Expected a function`);var n=function(){var r=[...arguments],i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return a.set(i,o),o};return n.cache=new Map,n})}));function _a(e,t,n,r){for(var i in n||=0,r||=va,t)if(t.hasOwnProperty(i)){var a=t[i];a!==null&&vn(a)?(vn(e[i])||(e[i]={}),n{cn(),yn(),va=5,ya=function(e){for(var t=[...arguments].slice(1),n=0;n{ca(),on(),xa=function(e,t,n,r){z(t)||(n=t,t=e,e=function(){});var i=Object.create?function(e,t){return Object.create(e,{constructor:{value:t}})}:function(e,t){function n(){}n.prototype=e;var r=new n;return r.constructor=t,r},a=i(t.prototype,e);return e.prototype=G(a,e.prototype),e.superclass=i(t.prototype,t),G(a,n),G(e,r),e}})),Ca,wa=t((()=>{Yt(),Ca=function(e,t){if(!Jt(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,i=0;i{sn(),Yt(),Fi(),Xi(),Ea=Object.prototype.hasOwnProperty})),Oa,ka=t((()=>{_n(),Yt(),Jn(),Oa=function(e,t){if(e===t)return!0;if(!e||!t||U(e)||U(t))return!1;if(Jt(e)||Jt(t)){if(e.length!==t.length)return!1;for(var n=!0,r=0;r{on(),ka(),Aa=(function(e,t,n){return z(n)?!!n(e,t):Oa(e,t)})})),Ma,Na=t((()=>{Yt(),Ma=function(e,t){if(!Jt(e))return e;for(var n=[],r=0;r{sn(),un(),Pa=function(e){return e},Fa=(function(e,t){t===void 0&&(t=Pa);var n={};return ln(e)&&!B(e)&&Object.keys(e).forEach(function(r){n[r]=t(e[r],r)}),n})})),K,La=t((()=>{Jn(),K=(function(e,t,n){for(var r=0,i=U(t)?t.split(`.`):t;e&&r{un(),Jn(),Fr(),Ra=(function(e,t,n){var r=e,i=U(t)?t.split(`.`):t;return i.forEach(function(e,t){t{dn(),yn(),Ba=Object.prototype.hasOwnProperty,Va=(function(e,t){if(e===null||!vn(e))return{};var n={};return H(t,function(t){Ba.call(e,t)&&(n[t]=e[t])}),n})})),Ua,Wa=t((()=>{Gn(),Ua=(function(e,t){return Wn(e,function(e,n,r){return t.includes(r)||(e[r]=n),e},{})})})),Ga,Ka=t((()=>{Ga=(function(e,t,n){var r,i,a,o,s=0;n||={};var c=function(){s=n.leading===!1?0:Date.now(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();!s&&n.leading===!1&&(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&=(clearTimeout(r),null),s=l,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l})})),qa,Ja=t((()=>{Yt(),qa=(function(e){return Jt(e)?Array.prototype.slice.call(e):[]})})),Ya,Xa,Za=t((()=>{Ya={},Xa=(function(e){return e||=`g`,Ya[e]?Ya[e]+=1:Ya[e]=1,e+Ya[e]})})),Qa,$a=t((()=>{Qa=(function(){})})),eo,to=t((()=>{eo=(function(e){return e})}));function no(e){return B(e)?0:Jt(e)?e.length:Object.keys(e).length}var ro=t((()=>{sn(),Yt()})),io,ao,oo=t((()=>{R(),vi(),ga(),Jn(),ao=ha(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,a=t.fontStyle,o=t.fontVariant;return io||=document.createElement(`canvas`).getContext(`2d`),io.font=[a,o,i,n+`px`,r].join(` `),io.measureText(U(e)?e:``).width},function(e,t){return t===void 0&&(t={}),Dt([e],_i(t)).join(``)})})),so,co=t((()=>{Jn(),Si(),oo(),so=(function(e,t,n,r){r===void 0&&(r=`...`);var i=16,a=ao(r,n),o=U(e)?e:xi(e),s=t,c=[],l,u;if(ao(e,n)<=t)return e;for(;l=o.substr(0,i),u=ao(l,n),!(u+a>s&&u>s);)if(c.push(l),s-=u,o=o.substr(i),!o)return c.join(``);for(;l=o.substr(0,1),u=ao(l,n),!(u+a>s);)if(c.push(l),s-=u,o=o.substr(1),!o)return c.join(``);return``+c.join(``)+r})})),lo,uo=t((()=>{lo=function(){function e(){this.map={}}return e.prototype.has=function(e){return this.map[e]!==void 0},e.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()})),q=r({Cache:()=>lo,assign:()=>G,augment:()=>la,clamp:()=>jr,clearAnimationFrame:()=>aa,clone:()=>da,contains:()=>Xt,debounce:()=>pa,deepMix:()=>ya,difference:()=>en,each:()=>H,endsWith:()=>lr,every:()=>dr,extend:()=>xa,filter:()=>Qt,find:()=>bn,findIndex:()=>Sn,firstValue:()=>wn,fixedBase:()=>Nr,flatten:()=>En,flattenDeep:()=>On,forIn:()=>di,get:()=>K,getEllipsisText:()=>so,getRange:()=>Pn,getType:()=>Pi,getWrapBehavior:()=>Sr,group:()=>br,groupBy:()=>hr,groupToMap:()=>vr,has:()=>pi,hasKey:()=>hi,hasValue:()=>yi,head:()=>rr,identity:()=>eo,includes:()=>Xt,indexOf:()=>Ca,isArguments:()=>Ii,isArray:()=>V,isArrayLike:()=>Jt,isBoolean:()=>Ri,isDate:()=>Bi,isDecimal:()=>Ir,isElement:()=>ta,isEmpty:()=>Ta,isEqual:()=>Oa,isEqualWith:()=>Aa,isError:()=>Hi,isEven:()=>Rr,isFinite:()=>Wi,isFunction:()=>z,isInteger:()=>Br,isMatch:()=>mn,isNegative:()=>Hr,isNil:()=>B,isNull:()=>Ki,isNumber:()=>W,isNumberEqual:()=>Wr,isObject:()=>ln,isObjectLike:()=>gn,isOdd:()=>qr,isPlainObject:()=>vn,isPositive:()=>Yr,isPrototype:()=>Yi,isRegExp:()=>Zi,isString:()=>U,isType:()=>rn,isUndefined:()=>$i,keys:()=>fn,last:()=>ar,lowerCase:()=>Ci,lowerFirst:()=>Ti,map:()=>Ma,mapValues:()=>Fa,max:()=>An,maxBy:()=>Zr,measureTextWidth:()=>ao,memoize:()=>ha,min:()=>Mn,minBy:()=>$r,mix:()=>G,mod:()=>ti,noop:()=>Qa,number2color:()=>Er,omit:()=>Ua,parseRadius:()=>kr,pick:()=>Va,pull:()=>zn,pullAt:()=>Hn,reduce:()=>Wn,remove:()=>Kn,requestAnimationFrame:()=>ra,set:()=>Ra,size:()=>no,some:()=>pr,sortBy:()=>Yn,startsWith:()=>sr,substitute:()=>Di,throttle:()=>Ga,toArray:()=>qa,toDegree:()=>ii,toInteger:()=>oi,toRadian:()=>li,toString:()=>xi,union:()=>$n,uniq:()=>Zn,uniqueId:()=>Xa,upperCase:()=>ki,upperFirst:()=>ji,values:()=>_i,valuesOfKey:()=>tr,wrapBehavior:()=>wr}),J=t((()=>{Zt(),tn(),xn(),Cn(),Tn(),Dn(),kn(),Fn(),Bn(),Un(),Gn(),qn(),Xn(),er(),Qn(),nr(),ir(),or(),cr(),ur(),$t(),fr(),mr(),xr(),_r(),yr(),Cr(),Tr(),Or(),Ar(),Mr(),Pr(),Lr(),zr(),Vr(),Ur(),Kr(),Jr(),Xr(),jn(),Qr(),Nn(),ei(),ni(),ai(),si(),ui(),fi(),mi(),gi(),bi(),pn(),hn(),vi(),wi(),Ei(),Oi(),Ai(),Mi(),Fi(),Li(),cn(),Yt(),zi(),Vi(),Ui(),on(),Gi(),sn(),qi(),Fr(),un(),_n(),yn(),Xi(),Qi(),Jn(),an(),ea(),na(),ia(),oa(),ua(),fa(),ma(),ga(),ba(),dn(),Sa(),wa(),Da(),ka(),ja(),Na(),Ia(),ca(),La(),za(),Ha(),Wa(),Ka(),Ja(),Si(),Za(),$a(),to(),ro(),oo(),co(),uo()})),Y=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,(function(e){e.FORE=`fore`,e.MID=`mid`,e.BG=`bg`})(e.LAYER||={}),(function(e){e.TOP=`top`,e.TOP_LEFT=`top-left`,e.TOP_RIGHT=`top-right`,e.RIGHT=`right`,e.RIGHT_TOP=`right-top`,e.RIGHT_BOTTOM=`right-bottom`,e.LEFT=`left`,e.LEFT_TOP=`left-top`,e.LEFT_BOTTOM=`left-bottom`,e.BOTTOM=`bottom`,e.BOTTOM_LEFT=`bottom-left`,e.BOTTOM_RIGHT=`bottom-right`,e.RADIUS=`radius`,e.CIRCLE=`circle`,e.NONE=`none`})(e.DIRECTION||={}),(function(e){e.AXIS=`axis`,e.GRID=`grid`,e.LEGEND=`legend`,e.TOOLTIP=`tooltip`,e.ANNOTATION=`annotation`,e.SLIDER=`slider`,e.SCROLLBAR=`scrollbar`,e.OTHER=`other`})(e.COMPONENT_TYPE||={}),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},(function(e){e.BEFORE_RENDER=`beforerender`,e.AFTER_RENDER=`afterrender`,e.BEFORE_PAINT=`beforepaint`,e.AFTER_PAINT=`afterpaint`,e.BEFORE_CHANGE_DATA=`beforechangedata`,e.AFTER_CHANGE_DATA=`afterchangedata`,e.BEFORE_CLEAR=`beforeclear`,e.AFTER_CLEAR=`afterclear`,e.BEFORE_DESTROY=`beforedestroy`,e.BEFORE_CHANGE_SIZE=`beforechangesize`,e.AFTER_CHANGE_SIZE=`afterchangesize`})(e.VIEW_LIFE_CIRCLE||={}),(function(e){e.BEFORE_DRAW_ANIMATE=`beforeanimate`,e.AFTER_DRAW_ANIMATE=`afteranimate`})(e.GEOMETRY_LIFE_CIRCLE||={}),(function(e){e.MOUSE_ENTER=`plot:mouseenter`,e.MOUSE_DOWN=`plot:mousedown`,e.MOUSE_MOVE=`plot:mousemove`,e.MOUSE_UP=`plot:mouseup`,e.MOUSE_LEAVE=`plot:mouseleave`,e.TOUCH_START=`plot:touchstart`,e.TOUCH_MOVE=`plot:touchmove`,e.TOUCH_END=`plot:touchend`,e.TOUCH_CANCEL=`plot:touchcancel`,e.CLICK=`plot:click`,e.DBLCLICK=`plot:dblclick`,e.CONTEXTMENU=`plot:contextmenu`,e.LEAVE=`plot:leave`,e.ENTER=`plot:enter`})(e.PLOT_EVENTS||={}),(function(e){e.ACTIVE=`active`,e.INACTIVE=`inactive`,e.SELECTED=`selected`,e.DEFAULT=`default`})(e.ELEMENT_STATE||={}),e.GROUP_ATTRS=[`color`,`shape`,`size`],e.FIELD_ORIGIN=`_origin`,e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25})),fo=r({catmullRomToBezier:()=>So,fillPath:()=>Go,fillPathByDiff:()=>Jo,formatPath:()=>Yo,intersection:()=>Uo,parsePathArray:()=>Ao,parsePathString:()=>xo,pathToAbsolute:()=>wo,pathToCurve:()=>Oo,rectPath:()=>Io});function po(e,t){var n=[],r=[];function i(e,t){if(e.length===1)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(e.length===3&&t.push(`Q`),t=t.concat(e[1])),e.length===2&&t.push(`L`),t=t.concat(e[e.length-1]),t})}function ho(e,t,n){var r=null,i=n;return t{J(),vo=` +\v\f\r \xA0 ᠎              \u2028\u2029`,yo=RegExp(`([a-z])[`+vo+`,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[`+vo+`]*,?[`+vo+`]*)+)`,`ig`),bo=RegExp(`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[`+vo+`]*,?[`+vo+`]*`,`ig`),xo=function(e){if(!e)return null;if(V(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(yo,function(r,i,a){var o=[],s=i.toLowerCase();if(a.replace(bo,function(e,t){t&&o.push(+t)}),s===`m`&&o.length>2&&(n.push([i].concat(o.splice(0,2))),s=`l`,i=i===`m`?`l`:`L`),s===`o`&&o.length===1&&n.push([i,o[0]]),s===`r`)n.push([i].concat(o));else for(;o.length>=t[s]&&(n.push([i].concat(o.splice(0,t[s]))),t[s]););return e}),n},So=function(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4===r?a[3]={x:+e[0],y:+e[1]}:i-2===r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push([`C`,(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},Co=function(e,t,n,r,i){var a=[];if(i===null&&r===null&&(r=n),e=+e,t=+t,n=+n,r=+r,i!==null){var o=Math.PI/180,s=e+n*Math.cos(-r*o),c=e+n*Math.cos(-i*o),l=t+n*Math.sin(-r*o),u=t+n*Math.sin(-i*o);a=[[`M`,s,l],[`A`,n,n,0,+(i-r>180),0,c,u]]}else a=[[`M`,e,t],[`m`,0,-r],[`a`,n,r,0,1,1,0,2*r],[`a`,n,r,0,1,1,0,-2*r],[`z`]];return a},wo=function(e){if(e=xo(e),!e||!e.length)return[[`M`,0,0]];var t=[],n=0,r=0,i=0,a=0,o=0,s,c;e[0][0]===`M`&&(n=+e[0][1],r=+e[0][2],i=n,a=r,o++,t[0]=[`M`,n,r]);for(var l=e.length===3&&e[0][0]===`M`&&e[1][0].toUpperCase()===`R`&&e[2][0].toUpperCase()===`Z`,u=void 0,d=void 0,f=o,p=e.length;f1&&(x=Math.sqrt(x),n=x*n,r=x*r);var S=n*n,C=r*r,w=(a===o?-1:1)*Math.sqrt(Math.abs((S*C-S*b*b-C*y*y)/(S*b*b+C*y*y)));g=w*n*b/r+(e+s)/2,_=w*-r*y/n+(t+c)/2,m=Math.asin(((t-_)/r).toFixed(9)),h=Math.asin(((c-_)/r).toFixed(9)),m=eh&&(m-=Math.PI*2),!o&&h>m&&(h-=Math.PI*2)}var T=h-m;if(Math.abs(T)>u){var E=h,D=s,O=c;h=m+u*(o&&h>m?1:-1),s=g+n*Math.cos(h),c=_+r*Math.sin(h),f=Do(s,c,n,r,i,0,o,D,O,[h,E,g,_])}T=h-m;var k=Math.cos(m),A=Math.sin(m),ee=Math.cos(h),te=Math.sin(h),j=Math.tan(T/4),M=4/3*n*j,ne=4/3*r*j,re=[e,t],ie=[e+M*A,t-ne*k],ae=[s+M*te,c-ne*ee],oe=[s,c];if(ie[0]=2*re[0]-ie[0],ie[1]=2*re[1]-ie[1],l)return[ie,ae,oe].concat(f);f=[ie,ae,oe].concat(f).join().split(`,`);for(var N=[],se=0,ce=f.length;se7){e[t].shift();for(var i=e[t];i.length;)o[t]=`A`,r&&(s[t]=`A`),e.splice(t++,0,[`C`].concat(i.splice(0,6)));e.splice(t,1),u=Math.max(n.length,r&&r.length||0)}},p=function(e,t,i,a,o){e&&t&&e[o][0]===`M`&&t[o][0]!==`M`&&(t.splice(o,0,[`M`,a.x,a.y]),i.bx=0,i.by=0,i.x=e[o][1],i.y=e[o][2],u=Math.max(n.length,r&&r.length||0))};u=Math.max(n.length,r&&r.length||0);for(var m=0;m1?1:c<0?0:c;for(var l=c/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,m=0;m0&&p<1&&c.push(p);continue}var h=d*d-4*f*u,g=Math.sqrt(h);if(!(h<0)){var _=(-d+g)/(2*u);_>0&&_<1&&c.push(_);var v=(-d-g)/(2*u);v>0&&v<1&&c.push(v)}}for(var y=c.length,b=y,x;y--;)p=c[y],x=1-p,l[0][y]=x*x*x*e+3*x*x*p*n+3*x*p*p*i+p*p*p*o,l[1][y]=x*x*x*t+3*x*x*p*r+3*x*p*p*a+p*p*p*s;return l[0][b]=e,l[1][b]=t,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},Po=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)Math.max(i,o)||Math.max(t,r)Math.max(a,s))){var c=(e*r-t*n)*(i-o)-(e-n)*(i*s-a*o),l=(e*r-t*n)*(a-s)-(t-r)*(i*s-a*o),u=(e-n)*(a-s)-(t-r)*(i-o);if(u){var d=c/u,f=l/u,p=+d.toFixed(2),m=+f.toFixed(2);if(!(p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||m<+Math.min(t,r).toFixed(2)||m>+Math.max(t,r).toFixed(2)||m<+Math.min(a,s).toFixed(2)||m>+Math.max(a,s).toFixed(2)))return{x:d,y:f}}}},Fo=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},Io=function(e,t,n,r,i){if(i)return[[`M`,+e+ +i,t],[`l`,n-i*2,0],[`a`,i,i,0,0,1,i,i],[`l`,0,r-i*2],[`a`,i,i,0,0,1,-i,i],[`l`,i*2-n,0],[`a`,i,i,0,0,1,-i,-i],[`l`,0,i*2-r],[`a`,i,i,0,0,1,i,-i],[`z`]];var a=[[`M`,e,t],[`l`,n,0],[`l`,0,r],[`l`,-n,0],[`z`]];return a.parsePathArray=Ao,a},Lo=function(e,t,n,r){return e===null&&(e=t=n=r=0),t===null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Io(e,t,n,r),vb:[e,t,n,r].join(` `)}},Ro=function(e,t){return e=Lo(e),t=Lo(t),Fo(t,e.x,e.y)||Fo(t,e.x2,e.y)||Fo(t,e.x,e.y2)||Fo(t,e.x2,e.y2)||Fo(e,t.x,t.y)||Fo(e,t.x2,t.y)||Fo(e,t.x,t.y2)||Fo(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},zo=function(e,t,n,r,i,a,o,s){V(e)||(e=[e,t,n,r,i,a,o,s]);var c=No.apply(null,e);return Lo(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},Bo=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=l**3,d=l**2,f=c*c,p=f*c,m=u*e+d*3*c*n+l*3*c*c*i+p*o,h=u*t+d*3*c*r+l*3*c*c*a+p*s,g=e+2*c*(n-e)+f*(i-2*n+e),_=t+2*c*(r-t)+f*(a-2*r+t),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r),b=l*e+c*n,x=l*t+c*r,S=l*i+c*o,C=l*a+c*s,w=90-Math.atan2(g-v,_-y)*180/Math.PI;return{x:m,y:h,m:{x:g,y:_},n:{x:v,y},start:{x:b,y:x},end:{x:S,y:C},alpha:w}},Vo=function(e,t,n){if(!Ro(zo(e),zo(t)))return n?0:[];for(var r=Mo.apply(0,e),i=Mo.apply(0,t),a=~~(r/8),o=~~(i/8),s=[],c=[],l={},u=n?0:[],d=0;d=0&&x<=1&&S>=0&&S<=1&&(n?u+=1:u.push({x:b.x,y:b.y,t1:x,t2:S}))}}return u},Ho=function(e,t,n){e=Oo(e),t=Oo(t);for(var r,i,a,o,s,c,l,u,d,f,p=n?0:[],m=0,h=e.length;m=0;c--)o=a[c].index,a[c].type===`add`?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}r=e.length;var d=i-r;if(r0)n=go(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`Q`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`T`:e[r]=[`T`].concat(n[0]);break;case`C`:if(n.length<3)if(r>0)n=go(n,e[r-1],2);else{e[r]=t[r];break}e[r]=[`C`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`S`:if(n.length<2)if(r>0)n=go(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`S`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;default:e[r]=t[r]}return e}})),Zo=t((()=>{})),Qo=t((()=>{})),$o,es=t((()=>{$o=function(){function e(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){return`[Event (type=`+this.type+`)]`},e.prototype.save=function(){},e.prototype.restore=function(){},e}()})),ts=r({default:()=>rs}),ns,rs,is=t((()=>{ns=`*`,rs=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r{J(),cs=typeof window<`u`&&window.document!==void 0})),us,ds=t((()=>{R(),is(),ls(),us=function(e){I(t,e);function t(t){var n=e.call(this)||this;return n.destroyed=!1,n.cfg=G(n.getDefaultCfg(),t),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(e){return this.cfg[e]},t.prototype.set=function(e,t){this.cfg[e]=t},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(rs)})),fs=r({BotInfo:()=>ws,BrowserInfo:()=>xs,NodeInfo:()=>Ss,ReactNativeInfo:()=>Ts,SearchBotDeviceInfo:()=>Cs,browserName:()=>hs,detect:()=>ps,detectOS:()=>_s,getNodeVersion:()=>vs,parseUserAgent:()=>gs});function ps(e){return e?gs(e):typeof document>`u`&&typeof navigator<`u`&&navigator.product===`ReactNative`?new Ts:typeof navigator<`u`?gs(navigator.userAgent):vs()}function ms(e){return e!==``&&ks.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var a=i.exec(e);return!!a&&[r,a]},!1)}function hs(e){var t=ms(e);return t?t[0]:null}function gs(e){var t=ms(e);if(!t)return null;var n=t[0],r=t[1];if(n===`searchbot`)return new ws;var i=r[1]&&r[1].split(`.`).join(`_`).split(`_`).slice(0,3);i?i.length{bs=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r=0?Math.round(e):e%.5==0?Math.floor(e):Math.round(e)}var Ns,Ps,Fs=t((()=>{Ns=typeof Float32Array<`u`?Float32Array:Array,Ps=Math.random,Math.PI/180,180/Math.PI})),Is=r({add:()=>sc,adjoint:()=>Ks,clone:()=>zs,copy:()=>Bs,create:()=>Ls,determinant:()=>qs,equals:()=>fc,exactEquals:()=>dc,frob:()=>oc,fromMat2d:()=>tc,fromMat4:()=>Rs,fromQuat:()=>nc,fromRotation:()=>$s,fromScaling:()=>ec,fromTranslation:()=>Qs,fromValues:()=>Vs,identity:()=>Us,invert:()=>Gs,mul:()=>pc,multiply:()=>Js,multiplyScalar:()=>lc,multiplyScalarAndAdd:()=>uc,normalFromMat4:()=>rc,projection:()=>ic,rotate:()=>Xs,scale:()=>Zs,set:()=>Hs,str:()=>ac,sub:()=>mc,subtract:()=>cc,translate:()=>Ys,transpose:()=>Ws});function Ls(){var e=new Ns(9);return Ns!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Rs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function zs(e){var t=new Ns(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function Bs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Vs(e,t,n,r,i,a,o,s,c){var l=new Ns(9);return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Hs(e,t,n,r,i,a,o,s,c,l){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=c,e[8]=l,e}function Us(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function Ws(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function Gs(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,e[0]=d*m,e[1]=(-u*r+i*l)*m,e[2]=(s*r-i*o)*m,e[3]=f*m,e[4]=(u*n-i*c)*m,e[5]=(-s*n+i*a)*m,e[6]=p*m,e[7]=(-l*n+r*c)*m,e[8]=(o*n-r*a)*m,e):null}function Ks(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];return e[0]=o*u-s*l,e[1]=i*l-r*u,e[2]=r*s-i*o,e[3]=s*c-a*u,e[4]=n*u-i*c,e[5]=i*a-n*s,e[6]=a*l-o*c,e[7]=r*c-n*l,e[8]=n*o-r*a,e}function qs(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*(l*a-o*c)+n*(-l*i+o*s)+r*(c*i-a*s)}function Js(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1],m=n[2],h=n[3],g=n[4],_=n[5],v=n[6],y=n[7],b=n[8];return e[0]=f*r+p*o+m*l,e[1]=f*i+p*s+m*u,e[2]=f*a+p*c+m*d,e[3]=h*r+g*o+_*l,e[4]=h*i+g*s+_*u,e[5]=h*a+g*c+_*d,e[6]=v*r+y*o+b*l,e[7]=v*i+y*s+b*u,e[8]=v*a+y*c+b*d,e}function Ys(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=f*r+p*o+l,e[7]=f*i+p*s+u,e[8]=f*a+p*c+d,e}function Xs(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=Math.sin(n),p=Math.cos(n);return e[0]=p*r+f*o,e[1]=p*i+f*s,e[2]=p*a+f*c,e[3]=p*o-f*r,e[4]=p*s-f*i,e[5]=p*c-f*a,e[6]=l,e[7]=u,e[8]=d,e}function Zs(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Qs(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function $s(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function ec(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function tc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function nc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[3]=u-_,e[6]=f+g,e[1]=u+_,e[4]=1-l-m,e[7]=p-h,e[2]=f-g,e[5]=p+h,e[8]=1-l-d,e}function rc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14],_=t[15],v=n*s-r*o,y=n*c-i*o,b=n*l-a*o,x=r*c-i*s,S=r*l-a*s,C=i*l-a*c,w=u*h-d*m,T=u*g-f*m,E=u*_-p*m,D=d*g-f*h,O=d*_-p*h,k=f*_-p*g,A=v*k-y*O+b*D+x*E-S*T+C*w;return A?(A=1/A,e[0]=(s*k-c*O+l*D)*A,e[1]=(c*E-o*k-l*T)*A,e[2]=(o*O-s*E+l*w)*A,e[3]=(i*O-r*k-a*D)*A,e[4]=(n*k-i*E+a*T)*A,e[5]=(r*E-n*O-a*w)*A,e[6]=(h*C-g*S+_*x)*A,e[7]=(g*b-m*C-_*y)*A,e[8]=(m*S-h*b+_*v)*A,e):null}function ic(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function ac(e){return`mat3(`+e[0]+`, `+e[1]+`, `+e[2]+`, `+e[3]+`, `+e[4]+`, `+e[5]+`, `+e[6]+`, `+e[7]+`, `+e[8]+`)`}function oc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]+e[3]*e[3]+e[4]*e[4]+e[5]*e[5]+e[6]*e[6]+e[7]*e[7]+e[8]*e[8])}function sc(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e}function cc(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}function lc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e}function uc(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e}function dc(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}function fc(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=t[0],f=t[1],p=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7],y=t[8];return Math.abs(n-d)<=1e-6*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=1e-6*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-p)<=1e-6*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-m)<=1e-6*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(o-h)<=1e-6*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-g)<=1e-6*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(c-_)<=1e-6*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-v)<=1e-6*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-y)<=1e-6*Math.max(1,Math.abs(u),Math.abs(y))}var pc,mc,hc=t((()=>{Fs(),pc=Js,mc=cc})),gc=r({add:()=>Cc,angle:()=>$c,bezier:()=>Gc,ceil:()=>Dc,clone:()=>vc,copy:()=>xc,create:()=>_c,cross:()=>Vc,dist:()=>sl,distance:()=>Pc,div:()=>ol,divide:()=>Ec,dot:()=>Bc,equals:()=>rl,exactEquals:()=>nl,floor:()=>Oc,forEach:()=>dl,fromValues:()=>bc,hermite:()=>Wc,inverse:()=>Rc,len:()=>ll,length:()=>yc,lerp:()=>Hc,max:()=>Ac,min:()=>kc,mul:()=>al,multiply:()=>Tc,negate:()=>Lc,normalize:()=>zc,random:()=>Kc,rotateX:()=>Xc,rotateY:()=>Zc,rotateZ:()=>Qc,round:()=>jc,scale:()=>Mc,scaleAndAdd:()=>Nc,set:()=>Sc,slerp:()=>Uc,sqrDist:()=>cl,sqrLen:()=>ul,squaredDistance:()=>Fc,squaredLength:()=>Ic,str:()=>tl,sub:()=>il,subtract:()=>wc,transformMat3:()=>Jc,transformMat4:()=>qc,transformQuat:()=>Yc,zero:()=>el});function _c(){var e=new Ns(3);return Ns!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function vc(e){var t=new Ns(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function yc(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function bc(e,t,n){var r=new Ns(3);return r[0]=e,r[1]=t,r[2]=n,r}function xc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Sc(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function Cc(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function wc(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Tc(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function Ec(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function Dc(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function Oc(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function kc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function Ac(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function jc(e,t){return e[0]=Ms(t[0]),e[1]=Ms(t[1]),e[2]=Ms(t[2]),e}function Mc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Nc(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function Pc(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function Fc(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function Ic(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function Lc(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Rc(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function zc(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Bc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Vc(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}function Hc(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}function Uc(e,t,n,r){var i=Math.acos(Math.min(Math.max(Bc(t,n),-1),1)),a=Math.sin(i),o=Math.sin((1-r)*i)/a,s=Math.sin(r*i)/a;return e[0]=o*t[0]+s*n[0],e[1]=o*t[1]+s*n[1],e[2]=o*t[2]+s*n[2],e}function Wc(e,t,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,l=o*(a-1),u=o*(3-2*a);return e[0]=t[0]*s+n[0]*c+r[0]*l+i[0]*u,e[1]=t[1]*s+n[1]*c+r[1]*l+i[1]*u,e[2]=t[2]*s+n[2]*c+r[2]*l+i[2]*u,e}function Gc(e,t,n,r,i,a){var o=1-a,s=o*o,c=a*a,l=s*o,u=3*a*s,d=3*c*o,f=c*a;return e[0]=t[0]*l+n[0]*u+r[0]*d+i[0]*f,e[1]=t[1]*l+n[1]*u+r[1]*d+i[1]*f,e[2]=t[2]*l+n[2]*u+r[2]*d+i[2]*f,e}function Kc(e,t){t=t===void 0?1:t;var n=Ps()*2*Math.PI,r=Ps()*2-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e}function qc(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o||=1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function Jc(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function Yc(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],c=t[1],l=t[2],u=i*l-a*c,d=a*s-r*l,f=r*c-i*s;return u+=u,d+=d,f+=f,e[0]=s+o*u+i*f-a*d,e[1]=c+o*d+a*u-r*f,e[2]=l+o*f+r*d-i*u,e}function Xc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function Zc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function Qc(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function $c(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2],c=Math.sqrt((n*n+r*r+i*i)*(a*a+o*o+s*s)),l=c&&Bc(e,t)/c;return Math.acos(Math.min(Math.max(l,-1),1))}function el(e){return e[0]=0,e[1]=0,e[2]=0,e}function tl(e){return`vec3(`+e[0]+`, `+e[1]+`, `+e[2]+`)`}function nl(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function rl(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2];return Math.abs(n-a)<=1e-6*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=1e-6*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=1e-6*Math.max(1,Math.abs(i),Math.abs(s))}var il,al,ol,sl,cl,ll,ul,dl,fl=t((()=>{Fs(),il=wc,al=Tc,ol=Ec,sl=Pc,cl=Fc,ll=yc,ul=Ic,dl=function(){var e=_c();return function(t,n,r,i,a,o){var s,c;for(n||=3,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;syl,angle:()=>Kl,ceil:()=>Cl,clone:()=>hl,copy:()=>_l,create:()=>ml,cross:()=>Rl,dist:()=>nu,distance:()=>Al,div:()=>tu,divide:()=>Sl,dot:()=>Ll,equals:()=>Zl,exactEquals:()=>Xl,floor:()=>wl,forEach:()=>au,fromValues:()=>gl,inverse:()=>Fl,len:()=>Ql,length:()=>Ml,lerp:()=>zl,max:()=>El,min:()=>Tl,mul:()=>eu,multiply:()=>xl,negate:()=>Pl,normalize:()=>Il,random:()=>Bl,rotate:()=>Gl,round:()=>Dl,scale:()=>Ol,scaleAndAdd:()=>kl,set:()=>vl,signedAngle:()=>ql,sqrDist:()=>ru,sqrLen:()=>iu,squaredDistance:()=>jl,squaredLength:()=>Nl,str:()=>Yl,sub:()=>$l,subtract:()=>bl,transformMat2:()=>Vl,transformMat2d:()=>Hl,transformMat3:()=>Ul,transformMat4:()=>Wl,zero:()=>Jl});function ml(){var e=new Ns(2);return Ns!=Float32Array&&(e[0]=0,e[1]=0),e}function hl(e){var t=new Ns(2);return t[0]=e[0],t[1]=e[1],t}function gl(e,t){var n=new Ns(2);return n[0]=e,n[1]=t,n}function _l(e,t){return e[0]=t[0],e[1]=t[1],e}function vl(e,t,n){return e[0]=t,e[1]=n,e}function yl(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function bl(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function xl(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Sl(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Cl(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function wl(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function Tl(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function El(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function Dl(e,t){return e[0]=Ms(t[0]),e[1]=Ms(t[1]),e}function Ol(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function kl(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Al(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}function jl(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function Ml(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)}function Nl(e){var t=e[0],n=e[1];return t*t+n*n}function Pl(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Fl(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function Il(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function Ll(e,t){return e[0]*t[0]+e[1]*t[1]}function Rl(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}function zl(e,t,n,r){var i=t[0],a=t[1];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e}function Bl(e,t){t=t===void 0?1:t;var n=Ps()*2*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e}function Vl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e}function Hl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ul(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e}function Wl(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e}function Gl(e,t,n,r){var i=t[0]-n[0],a=t[1]-n[1],o=Math.sin(r),s=Math.cos(r);return e[0]=i*s-a*o+n[0],e[1]=i*o+a*s+n[1],e}function Kl(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(Math.atan2(r*i-n*a,n*i+r*a))}function ql(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.atan2(n*a-r*i,n*i+r*a)}function Jl(e){return e[0]=0,e[1]=0,e}function Yl(e){return`vec2(`+e[0]+`, `+e[1]+`)`}function Xl(e,t){return e[0]===t[0]&&e[1]===t[1]}function Zl(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(n-i)<=1e-6*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=1e-6*Math.max(1,Math.abs(r),Math.abs(a))}var Ql,$l,eu,tu,nu,ru,iu,au,ou=t((()=>{Fs(),Ql=Ml,$l=bl,eu=xl,tu=Sl,nu=Al,ru=jl,iu=Nl,au=function(){var e=ml();return function(t,n,r,i,a,o){var s,c;for(n||=2,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s{hc(),ou(),fl()})),cu=r({angleTo:()=>hu,direction:()=>mu,leftRotate:()=>uu,leftScale:()=>du,leftTranslate:()=>lu,transform:()=>pu,vertical:()=>gu});function lu(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return Qs(r,n),Js(e,r,t)}function uu(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return $s(r,n),Js(e,r,t)}function du(e,t,n){var r=[0,0,0,0,0,0,0,0,0];return ec(r,n),Js(e,r,t)}function fu(e,t,n){return Js(e,n,t)}function pu(e,t){for(var n=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,i=t.length;r=0;return n?i?Math.PI*2-r:r:i?r:Math.PI*2-r}function gu(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}var _u=t((()=>{su()})),vu=r({ext:()=>cu,mat3:()=>Is,vec2:()=>pl,vec3:()=>gc}),yu=t((()=>{su(),_u()}));function bu(e,t){var n=[],r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],d=e[8],f=t[0],p=t[1],m=t[2],h=t[3],g=t[4],_=t[5],v=t[6],y=t[7],b=t[8];return n[0]=f*r+p*o+m*l,n[1]=f*i+p*s+m*u,n[2]=f*a+p*c+m*d,n[3]=h*r+g*o+_*l,n[4]=h*i+g*s+_*u,n[5]=h*a+g*c+_*d,n[6]=v*r+y*o+b*l,n[7]=v*i+y*s+b*u,n[8]=v*a+y*c+b*d,n}function xu(e,t){var n=[],r=t[0],i=t[1];return n[0]=e[0]*r+e[3]*i+e[6],n[1]=e[1]*r+e[4]*i+e[7],n}function Su(e){var t=[],n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,t[0]=d*m,t[1]=(-u*r+i*l)*m,t[2]=(s*r-i*o)*m,t[3]=f*m,t[4]=(u*n-i*c)*m,t[5]=(-s*n+i*a)*m,t[6]=p*m,t[7]=(-l*n+r*c)*m,t[8]=(o*n-r*a)*m,t):null}var Cu=t((()=>{}));function wu(e){for(var t=[],n=0;ne.delay&&H(t.toAttrs,function(t,n){a.call(e.toAttrs,n)&&(delete e.toAttrs[n],delete e.fromAttrs[n])})}),e}var Ou,ku,Au,ju,Mu,Nu,Pu,Fu=t((()=>{R(),J(),yu(),ls(),Cu(),ds(),Ou=pu,ku=`matrix`,Au=[`zIndex`,`capture`,`visible`,`type`],ju=[`repeat`],Mu=`:`,Nu=`*`,Pu=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.attrs={};var r=n.getDefaultAttrs();return G(r,t.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set(`animable`,!0),this.set(`animating`,!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get(`parent`)},t.prototype.getCanvas=function(){return this.get(`canvas`)},t.prototype.attr=function(){for(var e,t=[],n=0;n0?n=Du(n,_):t.addAnimator(this),n.push(_),this.set(`animations`,n),this.set(`_pause`,{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;e===void 0&&(e=!0),H(this.get(`animations`),function(n){e&&(n.onFrame?t.attr(n.onFrame(1)):t.attr(n.toAttrs)),n.callback&&n.callback()}),this.set(`animating`,!1),this.set(`animations`,[])},t.prototype.pauseAnimate=function(){var e=this.get(`timeline`),t=this.get(`animations`),n=e.getTime();return H(t,function(e){e._paused=!0,e._pauseTime=n,e.pauseCallback&&e.pauseCallback()}),this.set(`_pause`,{isPaused:!0,pauseTime:n}),this},t.prototype.resumeAnimate=function(){var e=this.get(`timeline`).getTime(),t=this.get(`animations`),n=this.get(`_pause`).pauseTime;return H(t,function(t){t.startTime+=e-n,t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()}),this.set(`_pause`,{isPaused:!1}),this.set(`animations`,t),this},t.prototype.emitDelegation=function(e,t){var n=this,r=t.propagationPath;this.getEvents();var i;e===`mouseenter`?i=t.fromShape:e===`mouseleave`&&(i=t.toShape);for(var a=function(e){var a=r[e],s=a.get(`name`);if(s){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&i&&os(a,i))return`break`;V(s)?H(s,function(e){n.emitDelegateEvent(a,e,t)}):o.emitDelegateEvent(a,s,t)}},o=this,s=0;s{R(),Fu(),ls(),Bu={},Vu=`_INDEX`,Hu=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(e){return e.get(`visible`)&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return i.length>0?H(i,function(i){var a=i.getBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;ot&&(t=s),cr&&(r=l)}):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(e){return e.get(`visible`)&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return i.length>0?H(i,function(i){var a=i.getCanvasBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;ot&&(t=s),cr&&(r=l)}):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,n,r){if(e.prototype.onAttrChange.call(this,t,n,r),t===`matrix`){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},t.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},t.prototype._applyChildrenMarix=function(e){H(this.getChildren(),function(t){t.applyMatrix(e)})},t.prototype.addShape=function(){var e=[...arguments],t=e[0],n=e[1];ln(t)?n=t:n.type=t;var r=Bu[n.type];r||(r=ji(n.type),Bu[n.type]=r);var i=new(this.getShapeBase())[r](n);return this.add(i),i},t.prototype.addGroup=function(){var e=[...arguments],t=e[0],n=e[1],r;if(z(t))r=n?new t(n):new t({parent:this});else{var i=t||{};r=new(this.getGroupBase())(i)}return this.add(r),r},t.prototype.getCanvas=function(){return this.isCanvas()?this:this.get(`canvas`)},t.prototype.getShape=function(e,t,n){if(!ss(this))return null;var r=this.getChildren(),i;if(this.isCanvas())i=this._findShape(r,e,t,n);else{var a=[e,t,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},t.prototype._findShape=function(e,t,n,r){for(var i=null,a=e.length-1;a>=0;a--){var o=e[a];if(ss(o)&&(o.isGroup()?i=o.getShape(t,n,r):o.isHit(t,n)&&(i=o)),i)break}return i},t.prototype.add=function(e){var t=this.getCanvas(),n=this.getChildren(),r=this.get(`timeline`),i=e.getParent();i&&Ru(i,e,!1),e.set(`parent`,this),t&&Iu(e,t),r&&Lu(e,r),n.push(e),e.onCanvasChange(`add`),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get(`children`)||[]},t.prototype.sort=function(){var e=this.getChildren();H(e,function(e,t){return e[Vu]=t,e}),e.sort(zu(function(e,t){return e.get(`zIndex`)-t.get(`zIndex`)})),this.onCanvasChange(`sort`)},t.prototype.clear=function(){if(this.set(`clearing`,!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set(`children`,[]),this.onCanvasChange(`clear`),this.set(`clearing`,!1)}},t.prototype.destroy=function(){this.get(`destroyed`)||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){t===void 0&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[];return H(this.getChildren(),function(n){e(n)&&t.push(n),n.isGroup()&&(t=t.concat(n.findAll(e)))}),t},t.prototype.find=function(e){var t=null;return H(this.getChildren(),function(n){if(e(n)?t=n:n.isGroup()&&(t=n.find(e)),t)return!1}),t},t.prototype.findById=function(e){return this.find(function(t){return t.get(`id`)===e})},t.prototype.findByClassName=function(e){return this.find(function(t){return t.get(`className`)===e})},t.prototype.findAllByName=function(e){return this.findAll(function(t){return t.get(`name`)===e})},t}(Pu)}));function Wu(){return od||=(ld(Gu),cd.now()+sd)}function Gu(){od=0}function Ku(){this._call=this._time=this._next=null}function qu(e,t,n){var r=new Ku;return r.restart(e,t,n),r}function Ju(){Wu(),++$u;for(var e=rd,t;e;)(t=od-e._time)>=0&&e._call.call(null,t),e=e._next;--$u}function Yu(){od=(ad=cd.now())+sd,$u=ed=0;try{Ju()}finally{$u=0,Zu(),od=0}}function Xu(){var e=cd.now(),t=e-ad;t>nd&&(sd-=t,ad=e)}function Zu(){for(var e,t=rd,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rd=n);id=e,Qu(r)}function Qu(e){$u||(ed&&=clearTimeout(ed),e-od>24?(e<1/0&&(ed=setTimeout(Yu,e-cd.now()-sd)),td&&=clearInterval(td)):(td||=(ad=cd.now(),setInterval(Xu,nd)),$u=1,ld(Yu)))}var $u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud=t((()=>{$u=0,ed=0,td=0,nd=1e3,ad=0,od=0,sd=0,cd=typeof performance==`object`&&performance.now?performance:Date,ld=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},Ku.prototype=qu.prototype={constructor:Ku,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Wu():+n)+(t==null?0:+t),!this._next&&id!==this&&(id?id._next=this:rd=this,id=this),this._call=e,this._time=n,Qu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qu())}}})),dd=t((()=>{ud()}));function fd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var md=t((()=>{}));function hd(){}function gd(){return this.rgb().formatHex()}function _d(){return this.rgb().formatHex8()}function vd(){return Nd(this).formatHsl()}function yd(){return this.rgb().formatRgb()}function bd(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Wd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?xd(t):n===3?new Td(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gd.exec(e))?new Td(t[1],t[2],t[3],1):(t=Kd.exec(e))?new Td(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qd.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=Jd.exec(e))?Sd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yd.exec(e))?Md(t[1],t[2]/100,t[3]/100,1):(t=Xd.exec(e))?Md(t[1],t[2]/100,t[3]/100,t[4]):Zd.hasOwnProperty(e)?xd(Zd[e]):e===`transparent`?new Td(NaN,NaN,NaN,0):null}function xd(e){return new Td(e>>16&255,e>>8&255,e&255,1)}function Sd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Td(e,t,n,r)}function Cd(e){return e instanceof hd||(e=bd(e)),e?(e=e.rgb(),new Td(e.r,e.g,e.b,e.opacity)):new Td}function wd(e,t,n,r){return arguments.length===1?Cd(e):new Td(e,t,n,r??1)}function Td(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ed(){return`#${jd(this.r)}${jd(this.g)}${jd(this.b)}`}function Dd(){return`#${jd(this.r)}${jd(this.g)}${jd(this.b)}${jd((isNaN(this.opacity)?1:this.opacity)*255)}`}function Od(){let e=kd(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Ad(this.r)}, ${Ad(this.g)}, ${Ad(this.b)}${e===1?`)`:`, ${e})`}`}function kd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ad(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jd(e){return e=Ad(e),(e<16?`0`:``)+e.toString(16)}function Md(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fd(e,t,n,r)}function Nd(e){if(e instanceof Fd)return new Fd(e.h,e.s,e.l,e.opacity);if(e instanceof hd||(e=bd(e)),!e)return new Fd;if(e instanceof Fd)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new Fd(o,s,c,e.opacity)}function Pd(e,t,n,r){return arguments.length===1?Nd(e):new Fd(e,t,n,r??1)}function Fd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Id(e){return e=(e||0)%360,e<0?e+360:e}function Ld(e){return Math.max(0,Math.min(1,e||0))}function Rd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd=t((()=>{md(),zd=.7,Bd=1/zd,Vd=`\\s*([+-]?\\d+)\\s*`,Hd=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Ud=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Wd=/^#([0-9a-f]{3,8})$/,Gd=RegExp(`^rgb\\(${Vd},${Vd},${Vd}\\)$`),Kd=RegExp(`^rgb\\(${Ud},${Ud},${Ud}\\)$`),qd=RegExp(`^rgba\\(${Vd},${Vd},${Vd},${Hd}\\)$`),Jd=RegExp(`^rgba\\(${Ud},${Ud},${Ud},${Hd}\\)$`),Yd=RegExp(`^hsl\\(${Hd},${Ud},${Ud}\\)$`),Xd=RegExp(`^hsla\\(${Hd},${Ud},${Ud},${Hd}\\)$`),Zd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},fd(hd,bd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gd,formatHex:gd,formatHex8:_d,formatHsl:vd,formatRgb:yd,toString:yd}),fd(Td,wd,pd(hd,{brighter(e){return e=e==null?Bd:Bd**+e,new Td(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zd:zd**+e,new Td(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Td(Ad(this.r),Ad(this.g),Ad(this.b),kd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ed,formatHex:Ed,formatHex8:Dd,formatRgb:Od,toString:Od})),fd(Fd,Pd,pd(hd,{brighter(e){return e=e==null?Bd:Bd**+e,new Fd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zd:zd**+e,new Fd(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Td(Rd(e>=240?e-240:e+120,i,r),Rd(e,i,r),Rd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Fd(Id(this.h),Ld(this.s),Ld(this.l),kd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=kd(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Id(this.h)}, ${Ld(this.s)*100}%, ${Ld(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),$d=t((()=>{Qd(),md()})),ef=t((()=>{})),tf=t((()=>{ef()})),nf,rf=t((()=>{nf=e=>()=>e}));function af(e,t){return function(n){return e+n*t}}function of(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function sf(e){return(e=+e)==1?cf:function(t,n){return n-t?of(t,n,e):nf(isNaN(t)?n:t)}}function cf(e,t){var n=t-e;return n?af(e,n):nf(isNaN(e)?t:e)}var lf=t((()=>{rf()})),uf,df=t((()=>{$d(),ef(),tf(),lf(),uf=(function e(t){var n=sf(t);function r(e,t){var r=n((e=wd(e)).r,(t=wd(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=cf(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function ff(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function hf(e,t){return(pf(t)?ff:gf)(e,t)}function gf(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o{jf(),mf()}));function vf(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var yf=t((()=>{}));function bf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var xf=t((()=>{}));function Sf(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Af(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Cf=t((()=>{jf()}));function wf(e){return function(){return e}}function Tf(e){return function(t){return e(t)+``}}function Ef(e,t){var n=Df.lastIndex=Of.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Df.exec(e))&&(i=Of.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:bf(r,i)})),n=Of.lastIndex;return n{xf(),Df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Of=new RegExp(Df.source,`g`)}));function Af(e,t){var n=typeof t,r;return t==null||n===`boolean`?nf(t):(n===`number`?bf:n===`string`?(r=bd(t))?(t=r,uf):Ef:t instanceof bd?uf:t instanceof Date?vf:pf(t)?ff:Array.isArray(t)?gf:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Sf:bf)(e,t)}var jf=t((()=>{$d(),df(),_f(),yf(),xf(),Cf(),kf(),rf(),mf()})),Mf=t((()=>{jf(),_f(),ef(),tf(),yf(),lf(),xf(),mf(),Cf(),kf(),df(),$d()}));function Nf(e){return+e}var Pf=t((()=>{}));function Ff(e){return e*e}function If(e){return e*(2-e)}function Lf(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Rf=t((()=>{}));function zf(e){return e*e*e}function Bf(e){return--e*e*e+1}function Vf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Hf=t((()=>{})),Uf,Wf,Gf,Kf,qf=t((()=>{Uf=3,Wf=(function e(t){t=+t;function n(e){return e**+t}return n.exponent=e,n})(Uf),Gf=(function e(t){t=+t;function n(e){return 1-(1-e)**t}return n.exponent=e,n})(Uf),Kf=(function e(t){t=+t;function n(e){return((e*=2)<=1?e**+t:2-(2-e)**t)/2}return n.exponent=e,n})(Uf)}));function Jf(e){return+e==1?1:1-Math.cos(e*Qf)}function Yf(e){return Math.sin(e*Qf)}function Xf(e){return(1-Math.cos(Zf*e))/2}var Zf,Qf,$f=t((()=>{Zf=Math.PI,Qf=Zf/2}));function ep(e){return(2**(-10*e)-.0009765625)*1.0009775171065494}var tp=t((()=>{}));function np(e){return ep(1-e)}function rp(e){return 1-ep(e)}function ip(e){return((e*=2)<=1?ep(1-e):2-ep(e-1))/2}var ap=t((()=>{tp()}));function op(e){return 1-Math.sqrt(1-e*e)}function sp(e){return Math.sqrt(1- --e*e)}function cp(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var lp=t((()=>{}));function up(e){return 1-dp(1-e)}function dp(e){return(e=+e){pp=4/11,mp=6/11,hp=8/11,gp=3/4,_p=9/11,vp=10/11,yp=15/16,bp=21/22,xp=63/64,Sp=1/pp/pp})),wp,Tp,Ep,Dp,Op=t((()=>{wp=1.70158,Tp=(function e(t){t=+t;function n(e){return(e=+e)*e*(t*(e-1)+e)}return n.overshoot=e,n})(wp),Ep=(function e(t){t=+t;function n(e){return--e*e*((e+1)*t+e)+1}return n.overshoot=e,n})(wp),Dp=(function e(t){t=+t;function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return n.overshoot=e,n})(wp)})),kp,Ap,jp,Mp,Np,Pp,Fp=t((()=>{tp(),kp=2*Math.PI,Ap=1,jp=.3,Mp=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return t*ep(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp),Np=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return 1-t*ep(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp),Pp=(function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=kp);function i(e){return((e=e*2-1)<0?t*ep(-e)*Math.sin((r-e)/n):2-t*ep(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*kp)},i.period=function(n){return e(t,n)},i})(Ap,jp)})),Ip=r({easeBack:()=>Dp,easeBackIn:()=>Tp,easeBackInOut:()=>Dp,easeBackOut:()=>Ep,easeBounce:()=>dp,easeBounceIn:()=>up,easeBounceInOut:()=>fp,easeBounceOut:()=>dp,easeCircle:()=>cp,easeCircleIn:()=>op,easeCircleInOut:()=>cp,easeCircleOut:()=>sp,easeCubic:()=>Vf,easeCubicIn:()=>zf,easeCubicInOut:()=>Vf,easeCubicOut:()=>Bf,easeElastic:()=>Np,easeElasticIn:()=>Mp,easeElasticInOut:()=>Pp,easeElasticOut:()=>Np,easeExp:()=>ip,easeExpIn:()=>np,easeExpInOut:()=>ip,easeExpOut:()=>rp,easeLinear:()=>Nf,easePoly:()=>Kf,easePolyIn:()=>Wf,easePolyInOut:()=>Kf,easePolyOut:()=>Gf,easeQuad:()=>Lf,easeQuadIn:()=>Ff,easeQuadInOut:()=>Lf,easeQuadOut:()=>If,easeSin:()=>Xf,easeSinIn:()=>Jf,easeSinInOut:()=>Xf,easeSinOut:()=>Yf}),Lp=t((()=>{Pf(),Rf(),Hf(),qf(),$f(),ap(),lp(),Cp(),Op(),Fp()}));function Rp(e){return Bp[e.toLowerCase()]||Ip[e]}function zp(e,t){Bp[e.toLowerCase()]=t}var Bp,Vp=t((()=>{Lp(),Bp={}})),Hp,Up,Wp=t((()=>{Hp=function(e){return[`fill`,`stroke`,`fillStyle`,`strokeStyle`].includes(e)},Up=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}}));function Gp(e,t,n){var r={},i=t.fromAttrs,a=t.toAttrs;if(!e.destroyed){var o;for(var s in a)if(!Oa(i[s],a[s]))if(s===`path`){var c=a[s],l=i[s];c.length>l.length?(c=xo(a[s]),l=xo(i[s]),l=Jo(l,c),l=Yo(l,c),t.fromAttrs.path=l,t.toAttrs.path=c):t.pathFormatted||=(c=xo(a[s]),l=xo(i[s]),l=Yo(l,c),t.fromAttrs.path=l,t.toAttrs.path=c,!0),r[s]=[];for(var u=0;u{J(),dd(),Mf(),Vp(),Xo(),Wp(),qp=[1,0,0,0,1,0,0,0,1],Jp=function(){function e(e){this.animators=[],this.current=0,this.timer=null,this.canvas=e}return e.prototype.initTimer=function(){var e=this,t=!1,n,r,i;this.timer=qu(function(a){if(e.current=a,e.animators.length>0){for(var o=e.animators.length-1;o>=0;o--){if(n=e.animators[o],n.destroyed){e.removeAnimator(o);continue}if(!n.isAnimatePaused()){r=n.get(`animations`);for(var s=r.length-1;s>=0;s--)i=r[s],t=Kp(n,i,a),t&&(r.splice(s,1),t=!1,i.callback&&i.callback())}r.length===0&&e.removeAnimator(o)}e.canvas.get(`autoDraw`)||e.canvas.draw()}})},e.prototype.addAnimator=function(e){this.animators.push(e)},e.prototype.removeAnimator=function(e){this.animators.splice(e,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}()}));function Xp(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function Zp(e,t,n){if(n.bubbles){var r=void 0,i=!1;if(t===`mouseenter`?(r=n.fromShape,i=!0):t===`mouseleave`&&(i=!0,r=n.toShape),e.isCanvas()&&i)return;if(r&&os(e,r)){n.bubbles=!1;return}n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var Qp,$p,em,tm,nm=t((()=>{es(),ls(),Qp=40,$p=0,em=[`mousedown`,`mouseup`,`dblclick`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`mouseenter`,`touchstart`,`touchmove`,`touchend`,`dragenter`,`dragover`,`dragleave`,`drop`,`contextmenu`,`mousewheel`],tm=function(){function e(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){if(t.canvas.get(`el`)!==e.target&&(t.dragging||t.currentShape)){var n=t._getPointInfo(e);t.dragging&&t._emitEvent(`drag`,e,n,t.draggingShape)}},this._onDocumentMouseUp=function(e){if(t.canvas.get(`el`)!==e.target&&t.dragging){var n=t._getPointInfo(e);t.draggingShape&&t._emitEvent(`drop`,e,n,null),t._emitEvent(`dragend`,e,n,t.draggingShape),t._afterDrag(t.draggingShape,n,e)}},this.canvas=e.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var e=this,t=this.canvas.get(`el`);H(em,function(n){t.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener(`mousemove`,this._onDocumentMove),document.addEventListener(`mouseup`,this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var e=this,t=this.canvas.get(`el`);H(em,function(n){t.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener(`mousemove`,this._onDocumentMove),document.removeEventListener(`mouseup`,this._onDocumentMouseUp))},e.prototype._getEventObj=function(e,t,n,r,i,a){var o=new $o(e,t);return o.fromShape=i,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},e.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},e.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),r=t.getPointByEvent(e);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),r=this._getShape(n,t),i=this[`_on`+e],a=!1;if(i)i.call(this,n,r,t);else{var o=this.currentShape;e===`mouseenter`||e===`dragenter`||e===`mouseover`?(this._emitEvent(e,t,n,null,null,r),r&&this._emitEvent(e,t,n,r,null,r),e===`mouseenter`&&this.draggingShape&&this._emitEvent(`dragenter`,t,n,null)):e===`mouseleave`||e===`dragleave`||e===`mouseout`?(a=!0,o&&this._emitEvent(e,t,n,o,o,null),this._emitEvent(e,t,n,null,o,null),e===`mouseleave`&&this.draggingShape&&this._emitEvent(`dragleave`,t,n,null)):this._emitEvent(e,t,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get(`destroyed`)){var s=this.canvas,c=s.get(`el`);c.style.cursor=r.attr(`cursor`)||s.get(`cursor`)}},e.prototype._onmousedown=function(e,t,n){n.button===$p&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent(`mousedown`,n,e,t,null,null)},e.prototype._emitMouseoverEvents=function(e,t,n,r){var i=this.canvas.get(`el`);n!==r&&(n&&(this._emitEvent(`mouseout`,e,t,n,n,r),this._emitEvent(`mouseleave`,e,t,n,n,r),(!r||r.get(`destroyed`))&&(i.style.cursor=this.canvas.get(`cursor`))),r&&(this._emitEvent(`mouseover`,e,t,r,n,r),this._emitEvent(`mouseenter`,e,t,r,n,r)))},e.prototype._emitDragoverEvents=function(e,t,n,r,i){r?(r!==n&&(n&&this._emitEvent(`dragleave`,e,t,n,n,r),this._emitEvent(`dragenter`,e,t,r,n,r)),i||this._emitEvent(`dragover`,e,t,r)):n&&this._emitEvent(`dragleave`,e,t,n,n,r),i&&this._emitEvent(`dragover`,e,t,r)},e.prototype._afterDrag=function(e,t,n){e&&(e.set(`capture`,!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(t,n);r!==e&&this._emitMouseoverEvents(n,t,e,r),this.currentShape=r},e.prototype._onmouseup=function(e,t,n){if(n.button===$p){var r=this.draggingShape;this.dragging?(r&&this._emitEvent(`drop`,n,e,t),this._emitEvent(`dragend`,n,e,r),this._afterDrag(r,e,n)):(this._emitEvent(`mouseup`,n,e,t),t===this.mousedownShape&&this._emitEvent(`click`,n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(e,t,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,e,r,t,!0)},e.prototype._onmousemove=function(e,t,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,e,i,t,!1),this._emitEvent(`drag`,n,e,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-e.clientX,u=o.clientY-e.clientY,d=l*l+u*u;c>120||d>Qp?s&&s.get(`draggable`)?(a=this.mousedownShape,a.set(`capture`,!1),this.draggingShape=a,this.dragging=!0,this._emitEvent(`dragstart`,n,e,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get(`draggable`)?(this.dragging=!0,this._emitEvent(`dragstart`,n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t)):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t))}else this._emitMouseoverEvents(n,e,i,t),this._emitEvent(`mousemove`,n,e,t)}},e.prototype._emitEvent=function(e,t,n,r,i,a){var o=this._getEventObj(e,t,n,r,i,a);if(r){o.shape=r,Xp(r,e,o);for(var s=r.getParent();s;)s.emitDelegation(e,o),o.propagationStopped||Zp(s,e,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;Xp(c,e,o)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}()})),rm,im,am,om,sm=t((()=>{R(),js(),Uu(),ls(),Yp(),nm(),rm=`px`,im=ps(),am=im&&im.name===`firefox`,om=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor=`default`,t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get(`container`);U(e)&&(e=document.getElementById(e),this.set(`container`,e))},t.prototype.initDom=function(){var e=this.createDom();this.set(`el`,e),this.get(`container`).appendChild(e),this.setDOMSize(this.get(`width`),this.get(`height`))},t.prototype.initEvents=function(){var e=new tm({canvas:this});e.init(),this.set(`eventController`,e)},t.prototype.initTimeline=function(){var e=new Jp(this);this.set(`timeline`,e)},t.prototype.setDOMSize=function(e,t){var n=this.get(`el`);cs&&(n.style.width=e+rm,n.style.height=t+rm)},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set(`width`,e),this.set(`height`,t),this.onCanvasChange(`changeSize`)},t.prototype.getRenderer=function(){return this.get(`renderer`)},t.prototype.getCursor=function(){return this.get(`cursor`)},t.prototype.setCursor=function(e){this.set(`cursor`,e);var t=this.get(`el`);cs&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get(`supportCSSTransform`)){if(am&&!B(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!B(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),n=t.x,r=t.y;return this.getPointByClient(n,r)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t=e.type===`touchend`?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var n=this.get(`el`).getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getClientByPoint=function(e,t){var n=this.get(`el`).getBoundingClientRect();return{x:e+n.left,y:t+n.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get(`eventController`).destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get(`timeline`);this.get(`destroyed`)||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(Hu)})),cm,lm=t((()=>{R(),Uu(),cm=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=this.getChildren(),r=0;r{R(),Fu(),Cu(),um=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype._isInBBox=function(e,t){var n=this.getBBox();return n.minX<=e&&n.maxX>=e&&n.minY<=t&&n.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set(`bbox`,e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set(`canvasBBox`,e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set(`canvasBBox`,null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),n=e.minX,r=e.minY,i=e.maxX,a=e.maxY;if(t){var o=xu(t,[e.minX,e.minY]),s=xu(t,[e.maxX,e.minY]),c=xu(t,[e.minX,e.maxY]),l=xu(t,[e.maxX,e.maxY]);n=Math.min(o[0],s[0],c[0],l[0]),i=Math.max(o[0],s[0],c[0],l[0]),r=Math.min(o[1],s[1],c[1],l[1]),a=Math.max(o[1],s[1],c[1],l[1])}var u=this.attrs;if(u.shadowColor){var d=u.shadowBlur,f=d===void 0?0:d,p=u.shadowOffsetX,m=p===void 0?0:p,h=u.shadowOffsetY,g=h===void 0?0:h,_=n-f+m,v=i+f+m,y=r-f+g,b=a+f+g;n=Math.min(n,_),i=Math.max(i,v),r=Math.min(r,y),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},t.prototype.clearCacheBBox=function(){this.set(`bbox`,null),this.set(`canvasBBox`,null)},t.prototype.isClipShape=function(){return this.get(`isClipShape`)},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var n=this.get(`startArrowShape`),r=this.get(`endArrowShape`),i=[e,t,1];i=this.invertFromMatrix(i);var a=i[0],o=i[1],s=this._isInBBox(a,o);return this.isOnlyHitBox()?s:!!(s&&!this.isClipped(a,o)&&(this.isInShape(a,o)||n&&n.isHit(a,o)||r&&r.isHit(a,o)))},t}(Pu)}));function fm(e,t){mm.set(e,t)}function pm(e){return mm.get(e)}var mm,hm=t((()=>{mm=new Map}));function gm(e){var t=e.attr();return{x:t.x,y:t.y,width:t.width,height:t.height}}var _m=t((()=>{}));function vm(e){var t=e.attr(),n=t.x,r=t.y,i=t.r;return{x:n-i,y:r-i,width:i*2,height:i*2}}var ym=t((()=>{})),bm=r({distance:()=>xm,getBBoxByArray:()=>Cm,getBBoxRange:()=>wm,isNumberEqual:()=>Sm,piMod:()=>Tm});function xm(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}function Sm(e,t){return Math.abs(e-t)<.001}function Cm(e,t){var n=Mn(e),r=Mn(t),i=An(e),a=An(t);return{x:n,y:r,width:i-n,height:a-r}}function wm(e,t,n,r){return{minX:Mn([e,n]),maxX:An([e,n]),minY:Mn([t,r]),maxY:An([t,r])}}function Tm(e){return(e+Math.PI*2)%(Math.PI*2)}var Em=t((()=>{J()})),Dm,Om=t((()=>{Em(),ou(),Dm={box:function(e,t,n,r){return Cm([e,n],[t,r])},length:function(e,t,n,r){return xm(e,t,n,r)},pointAt:function(e,t,n,r,i){return{x:(1-i)*e+i*n,y:(1-i)*t+i*r}},pointDistance:function(e,t,n,r,i,a){var o=(n-e)*(i-e)+(r-t)*(a-t);return o<0?xm(e,t,i,a):o>(n-e)*(n-e)+(r-t)*(r-t)?xm(n,r,i,a):this.pointToLine(e,t,n,r,i,a)},pointToLine:function(e,t,n,r,i,a){var o=[n-e,r-t];if(Xl(o,[0,0]))return Math.sqrt((i-e)*(i-e)+(a-t)*(a-t));var s=[-o[1],o[0]];Il(s,s);var c=[i-e,a-t];return Math.abs(Ll(c,s))},tangentAngle:function(e,t,n,r){return Math.atan2(r-t,n-e)}}}));function km(e,t,n,r,i,a){var o,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,d=u/10,f=0;f<=l;f++){var p=f*u,m=[i.apply(null,e.concat([p])),i.apply(null,t.concat([p]))],h=xm(c[0],c[1],m[0],m[1]);h=0&&h{Em(),jm=1e-4}));function Nm(e,t,n,r){var i=1-r;return i*i*e+2*r*i*t+r*r*n}function Pm(e,t,n){var r=e+n-2*t;if(Sm(r,0))return[.5];var i=(e-t)/r;return i<=1&&i>=0?[i]:[]}function Fm(e,t,n,r){return 2*(1-r)*(t-e)+2*r*(n-t)}function Im(e,t,n,r,i,a,o){var s=Nm(e,n,i,o),c=Nm(t,r,a,o),l=Dm.pointAt(e,t,n,r,o),u=Dm.pointAt(n,r,i,a,o);return[[e,t,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function Lm(e,t,n,r,i,a,o){if(o===0)return(xm(e,t,n,r)+xm(n,r,i,a)+xm(e,t,i,a))/2;var s=Im(e,t,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),Lm.apply(null,c)+Lm.apply(null,l)}var Rm,zm=t((()=>{Om(),Em(),Mm(),Rm={box:function(e,t,n,r,i,a){var o=Pm(e,n,i)[0],s=Pm(t,r,a)[0],c=[e,i],l=[t,a];return o!==void 0&&c.push(Nm(e,n,i,o)),s!==void 0&&l.push(Nm(t,r,a,s)),Cm(c,l)},length:function(e,t,n,r,i,a){return Lm(e,t,n,r,i,a,3)},nearestPoint:function(e,t,n,r,i,a,o,s){return km([e,n,i],[t,r,a],o,s,Nm)},pointDistance:function(e,t,n,r,i,a,o,s){var c=this.nearestPoint(e,t,n,r,i,a,o,s);return xm(c.x,c.y,o,s)},interpolationAt:Nm,pointAt:function(e,t,n,r,i,a,o){return{x:Nm(e,n,i,o),y:Nm(t,r,a,o)}},divide:function(e,t,n,r,i,a,o){return Im(e,t,n,r,i,a,o)},tangentAngle:function(e,t,n,r,i,a,o){var s=Fm(e,n,i,o),c=Fm(t,r,a,o);return Tm(Math.atan2(c,s))}}}));function Bm(e,t,n,r,i){var a=1-i;return a*a*a*e+3*t*i*a*a+3*n*i*i*a+r*i*i*i}function Vm(e,t,n,r,i){var a=1-i;return 3*(a*a*(t-e)+2*a*i*(n-t)+i*i*(r-n))}function Hm(e,t,n,r){var i=-3*e+9*t-9*n+3*r,a=6*e-12*t+6*n,o=3*t-3*e,s=[],c,l,u;if(Sm(i,0))Sm(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var d=a*a-4*i*o;Sm(d,0)?s.push(-a/(2*i)):d>0&&(u=Math.sqrt(d),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function Um(e,t,n,r,i,a,o,s,c){var l=Bm(e,n,i,o,c),u=Bm(t,r,a,s,c),d=Dm.pointAt(e,t,n,r,c),f=Dm.pointAt(n,r,i,a,c),p=Dm.pointAt(i,a,o,s,c),m=Dm.pointAt(d.x,d.y,f.x,f.y,c),h=Dm.pointAt(f.x,f.y,p.x,p.y,c);return[[e,t,d.x,d.y,m.x,m.y,l,u],[l,u,h.x,h.y,p.x,p.y,o,s]]}function Wm(e,t,n,r,i,a,o,s,c){if(c===0)return Am([e,n,i,o],[t,r,a,s]);var l=Um(e,t,n,r,i,a,o,s,.5),u=l[0],d=l[1];return u.push(c-1),d.push(c-1),Wm.apply(null,u)+Wm.apply(null,d)}var Gm,Km=t((()=>{Em(),Om(),Mm(),Gm={extrema:Hm,box:function(e,t,n,r,i,a,o,s){for(var c=[e,o],l=[t,s],u=Hm(e,n,i,o),d=Hm(t,r,a,s),f=0;f0?n:n*-1}var Jm,Ym=t((()=>{Em(),Jm={box:function(e,t,n,r){return{x:e-n,y:t-r,width:n*2,height:r*2}},length:function(e,t,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(e,t,n,r,i,a){var o=n,s=r;if(o===0||s===0)return{x:e,y:t};for(var c=i-e,l=a-t,u=Math.abs(c),d=Math.abs(l),f=o*o,p=s*s,m=Math.PI/4,h,g,_=0;_<4;_++){h=o*Math.cos(m),g=s*Math.sin(m);var v=(f-p)*Math.cos(m)**3/o,y=(p-f)*Math.sin(m)**3/s,b=h-v,x=g-y,S=u-v,C=d-y,w=Math.hypot(x,b),T=Math.hypot(C,S),E=w*Math.asin((b*C-x*S)/(w*T))/Math.sqrt(f+p-h*h-g*g);m+=E,m=Math.min(Math.PI/2,Math.max(0,m))}return{x:e+qm(h,c),y:t+qm(g,l)}},pointDistance:function(e,t,n,r,i,a){var o=this.nearestPoint(e,t,n,r,i,a);return xm(o.x,o.y,i,a)},pointAt:function(e,t,n,r,i){var a=2*Math.PI*i;return{x:e+n*Math.cos(a),y:t+r*Math.sin(a)}},tangentAngle:function(e,t,n,r,i){var a=2*Math.PI*i;return Tm(Math.atan2(r*Math.cos(a),-n*Math.sin(a)))}}}));function Xm(e,t,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function Zm(e,t,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function Qm(e,t,n){return Math.atan(-t/e*Math.tan(n))}function $m(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function eh(e,t,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+e}function th(e,t,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+t}function nh(e,t,n,r){return(Math.atan2(r*e,n*t)+Math.PI*2)%(Math.PI*2)}function rh(e,t,n){return{x:e*Math.cos(n),y:t*Math.sin(n)}}function ih(e,t,n){var r=Math.cos(n),i=Math.sin(n);return[e*r-t*i,e*i+t*r]}var ah,oh=t((()=>{Em(),Ym(),ah={box:function(e,t,n,r,i,a,o){for(var s=Qm(n,r,i),c=1/0,l=-1/0,u=[a,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var f=s+d;al&&(l=p)}for(var m=$m(n,r,i),h=1/0,g=-1/0,_=[a,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var v=m+d;ag&&(g=y)}return{x:c,y:h,width:l-c,height:g-h}},length:function(e,t,n,r,i,a,o){},nearestPoint:function(e,t,n,r,i,a,o,s,c){var l=ih(s-e,c-t,-i),u=l[0],d=l[1],f=Jm.nearestPoint(0,0,n,r,u,d),p=nh(n,r,f.x,f.y);po&&(f=rh(n,r,o));var m=ih(f.x,f.y,i);return{x:m[0]+e,y:m[1]+t}},pointDistance:function(e,t,n,r,i,a,o,s,c){var l=this.nearestPoint(e,t,n,r,s,c);return xm(l.x,l.y,s,c)},pointAt:function(e,t,n,r,i,a,o,s){var c=(o-a)*s+a;return{x:eh(e,t,n,r,i,c),y:th(e,t,n,r,i,c)}},tangentAngle:function(e,t,n,r,i,a,o,s){var c=(o-a)*s+a,l=Xm(e,t,n,r,i,a,o,c),u=Zm(e,t,n,r,i,a,o,c);return Tm(Math.atan2(u,l))}}}));function sh(e){for(var t=0,n=[],r=0;r1||t<0||e.length<2)return null;var n=sh(e),r=n.segments,i=n.totalLength;if(i===0)return{x:e[0][0],y:e[0][1]};for(var a=0,o=null,s=0;s=a&&t<=a+d){var f=(t-a)/d;o=Dm.pointAt(l[0],l[1],u[0],u[1],f);break}a+=d}return o}function uh(e,t){if(t>1||t<0||e.length<2)return 0;for(var n=sh(e),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&t<=a+d){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=d}return o}function dh(e,t,n){for(var r=1/0,i=0;i{Om(),Em()})),ph,mh=t((()=>{fh(),Em(),ph={box:function(e){for(var t=[],n=[],r=0;r{fh(),mh(),gh={box:function(e){return ph.box(e)},length:function(e){return ch(hh(e))},pointAt:function(e,t){return lh(hh(e),t)},pointDistance:function(e,t,n){return dh(hh(e),t,n)},tangentAngle:function(e,t){return uh(hh(e),t)}}})),vh=r({Arc:()=>ah,Cubic:()=>Gm,Line:()=>Dm,Polygon:()=>gh,Polyline:()=>ph,Quad:()=>Rm,Util:()=>bm}),yh=t((()=>{zm(),Km(),oh(),Om(),_h(),mh(),Em()}));function bh(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function xh(e,t){var n=e.get(`startArrowShape`),r=e.get(`endArrowShape`),i=null,a=null;return n&&(i=n.getCanvasBBox(),t=bh(t,i)),r&&(a=r.getCanvasBBox(),t=bh(t,a)),t}var Sh=t((()=>{}));function Ch(e){for(var t=e.attr().points,n=[],r=[],i=0;i{yh(),Sh()}));function Th(e){for(var t=e.attr().points,n=[],r=[],i=0;i{yh()}));function Dh(){if(!Oh){var e=document.createElement(`canvas`);e.width=1,e.height=1,Oh=e.getContext(`2d`)}return Oh}var Oh,kh=t((()=>{Oh=null}));function Ah(e,t,n){var r=1;if(U(e)&&(r=e.split(` +`).length),r>1){var i=jh(t,n);return t*r+i*(r-1)}return t}function jh(e,t){return t?t-e:e*.14}function Mh(e,t){var n=Dh(),r=0;return B(e)||e===``?r:(n.save(),n.font=t,U(e)&&e.includes(` +`)?H(e.split(` +`),function(e){var t=n.measureText(e).width;r{ls(),kh()}));function Fh(e){var t=e.attr(),n=t.x,r=t.y,i=t.text,a=t.fontSize,o=t.lineHeight,s=t.font;s||=Nh(t);var c=Mh(i,s),l;if(!c)l={x:n,y:r,width:0,height:0};else{var u=t.textAlign,d=t.textBaseline,f=Ah(i,a,o),p={x:n,y:r-f};u&&(u===`end`||u===`right`?p.x-=c:u===`center`&&(p.x-=c/2)),d&&(d===`top`?p.y+=f:d===`middle`&&(p.y+=f/2)),l={x:p.x,y:p.y,width:c,height:f}}return l}var Ih=t((()=>{Ph()}));function Lh(e){var t=e||[];if(V(t))return t;if(U(t))return t=t.match(Rh),H(t,function(e,n){if(e=e.match(zh),e[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}H(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t}var Rh,zh,Bh=t((()=>{J(),Rh=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,zh=/[^\s\,]+/gi})),Vh=t((()=>{su()}));function Hh(e,t,n,r){var i=[],a=!!r,o,s,c,l,u,d,f;if(a){c=r[0],l=r[1];for(var p=0,m=e.length;p{Vh()}));function Gh(e,t){var n=[],r=[];function i(e,t){if(e.length===1)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(e.length===3&&t.push(`Q`),t=t.concat(e[1])),e.length===2&&t.push(`L`),t=t.concat(e[e.length-1]),t})}function qh(e,t,n){if(n===1)return[[].concat(e)];var r=[];if(t[0]===`L`||t[0]===`C`||t[0]===`Q`)r=r.concat(Kh(e,t,n));else{var i=[].concat(e);i[0]===`M`&&(i[0]=`L`);for(var a=0;a<=n-1;a++)r.push(i)}return r}function Jh(e,t){if(e.length===1)return e;var n=e.length-1,r=t.length-1,i=n/r,a=[];if(e.length===1&&e[0][0]===`M`){for(var o=0;o{}));function Xh(e,t,n){var r=null,i=n;return t=0;c--)o=a[c].index,a[c].type===`add`?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(r=e.length,r{J(),Qh=function(e,t){var n=e.length,r=t.length,i,a,o=0;if(n===0||r===0)return null;for(var s=[],c=0;c<=n;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=r;l++)s[0][l]={min:l};for(var c=1;c<=n;c++){i=e[c-1];for(var l=1;l<=r;l++){a=t[l-1],o=+!Oa(i,a);var u=s[c-1][l].min+1,d=s[c][l-1].min+1,f=s[c-1][l-1].min+o;s[c][l]=Xh(u,d,f)}}return s}}));function eg(e){var t=[];switch(e[0]){case`M`:t.push([e[1],e[2]]);break;case`L`:t.push([e[1],e[2]]);break;case`A`:t.push([e[6],e[7]]);break;case`Q`:t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case`T`:t.push([e[1],e[2]]);break;case`C`:t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case`S`:t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case`H`:t.push([e[1],e[1]]);break;case`V`:t.push([e[1],e[1]]);break;default:}return t}function tg(e,t,n){for(var r=[].concat(e),i,a=1/(n+1),o=eg(t)[0],s=1;s<=n;s++)a*=s,i=Math.floor(e.length*a),i===0?r.unshift([o[0]*a+e[i][0]*(1-a),o[1]*a+e[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+e[i][0]*(1-a),o[1]*a+e[i][1]*(1-a)]);return r}function ng(e,t){if(e.length<=1)return e;for(var n,r=0;r0)n=tg(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`Q`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`T`:e[r]=[`T`].concat(n[0]);break;case`C`:if(n.length<3)if(r>0)n=tg(n,e[r-1],2);else{e[r]=t[r];break}e[r]=[`C`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;case`S`:if(n.length<2)if(r>0)n=tg(n,e[r-1],1);else{e[r]=t[r];break}e[r]=[`S`].concat(n.reduce(function(e,t){return e.concat(t)},[]));break;default:e[r]=t[r]}return e}var rg=t((()=>{}));function ig(e,t,n,r,i){return i?[[`M`,+e+ +i,t],[`l`,n-i*2,0],[`a`,i,i,0,0,1,i,i],[`l`,0,r-i*2],[`a`,i,i,0,0,1,-i,i],[`l`,i*2-n,0],[`a`,i,i,0,0,1,-i,-i],[`l`,0,i*2-r],[`a`,i,i,0,0,1,i,-i],[`z`]]:[[`M`,e,t],[`l`,n,0],[`l`,0,r],[`l`,-n,0],[`z`]]}var ag=t((()=>{}));function og(e){if(!e)return null;if(V(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(cg,function(e,r,i){var a=[],o=r.toLowerCase();if(i.replace(lg,function(e,t){t&&a.push(+t)}),o===`m`&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o=`l`,r=r===`m`?`l`:`L`),o===`o`&&a.length===1&&n.push([r,a[0]]),o===`r`)n.push([r].concat(a));else for(;a.length>=t[o]&&(n.push([r].concat(a.splice(0,t[o]))),t[o]););return``}),n}var sg,cg,lg,ug=t((()=>{J(),sg=` +\v\f\r \xA0 ᠎              \u2028\u2029`,cg=RegExp(`([a-z])[`+sg+`,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[`+sg+`]*,?[`+sg+`]*)+)`,`ig`),lg=RegExp(`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[`+sg+`]*,?[`+sg+`]*`,`ig`)}));function dg(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function fg(e){var t=og(e);if(!t||!t.length)return[[`M`,0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return t;var a=[],o=0,s=0,c=0,l=0,u=0,d=t[0];(d[0]===`M`||d[0]===`m`)&&(o=+d[1],s=+d[2],c=o,l=s,u++,a[0]=[`M`,o,s]);for(var r=u,f=t.length;r{ug(),pg=/[a-z]/}));function hg(e,t,n,r,i,a,o,s,c){return xg({px:e,py:t,cx:s,cy:c,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce(function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.x,s=t.y;return e.push(n,r,i,a,o,s),e},[])}var gg,_g,vg,yg,bg,xg,Sg=t((()=>{gg=Math.PI*2,_g=function(e,t,n,r,i,a,o){var s=e.x,c=e.y;s*=t,c*=n;var l=r*s-i*c,u=i*s+r*c;return{x:l+a,y:u+o}},vg=function(e,t){var n=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),i=Math.sin(e),a=Math.cos(e+t),o=Math.sin(e+t);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},yg=function(e,t,n,r){var i=e*r-t*n<0?-1:1,a=e*n+t*r;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)},bg=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=i**2,p=a**2,m=u**2,h=d**2,g=f*p-f*h-p*m;g<0&&(g=0),g/=f*h+p*m,g=Math.sqrt(g)*(o===s?-1:1);var _=g*i/a*d,v=g*-a/i*u,y=l*_-c*v+(e+n)/2,b=c*_+l*v+(t+r)/2,x=(u-_)/i,S=(d-v)/a,C=(-u-_)/i,w=(-d-v)/a,T=yg(1,0,x,S),E=yg(x,S,C,w);return s===0&&E>0&&(E-=gg),s===1&&E<0&&(E+=gg),[y,b,T,E]},xg=function(e){var t=e.px,n=e.py,r=e.cx,i=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,c=s===void 0?0:s,l=e.largeArcFlag,u=l===void 0?0:l,d=e.sweepFlag,f=d===void 0?0:d,p=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var m=Math.sin(c*gg/360),h=Math.cos(c*gg/360),g=h*(t-r)/2+m*(n-i)/2,_=-m*(t-r)/2+h*(n-i)/2;if(g===0&&_===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];a=Math.abs(a),o=Math.abs(o);var v=g**2/a**2+_**2/o**2;v>1&&(a*=Math.sqrt(v),o*=Math.sqrt(v));var y=bg(t,n,r,i,a,o,u,f,m,h,g,_),b=y[0],x=y[1],S=y[2],C=y[3],w=Math.abs(C)/(gg/4);Math.abs(1-w)<1e-7&&(w=1);var T=Math.max(Math.ceil(w),1);C/=T;for(var E=0;E{}));function Tg(e,t,n,r){return[e,t,n,r,n,r]}var Eg=t((()=>{}));function Dg(e,t){`TQ`.indexOf(e[0])<0&&(t.qx=null,t.qy=null);var n=e.slice(1),r=n[0],i=n[1];switch(e[0]){case`M`:return t.x=r,t.y=i,e;case`A`:return[`C`].concat(hg.apply(0,[t.x1,t.y1].concat(e.slice(1))));case`Q`:return t.qx=r,t.qy=i,[`C`].concat(Cg.apply(0,[t.x1,t.y1].concat(e.slice(1))));case`L`:return[`C`].concat(Tg(t.x1,t.y1,e[1],e[2]));case`H`:return[`C`].concat(Tg(t.x1,t.y1,e[1],t.y1));case`V`:return[`C`].concat(Tg(t.x1,t.y1,t.x1,e[1]));case`Z`:return[`C`].concat(Tg(t.x1,t.y1,t.x,t.y));default:}return e}var Og=t((()=>{Sg(),wg(),Eg()}));function kg(e,t){t===void 0&&(t=!1);for(var n=fg(e),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],a=``,o=n.length,s,c,l=[],u=0;u7){e[n].shift();for(var r=e[n],i=n;r.length;)t[n]=`A`,e.splice(i+=1,0,[`C`].concat(r.splice(0,6)));e.splice(n,1)}}var jg=t((()=>{mg(),Og()}));function Mg(e,t){return Ug(e,t)}var Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg=t((()=>{J(),ag(),jg(),Ng=function(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n},Pg=function(e,t,n,r,i,a,o,s,c){c===null&&(c=1),c=c>1?1:c<0?0:c;for(var l=c/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,m=0;m0&&p<1&&c.push(p);continue}var h=d*d-4*f*u,g=Math.sqrt(h);if(!(h<0)){var _=(-d+g)/(2*u);_>0&&_<1&&c.push(_);var v=(-d-g)/(2*u);v>0&&v<1&&c.push(v)}}for(var y=c.length,b=y,x;y--;)p=c[y],x=1-p,l[0][y]=x*x*x*e+3*x*x*p*n+3*x*p*p*i+p*p*p*o,l[1][y]=x*x*x*t+3*x*x*p*r+3*x*p*p*a+p*p*p*s;return l[0][b]=e,l[1][b]=t,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},Ig=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)Math.max(i,o)||Math.max(t,r)Math.max(a,s))){var c=(e*r-t*n)*(i-o)-(e-n)*(i*s-a*o),l=(e*r-t*n)*(a-s)-(t-r)*(i*s-a*o),u=(e-n)*(a-s)-(t-r)*(i-o);if(u){var d=c/u,f=l/u,p=+d.toFixed(2),m=+f.toFixed(2);if(!(p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||m<+Math.min(t,r).toFixed(2)||m>+Math.max(t,r).toFixed(2)||m<+Math.min(a,s).toFixed(2)||m>+Math.max(a,s).toFixed(2)))return{x:d,y:f}}}},Lg=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},Rg=function(e,t,n,r){return e===null&&(e=t=n=r=0),t===null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:ig(e,t,n,r),vb:[e,t,n,r].join(` `)}},zg=function(e,t){return e=Rg(e),t=Rg(t),Lg(t,e.x,e.y)||Lg(t,e.x2,e.y)||Lg(t,e.x,e.y2)||Lg(t,e.x2,e.y2)||Lg(e,t.x,t.y)||Lg(e,t.x2,t.y)||Lg(e,t.x,t.y2)||Lg(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},Bg=function(e,t,n,r,i,a,o,s){V(e)||(e=[e,t,n,r,i,a,o,s]);var c=Fg.apply(null,e);return Rg(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},Vg=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=l**3,d=l**2,f=c*c,p=f*c,m=u*e+d*3*c*n+l*3*c*c*i+p*o,h=u*t+d*3*c*r+l*3*c*c*a+p*s,g=e+2*c*(n-e)+f*(i-2*n+e),_=t+2*c*(r-t)+f*(a-2*r+t),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r),b=l*e+c*n,x=l*t+c*r,S=l*i+c*o,C=l*a+c*s,w=90-Math.atan2(g-v,_-y)*180/Math.PI;return{x:m,y:h,m:{x:g,y:_},n:{x:v,y},start:{x:b,y:x},end:{x:S,y:C},alpha:w}},Hg=function(e,t,n){if(!zg(Bg(e),Bg(t)))return n?0:[];for(var r=Pg.apply(0,e),i=Pg.apply(0,t),a=~~(r/8),o=~~(i/8),s=[],c=[],l={},u=n?0:[],d=0;d=0&&x<=1&&S>=0&&S<=1&&(n?u++:u.push({x:b.x,y:b.y,t1:x,t2:S}))}}return u},Ug=function(e,t,n){e=kg(e),t=kg(t);for(var r,i,a,o,s,c,l,u,d,f,p=n?0:[],m=0,h=e.length;m{Kg=/,?([a-z]),?/gi}));function Jg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Yg(e,t){return Jg(e)*Jg(t)?(e[0]*t[0]+e[1]*t[1])/(Jg(e)*Jg(t)):1}function Xg(e,t){return(e[0]*t[1]1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var m=n*n*(f*f)+r*r*(d*d),h=m?Math.sqrt((n*n*(r*r)-m)/m):1;a===o&&(h*=-1),isNaN(h)&&(h=0);var g=r?h*n*f/r:0,_=n?h*-r*d/n:0,v=(s+l)/2+Math.cos(i)*g-Math.sin(i)*_,y=(c+u)/2+Math.sin(i)*g+Math.cos(i)*_,b=[(d-g)/n,(f-_)/r],x=[(-1*d-g)/n,(-1*f-_)/r],S=Xg([1,0],b),C=Xg(b,x);return Yg(b,x)<=-1&&(C=Math.PI),Yg(b,x)>=1&&(C=0),o===0&&C>0&&(C-=2*Math.PI),o===1&&C<0&&(C+=2*Math.PI),{cx:v,cy:y,rx:Zg(e,[l,u])?0:n,ry:Zg(e,[l,u])?0:r,startAngle:S,endAngle:S+C,xRotation:i,arcFlag:a,sweepFlag:o}}var $g=t((()=>{J()}));function e_(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function t_(e){e=Lh(e);for(var t=[],n=null,r=null,i=null,a=0,o=e.length,s=0;s{$g(),Bh()}));function r_(e,t,n,r){var i=.001,a={x:n.x-e.x,y:n.y-e.y},o={x:t.x-e.x,y:t.y-e.y},s={x:r.x-n.x,y:r.y-n.y},c=o.x*s.y-o.y*s.x,l=c*c,u=o.x*o.x+o.y*o.y,d=s.x*s.x+s.y*s.y,f=null;if(l>i*u*d){var p=(a.x*s.y-a.y*s.x)/c,m=(a.x*o.y-a.y*o.x)/c;i_(p,0,1)&&i_(m,0,1)&&(f={x:e.x+p*o.x,y:e.y+p*o.y})}return f}var i_,a_=t((()=>{i_=function(e,t,n){return e>=t&&e<=n}}));function o_(e){return Math.abs(e)0!=o_(s[1]-n)>0&&o_(t-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var l_,u_=t((()=>{l_=1e-6}));function d_(e){for(var t=[],n=e.length,r=0;r1){var o=e[0],s=e[n-1];t.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return t}function f_(e,t){var n=!1;return H(e,function(e){if(r_(e.from,e.to,t.from,t.to))return n=!0,!1}),n}function p_(e){var t=e.map(function(e){return e[0]}),n=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function m_(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{u_(),a_(),J()})),__=r({catmullRom2Bezier:()=>Uh,fillPath:()=>Jh,fillPathByDiff:()=>Zh,formatPath:()=>ng,getArcParams:()=>Qg,getLineIntersect:()=>r_,isPointInPolygon:()=>c_,isPolygonsIntersect:()=>h_,parsePath:()=>Lh,parsePathArray:()=>Gg,parsePathString:()=>og,path2Absolute:()=>fg,path2Curve:()=>kg,path2Segments:()=>t_,pathIntersection:()=>Mg,reactPath:()=>ig}),v_=t((()=>{Bh(),Wh(),Yh(),$h(),rg(),Wg(),qg(),ug(),jg(),mg(),ag(),$g(),n_(),a_(),g_(),u_()}));function y_(e,t){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(c/2-l)*(t/2*(1/Math.sin(c/2)))-t/2||0,yExtra:Math.cos(u-c/2)*(t/2*(1/Math.sin(c/2)))-t/2||0}}function x_(e){var t=e.attr(),n=t.path,r=t.stroke?t.lineWidth:0,i=y_(e.get(`segments`)||t_(n),r),a=i.x,o=i.y,s=i.width,c=i.height,l={minX:a,minY:o,maxX:a+s,maxY:o+c};return l=xh(e,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}var S_=t((()=>{yh(),v_(),J(),Sh()}));function C_(e){var t=e.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,o={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,a),maxY:Math.max(r,a)};return o=xh(e,o),{x:o.minX,y:o.minY,width:o.maxX-o.minX,height:o.maxY-o.minY}}var w_=t((()=>{Sh()}));function T_(e){var t=e.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;return{x:n-i,y:r-a,width:i*2,height:a*2}}var E_=t((()=>{})),D_=t((()=>{hm(),_m(),ym(),wh(),Eh(),Ih(),S_(),w_(),E_(),fm(`rect`,gm),fm(`image`,gm),fm(`circle`,vm),fm(`marker`,vm),fm(`polyline`,Ch),fm(`polygon`,Th),fm(`text`,Fh),fm(`path`,x_),fm(`line`,C_),fm(`ellipse`,T_)})),O_=r({AbstractCanvas:()=>om,AbstractGroup:()=>cm,AbstractShape:()=>um,Base:()=>us,Event:()=>$o,PathUtil:()=>fo,assembleFont:()=>Nh,getBBoxMethod:()=>pm,getOffScreenContext:()=>Dh,getTextHeight:()=>Ah,invert:()=>Su,isAllowCapture:()=>ss,multiplyVec2:()=>xu,registerBBox:()=>fm,registerEasing:()=>zp,version:()=>k_}),k_,X=t((()=>{Xo(),Zo(),Qo(),es(),ds(),sm(),lm(),dm(),D_(),Ph(),ls(),Cu(),kh(),Vp(),k_=`0.5.11`})),A_,j_,M_,N_=t((()=>{A_=1/2,j_=1/2,M_=.05})),P_,F_=t((()=>{J(),N_(),P_=function(){function e(e){var t=e.xField,n=e.yField,r=e.adjustNames,i=r===void 0?[`x`,`y`]:r,a=e.dimValuesMap;this.adjustNames=i,this.xField=t,this.yField=n,this.dimValuesMap=a}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,n){var r=this.yField,i=n.indexOf(t),a=n.length,o,s;return!r&&this.isAdjust(`y`)?(o=0,s=1):a>1?(o=n[i===0?0:i-1],s=n[i===a-1?a-1:i+1],i===0?o-=(s-t)/2:o+=(t-o)/2,i===a-1?s+=(t-n[a-2])/2:s-=(s-t)/2):(o=t===0?0:t-.5,s=t===0?1:t+.5),{pre:o,next:s}},e.prototype.adjustData=function(e,t){var n=this,r=this.getDimValues(t);H(e,function(e,t){H(r,function(r,i){n.adjustDim(i,r,e,t)})})},e.prototype.groupData=function(e,t){return H(e,function(e){e[t]===void 0&&(e[t]=0)}),hr(e,t)},e.prototype.adjustDim=function(e,t,n,r){},e.prototype.getDimValues=function(e){var t=this,n=t.xField,r=t.yField,i=G({},this.dimValuesMap),a=[];if(n&&this.isAdjust(`x`)&&a.push(n),r&&this.isAdjust(`y`)&&a.push(r),a.forEach(function(t){i&&i[t]||(i[t]=tr(e,t).sort(function(e,t){return e-t}))}),!r&&this.isAdjust(`y`)){var o=`y`;i[o]=[0,1]}return i},e}()})),I_=t((()=>{})),L_,R_,z_,B_=t((()=>{F_(),I_(),L_={},R_=function(e){return L_[e.toLowerCase()]},z_=function(e,t){if(R_(e))throw Error(`Adjust type '`+e+`' existed.`);L_[e.toLowerCase()]=t}}));function V_(e,t){H_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var H_,U_,W_=t((()=>{H_=function(e,t){return H_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},H_(e,t)},U_=function(){return U_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{W_(),J(),N_(),F_(),G_=function(e){V_(t,e);function t(t){var n=e.call(this,t)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=t.marginRatio,i=r===void 0?A_:r,a=t.dodgeRatio,o=a===void 0?j_:a,s=t.dodgeBy,c=t.intervalPadding,l=t.dodgePadding,u=t.xDimensionLength,d=t.groupNum,f=t.defaultSize,p=t.maxColumnWidth,m=t.minColumnWidth,h=t.columnWidthRatio,g=t.customOffset;return n.marginRatio=i,n.dodgeRatio=o,n.dodgeBy=s,n.intervalPadding=c,n.dodgePadding=l,n.xDimensionLegenth=u,n.groupNum=d,n.defaultSize=f,n.maxColumnWidth=p,n.minColumnWidth=m,n.columnWidthRatio=h,n.customOffset=g,n}return t.prototype.process=function(e){var t=da(e),n=En(t),r=this.dodgeBy,i=r?br(n,r):t;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],t},t.prototype.adjustDim=function(e,t,n,r){var i=this,a=this.customOffset,o=this.getDistribution(e);return H(this.groupData(n,e),function(n,s){var c=t.length===1?{pre:t[0]-1,next:t[0]+1}:i.getAdjustRange(e,parseFloat(s),t);H(n,function(t){var n=o[t[e]],s=n.indexOf(r);if(B(a))t[e]=i.getDodgeOffset(c,s,n.length);else{var l=c.pre,u=c.next;t[e]=z(a)?a(t,c):(l+u)/2+a}})}),[]},t.prototype.getDodgeOffset=function(e,t,n){var r=this,i=r.dodgeRatio,a=r.marginRatio,o=r.intervalPadding,s=r.dodgePadding,c=e.pre,l=e.next,u=l-c,d;if(!B(o)&&B(s)&&o>=0){var f=this.getIntervalOnlyOffset(n,t);d=c+f}else if(!B(s)&&B(o)&&s>=0){var f=this.getDodgeOnlyOffset(n,t);d=c+f}else if(!B(o)&&!B(s)&&o>=0&&s>=0){var f=this.getIntervalAndDodgeOffset(n,t);d=c+f}else{var p=u*i/n,m=a*p,f=1/2*(u-n*p-(n-1)*m)+((t+1)*p+t*m)-1/2*p-1/2*u;d=(c+l)/2+f}return d},t.prototype.getIntervalOnlyOffset=function(e,t){var n=this,r=n.defaultSize,i=n.intervalPadding,a=n.xDimensionLegenth,o=n.groupNum,s=n.dodgeRatio,c=n.maxColumnWidth,l=n.minColumnWidth,u=n.columnWidthRatio,d=i/a,f=(1-(o-1)*d)/o*s/(e-1),p=((1-d*(o-1))/o-f*(e-1))/e;if(p=B(u)?p:1/o/e*u,!B(c)){var m=c/a;p=Math.min(p,m)}if(!B(l)){var h=l/a;p=Math.max(p,h)}return p=r?r/a:p,f=((1-(o-1)*d)/o-e*p)/(e-1),((1/2+t)*p+t*f+1/2*d)*o-d/2},t.prototype.getDodgeOnlyOffset=function(e,t){var n=this,r=n.defaultSize,i=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=n.marginRatio,c=n.maxColumnWidth,l=n.minColumnWidth,u=n.columnWidthRatio,d=i/a,f=1*s/(o-1),p=((1-f*(o-1))/o-d*(e-1))/e;if(p=u?1/o/e*u:p,!B(c)){var m=c/a;p=Math.min(p,m)}if(!B(l)){var h=l/a;p=Math.max(p,h)}return p=r?r/a:p,f=(1-(p*e+d*(e-1))*o)/(o-1),((1/2+t)*p+t*d+1/2*f)*o-f/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var n=this,r=n.intervalPadding,i=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=r/a,c=i/a,l=((1-s*(o-1))/o-c*(e-1))/e;return((1/2+t)*l+t*c+1/2*s)*o-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,n=this.cacheMap,r=n[e];return r||(r={},H(t,function(t,n){var i=tr(t,e);i.length||i.push(0),H(i,function(e){r[e]||(r[e]=[]),r[e].push(n)})}),n[e]=r),r},t}(P_)}));function q_(e,t){return(t-e)*Math.random()+e}var J_,Y_=t((()=>{W_(),J(),N_(),F_(),J_=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(e){var t=da(e),n=En(t);return this.adjustData(t,n),t},t.prototype.adjustDim=function(e,t,n){var r=this;return H(this.groupData(n,e),function(n,i){return r.adjustGroup(n,e,parseFloat(i),t)})},t.prototype.getAdjustOffset=function(e){var t=e.pre,n=e.next,r=(n-t)*M_;return q_(t+r,n-r)},t.prototype.adjustGroup=function(e,t,n,r){var i=this,a=this.getAdjustRange(t,n,r);return H(e,function(e){e[t]=i.getAdjustOffset(a)}),e},t}(P_)})),X_,Z_,Q_=t((()=>{W_(),J(),F_(),X_=lo,Z_=function(e){V_(t,e);function t(t){var n=e.call(this,t)||this,r=t.adjustNames,i=r===void 0?[`y`]:r,a=t.height,o=a===void 0?NaN:a,s=t.size,c=s===void 0?10:s,l=t.reverseOrder,u=l===void 0?!1:l;return n.adjustNames=i,n.height=o,n.size=c,n.reverseOrder=u,n}return t.prototype.process=function(e){var t=this,n=t.yField,r=t.reverseOrder,i=n?this.processStack(e):this.processOneDimStack(e);return r?this.reverse(i):i},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this,n=t.xField,r=t.yField,i=t.reverseOrder?this.reverse(e):e,a=new X_,o=new X_;return i.map(function(e){return e.map(function(e){var t,i=K(e,n,0),s=K(e,[r]),c=i.toString();if(s=V(s)?s[1]:s,!B(s)){var l=s>=0?a:o;l.has(c)||l.set(c,0);var u=l.get(c),d=s+u;return l.set(c,d),U_(U_({},e),(t={},t[r]=[u,d],t))}return e})})},t.prototype.processOneDimStack=function(e){var t=this,n=this,r=n.xField,i=n.height,a=n.reverseOrder,o=`y`,s=a?this.reverse(e):e,c=new X_;return s.map(function(e){return e.map(function(e){var n,a=t.size,s=e[r],l=a*2/i;c.has(s)||c.set(s,l/2);var u=c.get(s);return c.set(s,u+l),U_(U_({},e),(n={},n[o]=u,n))})})},t}(P_)})),$_,ev=t((()=>{W_(),J(),F_(),$_=function(e){V_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(e){var t=En(e),n=this,r=n.xField,i=n.yField,a=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(a).map(function(e){return a[e]}));return Ma(e,function(e){return Ma(e,function(e){var t,n,s=e[i],c=e[r];if(V(s)){var l=(o-a[c])/2;return U_(U_({},e),(t={},t[i]=Ma(s,function(e){return l+e}),t))}var u=(o-s)/2;return U_(U_({},e),(n={},n[i]=[u,s+u],n))})})},t.prototype.getXValuesMaxMap=function(e){var t=this,n=this,r=n.xField,i=n.yField,a=hr(e,function(e){return e[r]});return Fa(a,function(e){return t.getDimMaxValue(e,i)})},t.prototype.getDimMaxValue=function(e,t){var n=Ma(e,function(e){return K(e,t,[])}),r=En(n);return Math.max.apply(Math,r)},t}(P_)})),tv=r({Adjust:()=>P_,getAdjust:()=>R_,registerAdjust:()=>z_}),nv=t((()=>{B_(),F_(),K_(),Y_(),Q_(),ev(),I_(),z_(`Dodge`,G_),z_(`Jitter`,J_),z_(`Stack`,Z_),z_(`Symmetric`,$_)})),rv,iv,av=t((()=>{J(),rv=function(e,t){return U(t)?t:e.invert(e.scale(t))},iv=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],n=0;n{J(),sv=/rgba?\(([\s.,0-9]+)\)/,cv=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,lv=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,uv=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,dv=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},fv=function(){var e=document.createElement(`i`);return e.title=`Web Colour Picker`,e.style.display=`none`,document.body.appendChild(e),e},pv=function(e,t,n,r){return e[r]+(t[r]-e[r])*n},mv=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},hv=function(e){var t=Math.round(e).toString(16);return t.length===1?`0`+t:t},gv=function(e,t){var n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),r=e.length-1,i=Math.floor(r*n),a=r*n-i,o=e[i],s=i===r?o:e[i+1];return ov([pv(o,s,a,0),pv(o,s,a,1),pv(o,s,a,2)])},vv=function(e){if(e[0]===`#`&&e.length===7)return e;_v||=fv(),_v.style.color=e;var t=document.defaultView.getComputedStyle(_v,``).getPropertyValue(`color`);return t=ov(sv.exec(t)[1].split(/\s*,\s*/).map(function(e){return Number(e)})),t},yv=function(e){var t=Ma(U(e)?e.split(`-`):e,function(e){return mv(e.indexOf(`#`)===-1?vv(e):e)});return function(e){return gv(t,e)}},bv=function(e){if(dv(e)){var t,n=void 0;if(e[0]===`l`){var r=cv.exec(e),i=+r[1]+90;n=r[2],t=`linear-gradient(`+i+`deg, `}else if(e[0]===`r`){t=`radial-gradient(`;var r=lv.exec(e);n=r[4]}var a=n.match(uv);return H(a,function(e,n){var r=e.split(`:`);t+=r[1]+` `+r[0]*100+`%`,n!==a.length-1&&(t+=`, `)}),t+=`)`,t}return e},xv={rgb2arr:mv,gradient:yv,toRGB:ha(vv),toCSSGradient:bv}})),Cv,wv=t((()=>{R(),Sv(),J(),av(),Cv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`color`,n.names=[`color`],U(n.values)&&(n.linear=!0),n.gradient=xv.gradient(n.values),n}return t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(iv)})),Tv,Ev=t((()=>{R(),av(),Tv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`opacity`,n.names=[`opacity`],n}return t}(iv)})),Dv,Ov=t((()=>{R(),J(),av(),Dv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.names=[`x`,`y`],n.type=`position`,n}return t.prototype.mapping=function(e,t){var n=this.scales,r=n[0],i=n[1];return B(e)||B(t)?[]:[V(e)?e.map(function(e){return r.scale(e)}):r.scale(e),V(t)?t.map(function(e){return i.scale(e)}):i.scale(t)]},t}(iv)})),kv,Av=t((()=>{R(),av(),kv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`shape`,n.names=[`shape`],n}return t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(iv)})),jv,Mv=t((()=>{R(),av(),jv=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`size`,n.names=[`size`],n}return t}(iv)}));function Nv(e){return Fv[e]}function Pv(e,t){Fv[e]=t}var Fv,Iv=t((()=>{Fv={}})),Lv,Rv=t((()=>{J(),Iv(),Lv=function(){function e(e){this.type=`base`,this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){G(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return Ma(this.ticks,function(t,n){return ln(t)?t:{text:e.getText(t,n),tickValue:t,value:e.scale(t)}})},e.prototype.getText=function(e,t){var n=this.formatter,r=n?n(e,t):e;return B(r)||!z(r.toString)?``:r.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){G(this,this.__cfg__),this.setDomain(),Ta(this.getConfig(`ticks`))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if(U(e)){var n=Nv(e);if(!n)throw Error(`There is no method to to calculate ticks!`);t=n(this)}else z(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,n){return W(e)?(e-t)/(n-t):NaN},e.prototype.calcValue=function(e,t,n){return t+e*(n-t)},e}()})),zv,Bv=t((()=>{R(),J(),Rv(),zv=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cat`,t.isCategory=!0,t}return t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;ethis.max?NaN:this.values[r]},t.prototype.getText=function(t){var n=[...arguments].slice(1),r=t;return W(t)&&!this.values.includes(t)&&(r=this.values[r]),e.prototype.getText.apply(this,Dt([r],n))},t.prototype.initCfg=function(){this.tickMethod=`cat`},t.prototype.setDomain=function(){if(B(this.getConfig(`min`))&&(this.min=0),B(this.getConfig(`max`))){var e=this.values.length;this.max=e>1?e-1:e}this.translateIndexMap&&=void 0},t}(Lv)})),Vv=r({assign:()=>Uv,default:()=>_y,defaultI18n:()=>ny,format:()=>gy,parse:()=>Wv,setGlobalDateI18n:()=>iy,setGlobalDateMasks:()=>hy});function Hv(e,t){for(var n=[],r=0,i=e.length;r1e3)return null;var r={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],a=[],o=t.replace(Zv,function(e,t){return a.push(ay(t)),`@@@`}),s={},c={};o=ay(o).replace(Gv,function(e){var t=py[e],n=t[0],r=t[1],a=t[3];if(s[n])throw Error(`Invalid format. `+n+` specified twice in format`);return s[n]=!0,a&&(c[a]=!0),i.push(t),`(`+r+`)`}),Object.keys(c).forEach(function(e){if(!s[e])throw Error(`Invalid format. `+e+` is required in specified format`)}),o=o.replace(/@@@/g,function(){return a.shift()});var l=e.match(new RegExp(o,`i`));if(!l)return null;for(var u=Uv(Uv({},ry),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return g}var Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy=t((()=>{Gv=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Kv=`\\d\\d?`,qv=`\\d\\d`,Jv=`\\d{3}`,Yv=`\\d{4}`,Xv=`[^\\s]+`,Zv=/\[([^]*?)\]/gm,Qv=function(e){return function(t,n){var r=n[e].map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase());return r>-1?r:null}},$v=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],ey=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],ty=Hv(ey,3),ny={dayNamesShort:Hv($v,3),dayNames:$v,monthNamesShort:ty,monthNames:ey,amPm:[`am`,`pm`],DoFn:function(e){return e+[`th`,`st`,`nd`,`rd`][e%10>3?0:(e-e%10==10?0:1)*e%10]}},ry=Uv({},ny),iy=function(e){return ry=Uv(ry,e)},ay=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,`\\$&`)},oy=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length0?`-`:`+`)+oy(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?`-`:`+`)+oy(Math.floor(Math.abs(t)/60),2)+`:`+oy(Math.abs(t)%60,2)}},cy=function(e){return e-1},ly=[null,Kv],uy=[null,Xv],dy=[`isPm`,Xv,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],fy=[`timezoneOffset`,`[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?`,function(e){var t=(e+``).match(/([+-]|\d\d)/gi);if(t){var n=t[1]*60+parseInt(t[2],10);return t[0]===`+`?n:-n}return 0}],py={D:[`day`,Kv],DD:[`day`,qv],Do:[`day`,Kv+Xv,function(e){return parseInt(e,10)}],M:[`month`,Kv,cy],MM:[`month`,qv,cy],YY:[`year`,qv,function(e){var t=+(``+new Date().getFullYear()).substr(0,2);return+(``+(+e>68?t-1:t)+e)}],h:[`hour`,Kv,void 0,`isPm`],hh:[`hour`,qv,void 0,`isPm`],H:[`hour`,Kv],HH:[`hour`,qv],m:[`minute`,Kv],mm:[`minute`,qv],s:[`second`,Kv],ss:[`second`,qv],YYYY:[`year`,Yv],S:[`millisecond`,`\\d`,function(e){return e*100}],SS:[`millisecond`,qv,function(e){return e*10}],SSS:[`millisecond`,Jv],d:ly,dd:ly,ddd:uy,dddd:uy,MMM:[`month`,Xv,Qv(`monthNamesShort`)],MMMM:[`month`,Xv,Qv(`monthNames`)],a:dy,A:dy,ZZ:fy,Z:fy},my={default:`ddd MMM DD YYYY HH:mm:ss`,shortDate:`M/D/YY`,mediumDate:`MMM D, YYYY`,longDate:`MMMM D, YYYY`,fullDate:`dddd, MMMM D, YYYY`,isoDate:`YYYY-MM-DD`,isoDateTime:`YYYY-MM-DDTHH:mm:ssZ`,shortTime:`HH:mm`,mediumTime:`HH:mm:ss`,longTime:`HH:mm:ss.SSS`},hy=function(e){return Uv(my,e)},gy=function(e,t,n){if(t===void 0&&(t=my.default),n===void 0&&(n={}),typeof e==`number`&&(e=new Date(e)),Object.prototype.toString.call(e)!==`[object Date]`||isNaN(e.getTime()))throw Error(`Invalid Date pass to format`);t=my[t]||t;var r=[];t=t.replace(Zv,function(e,t){return r.push(t),`@@@`});var i=Uv(Uv({},ry),n);return t=t.replace(Gv,function(t){return sy[t](e,i)}),t.replace(/@@@/g,function(){return r.shift()})},_y={format:gy,parse:Wv,defaultI18n:ny,setGlobalDateI18n:iy,setGlobalDateMasks:hy}}));function yy(e){return function(t,n,r,i){for(var a=B(r)?0:r,o=B(i)?t.length:i;a>>1;e(t[s])>n?o=s:a=s+1}return a}}var by=t((()=>{J()}));function xy(e,t){return(Vv[wy]||_y[wy])(e,t)}function Sy(e){return U(e)&&(e=e.indexOf(`T`)>0?new Date(e).getTime():new Date(e.replace(/-/gi,`/`)).getTime()),Bi(e)&&(e=e.getTime()),e}function Cy(e,t,n){var r=(t-e)/n,i=yy(function(e){return e[1]})(jy,r)-1,a=jy[i];return i<0?a=jy[0]:i>=jy.length&&(a=ar(jy)),a}var wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My=t((()=>{J(),vy(),by(),wy=`format`,Ty=1e3,Ey=60*Ty,Dy=60*Ey,Oy=24*Dy,ky=Oy*31,Ay=Oy*365,jy=[[`HH:mm:ss`,Ty],[`HH:mm:ss`,Ty*10],[`HH:mm:ss`,Ty*30],[`HH:mm`,Ey],[`HH:mm`,Ey*10],[`HH:mm`,Ey*30],[`HH`,Dy],[`HH`,Dy*6],[`HH`,Dy*12],[`YYYY-MM-DD`,Oy],[`YYYY-MM-DD`,Oy*4],[`YYYY-WW`,Oy*7],[`YYYY-MM`,ky],[`YYYY-MM`,ky*4],[`YYYY-MM`,ky*6],[`YYYY`,Oy*380]]})),Ny,Py=t((()=>{R(),J(),My(),Bv(),Ny=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`timeCat`,t}return t.prototype.translate=function(e){e=Sy(e);var t=this.values.indexOf(e);return t===-1&&(t=W(e)&&e-1){var r=this.values[n],i=this.formatter;return r=i?i(r,t):xy(r,this.mask),r}return e},t.prototype.initCfg=function(){this.tickMethod=`time-cat`,this.mask=`YYYY-MM-DD`,this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;H(t,function(e,n){t[n]=Sy(e)}),t.sort(function(e,t){return e-t}),e.prototype.setDomain.call(this)},t}(zv)})),Fy,Iy=t((()=>{R(),J(),Rv(),Fy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return t.prototype.scale=function(e){if(B(e))return NaN;var t=this.rangeMin(),n=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(n-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,n=rr(t),r=ar(t);nthis.max&&(this.max=r),B(this.minLimit)||(this.min=n),B(this.maxLimit)||(this.max=r)},t.prototype.setDomain=function(){var e=Pn(this.values),t=e.min,n=e.max;B(this.min)&&(this.min=t),B(this.max)&&(this.max=n),this.min>this.max&&(this.min=t,this.max=n)},t.prototype.calculateTicks=function(){var t=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=Qt(n,function(e){return e>=t.min&&e<=t.max})),n},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;return(e-n)/(t-n)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(Lv)})),Ly,Ry=t((()=>{R(),Iy(),Ly=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`linear`,t.isLinear=!0,t}return t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod=`wilkinson-extended`,this.nice=!1},t}(Fy)}));function zy(e,t){var n=Math.E;return t>=0?n**+(Math.log(t)/e):n**+(Math.log(-t)/e)*-1}function By(e,t){return e===1?1:Math.log(t)/Math.log(e)}function Vy(e,t,n){B(n)&&(n=Math.max.apply(null,e));var r=n;return H(e,function(e){e>0&&e1&&(r=1),r}var Hy=t((()=>{J()})),Uy,Wy=t((()=>{R(),Hy(),Iy(),Uy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t}return t.prototype.invert=function(e){var t=this.base,n=By(t,this.max),r=this.rangeMin(),i=this.rangeMax()-r,a,o=this.positiveMin;if(o){if(e===0)return 0;a=By(t,o/t);var s=1/(n-a)*i;if(e{R(),Hy(),Iy(),Gy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pow`,t}return t.prototype.invert=function(e){var t=this.getInvertPercent(e),n=this.exponent,r=zy(n,this.max),i=zy(n,this.min),a=t*(r-i)+i;return a**+n*(a>=0?1:-1)},t.prototype.initCfg=function(){this.tickMethod=`pow`,this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;var r=this.exponent;return(zy(r,e)-zy(r,n))/(zy(r,t)-zy(r,n))},t}(Fy)})),qy,Jy=t((()=>{R(),J(),My(),Ry(),qy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`time`,t}return t.prototype.getText=function(e,t){var n=this.translate(e),r=this.formatter;return r?r(n,t):xy(n,this.mask)},t.prototype.scale=function(t){var n=t;return(U(n)||Bi(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(e){return Sy(e)},t.prototype.initCfg=function(){this.tickMethod=`time-pretty`,this.mask=`YYYY-MM-DD`,this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig(`min`),n=this.getConfig(`max`);if((!B(t)||!W(t))&&(this.min=this.translate(this.min)),(!B(n)||!W(n))&&(this.max=this.translate(this.max)),e&&e.length){var r=[],i=1/0,a=i,o=0;H(e,function(e){var t=Sy(e);if(isNaN(t))throw TypeError(`Invalid Time: `+e+` in time scale!`);i>t?(a=i,i=t):a>t&&(a=t),o1&&(this.minTickInterval=a-i),B(t)&&(this.min=i),B(n)&&(this.max=o)}},t}(Ly)})),Yy,Xy=t((()=>{R(),J(),Iy(),Yy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`quantize`,t}return t.prototype.invert=function(e){var t=this.ticks,n=t.length,r=this.getInvertPercent(e),i=Math.floor(r*(n-1));if(i>=n-1)return ar(t);if(i<0)return rr(t);var a=t[i],o=t[i+1],s=i/(n-1),c=(i+1)/(n-1);return a+(r-s)/(c-s)*(o-a)},t.prototype.initCfg=function(){this.tickMethod=`r-pretty`,this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||(ar(t)!==this.max&&t.push(this.max),rr(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(ear(t))return 1;var n=0;return H(t,function(t,r){if(e>=t)n=r;else return!1}),n/(t.length-1)},t}(Fy)})),Zy,Qy=t((()=>{R(),Xy(),Zy=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`quantile`,t}return t.prototype.initCfg=function(){this.tickMethod=`quantile`,this.tickCount=5,this.nice=!0},t}(Yy)}));function $y(e){return tb[e]}function eb(e,t){if($y(e))throw Error(`type '`+e+`' existed.`);tb[e]=t}var tb,nb=t((()=>{Rv(),tb={}})),rb,ib=t((()=>{R(),J(),Rv(),rb=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`identity`,t.isIdentity=!0,t}return t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&W(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return et[1]?NaN:this.values[0]},t}(Lv)}));function ab(e){var t=e.values,n=e.tickInterval,r=e.tickCount,i=e.showLast;if(W(n)){var a=Qt(t,function(e,t){return t%n===0}),o=ar(t);return i&&ar(a)!==o&&a.push(o),a}var s=t.length,c=e.min,l=e.max;if(B(c)&&(c=0),B(l)&&(l=t.length-1),!W(r)||r>=s)return t.slice(c,l+1);if(r<=0||l<=0)return[];for(var u=r===1?s:Math.floor(s/(r-1)),d=[],f=c,p=0;p=l);p++)f=Math.min(c+p*u,l),p===r-1&&i?d.push(t[l]):d.push(t[f]);return d}var ob=t((()=>{J()}));function sb(e){var t=e.min,n=e.max,r=e.nice,i=e.tickCount,a=new mb;return a.domain([t,n]),r&&a.nice(i),a.ticks(i)}function cb(e,t,n){var r,i=-1,a,o,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=Array(a=Math.ceil(t-e+1));++i=0?(a>=db?10:a>=fb?5:a>=pb?2:1)*10**i:-(10**-i)/(a>=db?10:a>=fb?5:a>=pb?2:1)}var ub,db,fb,pb,mb,hb=t((()=>{ub=5,db=Math.sqrt(50),fb=Math.sqrt(10),pb=Math.sqrt(2),mb=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){var t,n;e===void 0&&(e=ub);var r=this._domain.slice(),i=0,a=this._domain.length-1,o=this._domain[i],s=this._domain[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=lb(o,s,e)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=lb(o,s,e)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c,this.domain(r)):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c,this.domain(r)),this},e.prototype.ticks=function(e){return e===void 0&&(e=ub),cb(this._domain[0],this._domain[this._domain.length-1],e||ub)},e}()}));function gb(e,t,n){return(n===`ceil`?Math.ceil(e/t):n===`floor`?Math.floor(e/t):Math.round(e/t))*t}function _b(e,t,n){var r=gb(e,n,`floor`),i=gb(t,n,`ceil`);r=Nr(r,n),i=Nr(i,n);for(var a=[],o=Math.max((i-r)/(2**12-1),n),s=r;s<=i;s+=o){var c=Nr(s,o);a.push(c)}return{min:r,max:i,ticks:a}}var vb=t((()=>{J()}));function yb(e,t,n){var r,i=e.minLimit,a=e.maxLimit,o=e.min,s=e.max,c=e.tickCount,l=c===void 0?5:c,u=B(i)?B(t)?o:t:i,d=B(a)?B(n)?s:n:a;if(u>d&&(r=[u,d],d=r[0],u=r[1]),l<=2)return[u,d];for(var f=(d-u)/(l-1),p=[],m=0;m{J()}));function xb(e){var t=e.min,n=e.max,r=e.tickInterval,i=e.minLimit,a=e.maxLimit,o=sb(e);return!B(i)||!B(a)?yb(e,rr(o),ar(o)):r?_b(t,n,r).ticks:o}var Sb=t((()=>{J(),hb(),vb(),bb()}));function Cb(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var wb=t((()=>{}));function Tb(e,t){return(e%t+t)%t}function Eb(e){return Math.round(e*0xe8d4a51000)/0xe8d4a51000}function Db(e,t,n,r,i,a){var o=no(t),s=Ca(t,e),c=0,l=Tb(r,a);return(l=0&&(c=1),1-s/(o-1)-n+c}function Ob(e,t,n){var r=no(t);return 1-Ca(t,e)/(r-1)-n+1}function kb(e,t,n,r,i,a){var o=(e-1)/(a-i),s=(t-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function Ab(e,t){return e>=t?2-(e-1)/(t-1):1}function jb(e,t,n,r){var i=t-e;return 1-.5*((t-r)**2+(e-n)**2)/(.1*i)**2}function Mb(e,t,n){var r=t-e;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function Nb(){return 1}function Pb(e,t,n,r,i,a){n===void 0&&(n=5),r===void 0&&(r=!0),i===void 0&&(i=Fb),a===void 0&&(a=[.25,.2,.5,.05]);var o=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!=`number`||typeof t!=`number`||!o)return{min:0,max:0,ticks:[]};if(t-e<1e-15||o===1)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var s=n||5,c=(t-e)/s;return{min:e,max:t,ticks:Array(s).fill(null).map(function(t,n){return Cb(e+c*n)})}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var d=0;dl.score&&(!r||C<=e&&w>=t)&&(l.lmin=C,l.lmax=w,l.lstep=T,l.score=A)}_+=1}m+=1}}u+=1}var ee=Cb(l.lmax),te=Cb(l.lmin),j=Cb(l.lstep),M=Math.floor(Eb((ee-te)/j))+1,ne=Array(M);ne[0]=Cb(te);for(var d=1;d{J(),wb(),Fb=[1,5,2,2.5,4,3],Ib=2**-52*100}));function Rb(e){var t=e.min,n=e.max,r=e.tickCount,i=e.nice,a=e.tickInterval,o=e.minLimit,s=e.maxLimit,c=Pb(t,n,r,i).ticks;return!B(o)||!B(s)?yb(e,rr(c),ar(c)):a?_b(t,n,a).ticks:c}var zb=t((()=>{J(),Lb(),vb(),bb()}));function Bb(e){var t=e.base,n=e.tickCount,r=e.min,i=e.max,a=e.values,o,s=By(t,i);if(r>0)o=Math.floor(By(t,r));else{var c=Vy(a,t,i);o=Math.floor(By(t,c))}for(var l=s-o,u=Math.ceil(l/n),d=[],f=o;f{Hy()}));function Hb(e,t,n){if(n===void 0&&(n=5),e===t)return{max:t,min:e,ticks:[e]};var r=n<0?0:Math.round(n);if(r===0)return{max:t,min:e,ticks:[]};var i=1.5,a=.5+1.5*i,o=(t-e)/r,s=10**Math.floor(Math.log10(o)),c=s;2*s-o{wb()}));function Wb(e){var t=e.exponent,n=e.tickCount,r=Math.ceil(zy(t,e.max));return Hb(Math.floor(zy(t,e.min)),r,n).ticks.map(function(e){return e**+t*(e>=0?1:-1)})}var Gb=t((()=>{Hy(),Ub()}));function Kb(e,t){var n=e.length*t;return t===1?e[e.length-1]:t===0?e[0]:n%1==0?e.length%2==0?(e[n-1]+e[n])/2:e[n]:e[Math.ceil(n)-1]}function qb(e){var t=e.tickCount,n=e.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(e,t){return e-t}),i=[],a=0;a{}));function Yb(e){var t=e.min,n=e.max,r=e.tickCount,i=e.tickInterval,a=e.minLimit,o=e.maxLimit,s=Hb(t,n,r).ticks;return!B(a)||!B(o)?yb(e,rr(s),ar(s)):i?_b(t,n,i).ticks:s}var Xb=t((()=>{J(),vb(),Ub(),bb()}));function Zb(e){var t=e.min,n=e.max,r=e.minTickInterval,i=e.tickInterval,a=e.tickCount;if(i)a=Math.ceil((n-t)/i);else{i=Cy(t,n,a)[1];var o=(n-t)/i/a;o>1&&(i*=Math.ceil(o)),r&&i{My()}));function $b(e){return ab(L({showLast:!0},e))}var ex=t((()=>{R(),ob()}));function tx(e){return new Date(e).getFullYear()}function nx(e){return new Date(e,0,1).getTime()}function rx(e){return new Date(e).getMonth()}function ix(e,t){var n=tx(e),r=tx(t),i=rx(e),a=rx(t);return(r-n)*12+(a-i)%12}function ax(e,t){return new Date(e,t,1).getTime()}function ox(e,t){return Math.ceil((t-e)/Oy)}function sx(e,t){return Math.ceil((t-e)/Dy)}function cx(e,t){return Math.ceil((t-e)/(60*1e3))}function lx(e){var t=e.min,n=e.max,r=e.minTickInterval,i=e.tickCount,a=e.tickInterval,o=[];a||(a=(n-t)/i,r&&a31536e6)for(var c=tx(n),l=Math.ceil(a/Ay),u=s;u<=c+l;u+=l)o.push(nx(u));else if(a>26784e5)for(var d=Math.ceil(a/ky),f=rx(t),p=ix(t,n),u=0;u<=p+d;u+=d)o.push(ax(s,u+f));else if(a>864e5)for(var m=new Date(t),h=m.getFullYear(),g=m.getMonth(),_=m.getDate(),v=Math.ceil(a/Oy),y=ox(t,n),u=0;u36e5)for(var m=new Date(t),h=m.getFullYear(),g=m.getMonth(),v=m.getDate(),b=m.getHours(),x=Math.ceil(a/Dy),S=sx(t,n),u=0;u<=S+x;u+=x)o.push(new Date(h,g,v,b+u).getTime());else if(a>6e4)for(var C=cx(t,n),w=Math.ceil(a/Ey),u=0;u<=C+w;u+=w)o.push(t+u*Ey);else{var T=a;T<1e3&&(T=Ty);for(var E=Math.floor(t/Ty)*Ty,D=Math.ceil((n-t)/Ty),O=Math.ceil(T/Ty),u=0;u=512&&console.warn(`Notice: current ticks length(`+o.length+`) >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is `+a+`) is too small, increase the value to solve the problem!`),o}var ux=t((()=>{My()})),dx=t((()=>{ob(),Sb(),zb(),Vb(),Gb(),Jb(),Xb(),Iv(),Qb(),ex(),ux(),Pv(`cat`,ab),Pv(`time-cat`,$b),Pv(`wilkinson-extended`,Rb),Pv(`r-pretty`,Yb),Pv(`time`,Zb),Pv(`time-pretty`,lx),Pv(`log`,Bb),Pv(`pow`,Wb),Pv(`quantile`,qb),Pv(`d3-linear`,xb)})),fx=r({Category:()=>zv,Identity:()=>rb,Linear:()=>Ly,Log:()=>Uy,Pow:()=>Gy,Quantile:()=>Zy,Quantize:()=>Yy,Scale:()=>Lv,Time:()=>qy,TimeCat:()=>Ny,getScale:()=>$y,getTickMethod:()=>Nv,registerScale:()=>eb,registerTickMethod:()=>Pv}),px=t((()=>{Rv(),Bv(),Py(),Ry(),Wy(),Ky(),Jy(),Xy(),Qy(),nb(),ib(),dx(),eb(`cat`,zv),eb(`category`,zv),eb(`identity`,rb),eb(`linear`,Ly),eb(`log`,Uy),eb(`pow`,Gy),eb(`time`,qy),eb(`timeCat`,Ny),eb(`quantize`,Yy),eb(`quantile`,Zy)})),mx=t((()=>{px()})),hx,gx,_x,vx=t((()=>{av(),mx(),hx={},gx=function(e){return hx[e.toLowerCase()]},_x=function(e,t){if(gx(e))throw Error(`Attribute type '${e}' existed.`);hx[e.toLowerCase()]=t}})),yx=r({Attribute:()=>iv,Color:()=>Cv,Opacity:()=>Tv,Position:()=>Dv,Scale:()=>Lv,Shape:()=>kv,Size:()=>jv,getAttribute:()=>gx,registerAttribute:()=>_x}),bx=t((()=>{av(),wv(),Ev(),Ov(),Av(),Mv(),vx(),mx(),_x(`Color`,Cv),_x(`Opacity`,Tv),_x(`Position`,Dv),_x(`Shape`,kv),_x(`Size`,jv)})),xx,Sx=t((()=>{R(),yu(),J(),xx=function(){function e(e){this.type=`coordinate`,this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,n=e.end,r=e.matrix,i=r===void 0?[1,0,0,0,1,0,0,0,1]:r,a=e.isTransposed,o=a===void 0?!1:a;this.start=t,this.end=n,this.matrix=i,this.originalMatrix=Ot([],i),this.isTransposed=o}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(e){G(this,e),this.initial()},e.prototype.convertDim=function(e,t){var n,r=this[t],i=r.start,a=r.end;return this.isReflect(t)&&(n=[a,i],i=n[0],a=n[1]),i+e*(a-i)},e.prototype.invertDim=function(e,t){var n,r=this[t],i=r.start,a=r.end;return this.isReflect(t)&&(n=[a,i],i=n[0],a=n[1]),(e-i)/(a-i)},e.prototype.applyMatrix=function(e,t,n){n===void 0&&(n=0);var r=this.matrix,i=[e,t,n];return Jc(i,i,r),i},e.prototype.invertMatrix=function(e,t,n){n===void 0&&(n=0);var r=this.matrix,i=Gs([0,0,0,0,0,0,0,0,0],r),a=[e,t,n];return i&&Jc(a,a,i),a},e.prototype.convert=function(e){var t=this.convertPoint(e),n=t.x,r=t.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},e.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(e){var t=this.matrix,n=this.center;return lu(t,t,[-n.x,-n.y]),uu(t,t,e),lu(t,t,[n.x,n.y]),this},e.prototype.reflect=function(e){return e===`x`?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(e,t){var n=this.matrix,r=this.center;return lu(n,n,[-r.x,-r.y]),du(n,n,[e,t]),lu(n,n,[r.x,r.y]),this},e.prototype.translate=function(e,t){var n=this.matrix;return lu(n,n,[e,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(e){return e===`x`?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(e){this.matrix=e||Ot([],this.originalMatrix)},e}()})),Cx,wx=t((()=>{R(),Sx(),Cx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.isRect=!0,n.type=`cartesian`,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,n=this.end;this.x={start:t.x,end:n.x},this.y={start:t.y,end:n.y}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;return this.isTransposed&&(t=[r,n],n=t[0],r=t[1]),{x:this.convertDim(n,`x`),y:this.convertDim(r,`y`)}},t.prototype.invertPoint=function(e){var t,n=this.invertDim(e.x,`x`),r=this.invertDim(e.y,`y`);return this.isTransposed&&(t=[r,n],n=t[0],r=t[1]),{x:n,y:r}},t}(xx)})),Tx,Ex=t((()=>{R(),yu(),J(),Sx(),Tx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.isHelix=!0,n.type=`helix`;var r=t.startAngle,i=r===void 0?1.25*Math.PI:r,a=t.endAngle,o=a===void 0?7.25*Math.PI:a,s=t.innerRadius,c=s===void 0?0:s,l=t.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+this.d*.99}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;this.isTransposed&&(t=[r,n],n=t[0],r=t[1]);var i=this.convertDim(n,`x`),a=this.a*i,o=this.convertDim(r,`y`);return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},t.prototype.invertPoint=function(e){var t,n=this.d+this.y.start,r=bl([0,0],[e.x,e.y],[this.center.x,this.center.y]),i=hu(r,[1,0],!0),a=i*this.a;Ml(r){R(),yu(),J(),Sx(),Dx=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;n.isPolar=!0,n.type=`polar`;var r=t.startAngle,i=r===void 0?-Math.PI/2:r,a=t.endAngle,o=a===void 0?Math.PI*3/2:a,s=t.innerRadius,c=s===void 0?0:s,l=t.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAnglethis.width/n?(o=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-a)*o*r}):(o=this.height/r,this.circleCenter={x:this.center.x-(.5-i)*o*n,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=o*this.radius:(this.radius<=0||this.radius>o)&&(this.polarRadius=o):this.polarRadius=o,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,n=this.getCenter(),r=e.x,i=e.y;return this.isTransposed&&(t=[i,r],r=t[0],i=t[1]),r=this.convertDim(r,`x`),i=this.convertDim(i,`y`),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},t.prototype.invertPoint=function(e){var t,n=this.getCenter(),r=[e.x-n.x,e.y-n.y],i=this,a=i.startAngle,o=i.endAngle;this.isReflect(`x`)&&(t=[o,a],a=t[0],o=t[1]);var s=[1,0,0,0,1,0,0,0,1];uu(s,s,a);var c=[1,0,0];Jc(c,c,s);var l=hu([c[0],c[1]],r,o0?d:-d;var f=this.invertDim(u,`y`),p={x:0,y:0};return p.x=this.isTransposed?f:d,p.y=this.isTransposed?d:f,p},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(e),Math.cos(t)],r=[0,Math.sin(e),Math.sin(t)],i=Math.min(e,t);i{})),Ax,jx,Mx,Nx=t((()=>{kx(),Ax={},jx=function(e){return Ax[e.toLowerCase()]},Mx=function(e,t){Ax[e.toLowerCase()]=t}})),Px=r({Coordinate:()=>xx,getCoordinate:()=>jx,registerCoordinate:()=>Mx}),Fx=t((()=>{Sx(),wx(),Ex(),Ox(),Nx(),Mx(`rect`,Cx),Mx(`cartesian`,Cx),Mx(`polar`,Dx),Mx(`helix`,Tx)}));function Ix(e,t,n){var r=new $o(t,n);r.target=e,r.propagationPath.push(e),e.emitDelegation(t,r);for(var i=e.getParent();i;)i.emitDelegation(t,r),r.propagationPath.push(i),i=i.getParent()}var Lx=t((()=>{X()}));function Rx(e,t,n){return n===void 0&&(n=Gx),t?pu(n,[[`t`,-e.x,-e.y],[`r`,t],[`t`,e.x,e.y]]):null}function zx(e,t){return!e.x&&!e.y?null:pu(t||Gx,[[`t`,e.x,e.y]])}function Bx(e){var t=[1,0,0],n=[0,0,0];return Jc(n,t,e),Math.atan2(n[1],n[0])}function Vx(e,t){var n=[0,0];return Ul(n,t,e),n}function Hx(e,t){var n=Vx(e,[t.minX,t.minY]),r=Vx(e,[t.maxX,t.minY]),i=Vx(e,[t.minX,t.maxY]),a=Vx(e,[t.maxX,t.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),s=Math.max(n[0],r[0],i[0],a[0]),c=Math.min(n[1],r[1],i[1],a[1]),l=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:c,minX:o,minY:c,maxX:s,maxY:l,width:s-o,height:l-c}}function Ux(e,t,n,r){if(t){var i=Rx({x:n,y:r},t,e.getMatrix());e.setMatrix(i)}}function Wx(e,t,n){var r=zx({x:t,y:n});e.attr(`matrix`,r)}var Gx,Kx=t((()=>{yu(),Gx=[1,0,0,0,1,0,0,0,1]}));function qx(e){var t=0,n=0,r=0,i=0;return W(e)?t=n=r=i=e:V(e)&&(t=e[0],r=B(e[1])?e[0]:e[1],i=B(e[2])?e[0]:e[2],n=B(e[3])?r:e[3]),[t,r,i,n]}function Jx(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])}function Yx(e,t){return!!e.className.match(RegExp(`(\\s|^)`+t+`(\\s|$)`))}function Xx(e){var t=e.start,n=e.end,r=Math.min(t.x,n.x),i=Math.min(t.y,n.y),a=Math.max(t.x,n.x),o=Math.max(t.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function Zx(e){var t=e.map(function(e){return e.x}),n=e.map(function(e){return e.y}),r=Math.min.apply(Math,t),i=Math.min.apply(Math,n),a=Math.max.apply(Math,t),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function Qx(e,t,n,r){var i=e+n,a=t+r;return{x:e,y:t,width:n,height:r,minX:e,minY:t,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function $x(e,t,n){return(1-n)*e+t*n}function eS(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}}function tS(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function nS(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),a=Math.min(e.maxY,t.maxY);return Qx(n,r,i-n,a-r)}function rS(e){var t=e.getClip(),n=t&&t.getBBox(),r;if(!e.isGroup())r=e.getBBox();else{var i=1/0,a=-1/0,o=1/0,s=-1/0,c=e.getChildren();c.length>0?H(c,function(e){if(e.get(`visible`)){if(e.isGroup()&&e.get(`children`).length===0)return!0;var t=rS(e),n=e.applyToMatrix([t.minX,t.minY,1]),r=e.applyToMatrix([t.minX,t.maxY,1]),c=e.applyToMatrix([t.maxX,t.minY,1]),l=e.applyToMatrix([t.maxX,t.maxY,1]),u=Math.min(n[0],r[0],c[0],l[0]),d=Math.max(n[0],r[0],c[0],l[0]),f=Math.min(n[1],r[1],c[1],l[1]),p=Math.max(n[1],r[1],c[1],l[1]);ua&&(a=d),fs&&(s=p)}}):(i=0,a=0,o=0,s=0),r=Qx(i,o,a-i,s-o)}return n?nS(r,n):r}function iS(e,t){if(!(!e.getClip()&&!t.getClip())){var n=t.getClip();if(!n){e.setClip(null);return}var r={type:n.get(`type`),attrs:n.attr()};e.setClip(r)}}function aS(e){return e+`px`}function oS(e,t,n,r){var i=r/tS(e,t),a=0;return n===`start`?a=0-i:n===`end`&&(a=1+i),{x:$x(e.x,t.x,a),y:$x(e.y,t.y,a)}}var sS,cS=t((()=>{J(),sS=function(e,t,n){return n===void 0&&(n=(2**-52)**.5),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t){R(),X(),J(),lS={none:[],point:[`x`,`y`],region:[`start`,`end`],points:[`points`],circle:[`center`,`radius`,`startAngle`,`endAngle`]},uS=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.initCfg(),n}return t.prototype.getDefaultCfg=function(){return{id:``,name:``,type:``,locationType:`none`,offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:`easeQuadInOut`},enter:{duration:400,easing:`easeQuadInOut`},leave:{duration:350,easing:`easeQuadIn`}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(e){var t=this,n=this.get(`defaultCfg`)||{};H(e,function(e,r){var i=t.get(r),a=e;i!==e&&(ln(e)&&n[r]&&(a=ya({},n[r],e)),t.set(r,a))}),this.updateInner(e),this.afterUpdate(e)},t.prototype.updateInner=function(e){},t.prototype.afterUpdate=function(e){hi(e,`visible`)&&(e.visible?this.show():this.hide()),hi(e,`capture`)&&this.setCapture(e.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get(`locationType`)},t.prototype.getOffset=function(){return{offsetX:this.get(`offsetX`),offsetY:this.get(`offsetY`)}},t.prototype.setOffset=function(e,t){this.update({offsetX:e,offsetY:t})},t.prototype.setLocation=function(e){var t=L({},e);this.update(t)},t.prototype.getLocation=function(){var e=this,t={},n=lS[this.get(`locationType`)];return H(n,function(n){t[n]=e.get(n)}),t},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var e=this;H(this.get(`defaultCfg`),function(t,n){var r=e.get(n);if(ln(r)){var i=ya({},t,r);e.set(n,i)}})},t}(us)})),fS,pS,mS,hS,gS=t((()=>{R(),J(),Lx(),Kx(),cS(),dS(),fS=`update_status`,pS=[`visible`,`tip`,`delegateObject`],mS=[`container`,`group`,`shapesMap`,`isRegister`,`isUpdating`,`destroyed`],hS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear(),this.get(`group`).remove()},t.prototype.clear=function(){this.get(`group`).clear(),this.set(`shapesMap`,{}),this.clearOffScreenCache(),this.set(`isInit`,!0)},t.prototype.getChildComponentById=function(e){var t=this.getElementById(e);return t&&t.get(`component`)},t.prototype.getElementById=function(e){return this.get(`shapesMap`)[e]},t.prototype.getElementByLocalId=function(e){var t=this.getElementId(e);return this.getElementById(t)},t.prototype.getElementsByName=function(e){var t=[];return H(this.get(`shapesMap`),function(n){n.get(`name`)===e&&t.push(n)}),t},t.prototype.getContainer=function(){return this.get(`container`)},t.prototype.updateInner=function(e){this.offScreenRender(),this.get(`updateAutoRender`)&&this.render()},t.prototype.render=function(){var e=this.get(`offScreenGroup`);e||=this.offScreenRender();var t=this.get(`group`);this.updateElements(e,t),this.deleteElements(),this.applyOffset(),this.get(`eventInitted`)||(this.initEvent(),this.set(`eventInitted`,!0)),this.set(`isInit`,!1)},t.prototype.show=function(){this.get(`group`).show(),this.set(`visible`,!0)},t.prototype.hide=function(){this.get(`group`).hide(),this.set(`visible`,!1)},t.prototype.setCapture=function(e){this.get(`group`).set(`capture`,e),this.set(`capture`,e)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get(`group`).getCanvasBBox()},t.prototype.getLayoutBBox=function(){var e=this.get(`group`),t=this.getInnerLayoutBBox(),n=e.getTotalMatrix();return n&&(t=Hx(n,t)),t},t.prototype.on=function(e,t,n){return this.get(`group`).on(e,t,n),this},t.prototype.off=function(e,t){var n=this.get(`group`);return n&&n.off(e,t),this},t.prototype.emit=function(e,t){this.get(`group`).emit(e,t)},t.prototype.init=function(){e.prototype.init.call(this),this.get(`group`)||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get(`offScreenBBox`)||this.get(`group`).getBBox()},t.prototype.delegateEmit=function(e,t){var n=this.get(`group`);t.target=n,n.emit(e,t),Ix(n,e,t)},t.prototype.createOffScreenGroup=function(){return new(this.get(`group`).getGroupBase())({delegateObject:this.getDelegateObject()})},t.prototype.applyOffset=function(){var e=this.get(`offsetX`),t=this.get(`offsetY`);this.moveElementTo(this.get(`group`),{x:e,y:t})},t.prototype.initGroup=function(){var e=this.get(`container`);this.set(`group`,e.addGroup({id:this.get(`id`),name:this.get(`name`),capture:this.get(`capture`),visible:this.get(`visible`),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var e=this.createOffScreenGroup();return this.renderInner(e),this.set(`offScreenGroup`,e),this.set(`offScreenBBox`,rS(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var n=e.addGroup(t);return this.get(`isRegister`)&&this.registerElement(n),n},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var n=e.addShape(t);return this.get(`isRegister`)&&this.registerElement(n),n},t.prototype.addComponent=function(e,t){var n=t.id,r=t.component,i=new r(L(L({},pt(t,[`id`,`component`])),{id:n,container:e,updateAutoRender:this.get(`updateAutoRender`)}));return i.init(),i.render(),this.get(`isRegister`)&&this.registerElement(i.get(`group`)),i},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get(`group`).off()},t.prototype.getElementId=function(e){var t=this.get(`id`),n=this.get(`name`);return t+`-`+n+`-`+e},t.prototype.registerElement=function(e){var t=e.get(`id`);this.get(`shapesMap`)[t]=e},t.prototype.unregisterElement=function(e){var t=e.get(`id`);delete this.get(`shapesMap`)[t]},t.prototype.moveElementTo=function(e,t){var n=zx(t);e.attr(`matrix`,n)},t.prototype.addAnimation=function(e,t,n){var r=t.attr(`opacity`);B(r)&&(r=1),t.attr(`opacity`,0),t.animate({opacity:r},n)},t.prototype.removeAnimation=function(e,t,n){t.animate({opacity:0},n)},t.prototype.updateAnimation=function(e,t,n,r){t.animate(n,r)},t.prototype.updateElements=function(e,t){var n=this,r=this.get(`animate`),i=this.get(`animateOption`),a=e.getChildren().slice(0),o;H(a,function(e){var a=e.get(`id`),s=n.getElementById(a),c=e.get(`name`);if(s)if(e.get(`isComponent`)){var l=e.get(`component`),u=s.get(`component`),d=Va(l.cfg,en(fn(l.cfg),mS));u.update(d),s.set(fS,`update`)}else{var f=n.getReplaceAttrs(s,e);r&&i.update?n.updateAnimation(c,s,f,i.update):s.attr(f),e.isGroup()&&n.updateElements(e,s),H(pS,function(t){s.set(t,e.get(t))}),iS(s,e),o=s,s.set(fS,`update`)}else{t.add(e);var p=t.getChildren();if(p.splice(p.length-1,1),o){var m=p.indexOf(o);p.splice(m+1,0,e)}else p.unshift(e);if(n.registerElement(e),e.set(fS,`add`),e.get(`isComponent`)){var l=e.get(`component`);l.set(`container`,t)}else e.isGroup()&&n.registerNewGroup(e);if(o=e,r){var h=n.get(`isInit`)?i.appear:i.enter;h&&n.addAnimation(c,e,h)}}})},t.prototype.clearUpdateStatus=function(e){H(e.getChildren(),function(e){e.set(fS,null)})},t.prototype.clearOffScreenCache=function(){var e=this.get(`offScreenGroup`);e&&e.destroy(),this.set(`offScreenGroup`,null),this.set(`offScreenBBox`,null)},t.prototype.getDelegateObject=function(){var e,t=this.get(`name`);return e={},e[t]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var n=e.get(`delegateObject`);t.delegateObject||={},G(t.delegateObject,n)},t.prototype.getReplaceAttrs=function(e,t){var n=e.attr(),r=t.attr();return H(n,function(e,t){r[t]===void 0&&(r[t]=void 0)}),r},t.prototype.registerNewGroup=function(e){var t=this;H(e.getChildren(),function(e){t.registerElement(e),e.set(fS,`add`),e.isGroup()&&t.registerNewGroup(e)})},t.prototype.deleteElements=function(){var e=this,t=this.get(`shapesMap`),n=[];H(t,function(e,t){!e.get(fS)||e.destroyed?n.push([t,e]):e.set(fS,null)});var r=this.get(`animate`),i=this.get(`animateOption`);H(n,function(n){var a=n[0],o=n[1];if(!o.destroyed){var s=o.get(`name`);if(r&&i.leave){var c=G({callback:function(){e.removeElement(o)}},i.leave);e.removeAnimation(s,o,c)}else e.removeElement(o)}delete t[a]})},t.prototype.removeElement=function(e){if(e.get(`isGroup`)){var t=e.get(`component`);t&&t.destroy()}e.remove()},t}(uS)}));function _S(e){for(var t=0,n=0;n0&&e.charCodeAt(t)<128?1:2}function yS(e,t,n){n===void 0&&(n=`tail`);var r=e.length,i=``;if(n===`tail`){for(var a=0,o=0;a{bS=`…`}));function SS(e){for(var t=e.map(function(e){var t=e.attr(`text`);return B(t)?``:``+t}),n=0,r=0,i=0;i=19968&&s<=40869?a+=2:a+=1}a>n&&(n=a,r=i)}return e[r].getBBox().width}function CS(e){if(e.length>OS)return SS(e);var t=0;return H(e,function(e){var n=e.getBBox().width;t=0?yS(i,l,r):ES,u&&(t.attr(`text`,u),c=!0)}return c?t.set(`tip`,i):t.set(`tip`,null),c}var ES,DS,OS,kS=t((()=>{J(),xS(),ES=`…`,DS=2,OS=400}));function AS(e,t){var n=t.x,r=t.y,i=t.content,a=t.style,o=t.id,s=t.name,c=t.rotate,l=t.maxLength,u=t.autoEllipsis,d=t.isVertical,f=t.ellipsisPosition,p=t.background,m=e.addGroup({id:o+`-group`,name:s+`-group`,attrs:{x:n,y:r}}),h=m.addShape({type:`text`,id:o,name:s,attrs:L({x:0,y:0,text:i},a)}),g=qx(K(p,`padding`,0));if(l&&u){var _=l-(g[1]+g[3]);TS(!d,h,_,f)}if(p){var v=K(p,`style`,{}),y=h.getCanvasBBox(),b=y.minX,x=y.minY,S=y.width,C=y.height;m.addShape(`rect`,{id:o+`-bg`,name:o+`-bg`,attrs:L({x:b-g[3],y:x-g[0],width:S+g[1]+g[3],height:C+g[0]+g[2]},v)}).toBack()}Wx(m,n,r),Ux(m,c,n,r)}var jS=t((()=>{R(),J(),kS(),Kx(),cS()})),Z,MS=t((()=>{Z={fontFamily:` + BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", + Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", + SimSun, "sans-serif"`,textColor:`#2C3542`,activeTextColor:`#333333`,uncheckedColor:`#D8D8D8`,lineColor:`#416180`,regionColor:`#CCD7EB`,verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:`#fff`,descriptionIconFill:`rgba(58, 73, 101, .25)`}})),NS,PS=t((()=>{R(),J(),gS(),jS(),MS(),cS(),NS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`line`,locationType:`region`,start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Z.textColor,fontSize:12,textAlign:`center`,textBaseline:`bottom`,fontFamily:Z.fontFamily},text:{position:`center`,autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Z.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(e){this.renderLine(e),this.get(`text`)&&this.renderLabel(e)},t.prototype.renderLine=function(e){var t=this.get(`start`),n=this.get(`end`),r=this.get(`style`);this.addShape(e,{type:`line`,id:this.getElementId(`line`),name:`annotation-line`,attrs:L({x1:t.x,y1:t.y,x2:n.x,y2:n.y},r)})},t.prototype.getLabelPoint=function(e,t,n){var r=n===`start`?0:n===`center`?.5:U(n)&&n.indexOf(`%`)!==-1?parseInt(n,10)/100:W(n)?n:1;return(r>1||r<0)&&(r=1),{x:$x(e.x,t.x,r),y:$x(e.y,t.y,r)}},t.prototype.renderLabel=function(e){var t=this.get(`text`),n=this.get(`start`),r=this.get(`end`),i=t.position,a=t.content,o=t.style,s=t.offsetX,c=t.offsetY,l=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,f=t.ellipsisPosition,p=t.background,m=t.isVertical,h=m===void 0?!1:m,g=this.getLabelPoint(n,r,i),_=g.x+s,v=g.y+c,y={id:this.getElementId(`line-text`),name:`annotation-line-text`,x:_,y:v,content:a,style:o,maxLength:u,autoEllipsis:d,ellipsisPosition:f,background:p,isVertical:h};if(l){var b=[r.x-n.x,r.y-n.y];y.rotate=Math.atan2(b[1],b[0])}AS(e,y)},t}(hS)})),FS,IS=t((()=>{R(),gS(),jS(),Kx(),MS(),FS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`text`,locationType:`point`,x:0,y:0,content:``,rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:`tail`,defaultCfg:{style:{fill:Z.textColor,fontSize:12,textAlign:`center`,textBaseline:`middle`,fontFamily:Z.fontFamily}}})},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),n=t.x,r=t.y,i=this.get(`content`),a=this.get(`style`);AS(e,{id:this.getElementId(`text`),name:this.get(`name`)+`-text`,x:n,y:r,content:i,style:a,maxLength:this.get(`maxLength`),autoEllipsis:this.get(`autoEllipsis`),isVertical:this.get(`isVertical`),ellipsisPosition:this.get(`ellipsisPosition`),background:this.get(`background`),rotate:this.get(`rotate`)})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId(`text-group`);if(e){var t=this.getLocation(),n=t.x,r=t.y,i=this.get(`rotate`);Wx(e,n,r),Ux(e,i,n,r)}},t}(hS)})),LS,RS=t((()=>{R(),gS(),cS(),LS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`arc`,locationType:`circle`,center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:`#999`,lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,i=e.endAngle,a=eS(t,n,r),o=eS(t,n,i),s=+(i-r>Math.PI),c=[[`M`,a.x,a.y]];if(i-r===Math.PI*2){var l=eS(t,n,r+Math.PI);c.push([`A`,n,n,0,s,1,l.x,l.y]),c.push([`A`,n,n,0,s,1,o.x,o.y])}else c.push([`A`,n,n,0,s,1,o.x,o.y]);return c},t.prototype.renderArc=function(e){var t=this.getArcPath(),n=this.get(`style`);this.addShape(e,{type:`path`,id:this.getElementId(`arc`),name:`annotation-arc`,attrs:L({path:t},n)})},t}(hS)})),zS,BS=t((()=>{R(),gS(),MS(),cS(),zS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`region`,locationType:`region`,start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Z.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get(`start`),n=this.get(`end`),r=this.get(`style`),i=Xx({start:t,end:n});this.addShape(e,{type:`rect`,id:this.getElementId(`region`),name:`annotation-region`,attrs:L({x:i.x,y:i.y,width:i.width,height:i.height},r)})},t}(hS)})),VS,HS=t((()=>{R(),gS(),cS(),VS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`image`,locationType:`region`,start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get(`start`),t=this.get(`end`),n=this.get(`style`),r=Xx({start:e,end:t}),i=this.get(`src`);return L({x:r.x,y:r.y,img:i,width:r.width,height:r.height},n)},t.prototype.renderImage=function(e){this.addShape(e,{type:`image`,id:this.getElementId(`image`),name:`annotation-image`,attrs:this.getImageAttrs()})},t}(hS)})),US,WS=t((()=>{R(),J(),gS(),jS(),Kx(),MS(),US=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`dataMarker`,locationType:`point`,x:0,y:0,point:{},line:{},text:{},direction:`upward`,autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:`#FFFFFF`,stroke:`#1890FF`,lineWidth:2}},line:{display:!0,length:20,style:{stroke:Z.lineColor,lineWidth:1}},text:{content:``,display:!0,style:{fill:Z.textColor,opacity:.65,fontSize:12,textAlign:`start`,fontFamily:Z.fontFamily}}}})},t.prototype.renderInner=function(e){K(this.get(`line`),`display`)&&this.renderLine(e),K(this.get(`text`),`display`)&&this.renderText(e),K(this.get(`point`),`display`)&&this.renderPoint(e),this.get(`autoAdjust`)&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`)+this.get(`offsetX`),y:this.get(`y`)+this.get(`offsetY`)})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:`circle`,id:this.getElementId(`point`),name:`annotation-point`,attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:`path`,id:this.getElementId(`line`),name:`annotation-line`,attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,n=t.x,r=t.y,i=t.text,a=pt(t,[`x`,`y`,`text`]),o=this.get(`text`),s=o.background,c=o.maxLength,l=o.autoEllipsis,u=o.isVertival,d=o.ellipsisPosition;AS(e,{x:n,y:r,id:this.getElementId(`text`),name:`annotation-text`,content:i,style:a,background:s,maxLength:c,autoEllipsis:l,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get(`direction`),n=this.get(`x`),r=this.get(`y`),i=K(this.get(`line`),`length`,0),a=this.get(`coordinateBBox`),o=e.getBBox(),s=o.minX,c=o.maxX,l=o.minY,u=o.maxY,d=e.findById(this.getElementId(`text-group`)),f=e.findById(this.getElementId(`text`)),p=e.findById(this.getElementId(`line`));if(a&&d){var m=d.attr(`x`),h=d.attr(`y`),g=f.getCanvasBBox(),_=g.width,v=g.height,y=0,b=0;if(n+s<=a.minX)if(t===`leftward`)y=1;else{var x=a.minX-(n+s);m=d.attr(`x`)+x}else if(n+c>=a.maxX)if(t===`rightward`)y=-1;else{var x=n+c-a.maxX;m=d.attr(`x`)-x}if(y&&(p&&p.attr(`path`,[[`M`,0,0],[`L`,i*y,0]]),m=(i+2+_)*y),r+l<=a.minY)if(t===`upward`)b=1;else{var x=a.minY-(r+l);h=d.attr(`y`)+x}else if(r+u>=a.maxY)if(t===`downward`)b=-1;else{var x=r+u-a.maxY;h=d.attr(`y`)-x}b&&(p&&p.attr(`path`,[[`M`,0,0],[`L`,0,i*b]]),h=(i+2+v)*b),(m!==d.attr(`x`)||h!==d.attr(`y`))&&Wx(d,m,h)}},t.prototype.getShapeAttrs=function(){var e=K(this.get(`line`),`display`),t=K(this.get(`point`),`style`,{}),n=K(this.get(`line`),`style`,{}),r=K(this.get(`text`),`style`,{}),i=this.get(`direction`),a=e?K(this.get(`line`),`length`,0):0,o=0,s=0,c=`top`,l=`start`;switch(i){case`upward`:s=-1,c=`bottom`;break;case`downward`:s=1,c=`top`;break;case`leftward`:o=-1,l=`end`;break;case`rightward`:o=1,l=`start`;break}return{point:L({x:0,y:0},t),line:L({path:[[`M`,0,0],[`L`,a*o,a*s]]},n),text:L({x:(a+2)*o,y:(a+2)*s,text:K(this.get(`text`),`content`,``),textBaseline:c,textAlign:l},r)}},t}(hS)})),GS,KS=t((()=>{R(),J(),gS(),MS(),cS(),jS(),GS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`dataRegion`,locationType:`points`,points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Z.regionColor,opacity:.4}},text:{content:``,style:{textAlign:`center`,textBaseline:`bottom`,fontSize:12,fill:Z.textColor,fontFamily:Z.fontFamily}}}})},t.prototype.renderInner=function(e){var t=K(this.get(`region`),`style`,{});K(this.get(`text`),`style`,{});var n=this.get(`lineLength`)||0,r=this.get(`points`);if(r.length){var i=Zx(r),a=[];a.push([`M`,r[0].x,i.minY-n]),r.forEach(function(e){a.push([`L`,e.x,e.y])}),a.push([`L`,r[r.length-1].x,r[r.length-1].y-n]),this.addShape(e,{type:`path`,id:this.getElementId(`region`),name:`annotation-region`,attrs:L({path:a},t)}),AS(e,L({id:this.getElementId(`text`),name:`annotation-text`,x:(i.minX+i.maxX)/2,y:i.minY-n},this.get(`text`)))}},t}(hS)})),qS,JS=t((()=>{R(),J(),gS(),cS(),qS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`regionFilter`,locationType:`region`,start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,n=this.get(`start`),r=this.get(`end`),i=this.addGroup(e,{id:this.getElementId(`region-filter`),capture:!1});H(this.get(`shapes`),function(e,n){var r=e.get(`type`),a=da(e.attr());t.adjustShapeAttrs(a),t.addShape(i,{id:t.getElementId(`shape-`+r+`-`+n),capture:!1,type:r,attrs:a})});var a=Xx({start:n,end:r});i.setClip({type:`rect`,attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get(`color`);e.fill&&=e.fillStyle=t,e.stroke=e.strokeStyle=t},t}(hS)})),YS,XS=t((()=>{R(),J(),gS(),YS=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`shape`,draw:Qa})},t.prototype.renderInner=function(e){var t=this.get(`render`);z(t)&&t(e)},t}(hS)}));function ZS(e,t,n){if(e){if(typeof e.addEventListener==`function`)return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if(typeof e.attachEvent==`function`)return e.attachEvent(`on`+t,n),{remove:function(){e.detachEvent(`on`+t,n)}}}}var QS=t((()=>{}));function $S(){tC=document.createElement(`table`),nC=document.createElement(`tr`),rC=/^\s*<(\w+|!)[^>]*>/,iC={tr:document.createElement(`tbody`),tbody:tC,thead:tC,tfoot:tC,td:nC,th:nC,"*":document.createElement(`div`)}}function eC(e){tC||$S();var t=rC.test(e)&&RegExp.$1;(!t||!(t in iC))&&(t=`*`);var n=iC[t];e=typeof e==`string`?e.replace(/(^\s*)|(\s*$)/g,``):e,n.innerHTML=``+e;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}var tC,nC,rC,iC,aC=t((()=>{}));function oC(e,t,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch{}finally{r=r===void 0?n:r}return r}var sC=t((()=>{}));function cC(e,t){var n=oC(e,`height`,t);return n===`auto`&&(n=e.offsetHeight),parseFloat(n)}var lC=t((()=>{sC()}));function uC(e,t){var n=cC(e,t),r=parseFloat(oC(e,`borderTopWidth`))||0,i=parseFloat(oC(e,`paddingTop`))||0,a=parseFloat(oC(e,`paddingBottom`))||0,o=parseFloat(oC(e,`borderBottomWidth`))||0,s=parseFloat(oC(e,`marginTop`))||0,c=parseFloat(oC(e,`marginBottom`))||0;return n+r+o+i+a+s+c}var dC=t((()=>{sC(),lC()}));function fC(e,t){var n=oC(e,`width`,t);return n===`auto`&&(n=e.offsetWidth),parseFloat(n)}var pC=t((()=>{sC()}));function mC(e,t){var n=fC(e,t),r=parseFloat(oC(e,`borderLeftWidth`))||0,i=parseFloat(oC(e,`paddingLeft`))||0,a=parseFloat(oC(e,`paddingRight`))||0,o=parseFloat(oC(e,`borderRightWidth`))||0,s=parseFloat(oC(e,`marginRight`))||0,c=parseFloat(oC(e,`marginLeft`))||0;return n+r+o+i+a+c+s}var hC=t((()=>{sC(),pC()}));function gC(){return window.devicePixelRatio?window.devicePixelRatio:2}var _C=t((()=>{}));function vC(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}var yC=t((()=>{})),bC=r({addEventListener:()=>ZS,createDom:()=>eC,getHeight:()=>cC,getOuterHeight:()=>uC,getOuterWidth:()=>mC,getRatio:()=>gC,getStyle:()=>oC,getWidth:()=>fC,modifyCSS:()=>vC}),xC=t((()=>{QS(),aC(),lC(),dC(),hC(),_C(),sC(),pC(),yC()})),SC,CC=t((()=>{R(),xC(),J(),cS(),dS(),SC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{container:null,containerTpl:`
`,updateAutoRender:!0,containerClassName:``,parent:null})},t.prototype.getContainer=function(){return this.get(`container`)},t.prototype.show=function(){var e=this.get(`container`);e.style.display=``,this.set(`visible`,!0)},t.prototype.hide=function(){var e=this.get(`container`);e.style.display=`none`,this.set(`visible`,!1)},t.prototype.setCapture=function(e){var t=this.getContainer(),n=e?`auto`:`none`;t.style.pointerEvents=n,this.set(`capture`,e)},t.prototype.getBBox=function(){var e=this.getContainer();return Qx(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){Jx(this.get(`container`))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get(`capture`))},t.prototype.initVisible=function(){this.get(`visible`)?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get(`container`);if(B(e)){e=this.createDom();var t=this.get(`parent`);U(t)&&(t=document.getElementById(t),this.set(`parent`,t)),t.appendChild(e),this.get(`containerId`)&&e.setAttribute(`id`,this.get(`containerId`)),this.set(`container`,e)}else U(e)&&(e=document.getElementById(e),this.set(`container`,e));this.get(`parent`)||this.set(`parent`,e.parentNode)},t.prototype.resetStyles=function(){var e=this.get(`domStyles`),t=this.get(`defaultStyles`);e=e?ya({},t,e):t,this.set(`domStyles`,e)},t.prototype.applyStyles=function(){var e=this.get(`domStyles`);if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var n=this.get(`containerClassName`);if(n&&Yx(t,n)){var r=e[n];vC(t,r)}}},t.prototype.applyChildrenStyles=function(e,t){H(t,function(t,n){H(e.getElementsByClassName(n),function(e){vC(e,t)})})},t.prototype.applyStyle=function(e,t){vC(t,this.get(`domStyles`)[e])},t.prototype.createDom=function(){return eC(this.get(`containerTpl`))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get(`container`);e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){hi(e,`domStyles`)&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(uS)})),wC,TC=t((()=>{R(),xC(),J(),CC(),cS(),wC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`annotation`,type:`html`,locationType:`point`,x:0,y:0,containerTpl:`
`,alignX:`left`,alignY:`top`,html:``,zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get(`html`);Jx(e);var n=z(t)?t(e):t;if(ta(n))e.appendChild(n);else if(U(n)||W(n)){var r=eC(``+n);r&&e.appendChild(r)}this.resetPosition()},t.prototype.resetPosition=function(){var e=this.getContainer(),t=this.getLocation(),n=t.x,r=t.y,i=this.get(`alignX`),a=this.get(`alignY`),o=this.get(`offsetX`),s=this.get(`offsetY`),c=mC(e),l=uC(e),u={x:n,y:r};i===`middle`?u.x-=Math.round(c/2):i===`right`&&(u.x-=Math.round(c)),a===`middle`?u.y-=Math.round(l/2):a===`bottom`&&(u.y-=Math.round(l)),o&&(u.x+=o),s&&(u.y+=s),vC(e,{position:`absolute`,left:u.x+`px`,top:u.y+`px`,zIndex:this.get(`zIndex`)})},t}(SC)})),EC=r({Arc:()=>LS,DataMarker:()=>US,DataRegion:()=>GS,Html:()=>wC,Image:()=>VS,Line:()=>NS,Region:()=>zS,RegionFilter:()=>qS,Shape:()=>YS,Text:()=>FS}),DC=t((()=>{PS(),IS(),RS(),BS(),HS(),WS(),KS(),JS(),XS(),TC()}));function OC(e,t,n){var r=t+`Style`,i=null;return H(n,function(t,n){e[n]&&t[r]&&(i||={},G(i,t[r]))}),i}var kC=t((()=>{J()})),AC,jC=t((()=>{R(),yu(),J(),gS(),Kx(),kC(),MS(),AC=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`axis`,ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:[`autoRotate`,`autoEllipsis`,`autoHide`],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Z.lineColor}},tickLine:{style:{lineWidth:1,stroke:Z.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Z.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Z.textColor,fontFamily:Z.fontFamily,fontWeight:`normal`},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:`center`,style:{fontSize:12,fill:Z.textColor,textBaseline:`middle`,fontFamily:Z.fontFamily,textAlign:`center`},iconStyle:{fill:Z.descriptionIconFill,stroke:Z.descriptionIconStroke},description:``},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Z.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get(`line`)&&this.drawLine(e),this.drawTicks(e),this.get(`title`)&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get(`ticks`)},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){G(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId(`label-group`);e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get(`tickStates`),n=[];return H(t,function(t,r){e[r]&&n.push(r)}),n},t.prototype.clearItemsState=function(e){var t=this;H(this.getItemsByState(e),function(n){t.setItemState(n,e,!1)})},t.prototype.getItemsByState=function(e){var t=this;return Qt(this.getItems(),function(n){return t.hasState(n,e)})},t.prototype.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},t.prototype.getTextAnchor=function(e){var t;return Wr(e[0],0)?t=`center`:e[0]>0?t=`start`:e[0]<0&&(t=`end`),t},t.prototype.getTextBaseline=function(e){var t;return Wr(e[1],0)?t=`middle`:e[1]>0?t=`top`:e[1]<0&&(t=`bottom`),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),n=this.get(`line`);this.addShape(e,{type:`path`,id:this.getElementId(`line`),name:`axis-line`,attrs:G({path:t},n.style)})},t.prototype.getTickLineItems=function(e){var t=this,n=[],r=this.get(`tickLine`),i=r.alignTick,a=r.length,o=1;return e.length>=2&&(o=e[1].value-e[0].value),H(e,function(e){var r=e.point;i||(r=t.getTickPoint(e.value-o/2));var s=t.getSidePoint(r,a);n.push({startPoint:r,tickValue:e.value,endPoint:s,tickId:e.id,id:`tickline-`+e.id})}),n},t.prototype.getSubTickLineItems=function(e){var t=[],n=this.get(`subTickLine`),r=n.count,i=e.length;if(i>=2)for(var a=0;a0){var n=no(t);if(n>e.threshold){var r=Math.ceil(n/e.threshold),i=t.filter(function(e,t){return t%r===0});this.set(`ticks`,i),this.set(`originalTicks`,t)}}},t.prototype.getLabelAttrs=function(e,t,n){var r=this.get(`label`),i=r.offset,a=r.offsetX,o=r.offsetY,s=r.rotate,c=r.formatter,l=this.getSidePoint(e.point,i),u=this.getSideVector(i,l),d=c?c(e.name,e,t):e.name,f=r.style;f=z(f)?K(this.get(`theme`),[`label`,`style`],{}):f;var p=G({x:l.x+a,y:l.y+o,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},f);return s&&(p.matrix=Rx(l,s)),p},t.prototype.drawLabels=function(e){var t=this,n=this.get(`ticks`),r=this.addGroup(e,{name:`axis-label-group`,id:this.getElementId(`label-group`)});H(n,function(e,i){t.addShape(r,{type:`text`,name:`axis-label`,id:t.getElementId(`label-`+e.id),attrs:t.getLabelAttrs(e,i,n),delegateObject:{tick:e,item:e,index:i}})}),this.processOverlap(r);var i=r.getChildren(),a=K(this.get(`theme`),[`label`,`style`],{}),o=this.get(`label`),s=o.style,c=o.formatter;if(z(s)){var l=i.map(function(e){return K(e.get(`delegateObject`),`tick`)});H(i,function(e,t){var n=e.get(`delegateObject`).tick,r=G({},a,s(c?c(n.name,n,t):n.name,t,l));e.attr(r)})}},t.prototype.getTitleAttrs=function(){var e=this.get(`title`),t=e.style,n=e.position,r=e.offset,i=e.spacing,a=i===void 0?0:i,o=e.autoRotate,s=t.fontSize,c=.5;n===`start`?c=0:n===`end`&&(c=1);var l=this.getTickPoint(c),u=this.getSidePoint(l,r||a+s/2),d=G({x:u.x,y:u.y,text:e.text},t),f=e.rotate,p=f;return B(f)&&o&&(p=hu(this.getAxisVector(l),[1,0],!0)),p&&(d.matrix=Rx(u,p)),d},t.prototype.drawTitle=function(e){var t=this.getTitleAttrs(),n=this.addShape(e,{type:`text`,id:this.getElementId(`title`),name:`axis-title`,attrs:t});this.get(`title`)?.description&&this.drawDescriptionIcon(e,n,t.matrix)},t.prototype.drawDescriptionIcon=function(e,t,n){var r=this.addGroup(e,{name:`axis-description`,id:this.getElementById(`description`)}),i=t.getBBox(),a=i.maxX,o=i.maxY,s=i.height,c=this.get(`title`).iconStyle,l=4,u=s/2,d=u/6,f=a+l,p=o-s/2,m=[f+u,p-u],h=m[0],g=m[1],_=[h+u,g+u],v=_[0],y=_[1],b=[h,y+u],x=b[0],S=b[1],C=[f,g+u],w=C[0],T=C[1],E=[f+u,p-s/4],D=E[0],O=E[1],k=[D,O+d],A=k[0],ee=k[1],te=[A,ee+d],j=te[0],M=te[1],ne=[j,M+u*3/4],re=ne[0],ie=ne[1];this.addShape(r,{type:`path`,id:this.getElementId(`title-description-icon`),name:`axis-title-description-icon`,attrs:L({path:[[`M`,h,g],[`A`,u,u,0,0,1,v,y],[`A`,u,u,0,0,1,x,S],[`A`,u,u,0,0,1,w,T],[`A`,u,u,0,0,1,h,g],[`M`,D,O],[`L`,A,ee],[`M`,j,M],[`L`,re,ie]],lineWidth:d,matrix:n},c)}),this.addShape(r,{type:`rect`,id:this.getElementId(`title-description-rect`),name:`axis-title-description-rect`,attrs:{x:f,y:p-s/2,width:s,height:s,stroke:`#000`,fill:`#000`,opacity:0,matrix:n,cursor:`pointer`}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var n=this.get(`tickStates`),r=this.getElementId(`label-`+e.id),i=t.findById(r);if(i){var a=OC(e,`label`,n);a&&i.attr(a)}var o=this.getElementId(`tickline-`+e.id),s=t.findById(o);if(s){var c=OC(e,`tickLine`,n);c&&s.attr(c)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),n=this.get(`tickStates`),r=this.get(`label`),i=this.getElementByLocalId(`label-`+e.id),a=this.get(`tickLine`),o=this.getElementByLocalId(`tickline-`+e.id);if(t.length){if(i){var s=OC(e,`label`,n);s&&i.attr(s)}if(o){var c=OC(e,`tickLine`,n);c&&o.attr(c)}}else i&&i.attr(r.style),o&&o.attr(a.style)},t}(hS)})),MC=r({ellipsisHead:()=>FC,ellipsisMiddle:()=>LC,ellipsisTail:()=>IC,getDefault:()=>PC});function NC(e,t,n,r){var i=t.getChildren(),a=!1;return H(i,function(t){var i=TS(e,t,n,r);a||=i}),a}function PC(){return IC}function FC(e,t,n){return NC(e,t,n,`head`)}function IC(e,t,n){return NC(e,t,n,`tail`)}function LC(e,t,n){return NC(e,t,n,`middle`)}var RC=t((()=>{J(),kS()})),zC=r({equidistance:()=>YC,equidistanceWithReverseBoth:()=>XC,getDefault:()=>GC,reserveBoth:()=>JC,reserveFirst:()=>KC,reserveLast:()=>qC});function BC(e){var t=e.attr(`matrix`);return t&&t[0]!==1}function VC(e){return(BC(e)?Bx(e.attr(`matrix`)):0)%360}function HC(e,t,n,r){var i=!1,a=VC(t),o=Math.abs(e?n.attr(`y`)-t.attr(`y`):n.attr(`x`)-t.attr(`x`)),s=(e?n.attr(`y`)>t.attr(`y`):n.attr(`x`)>t.attr(`x`))?t.getBBox():n.getBBox();if(e){var c=Math.abs(Math.cos(a));i=sS(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}else{var c=Math.abs(Math.sin(a));i=sS(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}return i}function UC(e,t,n,r){var i=r?.minGap||0,a=t.getChildren().slice().filter(function(e){return e.get(`visible`)});if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],l=1;l1){f=Math.ceil(f);for(var h=0;h2){var o=i[0],s=i[i.length-1];o.get(`visible`)||(o.show(),UC(e,t,!1,r)&&(a=!0)),s.get(`visible`)||(s.show(),UC(e,t,!0,r)&&(a=!0))}return a}var ZC=t((()=>{kS(),Kx(),cS()})),QC=r({fixedAngle:()=>nw,getDefault:()=>tw,unfixedAngle:()=>rw});function $C(e,t){H(e,function(e){var n=Rx({x:e.attr(`x`),y:e.attr(`y`)},t);e.attr(`matrix`,n)})}function ew(e,t,n,r){var i=t.getChildren();if(!i.length||!e&&i.length<2)return!1;var a=CS(i),o=!1;return o=e?!!n&&a>n:a>Math.abs(i[1].attr(`x`)-i[0].attr(`x`)),o&&$C(i,r(n,a)),o}function tw(){return nw}function nw(e,t,n,r){return ew(e,t,n,function(){return W(r)?r:e?Z.verticalAxisRotate:Z.horizontalAxisRotate})}function rw(e,t,n){return ew(e,t,n,function(t,n){if(!t)return e?Z.verticalAxisRotate:Z.horizontalAxisRotate;if(e)return-Math.acos(t/n);var r=0;return t>n?r=Math.PI/4:(r=Math.asin(t/n),r>Math.PI/4&&(r=Math.PI/4)),r})}var iw=t((()=>{J(),kS(),Kx(),MS()})),aw=r({autoEllipsis:()=>MC,autoHide:()=>zC,autoRotate:()=>QC}),ow=t((()=>{RC(),ZC(),iw()})),sw,cw=t((()=>{R(),yu(),J(),jC(),ow(),sw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`,locationType:`region`,start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get(`start`),t=this.get(`end`),n=[];return n.push([`M`,e.x,e.y]),n.push([`L`,t.x,t.y]),n},t.prototype.getInnerLayoutBBox=function(){var t=this.get(`start`),n=this.get(`end`),r=e.prototype.getInnerLayoutBBox.call(this),i=Math.min(t.x,n.x,r.x),a=Math.min(t.y,n.y,r.y),o=Math.max(t.x,n.x,r.maxX),s=Math.max(t.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},t.prototype.isVertical=function(){var e=this.get(`start`),t=this.get(`end`);return Wr(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get(`start`),t=this.get(`end`);return Wr(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this,n=t.get(`start`),r=t.get(`end`),i=r.x-n.x,a=r.y-n.y;return{x:n.x+i*e,y:n.y+a*e}},t.prototype.getSideVector=function(e){var t=Il([0,0],this.getAxisVector()),n=this.get(`verticalFactor`);return Ol([0,0],[t[1],t[0]*-1],e*n)},t.prototype.getAxisVector=function(){var e=this.get(`start`),t=this.get(`end`);return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,n=this.isVertical(),r=this.isHorizontal();if(!(!n&&!r)){var i=this.get(`label`),a=this.get(`title`),o=this.get(`verticalLimitLength`),s=i.offset,c=o,l=0,u=0;if(a&&(l=a.style.fontSize,u=a.spacing),c&&=c-s-u-l,H(this.get(`overlapOrder`),function(n){i[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,i[n],e,c)}),a&&B(a.offset)){var d=e.getCanvasBBox();a.offset=s+(n?d.width:d.height)+u+l/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get(`label`);return e===`autoRotate`?B(t.rotate):!0},t.prototype.autoProcessOverlap=function(e,t,n,r){var i=this,a=this.isVertical(),o=!1,s=aw[e];if(t===!0)this.get(`label`),o=s.getDefault()(a,n,r);else if(z(t))o=t(a,n,r);else if(ln(t)){var c=t;s[c.type]&&(o=s[c.type](a,n,r,c.cfg))}else s[t]&&(o=s[t](a,n,r));if(e===`autoRotate`){if(o){var l=n.getChildren(),u=this.get(`verticalFactor`);H(l,function(e){if(e.attr(`textAlign`)===`center`){var t=u>0?`end`:`start`;e.attr(`textAlign`,t)}})}}else e===`autoHide`&&H(n.getChildren().slice(0),function(e){e.get(`visible`)||(i.get(`isRegister`)&&i.unregisterElement(e),e.remove())})},t}(AC)})),lw,uw=t((()=>{R(),J(),yu(),jC(),ow(),lw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,locationType:`circle`,center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getLinePath=function(){var e=this.get(`center`),t=e.x,n=e.y,r=this.get(`radius`),i=r,a=this.get(`startAngle`),o=this.get(`endAngle`),s=[];if(Math.abs(o-a)===Math.PI*2)s=[[`M`,t,n-i],[`A`,r,i,0,1,1,t,n+i],[`A`,r,i,0,1,1,t,n-i],[`Z`]];else{var c=this.getCirclePoint(a),l=this.getCirclePoint(o),u=+(Math.abs(o-a)>Math.PI),d=a>o?0:1;s=[[`M`,t,n],[`L`,c.x,c.y],[`A`,r,i,0,u,d,l.x,l.y],[`L`,t,n]]}return s},t.prototype.getTickPoint=function(e){var t=this.get(`startAngle`),n=t+(this.get(`endAngle`)-t)*e;return this.getCirclePoint(n)},t.prototype.getSideVector=function(e,t){var n=this.get(`center`),r=[t.x-n.x,t.y-n.y],i=this.get(`verticalFactor`),a=Ml(r);return Ol(r,r,i*e/a),r},t.prototype.getAxisVector=function(e){var t=this.get(`center`),n=[e.x-t.x,e.y-t.y];return[n[1],-1*n[0]]},t.prototype.getCirclePoint=function(e,t){var n=this.get(`center`);return t||=this.get(`radius`),{x:n.x+Math.cos(e)*t,y:n.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get(`label`);return e===`autoRotate`?B(t.rotate):!0},t.prototype.processOverlap=function(e){var t=this,n=this.get(`label`),r=this.get(`title`),i=this.get(`verticalLimitLength`),a=n.offset,o=i,s=0,c=0;r&&(s=r.style.fontSize,c=r.spacing),o&&=o-a-c-s,H(this.get(`overlapOrder`),function(r){n[r]&&t.canProcessOverlap(r)&&t.autoProcessOverlap(r,n[r],e,o)}),r&&B(r.offset)&&(r.offset=a+e.getCanvasBBox().height+c+s/2)},t.prototype.autoProcessOverlap=function(e,t,n,r){var i=this,a=!1,o=aw[e];if(r>0)if(t===!0)a=o.getDefault()(!1,n,r);else if(z(t))a=t(!1,n,r);else if(ln(t)){var s=t;o[s.type]&&(a=o[s.type](!1,n,r,s.cfg))}else o[t]&&(a=o[t](!1,n,r));if(e===`autoRotate`){if(a){var c=n.getChildren(),l=this.get(`verticalFactor`);H(c,function(e){if(e.attr(`textAlign`)===`center`){var t=l>0?`end`:`start`;e.attr(`textAlign`,t)}})}}else e===`autoHide`&&H(n.getChildren().slice(0),function(e){e.get(`visible`)||(i.get(`isRegister`)&&i.unregisterElement(e),e.remove())})},t}(AC)})),dw=r({Base:()=>AC,Circle:()=>lw,Line:()=>sw}),fw=t((()=>{cw(),uw(),jC()})),pw,mw=t((()=>{R(),J(),gS(),Kx(),MS(),cS(),pw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`crosshair`,type:`base`,line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Z.lineColor}},text:{position:`start`,offset:10,autoRotate:!1,content:null,style:{fill:Z.textColor,textAlign:`center`,textBaseline:`middle`,fontFamily:Z.fontFamily}},textBackground:{padding:5,style:{stroke:Z.lineColor}}}})},t.prototype.renderInner=function(e){this.get(`line`)&&this.renderLine(e),this.get(`text`)&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get(`text`),n=t.style,r=t.autoRotate,i=t.content;if(!B(i)){var a=this.getTextPoint(),o=null;r&&(o=Rx(a,this.getRotateAngle())),this.addShape(e,{type:`text`,name:`crosshair-text`,id:this.getElementId(`text`),attrs:L(L(L({},a),{text:i,matrix:o}),n)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),n=this.get(`line`).style;this.addShape(e,{type:`path`,name:`crosshair-line`,id:this.getElementId(`line`),attrs:L({path:t},n)})},t.prototype.renderBackground=function(e){var t=this.getElementId(`text`),n=e.findById(t),r=this.get(`textBackground`);if(r&&n){var i=n.getBBox(),a=qx(r.padding),o=r.style;this.addShape(e,{type:`rect`,name:`crosshair-text-background`,id:this.getElementId(`text-background`),attrs:L({x:i.x-a[3],y:i.y-a[0],width:i.width+a[1]+a[3],height:i.height+a[0]+a[2],matrix:n.attr(`matrix`)},o)}).toBack()}},t}(hS)})),hw,gw=t((()=>{R(),cS(),mw(),hw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`,locationType:`region`,start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`).position,i=Math.atan2(n.y-t.y,n.x-t.x);return r===`start`?i-Math.PI/2:i+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`),i=r.position,a=r.offset;return oS(t,n,i,a)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,n=e.end;return[[`M`,t.x,t.y],[`L`,n.x,n.y]]},t}(pw)})),_w,vw=t((()=>{R(),cS(),mw(),_w=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,locationType:`circle`,center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,n=e.endAngle;return this.get(`text`).position===`start`?t+Math.PI/2:n-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get(`text`),t=e.position,n=e.offset,r=this.getLocation(),i=r.center,a=r.radius,o=r.startAngle,s=r.endAngle,c=t===`start`?o:s,l=this.getRotateAngle()-Math.PI,u=eS(i,a,c),d=Math.cos(l)*n,f=Math.sin(l)*n;return{x:u.x+d,y:u.y+f}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,i=e.endAngle,a=null;if(i-r===Math.PI*2){var o=t.x,s=t.y;a=[[`M`,o,s-n],[`A`,n,n,0,1,1,o,s+n],[`A`,n,n,0,1,1,o,s-n],[`Z`]]}else{var c=eS(t,n,r),l=eS(t,n,i),u=+(Math.abs(i-r)>Math.PI),d=r>i?0:1;a=[[`M`,c.x,c.y],[`A`,n,n,0,u,d,l.x,l.y]]}return a},t}(pw)})),yw,bw,xw,Sw=t((()=>{yw=`g2-crosshair`,bw=yw+`-line`,xw=yw+`-text`})),Cw,ww,Tw=t((()=>{MS(),Sw(),ww=(Cw={},Cw[``+yw]={position:`relative`},Cw[``+bw]={position:`absolute`,backgroundColor:`rgba(0, 0, 0, 0.25)`},Cw[``+xw]={position:`absolute`,color:Z.textColor,fontFamily:Z.fontFamily},Cw)})),Ew,Dw=t((()=>{R(),xC(),J(),cS(),CC(),Sw(),Tw(),Ew=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`crosshair`,type:`html`,locationType:`region`,start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:`
`,crosshairTpl:`
`,textTpl:`{content}`,domStyles:null,containerClassName:yw,defaultStyles:ww,defaultCfg:{text:{position:`start`,content:null,align:`center`,offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=eC(this.get(`crosshairTpl`));e.appendChild(t),this.applyStyle(bw,t),this.set(`crosshairEl`,t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get(`text`),i=r.position,a=r.offset;return oS(t,n,i,a)},t.prototype.resetText=function(){var e=this.get(`text`),t=this.get(`textEl`);if(e){var n=e.content;if(!t){var r=this.getContainer();t=eC(Di(this.get(`textTpl`),e)),r.appendChild(t),this.applyStyle(xw,t),this.set(`textEl`,t)}t.innerHTML=n}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get(`crosshairEl`);e||=(this.initCrossHair(),this.get(`crosshairEl`));var t=this.get(`start`),n=this.get(`end`),r=Math.min(t.x,n.x),i=Math.min(t.y,n.y);this.isVertical(t,n)?vC(e,{width:`1px`,height:aS(Math.abs(n.y-t.y))}):vC(e,{height:`1px`,width:aS(Math.abs(n.x-t.x))}),vC(e,{top:aS(i),left:aS(r)}),this.alignText()},t.prototype.alignText=function(){var e=this.get(`textEl`);if(e){var t=this.get(`text`).align,n=e.clientWidth,r=this.getTextPoint();switch(t){case`center`:r.x-=n/2;break;case`right`:r.x-=n;case`left`:break}vC(e,{top:aS(r.y),left:aS(r.x)})}},t.prototype.updateInner=function(t){hi(t,`text`)&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(SC)})),Ow=r({Base:()=>pw,Circle:()=>_w,Html:()=>Ew,Line:()=>hw}),kw=t((()=>{gw(),vw(),mw(),Dw()})),Aw,jw=t((()=>{R(),J(),gS(),MS(),Aw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`grid`,line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:`line`,style:{lineWidth:1,stroke:Z.lineColor}}}})},t.prototype.getLineType=function(){return(this.get(`line`)||this.get(`defaultCfg`).line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var n=this.getGridPath(e),r=t.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get(`closed`)?n=n.concat(i):(i[0][0]=`L`,n=n.concat(i),n.push([`Z`])),n},t.prototype.getPathStyle=function(){return this.get(`line`).style},t.prototype.drawGrid=function(e){var t=this,n=this.get(`line`),r=this.get(`items`),i=this.get(`alternateColor`),a=null;H(r,function(o,s){var c=o.id||s;if(n){var l=t.getPathStyle();l=z(l)?l(o,s,r):l;var u=t.getElementId(`line-`+c),d=t.getGridPath(o.points);t.addShape(e,{type:`path`,name:`grid-line`,id:u,attrs:G({path:d},l)})}if(i&&s>0){var f=t.getElementId(`region-`+c),p=s%2==0;if(U(i))p&&t.drawAlternateRegion(f,e,a.points,o.points,i);else{var m=p?i[1]:i[0];t.drawAlternateRegion(f,e,a.points,o.points,m)}}a=o})},t.prototype.drawAlternateRegion=function(e,t,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(t,{type:`path`,id:e,name:`grid-region`,attrs:{path:a,fill:i}})},t}(hS)}));function Mw(e,t,n,r){var i=n-e,a=r-t;return Math.sqrt(i*i+a*a)}var Nw,Pw=t((()=>{R(),J(),jw(),Nw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`circle`,center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var n=this.getLineType(),r=this.get(`closed`),i=[];if(e.length)if(n===`circle`){var a=this.get(`center`),o=e[0],s=Mw(a.x,a.y,o.x,o.y),c=+!t;r?(i.push([`M`,a.x,a.y-s]),i.push([`A`,s,s,0,0,c,a.x,a.y+s]),i.push([`A`,s,s,0,0,c,a.x,a.y-s]),i.push([`Z`])):H(e,function(e,t){t===0?i.push([`M`,e.x,e.y]):i.push([`A`,s,s,0,0,c,e.x,e.y])})}else H(e,function(e,t){t===0?i.push([`M`,e.x,e.y]):i.push([`L`,e.x,e.y])}),r&&i.push([`Z`]);return i},t}(Aw)})),Fw,Iw=t((()=>{R(),J(),jw(),Fw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`line`})},t.prototype.getGridPath=function(e){var t=[];return H(e,function(e,n){n===0?t.push([`M`,e.x,e.y]):t.push([`L`,e.x,e.y])}),t},t}(Aw)})),Lw=r({Base:()=>Aw,Circle:()=>Nw,Line:()=>Fw}),Rw=t((()=>{jw(),Pw(),Iw()})),zw,Bw=t((()=>{R(),gS(),cS(),zw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`legend`,layout:`horizontal`,locationType:`point`,x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),n=this.get(`maxWidth`),r=this.get(`maxHeight`),i=t.width,a=t.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Qx(t.minX,t.minY,i,a)},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get(`x`),t=this.get(`y`),n=this.get(`offsetX`),r=this.get(`offsetY`);this.moveElementTo(this.get(`group`),{x:e+n,y:t+r})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get(`currentPoint`)},t.prototype.setDrawPoint=function(e){return this.set(`currentPoint`,e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get(`title`)&&this.drawTitle(e),this.drawLegendContent(e),this.get(`background`)&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get(`background`),n=e.getBBox(),r=qx(t.padding),i=L({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style);this.addShape(e,{type:`rect`,id:this.getElementId(`background`),name:`legend-background`,attrs:i}).toBack()},t.prototype.drawTitle=function(e){var t=this.get(`currentPoint`),n=this.get(`title`),r=n.spacing,i=n.style,a=n.text,o=this.addShape(e,{type:`text`,id:this.getElementId(`title`),name:`legend-title`,attrs:L({text:a,x:t.x,y:t.y},i)}).getBBox();this.set(`currentPoint`,{x:t.x,y:o.maxY+r})},t.prototype.resetDraw=function(){var e=this.get(`background`),t={x:0,y:0};if(e){var n=qx(e.padding);t.x=n[3],t.y=n[0]}this.set(`currentPoint`,t)},t}(hS)})),Vw,Hw,Uw,Ww,Gw,Kw,qw=t((()=>{R(),J(),kS(),Kx(),kC(),MS(),Bw(),Vw={marker:{style:{inactiveFill:`#000`,inactiveOpacity:.45,fill:`#000`,opacity:1,size:12}},text:{style:{fill:`#ccc`,fontSize:12}}},Hw={fill:Z.textColor,fontSize:12,textAlign:`start`,textBaseline:`middle`,fontFamily:Z.fontFamily,fontWeight:`normal`,lineHeight:12},Uw=`navigation-arrow-right`,Ww=`navigation-arrow-left`,Gw={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Kw=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId(`item-group`);if(t.currentPageIndex>1){--t.currentPageIndex,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get(`animate`)?e.animate({matrix:n},100):e.attr({matrix:n})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId(`item-group`);if(t.currentPageIndexm&&(m=v),d===`horizontal`?(h&&hs}if(a===`horizontal`){var S=this.get(`maxRow`)||1,C=d+(S===1?0:b),w=s-u-m.width-m.minX;this.pageHeight=C*S,this.pageWidth=w,H(o,function(e){var t=e.getBBox(),i=l||t.width;(_&&_v&&(v=t.width)}),y=v,v+=u,s&&(v=Math.min(s,v),y=Math.min(s,y)),this.pageWidth=v,this.pageHeight=c-Math.max(m.height,d+b);var T=Math.floor(this.pageHeight/(d+b));H(o,function(e,t){t!==0&&t%T===0&&(g+=1,h.x+=v,h.y=i),n.moveElementTo(e,h),e.getParent().setClip({type:`rect`,attrs:{x:h.x,y:h.y,width:v,height:d}}),h.y+=d+b}),this.totalPagesCnt=g,this.moveElementTo(p,{x:r+y/2-m.width/2-m.minX,y:c-m.height-m.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:`rect`,attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),a===`horizontal`&&this.get(`maxRow`)?this.totalPagesCnt=Math.ceil(g/this.get(`maxRow`)):this.totalPagesCnt=g,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),t.attr(`matrix`,this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,n,r){var i={x:0,y:0},a=this.addGroup(e,{id:this.getElementId(`navigation-group`),name:`legend-navigation`}),o=K(r.marker,`style`,{}),s=o.size,c=s===void 0?12:s,l=pt(o,[`size`]),u=this.drawArrow(a,i,Ww,t===`horizontal`?`up`:`left`,c,l);u.on(`click`,this.onNavigationBack);var d=u.getBBox();i.x+=d.width+2;var f=this.addShape(a,{type:`text`,id:this.getElementId(`navigation-text`),name:`navigation-text`,attrs:L({x:i.x,y:i.y+c/2,text:n,textBaseline:`middle`},K(r.text,`style`))}).getBBox();return i.x+=f.width+2,this.drawArrow(a,i,Uw,t===`horizontal`?`down`:`right`,c,l).on(`click`,this.onNavigationAfter),a},t.prototype.updateNavigation=function(e){var t=ya({},Vw,this.get(`pageNavigator`)).marker.style,n=t.fill,r=t.opacity,i=t.inactiveFill,a=t.inactiveOpacity,o=this.currentPageIndex+`/`+this.totalPagesCnt,s=e?e.getChildren()[1]:this.getElementByLocalId(`navigation-text`),c=e?e.findById(this.getElementId(Ww)):this.getElementByLocalId(Ww),l=e?e.findById(this.getElementId(Uw)):this.getElementByLocalId(Uw);s.attr(`text`,o),c.attr(`opacity`,this.currentPageIndex===1?a:r),c.attr(`fill`,this.currentPageIndex===1?i:n),c.attr(`cursor`,this.currentPageIndex===1?`not-allowed`:`pointer`),l.attr(`opacity`,this.currentPageIndex===this.totalPagesCnt?a:r),l.attr(`fill`,this.currentPageIndex===this.totalPagesCnt?i:n),l.attr(`cursor`,this.currentPageIndex===this.totalPagesCnt?`not-allowed`:`pointer`);var u=c.getBBox().maxX+2;s.attr(`x`,u),u+=s.getBBox().width+2,this.updateArrowPath(l,{x:u,y:0})},t.prototype.drawArrow=function(e,t,n,r,i,a){var o=t.x,s=t.y,c=this.addShape(e,{type:`path`,id:this.getElementId(n),name:n,attrs:L({size:i,direction:r,path:[[`M`,o+i/2,s],[`L`,o,s+i],[`L`,o+i,s+i],[`Z`]],cursor:`pointer`},a)});return c.attr(`matrix`,Rx({x:o+i/2,y:s+i/2},Gw[r])),c},t.prototype.updateArrowPath=function(e,t){var n=t.x,r=t.y,i=e.attr(),a=i.size,o=i.direction,s=Rx({x:n+a/2,y:r+a/2},Gw[o]);e.attr(`path`,[[`M`,n+a/2,r],[`L`,n,r+a],[`L`,n+a,r+a],[`Z`]]),e.attr(`matrix`,s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this,t=e.currentPageIndex,n=e.pageWidth,r=e.pageHeight;return zx(this.get(`layout`)===`horizontal`?{x:0,y:r*(1-t)}:{x:n*(1-t),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var n=t.getChildren(),r=this.get(`itemStates`);H(n,function(t){var n=t.get(`name`).split(`-`)[2],i=OC(e,n,r);i&&(t.attr(i),n===`marker`&&!(t.get(`isStroke`)&&t.get(`isFill`))&&(t.get(`isStroke`)&&t.attr(`fill`,null),t.get(`isFill`)&&t.attr(`stroke`,null)))})}},t.prototype.getLimitItemWidth=function(){var e=this.get(`itemWidth`),t=this.get(`maxItemWidth`);return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(zw)})),Jw,Yw,Xw,Zw=t((()=>{R(),J(),MS(),cS(),Bw(),Jw=1.4,Yw=.4,Xw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{type:`continue`,min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:`rail`,spacing:5,formatter:null,style:{fontSize:12,fill:Z.textColor,textBaseline:`middle`,fontFamily:Z.fontFamily}},handler:{size:10,style:{fill:`#fff`,stroke:`#333`}},track:{},rail:{type:`color`,size:20,defaultLength:100,style:{fill:`#DCDEE2`}},title:{spacing:5,style:{fill:Z.textColor,fontSize:12,textAlign:`start`,textBaseline:`top`}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get(`min`),max:this.get(`max`)}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set(`value`,e);var n=this.get(`group`);this.resetTrackClip(),this.get(`slidable`)&&this.resetHandlers(n),this.delegateEmit(`valuechanged`,{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get(`group`);this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get(`slidable`)&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on(`legend-handler-min:drag`,function(e){var n=t.getValueByCanvasPoint(e.x,e.y),r=t.getCurrentValue()[1];rn&&(r=n),t.setValue([r,n])})},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,n=null;e.on(`legend-track:dragstart`,function(e){n={x:e.x,y:e.y}}),e.on(`legend-track:drag`,function(e){if(n){var r=t.getValueByCanvasPoint(n.x,n.y),i=t.getValueByCanvasPoint(e.x,e.y),a=t.getCurrentValue(),o=a[1]-a[0],s=t.getRange(),c=i-r;c<0?a[0]+c>s.min?t.setValue([a[0]+c,a[1]+c]):t.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+ci&&(c=i),c0&&this.changeRailLength(r,i,n[i]-l)}},t.prototype.changeRailLength=function(e,t,n){var r=e.getBBox(),i=t===`height`?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height);e.attr(`path`,i)},t.prototype.changeRailPosition=function(e,t,n){var r=e.getBBox(),i=this.getRailPath(t,n,r.width,r.height);e.attr(`path`,i)},t.prototype.fixedHorizontal=function(e,t,n,r){var i=this.get(`label`),a=i.align,o=i.spacing,s=n.getBBox(),c=e.getBBox(),l=t.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),a===`rail`?(e.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+c.width+o,r.y),t.attr({x:r.x+c.width+s.width+o*2,y:r.y+u/2})):a===`top`?(e.attr({x:r.x,y:r.y}),t.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o)):(this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x,y:r.y+s.height+o}),t.attr({x:r.x+s.width,y:r.y+s.height+o}))},t.prototype.fixedVertail=function(e,t,n,r){var i=this.get(`label`),a=i.align,o=i.spacing,s=n.getBBox(),c=e.getBBox(),l=t.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),a===`rail`)e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o),t.attr({x:r.x,y:r.y+c.height+s.height+o*2});else if(a===`right`)e.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x+s.width+o,y:r.y+s.height});else{var u=Math.max(c.width,l.width);e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+o,r.y),t.attr({x:r.x,y:r.y+s.height})}},t}(zw)})),Qw=r({Base:()=>zw,Category:()=>Kw,Continuous:()=>Xw}),$w=t((()=>{qw(),Zw(),Bw()})),eT=r({CONTAINER_CLASS:()=>tT,CROSSHAIR_X:()=>cT,CROSSHAIR_Y:()=>lT,LIST_CLASS:()=>rT,LIST_ITEM_CLASS:()=>iT,MARKER_CLASS:()=>aT,NAME_CLASS:()=>sT,TITLE_CLASS:()=>nT,VALUE_CLASS:()=>oT}),tT,nT,rT,iT,aT,oT,sT,cT,lT,uT=t((()=>{tT=`g2-tooltip`,nT=`g2-tooltip-title`,rT=`g2-tooltip-list`,iT=`g2-tooltip-list-item`,aT=`g2-tooltip-marker`,oT=`g2-tooltip-value`,sT=`g2-tooltip-name`,cT=`g2-tooltip-crosshair-x`,lT=`g2-tooltip-crosshair-y`})),dT,fT,pT=t((()=>{MS(),uT(),fT=(dT={},dT[``+tT]={position:`absolute`,visibility:`visible`,zIndex:8,transition:`visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)`,backgroundColor:`rgba(255, 255, 255, 0.9)`,boxShadow:`0px 0px 10px #aeaeae`,borderRadius:`3px`,color:`rgb(87, 87, 87)`,fontSize:`12px`,fontFamily:Z.fontFamily,lineHeight:`20px`,padding:`10px 10px 6px 10px`},dT[``+nT]={marginBottom:`4px`},dT[``+rT]={margin:`0px`,listStyleType:`none`,padding:`0px`},dT[``+iT]={listStyleType:`none`,marginBottom:`4px`},dT[``+aT]={width:`8px`,height:`8px`,borderRadius:`50%`,display:`inline-block`,marginRight:`8px`},dT[``+oT]={display:`inline-block`,float:`right`,marginLeft:`30px`},dT[``+cT]={position:`absolute`,width:`1px`,backgroundColor:`rgba(0, 0, 0, 0.25)`},dT[``+lT]={position:`absolute`,height:`1px`,backgroundColor:`rgba(0, 0, 0, 0.25)`},dT)}));function mT(e,t,n,r,i){return{left:ei.x+i.width,top:ti.y+i.height}}function hT(e,t,n,r,i,a){var o=e,s=t;switch(a){case`left`:o=e-r-n,s=t-i/2;break;case`right`:o=e+n,s=t-i/2;break;case`top`:o=e-r/2,s=t-i-n;break;case`bottom`:o=e-r/2,s=t+n;break;default:o=e+n,s=t-i-n;break}return{x:o,y:s}}function gT(e,t,n,r,i,a,o){var s=hT(e,t,n,r,i,a);if(o){var c=mT(s.x,s.y,r,i,o);a===`auto`?(c.right&&(s.x=Math.max(0,e-r-n)),c.top&&(s.y=Math.max(0,t-i-n))):a===`top`||a===`bottom`?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-r),a===`top`&&c.top&&(s.y=t+n),a===`bottom`&&c.bottom&&(s.y=t-i-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-i),a===`left`&&c.left&&(s.x=e+n),a===`right`&&c.right&&(s.x=e-r-n))}return s}var _T=t((()=>{}));function vT(e,t){var n=!1;return H(t,function(t){if(hi(e,t))return n=!0,!1}),n}var yT,bT=t((()=>{R(),Sv(),xC(),J(),CC(),cS(),uT(),pT(),_T(),yT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`tooltip`,type:`html`,x:0,y:0,items:[],customContent:null,containerTpl:`
    `,itemTpl:`
  • + + {name}: + {value} +
  • `,xCrosshairTpl:`
    `,yCrosshairTpl:`
    `,title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:tT,crosshairs:null,offset:10,position:`right`,domStyles:null,defaultStyles:fT})},t.prototype.render=function(){this.get(`customContent`)?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(``),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();!e||this.destroyed||(this.set(`visible`,!0),vC(e,{visibility:`visible`}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();!e||this.destroyed||(this.set(`visible`,!1),vC(e,{visibility:`hidden`}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get(`x`),y:this.get(`y`)}},t.prototype.setLocation=function(e){this.set(`x`,e.x),this.set(`y`,e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?``:`none`,n=this.get(`xCrosshairDom`),r=this.get(`yCrosshairDom`);n&&vC(n,{display:t}),r&&vC(r,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get(`customContent`)){this.get(`container`)&&this.get(`container`).remove();var t=this.getHtmlContentNode();this.get(`parent`).appendChild(t),this.set(`container`,t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){this.get(`customContent`)?this.renderCustomContent():(vT(t,[`title`,`showTitle`])&&this.resetTitle(),hi(t,`items`)&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e=this.get(`x`),t=this.get(`y`),n=this.get(`offset`),r=this.getOffset(),i=r.offsetX,a=r.offsetY,o=this.get(`position`),s=this.get(`region`),c=this.getContainer(),l=this.getBBox(),u=l.width,d=l.height,f;s&&(f=Xx(s));var p=gT(e,t,n,u,d,o,f);vC(c,{left:aS(p.x+i),top:aS(p.y+a)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get(`parent`),n=this.get(`container`);n&&n.parentNode===t?t.replaceChild(e,n):t.appendChild(e),this.set(`container`,e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get(`customContent`);if(t){var n=t(this.get(`title`),this.get(`items`));e=ta(n)?n:eC(n)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(nT)[0],n=e.getElementsByClassName(rT)[0];this.set(`titleDom`,t),this.set(`listDom`,n)},t.prototype.resetTitle=function(){var e=this.get(`title`);this.get(`showTitle`)&&e?this.setTitle(e):this.setTitle(``)},t.prototype.setTitle=function(e){var t=this.get(`titleDom`);t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get(`crosshairsRegion`),t=this.get(`crosshairs`);if(!e||!t)this.clearCrosshairs();else{var n=Xx(e),r=this.get(`xCrosshairDom`),i=this.get(`yCrosshairDom`);t===`x`?(this.resetCrosshair(`x`,n),i&&(i.remove(),this.set(`yCrosshairDom`,null))):t===`y`?(this.resetCrosshair(`y`,n),r&&(r.remove(),this.set(`xCrosshairDom`,null))):(this.resetCrosshair(`x`,n),this.resetCrosshair(`y`,n)),this.setCrossHairsVisible(this.get(`visible`))}},t.prototype.resetCrosshair=function(e,t){var n=this.checkCrosshair(e),r=this.get(e);e===`x`?vC(n,{left:aS(r),top:aS(t.y),height:aS(t.height)}):vC(n,{top:aS(r),left:aS(t.x),width:aS(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+`CrosshairDom`,n=e+`CrosshairTpl`,r=eT[`CROSSHAIR_`+e.toUpperCase()],i=this.get(t),a=this.get(`parent`);return i||(i=eC(this.get(n)),this.applyStyle(r,i),a.appendChild(i),this.set(t,i)),i},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get(`items`),t=this.get(`itemTpl`),n=this.get(`listDom`);n&&(H(e,function(e){var r=xv.toCSSGradient(e.color),i=eC(Di(t,L(L({},e),{color:r})));n.appendChild(i)}),this.applyChildrenStyles(n,this.get(`domStyles`)))},t.prototype.clearItemDoms=function(){this.get(`listDom`)&&Jx(this.get(`listDom`))},t.prototype.clearCrosshairs=function(){var e=this.get(`xCrosshairDom`),t=this.get(`yCrosshairDom`);e&&e.remove(),t&&t.remove(),this.set(`xCrosshairDom`,null),this.set(`yCrosshairDom`,null)},t}(SC)})),xT=r({Html:()=>yT}),ST=t((()=>{bT()})),CT,wT,TT,ET=t((()=>{CT={opacity:0},wT={stroke:`#C5C5C5`,strokeOpacity:.85},TT={fill:`#CACED4`,opacity:.85}}));function DT(e){return Ma(e,function(e,t){return[t===0?`M`:`L`,e[0],e[1]]})}function OT(e){return DT(e)}function kT(e){if(e.length<=2)return OT(e);var t=[];H(e,function(e){Oa(e,t.slice(t.length-2))||t.push(e[0],e[1])});var n=Uh(t,!1),r=rr(e),i=r[0],a=r[1];return n.unshift([`M`,i,a]),n}function AT(e,t,n,r){r===void 0&&(r=!0);var i=new Ly({values:e}),a=new zv({values:Ma(e,function(e,t){return t})}),o=Ma(e,function(e,r){return[a.scale(r)*t,n-i.scale(e)*n]});return r?kT(o):OT(o)}function jT(e,t){var n=new Ly({values:e}),r=n.max<0?n.max:Math.max(0,n.min);return t-n.scale(r)*t}function MT(e,t,n,r){var i=Dt(e),a=jT(r,n);return i.push([`L`,t,a]),i.push([`L`,0,a]),i.push([`Z`]),i}var NT=t((()=>{R(),v_(),px(),J()})),PT,FT=t((()=>{R(),gS(),ET(),NT(),PT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`trend`,x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:CT,lineStyle:wT,areaStyle:TT})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,i=t.data,a=t.smooth,o=t.isArea,s=t.backgroundStyle,c=t.lineStyle,l=t.areaStyle;this.addShape(e,{id:this.getElementId(`background`),type:`rect`,attrs:L({x:0,y:0,width:n,height:r},s)});var u=AT(i,n,r,a);if(this.addShape(e,{id:this.getElementId(`line`),type:`path`,attrs:L({path:u},c)}),o){var d=MT(u,n,r,i);this.addShape(e,{id:this.getElementId(`area`),type:`path`,attrs:L({path:d},l)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,n=e.y;this.moveElementTo(this.get(`group`),{x:t,y:n})},t}(hS)})),IT,LT,RT=t((()=>{R(),gS(),IT={fill:`#F7F7F7`,stroke:`#BFBFBF`,radius:2,opacity:1,cursor:`ew-resize`,highLightFill:`#FFF`},LT=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`handler`,x:0,y:0,width:10,height:24,style:IT})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,i=t.style,a=i.fill,o=i.stroke,s=i.radius,c=i.opacity,l=i.cursor;this.addShape(e,{type:`rect`,id:this.getElementId(`background`),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:c,cursor:l}});var u=1/3*n,d=2/3*n,f=1/4*r,p=3/4*r;this.addShape(e,{id:this.getElementId(`line-left`),type:`line`,attrs:{x1:u,y1:f,x2:u,y2:p,stroke:o,cursor:l}}),this.addShape(e,{id:this.getElementId(`line-right`),type:`line`,attrs:{x1:d,y1:f,x2:d,y2:p,stroke:o,cursor:l}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get(`group`).on(`mouseenter`,function(){var t=e.get(`style`).highLightFill;e.getElementByLocalId(`background`).attr(`fill`,t),e.draw()}),this.get(`group`).on(`mouseleave`,function(){var t=e.get(`style`).fill;e.getElementByLocalId(`background`).attr(`fill`,t),e.draw()})},t.prototype.draw=function(){var e=this.get(`container`).get(`canvas`);e&&e.draw()},t}(hS)})),zT,BT,VT,HT,UT,WT=t((()=>{zT={fill:`#416180`,opacity:.05},BT={fill:`#5B8FF9`,opacity:.15,cursor:`move`},VT={width:10,height:24},HT={textBaseline:`middle`,fill:`#000`,opacity:.45},UT=`sliderchange`})),GT,KT=t((()=>{R(),J(),gS(),FT(),RT(),WT(),GT=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(n){t.currentTarget=e;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),t.prevX=K(r,`touches.0.pageX`,r.pageX),t.prevY=K(r,`touches.0.pageY`,r.pageY);var i=t.getContainerDOM();i.addEventListener(`mousemove`,t.onMouseMove),i.addEventListener(`mouseup`,t.onMouseUp),i.addEventListener(`mouseleave`,t.onMouseUp),i.addEventListener(`touchmove`,t.onMouseMove),i.addEventListener(`touchend`,t.onMouseUp),i.addEventListener(`touchcancel`,t.onMouseUp)}},t.onMouseMove=function(e){var n=t.cfg.width,r=[t.get(`start`),t.get(`end`)];e.stopPropagation(),e.preventDefault();var i=K(e,`touches.0.pageX`,e.pageX),a=K(e,`touches.0.pageY`,e.pageY),o=i-t.prevX,s=t.adjustOffsetRange(o/n);t.updateStartEnd(s),t.updateUI(t.getElementByLocalId(`foreground`),t.getElementByLocalId(`minText`),t.getElementByLocalId(`maxText`)),t.prevX=i,t.prevY=a,t.draw(),t.emit(UT,[t.get(`start`),t.get(`end`)].sort()),t.delegateEmit(`valuechanged`,{originValue:r,value:[t.get(`start`),t.get(`end`)]})},t.onMouseUp=function(){t.currentTarget&&=void 0;var e=t.getContainerDOM();e&&(e.removeEventListener(`mousemove`,t.onMouseMove),e.removeEventListener(`mouseup`,t.onMouseUp),e.removeEventListener(`mouseleave`,t.onMouseUp),e.removeEventListener(`touchmove`,t.onMouseMove),e.removeEventListener(`touchend`,t.onMouseUp),e.removeEventListener(`touchcancel`,t.onMouseUp))},t}return t.prototype.setRange=function(e,t){this.set(`minLimit`,e),this.set(`maxLimit`,t);var n=this.get(`start`),r=this.get(`end`),i=jr(n,e,t),a=jr(r,e,t);!this.get(`isInit`)&&(n!==i||r!==a)&&this.setValue([i,a])},t.prototype.getRange=function(){return{min:this.get(`minLimit`)||0,max:this.get(`maxLimit`)||1}},t.prototype.setValue=function(e){var t=this.getRange();if(V(e)&&e.length===2){var n=[this.get(`start`),this.get(`end`)];this.update({start:jr(e[0],t.min,t.max),end:jr(e[1],t.min,t.max)}),this.get(`updateAutoRender`)||this.render(),this.delegateEmit(`valuechanged`,{originValue:n,value:e})}},t.prototype.getValue=function(){return[this.get(`start`),this.get(`end`)]},t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`slider`,x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:zT,foregroundStyle:BT,handlerStyle:VT,textStyle:HT}})},t.prototype.update=function(t){var n=t.start,r=t.end,i=L({},t);B(n)||(i.start=jr(n,0,1)),B(r)||(i.end=jr(r,0,1)),e.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId(`minHandler`)),this.maxHandler=this.getChildComponentById(this.getElementId(`maxHandler`)),this.trend=this.getChildComponentById(this.getElementId(`trend`))},t.prototype.init=function(){this.set(`start`,jr(this.get(`start`),0,1)),this.set(`end`,jr(this.get(`end`),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId(`foreground`),this.getElementByLocalId(`minText`),this.getElementByLocalId(`maxText`))},t.prototype.renderInner=function(e){var t=this.cfg,n=t.start,r=t.end,i=t.width,a=t.height,o=t.trendCfg,s=o===void 0?{}:o,c=t.minText,l=t.maxText,u=t.backgroundStyle,d=u===void 0?{}:u,f=t.foregroundStyle,p=f===void 0?{}:f,m=t.textStyle,h=m===void 0?{}:m,g=ya({},IT,this.cfg.handlerStyle);n*i,r*i,no(K(s,`data`))&&(this.trend=this.addComponent(e,L({component:PT,id:this.getElementId(`trend`),x:0,y:0,width:i,height:a},s))),this.addShape(e,{id:this.getElementId(`background`),type:`rect`,attrs:L({x:0,y:0,width:i,height:a},d)}),this.addShape(e,{id:this.getElementId(`minText`),type:`text`,attrs:L({y:a/2,textAlign:`right`,text:c,silent:!1},h)}),this.addShape(e,{id:this.getElementId(`maxText`),type:`text`,attrs:L({y:a/2,textAlign:`left`,text:l,silent:!1},h)}),this.addShape(e,{id:this.getElementId(`foreground`),name:`foreground`,type:`rect`,attrs:L({y:0,height:a},p)});var _=K(g,`width`,10),v=K(g,`height`,24);this.minHandler=this.addComponent(e,{component:LT,id:this.getElementId(`minHandler`),name:`handler-min`,x:0,y:(a-v)/2,width:_,height:v,cursor:`ew-resize`,style:g}),this.maxHandler=this.addComponent(e,{component:LT,id:this.getElementId(`maxHandler`),name:`handler-max`,x:0,y:(a-v)/2,width:_,height:v,cursor:`ew-resize`,style:g})},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,n){var r=this.cfg,i=r.start,a=r.end,o=r.width,s=r.minText,c=r.maxText,l=r.handlerStyle,u=r.height,d=i*o,f=a*o;this.trend&&(this.trend.update({width:o,height:u}),this.get(`updateAutoRender`)||this.trend.render()),e.attr(`x`,d),e.attr(`width`,f-d);var p=K(l,`width`,10);t.attr(`text`,s),n.attr(`text`,c);var m=this._dodgeText([d,f],t,n),h=m[0],g=m[1];this.minHandler&&(this.minHandler.update({x:d-p/2}),this.get(`updateAutoRender`)||this.minHandler.render()),H(h,function(e,n){return t.attr(n,e)}),this.maxHandler&&(this.maxHandler.update({x:f-p/2}),this.get(`updateAutoRender`)||this.maxHandler.render()),H(g,function(e,t){return n.attr(t,e)})},t.prototype.bindEvents=function(){var e=this.get(`group`);e.on(`handler-min:mousedown`,this.onMouseDown(`minHandler`)),e.on(`handler-min:touchstart`,this.onMouseDown(`minHandler`)),e.on(`handler-max:mousedown`,this.onMouseDown(`maxHandler`)),e.on(`handler-max:touchstart`,this.onMouseDown(`maxHandler`));var t=e.findById(this.getElementId(`foreground`));t.on(`mousedown`,this.onMouseDown(`foreground`)),t.on(`touchstart`,this.onMouseDown(`foreground`))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case`minHandler`:var i=0-n,a=1-n;return Math.min(a,Math.max(i,e));case`maxHandler`:var i=0-r,a=1-r;return Math.min(a,Math.max(i,e));case`foreground`:var i=0-n,a=1-r;return Math.min(a,Math.max(i,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case`minHandler`:n+=e;break;case`maxHandler`:r+=e;break;case`foreground`:n+=e,r+=e;break}this.set(`start`,n),this.set(`end`,r)},t.prototype._dodgeText=function(e,t,n){var r,i,a=this.cfg,o=a.handlerStyle,s=a.width,c=2,l=K(o,`width`,10),u=e[0],d=e[1],f=!1;u>d&&(r=[d,u],u=r[0],d=r[1],i=[n,t],t=i[0],n=i[1],f=!0);var p=t.getBBox(),m=n.getBBox(),h=p.width>u-c?{x:u+l/2+c,textAlign:`left`}:{x:u-l/2-c,textAlign:`right`},g=m.width>s-d-c?{x:d-l/2-c,textAlign:`right`}:{x:d+l/2+c,textAlign:`left`};return f?[g,h]:[h,g]},t.prototype.draw=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);return t&&t.get(`container`)},t}(hS)})),qT=t((()=>{KT()})),JT,YT,XT,ZT=t((()=>{R(),xC(),J(),gS(),JT={trackColor:`rgba(0,0,0,0)`,thumbColor:`rgba(0,0,0,0.15)`,size:8,lineCap:`round`},YT={default:JT,hover:{thumbColor:`rgba(0,0,0,0.2)`}},XT=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=Qa,t.onStartEvent=function(e){return function(n){t.isMobile=e,n.originalEvent.preventDefault();var r=e?K(n.originalEvent,`touches.0.clientX`):n.clientX,i=e?K(n.originalEvent,`touches.0.clientY`):n.clientY;t.startPos=t.cfg.isHorizontal?r:i,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),n=[];n=t.isMobile?[ZS(e,`touchmove`,t.onMouseMove),ZS(e,`touchend`,t.onMouseUp),ZS(e,`touchcancel`,t.onMouseUp)]:[ZS(e,`mousemove`,t.onMouseMove),ZS(e,`mouseup`,t.onMouseUp),ZS(e,`mouseleave`,t.onMouseUp)],t.clearEvents=function(){n.forEach(function(e){e.remove()})}},t.onMouseMove=function(e){var n=t.cfg,r=n.isHorizontal,i=n.thumbOffset;e.preventDefault();var a=t.isMobile?K(e,`touches.0.clientX`):e.clientX,o=t.isMobile?K(e,`touches.0.clientY`):e.clientY,s=r?a:o,c=s-t.startPos;t.startPos=s,t.updateThumbOffset(i+c)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var n=t.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=t.getContainerDOM().getBoundingClientRect(),c=e.clientX,l=e.clientY,u=r?c-s.left-i-o/2:l-s.top-a-o/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId(`thumb`).attr(`stroke`,e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId(`thumb`).attr(`stroke`,e),t.draw()},t}return t.prototype.setRange=function(e,t){this.set(`minLimit`,e),this.set(`maxLimit`,t);var n=this.getValue(),r=jr(n,e,t);n!==r&&!this.get(`isInit`)&&this.setValue(r)},t.prototype.getRange=function(){return{min:this.get(`minLimit`)||0,max:this.get(`maxLimit`)||1}},t.prototype.setValue=function(e){var t=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get(`trackLen`)-this.get(`thumbLen`))*jr(e,t.min,t.max)}),this.delegateEmit(`valuechange`,{originalValue:n,value:this.getValue()})},t.prototype.getValue=function(){return jr(this.get(`thumbOffset`)/(this.get(`trackLen`)-this.get(`thumbLen`)),0,1)},t.prototype.getDefaultCfg=function(){return L(L({},e.prototype.getDefaultCfg.call(this)),{name:`scrollbar`,isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:YT})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get(`group`),{x:this.get(`x`),y:this.get(`y`)})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,n=t.trackLen,r=t.theme,i=ya({},YT,r===void 0?{default:{}}:r).default,a=i.lineCap,o=i.trackColor,s=i.size,c=K(this.cfg,`size`,s),l=this.get(`isHorizontal`)?{x1:0+c/2,y1:c/2,x2:n-c/2,y2:c/2,lineWidth:c,stroke:o,lineCap:a}:{x1:c/2,y1:0+c/2,x2:c/2,y2:n-c/2,lineWidth:c,stroke:o,lineCap:a};return this.addShape(e,{id:this.getElementId(`track`),name:`track`,type:`line`,attrs:l})},t.prototype.renderThumbShape=function(e){var t=this.cfg,n=t.thumbOffset,r=t.thumbLen,i=t.theme,a=ya({},YT,i).default,o=a.size,s=a.lineCap,c=a.thumbColor,l=K(this.cfg,`size`,o),u=this.get(`isHorizontal`)?{x1:n+l/2,y1:l/2,x2:n+r-l/2,y2:l/2,lineWidth:l,stroke:c,lineCap:s,cursor:`default`}:{x1:l/2,y1:n+l/2,x2:l/2,y2:n+r-l/2,lineWidth:l,stroke:c,lineCap:s,cursor:`default`};return this.addShape(e,{id:this.getElementId(`thumb`),name:`thumb`,type:`line`,attrs:u})},t.prototype.bindEvents=function(){var e=this.get(`group`);e.on(`mousedown`,this.onStartEvent(!1)),e.on(`mouseup`,this.onMouseUp),e.on(`touchstart`,this.onStartEvent(!0)),e.on(`touchend`,this.onMouseUp),e.findById(this.getElementId(`track`)).on(`click`,this.onTrackClick);var t=e.findById(this.getElementId(`thumb`));t.on(`mouseover`,this.onThumbMouseOver),t.on(`mouseout`,this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get(`container`),t=e&&e.get(`canvas`);return t&&t.get(`container`)},t.prototype.validateRange=function(e){var t=this.cfg,n=t.thumbLen,r=t.trackLen,i=e;return e+n>r?i=r-n:e+n{ZT()})),$T=t((()=>{})),eE=t((()=>{})),tE=r({Annotation:()=>EC,Axis:()=>dw,Component:()=>uS,Crosshair:()=>Ow,Grid:()=>Lw,GroupComponent:()=>hS,HtmlComponent:()=>SC,Legend:()=>Qw,Scrollbar:()=>XT,Slider:()=>GT,TOOLTIP_CSS_CONST:()=>eT,Tooltip:()=>xT,propagationDelegate:()=>Ix}),nE=t((()=>{DC(),fw(),kw(),Rw(),$w(),ST(),dS(),gS(),CC(),qT(),QT(),$T(),eE(),Lx(),uT()})),rE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Scrollbar=t.Slider=t.HtmlTooltip=t.ContinuousLegend=t.CategoryLegend=t.CircleGrid=t.LineGrid=t.CircleAxis=t.LineAxis=t.Annotation=t.Crosshair=t.Component=t.GroupComponent=t.HtmlComponent=t.Scale=t.registerScale=t.getScale=t.Coordinate=t.registerCoordinate=t.getCoordinate=t.Color=t.Attribute=t.getAttribute=t.Adjust=t.getAdjust=t.registerAdjust=t.AbstractShape=t.AbstractGroup=t.Event=void 0;var n=(X(),e(O_));Object.defineProperty(t,`Event`,{enumerable:!0,get:function(){return n.Event}}),Object.defineProperty(t,`AbstractGroup`,{enumerable:!0,get:function(){return n.AbstractGroup}}),Object.defineProperty(t,`AbstractShape`,{enumerable:!0,get:function(){return n.AbstractShape}});var r=(nv(),e(tv));Object.defineProperty(t,`registerAdjust`,{enumerable:!0,get:function(){return r.registerAdjust}}),Object.defineProperty(t,`getAdjust`,{enumerable:!0,get:function(){return r.getAdjust}}),Object.defineProperty(t,`Adjust`,{enumerable:!0,get:function(){return r.Adjust}});var i=(bx(),e(yx));Object.defineProperty(t,`getAttribute`,{enumerable:!0,get:function(){return i.getAttribute}}),Object.defineProperty(t,`Attribute`,{enumerable:!0,get:function(){return i.Attribute}});var a=(bx(),e(yx));Object.defineProperty(t,`Color`,{enumerable:!0,get:function(){return a.Color}});var o=(Fx(),e(Px));Object.defineProperty(t,`getCoordinate`,{enumerable:!0,get:function(){return o.getCoordinate}}),Object.defineProperty(t,`registerCoordinate`,{enumerable:!0,get:function(){return o.registerCoordinate}}),Object.defineProperty(t,`Coordinate`,{enumerable:!0,get:function(){return o.Coordinate}});var s=(px(),e(fx));Object.defineProperty(t,`getScale`,{enumerable:!0,get:function(){return s.getScale}}),Object.defineProperty(t,`registerScale`,{enumerable:!0,get:function(){return s.registerScale}}),Object.defineProperty(t,`Scale`,{enumerable:!0,get:function(){return s.Scale}});var c=(nE(),e(tE));Object.defineProperty(t,`Annotation`,{enumerable:!0,get:function(){return c.Annotation}}),Object.defineProperty(t,`Component`,{enumerable:!0,get:function(){return c.Component}}),Object.defineProperty(t,`Crosshair`,{enumerable:!0,get:function(){return c.Crosshair}}),Object.defineProperty(t,`GroupComponent`,{enumerable:!0,get:function(){return c.GroupComponent}}),Object.defineProperty(t,`HtmlComponent`,{enumerable:!0,get:function(){return c.HtmlComponent}}),Object.defineProperty(t,`Slider`,{enumerable:!0,get:function(){return c.Slider}}),Object.defineProperty(t,`Scrollbar`,{enumerable:!0,get:function(){return c.Scrollbar}});var l=c.Axis.Line,u=c.Axis.Circle;t.LineAxis=l,t.CircleAxis=u;var d=c.Grid.Line,f=c.Grid.Circle;t.LineGrid=d,t.CircleGrid=f;var p=c.Legend.Category,m=c.Legend.Continuous;t.CategoryLegend=p,t.ContinuousLegend=m,t.HtmlTooltip=c.Tooltip.Html})),iE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerAnimation=e.getAnimation=void 0;var t={};function n(e){return t[e.toLowerCase()]}e.getAnimation=n;function r(e,n){t[e.toLowerCase()]=n}e.registerAnimation=r})),aE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.doGroupAppearAnimate=t.doAnimate=t.getDefaultAnimateCfg=t.DEFAULT_ANIMATE_CFG=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=iE();t.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:`easeQuadOut`},update:{duration:400,easing:`easeQuadInOut`},enter:{duration:400,easing:`easeQuadInOut`},leave:{duration:350,easing:`easeQuadIn`}};var o={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?`scale-in-x`:`scale-in-y`:`fade-in`},update:{animation:e.isPolar&&e.isTransposed?`sector-path-update`:null},leave:{animation:`fade-out`}}},line:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},path:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},point:{appear:{animation:`zoom-in`},enter:{animation:`zoom-in`},leave:{animation:`zoom-out`}},area:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},polygon:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},schema:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},edge:{enter:{animation:`fade-in`},leave:{animation:`fade-out`}},label:{appear:{animation:`fade-in`,delay:450},enter:{animation:`fade-in`},update:{animation:`position-update`},leave:{animation:`fade-out`}}},s={line:function(){return{animation:`wave-in`}},area:function(){return{animation:`wave-in`}},path:function(){return{animation:`fade-in`}},interval:function(e){var t;return e.isRect?t=e.isTransposed?`grow-in-x`:`grow-in-y`:(t=`grow-in-xy`,e.isPolar&&e.isTransposed&&(t=`wave-in`)),{animation:t}},schema:function(e){return{animation:e.isRect?e.isTransposed?`grow-in-x`:`grow-in-y`:`grow-in-xy`}},polygon:function(){return{animation:`fade-in`,duration:500}},edge:function(){return{animation:`fade-in`}}};function c(e,t){return{delay:(0,r.isFunction)(e.delay)?e.delay(t):e.delay,easing:(0,r.isFunction)(e.easing)?e.easing(t):e.easing,duration:(0,r.isFunction)(e.duration)?e.duration(t):e.duration,callback:e.callback,repeat:e.repeat}}function l(e,n,i){var a=o[e];return a&&((0,r.isFunction)(a)&&(a=a(n)),a=(0,r.deepMix)({},t.DEFAULT_ANIMATE_CFG,a),i)?a[i]:a}t.getDefaultAnimateCfg=l;function u(e,t,n){var o=(0,r.get)(e.get(`origin`),`data`,i.FIELD_ORIGIN),s=t.animation,l=c(t,o);if(s){var u=(0,a.getAnimation)(s);u&&u(e,l,n)}else e.animate(n.toAttrs,l)}t.doAnimate=u;function d(e,i,o,c,l){if(s[o]){var u=s[o](c),d=(0,a.getAnimation)((0,r.get)(u,`animation`,``));if(d){var f=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t.DEFAULT_ANIMATE_CFG.appear),u),i);e.stopAnimate(),d(e,f,{coordinate:c,minYPoint:l,toAttrs:null})}}}t.doGroupAppearAnimate=d})),oE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getReplaceAttrs=t.getPolygonCentroid=t.getAngle=t.getArcPath=t.getSectorPath=t.polarToCartesian=void 0;var n=(J(),e(q));function r(e){if((0,n.isEmpty)(e))return null;var t=e[0].x,r=e[0].x,i=e[0].y,a=e[0].y;return(0,n.each)(e,function(e){t=t>e.x?e.x:t,r=re.y?e.y:i,a=a{Object.defineProperty(t,`__esModule`,{value:!0}),t.uniq=t.omit=t.padEnd=t.isBetween=void 0;var n=(J(),e(q));function r(e,t,n){return e>=Math.min(t,n)&&e<=Math.max(t,n)}t.isBetween=r;function i(e,t,r){if((0,n.isString)(e))return e.padEnd(t,r);if((0,n.isArray)(e)){var i=e.length;if(i{Object.defineProperty(t,`__esModule`,{value:!0}),t.toPoints=t.getRegionBBox=t.BBox=void 0;var n=(J(),e(q)),r=Y(),i=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.height=r,this.width=n}return e.fromRange=function(t,n,r,i){return new e(t,n,r-t,i-n)},e.fromObject=function(t){return new e(t.minX,t.minY,t.width,t.height)},Object.defineProperty(e.prototype,`minX`,{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`maxX`,{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`minY`,{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`maxY`,{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`tl`,{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`tr`,{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`bl`,{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`br`,{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`top`,{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`right`,{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`bottom`,{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`left`,{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},e.prototype.contains=function(e){return e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){var e=[...arguments],t=this.clone();return(0,n.each)(e,function(e){t.x=Math.min(e.x,t.x),t.y=Math.min(e.y,t.y),t.width=Math.max(e.maxX,t.maxX)-t.x,t.height=Math.max(e.maxY,t.maxY)-t.y}),t},e.prototype.merge=function(){var e=[...arguments],t=this.clone();return(0,n.each)(e,function(e){t.x=Math.max(e.x,t.x),t.y=Math.max(e.y,t.y),t.width=Math.min(e.maxX,t.maxX)-t.x,t.height=Math.min(e.maxY,t.maxY)-t.y}),t},e.prototype.cut=function(t,n){var i=t.width,a=t.height;switch(n){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:return e.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:return e.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:return e.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:return e.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},e.prototype.shrink=function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return new e(this.x+a,this.y+n,this.width-a-r,this.height-n-i)},e.prototype.expand=function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return new e(this.x-a,this.y-n,this.width+a+r,this.height+n+i)},e.prototype.exceed=function(e){return[Math.max(-this.minY+e.minY,0),Math.max(this.maxX-e.maxX,0),Math.max(this.maxY-e.maxY,0),Math.max(-this.minX+e.minX,0)]},e.prototype.collide=function(e){return this.minXe.minX&&this.minYe.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();t.BBox=i,t.getRegionBBox=function(e,t){var n=t.start,r=t.end;return new i(e.x+e.width*n.x,e.y+e.height*n.y,e.width*Math.abs(r.x-n.x),e.height*Math.abs(r.y-n.y))};function a(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}t.toPoints=a})),lE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var t=oE(),n=sE(),r=cE();function i(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),n=e.convert({x:1,y:0});return Math.sqrt((n.x-t.x)**2+(n.y-t.y)**2)}e.getXDimensionLength=i;function a(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t===Math.PI*2}return!1}e.isFullCircle=a;function o(e,t){var n=e.getCenter();return Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2)}e.getDistanceToCenter=o;function s(e,t){var r=!1;if(e)if(e.type===`theta`){var i=e.start,a=e.end;r=(0,n.isBetween)(t.x,i.x,a.x)&&(0,n.isBetween)(t.y,i.y,a.y)}else{var o=e.invert(t);r=(0,n.isBetween)(o.x,0,1)&&(0,n.isBetween)(o.y,0,1)}return r}e.isPointInCoordinate=s;function c(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)}e.getAngleByPoint=c;function l(e,n){n===void 0&&(n=0);var r=e.start,i=e.end,a=e.getWidth(),o=e.getHeight();if(e.isPolar){var s=e.startAngle,c=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:`path`,startState:{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,s)},endState:function(e){var r=(c-s)*e+s;return{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,r)}},attrs:{path:(0,t.getSectorPath)(l.x,l.y,u+n,s,c)}}}var d=e.isTransposed?{height:o+n*2}:{width:a+n*2};return{type:`rect`,startState:{x:r.x-n,y:i.y-n,width:e.isTransposed?a+n*2:0,height:e.isTransposed?0:o+n*2},endState:d,attrs:{x:r.x-n,y:i.y-n,width:a+n*2,height:o+n*2}}}e.getCoordinateClipCfg=l;function u(e,t){t===void 0&&(t=0);var n=e.start,i=e.end,a=e.getWidth(),o=e.getHeight(),s=Math.min(n.x,i.x),c=Math.min(n.y,i.y);return r.BBox.fromRange(s-t,c-t,s+a+t,c+o+t)}e.getCoordinateBBox=u})),uE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMaxScale=t.getDefaultCategoryScaleRange=t.getName=t.syncScale=t.createScaleByField=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=rE(),a=lE(),o=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function s(e){var t=`linear`;return o.test(e)?t=`timeCat`:(0,r.isString)(e)&&(t=`cat`),t}function c(e,t,a){var o=t||[];if((0,r.isNumber)(e)||(0,r.isNil)((0,r.firstValue)(o,e))&&(0,r.isEmpty)(a))return new((0,i.getScale)(`identity`))({field:e.toString(),values:[e]});var c=(0,r.valuesOfKey)(o,e),l=(0,r.get)(a,`type`,s(c[0]));return new((0,i.getScale)(l))((0,n.__assign)({field:e,values:c},a))}t.createScaleByField=c;function l(e,t){if(e.type!==`identity`&&t.type!==`identity`){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.change(n)}}t.syncScale=l;function u(e){return e.alias||e.field}t.getName=u;function d(e,t,n){var i=e.values.length,o;if(i===1)o=[.5,1];else{var s=1,c=0;(0,a.isFullCircle)(t)?t.isTransposed?(s=(0,r.get)(n,`widthRatio.multiplePie`,1/1.3),c=1/i*s,o=[c/2,1-c/2]):o=[0,1-1/i]:(c=1/i/2,o=[c,1-c])}return o}t.getDefaultCategoryScaleRange=d;function f(e){var t=e.values.filter(function(e){return!(0,r.isNil)(e)&&!isNaN(e)});return Math.max.apply(Math,(0,n.__spreadArray)((0,n.__spreadArray)([],t,!1),[(0,r.isNil)(e.max)?-1/0:e.max],!1))}t.getMaxScale=f})),dE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getAxisTitleText=t.getAxisDirection=t.getAxisOption=t.getCircleAxisCenterRadius=t.getAxisTitleOptions=t.getAxisThemeCfg=t.getAxisFactorByRegion=t.isVertical=t.getAxisFactor=t.getAxisRegion=t.getCircleAxisRelativeRegion=t.getLineAxisRelativeRegion=void 0;var n=(J(),e(q)),r=Y(),i=uE(),a=(yu(),e(vu));function o(e){var t,n;switch(e){case r.DIRECTION.TOP:t={x:0,y:1},n={x:1,y:1};break;case r.DIRECTION.RIGHT:t={x:1,y:0},n={x:1,y:1};break;case r.DIRECTION.BOTTOM:t={x:0,y:0},n={x:1,y:0};break;case r.DIRECTION.LEFT:t={x:0,y:0},n={x:0,y:1};break;default:t=n={x:0,y:0}}return{start:t,end:n}}t.getLineAxisRelativeRegion=o;function s(e){var t,n;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{start:t,end:n}}t.getCircleAxisRelativeRegion=s;function c(e,t){var n={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?n=o(t):e.isPolar&&(n=s(e));var r=n.start,i=n.end;return{start:e.convert(r),end:e.convert(i)}}t.getAxisRegion=c;function l(e,t){return e.isRect?e.isTransposed?[r.DIRECTION.RIGHT,r.DIRECTION.BOTTOM].includes(t)?1:-1:[r.DIRECTION.BOTTOM,r.DIRECTION.RIGHT].includes(t)?-1:1:e.isPolar&&e.x.start<0?-1:1}t.getAxisFactor=l;function u(e){var t=e.start,n=e.end;return t.x===n.x}t.isVertical=u;function d(e,t){var n=e.start,r=e.end;return u(e)?(n.y-r.y)*(t.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-t.y)>0?-1:1}t.getAxisFactorByRegion=d;function f(e,t){var r=(0,n.get)(e,[`components`,`axis`],{});return(0,n.deepMix)({},(0,n.get)(r,[`common`],{}),(0,n.deepMix)({},(0,n.get)(r,[t],{})))}t.getAxisThemeCfg=f;function p(e,t,r){var i=(0,n.get)(e,[`components`,`axis`],{});return(0,n.deepMix)({},(0,n.get)(i,[`common`,`title`],{}),(0,n.deepMix)({},(0,n.get)(i,[t,`title`],{})),r)}t.getAxisTitleOptions=p;function m(e){var t=e.x,n=e.y,r=e.circleCenter,i=n.start>n.end,o=e.isTransposed?e.convert({x:+!i,y:0}):e.convert({x:0,y:+!i}),s=[o.x-r.x,o.y-r.y],c=[1,0],l=o.y>r.y?a.vec2.angle(s,c):a.vec2.angle(s,c)*-1,u=l+(t.end-t.start);return{center:r,radius:Math.sqrt((o.x-r.x)**2+(o.y-r.y)**2),startAngle:l,endAngle:u}}t.getCircleAxisCenterRadius=m;function h(e,t){return(0,n.isBoolean)(e)?e===!1?!1:{}:(0,n.get)(e,[t])}t.getAxisOption=h;function g(e,t){return(0,n.get)(e,`position`,t)}t.getAxisDirection=g;function _(e,t){return(0,n.get)(t,[`title`,`text`],(0,i.getName)(e))}t.getAxisTitleText=_})),fE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.showGrid=t.getCircleGridItems=t.getLineGridItems=t.getGridThemeCfg=void 0;var n=(J(),e(q));function r(e,t){var r=(0,n.deepMix)({},(0,n.get)(e,[`components`,`axis`,`common`]),(0,n.get)(e,[`components`,`axis`,t]));return(0,n.get)(r,[`grid`],{})}t.getGridThemeCfg=r;function i(e,t,n,r){var i=[],a=t.getTicks();return e.isPolar&&a.push({value:1,text:``,tickValue:``}),a.reduce(function(t,a,o){var s=a.value;if(r)i.push({points:[e.convert(n===`y`?{x:0,y:s}:{x:s,y:0}),e.convert(n===`y`?{x:1,y:s}:{x:s,y:1})]});else if(o){var c=(t.value+s)/2;i.push({points:[e.convert(n===`y`?{x:0,y:c}:{x:c,y:0}),e.convert(n===`y`?{x:1,y:c}:{x:c,y:1})]})}return a},a[0]),i}t.getLineGridItems=i;function a(e,t,r,i,a){var o=t.values.length,s=[],c=r.getTicks();return c.reduce(function(t,r){var c=t?t.value:r.value,l=r.value,u=(c+l)/2;return a===`x`?s.push({points:[e.convert({x:i?l:u,y:0}),e.convert({x:i?l:u,y:1})]}):s.push({points:(0,n.map)(Array(o+1),function(t,n){return e.convert({x:n/o,y:i?l:u})})}),r},c[0]),s}t.getCircleGridItems=a;function o(e,t){var r=(0,n.get)(t,`grid`);if(r===null)return!1;var i=(0,n.get)(e,`grid`);return!(r===void 0&&i===null)}t.showGrid=o})),pE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Controller=void 0;var n=(J(),e(q));t.Controller=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,n.each)(this.components,function(e){e.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},e}()})),mE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=rE(),o=aE(),s=dE(),c=dE(),l=fE(),u=sE(),d=pE(),f=[`container`],p=(0,n.__assign)((0,n.__assign)({},o.DEFAULT_ANIMATE_CFG),{appear:null});t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return Object.defineProperty(t.prototype,`name`,{get:function(){return`axis`},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,r.each)(this.getComponents(),function(n){var r=n.component,a=n.direction,o=n.type,c=n.extra,u=c.dim,d=c.scale,f=c.alignTick,p;if(o===i.COMPONENT_TYPE.AXIS)t.isPolar?u===`x`?p=t.isTransposed?(0,s.getAxisRegion)(t,a):(0,s.getCircleAxisCenterRadius)(t):u===`y`&&(p=t.isTransposed?(0,s.getCircleAxisCenterRadius)(t):(0,s.getAxisRegion)(t,a)):p=(0,s.getAxisRegion)(t,a);else if(o===i.COMPONENT_TYPE.GRID)if(t.isPolar){var m=void 0;m=t.isTransposed?u===`x`?(0,l.getCircleGridItems)(t,e.view.getYScales()[0],d,f,u):(0,l.getLineGridItems)(t,d,u,f):u===`x`?(0,l.getLineGridItems)(t,d,u,f):(0,l.getCircleGridItems)(t,e.view.getXScale(),d,f,u),p={items:m,center:e.view.getCoordinate().getCenter()}}else p={items:(0,l.getLineGridItems)(t,d,u,f)};r.update(p)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach(function(n,r){e.has(r)?t.set(r,n):n.component.destroy()}),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach(function(t){e.push(t)}),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(!(!t||t.isIdentity)){var n=(0,c.getAxisOption)(this.option,t.field);if(n!==!1){var a=(0,s.getAxisDirection)(n,i.DIRECTION.BOTTOM),o=i.LAYER.BG,l=`x`,d=this.view.getCoordinate(),p=this.getId(`axis`,t.field),m=this.getId(`grid`,t.field);if(d.isRect){var h=this.cache.get(p);if(h){var g=this.getLineAxisCfg(t,n,a);(0,u.omit)(g,f),h.component.update(g),e.set(p,h)}else h=this.createLineAxis(t,n,o,a,l),this.cache.set(p,h),e.set(p,h);var _=this.cache.get(m);if(_){var g=this.getLineGridCfg(t,n,a,l);(0,u.omit)(g,f),_.component.update(g),e.set(m,_)}else _=this.createLineGrid(t,n,o,a,l),_&&(this.cache.set(m,_),e.set(m,_))}else if(d.isPolar){var h=this.cache.get(p);if(h){var g=d.isTransposed?this.getLineAxisCfg(t,n,i.DIRECTION.RADIUS):this.getCircleAxisCfg(t,n,a);(0,u.omit)(g,f),h.component.update(g),e.set(p,h)}else{if(d.isTransposed){if((0,r.isUndefined)(n))return;h=this.createLineAxis(t,n,o,i.DIRECTION.RADIUS,l)}else h=this.createCircleAxis(t,n,o,a,l);this.cache.set(p,h),e.set(p,h)}var _=this.cache.get(m);if(_){var g=d.isTransposed?this.getCircleGridCfg(t,n,i.DIRECTION.RADIUS,l):this.getLineGridCfg(t,n,i.DIRECTION.CIRCLE,l);(0,u.omit)(g,f),_.component.update(g),e.set(m,_)}else{if(d.isTransposed){if((0,r.isUndefined)(n))return;_=this.createCircleGrid(t,n,o,i.DIRECTION.RADIUS,l)}else _=this.createLineGrid(t,n,o,i.DIRECTION.CIRCLE,l);_&&(this.cache.set(m,_),e.set(m,_))}}}}},t.prototype.updateYAxes=function(e){var t=this,n=this.view.getYScales();(0,r.each)(n,function(n,a){if(!(!n||n.isIdentity)){var o=n.field,l=(0,c.getAxisOption)(t.option,o);if(l!==!1){var d=i.LAYER.BG,p=`y`,m=t.getId(`axis`,o),h=t.getId(`grid`,o),g=t.view.getCoordinate();if(g.isRect){var _=(0,s.getAxisDirection)(l,a===0?i.DIRECTION.LEFT:i.DIRECTION.RIGHT),v=t.cache.get(m);if(v){var y=t.getLineAxisCfg(n,l,_);(0,u.omit)(y,f),v.component.update(y),e.set(m,v)}else v=t.createLineAxis(n,l,d,_,p),t.cache.set(m,v),e.set(m,v);var b=t.cache.get(h);if(b){var y=t.getLineGridCfg(n,l,_,p);(0,u.omit)(y,f),b.component.update(y),e.set(h,b)}else b=t.createLineGrid(n,l,d,_,p),b&&(t.cache.set(h,b),e.set(h,b))}else if(g.isPolar){var v=t.cache.get(m);if(v){var y=g.isTransposed?t.getCircleAxisCfg(n,l,i.DIRECTION.CIRCLE):t.getLineAxisCfg(n,l,i.DIRECTION.RADIUS);(0,u.omit)(y,f),v.component.update(y),e.set(m,v)}else{if(g.isTransposed){if((0,r.isUndefined)(l))return;v=t.createCircleAxis(n,l,d,i.DIRECTION.CIRCLE,p)}else v=t.createLineAxis(n,l,d,i.DIRECTION.RADIUS,p);t.cache.set(m,v),e.set(m,v)}var b=t.cache.get(h);if(b){var y=g.isTransposed?t.getLineGridCfg(n,l,i.DIRECTION.CIRCLE,p):t.getCircleGridCfg(n,l,i.DIRECTION.RADIUS,p);(0,u.omit)(y,f),b.component.update(y),e.set(h,b)}else{if(g.isTransposed){if((0,r.isUndefined)(l))return;b=t.createLineGrid(n,l,d,i.DIRECTION.CIRCLE,p)}else b=t.createCircleGrid(n,l,d,i.DIRECTION.RADIUS,p);b&&(t.cache.set(h,b),e.set(h,b))}}}}})},t.prototype.createLineAxis=function(e,t,n,r,o){var s={component:new a.LineAxis(this.getLineAxisCfg(e,t,r)),layer:n,direction:r===i.DIRECTION.RADIUS?i.DIRECTION.NONE:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return s.component.set(`field`,e.field),s.component.init(),s},t.prototype.createLineGrid=function(e,t,n,o,s){var c=this.getLineGridCfg(e,t,o,s);if(c){var l={component:new a.LineGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:s,scale:e,alignTick:(0,r.get)(c,`alignTick`,!0)}};return l.component.init(),l}},t.prototype.createCircleAxis=function(e,t,n,r,o){var s={component:new a.CircleAxis(this.getCircleAxisCfg(e,t,r)),layer:n,direction:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return s.component.set(`field`,e.field),s.component.init(),s},t.prototype.createCircleGrid=function(e,t,n,o,s){var c=this.getCircleGridCfg(e,t,o,s);if(c){var l={component:new a.CircleGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:s,scale:e,alignTick:(0,r.get)(c,`alignTick`,!0)}};return l.component.init(),l}},t.prototype.getLineAxisCfg=function(e,t,i){var a=(0,r.get)(t,[`top`])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),c=(0,s.getAxisRegion)(o,i),l=(0,s.getAxisTitleText)(e,t),u=(0,s.getAxisThemeCfg)(this.view.getTheme(),i),d=(0,r.get)(t,[`title`])?(0,r.deepMix)({title:{style:{text:l}}},{title:(0,s.getAxisTitleOptions)(this.view.getTheme(),i,t.title)},t):t,f=(0,r.deepMix)((0,n.__assign)((0,n.__assign)({container:a},c),{ticks:e.getTicks().map(function(e){return{id:``+e.tickValue,name:e.text,value:e.value}}),verticalFactor:o.isPolar?(0,s.getAxisFactorByRegion)(c,o.getCenter())*-1:(0,s.getAxisFactorByRegion)(c,o.getCenter()),theme:u}),u,d),p=this.getAnimateCfg(f),m=p.animate;f.animateOption=p.animateOption,f.animate=m;var h=(0,s.isVertical)(c),g=(0,r.get)(f,`verticalLimitLength`,h?1/3:1/2);if(g<=1){var _=this.view.getCanvas().get(`width`),v=this.view.getCanvas().get(`height`);f.verticalLimitLength=g*(h?_:v)}return f},t.prototype.getLineGridCfg=function(e,t,n,i){if((0,l.showGrid)((0,s.getAxisThemeCfg)(this.view.getTheme(),n),t)){var a=(0,l.getGridThemeCfg)(this.view.getTheme(),n),o=(0,r.deepMix)({container:(0,r.get)(t,[`top`])?this.gridForeContainer:this.gridContainer},a,(0,r.get)(t,`grid`),this.getAnimateCfg(t));return o.items=(0,l.getLineGridItems)(this.view.getCoordinate(),e,i,(0,r.get)(o,`alignTick`,!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,a){var o=(0,r.get)(t,[`top`])?this.axisForeContainer:this.axisContainer,c=this.view.getCoordinate(),l=e.getTicks().map(function(e){return{id:``+e.tickValue,name:e.text,value:e.value}});!e.isCategory&&Math.abs(c.endAngle-c.startAngle)===Math.PI*2&&l.pop();var u=(0,s.getAxisTitleText)(e,t),d=(0,s.getAxisThemeCfg)(this.view.getTheme(),i.DIRECTION.CIRCLE),f=(0,r.get)(t,[`title`])?(0,r.deepMix)({title:{style:{text:u}}},{title:(0,s.getAxisTitleOptions)(this.view.getTheme(),a,t.title)},t):t,p=(0,r.deepMix)((0,n.__assign)((0,n.__assign)({container:o},(0,s.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:d}),d,f),m=this.getAnimateCfg(p),h=m.animate,g=m.animateOption;return p.animate=h,p.animateOption=g,p},t.prototype.getCircleGridCfg=function(e,t,n,a){if((0,l.showGrid)((0,s.getAxisThemeCfg)(this.view.getTheme(),n),t)){var o=(0,l.getGridThemeCfg)(this.view.getTheme(),i.DIRECTION.RADIUS),c=(0,r.deepMix)({container:(0,r.get)(t,[`top`])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,r.get)(t,`grid`),this.getAnimateCfg(t)),u=(0,r.get)(c,`alignTick`,!0),d=a===`x`?this.view.getYScales()[0]:this.view.getXScale();return c.items=(0,l.getCircleGridItems)(this.view.getCoordinate(),d,e,u,a),c}},t.prototype.getId=function(e,t){var n=this.view.getCoordinate();return e+`-`+t+`-`+n.type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,r.get)(e,`animate`),animateOption:e&&e.animateOption?(0,r.deepMix)({},p,e.animateOption):p}},t}(d.Controller)})),hE=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(a()),r=t(hE());function i(){return n.default.useContext(r.default)}e.default=i})),_E=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t={}.toString;e.default=function(e,n){return t.call(e)===`[object `+n+`]`}})),vE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return Array.isArray?Array.isArray(e):t.default(e,`Array`)})})),yE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=function(e){if(typeof e!=`object`||!e)return e;var r;if(t.default(e)){r=[];for(var i=0,a=e.length;i{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(yE());e.default=(function(e,t){var r=(0,n.default)(e);return t.forEach(function(e){r[e]===!0?r[e]={}:r[e]===!1&&(r[e]=null)}),r})})),xE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isSamePoint=t.mergeRegion=t.intersectRect=t.inBox=t.distance=t.getPixelRatio=void 0;function n(){return window?window.devicePixelRatio:1}t.getPixelRatio=n;function r(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}t.distance=r;function i(e,t,n,r,i,a){return i>=e&&i<=e+n&&a>=t&&a<=t+r}t.inBox=i;function a(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var t=xE(),n=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(e,n){var r=e.match(a);t.each(r,function(e){var t=e.split(`:`);n.addColorStop(t[0],t[1])})}function s(e,t,r){var i=n.exec(r),a=parseFloat(i[1])%360*(Math.PI/180),s=i[2],c=t.getBBox(),l,u;a>=0&&a<1/2*Math.PI?(l={x:c.minX,y:c.minY},u={x:c.maxX,y:c.maxY}):1/2*Math.PI<=a&&a{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function r(e,t){return n(e)*n(t)?(e[0]*t[0]+e[1]*t[1])/(n(e)*n(t)):1}function i(e,t){return(e[0]*t[1]1&&(a*=Math.sqrt(g),o*=Math.sqrt(g));var _=a*a*(h*h)+o*o*(m*m),v=_?Math.sqrt((a*a*(o*o)-_)/_):1;c===l&&(v*=-1),isNaN(v)&&(v=0);var y=o?v*a*h/o:0,b=a?v*-o*m/a:0,x=(u+f)/2+Math.cos(s)*y-Math.sin(s)*b,S=(d+p)/2+Math.sin(s)*y+Math.cos(s)*b,C=[(m-y)/a,(h-b)/o],w=[(-1*m-y)/a,(-1*h-b)/o],T=i([1,0],C),E=i(C,w);return r(C,w)<=-1&&(E=Math.PI),r(C,w)>=1&&(E=0),l===0&&E>0&&(E-=2*Math.PI),l===1&&E<0&&(E+=2*Math.PI),{cx:x,cy:S,rx:t.isSamePoint(e,[f,p])?0:a,ry:t.isSamePoint(e,[f,p])?0:o,startAngle:T,endAngle:T+E,xRotation:s,arcFlag:c,sweepFlag:l}}e.default=a})),wE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.addEndArrow=t.addStartArrow=t.getShortenOffset=void 0;var n=(R(),e(F)),r=KE(),i=Math.sin,a=Math.cos,o=Math.atan2,s=Math.PI;function c(e,t,n,c,l,u,d){var f=t.stroke,p=t.lineWidth,m=n-l,h=o(c-u,m),g=new r.Path({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:{path:`M`+10*a(s/6)+`,`+10*i(s/6)+` L0,0 L`+10*a(s/6)+`,-`+10*i(s/6),stroke:f,lineWidth:p}});g.translate(l,u),g.rotateAtPoint(l,u,h),e.set(d?`startArrowShape`:`endArrowShape`,g)}function l(e,t,s,c,l,u,d){var f=t.startArrow,p=t.endArrow,m=t.stroke,h=t.lineWidth,g=d?f:p,_=g.d,v=g.fill,y=g.stroke,b=g.lineWidth,x=n.__rest(g,[`d`,`fill`,`stroke`,`lineWidth`]),S=s-l,C=o(c-u,S);_&&(l-=a(C)*_,u-=i(C)*_);var w=new r.Path({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:n.__assign(n.__assign({},x),{stroke:y||m,lineWidth:b||h,fill:v})});w.translate(l,u),w.rotateAtPoint(l,u,C),e.set(d?`startArrowShape`:`endArrowShape`,w)}function u(e,t,n,r,s){var c=o(r-t,n-e);return{dx:a(c)*s,dy:i(c)*s}}t.getShortenOffset=u;function d(e,t,n,r,i,a){typeof t.startArrow==`object`?l(e,t,n,r,i,a,!0):t.startArrow?c(e,t,n,r,i,a,!0):e.set(`startArrowShape`,null)}t.addStartArrow=d;function f(e,t,n,r,i,a){typeof t.endArrow==`object`?l(e,t,n,r,i,a,!1):t.endArrow?c(e,t,n,r,i,a,!1):e.set(`startArrowShape`,null)}t.addEndArrow=f})),TE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.mergeView=t.getMergedRegion=t.getRefreshRegion=t.refreshElement=t.drawPath=t.clearChanged=t.checkChildrenRefresh=t.checkRefresh=t.drawChildren=t.applyAttrsToContext=void 0;var n=(J(),e(q)),r=SE(),i=CE(),a=xE(),o=wE(),s={fill:`fillStyle`,stroke:`strokeStyle`,opacity:`globalAlpha`};function c(e,t){var i=t.attr();for(var a in i){var o=i[a],c=s[a]?s[a]:a;c===`matrix`&&o?e.transform(o[0],o[1],o[3],o[4],o[6],o[7]):c===`lineDash`&&e.setLineDash?n.isArray(o)&&e.setLineDash(o):(c===`strokeStyle`||c===`fillStyle`?o=r.parseStyle(e,t,o):c===`globalAlpha`&&(o*=e.globalAlpha),e[c]=o)}}t.applyAttrsToContext=c;function l(e,t,n){for(var r=0;rS?x:S,O=x>S?1:x/S,k=x>S?S/x:1;t.translate(y,b),t.rotate(T),t.scale(O,k),t.arc(0,0,D,C,w,1-E),t.scale(1/O,1/k),t.rotate(-T),t.translate(-y,-b)}break;case`Z`:t.closePath();break;default:break}if(m===`Z`)l=u;else{var A=p.length;l=[p[A-2],p[A-1]]}}}}t.drawPath=h;function g(e,t){var n=e.get(`canvas`);n&&(t===`remove`&&(e._cacheCanvasBBox=e.get(`cacheCanvasBBox`)),e.get(`hasChanged`)||(e.set(`hasChanged`,!0),e.cfg.parent&&e.cfg.parent.get(`hasChanged`)||(n.refreshElement(e,t,n),n.get(`autoDraw`)&&n.draw())))}t.refreshElement=g;function _(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get(`cacheCanvasBBox`),r=n&&!!(n.width&&n.height),i=e.getCanvasBBox(),o=i&&!!(i.width&&i.height);r&&o?t=a.mergeRegion(n,i):r?t=n:o&&(t=i)}return t}t.getRefreshRegion=_;function v(e){if(!e.length)return null;var t=[],r=[],i=[],a=[];return n.each(e,function(e){var n=_(e);n&&(t.push(n.minX),r.push(n.minY),i.push(n.maxX),a.push(n.maxY))}),{minX:n.min(t),minY:n.min(r),maxX:n.max(i),maxY:n.max(a)}}t.getMergedRegion=v;function y(e,t){return!e||!t||!a.intersectRect(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}t.mergeView=y})),EE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=KE(),a=TE(),o=(J(),e(q)),s=xE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.getShapeBase=function(){return i},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];o.each(e,function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(t.length){var i=o.min(t),a=o.max(t),c=o.min(n),l=o.max(n);r={minX:i,minY:c,x:i,y:c,maxX:a,maxY:l,width:a-i,height:l-c};var u=this.cfg.canvas;if(u){var d=u.getViewRange();this.set(`isInView`,s.intersectRect(r,d))}}else this.set(`isInView`,!1);this.set(`cacheCanvasBBox`,r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=t?this.cfg.refresh:!0;n.length&&r&&(e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,this.getClip()),a.drawChildren(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set(`hasChanged`,!1)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`hasChanged`,!1)},t}(r.AbstractGroup)})),DE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=xE(),a=TE(),o=(X(),e(O_)),s=KE(),c=EE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return s},t.prototype.getGroupBase=function(){return c.default},t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`type`),t=this.getHitLineWidth(),n=o.getBBoxMethod(e)(this),r=t/2,i=n.x-r,a=n.y-r,s=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+t,height:n.height+t,maxX:s,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(this.cfg.refresh===!1){this.set(`hasChanged`,!1);return}var r=this.getCanvasBBox();if(!i.intersectRect(t,r)){this.set(`hasChanged`,!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=i.intersectRect(t,e);this.set(`isInView`,n),n?this.set(`cacheCanvasBBox`,t):this.set(`cacheCanvasBBox`,null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set(`hasChanged`,!1),this.set(`refresh`,null)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`isInView`,null),this.set(`hasChanged`,!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,a=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&(!i.isNil(o)&&o!==1?(e.globalAlpha=o,this.fill(e),e.globalAlpha=r):this.fill(e)),this.isStroke()&&n>0&&(!i.isNil(a)&&a!==1&&(e.globalAlpha=a),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(r.AbstractShape)})),OE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,a){var o=this.attr(),s=o.x,c=o.y,l=o.r,u=a/2,d=i.distance(s,c,e,t);return r&&n?d<=l+u:r?d<=l:n?d>=l-u&&d<=l+u:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,Math.PI*2,!1),e.closePath()},t}(r.default)})),kE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE();function i(e,t,n,r){return e/(n*n)+t/(r*r)}t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,a){var o=this.attr(),s=a/2,c=o.x,l=o.y,u=o.rx,d=o.ry,f=(e-c)*(e-c),p=(t-l)*(t-l);return r&&n?i(f,p,u+s,d+s)<=1:r?i(f,p,u,d)<=1:n?i(f,p,u-s,d-s)>=1&&i(f,p,u+s,d+s)<=1:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,i,a,0,0,Math.PI*2,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;e.save(),e.translate(n,r),e.scale(s,c),e.arc(0,0,o,0,Math.PI*2),e.restore(),e.closePath()}},t}(r.default)})),AE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE();function a(e){return e instanceof HTMLElement&&i.isString(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`}t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get(`toDraw`)===!0){var e=this.get(`canvas`);e?e.draw():this.createPath(this.get(`context`))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if(i.isString(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr(`img`,r),t.set(`loading`,!1),t._afterLoading();var e=t.get(`callback`);e&&e.call(t)},r.crossOrigin=`Anonymous`,r.src=e,this.set(`loading`,!0)}else e instanceof Image?(n.width||=e.width,n.height||=e.height):a(e)&&(n.width||=Number(e.getAttribute(`width`)),n.height||(n.height,Number(e.getAttribute(`height`))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`img`&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get(`loading`)){this.set(`toDraw`,!0),this.set(`context`,e);return}var t=this.attr(),n=t.x,r=t.y,o=t.width,s=t.height,c=t.sx,l=t.sy,u=t.swidth,d=t.sheight,f=t.img;(f instanceof Image||a(f))&&(!i.isNil(c)&&!i.isNil(l)&&!i.isNil(u)&&!i.isNil(d)?e.drawImage(f,c,l,u,d,n,r,o,s):e.drawImage(f,n,r,o,s))},t}(r.default)})),jE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(yh(),e(vh));function r(e,t,r,i,a,o,s){var c=Math.min(e,r),l=Math.max(e,r),u=Math.min(t,i),d=Math.max(t,i),f=a/2;return o>=c-f&&o<=l+f&&s>=u-f&&s<=d+f?n.Line.pointToLine(e,t,r,i,o,s)<=a/2:!1}t.default=r})),ME=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=DE(),a=jE(),o=wE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=e.startArrow,s=e.endArrow;a&&o.addStartArrow(this,e,r,i,t,n),s&&o.addEndArrow(this,e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var o=this.attr(),s=o.x1,c=o.y1,l=o.x2,u=o.y2;return a.default(s,c,l,u,i,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,s=t.startArrow,c=t.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};s&&s.d&&(l=o.getShortenOffset(n,r,i,a,t.startArrow.d)),c&&c.d&&(u=o.getShortenOffset(n,r,i,a,t.endArrow.d)),e.beginPath(),e.moveTo(n+l.dx,r+l.dy),e.lineTo(i-u.dx,a-u.dy)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,a=e.y2;return r.Line.length(t,n,i,a)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return r.Line.pointAt(n,i,a,o,e)},t}(i.default)})),NE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(v_(),e(__)),a=DE(),o=xE(),s=TE(),c={circle:function(e,t,n){return[[`M`,e-n,t],[`A`,n,n,0,1,0,e+n,t],[`A`,n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`Z`]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}};t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set(`paramsCache`,{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`symbol`,`x`,`y`,`r`,`radius`].indexOf(t)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return r.isNil(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e=this.attr(),n=e.x,r=e.y,a=e.symbol||`circle`,s=this._getR(e),c,l;if(o.isFunction(a))c=a,l=c(n,r,s),l=i.path2Absolute(l);else{if(c=t.Symbols[a],!c)return console.warn(a+` marker is not supported.`),null;l=c(n,r,s)}return l},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get(`paramsCache`);s.drawPath(this,e,{path:t},n)},t.Symbols=c,t}(a.default)})),PE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(X(),e(O_));function r(e,t,r){var i=n.getOffScreenContext();return e.createPath(i),i.isPointInPath(t,r)}t.default=r})),FE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=1e-6;function n(e){return Math.abs(e)0!=n(l[1]-i)>0&&n(t-(i-c[1])*(c[0]-l[0])/(c[1]-l[1])-c[0])<0&&(a=!a)}return a}e.default=i})),IE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e,n,r,i,a,o,s,c){var l=(Math.atan2(c-n,s-e)+Math.PI*2)%(Math.PI*2);if(la)return!1;var u={x:e+r*Math.cos(l),y:n+r*Math.sin(l)};return t.distance(u.x,u.y,s,c)<=o/2}e.default=n})),LE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=(yh(),e(vh)),a=(yh(),e(vh)),o=(yu(),e(vu)),s=(fl(),e(gc)),c=xE(),l=jE(),u=IE(),d=o.ext.transform;function f(e){for(var t=!1,n=e.length,r=0;rw?C:w,A=C>w?1:C/w,ee=C>w?w/C:1,te=d(null,[[`t`,-x,-S],[`r`,-D],[`s`,1/A,1/ee]]);s.transformMat3(O,O,te),f=u.default(0,0,k,T,E,t,O[0],O[1]);break;default:break}if(f)break}}return f}function m(e){for(var t=e.length,n=[],r=[],i=[],a=0;a0&&r.push(i),{polygons:n,polylines:r}}t.default=n.__assign({hasArc:f,extractPolygons:m,isPointInStroke:p},r.PathUtil)})),RE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(J(),e(q)),a=DE(),o=(v_(),e(__)),s=TE(),c=PE(),l=FE(),u=LE(),d=wE();function f(e,t,n){for(var r=!1,i=0;i=t[0]&&e<=t[1]&&(n=(e-t[0])/(t[1]-t[0]),a=r)});var s=o[a];if(i.isNil(s)||i.isNil(a))return null;var c=s.length,l=o[a+1];return r.Cubic.pointAt(s[c-2],s[c-1],l[1],l[2],l[3],l[4],l[5],l[6],n)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set(`curve`,u.default.pathToCurve(e))},t.prototype._setTcache=function(){var e=0,t=0,n=[],a,o,s,c,l=this.get(`curve`);if(l){if(i.each(l,function(t,n){s=l[n+1],c=t.length,s&&(e+=r.Cubic.length(t[c-2],t[c-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set(`totalLength`,e),e===0){this.set(`tCache`,[]);return}i.each(l,function(i,u){s=l[u+1],c=i.length,s&&(a=[],a[0]=t/e,o=r.Cubic.length(i[c-2],i[c-1],s[1],s[2],s[3],s[4],s[5],s[6]),t+=o||0,a[1]=t/e,n.push(a))}),this.set(`tCache`,n)}},t.prototype.getStartTangent=function(){var e=this.getSegments(),t;if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},t.prototype.getEndTangent=function(){var e=this.getSegments(),t=e.length,n;if(t>1){var r=e[t-2].currentPoint,i=e[t-1].currentPoint,a=e[t-1].endTangent;n=[],a?(n.push([i[0]-a[0],i[1]-a[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},t}(a.default)})),zE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=jE();function n(e,n,r,i,a){var o=e.length;if(o<2)return!1;for(var s=0;s{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=zE(),a=FE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var s=this.attr().points,c=!1;return n&&(c=i.default(s,o,e,t,!0)),!c&&r&&(c=a.default(s,e,t)),c},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(yh(),e(vh)),a=(J(),e(q)),o=DE(),s=zE(),c=wE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,i=t.endArrow,a=n.length,o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];r&&c.addStartArrow(this,e,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,e,n[a-2][0],n[a-2][1],l,u)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return s.default(a,i,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,i=t.endArrow,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];if(r&&r.d){var d=c.getShortenOffset(o,s,n[1][0],n[1][1],r.d);o+=d.dx,s+=d.dy}if(i&&i.d){var d=c.getShortenOffset(n[a-2][0],n[a-2][1],l,u,i.d);l-=d.dx,u-=d.dy}e.beginPath(),e.moveTo(o,s);for(var f=0;f=t[0]&&e<=t[1]&&(i=(e-t[0])/(t[1]-t[0]),o=n)}),r.Line.pointAt(t[o][0],t[o][1],t[o+1][0],t[o+1][1],i)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,i=[],o,s;a.each(e,function(a,c){e[c+1]&&(o=[],o[0]=n/t,s=r.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),n+=s,o[1]=n/t,i.push(o))}),this.set(`tCache`,i)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(o.default)})),HE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xE();function n(e,n,r,i,a,o,s){var c=a/2;return t.inBox(e-c,n-c,r,a,o,s)||t.inBox(e+r-c,n-c,a,i,o,s)||t.inBox(e+c,n+i-c,r,a,o,s)||t.inBox(e-c,n+c,a,i,o,s)}e.default=n})),UE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=jE(),n=IE();function r(e,r,i,a,o,s,c,l){return s/2,t.default(e+o,r,e+i-o,r,s,c,l)||t.default(e+i,r+o,e+i,r+a-o,s,c,l)||t.default(e+i-o,r+a,e+o,r+a,s,c,l)||t.default(e,r+a-o,e,r+o,s,c,l)||n.default(e+i-o,r+o,o,1.5*Math.PI,2*Math.PI,s,c,l)||n.default(e+i-o,r+a-o,o,0,.5*Math.PI,s,c,l)||n.default(e+o,r+a-o,o,.5*Math.PI,Math.PI,s,c,l)||n.default(e+o,r+o,o,Math.PI,1.5*Math.PI,s,c,l)}e.default=r})),WE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=SE(),a=xE(),o=HE(),s=UE(),c=PE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var l=this.attr(),u=l.x,d=l.y,f=l.width,p=l.height,m=l.radius;if(m){var h=!1;return n&&(h=s.default(u,d,f,p,m,i,e,t)),!h&&r&&(h=c.default(this,e,t)),h}else{var g=i/2;if(r&&n)return a.inBox(u-g,d-g,f+g,p+g,e,t);if(r)return a.inBox(u,d,f,p,e,t);if(n)return o.default(u,d,f,p,i,e,t)}},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,a=t.width,o=t.height,s=t.radius;if(e.beginPath(),s===0)e.rect(n,r,a,o);else{var c=i.parseRadius(s),l=c[0],u=c[1],d=c[2],f=c[3];e.moveTo(n+l,r),e.lineTo(n+a-u,r),u!==0&&e.arc(n+a-u,r+u,u,-Math.PI/2,0),e.lineTo(n+a,r+o-d),d!==0&&e.arc(n+a-d,r+o-d,d,0,Math.PI/2),e.lineTo(n+f,r+o),f!==0&&e.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5),e.closePath()}},t}(r.default)})),GE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=DE(),i=xE(),a=(X(),e(O_));t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=a.assembleFont(e)},t.prototype._setText=function(e){var t=null;i.isString(e)&&e.indexOf(` +`)!==-1&&(t=e.split(` +`)),this.set(`textArr`,t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith(`font`)&&this._assembleFont(),t===`text`&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=e.fontSize*1;return t?t-n:n*.14},t.prototype._drawTextArr=function(e,t,n){var r=this.attrs,o=r.textBaseline,s=r.x,c=r.y,l=r.fontSize*1,u=this._getSpaceingY(),d=a.getTextHeight(r.text,r.fontSize,r.lineHeight),f;i.each(t,function(t,r){f=c+r*(u+l)-d+l,o===`middle`&&(f+=d-l-(d-l)/2),o===`top`&&(f+=d-l),i.isNil(t)||(n?e.fillText(t,s,f):e.strokeText(t,s,f))})},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,a=n.y,o=this.get(`textArr`);if(o)this._drawTextArr(e,o,t);else{var s=n.text;i.isNil(s)||(t?e.fillText(s,r,a):e.strokeText(s,r,a))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,a=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&n>0&&(!i.isNil(a)&&a!==1&&(e.globalAlpha=r),this.stroke(e)),this.isFill()&&(!i.isNil(o)&&o!==1?(e.globalAlpha=o,this.fill(e),e.globalAlpha=r):this.fill(e)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(r.default)})),KE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=DE();Object.defineProperty(e,`Base`,{enumerable:!0,get:function(){return t.default}});var n=OE();Object.defineProperty(e,`Circle`,{enumerable:!0,get:function(){return n.default}});var r=kE();Object.defineProperty(e,`Ellipse`,{enumerable:!0,get:function(){return r.default}});var i=AE();Object.defineProperty(e,`Image`,{enumerable:!0,get:function(){return i.default}});var a=ME();Object.defineProperty(e,`Line`,{enumerable:!0,get:function(){return a.default}});var o=NE();Object.defineProperty(e,`Marker`,{enumerable:!0,get:function(){return o.default}});var s=RE();Object.defineProperty(e,`Path`,{enumerable:!0,get:function(){return s.default}});var c=BE();Object.defineProperty(e,`Polygon`,{enumerable:!0,get:function(){return c.default}});var l=VE();Object.defineProperty(e,`Polyline`,{enumerable:!0,get:function(){return l.default}});var u=WE();Object.defineProperty(e,`Rect`,{enumerable:!0,get:function(){return u.default}});var d=GE();Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return d.default}})})),qE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getShape=void 0;var n=(X(),e(O_));function r(e,t){if(t){var r=n.invert(t);return n.multiplyVec2(r,e)}return e}function i(e,t,n){var i=e.getTotalMatrix();if(i){var a=r([t,n,1],i);return[a[0],a[1]]}return[t,n]}function a(e,t,r){if(e.isCanvas&&e.isCanvas())return!0;if(!n.isAllowCapture(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var a=i(e,t,r),o=a[0],s=a[1];if(e.isClipped(o,s))return!1}var c=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=c.minX&&t<=c.maxX&&r>=c.minY&&r<=c.maxY}function o(e,t,n){if(!a(e,t,n))return null;for(var r=null,s=e.getChildren(),c=s.length-1;c>=0;c--){var l=s[c];if(l.isGroup())r=o(l,t,n);else if(a(l,t,n)){var u=l,d=i(l,t,n),f=d[0],p=d[1];u.isInShape(f,p)&&(r=l)}if(r)break}return r}t.getShape=o})),JE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=qE(),a=KE(),o=EE(),s=xE(),c=TE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer=`canvas`,t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){(e===`attr`||e===`sort`||e===`changeSize`)&&(this.set(`refreshElements`,[this]),this.draw())},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return o.default},t.prototype.getPixelRatio=function(){var e=this.get(`pixelRatio`)||s.getPixelRatio();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement(`canvas`),t=e.getContext(`2d`);return this.set(`context`,t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get(`context`),i=this.get(`el`),a=this.getPixelRatio();i.width=a*t,i.height=a*n,a>1&&r.scale(a,a)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get(`context`),n=this.get(`el`);t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get(`quickHit`)?i.getShape(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e=this.get(`refreshElements`),t=this.getViewRange(),n;return e.length&&e[0]===this?n=t:(n=c.getMergedRegion(e),n&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get(`clipView`)&&(n=c.mergeView(n,t)))),n},t.prototype.refreshElement=function(e){this.get(`refreshElements`).push(e)},t.prototype._clearFrame=function(){var e=this.get(`drawFrame`);e&&(s.clearAnimationFrame(e),this.set(`drawFrame`,null),this.set(`refreshElements`,[]))},t.prototype.draw=function(){var e=this.get(`drawFrame`);this.get(`autoDraw`)&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get(`context`),t=this.get(`el`),n=this.getChildren();e.clearRect(0,0,t.width,t.height),c.applyAttrsToContext(e,this),c.drawChildren(e,n),this.set(`refreshElements`,[])},t.prototype._drawRegion=function(){var e=this.get(`context`),t=this.get(`refreshElements`),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),c.applyAttrsToContext(e,this),c.checkRefresh(this,n,r),c.drawChildren(e,n,r),e.restore()):t.length&&c.clearChanged(t),s.each(t,function(e){e.get(`hasChanged`)&&e.set(`hasChanged`,!1)}),this.set(`refreshElements`,[])},t.prototype._startDraw=function(){var e=this,t=this.get(`drawFrame`),n=this.get(`drawFrameCallback`);t||(t=s.requestAnimationFrame(function(){e.get(`localRefresh`)?e._drawRegion():e._drawAll(),e.set(`drawFrame`,null),n&&n()}),this.set(`drawFrame`,t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(r.AbstractCanvas)})),YE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.version=t.Shape=void 0;var n=(R(),e(F));t.Shape=KE(),n.__exportStar((X(),e(O_)),t);var r=JE();Object.defineProperty(t,`Canvas`,{enumerable:!0,get:function(){return r.default}});var i=EE();Object.defineProperty(t,`Group`,{enumerable:!0,get:function(){return i.default}});var a=CE();Object.defineProperty(t,`getArcParams`,{enumerable:!0,get:function(){return a.default}}),t.version=`0.5.12`})),XE=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:`path`,circle:`circle`,line:`line`,path:`path`,marker:`path`,text:`text`,polyline:`polyline`,polygon:`polygon`,image:`image`,ellipse:`ellipse`,dom:`foreignObject`},e.SVG_ATTR_MAP={opacity:`opacity`,fillStyle:`fill`,fill:`fill`,fillOpacity:`fill-opacity`,strokeStyle:`stroke`,strokeOpacity:`stroke-opacity`,stroke:`stroke`,x:`x`,y:`y`,r:`r`,rx:`rx`,ry:`ry`,width:`width`,height:`height`,x1:`x1`,x2:`x2`,y1:`y1`,y2:`y2`,lineCap:`stroke-linecap`,lineJoin:`stroke-linejoin`,lineWidth:`stroke-width`,lineDash:`stroke-dasharray`,lineDashOffset:`stroke-dashoffset`,miterLimit:`stroke-miterlimit`,font:`font`,fontSize:`font-size`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,fontFamily:`font-family`,startArrow:`marker-start`,endArrow:`marker-end`,path:`d`,class:`class`,id:`id`,style:`style`,preserveAspectRatio:`preserveAspectRatio`},e.EVENTS=[`click`,`mousedown`,`mouseup`,`dblclick`,`contextmenu`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mousemove`,`wheel`]})),ZE=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.moveTo=t.sortDom=t.createDom=t.createSVGElement=void 0;var n=(J(),e(q)),r=XE();function i(e){return document.createElementNS(`http://www.w3.org/2000/svg`,e)}t.createSVGElement=i;function a(e){var t=r.SHAPE_TO_TAGS[e.type],n=e.getParent();if(!t)throw Error(`the type `+e.type+` is not supported by svg`);var a=i(t);if(e.get(`id`)&&(a.id=e.get(`id`)),e.set(`el`,a),e.set(`attrs`,{}),n){var o=n.get(`el`);o?o.appendChild(a):(o=n.createDom(),n.set(`el`,o),o.appendChild(a))}return a}t.createDom=a;function o(e,t){var r=e.get(`el`),i=n.toArray(r.children).sort(t),a=document.createDocumentFragment();i.forEach(function(e){a.appendChild(e)}),r.appendChild(a)}t.sortDom=o;function s(e,t){var n=e.parentNode,r=Array.from(n.childNodes).filter(function(e){return e.nodeType===1&&e.nodeName.toLowerCase()!==`defs`}),i=r[t],a=r.indexOf(e);if(i){if(a>t)n.insertBefore(e,i);else if(a{Object.defineProperty(e,`__esModule`,{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var t=ZE();function n(e,t){var n=e.cfg.el,r=e.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(!i.dx&&!i.dy&&!i.blur&&!i.color)n.removeAttribute(`filter`);else{var a=t.find(`filter`,i);a||=t.addShadow(i),n.setAttribute(`filter`,`url(#`+a+`)`)}}e.setShadow=n;function r(e){var t=e.attr().matrix;if(t){for(var n=e.cfg.el,r=[],i=0;i<9;i+=3)r.push(t[i]+`,`+t[i+1]);r=r.join(`,`),r.indexOf(`NaN`)===-1?n.setAttribute(`transform`,`matrix(`+r+`)`):console.warn(`invalid matrix:`,t)}}e.setTransform=r;function i(e,n){var r=e.getClip(),i=e.get(`el`);if(!r)i.removeAttribute(`clip-path`);else if(r&&!i.hasAttribute(`clip-path`)){t.createDom(r),r.createPath(n);var a=n.addClip(r);i.setAttribute(`clip-path`,`url(#`+a+`)`)}}e.setClip=i})),$E=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.refreshElement=e.drawChildren=void 0;var t=QE(),n=ZE();function r(e,t){t.forEach(function(t){t.draw(e)})}e.drawChildren=r;function i(e,r){var i=e.get(`canvas`);if(i&&i.get(`autoDraw`)){var a=i.get(`context`),o=e.getParent(),s=o?o.getChildren():[i],c=e.get(`el`);if(r===`remove`)if(e.get(`isClipShape`)){var l=c&&c.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if(r===`show`)c.setAttribute(`visibility`,`visible`);else if(r===`hide`)c.setAttribute(`visibility`,`hidden`);else if(r===`zIndex`)n.moveTo(c,s.indexOf(e));else if(r===`sort`){var d=e.get(`children`);d&&d.length&&n.sortDom(e,function(e,t){return d.indexOf(e)-d.indexOf(t)?1:0})}else r===`clear`?c&&(c.innerHTML=``):r===`matrix`?t.setTransform(e):r===`clip`?t.setClip(e,a):r===`attr`||r===`add`&&e.draw(a)}}e.refreshElement=i})),eD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=(J(),e(q)),a=hD(),o=$E(),s=QE(),c=XE(),l=ZE();t.default=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isEntityGroup=function(){return!0},t.prototype.createDom=function(){var e=l.createSVGElement(`g`);this.set(`el`,e);var t=this.getParent();if(t){var n=t.get(`el`);n?n.appendChild(e):(n=t.createDom(),t.set(`el`,n),n.appendChild(e))}return e},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get(`canvas`);if(n&&n.get(`autoDraw`)){var r=n.get(`context`);this.createPath(r,t)}},t.prototype.onCanvasChange=function(e){o.refreshElement(this,e)},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return t},t.prototype.draw=function(e){var t=this.getChildren(),n=this.get(`el`);this.get(`destroyed`)?n&&n.parentNode.removeChild(n):(n||this.createDom(),s.setClip(this,e),this.createPath(e),t.length&&o.drawChildren(e,t))},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);i.each(t||n,function(e,t){c.SVG_ATTR_MAP[t]&&r.setAttribute(c.SVG_ATTR_MAP[t],e)}),s.setTransform(this)},t}(r.AbstractGroup)})),tD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=QE(),a=ZE(),o=$E(),s=XE(),c=hD(),l=eD(),u=(X(),e(O_));t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`svg`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get(`canvas`);if(n&&n.get(`autoDraw`)){var r=n.get(`context`);this.draw(r,t)}},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return l.default},t.prototype.onCanvasChange=function(e){o.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`el`),t=null;if(e)t=e.getBBox();else{var n=u.getBBoxMethod(this.get(`type`));n&&(t=n(this))}if(t){var r=t.x,i=t.y,a=t.width,o=t.height,s=this.getHitLineWidth(),c=s/2,l=r-c,d=i-c;return{x:l,y:d,minX:l,minY:d,maxX:r+a+c,maxY:i+o+c,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},t.prototype.isFill=function(){var e=this.attr(),t=e.fill,n=e.fillStyle;return(t||n||this.isClipShape())&&this.canFill},t.prototype.isStroke=function(){var e=this.attr(),t=e.stroke,n=e.strokeStyle;return(t||n)&&this.canStroke},t.prototype.draw=function(e,t){var n=this.get(`el`);this.get(`destroyed`)?n&&n.parentNode.removeChild(n):(n||a.createDom(this),i.setClip(this,e),this.createPath(e,t),this.shadow(e,t),this.strokeAndFill(e,t),this.transform(t))},t.prototype.createPath=function(e,t){},t.prototype.strokeAndFill=function(e,t){var n=t||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,c=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,d=this.get(`el`);this.canFill&&(t?`fill`in n?this._setColor(e,`fill`,r):`fillStyle`in n&&this._setColor(e,`fill`,i):this._setColor(e,`fill`,r||i),c&&d.setAttribute(s.SVG_ATTR_MAP.fillOpacity,c)),this.canStroke&&u>0&&(t?`stroke`in n?this._setColor(e,`stroke`,a):`strokeStyle`in n&&this._setColor(e,`stroke`,o):this._setColor(e,`stroke`,a||o),l&&d.setAttribute(s.SVG_ATTR_MAP.strokeOpacity,l),u&&d.setAttribute(s.SVG_ATTR_MAP.lineWidth,u))},t.prototype._setColor=function(e,t,n){var r=this.get(`el`);if(!n){r.setAttribute(s.SVG_ATTR_MAP[t],`none`);return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=e.find(`gradient`,n);i||=e.addGradient(n),r.setAttribute(s.SVG_ATTR_MAP[t],`url(#`+i+`)`)}else if(/^[p,P]{1}[\s]*\(/.test(n)){var i=e.find(`pattern`,n);i||=e.addPattern(n),r.setAttribute(s.SVG_ATTR_MAP[t],`url(#`+i+`)`)}else r.setAttribute(s.SVG_ATTR_MAP[t],n)},t.prototype.shadow=function(e,t){var n=this.attr(),r=t||n,a=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(a||o||s||c)&&i.setShadow(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&i.setTransform(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var n=this.get(`el`),r=this.get(`canvas`).get(`el`).getBoundingClientRect(),i=e+r.left,a=t+r.top,o=document.elementFromPoint(i,a);return!!(o&&o.isEqualNode(n))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,n=e.lineAppendWidth;return this.isStroke()?t+n:0},t}(r.AbstractShape)})),nD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`circle`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`x`||t===`y`?a.setAttribute(`c`+t,e):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),rD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dom`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);if(r.each(t||n,function(e,t){i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)}),typeof n.html==`function`){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,c=s.length-1;c>=0;c--)a.removeChild(s[c]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=n.html},t}(tD().default)})),iD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`ellipse`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`x`||t===`y`?a.setAttribute(`c`+t,e):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),aD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`image`,t.canFill=!1,t.canStroke=!1,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var n=this,a=this.attr(),o=this.get(`el`);r.each(t||a,function(e,t){t===`img`?n._setImage(a.img):i.SVG_ATTR_MAP[t]&&o.setAttribute(i.SVG_ATTR_MAP[t],e)})},t.prototype.setAttr=function(e,t){this.attrs[e]=t,e===`img`&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),n=this.get(`el`);if(r.isString(e))n.setAttribute(`href`,e);else if(e instanceof window.Image)t.width||(n.setAttribute(`width`,e.width),this.attr(`width`,e.width)),t.height||(n.setAttribute(`height`,e.height),this.attr(`height`,e.height)),n.setAttribute(`href`,e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`)n.setAttribute(`href`,e.toDataURL());else if(e instanceof ImageData){var i=document.createElement(`canvas`);i.setAttribute(`width`,``+e.width),i.setAttribute(`height`,``+e.height),i.getContext(`2d`).putImageData(e,0,0),t.width||(n.setAttribute(`width`,``+e.width),this.attr(`width`,e.width)),t.height||(n.setAttribute(`height`,``+e.height),this.attr(`height`,e.height)),n.setAttribute(`href`,i.toDataURL())}},t}(tD().default)})),oD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(J(),e(q)),a=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`line`,t.canFill=!1,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);i.each(t||n,function(t,o){if(o===`startArrow`||o===`endArrow`)if(t){var s=i.isObject(t)?e.addArrow(n,a.SVG_ATTR_MAP[o]):e.getDefaultArrow(n,a.SVG_ATTR_MAP[o]);r.setAttribute(a.SVG_ATTR_MAP[o],`url(#`+s+`)`)}else r.removeAttribute(a.SVG_ATTR_MAP[o]);else a.SVG_ATTR_MAP[o]&&r.setAttribute(a.SVG_ATTR_MAP[o],t)})},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,i=e.x2,a=e.y2;return r.Line.length(t,n,i,a)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,i=t.y1,a=t.x2,o=t.y2;return r.Line.pointAt(n,i,a,o,e)},t}(tD().default)})),sD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t={circle:function(e,t,n){return[[`M`,e,t],[`m`,-n,0],[`a`,n,n,0,1,0,n*2,0],[`a`,n,n,0,1,0,-n*2,0]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`z`]]},triangleDown:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}};e.default={get:function(e){return t[e]},register:function(e,n){t[e]=n},remove:function(e){delete t[e]},getAll:function(){return t}}})),cD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=tD(),a=sD();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`marker`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.createPath=function(e){this.get(`el`).setAttribute(`d`,this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return r.isArray(e)?e.map(function(e){return e.join(` `)}).join(``):e},t.prototype._getPath=function(){var e=this.attr(),t=e.x,n=e.y,i=e.r||e.radius,o=e.symbol||`circle`,s=r.isFunction(o)?o:a.default.get(o);return s?s(t,n,i):(console.warn(s+` symbol is not exist.`),null)},t.symbolsFactory=a.default,t}(i.default)})),lD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`path`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this,a=this.attr(),o=this.get(`el`);r.each(t||a,function(t,s){if(s===`path`&&r.isArray(t))o.setAttribute(`d`,n._formatPath(t));else if(s===`startArrow`||s===`endArrow`)if(t){var c=r.isObject(t)?e.addArrow(a,i.SVG_ATTR_MAP[s]):e.getDefaultArrow(a,i.SVG_ATTR_MAP[s]);o.setAttribute(i.SVG_ATTR_MAP[s],`url(#`+c+`)`)}else o.removeAttribute(i.SVG_ATTR_MAP[s]);else i.SVG_ATTR_MAP[s]&&o.setAttribute(i.SVG_ATTR_MAP[s],t)})},t.prototype._formatPath=function(e){var t=e.map(function(e){return e.join(` `)}).join(``);return~t.indexOf(`NaN`)?``:t},t.prototype.getTotalLength=function(){var e=this.get(`el`);return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get(`el`),n=this.getTotalLength();if(n===0)return null;var r=t?t.getPointAtLength(e*n):null;return r?{x:r.x,y:r.y}:null},t}(tD().default)})),uD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`polygon`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.createPath=function(e,t){var n=this.attr(),a=this.get(`el`);r.each(t||n,function(e,t){t===`points`&&r.isArray(e)&&e.length>=2?a.setAttribute(`points`,e.map(function(e){return e[0]+`,`+e[1]}).join(` `)):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)})},t}(tD().default)})),dD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(yh(),e(vh)),i=(yh(),e(vh)),a=(J(),e(q)),o=XE();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`polyline`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get(`el`);a.each(t||n,function(e,t){t===`points`&&a.isArray(e)&&e.length>=2?r.setAttribute(`points`,e.map(function(e){return e[0]+`,`+e[1]}).join(` `)):o.SVG_ATTR_MAP[t]&&r.setAttribute(o.SVG_ATTR_MAP[t],e)})},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get(`totalLength`);return a.isNil(t)?(this.set(`totalLength`,r.Polyline.length(e)),this.get(`totalLength`)):t},t.prototype.getPoint=function(e){var t=this.attr().points,n=this.get(`tCache`);n||=(this._setTcache(),this.get(`tCache`));var r,o;return a.each(n,function(t,n){e>=t[0]&&e<=t[1]&&(r=(e-t[0])/(t[1]-t[0]),o=n)}),i.Line.pointAt(t[o][0],t[o][1],t[o+1][0],t[o+1][1],r)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,r=[],o,s;a.each(e,function(a,c){e[c+1]&&(o=[],o[0]=n/t,s=i.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),n+=s,o[1]=n/t,r.push(o))}),this.set(`tCache`,r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(tD().default)})),fD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parsePath=t.parseRadius=void 0;var n=(J(),e(q)),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s,]+/gi;function a(e){var t=0,r=0,i=0,a=0;return n.isArray(e)?e.length===1?t=r=i=a=e[0]:e.length===2?(t=i=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],i=e[2]):(t=e[0],r=e[1],i=e[2],a=e[3]):t=r=i=a=e,{r1:t,r2:r,r3:i,r4:a}}t.parseRadius=a;function o(e){if(e||=[],n.isArray(e))return e;if(n.isString(e))return e=e.match(r),n.each(e,function(t,r){if(t=t.match(i),t[0].length>1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}n.each(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[r]=t}),e}t.parsePath=o})),pD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=tD(),a=XE(),o=fD();t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`rect`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),o=this.get(`el`),s=!1,c=[`x`,`y`,`width`,`height`,`radius`];r.each(t||i,function(e,t){c.indexOf(t)!==-1&&!s?(o.setAttribute(`d`,n._assembleRect(i)),s=!0):c.indexOf(t)===-1&&a.SVG_ATTR_MAP[t]&&o.setAttribute(a.SVG_ATTR_MAP[t],e)})},t.prototype._assembleRect=function(e){var t=e.x,n=e.y,i=e.width,a=e.height,s=e.radius;if(!s)return`M `+t+`,`+n+` l `+i+`,0 l 0,`+a+` l`+-i+` 0 z`;var c=o.parseRadius(s);return r.isArray(s)?s.length===1?c.r1=c.r2=c.r3=c.r4=s[0]:s.length===2?(c.r1=c.r3=s[0],c.r2=c.r4=s[1]):s.length===3?(c.r1=s[0],c.r2=c.r4=s[1],c.r3=s[2]):(c.r1=s[0],c.r2=s[1],c.r3=s[2],c.r4=s[3]):c.r1=c.r2=c.r3=c.r4=s,[[`M `+(t+c.r1)+`,`+n],[`l `+(i-c.r1-c.r2)+`,0`],[`a `+c.r2+`,`+c.r2+`,0,0,1,`+c.r2+`,`+c.r2],[`l 0,`+(a-c.r2-c.r3)],[`a `+c.r3+`,`+c.r3+`,0,0,1,`+-c.r3+`,`+c.r3],[`l `+(c.r3+c.r4-i)+`,0`],[`a `+c.r4+`,`+c.r4+`,0,0,1,`+-c.r4+`,`+-c.r4],[`l 0,`+(c.r4+c.r1-a)],[`a `+c.r1+`,`+c.r1+`,0,0,1,`+c.r1+`,`+-c.r1],[`z`]].join(` `)},t}(i.default)})),mD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(js(),e(fs)),a=QE(),o=XE(),s=tD(),c=.3,l={top:`before-edge`,middle:`central`,bottom:`after-edge`,alphabetic:`baseline`,hanging:`hanging`},u={top:`text-before-edge`,middle:`central`,bottom:`text-after-edge`,alphabetic:`alphabetic`,hanging:`hanging`},d={left:`left`,start:`left`,center:`middle`,right:`end`,end:`end`};t.default=function(e){n.__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`text`,t.canFill=!0,t.canStroke=!0,t}return t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.createPath=function(e,t){var n=this,i=this.attr(),s=this.get(`el`);this._setFont(),r.each(t||i,function(e,t){t===`text`?n._setText(``+e):t===`matrix`&&e?a.setTransform(n):o.SVG_ATTR_MAP[t]&&s.setAttribute(o.SVG_ATTR_MAP[t],e)}),s.setAttribute(`paint-order`,`stroke`),s.setAttribute(`style`,`stroke-linecap:butt; stroke-linejoin:miter;`)},t.prototype._setFont=function(){var e=this.get(`el`),t=this.attr(),n=t.textBaseline,r=t.textAlign,a=i.detect();a&&a.name===`firefox`?e.setAttribute(`dominant-baseline`,u[n]||`alphabetic`):e.setAttribute(`alignment-baseline`,l[n]||`baseline`),e.setAttribute(`text-anchor`,d[r]||`left`)},t.prototype._setText=function(e){var t=this.get(`el`),n=this.attr(),i=n.x,a=n.textBaseline,o=a===void 0?`bottom`:a;if(!e)t.innerHTML=``;else if(~e.indexOf(` +`)){var s=e.split(` +`),l=s.length-1,u=``;r.each(s,function(e,t){t===0?o===`alphabetic`?u+=``+e+``:o===`top`?u+=``+e+``:o===`middle`?u+=``+e+``:o===`bottom`?u+=``+e+``:o===`hanging`&&(u+=``+e+``):u+=``+e+``}),t.innerHTML=u}else t.innerHTML=e},t}(s.default)})),hD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tD();Object.defineProperty(e,`Base`,{enumerable:!0,get:function(){return t.default}});var n=nD();Object.defineProperty(e,`Circle`,{enumerable:!0,get:function(){return n.default}});var r=rD();Object.defineProperty(e,`Dom`,{enumerable:!0,get:function(){return r.default}});var i=iD();Object.defineProperty(e,`Ellipse`,{enumerable:!0,get:function(){return i.default}});var a=aD();Object.defineProperty(e,`Image`,{enumerable:!0,get:function(){return a.default}});var o=oD();Object.defineProperty(e,`Line`,{enumerable:!0,get:function(){return o.default}});var s=cD();Object.defineProperty(e,`Marker`,{enumerable:!0,get:function(){return s.default}});var c=lD();Object.defineProperty(e,`Path`,{enumerable:!0,get:function(){return c.default}});var l=uD();Object.defineProperty(e,`Polygon`,{enumerable:!0,get:function(){return l.default}});var u=dD();Object.defineProperty(e,`Polyline`,{enumerable:!0,get:function(){return u.default}});var d=pD();Object.defineProperty(e,`Rect`,{enumerable:!0,get:function(){return d.default}});var f=mD();Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return f.default}})})),gD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function s(e){var t=e.match(o);if(!t)return``;var r=``;return t.sort(function(e,t){return e=e.split(`:`),t=t.split(`:`),Number(e[0])-Number(t[0])}),n.each(t,function(e){e=e.split(`:`),r+=``}),r}function c(e,t){var r=i.exec(e),a=n.mod(n.toRadian(parseFloat(r[1])),Math.PI*2),o=r[2],c,l;a>=0&&a<.5*Math.PI?(c={x:0,y:0},l={x:1,y:1}):.5*Math.PI<=a&&a{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i={shadowColor:`color`,shadowOpacity:`opacity`,shadowBlur:`blur`,shadowOffsetX:`dx`,shadowOffsetY:`dy`},a={x:`-40%`,y:`-40%`,width:`200%`,height:`200%`};t.default=function(){function e(e){this.type=`filter`,this.cfg={},this.type=`filter`;var t=r.createSVGElement(`filter`);return n.each(a,function(e,n){t.setAttribute(n,e)}),this.el=t,this.id=n.uniqueId(`filter_`),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}return e.prototype.match=function(e,t){if(this.type!==e)return!1;var r=!0,i=this.cfg;return n.each(Object.keys(i),function(e){if(i[e]!==t[e])return r=!1,!1}),r},e.prototype.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(e,t){t.innerHTML=``},e}()})),vD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE();t.default=function(){function e(e,t){this.cfg={};var i=r.createSVGElement(`marker`),a=n.uniqueId(`marker_`);i.setAttribute(`id`,a);var o=r.createSVGElement(`path`);o.setAttribute(`stroke`,e.stroke||`none`),o.setAttribute(`fill`,e.fill||`none`),i.appendChild(o),i.setAttribute(`overflow`,`visible`),i.setAttribute(`orient`,`auto-start-reverse`),this.el=i,this.child=o,this.id=a;var s=e[t===`marker-start`?`startArrow`:`endArrow`];return this.stroke=e.stroke||`#000`,s===!0?this._setDefaultPath(t,o):(this.cfg=s,this._setMarker(e.lineWidth,o)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute(`d`,`M0,0 L`+10*Math.cos(Math.PI/6)+`,5 L0,10`),n.setAttribute(`refX`,``+10*Math.cos(Math.PI/6)),n.setAttribute(`refY`,`5`)},e.prototype._setMarker=function(e,t){var r=this.el,i=this.cfg.path,a=this.cfg.d;n.isArray(i)&&(i=i.map(function(e){return e.join(` `)}).join(``)),t.setAttribute(`d`,i),r.appendChild(t),a&&r.setAttribute(`refX`,``+a/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr(`fill`,e):t.setAttribute(`fill`,e)},e}()})),yD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE();t.default=function(){function e(e){this.type=`clip`,this.cfg={};var t=r.createSVGElement(`clipPath`);this.el=t,this.id=n.uniqueId(`clip_`),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}()})),bD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ZE(),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i;t.default=function(){function e(e){this.cfg={};var t=r.createSVGElement(`pattern`);t.setAttribute(`patternUnits`,`userSpaceOnUse`);var a=r.createSVGElement(`image`);t.appendChild(a);var o=n.uniqueId(`pattern_`);t.id=o,this.el=t,this.id=o,this.cfg=e;var s=i.exec(e)[2];a.setAttribute(`href`,s);var c=new Image;s.match(/^data:/i)||(c.crossOrigin=`Anonymous`),c.src=s;function l(){t.setAttribute(`width`,``+c.width),t.setAttribute(`height`,``+c.height)}return c.complete?l():(c.onload=l,c.src=c.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}()})),xD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=gD(),i=_D(),a=vD(),o=yD(),s=bD(),c=ZE();t.default=function(){function e(e){var t=c.createSVGElement(`defs`);t.id=n.uniqueId(`defs_`),e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var n=this.children,r=null,i=0;i{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(X(),e(O_)),i=XE(),a=$E(),o=QE(),s=ZE(),c=hD(),l=eD(),u=xD();t.default=function(e){n.__extends(t,e);function t(t){return e.call(this,n.__assign(n.__assign({},t),{autoDraw:!0,renderer:`svg`}))||this}return t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return l.default},t.prototype.getShape=function(e,t,n){var r=n.target||n.srcElement;if(!i.SHAPE_TO_TAGS[r.tagName]){for(var a=r.parentNode;a&&!i.SHAPE_TO_TAGS[a.tagName];)a=a.parentNode;r=a}return this.find(function(e){return e.get(`el`)===r})},t.prototype.createDom=function(){var e=s.createSVGElement(`svg`),t=new u.default(e);return e.setAttribute(`width`,``+this.get(`width`)),e.setAttribute(`height`,``+this.get(`height`)),this.set(`context`,t),e},t.prototype.onCanvasChange=function(e){var t=this.get(`context`),n=this.get(`el`);if(e===`sort`){var r=this.get(`children`);r&&r.length&&s.sortDom(this,function(e,t){return r.indexOf(e)-r.indexOf(t)?1:0})}else if(e===`clear`){if(n){n.innerHTML=``;var i=t.el;i.innerHTML=``,n.appendChild(i)}}else e===`matrix`?o.setTransform(this):e===`clip`?o.setClip(this,t):e===`changeSize`&&(n.setAttribute(`width`,``+this.get(`width`)),n.setAttribute(`height`,``+this.get(`height`)))},t.prototype.draw=function(){var e=this.get(`context`),t=this.getChildren();o.setClip(this,e),t.length&&a.drawChildren(e,t)},t}(r.AbstractCanvas)})),CD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.version=t.Shape=void 0;var n=(R(),e(F));t.Shape=hD(),n.__exportStar((X(),e(O_)),t);var r=SD();Object.defineProperty(t,`Canvas`,{enumerable:!0,get:function(){return r.default}});var i=eD();Object.defineProperty(t,`Group`,{enumerable:!0,get:function(){return i.default}}),t.version=`0.5.6`})),wD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerEngine=e.getEngine=void 0;var t={};function n(e){var n=t[e];if(!n)throw Error(`G engine '`+e+`' is not exist, please register it at first.`);return n}e.getEngine=n;function r(e,n){t[e]=n}e.registerEngine=r})),TD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.modifyCSS=t.createDom=t.removeDom=t.getChartSize=void 0;var n=Y();function r(e){var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}function i(e){return typeof e==`number`&&!isNaN(e)}function a(e,t,a,o){var s=a,c=o;if(t){var l=r(e);s=l.width?l.width:s,c=l.height?l.height:c}return{width:Math.max(i(s)?s:n.MIN_CHART_WIDTH,n.MIN_CHART_WIDTH),height:Math.max(i(c)?c:n.MIN_CHART_HEIGHT,n.MIN_CHART_HEIGHT)}}t.getChartSize=a;function o(e){var t=e.parentNode;t&&t.removeChild(e)}t.removeDom=o;var s=(xC(),e(bC));Object.defineProperty(t,`createDom`,{enumerable:!0,get:function(){return s.createDom}}),Object.defineProperty(t,`modifyCSS`,{enumerable:!0,get:function(){return s.modifyCSS}})})),ED=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this)||this;n.destroyed=!1;var r=t.visible;return n.visible=r===void 0?!0:r,n}return t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}((0,n.__importDefault)((is(),e(ts))).default)})),DD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Facet=void 0;var n=(J(),e(q)),r=Y(),i=dE();t.Facet=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,n.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||=this.createContainer();var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&=(this.container.remove(!0),void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,n=e.data,r=e.padding,i=r===void 0?this.cfg.padding:r,a=this.view.createView({region:t,padding:i});a.data(n||[]),e.view=a,this.beforeEachView(a,e);var o=this.cfg.eachView;return o&&o(a,e),this.afterEachView(a,e),a},e.prototype.createContainer=function(){return this.view.getLayer(r.LAYER.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},e.prototype.clearFacetViews=function(){var e=this;(0,n.each)(this.facets,function(t){t.view&&=(e.view.removeView(t.view),void 0)})},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,r=e.height;return this.cfg.spacing.map(function(e,i){return(0,n.isNumber)(e)?e/(i===0?t:r):parseFloat(e)/100})},e.prototype.getFieldValues=function(e,t){var r=[],i={};return(0,n.each)(e,function(e){var a=e[t];!(0,n.isNil)(a)&&!i[a]&&(r.push(a),i[a]=!0)}),r},e.prototype.getRegion=function(e,t,n,r){var i=this.parseSpacing(),a=i[0],o=i[1],s=(1+a)/(t===0?1:t)-a,c=(1+o)/(e===0?1:e)-o,l={x:(s+a)*n,y:(c+o)*r};return{start:l,end:{x:l.x+s,y:l.y+c}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:`#666`,fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var r=e.getOptions(),a=r.coordinate,o=e.geometries;if((0,n.get)(a,`type`,`rect`)===`rect`&&o.length){(0,n.isNil)(r.axes)&&(r.axes={});var s=r.axes,c=o[0].getXYFields(),l=c[0],u=c[1],d=(0,i.getAxisOption)(s,l),f=(0,i.getAxisOption)(s,u);d!==!1&&(r.axes[l]=this.getXAxisOption(l,s,d,t)),f!==!1&&(r.axes[u]=this.getYAxisOption(u,s,f,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,n.every)(e,function(e){var r=e.field,i=e.value;return!(0,n.isNil)(i)&&r?t[r]===i:!0})}},e}()})),OD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerFacet=t.getFacet=t.Facet=void 0;var n=(J(),e(q)),r=DD();Object.defineProperty(t,`Facet`,{enumerable:!0,get:function(){return r.Facet}});var i={};t.getFacet=function(e){return i[(0,n.lowerCase)(e)]},t.registerFacet=function(e,t){i[(0,n.lowerCase)(e)]=t}})),kD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q));t.default=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,n.assign)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}()})),AD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}((0,n.__importDefault)(kD()).default)})),jD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createCallbackAction=t.unregisterAction=t.registerAction=t.getActionClass=t.createAction=void 0;var n=(0,(R(),e(F)).__importDefault)(AD()),r=(J(),e(q)),i={};function a(e,t){var n=i[e],r=null;if(n){var a=n.ActionClass,o=n.cfg;r=new a(t,o),r.name=e,r.init()}return r}t.createAction=a;function o(e){var t=i[e];return(0,r.get)(t,`ActionClass`)}t.getActionClass=o;function s(e,t,n){i[e]={ActionClass:t,cfg:n}}t.registerAction=s;function c(e){delete i[e]}t.unregisterAction=c;function l(e,t){var r=new n.default(t);return r.callback=e,r.name=`callback`,r}t.createCallbackAction=l})),MD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.convertPolarPath=t.convertNormalPath=t.getSplinePath=t.getLinePath=t.catmullRom2bezier=t.smoothBezier=void 0;var n=(yu(),e(vu)),r=(J(),e(q)),i=lE();function a(e,t){var n=[];if(e.length){n.push([`M`,e[0].x,e[0].y]);for(var r=1,i=e.length;r=s[u]),p=+(d>Math.PI),m=n.convert(c),h=(0,i.getDistanceToCenter)(n,m);if(h>=.5)if(d===Math.PI*2){var g={x:(c.x+s.x)/2,y:(c.y+s.y)/2},_=n.convert(g);l.push([`A`,h,h,0,p,f,_.x,_.y]),l.push([`A`,h,h,0,p,f,m.x,m.y])}else l.push([`A`,h,h,0,p,f,m.x,m.y]);return l}function l(e){(0,r.each)(e,function(t,n){if(t[0].toLowerCase()===`a`){var r=e[n-1],i=e[n+1];i&&i[0].toLowerCase()===`a`?r&&r[0].toLowerCase()===`l`&&(r[0]=`M`):r&&r[0].toLowerCase()===`a`&&i&&i[0].toLowerCase()===`l`&&(i[0]=`M`)}})}t.smoothBezier=function(e,t,r,i){var a=[],o=!!i,s,c,l,u,d,f,p;if(o){l=i[0],u=i[1];for(var m=0,h=e.length;m{Object.defineProperty(t,`__esModule`,{value:!0}),t.getScaleByField=t.isInRecords=t.getSiblingPoint=t.getSilbings=t.isInBox=t.getSpline=t.distance=t.getComponents=t.getElementsByPath=t.getIntersectElements=t.intersectRect=t.getElementValue=t.getElementsByState=t.getElementsByField=t.getElements=t.getSiblingMaskElements=t.getMaskedElements=t.isMask=t.isSlider=t.isList=t.isElementChange=t.getDelegationObject=t.getCurrentElement=void 0;var n=(J(),e(q)),r=MD(),i=cE(),a=(v_(),e(__));function o(e,t){var n=e.event.target.getCanvasBBox();return n.width>=t||n.height>=t?n:null}function s(e,t){var n=e.event.target,r=n.getCanvasBBox();return r.width>=t||r.height>=t?n.attr(`path`):null}function c(e){var t=e.event,n,r=t.target;return r&&(n=r.get(`element`)),n}t.getCurrentElement=c;function l(e){var t=e.event.target,n;return t&&(n=t.get(`delegateObject`)),n}t.getDelegationObject=l;function u(e){var t=e.event.gEvent;return!(t&&t.fromShape&&t.toShape&&t.fromShape.get(`element`)===t.toShape.get(`element`))}t.isElementChange=u;function d(e){return e&&e.component&&e.component.isList()}t.isList=d;function f(e){return e&&e.component&&e.component.isSlider()}t.isSlider=f;function p(e){var t=e.event.target;return t&&t.get(`name`)===`mask`}t.isMask=p;function m(e,t){if(e.event.target.get(`type`)===`path`){var n=s(e,t);return n?C(e.view,n):void 0}var r=o(e,t);return r?x(e.view,r):null}t.getMaskedElements=m;function h(e,t,n){var r=o(e,n);if(!r)return null;var i=e.view,a=A(i,t,{x:r.x,y:r.y}),s=A(i,t,{x:r.maxX,y:r.maxY});return x(t,{minX:a.x,minY:a.y,maxX:s.x,maxY:s.y})}t.getSiblingMaskElements=h;function g(e){var t=e.geometries,r=[];return(0,n.each)(t,function(e){var t=e.elements;r=r.concat(t)}),e.views&&e.views.length&&(0,n.each)(e.views,function(e){r=r.concat(g(e))}),r}t.getElements=g;function _(e,t,n){return g(e).filter(function(e){return y(e,t)===n})}t.getElementsByField=_;function v(e,t){var r=e.geometries,i=[];return(0,n.each)(r,function(e){var n=e.getElementsBy(function(e){return e.hasState(t)});i=i.concat(n)}),i}t.getElementsByState=v;function y(e,t){var r=e.getModel().data;return(0,n.isArray)(r)?r[0][t]:r[t]}t.getElementValue=y;function b(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}t.isInBox=D;function O(e){var t=e.parent,n=null;return t&&(n=t.views.filter(function(t){return t!==e})),n}t.getSilbings=O;function k(e,t){return e.getCoordinate().invert(t)}function A(e,t,n){var r=k(e,n);return t.getCoordinate().convert(r)}t.getSiblingPoint=A;function ee(e,t,r,i){var a=!1;return(0,n.each)(e,function(e){if(e[r]===t[r]&&e[i]===t[i])return a=!0,!1}),a}t.isInRecords=ee;function te(e,t){var r=e.getScaleByField(t);return!r&&e.views&&(0,n.each)(e.views,function(e){if(r=te(e,t),r)return!1}),r}t.getScaleByField=te})),PD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=ND();t.default=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){var e=[...arguments];if(e.length===1)return this.cacheMap[e[0]];e.length===2&&(this.cacheMap[e[0]]=e[1])},e.prototype.getAction=function(e){return this.actions.find(function(t){return t.name===e})},e.prototype.addAction=function(e){this.actions.push(e)},e.prototype.removeAction=function(e){var t=this.actions,n=this.actions.indexOf(e);n>=0&&t.splice(n,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,n.get)(this.event,[`gEvent`,`shape`])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return e?this.view.isPointInPlot(e):!1},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return t?t.get(`name`)===e:!1},e.prototype.isInComponent=function(e){var t=(0,r.getComponents)(this.view),n=this.getCurrentPoint();return n?!!t.find(function(t){var i=t.getBBox();return e?t.get(`name`)===e&&(0,r.isInBox)(i,n):(0,r.isInBox)(i,n)}):!1},e.prototype.destroy=function(){(0,n.each)(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}()})),FD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}()})),ID=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseAction=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=jD(),a=(0,n.__importDefault)(PD()),o=(0,n.__importDefault)(FD());function s(e,t,n){var r=e.split(`:`),a=r[0],o=t.getAction(a)||(0,i.createAction)(a,t);if(!o)throw Error(`There is no action named `+a);return{action:o,methodName:r[1],arg:n}}t.parseAction=s;function c(e){var t=e.action,n=e.methodName,r=e.arg;if(t[n])t[n](r);else throw Error(`Action(`+t.name+`) doesn't have a method called `+n)}var l={START:`start`,SHOW_ENABLE:`showEnable`,END:`end`,ROLLBACK:`rollback`,PROCESSING:`processing`};t.default=function(e){(0,n.__extends)(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&=(this.context.destroy(),null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,r.each)(this.steps,function(t,n){(0,r.each)(t,function(t){var r=e.getActionCallback(n,t);r&&e.bindEvent(t.trigger,r)})})},t.prototype.clearEvents=function(){var e=this;(0,r.each)(this.steps,function(t,n){(0,r.each)(t,function(t){var r=e.getActionCallback(n,t);r&&e.offEvent(t.trigger,r)})})},t.prototype.initContext=function(){var e=this.view,t=new a.default(e);this.context=t;var n=this.steps;(0,r.each)(n,function(e){(0,r.each)(e,function(e){if((0,r.isFunction)(e.action))e.actionObject={action:(0,i.createCallbackAction)(e.action,t),methodName:`execute`};else if((0,r.isString)(e.action))e.actionObject=s(e.action,t,e.arg);else if((0,r.isArray)(e.action)){var n=e.action,a=(0,r.isArray)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,r.each)(n,function(n,r){e.actionObject.push(s(n,t,a[r]))})}})})},t.prototype.isAllowStep=function(e){var t=this.currentStepName,n=this.steps;if(t===e||e===l.SHOW_ENABLE)return!0;if(e===l.PROCESSING)return t===l.START;if(e===l.START)return t!==l.PROCESSING;if(e===l.END)return t===l.PROCESSING||t===l.START;if(e===l.ROLLBACK){if(n[l.END])return t===l.END;if(t===l.START)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var n=this.getKey(e,t);return t.once&&this.emitCaches[n]?!1:t.isEnable?t.isEnable(this.context):!0}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==l.SHOW_ENABLE&&this.currentStepName!==e&&this.enterStep(e);var n=this.getKey(e,t);this.emitCaches[n]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var n=this,i=this.context,a=this.callbackCaches,o=t.actionObject;if(t.action&&o){var s=this.getKey(e,t);if(!a[s]){var l=function(a){i.event=a,n.isAllowExecute(e,t)?((0,r.isArray)(o)?(0,r.each)(o,function(e){i.event=a,c(e)}):(i.event=a,c(o)),n.afterExecute(e,t),t.callback&&(i.event=a,t.callback(i))):i.event=null};t.debounce?a[s]=(0,r.debounce)(l,t.debounce.wait,t.debounce.immediate):t.throttle?a[s]=(0,r.throttle)(l,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):a[s]=l}return a[s]}return null},t.prototype.bindEvent=function(e,t){var n=e.split(`:`);n[0]===`window`?window.addEventListener(n[1],t):n[0]===`document`?document.addEventListener(n[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var n=e.split(`:`);n[0]===`window`?window.removeEventListener(n[1],t):n[0]===`document`?document.removeEventListener(n[1],t):this.view.off(e,t)},t}(o.default)})),LD=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var n=kD();Object.defineProperty(e,`Action`,{enumerable:!0,get:function(){return t(n).default}});var r=jD();Object.defineProperty(e,`createAction`,{enumerable:!0,get:function(){return r.createAction}}),Object.defineProperty(e,`registerAction`,{enumerable:!0,get:function(){return r.registerAction}}),Object.defineProperty(e,`getActionClass`,{enumerable:!0,get:function(){return r.getActionClass}})})),RD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getActionClass=t.registerAction=t.Action=t.Interaction=t.createInteraction=t.registerInteraction=t.getInteraction=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(ID()),a={};function o(e){return a[(0,r.lowerCase)(e)]}t.getInteraction=o;function s(e,t){a[(0,r.lowerCase)(e)]=t}t.registerInteraction=s;function c(e,t,n){var a=o(e);if(!a)return null;if((0,r.isPlainObject)(a)){var s=(0,r.mix)((0,r.clone)(a),n);return new i.default(t,s)}else return new a(t,n)}t.createInteraction=c;var l=FD();Object.defineProperty(t,`Interaction`,{enumerable:!0,get:function(){return(0,n.__importDefault)(l).default}});var u=LD();Object.defineProperty(t,`Action`,{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(t,`registerAction`,{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(t,`getActionClass`,{enumerable:!0,get:function(){return u.getActionClass}})})),zD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createThemeByStyleSheet=void 0;var n=(R(),e(F)),r=(nE(),e(tE)),i=(yu(),e(vu)),a=(J(),e(q)),o=oE();function s(e){return{title:{autoRotate:!0,position:`center`,spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:`middle`,fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:`equidistance`,cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:`line`,style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function c(e){return{title:null,marker:{symbol:`circle`,spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:`start`,textBaseline:`middle`}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:`#D8D8D8`},markerStyle:{fill:`#D8D8D8`,stroke:`#D8D8D8`}},inactive:{nameStyle:{fill:`#D8D8D8`},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function l(e){var t,l={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:`round`,lineJoin:`round`},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},u=s(e),d=c(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:`auto`,fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:[`hollow-circle`,`hollow-square`,`hollow-bowtie`,`hollow-diamond`,`hollow-hexagon`,`hollow-triangle`,`hollow-triangle-down`,`circle`,`square`,`bowtie`,`diamond`,`hexagon`,`triangle`,`triangle-down`,`cross`,`tick`,`plus`,`hyphen`,`line`],line:[`line`,`dash`,`dot`,`smooth`],area:[`area`,`smooth`,`line`,`smooth-line`],interval:[`rect`,`hollow-rect`,`line`,`tick`]},sizes:[1,10],geometries:{interval:{rect:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var n=(0,o.getAngle)(e.getModel(),t),r=(n.startAngle+n.endAngle)/2,a=7.5,s=a*Math.cos(r),c=a*Math.sin(r);return{matrix:i.ext.transform(null,[[`t`,s,c]])}}return l.interval.selected}}},"hollow-rect":{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},line:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},tick:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},funnel:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}},pyramid:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}}},line:{line:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},dot:{default:{style:(0,n.__assign)((0,n.__assign)({},l.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,n.__assign)((0,n.__assign)({},l.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,n.__assign)((0,n.__assign)({},l.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,n.__assign)((0,n.__assign)({},l.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,n.__assign)((0,n.__assign)({},l.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,n.__assign)((0,n.__assign)({},l.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,n.__assign)((0,n.__assign)({},l.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,n.__assign)((0,n.__assign)({},l.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vh:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hvh:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vhv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}}},polygon:{polygon:{default:{style:l.interval.default},active:{style:l.interval.active},inactive:{style:l.interval.inactive},selected:{style:l.interval.selected}}},point:{circle:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},square:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},bowtie:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},diamond:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},hexagon:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},triangle:{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},"triangle-down":{default:{style:l.point.default},active:{style:l.point.active},inactive:{style:l.point.inactive},selected:{style:l.point.selected}},"hollow-circle":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-square":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-bowtie":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-diamond":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-hexagon":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-triangle":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},"hollow-triangle-down":{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},cross:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},tick:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},plus:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},hyphen:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}},line:{default:{style:l.hollowPoint.default},active:{style:l.hollowPoint.active},inactive:{style:l.hollowPoint.inactive},selected:{style:l.hollowPoint.selected}}},area:{area:{default:{style:l.area.default},active:{style:l.area.active},inactive:{style:l.area.inactive},selected:{style:l.area.selected}},smooth:{default:{style:l.area.default},active:{style:l.area.active},inactive:{style:l.area.inactive},selected:{style:l.area.selected}},line:{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}},"smooth-line":{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}}},schema:{candle:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}},box:{default:{style:l.hollowInterval.default},active:{style:l.hollowInterval.active},inactive:{style:l.hollowInterval.inactive},selected:{style:l.hollowInterval.selected}}},edge:{line:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},vhv:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},arc:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}}},violin:{violin:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},smooth:{default:{style:l.line.default},active:{style:l.line.active},inactive:{style:l.line.inactive},selected:{style:l.line.selected}},hollow:{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}},"hollow-smooth":{default:{style:l.hollowArea.default},active:{style:l.hollowArea.active},inactive:{style:l.hollowArea.inactive},selected:{style:l.hollowArea.selected}}}},components:{axis:{common:u,top:{position:`top`,grid:null,title:null,verticalLimitLength:1/2},bottom:{position:`bottom`,grid:null,title:null,verticalLimitLength:1/2},left:{position:`left`,title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:`right`,title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,a.deepMix)({},u.grid,{line:{type:`line`}})},radius:{title:null,grid:(0,a.deepMix)({},u.grid,{line:{type:`circle`}})}},legend:{common:d,right:{layout:`vertical`,padding:e.legendVerticalPadding},left:{layout:`vertical`,padding:e.legendVerticalPadding},top:{layout:`horizontal`,padding:e.legendHorizontalPadding},bottom:{layout:`horizontal`,padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:`color`,size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:`rail`,spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:`middle`,fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:d.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:`auto`,marker:{symbol:`circle`,stroke:`#fff`,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0,0,0,0.09)`,lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:`rgba(0, 0, 0, 0.25)`,lineWidth:0,stroke:null}},follow:!1},domStyles:(t={},t[``+r.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:`absolute`,visibility:`hidden`,zIndex:8,transition:`left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s`,backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+`px`,color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+`px`,fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+`px`,padding:`0 12px 0 12px`},t[``+r.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:`12px`,marginTop:`12px`},t[``+r.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:`none`,padding:0},t[``+r.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:`none`,padding:0,marginBottom:`12px`,marginTop:`12px`,marginLeft:0,marginRight:0},t[``+r.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:`8px`,height:`8px`,borderRadius:`50%`,display:`inline-block`,marginRight:`8px`},t[``+r.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:`inline-block`,float:`right`,marginLeft:`30px`},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:`start`,autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:`start`,fontFamily:e.fontFamily,textBaseline:`bottom`}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:`middle`,textAlign:`start`,fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:`start`,fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:`upward`,autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:`center`,textBaseline:`bottom`,fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}t.createThemeByStyleSheet=l})),BD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var t={100:`#000`,95:`#0D0D0D`,85:`#262626`,65:`#595959`,45:`#8C8C8C`,25:`#BFBFBF`,15:`#D9D9D9`,6:`#F0F0F0`},n={100:`#FFFFFF`,95:`#F2F2F2`,85:`#D9D9D9`,65:`#A6A6A6`,45:`#737373`,25:`#404040`,15:`#262626`,6:`#0F0F0F`},r=[`#5B8FF9`,`#5AD8A6`,`#5D7092`,`#F6BD16`,`#6F5EF9`,`#6DC8EC`,`#945FB9`,`#FF9845`,`#1E9493`,`#FF99C3`],i=[`#5B8FF9`,`#CDDDFD`,`#5AD8A6`,`#CDF3E4`,`#5D7092`,`#CED4DE`,`#F6BD16`,`#FCEBB9`,`#6F5EF9`,`#D3CEFD`,`#6DC8EC`,`#D3EEF9`,`#945FB9`,`#DECFEA`,`#FF9845`,`#FFE0C7`,`#1E9493`,`#BBDEDE`,`#FF99C3`,`#FFE0ED`],a=[`#B8E1FF`,`#9AC5FF`,`#7DAAFF`,`#5B8FF9`,`#3D76DD`,`#085EC0`,`#0047A5`,`#00318A`,`#001D70`];e.createLightStyleSheet=function(e){e===void 0&&(e={});var o=e.backgroundColor,s=o===void 0?`transparent`:o,c=e.subColor,l=c===void 0?`rgba(0,0,0,0.05)`:c,u=e.paletteQualitative10,d=u===void 0?r:u,f=e.paletteQualitative20,p=f===void 0?i:f,m=e.paletteSemanticRed,h=m===void 0?`#F4664A`:m,g=e.paletteSemanticGreen,_=g===void 0?`#30BF78`:g,v=e.paletteSemanticYellow,y=v===void 0?`#FAAD14`:v,b=e.paletteSequence,x=b===void 0?a:b,S=e.fontFamily,C=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`:S,w=e.brandColor,T=w===void 0?d[0]:w;return{backgroundColor:s,brandColor:T,subColor:l,paletteQualitative10:d,paletteQualitative20:p,paletteSemanticRed:h,paletteSemanticGreen:_,paletteSemanticYellow:y,paletteSequence:x,fontFamily:C,axisLineBorderColor:t[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:t[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:`normal`,axisTitleSpacing:12,axisTickLineBorderColor:t[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:t[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:t[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:`normal`,axisLabelOffset:8,axisGridBorderColor:t[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:t[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:`normal`,legendMarkerColor:T,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:t[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:`normal`,legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:t[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:t[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:t[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:t[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:t[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:`normal`,sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:t[15],annotationArcBorder:1,annotationLineBorderColor:t[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:t[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:`normal`,annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:t[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:t[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:`rgb(255, 255, 255)`,tooltipContainerFillOpacity:.95,tooltipContainerShadow:`0px 0px 10px #aeaeae`,tooltipContainerBorderRadius:3,tooltipTextFillColor:t[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:`bold`,labelFillColor:t[65],labelFillColorDark:`#2c3542`,labelFillColorLight:`#ffffff`,labelFontSize:12,labelLineHeight:12,labelFontWeight:`normal`,labelBorderColor:null,labelBorder:0,innerLabelFillColor:n[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:`normal`,innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:t[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:`normal`,overflowLabelBorderColor:n[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:t[25],cSliderRailHieght:16,cSliderBackgroundFillColor:`#416180`,cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:`#5B8FF9`,cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:`#F7F7F7`,cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:`#FFF`,cSliderHandlerBorderColor:`#BFBFBF`,cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:`#000`,cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:`normal`,cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:`rgba(0,0,0,0)`,scrollbarThumbFillColor:`rgba(0,0,0,0.15)`,scrollbarThumbHighlightFillColor:`rgba(0,0,0,0.2)`,pointFillColor:T,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:n[100],pointBorderOpacity:1,pointActiveBorderColor:t[100],pointSelectedBorder:2,pointSelectedBorderColor:t[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:T,hollowPointBorderOpacity:.95,hollowPointFillColor:n[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:t[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:t[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:T,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:T,areaFillOpacity:.25,areaActiveFillColor:T,areaActiveFillOpacity:.5,areaSelectedFillColor:T,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:T,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:t[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:t[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:T,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:t[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:t[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:T,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:n[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:t[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:t[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvLight=(0,e.createLightStyleSheet)()})),VD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.createTheme=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=zD(),a=BD();function o(e){var t=e.styleSheet,o=t===void 0?{}:t,s=(0,n.__rest)(e,[`styleSheet`]),c=(0,a.createLightStyleSheet)(o);return(0,r.deepMix)({},(0,i.createThemeByStyleSheet)(c),s)}t.createTheme=o})),HD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createTheme=void 0;var t=VD();Object.defineProperty(e,`createTheme`,{enumerable:!0,get:function(){return t.createTheme}})})),UD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerTheme=t.getTheme=void 0;var n=(J(),e(q)),r=HD(),i={default:(0,r.createTheme)({})};function a(e){return(0,n.get)(i,(0,n.lowerCase)(e),i.default)}t.getTheme=a;function o(e,t){i[(0,n.lowerCase)(e)]=(0,r.createTheme)(t)}t.registerTheme=o})),WD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.findItemsFromViewRecurisive=t.findItemsFromView=t.getTooltipItems=t.findDataByPoint=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=uE();function o(e,t,n){var i=n.translate(e),a=n.translate(t);return(0,r.isNumberEqual)(i,a)}function s(e,t){var n=t.coordinate,r=t.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(e).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}function c(e,t,n){var a=n.coordinate,o=n.getYScale(),s=o.field,c=a.invert(t),l=o.invert(c.y);return(0,r.find)(e,function(e){var t=e[i.FIELD_ORIGIN];return t[s][0]<=l&&t[s][1]>=l})||e[e.length-1]}var l=(0,r.memoize)(function(e){if(e.isCategory)return 1;for(var t=e.values,n=t.length,r=e.translate(t[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)});function u(e,t,n){var i=t.getAttribute(`position`).getFields(),a=t.scales,o=(0,r.isFunction)(n)||!n?i[0]:n,s=a[o],c=s?s.getText(e[o]):e[o]||o;return(0,r.isFunction)(n)?n(c,e):c}function d(e){var t=(0,r.values)(e.attributes);return(0,r.filter)(t,function(e){return(0,r.contains)(i.GROUP_ATTRS,e.type)})}function f(e){for(var t=d(e),n,r=0,i=t;r=T)if(k)(0,r.isArray)(m)||(m=[]),m.push(A);else{m=A;break}}(0,r.isArray)(m)&&(m=c(m,e,n))}else{var ee=void 0;if(!u.isLinear&&u.type!==`timeCat`){for(var y=0;yu.translate(O)||Tu.max||TMath.abs(u.translate(ee[i.FIELD_ORIGIN][f])-T)&&(w=ee)}var re=l(n.getXScale());return!m&&Math.abs(u.translate(w[i.FIELD_ORIGIN][f])-T)<=re/2&&(m=w),m}t.findDataByPoint=h;function g(e,t,o,s){o===void 0&&(o=``),s===void 0&&(s=!1);var c=e[i.FIELD_ORIGIN],l=u(c,t,o),d=t.tooltipOption,h=t.theme.defaultColor,g=[],_,v;function y(t,n){if(s||!(0,r.isNil)(n)&&n!==``){var i={title:l,data:c,mappingData:e,name:t,value:n,color:e.color||h,marker:!0};g.push(i)}}if((0,r.isObject)(d)){var b=d.fields,x=d.callback;if(x){var S=b.map(function(t){return e[i.FIELD_ORIGIN][t]}),C=x.apply(void 0,S),w=(0,n.__assign)({data:e[i.FIELD_ORIGIN],mappingData:e,title:l,color:e.color||h,marker:!0},C);g.push(w)}else for(var T=t.scales,E=0,D=b;E{Object.defineProperty(t,`__esModule`,{value:!0}),t.parsePadding=t.isAutoPadding=void 0;var n=(R(),e(F)),r=(J(),e(q));function i(e){return!(0,r.isNumber)(e)&&!(0,r.isArray)(e)}t.isAutoPadding=i;function a(e){e===void 0&&(e=0);var t=(0,r.isArray)(e)?e:[e];switch(t.length){case 0:t=[0,0,0,0];break;case 1:t=[,,,,].fill(t[0]);break;case 2:t=(0,n.__spreadArray)((0,n.__spreadArray)([],t,!0),t,!0);break;case 3:t=(0,n.__spreadArray)((0,n.__spreadArray)([],t,!0),[t[1]],!1);break;default:t=t.slice(0,4);break}return t}t.parsePadding=a})),KD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var t={};function n(e,n){t[e]=n}e.registerComponentController=n;function r(e){delete t[e]}e.unregisterComponentController=r;function i(){return Object.keys(t)}e.getComponentControllerNames=i;function a(e){return t[e]}e.getComponentController=a})),qD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=rE();t.default=function(){function e(e){this.option=this.wrapperOption(e)}return e.prototype.update=function(e){return this.option=this.wrapperOption(e),this},e.prototype.hasAction=function(e){var t=this.option.actions;return(0,r.some)(t,function(t){return t[0]===e})},e.prototype.create=function(e,t){var r=this.option,a=r.type,o=r.cfg,s=a===`theta`,c=(0,n.__assign)({start:e,end:t},o),l=(0,i.getCoordinate)(s?`polar`:a);return this.coordinate=new l(c),this.coordinate.type=a,s&&(this.hasAction(`transpose`)||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions([`scale`,`rotate`,`translate`]),this.coordinate},e.prototype.rotate=function(e){return this.option.actions.push([`rotate`,e]),this},e.prototype.reflect=function(e){return this.option.actions.push([`reflect`,e]),this},e.prototype.scale=function(e,t){return this.option.actions.push([`scale`,e,t]),this},e.prototype.transpose=function(){return this.option.actions.push([`transpose`]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(e){return(0,n.__assign)({type:`rect`,actions:[],cfg:{}},e)},e.prototype.execActions=function(e){var t=this,n=this.option.actions;(0,r.each)(n,function(n){var i,a=n[0],o=n.slice(1);((0,r.isNil)(e)||e.includes(a))&&(i=t.coordinate)[a].apply(i,o)})},e}()})),JD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=rE();e.default=function(){function e(e,t,n){this.view=e,this.gEvent=t,this.data=n,this.type=t.type}return e.fromData=function(n,r,i){return new e(n,new t.Event(r,{}),i)},Object.defineProperty(e.prototype,`target`,{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`event`,{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`x`,{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`y`,{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`clientX`,{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`clientY`,{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return`[Event (type=`+this.type+`)]`},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}()})),YD=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){var t=e.getController(`axis`),n=e.getController(`legend`),r=e.getController(`annotation`);[t,e.getController(`slider`),e.getController(`scrollbar`),n,r].forEach(function(e){e&&e.layout()})}e.default=t})),XD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ScalePool=void 0;var n=(J(),e(q)),r=uE();t.ScalePool=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(e,t,i,a){var o=i,s=this.getScaleMeta(a);if(t.length===0&&s){var c=s.scale,l={type:c.type};c.isCategory&&(l.values=c.values),o=(0,n.deepMix)(l,s.scaleDef,i)}var u=(0,r.createScaleByField)(e,t,o);return this.cacheScale(u,i,a),u},e.prototype.sync=function(e,t){var i=this;this.syncScales.forEach(function(a,o){var s=2**53-1,c=-(2**53-1),l=[];(0,n.each)(a,function(e){var t=i.getScale(e);c=(0,n.isNumber)(t.max)?Math.max(c,t.max):c,s=(0,n.isNumber)(t.min)?Math.min(s,t.min):s,(0,n.each)(t.values,function(e){l.includes(e)||l.push(e)})}),(0,n.each)(a,function(a){var o=i.getScale(a);if(o.isContinuous)o.change({min:s,max:c,values:l});else if(o.isCategory){var u=o.range,d=i.getScaleMeta(a);l&&!(0,n.get)(d,[`scaleDef`,`range`])&&(u=(0,r.getDefaultCategoryScaleRange)((0,n.deepMix)({},o,{values:l}),e,t)),o.change({values:l,range:u})}})})},e.prototype.cacheScale=function(e,t,n){var i=this.getScaleMeta(n);i&&i.scale.type===e.type?((0,r.syncScale)(i.scale,e),i.scaleDef=t):(i={key:n,scale:e,scaleDef:t},this.scales.set(n,i));var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},e.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var r=(0,n.last)(e.split(`-`)),i=this.syncScales.get(r);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var n=t.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(e);i!==-1&&r.splice(i,1)}}this.scales.delete(e)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach(function(n,r){var i=n.indexOf(e);if(i!==-1)return n.splice(i,1),n.length===0&&t.syncScales.delete(r),!1})},e.prototype.getSyncKey=function(e){var t=e.scale,r=e.scaleDef,i=t.field,a=(0,n.get)(r,[`sync`]);return a===!0?i:a===!1?void 0:a},e.prototype.getScaleMeta=function(e){return this.scales.get(e)},e}()})),ZD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.PaddingCal=void 0;var n=(R(),e(F)),r=Y();t.PaddingCal=function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.top=e,this.right=t,this.bottom=n,this.left=r}return e.instance=function(t,n,r,i){return t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=0),new e(t,n,r,i)},e.prototype.max=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return this.top=Math.max(this.top,t),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,i),this},e.prototype.shrink=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return this.top+=t,this.right+=n,this.bottom+=r,this.left+=i,this},e.prototype.inc=function(e,t){var n=e.width,i=e.height;switch(t){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:this.top+=i;break;case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:this.bottom+=i;break;case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:this.left+=n;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,n.__spreadArray)([void 0],this.getPadding(),!1)))},e}()})),QD=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.calculatePadding=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=cE(),o=GD(),s=ZD();function c(e){var t=e.padding;if(!(0,o.isAutoPadding)(t))return new(s.PaddingCal.bind.apply(s.PaddingCal,(0,n.__spreadArray)([void 0],(0,o.parsePadding)(t),!1)));var c=e.viewBBox,l=new s.PaddingCal,u=[],d=[],f=[];return(0,r.each)(e.getComponents(),function(e){var t=e.type;t===i.COMPONENT_TYPE.AXIS?u.push(e):[i.COMPONENT_TYPE.LEGEND,i.COMPONENT_TYPE.SLIDER,i.COMPONENT_TYPE.SCROLLBAR].includes(t)?d.push(e):t!==i.COMPONENT_TYPE.GRID&&t!==i.COMPONENT_TYPE.TOOLTIP&&f.push(e)}),(0,r.each)(u,function(e){var t=e.component.getLayoutBBox(),n=new a.BBox(t.x,t.y,t.width,t.height).exceed(c);l.max(n)}),(0,r.each)(d,function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),i=t.get(`padding`),o=new a.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(o,n)}),(0,r.each)(f,function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),i=new a.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)}),l}t.calculatePadding=c})),$D=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultSyncViewPadding=void 0;function t(e,t,n){var r=n.instance();t.forEach(function(e){e.autoPadding=r.max(e.autoPadding.getPadding())})}e.defaultSyncViewPadding=t})),eO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerGeometry=t.View=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=(0,n.__importDefault)(ED()),o=OD(),s=RD(),c=UD(),l=cE(),u=lE(),d=sE(),f=WD(),p=GD(),m=uE(),h=HD(),g=KD(),_=(0,n.__importDefault)(qD()),v=(0,n.__importDefault)(JD()),y=(0,n.__importDefault)(YD()),b=XD(),x=ZD(),S=QD(),C=$D(),w=function(e){(0,n.__extends)(t,e);function t(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=(0,g.getComponentControllerNames)(),i.scalePool=new b.ScalePool,i.layoutFunc=y.default,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(e){var t=e.name;if(!t.includes(`:`)){var n=i.createViewEvent(e);i.doPlotEvent(n),i.emit(t,n)}},i.onDelegateEvents=function(e){var t=e.name;if(t.includes(`:`)){var n=i.createViewEvent(e);i.emit(t,n)}};var a=t.id,o=a===void 0?(0,r.uniqueId)(`view`):a,s=t.parent,l=t.canvas,u=t.backgroundGroup,d=t.middleGroup,f=t.foregroundGroup,p=t.region,m=p===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:p,_=t.padding,v=t.appendPadding,x=t.theme,S=t.options,C=t.limitInPlot,w=t.syncViewPadding;return i.parent=s,i.canvas=l,i.backgroundGroup=u,i.middleGroup=d,i.foregroundGroup=f,i.region=m,i.padding=_,i.appendPadding=v,i.options=(0,n.__assign)((0,n.__assign)({},i.options),S),i.limitInPlot=C,i.id=o,i.syncViewPadding=w,i.themeObject=(0,r.isObject)(x)?(0,r.deepMix)({},(0,c.getTheme)(`default`),(0,h.createTheme)(x)):(0,c.getTheme)(x),i.init(),i}return t.prototype.setLayout=function(e){this.layoutFunc=e},t.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},t.prototype.render=function(e,t){e===void 0&&(e=!1),this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,v.default.fromData(this,i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,t)),this.paint(e),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_RENDER,v.default.fromData(this,i.VIEW_LIFE_CIRCLE.AFTER_RENDER,t)),this.visible===!1&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this;this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var t=this.geometries,n=0;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=wD(),o=TD();t.default=function(e){(0,n.__extends)(t,e);function t(t){var s=this,c=t.container,l=t.width,u=t.height,d=t.autoFit,f=d===void 0?!1:d,p=t.padding,m=t.appendPadding,h=t.renderer,g=h===void 0?`canvas`:h,_=t.pixelRatio,v=t.localRefresh,y=v===void 0?!0:v,b=t.visible,x=b===void 0?!0:b,S=t.supportCSSTransform,C=S===void 0?!1:S,w=t.defaultInteractions,T=w===void 0?[`tooltip`,`legend-filter`,`legend-active`,`continuous-filter`,`ellipsis-text`]:w,E=t.options,D=t.limitInPlot,O=t.theme,k=t.syncViewPadding,A=(0,r.isString)(c)?document.getElementById(c):c,ee=(0,o.createDom)(`
    `);A.appendChild(ee);var te=(0,o.getChartSize)(A,f,l,u),j=new((0,a.getEngine)(g)).Canvas((0,n.__assign)({container:ee,pixelRatio:_,localRefresh:y,supportCSSTransform:C},te));return s=e.call(this,{parent:null,canvas:j,backgroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.BG}),middleGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.MID}),foregroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:m,visible:x,options:E,limitInPlot:D,theme:O,syncViewPadding:k})||this,s.onResize=(0,r.debounce)(function(){s.forceFit()},300),s.ele=A,s.canvas=j,s.width=te.width,s.height=te.height,s.autoFit=f,s.localRefresh=y,s.renderer=g,s.wrapperElement=ee,s.updateCanvasStyle(),s.bindAutoFit(),s.initDefaultInteractions(T),s}return t.prototype.initDefaultInteractions=function(e){var t=this;(0,r.each)(e,function(e){t.interaction(e)})},t.prototype.aria=function(e){var t=`aria-label`;e===!1?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t?this:(this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE),this)},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,o.removeDom)(this.wrapperElement),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?``:`none`,this},t.prototype.forceFit=function(){if(!this.destroyed){var e=(0,o.getChartSize)(this.ele,!0,this.width,this.height),t=e.width,n=e.height;this.changeSize(t,n)}},t.prototype.updateCanvasStyle=function(){(0,o.modifyCSS)(this.canvas.get(`el`),{display:`inline-block`,verticalAlign:`middle`})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener(`resize`,this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener(`resize`,this.onResize)},t}((0,n.__importDefault)(eO()).default)})),nO=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var n=tO();Object.defineProperty(e,`Chart`,{enumerable:!0,get:function(){return t(n).default}});var r=eO();Object.defineProperty(e,`View`,{enumerable:!0,get:function(){return t(r).default}}),Object.defineProperty(e,`registerGeometry`,{enumerable:!0,get:function(){return r.registerGeometry}});var i=JD();Object.defineProperty(e,`Event`,{enumerable:!0,get:function(){return t(i).default}});var a=KD();Object.defineProperty(e,`registerComponentController`,{enumerable:!0,get:function(){return a.registerComponentController}})})),rO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=rE(),a=lE(),o=oE(),s=WD(),c=cE(),l=pE(),u=(0,n.__importDefault)(JD());function d(e){for(var t=[],n=function(n){var i=e[n];(0,r.find)(t,function(e){return e.color===i.color&&e.name===i.name&&e.value===i.value&&e.title===i.title})||t.push(i)},i=0;i1){for(var p=t[0],m=Math.abs(e.y-p[0].y),h=0,g=t;h`+i+``:i}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get(`width`),y:e.get(`height`)}},r=this.getTooltipCfg(),a=new i.HtmlTooltip((0,n.__assign)((0,n.__assign)({parent:e.get(`el`).parentNode,region:t},r),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},t.prototype.renderTooltipMarkers=function(e,t){for(var r=this.getTooltipMarkersGroup(),i=0,a=e;i{Object.defineProperty(e,`__esModule`,{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE=`element-background`})),aO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(nE(),e(tE)),a=aE(),o=(0,n.__importDefault)(ED()),s=oE(),c=Y(),l=iO();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.states=[];var r=t.shapeFactory,i=t.container,a=t.offscreenGroup,o=t.elementIndex,s=t.visible,c=s===void 0?!0:s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=c,n.elementIndex=o,n}return t.prototype.draw=function(e,t){t===void 0&&(t=!1),this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.drawShape(e,t),this.visible===!1&&this.changeVisible(!1)},t.prototype.update=function(e){var t=this,n=t.shapeFactory,r=t.shape;if(r){this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.setShapeInfo(r,e);var i=this.getOffscreenGroup(),a=n.drawShape(this.shapeType,e,i);a.cfg.data=this.data,a.cfg.origin=e,a.cfg.element=this,this.syncShapeStyle(r,a,this.getStates(),this.getAnimateCfg(`update`))}},t.prototype.destroy=function(){var t=this,r=t.shapeFactory,i=t.shape;if(i){var o=this.getAnimateCfg(`leave`);o?(0,a.doAnimate)(i,o,{coordinate:r.coordinate,toAttrs:(0,n.__assign)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(e){e.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(e){e.hide()}))},t.prototype.setState=function(e,t){var n=this,r=n.states,a=n.shapeFactory,o=n.model,s=n.shape,c=n.shapeType,l=r.indexOf(e);if(t){if(l>-1)return;r.push(e),(e===`active`||e===`selected`)&&s?.toFront()}else{if(l===-1)return;r.splice(l,1),(e===`active`||e===`selected`)&&(this.geometry.zIndexReversed?s.setZIndex(this.geometry.elements.length-this.elementIndex):s.setZIndex(this.elementIndex))}var u=a.drawShape(c,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,u,r,null):this.syncShapeStyle(s,u,[`reset`],null),u.remove(!0);var d={state:e,stateStatus:t,element:this,target:this.container};this.container.emit(`statechange`,d),(0,i.propagationDelegate)(this.shape,`statechange`,d)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,r.each)(t,function(t){e.setState(t,!1)}),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this,t=e.shape,n=e.labelShape,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(r=t.getCanvasBBox()),n&&n.forEach(function(e){var t=e.getCanvasBBox();r.x=Math.min(t.x,r.x),r.y=Math.min(t.y,r.y),r.minX=Math.min(t.minX,r.minX),r.minY=Math.min(t.minY,r.minY),r.maxX=Math.max(t.maxX,r.maxX),r.maxY=Math.max(t.maxY,r.maxY)}),r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this,t=e.shapeType,n=e.geometry,i=e.shapeFactory,a=n.stateOption,o=i.defaultShapeType,s=i.theme[t]||i.theme[o];this.statesStyle=(0,r.deepMix)({},s,a)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var n=this.getStatesStyle(),i=(0,r.get)(n,[e,`style`],{}),a=i[t]||i;return(0,r.isFunction)(a)?a(this):a},t.prototype.getAnimateCfg=function(e){var t=this,i=this.animate;if(i){var a=i[e];return a&&(0,n.__assign)((0,n.__assign)({},a),{callback:function(){var e;(0,r.isFunction)(a.callback)&&a.callback(),(e=t.geometry)==null||e.emit(c.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}})}return null},t.prototype.drawShape=function(e,t){var i;t===void 0&&(t=!1);var o=this,s=o.shapeFactory,l=o.container,u=o.shapeType;if(this.shape=s.drawShape(u,e,l),this.shape){this.setShapeInfo(this.shape,e);var d=this.shape.cfg.name;d?(0,r.isString)(d)&&(this.shape.cfg.name=[`element`,d]):this.shape.cfg.name=[`element`,this.shapeFactory.geometryType];var f=t?`enter`:`appear`,p=this.getAnimateCfg(f);p&&((i=this.geometry)==null||i.emit(c.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,a.doAnimate)(this.shape,p,{coordinate:s.coordinate,toAttrs:(0,n.__assign)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var n=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get(`children`).forEach(function(e){n.setShapeInfo(e,t)})},t.prototype.syncShapeStyle=function(e,t,n,i,o){var u=this,d;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!e||!t)){var f=e.get(`clipShape`),p=t.get(`clipShape`);if(this.syncShapeStyle(f,p,n,i),e.isGroup())for(var m=e.get(`children`),h=t.get(`children`),g=0;g{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var t={},n={};function r(e){return t[e.toLowerCase()]}e.getGeometryLabel=r;function i(e,n){t[e.toLowerCase()]=n}e.registerGeometryLabel=i;function a(e){return n[e.toLowerCase()]}e.getGeometryLabelLayout=a;function o(e,t){n[e.toLowerCase()]=t}e.registerGeometryLabelLayout=o})),sO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getShapeFactory=t.registerShape=t.registerShapeFactory=void 0;var n=(R(),e(F)),r=(v_(),e(__)),i=(J(),e(q)),a=MD(),o={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(e,t){var n=this.getShape(e);return n.getPoints?n.getPoints(t):this.getDefaultPoints(t)},getShape:function(e){var t=this[e]||this[this.defaultShapeType];return t.coordinate=this.coordinate,t},getDefaultPoints:function(){return[]},getDefaultStyle:function(e){return(0,i.get)(e,[this.defaultShapeType,`default`,`style`],{})},getMarker:function(e,t){var n=this.getShape(e);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var a=this.theme,o=(0,i.get)(a,[e,`default`],{}),s=n.getMarker(t);return(0,i.deepMix)({},o,s)},drawShape:function(e,t,n){return this.getShape(e).draw(t,n)}},s={coordinate:null,parsePath:function(e){var t=this.coordinate,n=(0,r.parsePathString)(e);return n=t.isPolar?(0,a.convertPolarPath)(t,n):(0,a.convertNormalPath)(t,n),n},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map(function(e){return t.convert(e)})},draw:function(e,t){}},c={};function l(e,t){var r=(0,i.upperFirst)(e),a=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},o),t),{geometryType:e});return c[r]=a,a}t.registerShapeFactory=l;function u(e,t,r){var a=c[(0,i.upperFirst)(e)],o=(0,n.__assign)((0,n.__assign)({},s),r);return a[t]=o,o}t.registerShape=u;function d(e){return c[(0,i.upperFirst)(e)]}t.getShapeFactory=d})),cO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.group=void 0;var n=(J(),e(q));function r(e,t,r){if(r===void 0&&(r={}),!t)return[e];var i=(0,n.groupToMap)(e,t),a=[];if(t.length===1&&r[t[0]])for(var o=r[t[0]],s=0,c=o;s{Object.defineProperty(t,`__esModule`,{value:!0}),t.isModelChange=void 0;var n=(J(),e(q));function r(e,t){return(0,n.some)([`color`,`shape`,`size`,`x`,`y`,`isInCircle`,`data`,`style`,`defaultStyle`,`points`,`mappingData`],function(r){return!(0,n.isEqual)(e[r],t[r])})}t.isModelChange=r})),uO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseFields=void 0;var n=(J(),e(q));function r(e){return(0,n.isArray)(e)?e:e.split(`*`)}t.parseFields=r})),dO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.diff=void 0;function t(e,t){for(var n=[],r=[],i=[],a=new Map,o=0;o{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(nv(),e(tv)),i=(bx(),e(yx)),a=(J(),e(q)),o=aE(),s=(0,n.__importDefault)(ED()),c=Y(),l=sE(),u=(0,n.__importDefault)(aO()),d=oO(),f=sO(),p=cO(),m=lO(),h=uO(),g=dO(),_=lE();function v(e,t){var n=[];return(0,a.each)(t,function(t,r){r.split(` `)[0]===e&&n.push(t)}),n}t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`base`,n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=t.container,i=t.labelsContainer,a=t.coordinate,o=t.data,s=t.sortable,c=s===void 0?!1:s,l=t.visible,u=l===void 0?!0:l,d=t.theme,f=t.scales,p=f===void 0?{}:f,m=t.scaleDefs,h=m===void 0?{}:m,g=t.intervalPadding,_=t.dodgePadding,v=t.maxColumnWidth,y=t.minColumnWidth,b=t.columnWidthRatio,x=t.roseWidthRatio,S=t.multiplePieWidthRatio,C=t.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=c,n.visible=u,n.userTheme=d,n.scales=p,n.scaleDefs=h,n.intervalPadding=g,n.dodgePadding=_,n.maxColumnWidth=v,n.minColumnWidth=y,n.columnWidthRatio=b,n.roseWidthRatio=x,n.multiplePieWidthRatio=S,n.zIndexReversed=C,n}return t.prototype.position=function(e){var t=e;(0,a.isPlainObject)(e)||(t={fields:(0,h.parseFields)(e)});var n=(0,a.get)(t,`fields`);return n.length===1&&(n.unshift(`1`),(0,a.set)(t,`fields`,n)),(0,a.set)(this.attributeOption,`position`,t),this},t.prototype.color=function(e,t){return this.createAttrOption(`color`,e,t),this},t.prototype.shape=function(e,t){return this.createAttrOption(`shape`,e,t),this},t.prototype.size=function(e,t){return this.createAttrOption(`size`,e,t),this},t.prototype.adjust=function(e){var t=e;return((0,a.isString)(e)||(0,a.isPlainObject)(e))&&(t=[e]),(0,a.each)(t,function(e,n){(0,a.isObject)(e)||(t[n]={type:e})}),this.adjustOption=t,this},t.prototype.style=function(e,t){if((0,a.isString)(e)){var n=(0,h.parseFields)(e);this.styleOption={fields:n,callback:t}}else{var r=e,n=r.fields,i=r.callback,o=r.cfg;n||i||o?this.styleOption=e:this.styleOption={cfg:e}}return this},t.prototype.tooltip=function(e,t){if((0,a.isString)(e)){var n=(0,h.parseFields)(e);this.tooltipOption={fields:n,callback:t}}else this.tooltipOption=e;return this},t.prototype.animate=function(e){return this.animateOption=e,this},t.prototype.label=function(e,t,n){if((0,a.isString)(e)){var r={};r.fields=(0,h.parseFields)(e),(0,a.isFunction)(t)?r.callback=t:(0,a.isPlainObject)(t)&&(r.cfg=t),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=e;return this},t.prototype.state=function(e){return this.stateOption=e,this},t.prototype.customInfo=function(e){return this.customOption=e,this},t.prototype.init=function(e){e===void 0&&(e={}),this.setCfg(e),this.initAttributes(),this.processData(this.data),this.adjustScale()},t.prototype.update=function(e){e===void 0&&(e={});var t=e.data,n=e.isDataChanged,r=e.isCoordinateChanged,i=this,o=i.attributeOption,s=i.lastAttributeOption;(0,a.isEqual)(o,s)?t&&(n||!(0,a.isEqual)(t,this.data))?(this.setCfg(e),this.initAttributes(),this.processData(t)):this.setCfg(e):this.init(e),this.adjustScale(),this.isCoordinateChanged=r},t.prototype.paint=function(e){e===void 0&&(e=!1),this.animateOption&&=(0,a.deepMix)({},(0,o.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var t=this.beforeMappingData,r=this.beforeMapping(t);this.dataArray=Array(r.length);for(var i=0;i=0?t:n<=0?n:0},t.prototype.createAttrOption=function(e,t,n){if((0,a.isNil)(t)||(0,a.isObject)(t))(0,a.isObject)(t)&&(0,a.isEqual)(Object.keys(t),[`values`])?(0,a.set)(this.attributeOption,e,{fields:t.values}):(0,a.set)(this.attributeOption,e,t);else{var r={};(0,a.isNumber)(t)?r.values=[t]:r.fields=(0,h.parseFields)(t),n&&((0,a.isFunction)(n)?r.callback=n:r.values=n),(0,a.set)(this.attributeOption,e,r)}},t.prototype.initAttributes=function(){var e=this,t=this,r=t.attributes,a=t.attributeOption,o=t.theme,s=t.shapeType;this.groupScales=[];var l={},u=function(t){if(a.hasOwnProperty(t)){var u=a[t];if(!u)return{value:void 0};var d=(0,n.__assign)({},u),f=d.callback,p=d.values,m=d.fields,h=(m===void 0?[]:m).map(function(n){var r=e.scales[n];return r.isCategory&&!l[n]&&c.GROUP_ATTRS.includes(t)&&(e.groupScales.push(r),l[n]=!0),r});d.scales=h,t!==`position`&&h.length===1&&h[0].type===`identity`?d.values=h[0].values:!f&&!p&&(t===`size`?d.values=o.sizes:t===`shape`?d.values=o.shapes[s]||[]:t===`color`&&(h.length?d.values=h[0].values.length<=10?o.colors10:o.colors20:d.values=o.colors10)),r[t]=new((0,i.getAttribute)(t))(d)}};for(var d in a){var f=u(d);if(typeof f==`object`)return f.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute(`position`).scales.filter(function(e){return e.isCategory}),n=this.groupData(e),r=[],i=0,a=n.length;io&&(o=u)}var d=this.scaleDefs,f={};ie.max&&!(0,a.get)(d,[r,`max`])&&(f.max=o),e.change(f)},t.prototype.beforeMapping=function(e){var t=e;if(this.sortable&&this.sort(t),this.generatePoints)for(var n=0,r=t.length;n1)for(var f=0;f{Object.defineProperty(t,`__esModule`,{value:!0}),t.zoom=t.getIdentityMatrix=t.rotate=t.getRotateMatrix=t.translate=t.transform=void 0;var n=(yu(),e(vu)).ext.transform;t.transform=n;function r(e,t,r){var i=n(e.getMatrix(),[[`t`,t,r]]);e.setMatrix(i)}t.translate=r;function i(e,t){var r=e.attr(),i=r.x,a=r.y;return n(e.getMatrix(),[[`t`,-i,-a],[`r`,t],[`t`,i,a]])}t.getRotateMatrix=i;function a(e,t){var n=i(e,t);e.setMatrix(n)}t.rotate=a;function o(){return[1,0,0,0,1,0,0,0,1]}t.getIdentityMatrix=o;function s(e,t){var r=e.getBBox(),i=(r.minX+r.maxX)/2,a=(r.minY+r.maxY)/2;e.applyToMatrix([i,a,1]);var o=n(e.getMatrix(),[[`t`,-i,-a],[`s`,t,t],[`t`,i,a]]);e.setMatrix(o)}t.zoom=s})),mO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.checkShapeOverlap=t.getOverlapArea=t.getlLabelBackgroundInfo=t.findLabelTextShape=void 0;var n=(J(),e(q)),r=pO();function i(e){return e.find(function(e){return e.get(`type`)===`text`})}t.findLabelTextShape=i;function a(e,t,i){i===void 0&&(i=[0,0,0,0]);var a=e.getChildren()[0];if(a){var o=a.clone();t?.rotate&&(0,r.rotate)(o,-t.rotate);var s=o.getCanvasBBox(),c=s.x,l=s.y,u=s.width,d=s.height;o.destroy();var f=i;return(0,n.isNil)(f)?f=[2,2,2,2]:(0,n.isNumber)(f)&&(f=[,,,,].fill(f)),{x:c-f[3],y:l-f[0],width:u+f[1]+f[3],height:d+f[0]+f[2],rotation:t?.rotate||0}}}t.getlLabelBackgroundInfo=a;function o(e,t,n){return n===void 0&&(n=0),Math.max(0,Math.min(e.x+e.width+n,t.x+t.width+n)-Math.max(e.x-n,t.x-n))*Math.max(0,Math.min(e.y+e.height+n,t.y+t.height+n)-Math.max(e.y-n,t.y-n))}t.getOverlapArea=o;function s(e,t){var r=e.getBBox();return(0,n.some)(t,function(e){return o(r,e.getBBox(),2)>0})}t.checkShapeOverlap=s})),hO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.updateLabel=void 0;var n=(J(),e(q)),r=aE(),i=oE();function a(e,t,o){var s=o.data,c=o.origin,l=o.animateCfg,u=o.coordinate,d=(0,n.get)(l,`update`);e.set(`data`,s),e.set(`origin`,c),e.set(`animateCfg`,l),e.set(`coordinate`,u),e.set(`visible`,t.get(`visible`)),e.getChildren().forEach(function(n,f){var p=t.getChildByIndex(f);if(!p)e.removeChild(n),n.remove(!0);else{n.set(`data`,s),n.set(`origin`,c),n.set(`animateCfg`,l),n.set(`coordinate`,u);var m=(0,i.getReplaceAttrs)(n,p);d?(0,r.doAnimate)(n,d,{toAttrs:m,coordinate:u}):n.attr(m),p.isGroup()&&a(n,p,o)}}),(0,n.each)(t.getChildren(),function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))})}t.updateLabel=a})),gO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=aE(),a=oO(),o=mO(),s=oE(),c=pO(),l=Y(),u=hO();t.default=function(){function e(e){this.shapesMap={},this.lastShapesMap={};var t=e.layout,n=e.container;this.layout=t,this.container=n}return e.prototype.render=function(e,t,a){var o=this;a===void 0&&(a=!1),this.shapesMap={};var s=this.container,c=this.createOffscreenGroup();if(e.length){for(var l=0,d=e;l{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=aE(),o=oE(),s=(0,n.__importDefault)(gO());function c(e){var t=0;return(0,r.each)(e,function(e){t+=e}),t/e.length}t.default=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,i=[],a=this.getLabelCfgs(e);return(0,r.each)(e,function(e,o){var s=a[o];if(!s||(0,r.isNil)(e.x)||(0,r.isNil)(e.y)){i.push(null);return}var c=(0,r.isArray)(s.content)?s.content:[s.content];s.content=c;var l=c.length;(0,r.each)(c,function(a,o){if((0,r.isNil)(a)||a===``){i.push(null);return}var c=(0,n.__assign)((0,n.__assign)({},s),t.getLabelPoint(s,e,o));c.textAlign||=t.getLabelAlign(c,o,l),c.offset<=0&&(c.labelLine=null),i.push(c)})}),i},e.prototype.render=function(e,t){t===void 0&&(t=!1);var n=this.getLabelItems(e),r=this.getLabelsRenderer(),i=this.getGeometryShapes();r.render(n,i,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var n=this.geometry,i=n.type,a=n.theme;return i===`polygon`||i===`interval`&&t===`middle`||e<0&&![`line`,`point`,`path`].includes(i)?(0,r.get)(a,`innerLabels`,{}):(0,r.get)(a,`labels`,{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.type,a=t.theme;return i===`polygon`||e.offset<0&&![`line`,`point`,`path`].includes(i)?(0,r.deepMix)({},n,a.innerLabels,e):(0,r.deepMix)({},n,a.labels,e)},e.prototype.setLabelPosition=function(e,t,n,r){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=this.getOffsetVector(e);return t.isTransposed?n[0]:n[1]},e.prototype.getLabelOffsetPoint=function(e,t,n){var r=e.offset,i=this.getCoordinate().isTransposed,a=i?`x`:`y`,o=i?1:-1,s={x:0,y:0};return t>0||n===1?s[a]=r*o:s[a]=r*o*-1,s},e.prototype.getLabelPoint=function(e,t,n){var i=this.getCoordinate(),a=e.content.length;function s(t,n,i){i===void 0&&(i=!1);var a=t;return(0,r.isArray)(a)&&(a=e.content.length===1?i?c(a):a.length<=2?a[t.length-1]:c(a):a[n]),a}var l={content:e.content[n],x:0,y:0,start:{x:0,y:0},color:`#fff`},u=(0,r.isArray)(t.shape)?t.shape[0]:t.shape,d=u===`funnel`||u===`pyramid`;if(this.geometry.type===`polygon`){var f=(0,o.getPolygonCentroid)(t.x,t.y);l.x=f[0],l.y=f[1]}else this.geometry.type===`interval`&&!d?(l.x=s(t.x,n,!0),l.y=s(t.y,n)):(l.x=s(t.x,n),l.y=s(t.y,n));if(d){var p=(0,r.get)(t,`nextPoints`),m=(0,r.get)(t,`points`);if(p){var h=i.convert(m[1]),g=i.convert(p[1]);l.x=(h.x+g.x)/2,l.y=(h.y+g.y)/2}else if(u===`pyramid`){var h=i.convert(m[1]),g=i.convert(m[2]);l.x=(h.x+g.x)/2,l.y=(h.y+g.y)/2}}e.position&&this.setLabelPosition(l,t,n,e.position);var _=this.getLabelOffsetPoint(e,n,a);return l.start={x:l.x,y:l.y},l.x+=_.x,l.y+=_.y,l.color=t.color,l},e.prototype.getLabelAlign=function(e,t,n){var r=`center`;if(this.getCoordinate().isTransposed){var i=e.offset;r=i<0?`right`:i===0?`center`:`left`,n>1&&t===0&&(r===`right`?r=`left`:r===`left`&&(r=`right`))}return r},e.prototype.getLabelId=function(e){var t=this.geometry,n=t.type,r=t.getXScale(),a=t.getYScale(),o=e[i.FIELD_ORIGIN],s=t.getElementId(e);return n===`line`||n===`area`?s+=` `+o[r.field]:n===`path`&&(s+=` `+o[r.field]+`-`+o[a.field]),s},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,n=e.labelOption,i=e.canvasRegion,o=e.animateOption,c=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new s.default({container:t,layout:(0,r.get)(n,[`cfg`,`layout`],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=i,l.animate=o?(0,a.getDefaultAnimateCfg)(`label`,c):!1,l},e.prototype.getLabelCfgs=function(e){var t=this,a=this.geometry,o=a.labelOption,s=a.scales,c=a.coordinate,l=o,u=l.fields,d=l.callback,f=l.cfg,p=u.map(function(e){return s[e]}),m=[];return(0,r.each)(e,function(e,a){var o=e[i.FIELD_ORIGIN],s=t.getLabelText(o,p),l;if(d){var h=u.map(function(e){return o[e]});if(l=d.apply(void 0,h),(0,r.isNil)(l)){m.push(null);return}}var g=(0,n.__assign)((0,n.__assign)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:o,mappingData:e,coordinate:c},f),l);(0,r.isFunction)(g.position)&&(g.position=g.position(o,e,a));var _=t.getLabelOffset(g.offset||0),v=t.getDefaultLabelCfg(_,g.position);g=(0,r.deepMix)({},v,g),g.offset=t.getLabelOffset(g.offset||0);var y=g.content;(0,r.isFunction)(y)?g.content=y(o,e,a):(0,r.isUndefined)(y)&&(g.content=s[0]),m.push(g)}),m},e.prototype.getLabelText=function(e,t){var n=[];return(0,r.each)(t,function(t){var i=e[t.field];i=(0,r.isArray)(i)?i.map(function(e){return t.getText(e)}):t.getText(i),(0,r.isNil)(i)||i===``?n.push(null):n.push(i)}),n},e.prototype.getOffsetVector=function(e){e===void 0&&(e=0);var t=this.getCoordinate(),n=0;return(0,r.isNumber)(e)&&(n=e),t.isTransposed?t.applyMatrix(n,0):t.applyMatrix(0,n)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,r.each)(e.elementsMap,function(e,n){t[n]=e.shape}),(0,r.each)(e.getOffscreenGroup().getChildren(),function(n){var r=e.getElementId(n.get(`origin`).mappingData);t[r]=n}),t},e}()})),vO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMappingValue=void 0;var n=(R(),e(F));function r(e,t,r){if(!e)return r;var i;if(e.callback&&e.callback.length>1){var a=Array(e.callback.length-1).fill(``);i=e.mapping.apply(e,(0,n.__spreadArray)([t],a,!1)).join(``)}else i=e.mapping(t).join(``);return i||r}t.getMappingValue=r})),bO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(e,t,n){var r=n/2*Math.sqrt(3);return[[`M`,e,t-n],[`L`,e+r,t-n/2],[`L`,e+r,t+n/2],[`L`,e,t+n],[`L`,e-r,t+n/2],[`L`,e-r,t-n/2],[`Z`]]},bowtie:function(e,t,n){var r=n-1.5;return[[`M`,e-n,t-r],[`L`,e+n,t+r],[`L`,e+n,t-r],[`L`,e-n,t+r],[`Z`]]},cross:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t+n],[`M`,e+n,t-n],[`L`,e-n,t+n]]},tick:function(e,t,n){return[[`M`,e-n/2,t-n],[`L`,e+n/2,t-n],[`M`,e,t-n],[`L`,e,t+n],[`M`,e-n/2,t+n],[`L`,e+n/2,t+n]]},plus:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t],[`M`,e,t-n],[`L`,e,t+n]]},hyphen:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},line:function(e,t,n){return[[`M`,e,t-n],[`L`,e,t+n]]}}})),xO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getLegendThemeCfg=t.getCustomLegendItems=t.getLegendItems=t.getLegendLayout=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=yO(),o=sE(),s=bO(),c=[`line`,`cross`,`tick`,`plus`,`hyphen`];function l(e,t){return(0,r.isFunction)(t)?t(e):(0,r.deepMix)({},e,t)}function u(e,t){var n=e.symbol;if((0,r.isString)(n)&&c.indexOf(n)!==-1){var i=(0,r.get)(e,`style`,{}),a=(0,r.get)(i,`lineWidth`,1),o=i.stroke||i.fill||t;e.style=(0,r.deepMix)({},e.style,{lineWidth:a,stroke:o,fill:null})}}function d(e){var t=e.symbol;(0,r.isString)(t)&&s.MarkerSymbols[t]&&(e.symbol=s.MarkerSymbols[t])}function f(e){return e.startsWith(i.DIRECTION.LEFT)||e.startsWith(i.DIRECTION.RIGHT)?`vertical`:`horizontal`}t.getLegendLayout=f;function p(e,t,i,s,c){var f=i.getScale(i.type);if(f.isCategory){var p=f.field,m=t.getAttribute(`color`),h=t.getAttribute(`shape`),g=e.getTheme().defaultColor,_=t.coordinate.isPolar;return f.getTicks().map(function(i,v){var y,b=i.text,x=i.value,S=b,C=f.invert(x),w=e.filterFieldData(p,[(y={},y[p]=C,y)]).length===0;(0,r.each)(e.views,function(e){var t;e.filterFieldData(p,[(t={},t[p]=C,t)]).length||(w=!0)});var T=(0,a.getMappingValue)(m,C,g),E=(0,a.getMappingValue)(h,C,`point`),D=t.getShapeMarker(E,{color:T,isInPolar:_}),O=c;return(0,r.isFunction)(O)&&(O=O(S,v,(0,n.__assign)({name:S,value:C},(0,r.deepMix)({},s,D)))),D=(0,r.deepMix)({},s,D,(0,o.omit)((0,n.__assign)({},O),[`style`])),u(D,T),O&&O.style&&(D.style=l(D.style,O.style)),d(D),{id:C,name:S,value:C,marker:D,unchecked:w}})}return[]}t.getLegendItems=p;function m(e,t,n){return n.map(function(n,i){var a=t;(0,r.isFunction)(a)&&(a=a(n.name,i,(0,r.deepMix)({},e,n)));var o=(0,r.isFunction)(n.marker)?n.marker(n.name,i,(0,r.deepMix)({},e,n)):n.marker,s=(0,r.deepMix)({},e,a,o);return d(s),n.marker=s,n})}t.getCustomLegendItems=m;function h(e,t){var n=(0,r.get)(e,[`components`,`legend`],{});return(0,r.deepMix)({},(0,r.get)(n,[`common`],{}),(0,r.deepMix)({},(0,r.get)(n,[t],{})))}t.getLegendThemeCfg=h})),SO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Util=t.Scale=t.Coordinate=t.DIRECTION=t.LAYER=t.getAnimation=t.registerAnimation=t.getEngine=t.registerEngine=t.registerTheme=t.getTheme=t.registerFacet=t.getFacet=t.getActionClass=t.registerAction=t.registerInteraction=t.getInteraction=t.getGeometryLabelLayout=t.getGeometryLabel=t.registerGeometryLabelLayout=t.registerGeometryLabel=t.getShapeFactory=t.registerShapeFactory=t.registerShape=t.registerGeometry=t.registerComponentController=t.InteractionAction=t.Facet=t.Action=t.Interaction=t.GeometryLabel=t.Element=t.Geometry=t.TooltipController=t.ComponentController=t.Event=t.View=t.Chart=t.VERSION=void 0;var n=(R(),e(F));t.VERSION=`4.1.32`;var r=nO();Object.defineProperty(t,`Chart`,{enumerable:!0,get:function(){return r.Chart}}),Object.defineProperty(t,`View`,{enumerable:!0,get:function(){return r.View}}),Object.defineProperty(t,`Event`,{enumerable:!0,get:function(){return r.Event}});var i=pE();Object.defineProperty(t,`ComponentController`,{enumerable:!0,get:function(){return i.Controller}});var a=rO();Object.defineProperty(t,`TooltipController`,{enumerable:!0,get:function(){return(0,n.__importDefault)(a).default}});var o=fO();Object.defineProperty(t,`Geometry`,{enumerable:!0,get:function(){return(0,n.__importDefault)(o).default}});var s=aO();Object.defineProperty(t,`Element`,{enumerable:!0,get:function(){return(0,n.__importDefault)(s).default}});var c=_O();Object.defineProperty(t,`GeometryLabel`,{enumerable:!0,get:function(){return(0,n.__importDefault)(c).default}});var l=RD();Object.defineProperty(t,`Interaction`,{enumerable:!0,get:function(){return l.Interaction}}),Object.defineProperty(t,`Action`,{enumerable:!0,get:function(){return l.Action}});var u=OD();Object.defineProperty(t,`Facet`,{enumerable:!0,get:function(){return u.Facet}});var d=kD();Object.defineProperty(t,`InteractionAction`,{enumerable:!0,get:function(){return(0,n.__importDefault)(d).default}});var f=nO();Object.defineProperty(t,`registerComponentController`,{enumerable:!0,get:function(){return f.registerComponentController}});var p=nO();Object.defineProperty(t,`registerGeometry`,{enumerable:!0,get:function(){return p.registerGeometry}});var m=sO();Object.defineProperty(t,`registerShape`,{enumerable:!0,get:function(){return m.registerShape}}),Object.defineProperty(t,`registerShapeFactory`,{enumerable:!0,get:function(){return m.registerShapeFactory}}),Object.defineProperty(t,`getShapeFactory`,{enumerable:!0,get:function(){return m.getShapeFactory}});var h=oO();Object.defineProperty(t,`registerGeometryLabel`,{enumerable:!0,get:function(){return h.registerGeometryLabel}}),Object.defineProperty(t,`registerGeometryLabelLayout`,{enumerable:!0,get:function(){return h.registerGeometryLabelLayout}}),Object.defineProperty(t,`getGeometryLabel`,{enumerable:!0,get:function(){return h.getGeometryLabel}}),Object.defineProperty(t,`getGeometryLabelLayout`,{enumerable:!0,get:function(){return h.getGeometryLabelLayout}});var g=RD();Object.defineProperty(t,`getInteraction`,{enumerable:!0,get:function(){return g.getInteraction}}),Object.defineProperty(t,`registerInteraction`,{enumerable:!0,get:function(){return g.registerInteraction}}),Object.defineProperty(t,`registerAction`,{enumerable:!0,get:function(){return g.registerAction}}),Object.defineProperty(t,`getActionClass`,{enumerable:!0,get:function(){return g.getActionClass}});var _=OD();Object.defineProperty(t,`getFacet`,{enumerable:!0,get:function(){return _.getFacet}}),Object.defineProperty(t,`registerFacet`,{enumerable:!0,get:function(){return _.registerFacet}});var v=UD();Object.defineProperty(t,`getTheme`,{enumerable:!0,get:function(){return v.getTheme}}),Object.defineProperty(t,`registerTheme`,{enumerable:!0,get:function(){return v.registerTheme}});var y=wD();Object.defineProperty(t,`registerEngine`,{enumerable:!0,get:function(){return y.registerEngine}}),Object.defineProperty(t,`getEngine`,{enumerable:!0,get:function(){return y.getEngine}});var b=iE();Object.defineProperty(t,`registerAnimation`,{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(t,`getAnimation`,{enumerable:!0,get:function(){return b.getAnimation}});var x=Y();Object.defineProperty(t,`LAYER`,{enumerable:!0,get:function(){return x.LAYER}}),Object.defineProperty(t,`DIRECTION`,{enumerable:!0,get:function(){return x.DIRECTION}}),(0,n.__importStar)(vO());var S=rE();Object.defineProperty(t,`Coordinate`,{enumerable:!0,get:function(){return S.Coordinate}}),Object.defineProperty(t,`Scale`,{enumerable:!0,get:function(){return S.Scale}});var C=yO(),w=xO(),T=oE(),E=pO(),D=WD(),O=ND();t.Util={getLegendItems:w.getLegendItems,translate:E.translate,rotate:E.rotate,zoom:E.zoom,transform:E.transform,getAngle:T.getAngle,getSectorPath:T.getSectorPath,polarToCartesian:T.polarToCartesian,getDelegationObject:O.getDelegationObject,getTooltipItems:D.getTooltipItems,getMappingValue:C.getMappingValue}})),CO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setGlobal=t.GLOBAL=void 0;var n=(J(),e(q));t.GLOBAL={locale:`en-US`};function r(e){n.each(e,function(e,n){return t.GLOBAL[n]=e})}t.setGlobal=r})),wO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],n=5;e.default=(function(e){var t=e||{},r=t.tickCount,i=t.tickInterval,o=e||{},s=o.min,u=o.max;s=isNaN(s)?0:s,u=isNaN(u)?0:u;var d=r&&r>=2?r:n,f=i||a({tickCount:d,max:u,min:s}),p=Math.floor(s/f)*f;if(i){var m=Math.abs(Math.ceil((u-p)/i))+1;d=Math.max(d,m)}for(var h=[],g=0,_=c(f);gr&&(t=parseFloat(t.toFixed(n))),t}for(;e>10;)t*=10,e/=10;return t}function a(e){var n=e.tickCount,r=e.min,a=e.max;if(r===a)return 1*i(a);for(var s=(a-r)/(n-1),u=i(s),d=s/u,f=a/u,p=r/u,m=0,h=0;h=r}function c(e){var t=e.toString(),n=t.indexOf(`.`),r=t.indexOf(`e-`),i=r>=0?parseInt(t.substr(r+2),10):t.substr(n+1).length;return i>20&&(i=20),i}function l(e,t){return parseFloat(e.toFixed(t))}})),TO=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0});var i=(px(),e(fx)),a=r(wO());(0,i.registerTickMethod)(`linear-strict-tick-method`,a.default);var o=function(e){n(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`linear-strict`,n}return t.prototype.initCfg=function(){e.prototype.initCfg.call(this),this.tickMethod=`linear-strict-tick-method`},t.prototype.calculateTicks=function(){var t=this.nice;this.nice=!0;var n=e.prototype.calculateTicks.call(this);return this.nice=t,n.length&&(this.min=n[0],this.max=n[n.length-1]),n},t}(i.Linear);t.default=o,(0,i.getScale)(`linear-strict`)||(0,i.registerScale)(`linear-strict`,o)})),EO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.fadeOut=t.fadeIn=void 0;var n=(J(),e(q));function r(e,t,r){var i={fillOpacity:(0,n.isNil)(e.attr(`fillOpacity`))?1:e.attr(`fillOpacity`),strokeOpacity:(0,n.isNil)(e.attr(`strokeOpacity`))?1:e.attr(`strokeOpacity`),opacity:(0,n.isNil)(e.attr(`opacity`))?1:e.attr(`opacity`)};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,t)}t.fadeIn=r;function i(e,t,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},i=t.easing,a=t.duration,o=t.delay;e.animate(r,a,i,function(){e.remove(!0)},o)}t.fadeOut=i})),DO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.doScaleAnimate=t.transformShape=void 0;var n=(yu(),e(vu));function r(e,t,r){var i,a=t[0],o=t[1];return e.applyToMatrix([a,o,1]),r===`x`?(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,.01,1],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,100,1],[`t`,a,o]])):r===`y`?(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,1,.01],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,1,100],[`t`,a,o]])):r===`xy`&&(e.setMatrix(n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,.01,.01],[`t`,a,o]])),i=n.ext.transform(e.getMatrix(),[[`t`,-a,-o],[`s`,100,100],[`t`,a,o]])),i}t.transformShape=r;function i(e,t,n,i,a){var o=n.start,s=n.end,c=n.getWidth(),l=n.getHeight(),u,d;a===`y`?(u=o.x+c/2,d=i.yo.x?i.x:o.x,d=o.y+l/2):a===`xy`&&(n.isPolar?(u=n.getCenter().x,d=n.getCenter().y):(u=(o.x+s.x)/2,d=(o.y+s.y)/2));var f=r(e,[u,d],a);e.animate({matrix:f},t)}t.doScaleAnimate=i})),OO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var t=DO();function n(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`x`)}e.growInX=n;function r(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`y`)}e.growInY=r;function i(e,n,r){var i=r.coordinate,a=r.minYPoint;(0,t.doScaleAnimate)(e,n,i,a,`xy`)}e.growInXY=i})),kO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pathIn=void 0;function t(e,t,n){var r=e.getTotalLength();e.attr(`lineDash`,[r]),e.animate(function(e){return{lineDashOffset:(1-e)*r}},t)}e.pathIn=t})),AO=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.positionUpdate=void 0;function t(e,t,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:i,y:a},t)}e.positionUpdate=t})),jO=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.scaleInY=t.scaleInX=void 0;var n=(yu(),e(vu));function r(e,t,r){var i=e.getBBox(),a=e.get(`origin`).mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var c=n.ext.transform(e.getMatrix(),[[`t`,-o,-s],[`s`,.01,1],[`t`,o,s]]);e.setMatrix(c),e.animate({matrix:n.ext.transform(e.getMatrix(),[[`t`,-o,-s],[`s`,100,1],[`t`,o,s]])},t)}t.scaleInX=r;function i(e,t,r){var i=e.getBBox(),a=e.get(`origin`).mappingData,o=(i.minX+i.maxX)/2,s=a.points,c=s[0].y-s[1].y<=0?i.maxY:i.minY;e.applyToMatrix([o,c,1]);var l=n.ext.transform(e.getMatrix(),[[`t`,-o,-c],[`s`,1,.01],[`t`,o,c]]);e.setMatrix(l),e.animate({matrix:n.ext.transform(e.getMatrix(),[[`t`,-o,-c],[`s`,1,100],[`t`,o,c]])},t)}t.scaleInY=i}));function MO(){return window?window.devicePixelRatio:1}function NO(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}function PO(e,t,n,r,i,a){return i>=e&&i<=e+n&&a>=t&&a<=t+r}function FO(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY{J()}));function zO(e,t){H(e.match(JO),function(e){var n=e.split(`:`);t.addColorStop(n[0],n[1])})}function BO(e,t,n){var r=GO.exec(n),i=parseFloat(r[1])%360*(Math.PI/180),a=r[2],o=t.getBBox(),s,c;i>=0&&i<1/2*Math.PI?(s={x:o.minX,y:o.minY},c={x:o.maxX,y:o.maxY}):1/2*Math.PI<=i&&i{RO(),GO=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,KO=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,qO=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,JO=/[\d.]+:(#[^\s]+|[^\)]+\))/gi}));function XO(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ZO(e,t){return XO(e)*XO(t)?(e[0]*t[0]+e[1]*t[1])/(XO(e)*XO(t)):1}function QO(e,t){return(e[0]*t[1]1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var m=n*n*(f*f)+r*r*(d*d),h=m?Math.sqrt((n*n*(r*r)-m)/m):1;a===o&&(h*=-1),isNaN(h)&&(h=0);var g=r?h*n*f/r:0,_=n?h*-r*d/n:0,v=(s+l)/2+Math.cos(i)*g-Math.sin(i)*_,y=(c+u)/2+Math.sin(i)*g+Math.cos(i)*_,b=[(d-g)/n,(f-_)/r],x=[(-1*d-g)/n,(-1*f-_)/r],S=QO([1,0],b),C=QO(b,x);return ZO(b,x)<=-1&&(C=Math.PI),ZO(b,x)>=1&&(C=0),o===0&&C>0&&(C-=2*Math.PI),o===1&&C<0&&(C+=2*Math.PI),{cx:v,cy:y,rx:LO(e,[l,u])?0:n,ry:LO(e,[l,u])?0:r,startAngle:S,endAngle:S+C,xRotation:i,arcFlag:a,sweepFlag:o}}var ek=t((()=>{RO()}));function tk(e,t,n,r,i,a,o){var s=t.stroke,c=t.lineWidth,l=n-i,u=ck(r-a,l),d=new oA({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:{path:`M`+10*sk(lk/6)+`,`+10*ok(lk/6)+` L0,0 L`+10*sk(lk/6)+`,-`+10*ok(lk/6),stroke:s,lineWidth:c}});d.translate(i,a),d.rotateAtPoint(i,a,u),e.set(o?`startArrowShape`:`endArrowShape`,d)}function nk(e,t,n,r,i,a,o){var s=t.startArrow,c=t.endArrow,l=t.stroke,u=t.lineWidth,d=o?s:c,f=d.d,p=d.fill,m=d.stroke,h=d.lineWidth,g=pt(d,[`d`,`fill`,`stroke`,`lineWidth`]),_=n-i,v=ck(r-a,_);f&&(i-=sk(v)*f,a-=ok(v)*f);var y=new oA({type:`path`,canvas:e.get(`canvas`),isArrowShape:!0,attrs:L(L({},g),{stroke:m||l,lineWidth:h||u,fill:p})});y.translate(i,a),y.rotateAtPoint(i,a,v),e.set(o?`startArrowShape`:`endArrowShape`,y)}function rk(e,t,n,r,i){var a=ck(r-t,n-e);return{dx:sk(a)*i,dy:ok(a)*i}}function ik(e,t,n,r,i,a){typeof t.startArrow==`object`?nk(e,t,n,r,i,a,!0):t.startArrow?tk(e,t,n,r,i,a,!0):e.set(`startArrowShape`,null)}function ak(e,t,n,r,i,a){typeof t.endArrow==`object`?nk(e,t,n,r,i,a,!1):t.endArrow?tk(e,t,n,r,i,a,!1):e.set(`startArrowShape`,null)}var ok,sk,ck,lk,uk=t((()=>{R(),CA(),ok=Math.sin,sk=Math.cos,ck=Math.atan2,lk=Math.PI}));function dk(e,t){var n=t.attr();for(var r in n){var i=n[r],a=Ck[r]?Ck[r]:r;a===`matrix`&&i?e.transform(i[0],i[1],i[3],i[4],i[6],i[7]):a===`lineDash`&&e.setLineDash?V(i)&&e.setLineDash(i):(a===`strokeStyle`||a===`fillStyle`?i=UO(e,t,i):a===`globalAlpha`&&(i*=e.globalAlpha),e[a]=i)}}function fk(e,t,n){for(var r=0;rb?y:b,E=y>b?1:y/b,D=y>b?b/y:1;t.translate(_,v),t.rotate(C),t.scale(E,D),t.arc(0,0,T,x,S,1-w),t.scale(1/E,1/D),t.rotate(-C),t.translate(-_,-v)}break;case`Z`:t.closePath();break;default:break}if(f===`Z`)s=c;else{var O=d.length;s=[d[O-2],d[O-1]]}}}}function yk(e,t){var n=e.get(`canvas`);n&&(t===`remove`&&(e._cacheCanvasBBox=e.get(`cacheCanvasBBox`)),e.get(`hasChanged`)||(e.set(`hasChanged`,!0),e.cfg.parent&&e.cfg.parent.get(`hasChanged`)||(n.refreshElement(e,t,n),n.get(`autoDraw`)&&n.draw())))}function bk(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get(`cacheCanvasBBox`),r=n&&!!(n.width&&n.height),i=e.getCanvasBBox(),a=i&&!!(i.width&&i.height);r&&a?t=IO(n,i):r?t=n:a&&(t=i)}return t}function xk(e){if(!e.length)return null;var t=[],n=[],r=[],i=[];return H(e,function(e){var a=bk(e);a&&(t.push(a.minX),n.push(a.minY),r.push(a.maxX),i.push(a.maxY))}),{minX:Mn(t),minY:Mn(n),maxX:An(r),maxY:An(i)}}function Sk(e,t){return!e||!t||!FO(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}var Ck,wk=t((()=>{J(),YO(),ek(),RO(),uk(),Ck={fill:`fillStyle`,stroke:`strokeStyle`,opacity:`globalAlpha`}})),Tk,Ek=t((()=>{R(),X(),CA(),wk(),J(),RO(),Tk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(e){yk(this,e)},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),dk(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];H(e,function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(t.length){var i=Mn(t),a=An(t),o=Mn(n),s=An(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var l=c.getViewRange();this.set(`isInView`,FO(r,l))}}else this.set(`isInView`,!1);this.set(`cacheCanvasBBox`,r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=t?this.cfg.refresh:!0;n.length&&r&&(e.save(),dk(e,this),this._applyClip(e,this.getClip()),fk(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set(`hasChanged`,!1)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`hasChanged`,!1)},t}(cm)})),Dk,Ok=t((()=>{R(),X(),RO(),wk(),CA(),Ek(),Dk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return Tk},t.prototype.onCanvasChange=function(e){yk(this,e)},t.prototype.calculateBBox=function(){var e=this.get(`type`),t=this.getHitLineWidth(),n=pm(e)(this),r=t/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+t,height:n.height+t,maxX:o,maxY:s}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),dk(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(this.cfg.refresh===!1){this.set(`hasChanged`,!1);return}if(!FO(t,this.getCanvasBBox())){this.set(`hasChanged`,!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),dk(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=FO(t,e);this.set(`isInView`,n),n?this.set(`cacheCanvasBBox`,t):this.set(`cacheCanvasBBox`,null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set(`hasChanged`,!1),this.set(`refresh`,null)},t.prototype.skipDraw=function(){this.set(`cacheCanvasBBox`,null),this.set(`isInView`,null),this.set(`hasChanged`,!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,i=t.strokeOpacity,a=t.fillOpacity;this.isFill()&&(!B(a)&&a!==1?(e.globalAlpha=a,this.fill(e),e.globalAlpha=r):this.fill(e)),this.isStroke()&&n>0&&(!B(i)&&i!==1&&(e.globalAlpha=i),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(um)})),kk,Ak=t((()=>{R(),Ok(),RO(),kk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=a.x,s=a.y,c=a.r,l=i/2,u=NO(o,s,e,t);return r&&n?u<=c+l:r?u<=c:n?u>=c-l&&u<=c+l:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,Math.PI*2,!1),e.closePath()},t}(Dk)}));function jk(e,t,n,r){return e/(n*n)+t/(r*r)}var Mk,Nk=t((()=>{R(),Ok(),Mk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=i/2,s=a.x,c=a.y,l=a.rx,u=a.ry,d=(e-s)*(e-s),f=(t-c)*(t-c);return r&&n?jk(d,f,l+o,u+o)<=1:r?jk(d,f,l,u)<=1:n?jk(d,f,l-o,u-o)>=1&&jk(d,f,l+o,u+o)<=1:!1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.rx,a=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,i,a,0,0,Math.PI*2,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;e.save(),e.translate(n,r),e.scale(s,c),e.arc(0,0,o,0,Math.PI*2),e.restore(),e.closePath()}},t}(Dk)}));function Pk(e){return e instanceof HTMLElement&&U(e.nodeName)&&e.nodeName.toUpperCase()===`CANVAS`}var Fk,Ik=t((()=>{R(),Ok(),RO(),Fk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get(`toDraw`)===!0){var e=this.get(`canvas`);e?e.draw():this.createPath(this.get(`context`))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if(U(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr(`img`,r),t.set(`loading`,!1),t._afterLoading();var e=t.get(`callback`);e&&e.call(t)},r.crossOrigin=`Anonymous`,r.src=e,this.set(`loading`,!0)}else e instanceof Image?(n.width||=e.width,n.height||=e.height):Pk(e)&&(n.width||=Number(e.getAttribute(`width`)),n.height||(n.height,Number(e.getAttribute(`height`))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`img`&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get(`loading`)){this.set(`toDraw`,!0),this.set(`context`,e);return}var t=this.attr(),n=t.x,r=t.y,i=t.width,a=t.height,o=t.sx,s=t.sy,c=t.swidth,l=t.sheight,u=t.img;(u instanceof Image||Pk(u))&&(!B(o)&&!B(s)&&!B(c)&&!B(l)?e.drawImage(u,o,s,c,l,n,r,i,a):e.drawImage(u,n,r,i,a))},t}(Dk)}));function Lk(e,t,n,r,i,a,o){var s=Math.min(e,n),c=Math.max(e,n),l=Math.min(t,r),u=Math.max(t,r),d=i/2;return a>=s-d&&a<=c+d&&o>=l-d&&o<=u+d?Dm.pointToLine(e,t,n,r,a,o)<=i/2:!1}var Rk=t((()=>{yh()})),zk,Bk=t((()=>{R(),yh(),Ok(),Rk(),uk(),zk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=e.startArrow,o=e.endArrow;a&&ik(this,e,r,i,t,n),o&&ak(this,e,t,n,r,i)},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,s=a.y1,c=a.x2,l=a.y2;return Lk(o,s,c,l,i,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.startArrow,s=t.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(c=rk(n,r,i,a,t.startArrow.d)),s&&s.d&&(l=rk(n,r,i,a,t.endArrow.d)),e.beginPath(),e.moveTo(n+c.dx,r+c.dy),e.lineTo(i-l.dx,a-l.dy)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2;return Dm.length(t,n,r,i)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Dm.pointAt(n,r,i,a,e)},t}(Dk)})),Vk,Hk,Uk=t((()=>{R(),J(),v_(),Ok(),RO(),wk(),Vk={circle:function(e,t,n){return[[`M`,e-n,t],[`A`,n,n,0,1,0,e+n,t],[`A`,n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[[`M`,e-n,t-n],[`L`,e+n,t-n],[`L`,e+n,t+n],[`L`,e-n,t+n],[`Z`]]},diamond:function(e,t,n){return[[`M`,e-n,t],[`L`,e,t-n],[`L`,e+n,t],[`L`,e,t+n],[`Z`]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t+r],[`L`,e,t-r],[`L`,e+n,t+r],[`Z`]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[[`M`,e-n,t-r],[`L`,e+n,t-r],[`L`,e,t+r],[`Z`]]}},Hk=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set(`paramsCache`,{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),[`symbol`,`x`,`y`,`r`,`radius`].indexOf(t)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return B(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e=this.attr(),n=e.x,r=e.y,i=e.symbol||`circle`,a=this._getR(e),o,s;if(z(i))o=i,s=o(n,r,a),s=fg(s);else{if(o=t.Symbols[i],!o)return console.warn(i+` marker is not supported.`),null;s=o(n,r,a)}return s},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get(`paramsCache`);vk(this,e,{path:t},n)},t.Symbols=Vk,t}(Dk)}));function Wk(e,t,n){var r=Dh();return e.createPath(r),r.isPointInPath(t,n)}var Gk=t((()=>{X()}));function Kk(e){return Math.abs(e)0!=Kk(s[1]-n)>0&&Kk(t-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var Yk,Xk=t((()=>{Yk=1e-6}));function Zk(e,t,n,r,i,a,o,s){var c=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2);if(ci)return!1;var l={x:e+n*Math.cos(c),y:t+n*Math.sin(c)};return NO(l.x,l.y,o,s)<=a/2}var Qk=t((()=>{RO()}));function $k(e){for(var t=!1,n=e.length,r=0;r_?g:_,C=g>_?1:g/_,w=g>_?_/g:1;Jc(x,x,nA(null,[[`t`,-m,-h],[`r`,-b],[`s`,1/C,1/w]])),a=Zk(0,0,S,v,y,t,x[0],x[1]);break;default:break}if(a)break}}return a}function tA(e){for(var t=e.length,n=[],r=[],i=[],a=0;a0&&r.push(i),{polygons:n,polylines:r}}var nA,rA,iA=t((()=>{R(),X(),yh(),yu(),fl(),RO(),Rk(),Qk(),nA=pu,rA=L({hasArc:$k,extractPolygons:tA,isPointInStroke:eA},fo)}));function aA(e,t,n){for(var r=!1,i=0;i{R(),yh(),J(),Ok(),v_(),wk(),Gk(),Xk(),iA(),uk(),oA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this._setPathArr(e.path),this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t===`path`&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(e){this.attrs.path=fg(e);var t=rA.hasArc(e);this.set(`hasArc`,t),this.set(`paramsCache`,{}),this.set(`segments`,null),this.set(`curve`,null),this.set(`tCache`,null),this.set(`totalLength`,null)},t.prototype.getSegments=function(){var e=this.get(`segements`);return e||(e=t_(this.attr(`path`)),this.set(`segments`,e)),e},t.prototype.setArrow=function(){var e=this.attr(),t=e.startArrow,n=e.endArrow;if(t){var r=this.getStartTangent();ik(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){var r=this.getEndTangent();ak(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.getSegments(),o=this.get(`hasArc`),s=!1;if(n){var c=this.getTotalLength();s=rA.isPointInStroke(a,i,e,t,c)}if(!s&&r)if(o)s=Wk(this,e,t);else{var l=this.attr(`path`),u=rA.extractPolygons(l);s=aA(u.polygons,e,t)||aA(u.polylines,e,t)}return s},t.prototype.createPath=function(e){var t=this.attr(),n=this.get(`paramsCache`);vk(this,e,t,n)},t.prototype.afterDrawPath=function(e){var t=this.get(`startArrowShape`),n=this.get(`endArrowShape`);t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.get(`totalLength`);return B(e)?(this._calculateCurve(),this._setTcache(),this.get(`totalLength`)):e},t.prototype.getPoint=function(e){var t=this.get(`tCache`);t||=(this._calculateCurve(),this._setTcache(),this.get(`tCache`));var n,r,i=this.get(`curve`);if(!t||t.length===0)return i?{x:i[0][1],y:i[0][2]}:null;H(t,function(t,i){e>=t[0]&&e<=t[1]&&(n=(e-t[0])/(t[1]-t[0]),r=i)});var a=i[r];if(B(a)||B(r))return null;var o=a.length,s=i[r+1];return Gm.pointAt(a[o-2],a[o-1],s[1],s[2],s[3],s[4],s[5],s[6],n)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set(`curve`,rA.pathToCurve(e))},t.prototype._setTcache=function(){var e=0,t=0,n=[],r,i,a,o,s=this.get(`curve`);if(s){if(H(s,function(t,n){a=s[n+1],o=t.length,a&&(e+=Gm.length(t[o-2],t[o-1],a[1],a[2],a[3],a[4],a[5],a[6])||0)}),this.set(`totalLength`,e),e===0){this.set(`tCache`,[]);return}H(s,function(c,l){a=s[l+1],o=c.length,a&&(r=[],r[0]=t/e,i=Gm.length(c[o-2],c[o-1],a[1],a[2],a[3],a[4],a[5],a[6]),t+=i||0,r[1]=t/e,n.push(r))}),this.set(`tCache`,n)}},t.prototype.getStartTangent=function(){var e=this.getSegments(),t;if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},t.prototype.getEndTangent=function(){var e=this.getSegments(),t=e.length,n;if(t>1){var r=e[t-2].currentPoint,i=e[t-1].currentPoint,a=e[t-1].endTangent;n=[],a?(n.push([i[0]-a[0],i[1]-a[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},t}(Dk)}));function cA(e,t,n,r,i){var a=e.length;if(a<2)return!1;for(var o=0;o{Rk()})),uA,dA=t((()=>{R(),Ok(),lA(),Xk(),uA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr().points,o=!1;return n&&(o=cA(a,i,e,t,!0)),!o&&r&&(o=Jk(a,e,t)),o},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n{R(),yh(),J(),Ok(),lA(),uk(),fA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),[`points`].indexOf(t)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set(`totalLength`,null),this.set(`tCache`,null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,i=t.endArrow,a=n.length,o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];r&&ik(this,e,n[1][0],n[1][1],o,s),i&&ak(this,e,n[a-2][0],n[a-2][1],c,l)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return cA(a,i,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,i=t.endArrow,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];if(r&&r.d){var u=rk(o,s,n[1][0],n[1][1],r.d);o+=u.dx,s+=u.dy}if(i&&i.d){var u=rk(n[a-2][0],n[a-2][1],c,l,i.d);c-=u.dx,l-=u.dy}e.beginPath(),e.moveTo(o,s);for(var d=0;d=t[0]&&e<=t[1]&&(r=(e-t[0])/(t[1]-t[0]),i=n)}),Dm.pointAt(t[i][0],t[i][1],t[i+1][0],t[i+1][1],r)},t.prototype._setTcache=function(){var e=this.attr().points;if(!(!e||e.length===0)){var t=this.getTotalLength();if(!(t<=0)){var n=0,r=[],i,a;H(e,function(o,s){e[s+1]&&(i=[],i[0]=n/t,a=Dm.length(o[0],o[1],e[s+1][0],e[s+1][1]),n+=a,i[1]=n/t,r.push(i))}),this.set(`tCache`,r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(Dk)}));function mA(e,t,n,r,i,a,o){var s=i/2;return PO(e-s,t-s,n,i,a,o)||PO(e+n-s,t-s,i,r,a,o)||PO(e+s,t+r-s,n,i,a,o)||PO(e-s,t+s,i,r,a,o)}var hA=t((()=>{RO()}));function gA(e,t,n,r,i,a,o,s){return a/2,Lk(e+i,t,e+n-i,t,a,o,s)||Lk(e+n,t+i,e+n,t+r-i,a,o,s)||Lk(e+n-i,t+r,e+i,t+r,a,o,s)||Lk(e,t+r-i,e,t+i,a,o,s)||Zk(e+n-i,t+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||Zk(e+n-i,t+r-i,i,0,.5*Math.PI,a,o,s)||Zk(e+i,t+r-i,i,.5*Math.PI,Math.PI,a,o,s)||Zk(e+i,t+i,i,Math.PI,1.5*Math.PI,a,o,s)}var _A=t((()=>{Rk(),Qk()})),vA,yA=t((()=>{R(),Ok(),YO(),RO(),hA(),_A(),Gk(),vA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),o=a.x,s=a.y,c=a.width,l=a.height,u=a.radius;if(u){var d=!1;return n&&(d=gA(o,s,c,l,u,i,e,t)),!d&&r&&(d=Wk(this,e,t)),d}else{var f=i/2;if(r&&n)return PO(o-f,s-f,c+f,l+f,e,t);if(r)return PO(o,s,c,l,e,t);if(n)return mA(o,s,c,l,i,e,t)}},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,i=t.width,a=t.height,o=t.radius;if(e.beginPath(),o===0)e.rect(n,r,i,a);else{var s=WO(o),c=s[0],l=s[1],u=s[2],d=s[3];e.moveTo(n+c,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+a-u),u!==0&&e.arc(n+i-u,r+a-u,u,0,Math.PI/2),e.lineTo(n+d,r+a),d!==0&&e.arc(n+d,r+a-d,d,Math.PI/2,Math.PI),e.lineTo(n,r+c),c!==0&&e.arc(n+c,r+c,c,Math.PI,Math.PI*1.5),e.closePath()}},t}(Dk)})),bA,xA=t((()=>{R(),Ok(),RO(),X(),bA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){return L(L({},e.prototype.getDefaultAttrs.call(this)),{x:0,y:0,text:null,fontSize:12,fontFamily:`sans-serif`,fontStyle:`normal`,fontWeight:`normal`,fontVariant:`normal`,textAlign:`start`,textBaseline:`bottom`})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=Nh(e)},t.prototype._setText=function(e){var t=null;U(e)&&e.indexOf(` +`)!==-1&&(t=e.split(` +`)),this.set(`textArr`,t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith(`font`)&&this._assembleFont(),t===`text`&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=e.fontSize*1;return t?t-n:n*.14},t.prototype._drawTextArr=function(e,t,n){var r=this.attrs,i=r.textBaseline,a=r.x,o=r.y,s=r.fontSize*1,c=this._getSpaceingY(),l=Ah(r.text,r.fontSize,r.lineHeight),u;H(t,function(t,r){u=o+r*(c+s)-l+s,i===`middle`&&(u+=l-s-(l-s)/2),i===`top`&&(u+=l-s),B(t)||(n?e.fillText(t,a,u):e.strokeText(t,a,u))})},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,i=n.y,a=this.get(`textArr`);if(a)this._drawTextArr(e,a,t);else{var o=n.text;B(o)||(t?e.fillText(o,r,i):e.strokeText(o,r,i))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,i=t.strokeOpacity,a=t.fillOpacity;this.isStroke()&&n>0&&(!B(i)&&i!==1&&(e.globalAlpha=r),this.stroke(e)),this.isFill()&&(!B(a)&&a!==1?(e.globalAlpha=a,this.fill(e),e.globalAlpha=r):this.fill(e)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(Dk)})),SA=r({Base:()=>Dk,Circle:()=>kk,Ellipse:()=>Mk,Image:()=>Fk,Line:()=>zk,Marker:()=>Hk,Path:()=>oA,Polygon:()=>uA,Polyline:()=>fA,Rect:()=>vA,Text:()=>bA}),CA=t((()=>{Ok(),Ak(),Nk(),Ik(),Bk(),Uk(),sA(),dA(),pA(),yA(),xA()}));function wA(e,t){return t?xu(Su(t),e):e}function TA(e,t,n){var r=e.getTotalMatrix();if(r){var i=wA([t,n,1],r);return[i[0],i[1]]}return[t,n]}function EA(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!ss(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var r=TA(e,t,n),i=r[0],a=r[1];if(e.isClipped(i,a))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=o.minX&&t<=o.maxX&&n>=o.minY&&n<=o.maxY}function DA(e,t,n){if(!EA(e,t,n))return null;for(var r=null,i=e.getChildren(),a=i.length-1;a>=0;a--){var o=i[a];if(o.isGroup())r=DA(o,t,n);else if(EA(o,t,n)){var s=o,c=TA(o,t,n),l=c[0],u=c[1];s.isInShape(l,u)&&(r=o)}if(r)break}return r}var OA=t((()=>{X()})),kA,AA=t((()=>{R(),X(),OA(),CA(),Ek(),RO(),wk(),kA=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer=`canvas`,t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){(e===`attr`||e===`sort`||e===`changeSize`)&&(this.set(`refreshElements`,[this]),this.draw())},t.prototype.getShapeBase=function(){return SA},t.prototype.getGroupBase=function(){return Tk},t.prototype.getPixelRatio=function(){var e=this.get(`pixelRatio`)||MO();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement(`canvas`),t=e.getContext(`2d`);return this.set(`context`,t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get(`context`),i=this.get(`el`),a=this.getPixelRatio();i.width=a*t,i.height=a*n,a>1&&r.scale(a,a)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get(`context`),n=this.get(`el`);t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get(`quickHit`)?DA(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e=this.get(`refreshElements`),t=this.getViewRange(),n;return e.length&&e[0]===this?n=t:(n=xk(e),n&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get(`clipView`)&&(n=Sk(n,t)))),n},t.prototype.refreshElement=function(e){this.get(`refreshElements`).push(e)},t.prototype._clearFrame=function(){var e=this.get(`drawFrame`);e&&(aa(e),this.set(`drawFrame`,null),this.set(`refreshElements`,[]))},t.prototype.draw=function(){var e=this.get(`drawFrame`);this.get(`autoDraw`)&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get(`context`),t=this.get(`el`),n=this.getChildren();e.clearRect(0,0,t.width,t.height),dk(e,this),fk(e,n),this.set(`refreshElements`,[])},t.prototype._drawRegion=function(){var e=this.get(`context`),t=this.get(`refreshElements`),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),dk(e,this),pk(this,n,r),fk(e,n,r),e.restore()):t.length&&hk(t),H(t,function(e){e.get(`hasChanged`)&&e.set(`hasChanged`,!1)}),this.set(`refreshElements`,[])},t.prototype._startDraw=function(){var e=this,t=this.get(`drawFrame`),n=this.get(`drawFrameCallback`);t||(t=ra(function(){e.get(`localRefresh`)?e._drawRegion():e._drawAll(),e.set(`drawFrame`,null),n&&n()}),this.set(`drawFrame`,t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get(`el`);e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(om)})),jA=r({AbstractCanvas:()=>om,AbstractGroup:()=>cm,AbstractShape:()=>um,Base:()=>us,Canvas:()=>kA,Event:()=>$o,Group:()=>Tk,PathUtil:()=>fo,Shape:()=>SA,assembleFont:()=>Nh,getArcParams:()=>$O,getBBoxMethod:()=>pm,getOffScreenContext:()=>Dh,getTextHeight:()=>Ah,invert:()=>Su,isAllowCapture:()=>ss,multiplyVec2:()=>xu,registerBBox:()=>fm,registerEasing:()=>zp,version:()=>MA}),MA,NA=t((()=>{CA(),X(),AA(),Ek(),ek(),MA=`0.5.12`})),PA=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.sectorPathUpdate=void 0;var n=(R(),e(F)),r=(NA(),e(jA)),i=(J(),e(q)),a=oE();function o(e,t){var n,a=(0,r.getArcParams)(e,t),o=a.startAngle,s=a.endAngle;return!(0,i.isNumberEqual)(o,-Math.PI*.5)&&o<-Math.PI*.5&&(o+=Math.PI*2),!(0,i.isNumberEqual)(s,-Math.PI*.5)&&s<-Math.PI*.5&&(s+=Math.PI*2),t[5]===0&&(n=[s,o],o=n[0],s=n[1]),(0,i.isNumberEqual)(o,Math.PI*1.5)&&(o=Math.PI*-.5),(0,i.isNumberEqual)(s,Math.PI*-.5)&&(s=Math.PI*1.5),{startAngle:o,endAngle:s}}function s(e){var t;return e[0]===`M`||e[0]===`L`?t=[e[1],e[2]]:(e[0]===`a`||e[0]===`A`||e[0]===`C`)&&(t=[e[e.length-2],e[e.length-1]]),t}function c(e){var t,n,r,a=e.filter(function(e){return e[0]===`A`||e[0]===`a`});if(a.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var c=a[0],l=a.length>1?a[1]:a[0],u=e.indexOf(c),d=e.indexOf(l),f=s(e[u-1]),p=s(e[d-1]),m=o(f,c),h=m.startAngle,g=m.endAngle,_=o(p,l),v=_.startAngle,y=_.endAngle;(0,i.isNumberEqual)(h,v)&&(0,i.isNumberEqual)(g,y)?(n=h,r=g):(n=Math.min(h,v),r=Math.max(g,y));var b=c[1],x=a[a.length-1][1];return b{Object.defineProperty(t,`__esModule`,{value:!0}),t.waveIn=void 0;var n=(R(),e(F)),r=lE();function i(e,t,i){var a=(0,r.getCoordinateClipCfg)(i.coordinate,20),o=a.type,s=a.startState,c=a.endState,l=e.setClip({type:o,attrs:s});l.animate(c,(0,n.__assign)((0,n.__assign)({},t),{callback:function(){e&&!e.get(`destroyed`)&&e.set(`clipShape`,null),l.remove(!0)}}))}t.waveIn=i})),IA=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.zoomOut=t.zoomIn=void 0;var n=(R(),e(F)),r=(yu(),e(vu)),i=(J(),e(q));function a(e,t,o){if(e.isGroup())(0,i.each)(e.getChildren(),function(e){a(e,t,o)});else{var s=e.getBBox(),c=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(e.applyToMatrix([c,l,1]),o===`zoomIn`){var u=r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,.01,.01],[`t`,c,l]]);e.setMatrix(u),e.animate({matrix:r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,100,100],[`t`,c,l]])},t)}else e.animate({matrix:r.ext.transform(e.getMatrix(),[[`t`,-c,-l],[`s`,.01,.01],[`t`,c,l]])},(0,n.__assign)((0,n.__assign)({},t),{callback:function(){e.remove(!0)}}))}}function o(e,t,n){a(e,t,`zoomIn`)}t.zoomIn=o;function s(e,t,n){a(e,t,`zoomOut`)}t.zoomOut=s})),LA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=EO(),n=OO(),r=kO(),i=AO(),a=jO(),o=PA(),s=FA(),c=IA(),l=SO();(0,l.registerAnimation)(`fade-in`,t.fadeIn),(0,l.registerAnimation)(`fade-out`,t.fadeOut),(0,l.registerAnimation)(`grow-in-x`,n.growInX),(0,l.registerAnimation)(`grow-in-xy`,n.growInXY),(0,l.registerAnimation)(`grow-in-y`,n.growInY),(0,l.registerAnimation)(`scale-in-x`,a.scaleInX),(0,l.registerAnimation)(`scale-in-y`,a.scaleInY),(0,l.registerAnimation)(`wave-in`,s.waveIn),(0,l.registerAnimation)(`zoom-in`,c.zoomIn),(0,l.registerAnimation)(`zoom-out`,c.zoomOut),(0,l.registerAnimation)(`position-update`,i.positionUpdate),(0,l.registerAnimation)(`sector-path-update`,o.sectorPathUpdate),(0,l.registerAnimation)(`path-in`,r.pathIn)})),RA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var t={100:`#000`,95:`#0D0D0D`,85:`#262626`,65:`#595959`,45:`#8C8C8C`,25:`#BFBFBF`,15:`#D9D9D9`,6:`#F0F0F0`},n={100:`#FFFFFF`,95:`#F2F2F2`,85:`#D9D9D9`,65:`#A6A6A6`,45:`#737373`,25:`#404040`,15:`#262626`,6:`#0F0F0F`},r=[`#5B8FF9`,`#5AD8A6`,`#5D7092`,`#F6BD16`,`#E86452`,`#6DC8EC`,`#945FB9`,`#FF9845`,`#1E9493`,`#FF99C3`],i=[`#5B8FF9`,`#CDDDFD`,`#5AD8A6`,`#CDF3E4`,`#5D7092`,`#CED4DE`,`#F6BD16`,`#FCEBB9`,`#E86452`,`#F8D0CB`,`#6DC8EC`,`#D3EEF9`,`#945FB9`,`#DECFEA`,`#FF9845`,`#FFE0C7`,`#1E9493`,`#BBDEDE`,`#FF99C3`,`#FFE0ED`],a=[`#B8E1FF`,`#9AC5FF`,`#7DAAFF`,`#5B8FF9`,`#3D76DD`,`#085EC0`,`#0047A5`,`#00318A`,`#001D70`];e.createDarkStyleSheet=function(e){e===void 0&&(e={});var o=e.backgroundColor,s=o===void 0?`#141414`:o,c=e.subColor,l=c===void 0?`rgba(255,255,255,0.05)`:c,u=e.paletteQualitative10,d=u===void 0?r:u,f=e.paletteQualitative20,p=f===void 0?i:f,m=e.paletteSemanticRed,h=m===void 0?`#F4664A`:m,g=e.paletteSemanticGreen,_=g===void 0?`#30BF78`:g,v=e.paletteSemanticYellow,y=v===void 0?`#FAAD14`:v,b=e.paletteSequence,x=b===void 0?a:b,S=e.fontFamily,C=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`:S,w=e.brandColor;return{backgroundColor:s,brandColor:w===void 0?d[0]:w,subColor:l,paletteQualitative10:d,paletteQualitative20:p,paletteSemanticRed:h,paletteSemanticGreen:_,paletteSemanticYellow:y,paletteSequence:x,fontFamily:C,axisLineBorderColor:n[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:n[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:`normal`,axisTitleSpacing:12,axisTickLineBorderColor:n[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:n[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:n[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:`normal`,axisLabelOffset:8,axisGridBorderColor:n[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:n[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:`normal`,legendMarkerColor:r[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:n[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:`normal`,legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:n[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:n[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:n[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:n[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:n[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:`normal`,sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:n[15],annotationArcBorder:1,annotationLineBorderColor:n[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:n[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:`normal`,annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:n[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:n[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:`#1f1f1f`,tooltipContainerFillOpacity:.95,tooltipContainerShadow:`0px 2px 4px rgba(0,0,0,.5)`,tooltipContainerBorderRadius:3,tooltipTextFillColor:n[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:`bold`,labelFillColor:n[65],labelFillColorDark:`#2c3542`,labelFillColorLight:`#ffffff`,labelFontSize:12,labelLineHeight:12,labelFontWeight:`normal`,labelBorderColor:null,labelBorder:0,innerLabelFillColor:t[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:`normal`,innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:n[65],overflowLabelFillColorDark:`#2c3542`,overflowLabelFillColorLight:`#ffffff`,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:`normal`,overflowLabelBorderColor:t[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:n[25],cSliderRailHieght:16,cSliderBackgroundFillColor:`#416180`,cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:`#5B8FF9`,cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:`#F7F7F7`,cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:`#FFF`,cSliderHandlerBorderColor:`#BFBFBF`,cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:`#fff`,cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:`normal`,cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:`rgba(255,255,255,0.65)`,scrollbarThumbFillColor:`rgba(0,0,0,0.35)`,scrollbarThumbHighlightFillColor:`rgba(0,0,0,0.45)`,pointFillColor:r[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:t[100],pointBorderOpacity:1,pointActiveBorderColor:n[100],pointSelectedBorder:2,pointSelectedBorderColor:n[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:r[0],hollowPointBorderOpacity:.95,hollowPointFillColor:t[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:n[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:n[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:r[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:r[0],areaFillOpacity:.25,areaActiveFillColor:r[0],areaActiveFillOpacity:.5,areaSelectedFillColor:r[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:r[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:n[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:n[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:r[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:n[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:n[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:r[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:t[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:n[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:n[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvDark=(0,e.createDarkStyleSheet)()})),zA=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.antvDark=e.antvLight=e.createThemeByStyleSheet=void 0;var t=RA();Object.defineProperty(e,`antvDark`,{enumerable:!0,get:function(){return t.antvDark}});var n=BD();Object.defineProperty(e,`antvLight`,{enumerable:!0,get:function(){return n.antvLight}});var r=zD();Object.defineProperty(e,`createThemeByStyleSheet`,{enumerable:!0,get:function(){return r.createThemeByStyleSheet}});var i=UD();(0,i.registerTheme)(`dark`,(0,r.createThemeByStyleSheet)(t.antvDark)),(0,i.registerTheme)(`default`,(0,r.createThemeByStyleSheet)(n.antvLight)),(0,i.registerTheme)(`light`,(0,r.createThemeByStyleSheet)(n.antvLight))})),BA=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e,a()):typeof define==`function`&&define.amd?define([`exports`,`react`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.ReactErrorBoundary={},n.React))})(e,(function(e,t){function n(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var r=n(t);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),e.length!==t.length||e.some(function(e,n){return!Object.is(e,t[n])})},o={error:null},s=function(e){i(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.state=o,t.updatedWithError=!1,t.resetErrorBoundary=function(){var e,n=[...arguments];t.props.onReset==null||(e=t.props).onReset.apply(e,n),t.reset()},t}t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.updatedWithError=!1,this.setState(o)},n.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},n.componentDidUpdate=function(e){var t=this.state.error,n=this.props.resetKeys;if(t!==null&&!this.updatedWithError){this.updatedWithError=!0;return}if(t!==null&&a(e.resetKeys,n)){var r,i;(r=(i=this.props).onResetKeysChange)==null||r.call(i,e.resetKeys,n),this.reset()}},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,i=t.FallbackComponent,a=t.fallback;if(e!==null){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.default.isValidElement(a))return a;if(typeof n==`function`)return n(o);if(i)return r.default.createElement(i,o);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},t}(r.default.Component);function c(e,t){function n(n){return r.default.createElement(s,t,r.default.createElement(e,n))}return n.displayName=`withErrorBoundary(`+(e.displayName||e.name||`Unknown`)+`)`,n}function l(e){var t=r.default.useState(null),n=t[0],i=t[1];if(e)throw e;if(n)throw n;return i}e.ErrorBoundary=s,e.useErrorHandler=l,e.withErrorBoundary=c,Object.defineProperty(e,`__esModule`,{value:!0})}))})),VA=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.setDefaultErrorFallback=e.ErrorFallback=void 0;var n=t(a()),r=BA(),i=function(e){var t=e.error;return n.default.createElement(`div`,{className:`bizcharts-error`,role:`alert`},n.default.createElement(`p`,null,`BizCharts something went wrong:`),n.default.createElement(`pre`,null,t.message))};function o(e){return i(e)}e.ErrorFallback=o,e.setDefaultErrorFallback=function(e){i=e},e.default=r.ErrorBoundary})),HA=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=t&&t.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,`__esModule`,{value:!0}),t.setDefaultErrorFallback=t.VERSION=t.GLOBAL=t.setGlobal=t.registerTickMethod=t.getScale=t.registerScale=void 0;var o=i(YE()),s=i(CD()),c=SO(),l=(px(),e(fx));Object.defineProperty(t,`registerScale`,{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(t,`getScale`,{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(t,`registerTickMethod`,{enumerable:!0,get:function(){return l.registerTickMethod}});var u=CO();Object.defineProperty(t,`setGlobal`,{enumerable:!0,get:function(){return u.setGlobal}}),Object.defineProperty(t,`GLOBAL`,{enumerable:!0,get:function(){return u.GLOBAL}}),TO(),LA(),a(zA(),t),(0,c.registerEngine)(`canvas`,o),(0,c.registerEngine)(`svg`,s),a(SO(),t),t.VERSION=`4.1.22`;var d=o.Canvas.prototype.getPointByClient;o.Canvas.prototype.getPointByClient=function(e,t){var n=d.call(this,e,t),r=this.get(`el`).getBoundingClientRect(),i=this.get(`width`),a=this.get(`height`),o=r.width,s=r.height;return{x:n.x/(o/i),y:n.y/(s/a)}};var f=VA();Object.defineProperty(t,`setDefaultErrorFallback`,{enumerable:!0,get:function(){return f.setDefaultErrorFallback}})})),UA=i((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}e.default=t})),GA,KA=t((()=>{GA=[]})),qA,JA=t((()=>{KA(),qA=function(){return GA.some(function(e){return e.activeTargets.length>0})}})),YA,XA=t((()=>{KA(),YA=function(){return GA.some(function(e){return e.skippedTargets.length>0})}})),ZA,QA,$A=t((()=>{ZA=`ResizeObserver loop completed with undelivered notifications.`,QA=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ZA}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ZA),window.dispatchEvent(e)}})),ej,tj=t((()=>{(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(ej||={})})),nj,rj=t((()=>{nj=function(e){return Object.freeze(e)}})),ij,aj=t((()=>{rj(),ij=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,nj(this)}return e}()})),oj,sj=t((()=>{rj(),oj=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,nj(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}()})),cj,lj,uj,dj,fj=t((()=>{cj=function(e){return e instanceof SVGElement&&`getBBox`in e},lj=function(e){if(cj(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},uj=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},dj=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1}})),pj,mj=t((()=>{pj=typeof window<`u`?window:{}})),hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj=t((()=>{tj(),aj(),sj(),fj(),rj(),mj(),hj=new WeakMap,gj=/auto|scroll/,_j=/^tb|vertical/,vj=/msie|trident/i.test(pj.navigator&&pj.navigator.userAgent),yj=function(e){return parseFloat(e||`0`)},bj=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ij((n?t:e)||0,(n?e:t)||0)},xj=nj({devicePixelContentBoxSize:bj(),borderBoxSize:bj(),contentBoxSize:bj(),contentRect:new oj(0,0,0,0)}),Sj=function(e,t){if(t===void 0&&(t=!1),hj.has(e)&&!t)return hj.get(e);if(lj(e))return hj.set(e,xj),xj;var n=getComputedStyle(e),r=cj(e)&&e.ownerSVGElement&&e.getBBox(),i=!vj&&n.boxSizing===`border-box`,a=_j.test(n.writingMode||``),o=!r&&gj.test(n.overflowY||``),s=!r&&gj.test(n.overflowX||``),c=r?0:yj(n.paddingTop),l=r?0:yj(n.paddingRight),u=r?0:yj(n.paddingBottom),d=r?0:yj(n.paddingLeft),f=r?0:yj(n.borderTopWidth),p=r?0:yj(n.borderRightWidth),m=r?0:yj(n.borderBottomWidth),h=r?0:yj(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:yj(n.width)-S-x,T=r?r.height:yj(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=nj({devicePixelContentBoxSize:bj(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:bj(E,D,a),contentBoxSize:bj(w,T,a),contentRect:new oj(d,c,w,T)});return hj.set(e,O),O},Cj=function(e,t,n){var r=Sj(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case ej.DEVICE_PIXEL_CONTENT_BOX:return o;case ej.BORDER_BOX:return i;default:return a}}})),Tj,Ej=t((()=>{wj(),rj(),Tj=function(){function e(e){var t=Sj(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=nj([t.borderBoxSize]),this.contentBoxSize=nj([t.contentBoxSize]),this.devicePixelContentBoxSize=nj([t.devicePixelContentBoxSize])}return e}()})),Dj,Oj=t((()=>{fj(),Dj=function(e){if(lj(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t}})),kj,Aj=t((()=>{KA(),Ej(),Oj(),wj(),kj=function(){var e=1/0,t=[];GA.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Tj(t.target),i=Dj(t.target);r.push(n),t.lastReportedSize=Cj(t.target,t.observedBox),i{KA(),Oj(),jj=function(e){GA.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Dj(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})}})),Nj,Pj=t((()=>{JA(),XA(),$A(),Aj(),Mj(),Nj=function(){var e=0;for(jj(e);qA();)e=kj(),jj(e);return YA()&&QA(),e>0}})),Fj,Ij,Lj,Rj,zj=t((()=>{Ij=[],Lj=function(){return Ij.splice(0).forEach(function(e){return e()})},Rj=function(e){if(!Fj){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Lj()}).observe(n,{characterData:!0}),Fj=function(){n.textContent=`${t?t--:t++}`}}Ij.push(e),Fj()}})),Bj,Vj=t((()=>{zj(),Bj=function(e){Rj(function(){requestAnimationFrame(e)})}})),Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj=t((()=>{Pj(),mj(),Vj(),Hj=0,Uj=function(){return!!Hj},Wj=250,Gj={attributes:!0,characterData:!0,childList:!0,subtree:!0},Kj=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],qj=function(e){return e===void 0&&(e=0),Date.now()+e},Jj=!1,Yj=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Wj),!Jj){Jj=!0;var n=qj(e);Bj(function(){var r=!1;try{r=Nj()}finally{if(Jj=!1,e=n-qj(),!Uj())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Gj)};document.body?t():pj.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Kj.forEach(function(t){return pj.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Kj.forEach(function(t){return pj.removeEventListener(t,e.listener,!0)}),!0)},e}()),Xj=function(e){!Hj&&e>0&&Yj.start(),Hj+=e,!Hj&&Yj.stop()}})),Qj,$j,eM=t((()=>{tj(),wj(),fj(),Qj=function(e){return!cj(e)&&!dj(e)&&getComputedStyle(e).display===`inline`},$j=function(){function e(e,t){this.target=e,this.observedBox=t||ej.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Cj(this.target,this.observedBox,!0);return Qj(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}()})),tM,nM=t((()=>{tM=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}()})),rM,iM,aM,oM=t((()=>{Zj(),eM(),nM(),KA(),rM=new WeakMap,iM=function(e,t){for(var n=0;n=0&&(i&&GA.splice(GA.indexOf(n),1),n.observationTargets.splice(r,1),Xj(-1))},e.disconnect=function(e){var t=this,n=rM.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}()})),sM,cM=t((()=>{oM(),fj(),sM=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);aM.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!uj(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);aM.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!uj(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);aM.unobserve(this,e)},e.prototype.disconnect=function(){aM.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}()})),lM=r({ResizeObserver:()=>sM,ResizeObserverEntry:()=>Tj,ResizeObserverSize:()=>ij}),uM=t((()=>{cM(),Ej(),aj()})),dM=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t={};e.default=(function(e){return e||=`g`,t[e]?t[e]+=1:t[e]=1,e+t[e]})})),hM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(function(e){var t=typeof e;return e!==null&&t===`object`||t===`function`})})),gM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=hM();function r(e,r){if(e){var i;if(t.default(e))for(var a=0,o=e.length;a{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return t.default(e,`Function`)})})),vM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return typeof e==`object`&&!!e}})),yM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return e!==null&&typeof e!=`function`&&isFinite(e.length)}})),bM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=_E();e.default=(function(e){return t.default(e,`String`)})})),xM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vM(),n=yM(),r=bM(),i=function(e,a){if(e===a)return!0;if(!e||!a||r.default(e)||r.default(a))return!1;if(n.default(e)||n.default(a)){if(e.length!==a.length)return!1;for(var o=!0,s=0;s{var n=!1,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r2?r-2:0);for(var a=2;a{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(vE()),i=t(hM());function a(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function o(e){return(0,r.default)(e)?e.length:(0,i.default)(e)?Object.keys(e).length:0}function s(e,t){if(a(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t||(0,r.default)(e)!==(0,r.default)(t)||o(e)!==o(t))return!1;var i=!0;return(0,n.default)(e,function(e,n){return a(e,t[n])?!0:(i=!1,i)}),i}e.default=s})),wM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(bM());e.default=function(e,t){var i={};return(0,n.default)(e,function(e,n){var a=!1;t.forEach(function(e){((0,r.default)(e)&&e===n||e instanceof RegExp&&n.match(e))&&(a=!0)}),a||(i[n]=e)}),i}})),TM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=gM().default})),EM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(vE()),r=t(TM());e.default=function(e){var t=[],i=function(e){if(t.push(e),t.includes(e)||typeof e!=`object`||!e)return e;var a;if((0,n.default)(e)){a=[];for(var o=0,s=e.length;o{Object.defineProperty(e,`__esModule`,{value:!0}),e.REACT_PIVATE_PROPS=void 0,e.REACT_PIVATE_PROPS=[`children`,`hooks`,`ref`],e.default={}})),OM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.TOOLTIP_EVENT=e.ANNOTATION_EVENT_TARGET=e.AXIS_EVENT_TARGET=e.LEGEND_EVENT=e.GEOM_NAME=e.LEGEND_EVENT_TARGETS=e.LIFE_CIRCLE_NAMES=e.MOBILE_EVENT_NAMES=e.DRAG_EVENT_NAMES=e.pickEventName=e.BASE_EVENT_NAMES=void 0;var n=t(TM());e.BASE_EVENT_NAMES=[`mousedown`,`mouseup`,`dblclick`,`mouseenter`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`contextmenu`,`click`];var r=RegExp(`^on(.*)(?=(${[`mousedown`,`mouseup`,`dblclick`,`mouseenter`,`mouseout`,`mouseover`,`mousemove`,`mouseleave`,`contextmenu`,`click`,`show`,`hide`,`change`].map(function(e){return e.replace(/^\S/,function(e){return e.toUpperCase()})}).join(`|`)}))`);e.pickEventName=function(e){var t=[];return(0,n.default)(e,function(e,n){var i=n.match(/^on(.*)/);if(i){var a=n.match(r);if(a){var o=a[1].replace(/([A-Z])/g,`-$1`).toLowerCase();o=o.replace(`column`,`interval`),o?t.push([n,`${o.replace(`-`,``)}:${a[2].toLowerCase()}`]):t.push([n,a[2].toLowerCase()])}else t.push([n,i[1].toLowerCase()])}}),t},e.DRAG_EVENT_NAMES=[`dragstart`,`drag`,`dragend`,`dragover`,`dragenter`,`dragleave`,`drop`],e.MOBILE_EVENT_NAMES=[`touchstart`,`touchmove`,`touchend`],e.LIFE_CIRCLE_NAMES=[`beforerender`,`afterrender`,`beforepaint`,`afterpaint`,`beforechangedata`,`afterchangedata`,`beforeclear`,`afterclear`,`beforedestroy`],e.LEGEND_EVENT_TARGETS=[`legend`,`legend-title`,`legend-item`,`legend-item-name`,`legend-item-Maker`,`legend-item-value`],e.GEOM_NAME=[`line`,`area`,`point`,`interval`,`polygon`,`edge`,`schema`],e.LEGEND_EVENT=[`legend:valuechanged`],e.AXIS_EVENT_TARGET=[`axis-label`,`axis-line`,`axis-tick`,`axis-title`],e.ANNOTATION_EVENT_TARGET=[`annotation`,`annotation-line`,`annotation-line-text`,`annotation-image`,`annotation-region`,`annotation-text`],e.TOOLTIP_EVENT=[`tooltip:show`,`tooltip:hide`,`tooltip:change`]})),kM=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&t!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=t||this.chartHelper.chart.width,i=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,i),this.chartHelper.chart.emit(`resize`)}else this.chartHelper.render();else this.chartHelper.render()},t.prototype.componentWillUnmount=function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)},t.prototype.getG2Instance=function(){return this.chartHelper.chart},t.prototype.render=function(){var e,t=this,n=(e=this.props,e.placeholder),i=e.data,a=e.errorContent,o=this.props.ErrorBoundaryProps;if((i===void 0||i.length===0)&&n){this.chartHelper.destory();var s=n===!0?l.default.createElement(`div`,{style:{position:`relative`,top:`48%`,color:`#aaa`,textAlign:`center`}},`暂无数据`):n;return l.default.createElement(p.default,r({},o),s)}return this.chartHelper.update(this.props),o=a?r({fallback:a},o):{FallbackComponent:p.ErrorFallback},l.default.createElement(p.default,r({},o,{key:this.chartHelper.key,onError:function(){var e=[...arguments];t.isError=!0,(0,y.isFunction)(o.onError)&&o.onError.apply(o,e)},onReset:function(){var e=[...arguments];t.isError=!1,(0,y.isFunction)(o.onReset)&&o.onReset.apply(o,e)},resetKeys:[this.chartHelper.key],fallback:a}),l.default.createElement(h.default.Provider,{value:this.chartHelper},l.default.createElement(g.default.Provider,{value:this.chartHelper.chart},l.default.createElement(_.default.Provider,{value:this.chartHelper.extendGroup},this.props.children))))},t.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},t}(l.default.Component);t.default=(0,m.default)(b)})),jM=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var t=Y();function n(e,n,r){return r===t.DIRECTION.TOP?[e.minX+e.width/2-n.width/2,e.minY]:r===t.DIRECTION.BOTTOM?[e.minX+e.width/2-n.width/2,e.maxY-n.height]:r===t.DIRECTION.LEFT?[e.minX,e.minY+e.height/2-n.height/2]:r===t.DIRECTION.RIGHT?[e.maxX-n.width,e.minY+e.height/2-n.height/2]:r===t.DIRECTION.TOP_LEFT||r===t.DIRECTION.LEFT_TOP?[e.tl.x,e.tl.y]:r===t.DIRECTION.TOP_RIGHT||r===t.DIRECTION.RIGHT_TOP?[e.tr.x-n.width,e.tr.y]:r===t.DIRECTION.BOTTOM_LEFT||r===t.DIRECTION.LEFT_BOTTOM?[e.bl.x,e.bl.y-n.height]:r===t.DIRECTION.BOTTOM_RIGHT||r===t.DIRECTION.RIGHT_BOTTOM?[e.br.x-n.width,e.br.y-n.height]:[0,0]}e.directionToPosition=n;function r(e,n){if(n.isTransposed)switch(e){case t.DIRECTION.BOTTOM:return t.DIRECTION.LEFT;case t.DIRECTION.LEFT:return t.DIRECTION.BOTTOM;case t.DIRECTION.RIGHT:return t.DIRECTION.TOP;case t.DIRECTION.TOP:return t.DIRECTION.RIGHT}return e}function i(e){return e===t.DIRECTION.LEFT?t.DIRECTION.RIGHT:e===t.DIRECTION.RIGHT?t.DIRECTION.LEFT:e}function a(e){return e===t.DIRECTION.TOP?t.DIRECTION.BOTTOM:e===t.DIRECTION.BOTTOM?t.DIRECTION.TOP:e}function o(e,t){var n=t.matrix[0],r=t.matrix[4],o=e;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}function s(e,t){var n=e;return t.isReflect(`x`)&&(n=i(n)),t.isReflect(`y`)&&(n=a(n)),n}function c(e,t){var n=e;return n=r(n,t),n=o(n,t),n=s(n,t),n}e.getTranslateDirection=c})),MM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=Y(),a=rE(),o=aE(),s=cE(),c=jM(),l=sE(),u=xO(),d=uE(),f=pE();function p(e,t){return(0,r.isBoolean)(e)?e===!1?!1:{}:(0,r.get)(e,[t],e)}function m(e){return(0,r.get)(e,`position`,i.DIRECTION.BOTTOM)}t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.container=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return Object.defineProperty(t.prototype,`name`,{get:function(){return`legend`},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,r.each)(this.components,function(t){var n=t.component,r=t.direction,i=(0,u.getLegendLayout)(r),a=n.get(`maxWidthRatio`),o=n.get(`maxHeightRatio`),l=e.getCategoryLegendSizeCfg(i,a,o),d=n.get(`maxWidth`),f=n.get(`maxHeight`);n.update({maxWidth:Math.min(l.maxWidth,d||0),maxHeight:Math.min(l.maxHeight,f||0)});var p=n.get(`padding`),m=n.getLayoutBBox(),h=new s.BBox(m.x,m.y,m.width,m.height).expand(p),g=(0,c.directionToPosition)(e.view.viewBBox,h,r),_=g[0],v=g[1],y=(0,c.directionToPosition)(e.layoutBBox,h,r),b=y[0],x=y[1],S=0,C=0;r.startsWith(`top`)||r.startsWith(`bottom`)?(S=_,C=x):(S=b,C=v),n.setLocation({x:S+p[3],y:C+p[0]}),e.layoutBBox=e.layoutBBox.cut(h,r)})},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={},n=function(n,i,a){var o=e.getId(a.field),s=e.getComponentById(o);if(s){var c=void 0,u=p(e.option,a.field);u!==!1&&((0,r.get)(u,`custom`)?c=e.getCategoryCfg(n,i,a,u,!0):a.isLinear?c=e.getContinuousCfg(n,i,a,u):a.isCategory&&(c=e.getCategoryCfg(n,i,a,u))),c&&((0,l.omit)(c,[`container`]),s.direction=m(u),s.component.update(c),t[o]=!0)}else{var d=e.createFieldLegend(n,i,a);d&&(d.component.init(),e.components.push(d),t[o]=!0)}};if((0,r.get)(this.option,`custom`)){var a=`global-custom`,o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,l.omit)(s,[`container`]),o.component.update(s),t[a]=!0}else{var c=this.createCustomLegend(void 0,void 0,void 0,this.option);if(c){c.init();var u=i.LAYER.FORE,d=m(this.option);this.components.push({id:a,component:c,layer:u,direction:d,type:i.COMPONENT_TYPE.LEGEND,extra:void 0}),t[a]=!0}}}else this.loopLegends(n);var f=[];(0,r.each)(this.getComponents(),function(e){t[e.id]?f.push(e):e.component.destroy()}),this.components=f},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,n=e.geometries;return(0,r.each)(e.views,function(e){n=n.concat(t.getGeometries(e))}),n},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),n={};(0,r.each)(t,function(t){var i=t.getGroupAttributes();(0,r.each)(i,function(r){var i=r.getScale(r.type);!i||i.type===`identity`||n[i.field]||(e(t,r,i),n[i.field]=!0)})})}},t.prototype.createFieldLegend=function(e,t,n){var a,o=p(this.option,n.field),s=i.LAYER.FORE,c=m(o);if(o!==!1&&((0,r.get)(o,`custom`)?a=this.createCustomLegend(e,t,n,o):n.isLinear?a=this.createContinuousLegend(e,t,n,o):n.isCategory&&(a=this.createCategoryLegend(e,t,n,o))),a)return a.set(`field`,n.field),{id:this.getId(n.field),component:a,layer:s,direction:c,type:i.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},t.prototype.createCustomLegend=function(e,t,n,r){var i=this.getCategoryCfg(e,t,n,r,!0);return new a.CategoryLegend(i)},t.prototype.createContinuousLegend=function(e,t,n,r){var i=this.getContinuousCfg(e,t,n,(0,l.omit)(r,[`value`]));return new a.ContinuousLegend(i)},t.prototype.createCategoryLegend=function(e,t,n,r){var i=this.getCategoryCfg(e,t,n,r);return new a.CategoryLegend(i)},t.prototype.getContinuousCfg=function(e,t,n,i){var a=n.getTicks(),s=(0,r.find)(a,function(e){return e.value===0}),c=(0,r.find)(a,function(e){return e.value===1}),l=a.map(function(e){var r=e.value,i=e.tickValue,a=t.mapping(n.invert(r)).join(``);return{value:i,attrValue:a,color:a,scaleValue:r}});s||l.push({value:n.min,attrValue:t.mapping(n.invert(0)).join(``),color:t.mapping(n.invert(0)).join(``),scaleValue:0}),c||l.push({value:n.max,attrValue:t.mapping(n.invert(1)).join(``),color:t.mapping(n.invert(1)).join(``),scaleValue:1}),l.sort(function(e,t){return e.value-t.value});var f={min:(0,r.head)(l).value,max:(0,r.last)(l).value,colors:[],rail:{type:t.type},track:{}};t.type===`size`&&(f.track={style:{fill:t.type===`size`?this.view.getTheme().defaultColor:void 0}}),t.type===`color`&&(f.colors=l.map(function(e){return e.attrValue}));var p=this.container,h=m(i),g=(0,u.getLegendLayout)(h),_=(0,r.get)(i,`title`);return _&&=(0,r.deepMix)({text:(0,d.getName)(n)},_),f.container=p,f.layout=g,f.title=_,f.animateOption=o.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(f,i,`continuous`)},t.prototype.getCategoryCfg=function(e,t,n,a,s){var c=this.container,l=(0,r.get)(a,`position`,i.DIRECTION.BOTTOM),f=(0,u.getLegendThemeCfg)(this.view.getTheme(),l),p=(0,r.get)(f,[`marker`]),m=(0,r.get)(a,`marker`),h=(0,u.getLegendLayout)(l),g=(0,r.get)(f,[`pageNavigator`]),_=(0,r.get)(a,`pageNavigator`),v=s?(0,u.getCustomLegendItems)(p,m,a.items):(0,u.getLegendItems)(this.view,e,t,p,m),y=(0,r.get)(a,`title`);y&&=(0,r.deepMix)({text:n?(0,d.getName)(n):``},y);var b=(0,r.get)(a,`maxWidthRatio`),x=(0,r.get)(a,`maxHeightRatio`),S=this.getCategoryLegendSizeCfg(h,b,x);S.container=c,S.layout=h,S.items=v,S.title=y,S.animateOption=o.DEFAULT_ANIMATE_CFG,S.pageNavigator=(0,r.deepMix)({},g,_);var C=this.mergeLegendCfg(S,a,l);C.reversed&&C.items.reverse();var w=(0,r.get)(C,`maxItemWidth`);return w&&w<=1&&(C.maxItemWidth=this.view.viewBBox.width*w),C},t.prototype.mergeLegendCfg=function(e,t,n){var i=n.split(`-`)[0],a=(0,u.getLegendThemeCfg)(this.view.getTheme(),i);return(0,r.deepMix)({},a,e,t)},t.prototype.getId=function(e){return this.name+`-`+e},t.prototype.getComponentById=function(e){return(0,r.find)(this.components,function(t){return t.id===e})},t.prototype.getCategoryLegendSizeCfg=function(e,t,n){t===void 0&&(t=i.COMPONENT_MAX_VIEW_PERCENTAGE),n===void 0&&(n=i.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,a=r.width,o=r.height;return e===`vertical`?{maxWidth:a*t,maxHeight:o}:{maxWidth:a,maxHeight:o*n}},t}(f.Controller)})),NM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.clearList=void 0;var n=(J(),e(q)),r=`inactive`,i=`active`;function a(e){var t=e.getItems();(0,n.each)(t,function(t){e.hasState(t,i)&&e.setItemState(t,i,!1),e.hasState(t,r)&&e.setItemState(t,r,!1)})}t.clearList=a})),PM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND(),o=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=``,t.ignoreItemStates=[],t}return t.prototype.getTriggerListInfo=function(){var e=(0,o.getDelegationObject)(this.context),t=null;return(0,o.isList)(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=this.context.view,n=(0,a.getComponents)(t),i=[];return(0,r.each)(n,function(t){t.isList()&&e.allowSetStateByElement(t)&&i.push(t)}),i},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,r.each)(t,function(t){t.clearItemsState(e.stateName)})},t.prototype.allowSetStateByElement=function(e){var t=e.get(`field`);if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var n=e.get(`name`);if(this.cfg.componentNames.indexOf(n)===-1)return!1}var r=this.context.view,i=(0,o.getScaleByField)(r,t);return i&&i.isCategory},t.prototype.allowSetStateByItem=function(e,t){var n=this.ignoreItemStates;return n.length?n.filter(function(n){return t.hasState(e,n)}).length===0:!0},t.prototype.setStateByElement=function(e,t,n){var r=e.get(`field`),i=this.context.view,a=(0,o.getScaleByField)(i,r),s=(0,o.getElementValue)(t,r),c=a.getText(s);this.setItemsState(e,c,n)},t.prototype.setStateEnable=function(e){var t=this,n=(0,o.getCurrentElement)(this.context);if(n){var i=this.getAllowComponents();(0,r.each)(i,function(r){t.setStateByElement(r,n,e)})}else{var a=(0,o.getDelegationObject)(this.context);if((0,o.isList)(a)){var s=a.item,c=a.component;this.allowSetStateByElement(c)&&this.allowSetStateByItem(s,c)&&this.setItemState(c,s,e)}}},t.prototype.setItemsState=function(e,t,n){var i=this,a=e.getItems();(0,r.each)(a,function(r){r.name===t&&i.setItemState(e,r,n)})},t.prototype.setItemState=function(e,t,n){e.setItemState(t,this.stateName,n)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item,r=this.hasState(t,n);this.setItemState(t,n,!r)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(i.default)})),FM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=NM(),a=(0,n.__importDefault)(PM()),o=`inactive`,s=`active`;t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=s,t.ignoreItemStates=[`unchecked`],t}return t.prototype.setItemsState=function(e,t,n){this.setHighlightBy(e,function(e){return e.name===t},n)},t.prototype.setItemState=function(e,t,n){e.getItems(),this.setHighlightBy(e,function(e){return e===t},n)},t.prototype.setHighlightBy=function(e,t,n){var i=e.getItems();if(n)(0,r.each)(i,function(n){t(n)?(e.hasState(n,o)&&e.setItemState(n,o,!1),e.setItemState(n,s,!0)):e.hasState(n,s)||e.setItemState(n,o,!0)});else{var a=e.getItemsByState(s),c=!0;(0,r.each)(a,function(e){if(!t(e))return c=!1,!1}),c?this.clear():(0,r.each)(i,function(n){t(n)&&(e.hasState(n,s)&&e.setItemState(n,s,!1),e.setItemState(n,o,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e=this.getTriggerListInfo();if(e)(0,i.clearList)(e.list);else{var t=this.getAllowComponents();(0,r.each)(t,function(e){e.clearItemsState(s),e.clearItemsState(o)})}},t}(a.default)})),IM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),LM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`unchecked`,t}return t.prototype.unchecked=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),RM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.filterView=function(e,t,n){var i=this;e.getScaleByField(t)&&e.filter(t,n),e.views&&e.views.length&&(0,r.each)(e.views,function(e){i.filterView(e,t,n)})},t.prototype.filter=function(){var e=(0,a.getDelegationObject)(this.context);if(e){var t=this.context.view,n=e.component,r=n.get(`field`);if((0,a.isList)(e)){if(r){var i=n.getItemsByState(`unchecked`),o=(0,a.getScaleByField)(t,r),s=i.map(function(e){return e.name});s.length?this.filterView(t,r,function(e){var t=o.getText(e);return!s.includes(t)}):this.filterView(t,r,null),t.render(!0)}}else if((0,a.isSlider)(e)){var c=n.getValue(),l=c[0],u=c[1];this.filterView(t,r,function(e){return e>=l&&e<=u}),t.render(!0)}}},t}(i.default)})),zM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(PM()).default)})),BM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(FM()),r=t(IM()),i=t(LM()),a=t(RM()),o=t(zM()),s=HA();(0,s.registerAction)(`list-active`,r.default),(0,s.registerAction)(`list-selected`,o.default),(0,s.registerAction)(`list-highlight`,n.default),(0,s.registerAction)(`list-unchecked`,i.default),(0,s.registerAction)(`data-filter`,a.default),(0,s.registerAction)(`legend-item-highlight`,n.default,{componentNames:[`legend`]}),(0,s.registerInteraction)(`legend-active`,{start:[{trigger:`legend-item:mouseenter`,action:[`list-active:active`,`element-active:active`]}],end:[{trigger:`legend-item:mouseleave`,action:[`list-active:reset`,`element-active:reset`]}]}),(0,s.registerInteraction)(`legend-highlight`,{start:[{trigger:`legend-item:mouseenter`,action:[`legend-item-highlight:highlight`,`element-highlight:highlight`]}],end:[{trigger:`legend-item:mouseleave`,action:[`legend-item-highlight:reset`,`element-highlight:reset`]}]}),(0,s.registerInteraction)(`legend-filter`,{showEnable:[{trigger:`legend-item:mouseenter`,action:`cursor:pointer`},{trigger:`legend-item:mouseleave`,action:`cursor:default`}],start:[{trigger:`legend-item:click`,action:`list-unchecked:toggle`},{trigger:`legend-item:click`,action:`data-filter:filter`}]})})),VM=i((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(t,`__esModule`,{value:!0}),t.getBackgroundRectStyle=t.getStyle=void 0;var n=(R(),e(F)),r=(J(),e(q));function i(e,t,i,a){a===void 0&&(a=``);var o=e.style,s=o===void 0?{}:o,c=e.defaultStyle,l=e.color,u=e.size,d=(0,n.__assign)((0,n.__assign)({},c),s);return l&&(t&&(s.stroke||(d.stroke=l)),i&&(s.fill||(d.fill=l))),a&&(0,r.isNil)(s[a])&&!(0,r.isNil)(u)&&(d[a]=u),d}t.getStyle=i;function a(e){return(0,r.deepMix)({},{fill:`#CCD6EC`,fillOpacity:.3},(0,r.get)(e,[`background`,`style`]))}t.getBackgroundRectStyle=a})),UM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRectWithCornerRadius=t.getFunnelPath=t.getIntervalRectPath=t.getBackgroundRectPath=t.parseRadius=t.getRectPath=t.getRectPoints=void 0;var n=(J(),e(q)),r=oE();function i(e){var t=e.x,r=e.y,i=e.y0,a=e.size,o,s;(0,n.isArray)(r)?(o=r[0],s=r[1]):(o=i,s=r);var c,l;(0,n.isArray)(t)?(c=t[0],l=t[1]):(c=t-a/2,l=t+a/2);var u=[{x:c,y:o},{x:c,y:s}];return u.push({x:l,y:s},{x:l,y:o}),u}t.getRectPoints=i;function a(e,t){t===void 0&&(t=!0);var n=[],r=e[0];n.push([`M`,r.x,r.y]);for(var i=1,a=e.length;it&&(r=r?t/(1+i/r):0,i=t-r),a+o>t&&(a=a?t/(1+o/a):0,o=t-a),[r||0,i||0,a||0,o||0]}t.parseRadius=o;function s(e,t,i){var a=[];if(i.isRect){var s=i.isTransposed?{x:i.start.x,y:t[0].y}:{x:t[0].x,y:i.start.y},c=i.isTransposed?{x:i.end.x,y:t[2].y}:{x:t[3].x,y:i.end.y},l=(0,n.get)(e,[`background`,`style`,`radius`]);if(l){var u=i.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,d=i.isTransposed?i.getWidth():i.getHeight(),f=o(l,Math.min(u,d)),p=f[0],m=f[1],h=f[2],g=f[3];a.push([`M`,s.x,c.y+p]),p!==0&&a.push([`A`,p,p,0,0,1,s.x+p,c.y]),a.push([`L`,c.x-m,c.y]),m!==0&&a.push([`A`,m,m,0,0,1,c.x,c.y+m]),a.push([`L`,c.x,s.y-h]),h!==0&&a.push([`A`,h,h,0,0,1,c.x-h,s.y]),a.push([`L`,s.x+g,s.y]),g!==0&&a.push([`A`,g,g,0,0,1,s.x,s.y-g])}else a.push([`M`,s.x,s.y]),a.push([`L`,c.x,s.y]),a.push([`L`,c.x,c.y]),a.push([`L`,s.x,c.y]),a.push([`L`,s.x,s.y]);a.push([`z`])}if(i.isPolar){var _=i.getCenter(),v=(0,r.getAngle)(e,i),y=v.startAngle,b=v.endAngle;if(i.type!==`theta`&&!i.isTransposed)a=(0,r.getSectorPath)(_.x,_.y,i.getRadius(),y,b);else{var x=function(e){return e**2},p=Math.sqrt(x(_.x-t[0].x)+x(_.y-t[0].y)),m=Math.sqrt(x(_.x-t[2].x)+x(_.y-t[2].y));a=(0,r.getSectorPath)(_.x,_.y,p,i.startAngle,i.endAngle,m)}}return a}t.getBackgroundRectPath=s;function c(e,t,n){var r=n.getWidth(),i=n.getHeight(),o=n.type===`rect`,s=[],c=(e[2].x-e[1].x)/2,l=n.isTransposed?c*i/r:c*r/i;return t===`round`?(o?(s.push([`M`,e[0].x,e[0].y+l]),s.push([`L`,e[1].x,e[1].y-l]),s.push([`A`,c,c,0,0,1,e[2].x,e[2].y-l]),s.push([`L`,e[3].x,e[3].y+l]),s.push([`A`,c,c,0,0,1,e[0].x,e[0].y+l])):(s.push([`M`,e[0].x,e[0].y]),s.push([`L`,e[1].x,e[1].y]),s.push([`A`,c,c,0,0,1,e[2].x,e[2].y]),s.push([`L`,e[3].x,e[3].y]),s.push([`A`,c,c,0,0,1,e[0].x,e[0].y])),s.push([`z`])):s=a(e),s}t.getIntervalRectPath=c;function l(e,t,r){var i=[];return(0,n.isNil)(t)?r?i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],[`Z`]):i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,e[2].x,e[2].y],[`L`,e[3].x,e[3].y],[`Z`]):i.push([`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`L`,t[1].x,t[1].y],[`L`,t[0].x,t[0].y],[`Z`]),i}t.getFunnelPath=l;function u(e,t,n){var r,i,a,s,c=e[0],l=e[1],u=e[2],d=e[3],f=[0,0,0,0],p=f[0],m=f[1],h=f[2],g=f[3];c.ye[1].x?(d=e[0],c=e[1],l=e[2],u=e[3],a=o(n,Math.min(d.x-c.x,c.y-l.y)),p=a[0],g=a[1],h=a[2],m=a[3]):(s=o(n,Math.min(d.x-c.x,c.y-l.y)),m=s[0],h=s[1],g=s[2],p=s[3]));var _=[];return _.push([`M`,l.x,l.y+p]),p!==0&&_.push([`A`,p,p,0,0,1,l.x+p,l.y]),_.push([`L`,u.x-m,u.y]),m!==0&&_.push([`A`,m,m,0,0,1,u.x,u.y+m]),_.push([`L`,d.x,d.y-h]),h!==0&&_.push([`A`,h,h,0,0,1,d.x-h,d.y]),_.push([`L`,c.x+g,c.y]),g!==0&&_.push([`A`,g,g,0,0,1,c.x,c.y-g]),_.push([`L`,l.x,l.y+p]),_.push([`z`]),_}t.getRectWithCornerRadius=u})),WM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=iO(),a=HM(),o=UM(),s=(0,r.registerShapeFactory)(`interval`,{defaultShapeType:`rect`,getDefaultPoints:function(e){return(0,o.getRectPoints)(e)}});(0,r.registerShape)(`interval`,`rect`,{draw:function(e,t){var r=(0,a.getStyle)(e,!1,!0),s=t,c=e?.background;if(c){s=t.addGroup();var l=(0,a.getBackgroundRectStyle)(e),u=(0,o.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},l),{path:u}),zIndex:-1,name:i.BACKGROUND_SHAPE})}var d=r.radius&&this.coordinate.isRect?(0,o.getRectWithCornerRadius)(this.parsePoints(e.points),this.coordinate,r.radius):this.parsePath((0,o.getIntervalRectPath)(e.points,r.lineCap,this.coordinate)),f=s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:d}),name:`interval`});return c?s:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:`circle`,style:{r:4.5,fill:t}}:{symbol:`square`,style:{r:4,fill:t}}}}),t.default=s})),GM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDefaultSize=void 0;var n=(J(),e(q)),r=lE();function i(e,t){var r=e.length,i=e;(0,n.isString)(i[0])&&(i=e.map(function(e){return t.translate(e)}));for(var a=i[1]-i[0],o=2;os&&(a=s)}return a}function a(e,t){if(t){var r=(0,n.flatten)(e);return(0,n.valuesOfKey)(r,t).length}return e.length}function o(e){var t=e.theme,o=e.coordinate,s=e.getXScale(),c=s.values,l=e.beforeMappingData,u=c.length,d=(0,r.getXDimensionLength)(e.coordinate),f=e.intervalPadding,p=e.dodgePadding,m=e.maxColumnWidth||t.maxColumnWidth,h=e.minColumnWidth||t.minColumnWidth,g=e.columnWidthRatio||t.columnWidthRatio,_=e.multiplePieWidthRatio||t.multiplePieWidthRatio,v=e.roseWidthRatio||t.roseWidthRatio;if(s.isLinear&&c.length>1){c.sort();var y=i(c,s);u=(s.max-s.min)/y,c.length>u&&(u=c.length)}var b=s.range,x=1/u,S=1;if(o.isPolar?S=o.isTransposed&&u>1?_:v:(s.isLinear&&(x*=b[1]-b[0]),S=g),!(0,n.isNil)(f)&&f>=0){var C=f/d;x=(1-(u-1)*C)/u}else x*=S;if(e.getAdjust(`dodge`)){var w=e.getAdjust(`dodge`).dodgeBy,T=a(l,w);if(!(0,n.isNil)(p)&&p>=0){var E=p/d;x=(x-E*(T-1))/T}else !(0,n.isNil)(f)&&f>=0&&(x*=S),x/=T;x=x>=0?x:0}if(!(0,n.isNil)(m)&&m>=0){var D=m/d;x>D&&(x=D)}if(!(0,n.isNil)(h)&&h>=0){var O=h/d;x{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=(0,n.__importDefault)(fO());WM();var o=GM(),s=uE();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`interval`,n.shapeType=`interval`,n.generatePoints=!0,n.background=t.background,n}return t.prototype.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t),r,a=this.getAttribute(`size`);if(a){r=this.getAttributeValues(a,t)[0];var s=this.coordinate,c=(0,i.getXDimensionLength)(s);r/=c}else this.defaultSize||=(0,o.getDefaultSize)(this),r=this.defaultSize;return n.size=r,n},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t=this.getYScale();if(this.coordinate.type===`theta`)t.change({nice:!1,min:0,max:(0,s.getMaxScale)(t)});else{var n=this.scaleDefs,i=t.field,a=t.min,o=t.max;t.type!==`time`&&(a>0&&!(0,r.get)(n,[i,`min`])&&t.change({min:0}),o<=0&&!(0,r.get)(n,[i,`max`])&&t.change({max:0}))}},t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.background=this.background,n},t}(a.default)})),qM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelValueDir=function(e){var t=`y`,n=e.points;return n[0][t]<=n[2][t]?1:-1},t.prototype.getLabelOffsetPoint=function(t,r,i,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,r,i),c=this.getCoordinate(),l=c.isTransposed?`x`:`y`,u=this.getLabelValueDir(t.mappingData);return s=(0,n.__assign)((0,n.__assign)({},s),(o={},o[l]=s[l]*u,o)),c.isReflect(`x`)&&(s=(0,n.__assign)((0,n.__assign)({},s),{x:s.x*-1})),c.isReflect(`y`)&&(s=(0,n.__assign)((0,n.__assign)({},s),{y:s.y*-1})),s},t.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),i=t.theme;return(0,r.deepMix)({},n,i.labels,e.position===`middle`?{offset:0}:{},e)},t.prototype.setLabelPosition=function(e,t,n,i){var a=this.getCoordinate(),o=a.isTransposed,s=t.points,c=a.convert(s[0]),l=a.convert(s[2]),u=this.getLabelValueDir(t),d,f,p,m,h=(0,r.isArray)(t.shape)?t.shape[0]:t.shape;if(h===`funnel`||h===`pyramid`){var g=(0,r.get)(t,`nextPoints`),_=(0,r.get)(t,`points`);if(g){var v=a.convert(_[0]),y=a.convert(_[1]),b=a.convert(g[0]),x=a.convert(g[1]);o?(d=Math.min(b.y,v.y),p=Math.max(b.y,v.y),f=(y.x+x.x)/2,m=(v.x+b.x)/2):(d=Math.min((y.y+x.y)/2,(v.y+b.y)/2),p=Math.max((y.y+x.y)/2,(v.y+b.y)/2),f=x.x,m=v.x)}else d=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,m=c.x}else d=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,m=c.x;switch(i){case`right`:e.x=f,e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,u>0?`left`:`right`);break;case`left`:e.x=m,e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,u>0?`left`:`right`);break;case`bottom`:o&&(e.x=(f+m)/2),e.y=p,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,u>0?`bottom`:`top`);break;case`middle`:o&&(e.x=(f+m)/2),e.y=(d+p)/2,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,`middle`);break;case`top`:o&&(e.x=(f+m)/2),e.y=d,e.textAlign=(0,r.get)(e,`textAlign`,`center`),e.textBaseline=(0,r.get)(e,`textBaseline`,u>0?`bottom`:`top`);break;default:break}},t}((0,n.__importDefault)(_O()).default)})),JM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=lE(),o=(0,n.__importDefault)(_O()),s=Math.PI/2;t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=0;if((0,r.isNumber)(e))n=e;else if((0,r.isString)(e)&&e.indexOf(`%`)!==-1){var i=t.getRadius();t.innerRadius>0&&(i*=1-t.innerRadius),n=parseFloat(e)*.01*i}return n},t.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),a=this.geometry.getYScale();return(0,r.map)(i,function(e){if(e&&a){var t=a.scale((0,r.get)(e.data,a.field));return(0,n.__assign)((0,n.__assign)({},e),{percent:t})}return e})},t.prototype.getLabelAlign=function(e){var t=this.getCoordinate(),n;if(e.labelEmit)n=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?`left`:`right`;else if(!t.isTransposed)n=`center`;else{var r=t.getCenter(),i=e.offset;n=Math.abs(e.x-r.x)<1?`center`:e.angle>Math.PI||e.angle<=0?i>0?`left`:`right`:i>0?`right`:`left`}return n},t.prototype.getLabelPoint=function(e,t,n){var r=1,i,a=e.content[n];this.isToMiddle(t)?i=this.getMiddlePoint(t.points):(e.content.length===1&&n===0?n=1:n===0&&(r=-1),i=this.getArcPoint(t,n));var o=e.offset*r,s=this.getPointAngle(i),c=e.labelEmit,l=this.getCirclePoint(s,o,i,c);return l.r===0?l.content=``:(l.content=a,l.angle=s,l.color=t.color),l.rotate=e.autoRotate?this.getLabelRotate(s,o,c):e.rotate,l.start={x:i.x,y:i.y},l},t.prototype.getArcPoint=function(e,t){return t===void 0&&(t=0),!(0,r.isArray)(e.x)&&!(0,r.isArray)(e.y)?{x:e.x,y:e.y}:{x:(0,r.isArray)(e.x)?e.x[t]:e.x,y:(0,r.isArray)(e.y)?e.y[t]:e.y}},t.prototype.getPointAngle=function(e){return(0,a.getAngleByPoint)(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,r,a){var o=this.getCoordinate(),s=o.getCenter(),c=(0,i.getDistanceToCenter)(o,r);if(c===0)return(0,n.__assign)((0,n.__assign)({},s),{r:c});var l=e;return o.isTransposed&&c>t&&!a?l=e+Math.asin(t/(2*c))*2:c+=t,{x:s.x+c*Math.cos(l),y:s.y+c*Math.sin(l),r:c}},t.prototype.getLabelRotate=function(e,t,n){var r=e+s;return n&&(r-=s),r&&(r>s?r-=Math.PI:r<-s&&(r+=Math.PI)),r},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),n=e.length,i={x:0,y:0};return(0,r.each)(e,function(e){i.x+=e.x,i.y+=e.y}),i.x/=n,i.y/=n,i=t.convert(i),i},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(o.default)})),YM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=lE(),a=oE();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout=`distribute`,t}return t.prototype.getDefaultLabelCfg=function(t,n){var i=e.prototype.getDefaultLabelCfg.call(this,t,n);return(0,r.deepMix)({},i,(0,r.get)(this.geometry.theme,`pieLabels`,{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,n){var r;return t<0&&(r=e,r>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},t.prototype.getLabelAlign=function(e){var t=this.getCoordinate().getCenter(),n=e.angle<=Math.PI/2&&e.x>=t.x?`left`:`right`;return e.offset<=0&&(n=n===`right`?`left`:`right`),n},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t=this.getCoordinate(),n={x:(0,r.isArray)(e.x)?e.x[0]:e.x,y:e.y[0]},a={x:(0,r.isArray)(e.x)?e.x[1]:e.x,y:e.y[1]},o,s=(0,i.getAngleByPoint)(t,n);if(e.points&&e.points[0].y===e.points[1].y)o=s;else{var c=(0,i.getAngleByPoint)(t,a);s>=c&&(c+=Math.PI*2),o=s+(c-s)/2}return o},t.prototype.getCirclePoint=function(e,t){var r=this.getCoordinate(),i=r.getCenter(),o=r.getRadius()+t;return(0,n.__assign)((0,n.__assign)({},(0,a.polarToCartesian)(i.x,i.y,o,e)),{angle:e,r:o})},t}((0,n.__importDefault)(JM()).default)})),XM=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(gM()),r=t(vE()),i=t(CM());e.default=(function(e,t,a,o){if(e===null){(0,n.default)(a,function(e){var n=t[e];n!==void 0&&((0,r.default)(n)||(n=[n]),o(n,e))});return}var s,c;(0,n.default)(a,function(n){s=e[n],c=t[n],(0,i.default)(c,s)||((0,r.default)(c)||(c=[c]),o(c,n))})})})),ZM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.distribute=void 0;var n=(J(),e(q)),r=oE(),i=4;function a(e,t,r,i,a,o){var s=!0,c=i.start,l=i.end,u=Math.min(c.y,l.y),d=Math.abs(c.y-l.y),f,p=0,m=Number.MIN_VALUE,h=t.map(function(e){return e.y>p&&(p=e.y),e.yd&&(d=p-u);s;)for(h.forEach(function(e){var t=(Math.min.apply(m,e.targets)+Math.max.apply(m,e.targets))/2;e.pos=Math.min(Math.max(m,t-e.size/2),d-e.size)}),s=!1,f=h.length;f--;)if(f>0){var g=h[f-1],_=h[f];g.pos+g.size>_.pos&&(g.size+=_.size,g.targets=g.targets.concat(_.targets),g.pos+g.size>d&&(g.pos=d-g.size),h.splice(f,1),s=!0)}f=0,h.forEach(function(e){var n=u+r/2;e.targets.forEach(function(){t[f].y=e.pos+n,n+=r,f++})});for(var v={},y=0,b=e;y0){var f=14,p=(u+c)*2+f*2,m={start:l.start,end:l.end},h=[[],[]];e.forEach(function(e){e&&(e.textAlign===`right`?h[0].push(e):h[1].push(e))}),h.forEach(function(e,n){var r=p/f;e.length>r&&(e.sort(function(e,t){return t[`..percent`]-e[`..percent`]}),e.splice(r,e.length-r)),e.sort(function(e,t){return e.y-t.y}),a(t,e,f,m,d,n)})}(0,n.each)(e,function(e){if(e&&e.labelLine){var t=e.offset,a=e.angle,o=(0,r.polarToCartesian)(d.x,d.y,u,a),s=(0,r.polarToCartesian)(d.x,d.y,u+t/2,a),c=e.x+(0,n.get)(e,`offsetX`,0),l=e.y+(0,n.get)(e,`offsetY`,0),f={x:c-Math.cos(a)*i,y:l-Math.sin(a)*i};(0,n.isObject)(e.labelLine)||(e.labelLine={}),e.labelLine.path=[`M `+o.x,o.y+` Q`+s.x,s.y+` `+f.x,f.y].join(`,`)}})}}t.distribute=o})),QM=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.limitInCanvas=void 0;var n=(J(),e(q)),r=pO();function i(e,t,i,a){(0,n.each)(t,function(e){var t=a.minX,n=a.minY,i=a.maxX,o=a.maxY,s=e.getCanvasBBox(),c=s.minX,l=s.minY,u=s.maxX,d=s.maxY,f=s.x,p=s.y,m=s.width,h=s.height,g=f,_=p;(ci?g=i-m:u>i&&(g-=u-i),l>o?_=o-h:d>o&&(_-=d-o),(g!==f||_!==p)&&(0,r.translate)(e,g-f,_-p)})}t.limitInCanvas=i})),$M=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.limitInShape=void 0;var n=(J(),e(q));function r(e,t,r,i){(0,n.each)(t,function(e,t){var n=e.getCanvasBBox(),i=r[t].getBBox();(n.minXi.maxX||n.maxY>i.maxY)&&e.remove(!0)})}t.limitInShape=r})),eN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.overlap=t.fixedOverlap=void 0;var n=(J(),e(q)),r=100,i=function(){function e(e){e===void 0&&(e={}),this.bitmap={};var t=e.xGap,n=t===void 0?1:t,r=e.yGap,i=r===void 0?8:r;this.xGap=n,this.yGap=i}return e.prototype.hasGap=function(e){for(var t=!0,n=this.bitmap,r=Math.round(e.minX),i=Math.round(e.maxX),a=Math.round(e.minY),o=Math.round(e.maxY),s=r;s<=i;s+=1){if(!n[s]){n[s]={};continue}if(s===r||s===i){for(var c=a;c<=o;c++)if(n[s][c]){t=!1;break}}else if(n[s][a]||n[s][o]){t=!1;break}}return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),i=Math.round(e.minY),a=Math.round(e.maxY),o=n;o<=r;o+=1)t[o]||(t[o]={});for(var o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)t[o][s]=!0;t[o][a]=!0}if(this.yGap!==1)for(var o=i;o<=a;o+=1)t[n][o]=!0,t[r][o]=!0;if(this.xGap!==1)for(var o=n;o<=r;o+=1)t[o][i]=!0,t[o][a]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function a(e,t,n){n===void 0&&(n=r);var i=-1,a=e.attr(),o=a.x,s=a.y,c=e.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),u,d=-i,f=0,p=0,m=function(e){var t=e*.1;return[t*Math.cos(t),t*Math.sin(t)]};if(t.hasGap(c))return t.fillGap(c),!0;for(var h=!1,g=0,_={};Math.min(Math.abs(f),Math.abs(p)){var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(0,n.__importDefault)(kD()),a=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=``,t}return t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,n=(0,a.getElementsByState)(e,this.stateName);(0,r.each)(n,function(e){t.setElementState(e,!1)})},t}(i.default)})),rN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND(),a=(0,n.__importDefault)(nN());function o(e){return(0,r.get)(e.get(`delegateObject`),`item`)}t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=[`unchecked`],t}return t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter(function(n){return t.hasState(e,n)}).length},t.prototype.setStateByComponent=function(e,t,n){var r=this.context.view,a=e.get(`field`),o=(0,i.getElements)(r);this.setElementsStateByItem(o,a,t,n)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,n){var a=this.context.view,o=(0,i.getScaleByField)(a,t),s=(0,i.getElementValue)(e,t);return!(0,r.isNil)(s)&&n.name===o.getText(s)},t.prototype.setElementsStateByItem=function(e,t,n,i){var a=this;(0,r.each)(e,function(e){a.isMathItem(e,t,n)&&e.setState(a.stateName,i)})},t.prototype.setStateEnable=function(e){var t=(0,i.getCurrentElement)(this.context);if(t)(0,i.isElementChange)(this.context)&&this.setStateByElement(t,e);else{var n=(0,i.getDelegationObject)(this.context);if((0,i.isList)(n)){var r=n.item,a=n.component;if(r&&a&&!this.isItemIgnore(r,a)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(a,r,e)}}}},t.prototype.toggle=function(){var e=(0,i.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(a.default)})),iN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(rN()).default)})),aN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(kD()),i=ND(),a=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return t.prototype.getColorScale=function(e,t){var n=t.geometry.getAttribute(`color`);return n?e.getScaleByField(n.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var n=this.context.view.getCoordinate().isTransposed,r=e.shape.getCanvasBBox(),i=t.shape.getCanvasBBox();return n?[[`M`,r.minX,r.minY],[`L`,i.minX,i.maxY],[`L`,i.maxX,i.maxY],[`L`,r.maxX,r.minY],[`Z`]]:[[`M`,r.maxX,r.minY],[`L`,i.minX,i.minY],[`L`,i.minX,i.maxY],[`L`,r.maxX,r.maxY],[`Z`]]},t.prototype.addLinkShape=function(e,t,r,i){var o={opacity:.4,fill:t.shape.attr(`fill`)};e.addShape({type:`path`,attrs:(0,n.__assign)((0,n.__assign)({},(0,a.deepMix)({},o,(0,a.isFunction)(i)?i(o,t):i)),{path:this.getLinkPath(t,r)})})},t.prototype.linkByElement=function(e,t){var n=this,r=this.context.view,o=this.getColorScale(r,e);if(o){var s=(0,i.getElementValue)(e,o.field);if(!this.cache[s]){var c=(0,i.getElementsByField)(r,o.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var u=c.length;(0,a.each)(c,function(e,r){if(r{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},t.prototype.getIntersectElements=function(){var e=null;if((0,i.isMask)(this.context))e=(0,i.getMaskedElements)(this.context,10);else{var t=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!t||!n)return;var r={minX:Math.min(t.x,n.x),minY:Math.min(t.y,n.y),maxX:Math.max(t.x,n.x),maxY:Math.max(t.y,n.y)},a=this.context.view;e=(0,i.getIntersectElements)(a,r)}return e},t.prototype.setStateEnable=function(e){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(e);else{var t=(0,i.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,e):this.setElementsState(n,e,t):this.clear()}},t.prototype.setSiblingsStateByRecord=function(e,t){var n=this,a=this.context.view,o=(0,i.getSilbings)(a),s=e.map(function(e){return e.getModel().data}),c=a.getXScale().field,l=a.getYScales()[0].field;(0,r.each)(o,function(e){var r=(0,i.getElements)(e),a=r.filter(function(e){var t=e.getModel().data;return(0,i.isInRecords)(s,t,c,l)});n.setElementsState(a,t,r)})},t.prototype.setSiblingsState=function(e){var t=this,n=this.context.view,a=(0,i.getSilbings)(n);(0,i.isMask)(this.context)&&(0,r.each)(a,function(n){var r=(0,i.getElements)(n),a=(0,i.getSiblingMaskElements)(t.context,n,10);a&&a.length?t.setElementsState(a,e,r):t.clearViewState(n)})},t.prototype.setElementsState=function(e,t,n){var i=this;(0,r.each)(n,function(n){e.includes(n)?i.setElementState(n,t):i.setElementState(n,!1)})},t.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},t.prototype.clear=function(){var e=this,t=this.context.view;if(this.effectSiblings){var n=(0,i.getSilbings)(t);(0,r.each)(n,function(t){e.clearViewState(t)})}else this.clearViewState(t)},t}((0,n.__importDefault)(nN()).default)})),sN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(oN()).default)})),cN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setStateEnable=function(e){var t=(0,r.getCurrentElement)(this.context);if(t){if(!(0,r.isElementChange)(this.context))return;e?(this.clear(),this.setElementState(t,!0)):this.hasState(t)&&this.setElementState(t,!1)}},t.prototype.toggle=function(){var e=(0,r.getCurrentElement)(this.context);if(e){var t=this.hasState(e);t||this.clear(),this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}((0,n.__importDefault)(nN()).default)})),lN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.active=function(){this.setState()},t}((0,n.__importDefault)(cN()).default)})),uN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setHighlightBy=t.clearHighlight=void 0;var n=(J(),e(q)),r=ND(),i=`inactive`,a=`active`;function o(e){var t=(0,r.getElements)(e);(0,n.each)(t,function(e){e.hasState(a)&&e.setState(a,!1),e.hasState(i)&&e.setState(i,!1)})}t.clearHighlight=o;function s(e,t,r){(0,n.each)(e,function(e){t(e)?(e.hasState(i)&&e.setState(i,!1),e.setState(a,r)):(e.hasState(a)&&e.setState(a,!1),e.setState(i,r))})}t.setHighlightBy=s})),dN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.STATUS_ACTIVE=t.STATUS_UNACTIVE=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=ND(),a=uN(),o=(0,n.__importDefault)(rN()),s=Y();t.STATUS_UNACTIVE=s.ELEMENT_STATE.INACTIVE,t.STATUS_ACTIVE=s.ELEMENT_STATE.ACTIVE,t.default=function(e){(0,n.__extends)(o,e);function o(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName=t.STATUS_ACTIVE,n}return o.prototype.setElementsStateByItem=function(e,t,n,r){var i=this;this.setHighlightBy(e,function(e){return i.isMathItem(e,t,n)},r)},o.prototype.setElementHighlight=function(e,n){n(e)?(e.hasState(t.STATUS_UNACTIVE)&&e.setState(t.STATUS_UNACTIVE,!1),e.setState(t.STATUS_ACTIVE,!0)):e.hasState(t.STATUS_ACTIVE)||e.setState(t.STATUS_UNACTIVE,!0)},o.prototype.setHighlightBy=function(e,n,a){var o=this;if(a)(0,r.each)(e,function(e){o.setElementHighlight(e,n)});else{var s=(0,i.getElementsByState)(this.context.view,t.STATUS_ACTIVE),c=!0;(0,r.each)(s,function(e){if(!n(e))return c=!1,!1}),c?this.clear():(0,r.each)(e,function(e){n(e)&&(e.hasState(t.STATUS_ACTIVE)&&e.setState(t.STATUS_ACTIVE,!1),e.setState(t.STATUS_UNACTIVE,!0))})}},o.prototype.setElementState=function(e,t){var n=this.context.view,r=(0,i.getElements)(n);this.setHighlightBy(r,function(t){return e===t},t)},o.prototype.highlight=function(){this.setState()},o.prototype.clear=function(){var e=this.context.view;(0,a.clearHighlight)(e)},o}(o.default)})),fN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND(),i=(0,n.__importStar)(dN());t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setElementHighlight=function(e,t){t(e)?(e.hasState(i.STATUS_UNACTIVE)&&e.setState(i.STATUS_UNACTIVE,!1),e.setState(i.STATUS_ACTIVE,!0)):(e.setState(i.STATUS_UNACTIVE,!0),e.hasState(i.STATUS_ACTIVE)&&e.setState(i.STATUS_ACTIVE,!1))},t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=n.getXScale(),a=(0,r.getElementValue)(e,i.field),o=(0,r.getElements)(n),s=o.filter(function(e){return(0,r.getElementValue)(e,i.field)===a});this.setHighlightBy(o,function(e){return s.includes(e)},t)},t.prototype.toggle=function(){var e=(0,r.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setStateByElement(e,!t)}},t}(i.default)})),pN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setStateByElement=function(e,t){var n=this.context.view,i=e.geometry.getAttribute(`color`);if(i){var a=n.getScaleByField(i.getFields()[0]),o=(0,r.getElementValue)(e,a.field),s=(0,r.getElements)(n),c=s.filter(function(e){return(0,r.getElementValue)(e,a.field)===o});this.setHighlightBy(s,function(e){return c.includes(e)},t)}},t}((0,n.__importDefault)(dN()).default)})),mN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=ND(),i=uN();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){var n=this.context.view,a=(0,r.getElements)(n);(0,i.setHighlightBy)(a,function(t){return e===t},t)},t.prototype.clear=function(){var e=this.context.view;(0,i.clearHighlight)(e)},t}((0,n.__importDefault)(cN()).default)})),hN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var n=(R(),e(F)),r=nO(),i=uN(),a=(0,n.__importDefault)(oN()),o;(function(e){e.BEFORE_HIGHLIGHT=`element-range-highlight:beforehighlight`,e.AFTER_HIGHLIGHT=`element-range-highlight:afterhighlight`,e.BEFORE_CLEAR=`element-range-highlight:beforeclear`,e.AFTER_CLEAR=`element-range-highlight:afterclear`})(o||={}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=o,t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`active`,t}return t.prototype.clearViewState=function(e){(0,i.clearHighlight)(e)},t.prototype.highlight=function(){var e=this.context,t=e.view,n={view:t,event:e.event,highlightElements:this.getIntersectElements()};t.emit(o.BEFORE_HIGHLIGHT,r.Event.fromData(t,o.BEFORE_HIGHLIGHT,n)),this.setState(),t.emit(o.AFTER_HIGHLIGHT,r.Event.fromData(t,o.AFTER_HIGHLIGHT,n))},t.prototype.clear=function(){var t=this.context.view;t.emit(o.BEFORE_CLEAR,r.Event.fromData(t,o.BEFORE_CLEAR,{})),e.prototype.clear.call(this),t.emit(o.AFTER_CLEAR,r.Event.fromData(t,o.AFTER_CLEAR,{}))},t.prototype.setElementsState=function(e,t,n){(0,i.setHighlightBy)(n,function(t){return e.indexOf(t)>=0},t)},t}(a.default)})),gN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(rN()).default)})),_N=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(cN()).default)})),vN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=`selected`,t}return t.prototype.selected=function(){this.setState()},t}((0,n.__importDefault)(oN()).default)})),yN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F));t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor(`default`)},t.prototype.pointer=function(){this.setCursor(`pointer`)},t.prototype.move=function(){this.setCursor(`move`)},t.prototype.crosshair=function(){this.setCursor(`crosshair`)},t.prototype.wait=function(){this.setCursor(`wait`)},t.prototype.help=function(){this.setCursor(`help`)},t.prototype.text=function(){this.setCursor(`text`)},t.prototype.eResize=function(){this.setCursor(`e-resize`)},t.prototype.wResize=function(){this.setCursor(`w-resize`)},t.prototype.nResize=function(){this.setCursor(`n-resize`)},t.prototype.sResize=function(){this.setCursor(`s-resize`)},t.prototype.neResize=function(){this.setCursor(`ne-resize`)},t.prototype.nwResize=function(){this.setCursor(`nw-resize`)},t.prototype.seResize=function(){this.setCursor(`se-resize`)},t.prototype.swResize=function(){this.setCursor(`sw-resize`)},t.prototype.nsResize=function(){this.setCursor(`ns-resize`)},t.prototype.ewResize=function(){this.setCursor(`ew-resize`)},t}((0,n.__importDefault)(kD()).default)})),bN=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(iN()),r=t(aN()),i=t(sN()),a=t(lN()),o=t(dN()),s=t(fN()),c=t(pN()),l=t(mN()),u=t(hN()),d=t(gN()),f=t(_N()),p=t(vN()),m=t(yN()),h=HA();(0,h.registerAction)(`cursor`,m.default),(0,h.registerAction)(`element-active`,n.default),(0,h.registerAction)(`element-single-active`,a.default),(0,h.registerAction)(`element-range-active`,i.default),(0,h.registerAction)(`element-highlight`,o.default),(0,h.registerAction)(`element-highlight-by-x`,s.default),(0,h.registerAction)(`element-highlight-by-color`,c.default),(0,h.registerAction)(`element-single-highlight`,l.default),(0,h.registerAction)(`element-range-highlight`,u.default),(0,h.registerAction)(`element-sibling-highlight`,u.default,{effectSiblings:!0,effectByRecord:!0}),(0,h.registerAction)(`element-selected`,d.default),(0,h.registerAction)(`element-single-selected`,f.default),(0,h.registerAction)(`element-range-selected`,p.default),(0,h.registerAction)(`element-link-by-color`,r.default),(0,h.registerInteraction)(`element-active`,{start:[{trigger:`element:mouseenter`,action:`element-active:active`}],end:[{trigger:`element:mouseleave`,action:`element-active:reset`}]}),(0,h.registerInteraction)(`element-selected`,{start:[{trigger:`element:click`,action:`element-selected:toggle`}]}),(0,h.registerInteraction)(`element-highlight`,{start:[{trigger:`element:mouseenter`,action:`element-highlight:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight:reset`}]}),(0,h.registerInteraction)(`element-highlight-by-x`,{start:[{trigger:`element:mouseenter`,action:`element-highlight-by-x:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight-by-x:reset`}]}),(0,h.registerInteraction)(`element-highlight-by-color`,{start:[{trigger:`element:mouseenter`,action:`element-highlight-by-color:highlight`}],end:[{trigger:`element:mouseleave`,action:`element-highlight-by-color:reset`}]})})),xN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(a()),i=n(bM()),o=n(_M()),s=n(_O()),c=n(hE()),l=HA(),u=n(XM()),d=n(SM());tN(),bN();var f=n(EM());(0,l.registerGeometryLabel)(`base`,s.default);var p=[`line`,`area`],m=function(){function e(){this.config={}}return e.prototype.setView=function(e){this.view=e,this.rootChart=e.rootChart||e},e.prototype.createGeomInstance=function(e,t){this.geom=this.view[e](t);var n=t.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(t){var r=this.getXScale();return n!==!1&&t&&t[0]&&p.includes(e)&&[`time`,`timeCat`].includes(r.type)&&this.sort(t),this.__beforeMapping(t)},this.GemoBaseClassName=e},e.prototype.update=function(e,t){var n=this;this.geom||(this.setView(t.context),this.createGeomInstance(t.GemoBaseClassName,e),this.interactionTypes=t.interactionTypes),(0,u.default)(this.config,e,[`position`,`shape`,`color`,`label`,`style`,`tooltip`,`size`,`animate`,`state`,`customInfo`],function(e,t){var r;(0,d.default)(!(t===`label`&&e[0]===!0),`label 值类型错误,应为false | LabelOption | FieldString`),(r=n.geom)[t].apply(r,e)}),(0,u.default)(this.config,e,[`adjust`],function(e,t){(0,i.default)(e[0])?n.geom[t](e[0]):n.geom[t](e)}),this.geom.state(e.state||{}),this.rootChart.on(`processElemens`,function(){(0,o.default)(e.setElements)&&e.setElements(n.geom.elements)}),(0,u.default)(this.config,e,this.interactionTypes,function(e,t){e[0]?n.rootChart.interaction(t):n.rootChart.removeInteraction(t)}),this.config=(0,f.default)(e)},e.prototype.destroy=function(){this.geom&&=(this.geom.destroy(),null),this.config={}},e}(),h=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.interactionTypes=[],n.geomHelper=new m,n}return n.prototype.componentWillUnmount=function(){this.geomHelper.destroy()},n.prototype.render=function(){var e=this;return this.geomHelper.update(this.props,this),r.default.createElement(r.default.Fragment,null,r.default.Children.map(this.props.children,function(t){return r.default.isValidElement(t)?r.default.cloneElement(t,{parentInstance:e.geomHelper.geom}):r.default.createElement(r.default.Fragment,null)}))},n}(r.default.Component);h.contextType=c.default,e.default=h})),SN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=HM(),a=UM();(0,r.registerShape)(`interval`,`funnel`,{getPoints:function(e){return e.size*=2,(0,a.getRectPoints)(e)},draw:function(e,t){var r=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!1));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:o}),name:`interval`})},getMarker:function(e){return{symbol:`square`,style:{r:4,fill:e.color}}}})})),CN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=iO(),a=HM(),o=UM();(0,r.registerShape)(`interval`,`hollow-rect`,{draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1),s=t,c=e?.background;if(c){s=t.addGroup();var l=(0,a.getBackgroundRectStyle)(e),u=(0,o.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},l),{path:u}),zIndex:-1,name:i.BACKGROUND_SHAPE})}var d=this.parsePath((0,o.getRectPath)(e.points)),f=s.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:d}),name:`interval`});return c?s:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:`circle`,style:{r:4.5,stroke:t,fill:null}}:{symbol:`square`,style:{r:4,stroke:t,fill:null}}}})})),wN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=HM(),o=UM(),s=sE();function c(e){var t=e.x,n=e.y,i=e.y0;return(0,r.isArray)(n)?n.map(function(e,n){return{x:(0,r.isArray)(t)?t[n]:t,y:e}}):[{x:t,y:i},{x:t,y:n}]}(0,i.registerShape)(`interval`,`line`,{getPoints:function(e){return c(e)},draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1,`lineWidth`),i=(0,s.omit)((0,n.__assign)({},r),[`fill`]),c=this.parsePath((0,o.getRectPath)(e.points,!1));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},i),{path:c}),name:`interval`})},getMarker:function(e){return{symbol:function(e,t,n){return[[`M`,e,t-n],[`L`,e,t+n]]},style:{r:5,stroke:e.color}}}})})),TN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=sO(),i=HM(),a=UM();(0,r.registerShape)(`interval`,`pyramid`,{getPoints:function(e){return e.size*=2,(0,a.getRectPoints)(e)},draw:function(e,t){var r=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!0));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:o}),name:`interval`})},getMarker:function(e){return{symbol:`square`,style:{r:4,fill:e.color}}}})})),EN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=HM();function o(e){var t=e.x,n=e.y,i=e.y0,a=e.size,o,s;(0,r.isArray)(n)?(o=n[0],s=n[1]):(o=i,s=n);var c=t+a/2,l=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:l,y:o},{x:c,y:o},{x:l,y:s},{x:c,y:s}]}function s(e){return[[`M`,e[0].x,e[0].y],[`L`,e[1].x,e[1].y],[`M`,e[2].x,e[2].y],[`L`,e[3].x,e[3].y],[`M`,e[4].x,e[4].y],[`L`,e[5].x,e[5].y]]}(0,i.registerShape)(`interval`,`tick`,{getPoints:function(e){return o(e)},draw:function(e,t){var r=(0,a.getStyle)(e,!0,!1),i=this.parsePath(s(e.points));return t.addShape(`path`,{attrs:(0,n.__assign)((0,n.__assign)({},r),{path:i}),name:`interval`})},getMarker:function(e){return{symbol:function(e,t,n){return[[`M`,e-n/2,t-n],[`L`,e+n/2,t-n],[`M`,e,t-n],[`L`,e,t+n],[`M`,e-n/2,t+n],[`L`,e+n/2,t+n]]},style:{r:5,stroke:e.color}}}})})),DN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(KM()),i=n(qM()),a=n(YM()),o=n(xN()),s=HA();(0,s.registerGeometry)(`Interval`,r.default),(0,s.registerGeometryLabel)(`interval`,i.default),(0,s.registerGeometryLabel)(`pie`,a.default),SN(),CN(),wN(),TN(),EN(),(0,s.registerInteraction)(`active-region`,{start:[{trigger:`plot:mousemove`,action:`active-region:show`}],end:[{trigger:`plot:mouseleave`,action:`active-region:hide`}]}),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.interactionTypes=[`active-region`,`element-highlight`],t.GemoBaseClassName=`interval`,t}return n}(o.default)})),ON=n(ce()),kN=n(de()),AN=n(UA()),jN=n(AM()),MN=n(VM()),NN=n(DN()),PN=n(le()),FN=n(ie()),Q=n(v()),$=o(),IN=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i,dodgeBy:a=`type`})=>{let o=N(e=>e.cti.ui.graphColors.columnChart),s=N(e=>e.cti.ui.generatePDF),c=N(e=>e.cti.ui.pdfSize),l=o,u=Object.keys((0,FN.default)(e,e=>e.type)),d=P.useCallback((e,t)=>{let n=Array.isArray(e)?t:e;return l[u.indexOf(n)]},[l,r,u]),f=u;f.includes(`undefined`)&&i&&(f=[i]),f=f.map((e,t)=>({id:t,name:e,marker:{style:{fill:d(e)},symbol:`square`}}));let p=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},m={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}};if(!e.length)return null;let h=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,padding:`auto`,scale:m,children:[(0,$.jsx)(MN.default,{custom:!0,items:f,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:p}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),(0,$.jsx)(NN.default,{adjust:[{type:`dodge`,dodgeBy:a,marginRatio:0}],color:[`type*name`,(e,t)=>d(e,t)],position:`${t}*${n}`})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:s===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(h,{width:e,height:t})}):(0,$.jsx)(h,{width:c.width,height:c.height})})};IN.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string};var LN=P.memo(IN,PN.default),RN=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e){return e==null}})),zN=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t=bM();e.default=(function(e,n,r){for(var i=0,a=t.default(n)?n.split(`.`):n;e&&i{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}e.default=t})),HN=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q));t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return t.prototype.show=function(){var e=this.context,t=e.event,n=e.view;if(!n.isTooltipLocked()){var i=this.timeStamp,a=+new Date,o=(0,r.get)(e.view.getOptions(),`tooltip.showDelay`,16);if(a-i>o){var s=this.location,c={x:t.x,y:t.y};(!s||!(0,r.isEqual)(s,c))&&this.showTooltip(n,c),this.timeStamp=a,this.location=c}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController(`tooltip`),n=this.context.event,r=n.clientX,i=n.clientY;t.isCursorEntered({x:r,y:i})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}((0,n.__importDefault)(kD()).default)})),WN=i((t=>{var n=t&&t.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.registerConnector=t.Connector=void 0;var i=jD(),a=r(UN()),o=(J(),e(q)),s=HA(),c={},l=function(){function e(e){this.cfg={shared:!0},this.chartMap={},this.state={},this.id=(0,o.uniqueId)(`bx-action`),this.type=e||`tooltip`}return e.prototype.connect=function(e,t,n){return this.chartMap[e]={chart:t,pointFinder:n},t.interaction(`connect-${this.type}-${this.id}`),this.type===`tooltip`&&this.cfg.shared&&(0,o.get)(t,[`options`,`tooltip`,`shared`])===void 0&&(0,o.set)(t,[`options`,`tooltip`,`shared`],!0),this},e.prototype.unConnect=function(e){this.chartMap[e].chart.removeInteraction(`connect-${this.type}-${this.id}`),delete this.chartMap[e]},e.prototype.destroy=function(){(0,i.unregisterAction)(`connect-${this.type}-${this.id}`)},e}();t.Connector=l;var u=function(){var e=new l(`tooltip`);return(0,s.registerAction)(`connect-tooltip-${e.id}`,function(t){n(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.CM=e,n}return r.prototype.showTooltip=function(e,t){var n=e.getTooltipItems(t)||t;(0,o.forIn)(this.CM.chartMap,function(e){var r=e.chart,i=e.pointFinder;if(!(r.destroyed||!r.visible))if(i){var a=i(n,r);a&&r.showTooltip(a)}else r.showTooltip(t)})},r.prototype.hideTooltip=function(){(0,o.forIn)(this.CM.chartMap,function(e){return e.chart.hideTooltip()})},r}(a.default)),(0,s.registerInteraction)(`connect-tooltip-${e.id}`,{start:[{trigger:`plot:mousemove`,action:`connect-tooltip-${e.id}:show`}],end:[{trigger:`plot:mouseleave`,action:`connect-tooltip-${e.id}:hide`}]}),e};t.registerConnector=function(e,t,n,r,i){var a=c[e];if(n===null&&a){a.unConnect(t);return}a?a.connect(t,n,i):(c[e]=u(),c[e].cfg.shared=!!r,c[e].connect(t,n,i))},t.default=u})),GN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getItemsOfView=void 0;var n=(R(),e(F)),r=(J(),e(q)),i=WD(),a=oE(),o=(0,n.__importDefault)(kD()),s={fill:`#CCD6EC`,opacity:.3};function c(e,t,n){var a=(0,i.findItemsFromViewRecurisive)(e,t,n);if(a.length){a=(0,r.flatten)(a);for(var o=0,s=a;o1){for(var h=a[0],g=Math.abs(t.y-h[0].y),_=0,v=a;_g.maxY&&(g=t)):(t.minXg.maxX&&(g=t)),_.x=Math.min(t.minX,_.minX),_.y=Math.min(t.minY,_.minY),_.width=Math.max(t.maxX,_.maxX)-_.x,_.height=Math.max(t.maxY,_.maxY)-_.y});var v=t.backgroundGroup,y=t.coordinateBBox,b=void 0;if(m.isRect){var x=t.getXScale(),S=e||{},C=S.appendRatio,w=S.appendWidth;(0,r.isNil)(w)&&(C=(0,r.isNil)(C)?x.isLinear?0:.25:C,w=m.isTransposed?C*g.height:C*h.width);var T=void 0,E=void 0,D=void 0,O=void 0;m.isTransposed?(T=y.minX,E=Math.min(g.minY,h.minY)-w,D=y.width,O=_.height+w*2):(T=Math.min(h.minX,g.minX)-w,E=y.minY,D=_.width+w*2,O=y.height),b=[[`M`,T,E],[`L`,T+D,E],[`L`,T+D,E+O],[`L`,T,E+O],[`Z`]]}else{var k=(0,r.head)(f),A=(0,r.last)(f),ee=(0,a.getAngle)(k.getModel(),m).startAngle,te=(0,a.getAngle)(A.getModel(),m).endAngle,j=m.getCenter(),M=m.getRadius(),ne=m.innerRadius*M;b=(0,a.getSectorPath)(j.x,j.y,M,ee,te,ne)}if(this.regionPath)this.regionPath.attr(`path`,b),this.regionPath.show();else{var re=(0,r.get)(e,`style`,s);this.regionPath=v.addShape({type:`path`,name:`active-region`,capture:!1,attrs:(0,n.__assign)((0,n.__assign)({},re),{path:b})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(o.default)})),KN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=ND();t.default=function(e){(0,n.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.showTooltip=function(e,t){var n=(0,i.getSilbings)(e);(0,r.each)(n,function(n){var r=(0,i.getSiblingPoint)(e,n,t);n.showTooltip(r)})},t.prototype.hideTooltip=function(e){var t=(0,i.getSilbings)(e);(0,r.each)(t,function(e){e.hideTooltip()})},t}((0,n.__importDefault)(UN()).default)})),qN=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=(nE(),e(tE)),a=(0,n.__importDefault)(kD()),o=rE();t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,n=+new Date;if(n-t>16){var i=this.location,a={x:e.x,y:e.y};(!i||!(0,r.isEqual)(i,a))&&this.showTooltip(a),this.timeStamp=n,this.location=a}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get(`tip`)){this.tooltip||this.renderTooltip();var r=t.get(`tip`);this.tooltip.update((0,n.__assign)({title:r},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,a=t.canvas,s={start:{x:0,y:0},end:{x:a.get(`width`),y:a.get(`height`)}},c=t.getTheme(),l=(0,r.get)(c,[`components`,`tooltip`,`domStyles`],{}),u=new o.HtmlTooltip({parent:a.get(`el`).parentNode,region:s,visible:!1,crosshairs:null,domStyles:(0,n.__assign)({},(0,r.deepMix)({},l,(e={},e[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":`50%`},e[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":`break-all`},e)))});u.init(),u.setCapture(!1),this.tooltip=u},t}(a.default)})),JN=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(GN()),r=t(KN()),i=t(UN()),a=t(qN()),o=HA();(0,o.registerAction)(`tooltip`,i.default),(0,o.registerAction)(`sibling-tooltip`,r.default),(0,o.registerAction)(`active-region`,n.default),(0,o.registerAction)(`ellipsis-text`,a.default),(0,o.registerInteraction)(`tooltip`,{start:[{trigger:`plot:mousemove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:touchmove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`plot:mouseleave`,action:`tooltip:hide`},{trigger:`plot:leave`,action:`tooltip:hide`},{trigger:`plot:touchend`,action:`tooltip:hide`}]}),(0,o.registerInteraction)(`ellipsis-text`,{start:[{trigger:`legend-item-name:mousemove`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`legend-item-name:touchstart`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`axis-label:mousemove`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`axis-label:touchstart`,action:`ellipsis-text:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`legend-item-name:mouseleave`,action:`ellipsis-text:hide`},{trigger:`legend-item-name:touchend`,action:`ellipsis-text:hide`},{trigger:`axis-label:mouseleave`,action:`ellipsis-text:hide`},{trigger:`axis-label:touchend`,action:`ellipsis-text:hide`}]}),(0,o.registerInteraction)(`tooltip-click`,{start:[{trigger:`plot:click`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:touchstart`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:`plot:leave`,action:`tooltip:hide`}]});var s=function(e){e.view.isTooltipLocked()?e.view.unlockTooltip():e.view.lockTooltip()};(0,o.registerInteraction)(`tooltip-lock`,{start:[{trigger:`plot:click`,action:s},{trigger:`plot:touchstart`,action:s},{trigger:`plot:touchmove`,action:`tooltip:show`,throttle:{wait:50,leading:!0,trailing:!1}},{trigger:`plot:mousemove`,action:`tooltip:show`}],end:[{trigger:`plot:click`,action:`tooltip:hide`},{trigger:`plot:leave`,action:`tooltip:hide`},{trigger:`plot:touchend`,action:`tooltip:hide`}]}),(0,o.registerInteraction)(`sibling-tooltip`,{start:[{trigger:`plot:mousemove`,action:`sibling-tooltip:show`}],end:[{trigger:`plot:mouseleave`,action:`sibling-tooltip:hide`}]})})),YN=i((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,`__esModule`,{value:!0});var t=vM(),n=_E();e.default=function(e){if(!t.default(e)||!n.default(e,`Object`))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}})),ZN=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=vE(),n=XN(),r=5;function i(e,a,o,s){for(var c in o||=0,s||=r,a)if(a.hasOwnProperty(c)){var l=a[c];l!==null&&n.default(l)?(n.default(e[c])||(e[c]={}),o{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.View=void 0;var r=n(a()),i=n(fM()),o=n(hE()),s=n(QN()),c=e.View=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.name=`view`,t}return n.prototype.componentWillUnmount=function(){this.viewHelper.destroy(),this.viewHelper=null},n.prototype.render=function(){return this.viewHelper||=new s.default(this.context.chart),this.viewHelper.update(this.props),r.default.createElement(o.default.Provider,{value:this.viewHelper.view},r.default.createElement(r.default.Fragment,null,this.props.children))},n.defaultProps={visible:!0,preInteractions:[],filter:[]},n}(r.default.Component);c.contextType=i.default,e.default=c})),eP=n(zN()),tP=n(YN()),nP=n($N()),rP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`})=>{let r=N(e=>e.cti.ui.graphColors.pieChart),i=N(e=>e.cti.ui.generatePDF),a=N(e=>e.cti.ui.pdfSize),o={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}},s=(0,FN.default)(e,e=>e.type),c=({width:e,height:i,noLegend:a,dataSet:s,title:c})=>(0,$.jsxs)(jN.default,{data:s,width:e,height:i-50,padding:`auto`,scale:o,children:[(0,$.jsx)(`h3`,{className:`graph-title graph__doublePieChart-title`,children:c}),(0,$.jsx)(MN.default,{name:t,position:`right`,visible:!a}),(0,$.jsx)(tP.default,{showTitle:!1}),(0,$.jsxs)(nP.default,{data:s,animate:!0,children:[(0,$.jsx)(eP.default,{type:`theta`,radius:.85}),(0,$.jsx)(AN.default,{visible:!1}),(0,$.jsx)(NN.default,{adjust:`stack`,style:{lineWidth:1,stroke:`#f0f2f5`},position:n,color:[t,[...r]]}),(0,$.jsx)(tP.default,{shared:!0})]})]});return(0,$.jsxs)(`div`,{className:`graph-wrapper`,children:[i===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(c,{width:e/2,height:t,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]})}):(0,$.jsx)(c,{width:a.width/2,height:a.height-200,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]}),i===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(c,{width:e/2,height:t,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})}):(0,$.jsx)(c,{width:a.width/2,height:a.height-200,noLegend:!0,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})]})};rP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string};var iP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getSmoothViolinPath=t.getViolinPath=t.getPathPoints=void 0;var n=(J(),e(q)),r=MD();function i(e){return e?!1:e==null||isNaN(e)}function a(e){if((0,n.isArray)(e))return i(e[1].y);var t=e.y;return(0,n.isArray)(t)?i(t[0]):i(t)}function o(e,t,n){if(t===void 0&&(t=!1),n===void 0&&(n=!0),!e.length||e.length===1&&!n)return[];if(t){for(var r=[],i=0,o=e.length;i{Object.defineProperty(t,`__esModule`,{value:!0}),t.splitPoints=void 0;var n=(J(),e(q));function r(e){var t=e.x;return((0,n.isArray)(e.y)?e.y:[e.y]).map(function(e,r){return{x:(0,n.isArray)(t)?t[r]:t,y:e}})}t.splitPoints=r})),oP=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getLineMarker=void 0;var t={line:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},dot:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},dash:function(e,t,n){return[[`M`,e-n,t],[`L`,e+n,t]]},smooth:function(e,t,n){return[[`M`,e-n,t],[`A`,n/2,n/2,0,1,1,e,t],[`A`,n/2,n/2,0,1,0,e+n,t]]},hv:function(e,t,n){return[[`M`,e-n-1,t-2.5],[`L`,e,t-2.5],[`L`,e,t+2.5],[`L`,e+n+1,t+2.5]]},vh:function(e,t,n){return[[`M`,e-n-1,t+2.5],[`L`,e,t+2.5],[`L`,e,t-2.5],[`L`,e+n+1,t-2.5]]},hvh:function(e,t,n){return[[`M`,e-(n+1),t+2.5],[`L`,e-n/2,t+2.5],[`L`,e-n/2,t-2.5],[`L`,e+n/2,t-2.5],[`L`,e+n/2,t+2.5],[`L`,e+n+1,t+2.5]]},vhv:function(e,t){return[[`M`,e-5,t+2.5],[`L`,e-5,t],[`L`,e,t],[`L`,e,t-3],[`L`,e,t+3],[`L`,e+6.5,t+3]]}};function n(e,n){var r=e.color;return{symbol:t[n],style:{lineWidth:2,r:6,stroke:r}}}e.getLineMarker=n})),sP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=sO(),i=iP(),a=HM(),o=MD(),s=aP(),c=oP();function l(e,t,n){for(var r=e.isStack,o=e.connectNulls,s=e.isInCircle,c=e.showSinglePoint,l=(0,a.getStyle)(e,!0,!1,`lineWidth`),u=(0,i.getPathPoints)(e.points,o,c),d=[],p=0,m=u.length;p{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=Y(),i=(0,n.__importDefault)(fO()),a=(0,n.__importDefault)(aO());sP();var o=lO(),s=dO();t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`path`,n.shapeType=`line`;var r=t.connectNulls,i=r===void 0?!1:r,a=t.showSinglePoint,o=a===void 0?!0:a;return n.connectNulls=i,n.showSinglePoint=o,n}return t.prototype.updateElements=function(e,t){t===void 0&&(t=!1);for(var n=new Map,r=new Map,i=[],c=0,l=0;l{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(cP());sP(),t.default=function(e){(0,n.__extends)(t,e);function t(t){var n=e.call(this,t)||this;n.type=`line`;var r=t.sortable;return n.sortable=r===void 0?!1:r,n}return t}(r.default)})),uP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(J(),e(q)),i=sO(),a=iP(),o=HM(),s=oP(),c=function(e,t,n){var r=e.x,i=e.y,a=t.x,o=t.y,s;switch(n){case`hv`:s=[{x:a,y:i}];break;case`vh`:s=[{x:r,y:o}];break;case`hvh`:var c=(a+r)/2;s=[{x:c,y:i},{x:c,y:o}];break;case`vhv`:var l=(i+o)/2;s=[{x:r,y:l},{x:a,y:l}];break;default:break}return s};function l(e,t){var n=[];return(0,r.each)(e,function(r,i){var a=e[i+1];if(n.push(r),a){var o=c(r,a,t);n=n.concat(o)}}),n}function u(e){return e.map(function(e,t){return t===0?[`M`,e.x,e.y]:[`L`,e.x,e.y]})}function d(e,t){var i=(0,a.getPathPoints)(e.points,e.connectNulls,e.showSinglePoint),s=[];return(0,r.each)(i,function(e){var n=l(e,t);s=s.concat(u(n))}),(0,n.__assign)((0,n.__assign)({},(0,o.getStyle)(e,!0,!1,`lineWidth`)),{path:s})}(0,r.each)([`hv`,`vh`,`hvh`,`vhv`],function(e){(0,i.registerShape)(`line`,e,{draw:function(t,n){var r=d(t,e);return n.addShape({type:`path`,attrs:r,name:`line`})},getMarker:function(t){return(0,s.getLineMarker)(t,e)}})})})),dP=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(lP());uP();var i=n(xN()),a=HA();uP(),(0,a.registerGeometry)(`Line`,r.default),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.GemoBaseClassName=`line`,t}return n}(i.default)})),fP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.drawPoints=t.HOLLOW_SHAPES=t.SHAPES=void 0;var n=(R(),e(F)),r=bO(),i=HM();t.SHAPES=[`circle`,`square`,`bowtie`,`diamond`,`hexagon`,`triangle`,`triangle-down`],t.HOLLOW_SHAPES=[`cross`,`tick`,`plus`,`hyphen`,`line`];function a(e,t,a,o,s){var c=(0,i.getStyle)(t,s,!s,`r`),l=e.parsePoints(t.points),u=l[0];if(t.isStack)u=l[1];else if(l.length>1){for(var d=a.addGroup(),f=0,p=l;f{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=aP(),o=fP(),s=(0,i.registerShapeFactory)(`point`,{defaultShapeType:`hollow-circle`,getDefaultPoints:function(e){return(0,a.splitPoints)(e)}});(0,n.each)(o.SHAPES,function(e){(0,i.registerShape)(`point`,`hollow-`+e,{draw:function(t,n){return(0,o.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e]||e,style:{r:4.5,stroke:n,fill:null}}}})}),t.default=s})),mP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(R(),e(F)),r=(0,n.__importDefault)(fO());pP(),t.default=function(e){(0,n.__extends)(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`point`,t.shapeType=`point`,t.generatePoints=!0,t}return t.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return(0,n.__assign)((0,n.__assign)({},r),{isStack:!!this.getAdjust(`stack`)})},t}(r.default)})),hP=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=fP();(0,n.each)(a.HOLLOW_SHAPES,function(e){(0,i.registerShape)(`point`,e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e],style:{r:4.5,stroke:n,fill:null}}}})})})),gP=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=sO(),n=HM();(0,t.registerShape)(`point`,`image`,{draw:function(e,t){var r=(0,n.getStyle)(e,!1,!1,`r`).r,i=this.parsePoints(e.points),a=i[0];if(e.isStack)a=i[1];else if(i.length>1){for(var o=t.addGroup(),s=0,c=i;s{Object.defineProperty(t,`__esModule`,{value:!0});var n=(J(),e(q)),r=bO(),i=sO(),a=fP();(0,n.each)(a.SHAPES,function(e){(0,i.registerShape)(`point`,e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!1)},getMarker:function(t){var n=t.color;return{symbol:r.MarkerSymbols[e]||e,style:{r:4.5,fill:n}}}})})})),vP=i((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var r=n(mP()),i=n(xN()),a=HA();hP(),gP(),_P(),(0,a.registerGeometry)(`Point`,r.default),e.default=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.GemoBaseClassName=`point`,t}return n}(i.default)})),yP=n(dP()),bP=n(vP()),xP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i,series:a})=>{let o=N(e=>e.cti.ui.graphColors.pieChart),s=N(e=>e.cti.ui.generatePDF),c=N(e=>e.cti.ui.pdfSize),l=o,u=Object.keys((0,FN.default)(e,e=>e.type)),d=P.useCallback(e=>{let t=Array.isArray(e)?e[0].replace(/"/gm,``):e;return l[u.indexOf(t)]},[l,r,u]),f=u;f.includes(`undefined`)&&i&&(f=[i]),f=f.map((e,t)=>({id:t,name:e,marker:{style:{fill:d(e)},symbol:`square`}}));let p=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},m=[],h=[],g=[],_=[];Object.values(a).forEach(e=>{h.push(e.displayName),e.type===`line`?g.push(e.displayName):_.push(e.displayName)});let v=(0,FN.default)(e,e=>e.name);for(let e in v){let t={name:e},n=v[e];h.forEach(e=>{let r=n.find(t=>t.type===e);r&&(t[e]=r.value,t[`${e}_formatted`]=r.formattedValue)}),m.push(t)}let y=e.map(e=>e.value),b=Math.max(...y)*1.1,x=Math.min(...y)*.9,S={};if(h.forEach(e=>{S[e]={min:x,max:b,formatter:t=>{let n=m.find(n=>n[e]===t);return n?n[`${e}_formatted`]??t:t}}}),!e.length)return null;let C=({width:e,height:r})=>(0,$.jsxs)(jN.default,{height:r,width:e,data:m,padding:`auto`,scale:S,children:[(0,$.jsx)(ne,{shared:!0}),(0,$.jsx)(MN.default,{custom:!0,items:f,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:p}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),_.map(e=>(0,$.jsx)(NN.default,{color:[`"${e}"`,e=>d(e)],position:`${t}*${e}`},e)),g.map(e=>(0,$.jsxs)(`div`,{children:[(0,$.jsx)(yP.default,{position:`${t}*${e}`,color:[`"${e}"`,e=>d(e)],size:3,shape:`smooth`}),(0,$.jsx)(bP.default,{color:[`"${e}"`,e=>d(e)],position:`${t}*${e}`,size:3,shape:`smooth`})]},e))]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:s===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(C,{width:e,height:t})}):(0,$.jsx)(C,{width:c.width,height:c.height})})};xP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string,serie:Q.default.object};var SP=P.memo(xP,PN.default),CP,wP=[`F - Féminin`,`Féminin`,`féminin`,`Feminin`,`feminin`,`F`],TP=[`M`,`Masculin`,`masculin`,`M - Masculin`];CP={men:TP,women:wP,all:TP.concat(wP)};var EP=CP,DP=(e,t)=>t.filter(function(t){let n=new Date(t.date_reference);return n.getFullYear()===e.getFullYear()&&n.getMonth()<=e.getMonth()}),OP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`})=>{let r=N(e=>e.cti.ui.graphColors.pieChart),i=N(e=>e.cti.ui.graphColors.sexChart);e.length===2&&EP.all.includes(e[0].name)&&(r=[],e.forEach(e=>{EP.men.includes(e.name)&&r.push(i[0]),EP.women.includes(e.name)&&r.push(i[1])}));let a=N(e=>e.cti.ui.generatePDF),o=N(e=>e.cti.ui.pdfSize),s=r,c={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}},l=({width:r,height:i})=>(0,$.jsxs)(jN.default,{data:e,width:r,height:i,padding:`auto`,scale:c,children:[(0,$.jsx)(MN.default,{name:t,position:`right`}),(0,$.jsx)(tP.default,{showTitle:!1}),(0,$.jsxs)(nP.default,{data:e,animate:!0,children:[(0,$.jsx)(eP.default,{type:`theta`,radius:.85}),(0,$.jsx)(AN.default,{visible:!1}),(0,$.jsx)(NN.default,{adjust:`stack`,style:{lineWidth:1,stroke:`#f0f2f5`},position:n,color:[t,[...s]]}),(0,$.jsx)(tP.default,{shared:!0,title:(e,t)=>t.tooltipLabel??e})]})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:a===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(l,{width:e,height:t})}):(0,$.jsx)(l,{width:o.width,height:o.height})})};OP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string};var kP=n(A()),AP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,includeSeries:r=[]})=>{let i=N(e=>e.cti.ui.graphColors.lineChart),a=N(e=>e.cti.ui.graphColors.sexChart),o=N(e=>e.cti.ui.generatePDF),s=N(e=>e.cti.ui.pdfSize),c=(0,kP.default)().subtract(1,`months`),l=e.map(e=>e.value),u=i,d,f,p=Object.keys((0,FN.default)(e,e=>e.type)),m=e.map(e=>({...e}));r.length?(m=m.filter(e=>r.includes(Number(e.serie))),m=DP(new Date(c),m),l=m.map(e=>e.value),f=Math.max(...l)*1.1,d=Math.min(...l)*.9):(f=Math.max(...l)*1.1,d=Math.min(...l)*.9);let h=e=>{if(EP.men.includes(e))return a[0];if(EP.women.includes(e))return a[1];let t=p.indexOf(e);return t===-1&&(t=0),u[t]},g={[n]:{formatter:e=>{let t=m.find(t=>t[n]===e);return t&&t.formattedValue?t.formattedValue:e},min:d,max:f}},_=({width:e,height:r})=>(0,$.jsxs)(jN.default,{data:m,width:e,height:r,padding:`auto`,scale:g,children:[(0,$.jsx)(MN.default,{}),(0,$.jsx)(AN.default,{name:t}),(0,$.jsx)(AN.default,{name:n}),(0,$.jsx)(yP.default,{type:`line`,shape:`smooth`,position:`${t}*${n}`,size:2,color:[`type`,e=>h(e)]}),(0,$.jsx)(bP.default,{position:`${t}*${n}`,size:4,shape:`circle`,color:[`type`,e=>h(e)],style:{stroke:`#fff`,lineWidth:1}})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:o===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(_,{width:e,height:t})}):(0,$.jsx)(_,{width:s.width,height:s.height})})};AP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,includeSeries:Q.default.arrayOf(Q.default.number)};var jP=P.memo(AP,PN.default),MP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r})=>{let i=N(e=>e.cti.ui.graphColors.columnChart),a=N(e=>e.cti.ui.generatePDF),o=N(e=>e.cti.ui.pdfSize),[s,c]=(0,P.useState)(0),l=Object.keys((0,FN.default)(e,e=>e.type));(0,P.useEffect)(()=>{let t=e.map(e=>e.value),n=Math.max(...t),r=Math.min(...t);c(Math.max(n,Math.abs(r)))},[e]);let u=e=>i[l.indexOf(e)],d=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},f={[t]:{formatter:e=>e<0?-e:e,nice:!0,min:-s,max:s}};if(!e.length)return null;let p=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,autoFit:!0,children:[(0,$.jsx)(MN.default,{itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsxs)(nP.default,{data:e,scale:f,animate:!0,children:[(0,$.jsx)(AN.default,{name:n,label:{offset:12,formatter:d,style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:`value`,label:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(eP.default,{transpose:!0}),(0,$.jsx)(NN.default,{adjust:[{type:`stack`}],color:[`type`,e=>u(e)],position:`${n}*${t}`})]})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:a===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(p,{width:e,height:t})}):(0,$.jsx)(p,{width:o.width,height:o.height})})};MP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object};var NP=P.memo(MP,PN.default),PP=({data:e,xFieldName:t=`name`,yFieldName:n=`value`,options:r,title:i})=>{let a=N(e=>e.cti.ui.graphColors.columnChart),o=N(e=>e.cti.ui.generatePDF),s=N(e=>e.cti.ui.pdfSize),c=a,l=Object.keys((0,FN.default)(e,e=>e.type)),u=P.useCallback((e,t)=>{let n=Array.isArray(e)?t:e;return c[l.indexOf(n)]},[c,r,l]),d=l;d.includes(`undefined`)&&i&&(d=[i]),d=d.map((e,t)=>({id:t,name:e,marker:{style:{fill:u(e)},symbol:`square`}}));let f=(t,n,i)=>{if(!r||!r.labelView)return t;let a=e.find(e=>e.category===t);return r.labelView===0||t===`Autres`?t:a?a.label_code:`Pas de code`},p={[n]:{formatter:t=>{let r=e.find(e=>e[n]===t);return r&&r.formattedValue?r.formattedValue:t}}};if(!e.length)return null;let m=({width:r,height:i})=>(0,$.jsxs)(jN.default,{height:i,width:r,data:e,padding:`auto`,scale:p,children:[(0,$.jsx)(MN.default,{custom:!0,items:d,visible:!0,itemName:{style:{fill:`rgba(0,0,0,0.85)`}}}),(0,$.jsx)(AN.default,{name:t,label:{style:{fill:`rgba(0,0,0,0.85)`},formatter:f}}),(0,$.jsx)(AN.default,{name:n,label:{style:{fill:`rgba(0,0,0,0.85)`}},formatter:e=>Math.round(e)===e?e:e.toFixed(2)}),(0,$.jsx)(NN.default,{adjust:[{type:`stack`}],color:[`type*name`,(e,t)=>u(e,t)],position:`${t}*${n}`}),(0,$.jsx)(tP.default,{shared:!0,title:(e,t)=>t.tooltipLabel??e})]});return(0,$.jsx)(`div`,{className:`graph-wrapper`,children:o===!1?(0,$.jsx)(se,{children:({width:e,height:t})=>(0,$.jsx)(m,{width:e,height:t})}):(0,$.jsx)(m,{width:s.width,height:s.height})})};PP.propTypes={data:Q.default.arrayOf(Q.default.object).isRequired,xFieldName:Q.default.string,yFieldName:Q.default.string,options:Q.default.object,title:Q.default.string};var FP=P.memo(PP,PN.default),IP=P.memo(({charts:e,data:t,tabName:n,similiTabName:r,height:i})=>{let{view:a}=ue();function o(e,i=!1){return t?e.map((e,o)=>{if(e.subCharts){let c=Object.values(e.subCharts).filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);return(0,$.jsx)(`div`,{style:{height:`100%`},children:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`filteredSubcharts`,carousel:i?`true`:null,children:s(c,t)})},o)}else{let a;return a=e.serieIsCategory&&e.serieIsCategory===`true`?c(t,Object.values(e.series),e):l(t,e),!a||a.length<1?null:(0,$.jsx)(`div`,{style:{height:`100%`},children:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`chart`,carousel:i?`true`:null,children:f(e,a)})},o)}}):null}function s(e,t){return e.map((e,n)=>{let r=Object.values(e.series),i;return i=e.serieIsCategory!==void 0&&e.serieIsCategory===`true`?c(t,r,e):l(t,e),!i||i.length<1?null:f(e,i,n)})}function c(e,t,r){let[i,o]=e,s=[],c;r.condition&&(c=r.condition);let l=i;c&&(l=i.filter(e=>{try{return ae(c,a,e)}catch(e){return console.log(c),console.log(e),!0}}));let d=l;if(r.sortField&&r.sortField&&d.every(e=>e[r.sortField])){let e=r.sortSeq===`D`?`desc`:`asc`;d=E(d,r.sortField,e)}return r.fromTotal===`true`&&(d=o),r.maxItems&&(d=d.slice(0,Number(r.maxItems))),d.forEach((e,i)=>{t.forEach(t=>{let i={};i.name=t.displayName,t.displayNameCalc&&t.displayNameCalc===`true`&&(i.name=ae(t.displayName,a));let c=t.field;i.value=u(c,[e],r,o),i.formattedValue=i.value;let l=a.run.data[n];if(l){let e=l.datagrid.columns[t.field];if(e){let t=e.outputFormat;if(t&&t!==``){let t=e.outputFormat.trim();/^=/gm.test(t)&&(t=ae(t,a)),i.formattedValue=oe({type:e.type,format:t,data:i.value})}}}let d=r.categories[0].field;d===`CODTXT`&&e.COD?.sanitizedText&&e.TXT?.sanitizedText?i.type=`${e.COD.sanitizedText}-${e.TXT.sanitizedText}`:i.type=e[d]?.sanitizedText,i.type||=r.title,s.push(i)})}),s=s.filter(e=>!(e.name===``&&e.value===0)),s}function l(e,t){let[r]=e,i=Object.values(t.series).filter(e=>e.visible!==`false`),o=[],s;t.condition&&(s=t.condition);let c=r;s&&(c=r.filter(e=>{let t={};if(e&&Object.values(e).some(e=>e.text))for(let n in e)t[n]=e[n].text?e[n].text:e[n];return ae(s,a,t)})),c=p(c,t);let l=[],f=[],m=[],h={};if(t.categories[0].items)l=t.categories[0].items.map(e=>e.field),f=t.categories[0].items.map(e=>e.displayNameCalc===`true`?ae(e.displayName,a):e.displayName),l.forEach(e=>h[e]=c);else{let e=t.categories[0].field,n=e===`CODTXT`?`COD`:e;h=(0,FN.default)(c,e=>{let t=e[n];return t?.sanitizedText??t??``}),e===`CODTXT`?(e=`COD`,f=Object.values(h).map(e=>e[0].COD&&e[0].TXT?`${e[0].COD.sanitizedText??e[0].COD} - ${e[0].TXT.sanitizedText??e[0].TXT}`:e[0].TXT.sanitizedText??e[0].TXT)):(f=Object.values(h).map(t=>{let n=t[0][e];return n?.sanitizedText??n??``}),m=Object.values(h).map(e=>e[0].COD&&e[0].TXT?`${e[0].COD.sanitizedText??e[0].COD} - ${e[0].TXT.sanitizedText??e[0].TXT}`:e[0]?.TXT?.sanitizedText??e[0].TXT)),l=Object.keys(h)}if(l.forEach((e,r)=>{i.forEach(i=>{let s=h[e];i.condition&&(s=s.filter(e=>{try{return ae(i.condition,a,e)}catch(e){return console.log(i.condition),console.log(e),!0}}));let c=i.displayName;i.displayNameCalc&&i.displayNameCalc===`true`&&(c=ae(c,a));let l=u(i.field??e,s,t),d=l,p=a.run.data[n];if(p){let e=p.datagrid.columns[i.field];if(e){let t=e.outputFormat;if(t&&t!==``){let t=e.outputFormat.trim();/^=/gm.test(t)&&(t=ae(t,a)),d=oe({type:e.type,format:t,data:l})}}}let g={name:f[r],tooltipLabel:m[r]??null,type:c,value:u(i.field??e,s,t),formattedValue:d};t?.sortField!==``&&h[e].length===1?g[t.sortField]=h[e][0][t.sortField]:h[e].length===1&&(g.COD=h[e][0].COD),o.push(g)})}),t.sortField&&t.softField!==``){let e,n=t.sortField;if(n&&o.every(e=>e[n])){let r=t.sortSeq===`D`?`desc`:`asc`;e=E(o,n,r)}else e=d(o);o=e}return o}function u(e,t,r,i=[]){let o=a.run.data[n].datagrid.columns,s=Object.values(o).find(t=>t.dataField===e),c=!1;r.fromTotal&&r.fromTotal===`true`&&(c=!0);let l=0;if(c){let t=i.find(e=>e.OID===`-9999999`);t&&t[e]&&!isNaN(parseFloat(t[e].text))?(l=parseFloat(t[e].text),s&&s.outputFormat&&(l=l.toFixed(re(s.outputFormat)),l=Number(l))):t[e]&&!isNaN(parseFloat(t[e]))&&(l=parseFloat(t[e]),s&&s.outputFormat&&(l=l.toFixed(re(s.outputFormat)),l=Number(l)))}else l=0,t.forEach(t=>{t[e]&&!isNaN(Number(t[e].text))?l+=Number(t[e].text):t[e]&&!isNaN(Number(t[e]))&&(l+=Number(t[e]))});return Math.round(l)===l?l:Number(l.toFixed(2))}function d(e){let t=(0,FN.default)(e,e=>e.name);t=Object.values(t).map(e=>({name:e[0].name,total:e.reduce((e,t)=>t.value+e,0)}));let n=Object.values((0,kN.default)(t,e=>e.total).reverse());return n=n.map(e=>e.name),e.sort((e,t)=>n.indexOf(e.name)-n.indexOf(t.name))}function f(e,t,n=0){let r=t;switch(e.type){case`mixedChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(SP,{data:r,title:e.title,series:e.series},n)]},n);case`columnChart`:return e.subType&&e.subType===`stacked`?(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(FP,{data:r,title:e.title},n)]},n):(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(LN,{data:r,title:e.title},n)]},n);case`pieChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(OP,{data:r,title:e.title},n)]},n);case`pieChart2`:return(0,$.jsx)(`div`,{className:`sub-graph`,children:(0,$.jsx)(rP,{data:r,title:e.title},n)},n);case`lineChart`:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(jP,{data:r,title:e.title},n)]},n);case`barChart`:return e.subType===`overlaid`?(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(NP,{data:r,title:e.title,yFieldName:`name`,xFieldName:`value`},n)]},n):(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(FP,{data:r,title:e.title},n)]},n);default:return(0,$.jsxs)(`div`,{className:`sub-graph`,children:[(0,$.jsx)(`div`,{className:`graph-title`,children:e.title}),(0,$.jsx)(`h2`,{children:`Type de graphique non disponible`})]},n)}}function p(e,t){let n=[...e],r=`COD`;if(t.sortField===``?t.maxItemsSortOn!==``&&(r=t.maxItemsSortOn):r=t.sortField,r&&n.every(e=>e[r])){let e=t.sortSeq===`D`?`desc`:`asc`,i=E(n,r,e);if(t.maxItems)i=i.slice(0,Number(t.maxItems));else switch(t.type){case`piechart`:return i=i.slice(0,12);case`linechart`:return i=i.slice(0,5);default:return i=i.slice(0,20)}return i}else return d(n)}if(!t)return null;let m=e.filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);if(i===0)return null;if(t&&m.length>1)return(0,$.jsx)(ft,{tabPosition:`right`,forceRender:!0,autoplay:!1,autoplaySpeed:7e3,isCarousel:!0,children:o(m,!0)});if(t&&m.length===1){let e=m[0];if(e.subCharts){let i=Object.values(e.subCharts).filter(e=>e.visibleCondition?ae(e.visibleCondition,a):!0);return(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`filteredChart`,children:s(i,t)})}else{let i;return i=e.serieIsCategory===`true`?c(t,Object.values(e.series),e):l(t,e),!i||i.length<1?null:(0,$.jsx)(`div`,{className:`graphs`,tabname:(0,ON.default)(n),similitabname:(0,ON.default)(r),rendertypechart:`formattedChart`,children:f(e,i)})}}else return null});export{IP as default}; \ No newline at end of file diff --git a/assets/Checkbox-D2PZJZxq.js b/assets/Checkbox-D2PZJZxq.js new file mode 100644 index 0000000..5b8ace6 --- /dev/null +++ b/assets/Checkbox-D2PZJZxq.js @@ -0,0 +1 @@ +import{a as e,t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";import{Wn as r}from"./axios-BDcMaxoP.js";import{J as i,Y as a,_t as o,vt as s}from"./index-C1mw6CgG.js";import{E as c,T as l,_ as u,g as d,i as f,n as p,t as m,w as h,y as g}from"./context-CpzI18et.js";var _=t((e=>{var t=c().default,o=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.GroupContext=void 0;var s=o(i()),d=o(l()),f=o(u()),m=o(h()),_=o(r()),y=o(g()),b=t(n()),x=p(),S=o(v()),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i0&&(r=N().map(function(e){return b.createElement(S.default,{prefixCls:L,key:e.value.toString(),disabled:`disabled`in e?e.disabled:p.disabled,value:e.value,checked:D.includes(e.value),onChange:e.onChange,className:`${R}-item`,style:e.style},e.label)}));var B={toggleOption:I,value:D,disabled:p.disabled,name:p.name,registerValue:F,cancelValue:P},V=(0,_.default)(R,(0,d.default)({},`${R}-rtl`,v===`rtl`),c);return b.createElement(`div`,(0,s.default)({className:V,style:l},z,{ref:t}),b.createElement(w.Provider,{value:B},r))});e.default=b.memo(T)})),v=t((t=>{var u=c().default,h=a().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var g=h(l()),v=h(i()),y=h(r()),b=h((s(),e(o))),x=u(n()),S=x,C=p(),w=m();h(d());var T=_(),E=h(f()),D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ispan{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.component-content{height:calc(100% - 103px)}.classes-description .form-column{justify-content:flex-start}.classes-description,.listes-description{background-color:#fff;border-top:1px solid #eee;flex-flow:row;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.classes-description .form-column,.listes-description .form-column{margin-right:50px}.classes-description .form-item>span,.listes-description .form-item>span{min-width:70px}.classes-sections .ant-tree{height:100%;min-height:0;padding-top:8px;overflow:scroll}.classes-sections{box-shadow:0 .125rem .25rem #00000013}.classes-sections .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper{width:80%}.options-search{background-color:#fff;border-radius:5px;flex-flow:row;display:flex;box-shadow:0 .125rem .25rem #00000013}.options-search .form-column{justify-content:flex-start;height:auto;padding:10px}.options-search .form-row{margin:5px 0}.options-search .form-item{align-items:flex-start;width:100%}.options-search .form-item>span{min-width:160px}.options-search .form-item .ant-input{width:100%}.classes-manager-classes{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll}.classes-sections,.classes-options{flex-flow:column;height:100%;display:flex}.classes-sections{flex:3;min-width:250px;overflow:auto}.options-search,.options-table{width:100%}.options-search{position:relative}.options-dragger{background-color:#fff;border-radius:50%;align-items:center;padding:8px;display:flex;position:absolute;top:-8px;left:-14px;box-shadow:0 .125rem .25rem #00000013}.options-table{flex:3;min-height:0;margin-top:5px;overflow:hidden} diff --git a/assets/ClassesManager-BjD_1net.js b/assets/ClassesManager-BjD_1net.js new file mode 100644 index 0000000..a7ddb4a --- /dev/null +++ b/assets/ClassesManager-BjD_1net.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,_r as a,gr as o,hr as s,jt as c,n as l,o as u,r as d}from"./axios-BDcMaxoP.js";import{t as f}from"./index.esm-D4i6w2dF.js";import{t as p}from"./input-C55Uc3oN.js";import{i as m}from"./ctiAxios-HKh7HuhO.js";import{t as h}from"./button-xukQsL9n.js";import{i as g}from"./select-dQ-XiIfN.js";import{t as _}from"./popover-BeDAihUH.js";import{t as v}from"./tooltip-D0a9NNK5.js";import{d as y,l as b,u as x}from"./sanitizeDataUtils-DBUp8Fd9.js";import{n as S}from"./iconUtil-DGYSxFEZ.js";import{t as C}from"./spin-BSto2uUH.js";import{t as w}from"./ArrowLeftOutlined-Bae7unhy.js";import{t as T}from"./popconfirm-BanNBanA.js";import{t as E}from"./tree-Df2nuFCU.js";import{n as D}from"./typography-CKptiUMY.js";import{c as O,s as k}from"./chunk-4N6VE7H7-DnASKJzj.js";import{a as ee}from"./notification-DIuyPXAV.js";import{t as A}from"./useMutation-BtpRmKbj.js";import{t as j}from"./queryOptions-Cg9orY1Y.js";import{n as te,t as ne}from"./DiscardChangesButton-BFEqbiGO.js";import{a as re,s as ie,t as ae}from"./filterByCode-B4_opWRI.js";import{t as M}from"./ImportOutlined-okr1I4Tb.js";import{t as oe}from"./LeftSquareOutlined-DRQwPml3.js";import{t as se}from"./RightSquareOutlined-C-Af7NvS.js";import{t as ce}from"./Loader-BvAKWCqv.js";import{B as le,D as ue,E as de,I as fe,O as N,Q as pe,R as P,T as F,Z as me,k as he,mt as I,ot as L,r as ge,s as _e,u as R}from"./index-C1mw6CgG.js";import{n as ve,t as ye}from"./useFormIsActive-Bgv4fpIz.js";import{t as z}from"./sortBy-DH7cP1bl.js";import{t as be}from"./module-eIe9lCj8.js";var xe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z`}}]},name:`column-width`,theme:`outlined`};i();var B=e(t()),Se=B.forwardRef(function(e,t){return B.createElement(c,r(r({},e),{},{ref:t,icon:xe}))});function V(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=o(t).schema,r=s(t,`TABLE`),i={};r.forEach(e=>{let t=o(e);t.classes=l(s(e,`CLASSE`)),i[`${t.classe_schema}-${t.table_id}`]=t});let a=s(t,`REFTABLE`),c={};a.forEach(e=>{let t=o(e);t.classes=l(s(e,`CLASSE`)),c[t.table_id]=t});function l(e){let t={};return e.forEach(e=>{let n=o(e);t[n.classe_id]=n}),t}return{schema:n,tables:i,refTables:c}}function Ce(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=s(t,`CLASSE`)[0],r=o(n);r.sections=i(s(n,`SECTION`));function i(e){let t=[];return e.forEach(e=>{let n=o(e);n.elements=a(s(e,`ELEMENT`)),t.push(n)}),t}function a(e){let t=[];return e.forEach(e=>{let n=o(e);n.key=n.oid,t.push(n)}),t}return r.schema=o(t).schema??o(t).classe_schema,r.classe_schema=o(t).classe_schema??o(t).schema,r}var H=async e=>V(await m(`modules/base/php/httpService_classesManager_getClasses.php`,{softCode:e})),we=async(e,t,n)=>Ce(await m(`modules/base/php/httpService_classesManager_getClasse.php`,{classe_id:n,table_id:t,schema:e,classe_schema:e})),U=`modules/base/php/httpService_classesManager_setClasse.php`;async function Te(e,t,n){let r={...e};for(let e in r)r[e]===!0?r[e]=`1`:r[e]===!1&&(r[e]=`0`);let i={CLASSE:{XMLType:`CLASSE`,...r}};delete i.CLASSE.sections;let o=a(e.sections);o&&(i.CLASSE.children=o);let s=(await m(U,{schema:t,classe_schema:n,action:`save`,classeDef:R(i,!0)})).getElementsByTagName(`HTTP_SERVICE`)[0];return{classeId:(s?.getElementsByTagName(`CLASSE`)[0])?.getAttribute(`oid`),warnings:[...s.getElementsByTagName(`WARNING`)].map(e=>e.textContent)}}async function W(e,t,n){await m(U,{schema:n,action:`delete`,classe_id:e,classe_schema:n,table_id:t})}async function G(e,t,n){await m(U,{action:`refcopy`,softCode:t,refoid:e,schema:n})}var K={all:[`classes`],list:e=>[...K.all,`list`,e],detail:(e,t,n)=>[...K.all,`detail`,e,t,n]},Ee=e=>j({queryKey:K.list(e),queryFn:()=>H(e),enabled:!!e}),De=e=>d(Ee(e)),Oe=(e,t,n)=>j({queryKey:K.detail(e,t,n),queryFn:()=>we(e,t,n),enabled:!!e&&!!t&&!!n}),ke=(e,t,n)=>d(Oe(e,t,n));function Ae(){let e=u();return A({mutationFn:({classe:e,schema:t,classeSchema:n})=>Te(e,t,n),meta:{successMessage:`Classe enregistrée`,errorMessage:`Erreur lors de l'enregistrement de la classe`},onSettled:async()=>{await e.invalidateQueries({queryKey:K.all}),F()}})}function je(){let e=u();return A({mutationFn:({classeId:e,tableId:t,schema:n})=>W(e,t,n),meta:{successMessage:`Classe supprimée`,errorMessage:`Erreur lors de la suppression de la classe`},onSettled:async()=>{await e.invalidateQueries({queryKey:K.all}),F()}})}function Me(){let e=u();return A({mutationFn:({refoid:e,softCode:t,schema:n})=>G(e,t,n),meta:{successMessage:`Synchronisation terminée`,errorMessage:`La synchronisation a échoué`},onSettled:async()=>{await e.invalidateQueries({queryKey:K.all})}})}var q=n();function Ne(e){return[{title:`Code`,dataKey:`code`,dataGetter:({rowData:e})=>(0,q.jsx)(v,{title:e.code,children:e.code})},{dataKey:`texte`,headerRenderer:()=>e.table_texte,dataGetter:({rowData:e})=>(0,q.jsx)(v,{title:e.texte,children:e.texte})},{title:`Complément`,dataKey:`complement`},{title:`Section`,dataKey:`section_texte`},{title:`Ref`,dataKey:`utilise`,width:70}].map(e=>({width:300,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,resizable:!0,...e}))}var Pe=e(z()),J=e(l()),Y=({section:e,handleEdit:t,handleClose:n})=>{let[r,i]=(0,B.useState)(``),[a,o]=(0,B.useState)(``);return(0,B.useEffect)(()=>{e&&(i(e.include_code),o(e.exclude_code))},[e]),(0,q.jsxs)(`div`,{className:`section-form`,children:[(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{className:`first-label`,children:`Codes à inclure`}),(0,q.jsx)(p.TextArea,{value:r,onChange:e=>i(e.target.value)})]})}),(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{className:`first-label`,children:`Codes à exclure`}),(0,q.jsx)(p.TextArea,{value:a,onChange:e=>o(e.target.value)})]})}),(0,q.jsxs)(`div`,{className:`form-row form-buttons`,style:{marginTop:`12px`},children:[(0,q.jsx)(h,{onClick:n,style:{marginRight:`8px`},children:`Annuler`}),(0,q.jsx)(h,{onClick:()=>t(e.oid,r,a),type:`primary`,children:`Appliquer`})]})]})};Y.propTypes={section:J.default.object,handleEdit:J.default.func,handleClose:J.default.func};var Fe=({node:e,handleSetCode:t,handleSetText:n,byCode:r,handleEdit:i,handleDelete:a})=>{let[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(``),[f,m]=(0,B.useState)(``),[g,v]=(0,B.useState)(!1),[y,b]=(0,B.useState)(!1),x=(0,B.useRef)(),S=(0,B.useRef)();(0,B.useEffect)(()=>{e&&(d(e.code),m(e.texte))},[e]),(0,B.useEffect)(()=>{o&&x.current.focus()},[o]),(0,B.useEffect)(()=>{c&&S.current.focus()},[c]);let C=()=>{s(!o)},w=()=>{l(!c)},E=e=>{d(e.target.value)},O=e=>{m(e.target.value)},k=n=>{s(!1),t(e.oid,u)},ee=t=>{l(!1),n(e.oid,f)},A=()=>{v(!g)};return(0,q.jsxs)(`div`,{className:`editable-title`,onMouseEnter:A,onMouseLeave:A,children:[o?(0,q.jsx)(p,{ref:x,style:{width:`20%`},value:u,onChange:E,onBlur:k}):(0,q.jsx)(`div`,{className:`editable-code`,onClick:C,children:u}),c?(0,q.jsx)(p,{ref:S,style:{marginLeft:`6px`,width:`50%`},value:f,onChange:O,onBlur:ee}):(0,q.jsx)(`div`,{className:`editable-text`,onClick:w,children:`${f} (${e.elements.length})`}),(0,q.jsxs)(`div`,{className:`title-buttons`,children:[(0,q.jsx)(_,{trigger:`click`,content:(0,q.jsx)(Y,{section:e,handleEdit:i,handleClose:()=>b(!1)}),visible:y,onVisibleChange:e=>{b(e)},children:r||y?(0,q.jsx)(h,{type:`link`,className:`edit-button-title`,children:(0,q.jsx)(D,{})}):null}),(0,q.jsx)(T,{title:`Etes vous sur de vouloir supprimer cette section ?`,okText:`Supprimer`,cancelText:`Annuler`,onConfirm:()=>a(e.oid),children:(0,q.jsx)(h,{type:`link`,className:`delete-button-title`,children:(0,q.jsx)(me,{})})})]})]})};Fe.propTypes={node:J.default.object,handleSetCode:J.default.func,handleSetText:J.default.func,handleEdit:J.default.func,handleDelete:J.default.func};var Ie=new Set([`is_cti`,`contenu_by_code`,`contenu_non_replicable_ailleurs`,`show_omit`,`est_lecture_seule`,`est_partagee_modification`]),X=({selectedClasseParams:e,softCode:t,handleCloseEditor:n,onClasseCreated:r})=>{let i=fe(),a=Ae(),o=je(),s=be(t),c=e?.key?.includes(`finess`)?`base`:s,l=ke(c,e?.tableId,e?.classeId),u=l.data,d=l.isPending&&l.fetchStatus!==`idle`,f=i.data?.session,[m]=L.useForm(),[_,v]=(0,B.useState)([]),[y,b]=(0,B.useState)([]),[x,C]=(0,B.useState)([]),[D,O]=(0,B.useState)({}),[k,A]=(0,B.useState)(!1),[j,M]=(0,B.useState)(null),[le,ue]=(0,B.useState)([]),[N,P]=(0,B.useState)([]),[F,R]=(0,B.useState)([]),[z,xe]=(0,B.useState)(!1),[V,Ce]=(0,B.useState)(!0),[H,we]=(0,B.useState)(``),[U,Te]=(0,B.useState)(``);(0,B.useEffect)(()=>{if(u&&Object.keys(u).length){let e=qe(u);O(e),m.setFieldsValue(e),v(Ne(u))}else m.setFieldsValue({})},[u]),(0,B.useEffect)(()=>{if(u&&Object.keys(u).length){let e=Ge(u);e=Q(e),b(e)}},[u,H,z,V,U]),(0,B.useEffect)(()=>{D.sections?C(Je(Ke(D.sections),D)):C([])},[D]);let W=ye(u?.is_cti===`1`,f),G=(e,t)=>{if(j||t){let n={...D},r=t||n.sections.find(e=>e.oid===j.oid);if(r){let t=[],i=n.sections.filter(e=>e.oid!==r.oid),a=Ge(D);(e||N).forEach(e=>{let n=a.find(t=>t.oid===e.toString());r.elements.some(e=>e.oid===n.oid)||(n.section_texte=`${r.code} - ${r.texte}`,n.section_id=r.oid,t.push(n),i.forEach(e=>{e.elements=e.elements.filter(e=>e.oid!==n.oid)}))}),r.elements=r.elements.concat(t),b(Q(a))}O({...n}),P([]),A(!0)}},K=(e,t)=>{let n=Ge(D),r={...D},i=e||F,a=D.sections.find(e=>e.oid===`0`);i.forEach(e=>{let i=n.find(t=>t.oid===e.oid);i&&(a.elements.push(i),i.section_id=`0`,i.section_texte=``);let o;t?o=t:r.sections.forEach(t=>{t.elements.forEach(n=>{n.oid===e.oid&&(o=t)})}),o.elements=o.elements.filter(t=>t.oid!==e.oid)}),n=Q(n),O(r),b(n),R([]),A(!0)},Ee=()=>{let t=m.getFieldsValue(),n={...D,...t},i=e?.classeId===`-1`;a.mutate({classe:n,schema:s,classeSchema:c},{onSuccess:e=>{A(!1),e?.warnings?.forEach(e=>{ee({message:`Classe — conflit`,description:e,duration:8})}),i&&e?.classeId&&r(e.classeId,t.code)}})},De=e=>{xe(e.target.checked)},Oe=e=>{Ce(e.target.checked)},Me=e=>{we(e.target.value)},J=e=>{Te(e.target.value)},Y=(e,t)=>{let n={...D},r=n.sections.find(t=>t.oid===e);r&&(r.texte=t),O(n),A(!0)},X=(e,t)=>{let n={...D},r=n.sections.find(t=>t.oid===e);r&&(r.code=t),O(n),A(!0)},Le=e=>{A(!0);let t=Object.keys(e)[0];if(t===`contenu_by_code`){let n={...D};n[t]=e[t],O(n)}},Z=(e,t)=>{t.node.section_id?(M(null),R([t.node])):(M({...t.node}),R([...t.node.children])),t.selected||R([]),ue(e)},Re=()=>{let e={...D},t=-(e.sections.filter(e=>Number(e.oid<0)).length+1).toString();e.sections.push({oid:t,texte:`Nouvelle section`,code:`S${e.sections.length}`,include_code:``,exclude_code:``,elements:[]}),O(e)},ze=e=>{let t={...D};t.sections=t.sections.filter(t=>t.oid!==e),O(t)},Be=async(e,t,n)=>{let r={...D},i;i=r.sections.find(t=>t.oid===e),i&&(i.include_code=t,i.exclude_code=n),t!==``&&(K(i.elements),i.elements=[],G(await re({schema:s,table_id:u.table_id,include_code:t,exclude_code:n}),i)),O(r)},Ve=()=>{o.mutate({classeId:u.oid,tableId:u.table_id,schema:s},{onSuccess:()=>{O({}),n()}})},He=e=>{let t=[...N];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),P([...new Set(t)])},Ue=()=>{N.length?P([]):P(y.map(e=>e.oid))},We=()=>{O({}),n()};function Ge(e){let t=[];return e.sections.forEach(e=>{e.elements&&(t=t.concat(e.elements))}),t=(0,Pe.default)(t,e=>e.code),t}function Q(e){let t=[...e];return z&&(t=t.filter(e=>e.utilise===`O`)),V&&(t=t.filter(e=>e.section_id===`0`)),t=de(t,H,[`code`,`texte`,`complement`]),t=ae(t,U),t}function Ke(e,t=``,n=!1){let r=[];return e.forEach((e,i)=>{if(e.code!==``){let a=(t===``?``:t+`_`)+i,o={...e,key:a,isLeaf:!0,title:e.texte,editable:n};e.elements&&(o.children=Ke(e.elements,a,n),o.isLeaf=!1,o.editable=!0),r.push(o)}}),r}function qe(e){let t={...e};for(let e in t)Ie.has(e)&&(t[e]=t[e]===`1`);return t}function Je(e,t){return e.map(e=>({...e,title:e.editable?(0,q.jsx)(Fe,{node:e,handleSetText:Y,handleSetCode:X,byCode:m.getFieldValue(`contenu_by_code`),handleEdit:Be,handleDelete:ze}):`${e.title} (${e.code})`,children:e.children?Je(e.children):null}))}let $=d||!u;return(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(L,{form:m,onValuesChange:Le,style:{height:`100%`,display:`flex`,flexFlow:`column`},disabled:W,children:[(0,q.jsxs)(`div`,{className:`component-header`,children:[(0,q.jsxs)(`div`,{className:`header-title`,children:[(0,q.jsx)(ne,{onConfirm:We,modified:k,children:(0,q.jsx)(h,{type:`link`,style:{height:`100%`,paddingRight:`20px`},disabled:a.isPending,children:(0,q.jsx)(w,{})})}),`Gestion des classes`]}),(0,q.jsxs)(`div`,{className:`header-actions`,children:[(0,q.jsx)(h,{size:`default`,icon:(0,q.jsx)(ie,{}),disabled:$,onClick:()=>{ge(m.getFieldsValue(),y)},children:`Exporter`},`formExcelExportBtn`),f?.ISROLECTI&&(0,q.jsx)(h,{size:`default`,icon:(0,q.jsx)(te,{}),disabled:$,onClick:()=>{ve(t,u?.oid,u?.table_name)},children:`SQL`},`formSQLExportBtn`),(0,q.jsx)(T,{title:`Voulez-vous vraiment supprimer cette classe ?`,onConfirm:Ve,okText:`Supprimer`,okButtonProps:{danger:!0},cancelText:`Annuler`,disabled:$||u?.est_lecture_seule===`true`||W,children:(0,q.jsx)(h,{size:`default`,danger:!0,icon:(0,q.jsx)(me,{}),disabled:$||u?.est_lecture_seule===`true`||W,children:`Supprimer`})}),(0,q.jsx)(h,{size:`default`,type:`primary`,icon:(0,q.jsx)(g,{}),loading:a.isPending,disabled:$||!k||u?.est_lecture_seule===`true`,onClick:Ee,children:`Enregistrer`},`formSubmitbtn`)]})]}),(0,q.jsxs)(`div`,{className:`classes-description`,children:[(0,q.jsxs)(`div`,{className:`form-column`,children:[(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Code:`}),(0,q.jsx)(L.Item,{name:`code`,children:(0,q.jsx)(p,{})})]}),(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Texte:`}),(0,q.jsx)(L.Item,{name:`texte`,children:(0,q.jsx)(p,{})})]})]}),(0,q.jsxs)(`div`,{className:`form-column`,children:[(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Lecture seule:`}),(0,q.jsx)(`b`,{children:u?.est_lecture_seule===`1`?`Oui`:`Non`})]}),(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Saisie par code`}),(0,q.jsx)(L.Item,{name:`contenu_by_code`,valuePropName:`checked`,children:(0,q.jsx)(pe,{})})]})]}),f?.ISROLECTI&&(0,q.jsxs)(`div`,{className:`form-column`,children:[(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Classe CTI`}),(0,q.jsx)(L.Item,{name:`is_cti`,valuePropName:`checked`,children:(0,q.jsx)(I,{})})]}),(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Contenu non réplicable ailleurs`}),(0,q.jsx)(L.Item,{name:`contenu_non_replicable_ailleurs`,valuePropName:`checked`,children:(0,q.jsx)(I,{})})]})]})]}),$?(0,q.jsx)(`div`,{className:`loading-wrapper`,children:(0,q.jsx)(ce,{style:{height:`auto`}})}):(0,q.jsx)(`div`,{className:`component-content`,children:(0,q.jsxs)(`div`,{className:`transfer-layout-content`,children:[(0,q.jsxs)(`div`,{className:`classes-sections`,children:[(0,q.jsxs)(`div`,{className:`tree-header`,children:[(0,q.jsx)(`span`,{children:`Sections`}),(0,q.jsx)(`div`,{className:`header-actions`,children:(0,q.jsx)(h,{type:`link`,onClick:Re,children:(0,q.jsx)(S,{})})})]}),(0,q.jsx)(E,{treeData:x,blockNode:!0,onSelect:Z,selectedKeys:le})]}),(0,q.jsxs)(`div`,{className:`transfer-actions`,children:[(0,q.jsx)(h,{type:`link`,onClick:()=>G(),disabled:D.contenu_by_code||!j||!N.length||W,children:(0,q.jsx)(oe,{})}),(0,q.jsx)(h,{type:`link`,onClick:()=>K(),disabled:D.contenu_by_code||!F.length||W,children:(0,q.jsx)(se,{})})]}),(0,q.jsxs)(he,{className:`classes-options`,defaultSize:{width:`50%`},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:[(0,q.jsxs)(`div`,{className:`options-search`,children:[(0,q.jsx)(`div`,{className:`options-dragger`,children:(0,q.jsx)(Se,{style:{fontSize:16}})}),(0,q.jsxs)(`div`,{className:`form-column`,children:[(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{className:`first-label`,children:`Recherche par texte`}),(0,q.jsx)(p,{value:H,onChange:Me})]})}),(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Référencés uniquement`}),(0,q.jsx)(I,{checked:z,onChange:De})]})}),(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{children:`Non attribués uniquement`}),(0,q.jsx)(I,{checked:V,onChange:Oe})]})})]}),(0,q.jsxs)(`div`,{className:`form-column`,children:[(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsxs)(`div`,{className:`form-item`,children:[(0,q.jsx)(`span`,{style:{minWidth:`100px`},children:`Liste de codes`}),(0,q.jsx)(p.TextArea,{value:U,onChange:J})]})}),(0,q.jsx)(`div`,{className:`form-row`,children:(0,q.jsx)(`div`,{className:`form-item`,children:(0,q.jsx)(h,{type:`primary`,onClick:Ue,children:`De/Sélectionner`})})})]})]}),(0,q.jsx)(`div`,{className:`options-table`,children:(0,q.jsx)(_e,{fixed:!1,columns:_,data:y,loading:l.isFetching,selectedRows:N,onRowSelect:He,shiftMulti:!0})})]})]})})]})})};X.propTypes={selectedClasseParams:J.default.object,softCode:J.default.string,handleCloseEditor:J.default.func,onClasseCreated:J.default.func};var Le=B.memo(X),Z=e(N()),{DirectoryTree:Re}=E,ze=({tables:e,refTables:t,showReferences:n,handleSelectedClasse:r,search:i,isLoading:a,softCode:o})=>{let s=Me(),[c,l]=(0,B.useState)(null),[u,d]=(0,B.useState)(null),[f,p]=(0,B.useState)([]),[m,g]=(0,B.useState)([]),[_,v]=(0,B.useState)(null);(0,B.useEffect)(()=>{e&&t&&(l(D(e)),d(D(t)))},[e,t]),(0,B.useEffect)(()=>{p(x(c))},[c]),(0,B.useEffect)(()=>{g(i===``?[]:f.map(e=>e.title.toLowerCase().includes(i.toLowerCase())?y(e.key,c):null).filter((e,t,n)=>e&&n.indexOf(e)===t))},[i,c,f]);let w=e=>{g(e)},T=e=>{let t=b(u).find(t=>t.key===e[0]);t&&v(t.classe_id)},E=()=>{let e=be(o);s.mutate({refoid:_,softCode:o,schema:e},{onSuccess:()=>v(null)})};function D(e,t=``,n=!1){let r=[];return Object.values(e).forEach((e,i)=>{let a=(t===``?``:t+`_`)+(0,Z.default)(e.texte),o={title:e.texte,key:a,table_id:e.table_id};e.table_id===void 0&&(o.key=a);let s,c;e.classes!==void 0&&(s=O(e.classes,a,n)),e.groups!==void 0&&(c=D(e.groups,a,n)),s!==void 0&&c!==void 0?o.children=s.concat(c):s===void 0?o.children=c:o.children=s,r.push(o)}),r.sort((e,t)=>e.title.localeCompare(t.title,void 0,{numeric:!0,sensitivity:`base`}))}function O(e,t,n){let r=[];return Object.values(e).forEach(e=>{let n={title:e.texte,key:t+`_`+(0,Z.default)(e.texte),isLeaf:!0,table_id:e.table_id,classe_id:e.classe_id,code:e.code};e.classe_id===`-1`?n.icon=(0,q.jsx)(S,{}):n.icon=(0,q.jsx)(P,{}),r.push(n)}),r.sort((e,t)=>Number(e.classe_id)-Number(t.classe_id))}return(0,q.jsxs)(`div`,{className:`component-content`,children:[(0,q.jsxs)(`div`,{className:`classes-manager-classes`,children:[a?(0,q.jsx)(`div`,{className:`listes-spin-loader`,children:(0,q.jsx)(C,{})}):null,(0,q.jsx)(Re,{onSelect:r,treeData:c,expandedKeys:m,onExpand:w})]}),(0,q.jsxs)(`div`,{className:`cti-listes-manager-references`,style:{display:n?`flex`:`none`},children:[(0,q.jsxs)(`div`,{className:`references-header`,children:[(0,q.jsx)(`h3`,{children:`Classes de références`}),(0,q.jsx)(h,{style:{marginLeft:`10px`},size:`small`,onClick:E,icon:(0,q.jsx)(M,{}),loading:s.isPending,disabled:!_,children:`Importer`},`importBtn`)]}),(0,q.jsx)(`div`,{className:`references-tree`,children:(0,q.jsx)(Re,{treeData:u,onSelect:T})})]})]})};ze.propTypes={tables:J.default.object,refTables:J.default.object,showReferences:J.default.bool,handleSelectedClasse:J.default.func,search:J.default.string,isLoading:J.default.bool,softCode:J.default.string};var Be=B.memo(ze),Ve=B.memo(()=>{let e=O(),{search:t}=k(),n=(0,B.useMemo)(()=>Object.fromEntries(new URLSearchParams(t)),[t]),{softCode:r}=ue(),i=De(r),a=i.data?.tables??{},o=i.data?.refTables??{},[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(!1),[d,m]=(0,B.useState)(null),[g,_]=(0,B.useState)(``);(0,B.useEffect)(()=>{c(!1),m(null)},[r]),(0,B.useEffect)(()=>{if(!n.classe||s||!Object.keys(a).length)return;let t=n.classe,r=C(Object.values(a)).find(e=>e.code===t);r?(m({classeId:r.classe_id,tableId:r.table_id,key:r.key}),c(!0)):e({search:``},{replace:!0})},[n.classe,a]);let v=()=>{c(!1),e({search:``}),m(null)},y=(t,n)=>{e({search:`?classe=${n}`},{replace:!0}),m(e=>({...e,classeId:t}))},b=e=>{_(e.target.value)},x=()=>{u(!l)},S=(t,n)=>{n.node.isLeaf===!0&&(e({search:`?classe=${n.node.code}`},{replace:!0}),m({classeId:n.node.classe_id,tableId:n.node.table_id,key:n.node.key}),c(!0))};function C(e){let t=[];return Object.values(e).forEach(e=>{t=[...t,...Object.values(e.classes)]}),t}return s?(0,q.jsx)(Le,{selectedClasseParams:d,softCode:r,handleCloseEditor:v,onClasseCreated:y}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(f,{children:(0,q.jsx)(`title`,{children:`iCTI | Gestion des classes`})}),(0,q.jsxs)(`div`,{className:`component-header`,children:[(0,q.jsx)(`div`,{className:`header-title`,children:`Gestion des classes`}),(0,q.jsxs)(`div`,{className:`header-actions`,children:[(0,q.jsx)(p,{placeholder:`Recherche`,value:g,onChange:b}),(0,q.jsx)(h,{onClick:()=>i.refetch(),icon:(0,q.jsx)(le,{}),loading:i.isFetching,children:`Actualiser`},`refreshBtn`),(0,q.jsx)(h,{style:{width:`148.5px`},type:l?`secondary`:`primary`,onClick:x,icon:(0,q.jsx)(P,{}),children:l?`Cacher références`:`Afficher références`},`showReferencesBtn`)]})]}),(0,q.jsx)(Be,{tables:a,refTables:o,showReferences:l,handleSelectedClasse:S,search:g,isLoading:i.isFetching,softCode:r})]})});export{Ve as default}; \ No newline at end of file diff --git a/assets/CloseButton-CawXCByx.js b/assets/CloseButton-CawXCByx.js new file mode 100644 index 0000000..2e5f92f --- /dev/null +++ b/assets/CloseButton-CawXCByx.js @@ -0,0 +1,5 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{$ as r,Cr as i,Sr as a,fr as o,gr as s,hr as c,n as l,nt as u,r as d}from"./axios-BDcMaxoP.js";import{t as f}from"./input-C55Uc3oN.js";import{B as p,i as m,t as h}from"./ctiAxios-HKh7HuhO.js";import{t as g}from"./button-xukQsL9n.js";import{s as _}from"./sanitizeDataUtils-DBUp8Fd9.js";import{t as v}from"./queryOptions-Cg9orY1Y.js";import{t as y}from"./DiscardChangesButton-BFEqbiGO.js";import{t as b}from"./RowLabelWithIcon-Uk-N0Fra.js";import{D as ee,E as x,et as S,s as te}from"./index-C1mw6CgG.js";var C=e(t()),w=e(l()),T=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=c(t,`INDICATEUR`),r=c(t,`TABLE`),i=c(t,`THEME`),a=c(t,`THEME_SEARCH`);return{indicators:E(n),tables:D(r),themesSearch:ne(a),themes:O(i)}},E=e=>{let t=[];return e&&e.forEach((e,n)=>{let r=s(e),i=c(e,`THEME`),a=[],o=[],l=[];i&&i.forEach(e=>{let t=s(e);a.push(t.oid)});for(let e=1;e<=6;e++)r[`theme_${e}_id`]!==`0`&&o.push(r[`theme_${e}_id`]);for(let e=1;e<=5;e++)r[`dimension_date_${e}`]!==``&&l.push(Number(r[`dimension_date_${e}`]));let u=r.entete,d=r.description;r.entete=u.replaceAll(` `,` +`),r.description=d.replaceAll(` `,` +`),r.themesSearch=a,r.themes=o,r.dimensions=l,r.is_cti=r.is_cti===`1`,r.is_hide=r.is_hide===`1`,r.key=n,t.push(r)}),t},D=e=>{let t=[];return e&&e.forEach(e=>{let n=s(e),r=[];n.nb_dimensions_date=Number(n.nb_dimensions_date);for(let e=1;e<=5;e++)n[`dimensions_date_texte_${e}`]!==``&&r.push({value:e,label:n[`dimensions_date_texte_${e}`]});n.dimensions=r,t.push(n)}),t},O=e=>{let t=[];return e&&e.forEach((e,n)=>{let r=s(e);r.title=r.label,r.value=r.data,t.push(r)}),_(t)},ne=e=>{let t=[];return e&&e.forEach((e,n)=>{let r=s(e);r.title=r.label,r.value=r.data,t.push(r)}),_(t)},re=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=c(t,`RAPPORT`),r=c(t,`REFRAPPORT`),a=c(t,`COMBO_GROUP`),o=c(t,`COMBO_RAPPORT`),s=c(t,`COMBO_CONDITION`),l=c(t,`COMBO_TYPERAPPORT`);return{reports:i(n),refReports:i(r),comboGroup:k(a),comboReport:A(o),comboCondition:j(s),conditions:i(c(s[0],`RECORD`)),comboType:k(l)}},ie=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=c(t,`RAPPORT`)[0],r=c(n,`RUBRIQUE`),i=[];r&&r.length&&r.forEach((e,t)=>{let n=s(e),r=n.entete,a=n.description;n.entete=r.replaceAll(` `,` +`),n.description=a.replaceAll(` `,` +`),n.border_thickness=Number(n.border_thickness),n.is_hide=Number(n.is_hide),n.key=t,i.push(n)});let a=s(n);return a.sections=i,a},ae=e=>{let t=e.getElementsByTagName(`LASTSTATUS_ACTIVE`)[0];return s(t).status},oe=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return i(c(t,`VIEW`))},se=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=c(t,`INDICATEUR`),r=c(t,`TABLE`),i=c(t,`THEME`);return{tables:D(r),themes:O(i),indicators:E(n)}};function k(e){let t=c(e[0],`RECORD`),n=[];return t&&t.length&&t.forEach(e=>{let t=s(e);t.value=t.data??t.oid,n.push(t)}),n}function A(e){let t=c(e[0],`RECORD`),n=[];return t&&t.length&&t.forEach(e=>{let t=s(e);t.value=t.oid,n.push(t)}),n}function j(e){let t=c(e[0],`RECORD`),n=[];return t&&t.length&&t.forEach(e=>{let t=s(e);t.oid&&(t.value=t.oid,n.push(t))}),n=_(n),n}var M=async e=>re(await m(`modules/base/php/getRapports.php`,{softCode:e})),N=async(e,t)=>ie(await m(`modules/base/php/httpService_rapportsManager_getRapport.php`,{softCode:e,oid:t})),P=async()=>oe(await m(`modules/base/php/httpService_rapportsManager_getLastViews.php`));async function F(e,t){await m(`modules/base/php/setRapport.php`,{action:`save`,softCode:e,xmldef:t})}async function I(e,t){await m(`modules/base/php/setRapport.php`,{action:`delete`,softCode:e,xmldef:t})}async function L(e,t){await m(`modules/base/php/setRapport.php`,{action:`copy`,softCode:e,xmldef:t})}async function R(e,t){await m(`modules/base/php/setRapport.php`,{action:`updateGeneralSettings`,softCode:e,xmldef:t})}async function z(e,t){await m(`modules/base/php/setRapport.php`,{action:`refcopy`,softCode:e,refoid:t})}async function B(){return ae(await m(`modules/outils/php/httpService_exploitManager_getExecStatus.php`,{job:`iCTI_aggregateCtiIndicators`}))}async function V(e){await m(`modules/outils/php/execSystemExploit.php`,{option:`calculEssentiels`,context:e})}var H=async e=>{let t=o(),n=new FormData;n.append(`modules`,e),n.append(`options`,`-separator -fulldefinition`);let r=await h({method:`post`,url:t+`modules/base/php/httpService_chooseIndicateurs_getIndicateurs.php`,data:n,headers:{"Content-Type":`multipart/form-data`},responseType:`arraybuffer`});return se(a(new TextDecoder(`iso-8859-15`).decode(r.data)))},U={all:[`reports`],list:e=>[...U.all,`list`,e],detail:(e,t)=>[...U.all,`detail`,e,t],lastViews:()=>[...U.all,`lastViews`],indicators:e=>[...U.all,`indicators`,e],computingStatus:()=>[...U.all,`computingStatus`]},W={reports:[],refReports:[],comboGroup:[],comboReport:[],comboCondition:[],conditions:[],comboType:[]},ce={},G={tables:[],themes:[],indicators:[]},le=e=>v({queryKey:U.list(e),queryFn:()=>M(e),enabled:!!e}),ue=e=>d(le(e)),de=(e,t)=>v({queryKey:U.detail(e,t),queryFn:()=>N(e,t),enabled:!!e&&!!t}),fe=(e,t)=>d(de(e,t)),pe=()=>v({queryKey:U.lastViews(),queryFn:P}),me=()=>d(pe()),he=e=>v({queryKey:U.indicators(e),queryFn:()=>H(e),enabled:!!e}),K=e=>d(he(e));function ge(){return d({queryKey:U.computingStatus(),queryFn:B,refetchInterval:e=>e.state.data?1e4:!1})}var q=n(),J=({selectedRowKeys:e,setSelectedRowKeys:t,selectionsModified:n,setSelectionsModified:r,handleAddIndicators:i,handleModifyIndicator:a,handleShowModal:o,tableData:s,options:c,joinedIndicatorIndex:l})=>{let d=t=>{if(!n)o();else{let n=[];e.forEach(e=>{n.push(s.find(t=>t.key===e))}),c.oneOnly?a(l?{value:n[0].oid,field:l}:n[0]):i(n),r(!1),t===!0?o():p(n.length)}},f=()=>{e.length?t([]):t(s.map(e=>e.key))};function p(e){u.success(`${e} indicateurs ajoutés`)}return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(g,{onClick:o,children:n?`Annuler`:`Fermer`}),c.oneOnly===!1&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(g,{onClick:()=>d(!1),disabled:!n,children:`Ajouter et continuer`}),(0,q.jsx)(g,{onClick:f,disabled:!n,children:`Tout (de) selectionner`})]}),(0,q.jsx)(g,{type:`primary`,onClick:()=>d(!0),disabled:!n,children:`Ajouter et fermer`})]})};J.propTypes={handleAddIndicators:w.default.func,handleModifyIndicator:w.default.func,handleShowModal:w.default.func,options:w.default.object,selectedRowKeys:w.default.array,setSelectedRowKeys:w.default.func,selectionsModified:w.default.bool,setSelectionsModified:w.default.func,tableData:w.default.array};function Y(e){let t={width:`95%`,height:`100%`};for(let n in e)switch(n){case`font_size`:e[n]!==`0`&&(t.fontSize=`${e[n]}px`);break;case`font_weight`:t.fontWeight=e[n];break;case`padding`:t.paddingLeft=`${e[n]}px`;break;case`color`:e.is_hide!==1&&(t.color=e[n]);break;case`background_color`:e.is_hide!==1&&(t.backgroundColor=e[n]);break;case`border_thickness`:e[n]===1&&(t.border=`2px solid rgba(0, 0, 0, 0.5)`);break;case`is_hide`:e[n]===1&&(t.color=p.inactiveGrey);break;default:break}return t}var X=e=>{let t=[{title:`Contexte`,dataKey:`contexte`,width:100},{title:`Code`,dataKey:`code`},{title:`Nom`,dataKey:`texte`,frozen:`left`,width:600,cellRenderer:({rowData:e})=>(0,q.jsx)(`div`,{className:`BaseTable__row-cell-text`,children:(0,q.jsx)(b,{label:e.label?e.label:e.texte,isCti:e.is_cti,icon:`Hospital`,toolTipLabel:`Rapport créé par l'établissement`})})},{title:`Condition`,dataKey:`rapport_indicateur_condition`}];return((e,t)=>{t===`ESSENTIEL`&&e.unshift({title:`Groupe`,dataKey:`group_texte`,width:150})})(t,e),t.map(e=>({width:200,resizable:!0,key:e.dataKey,...e}))};function _e(e,t,n,r){let i=[{title:`N°`,width:40,dataKey:`numero_rubrique`,frozen:`left`},{title:`Nom`,dataKey:`entete_etendue`,frozen:`left`,width:400,cellRenderer:({rowData:e})=>{let t=e.entete_etendue===``?e.indicateur_entete_etendue:e.entete_etendue,n=Y(e);return(0,q.jsx)(`div`,{style:n,className:`BaseTable__row-cell-text`,children:(0,q.jsx)(b,{label:t,isCti:e.is_cti,style:n,icon:`Hospital`,toolTipLabel:`Indicateur créé par l'établissement`})})}},{title:`Code`,width:150,dataKey:`code`},{title:`Format de sortie`,dataKey:`output_format`,width:120,dataGetter:({rowData:e})=>{let t=`output_format`;return e[t]===``?e.indicateur_output_format:e[t]}},{title:`Condition`,dataKey:`indicateur_condition`,width:120}];return e.type_rapport===`ESSENTIEL`?i.push({title:`Picto`,width:75,dataKey:`picto_enabled`,dataGetter:({rowData:e})=>{let t=``;return t+=e.picto_enabled===`1`?`+`:``,t+=e.positif_is_good===`1`?` OK`:``,t}},{title:`Série`,width:800,dataGetter:({rowData:e})=>{let t=``;return t=n(e,r).map(e=>e?.code).join(` / `),t}}):i.push({title:`Nom abrégé`,dataKey:`entete`,width:250,dataGetter:({rowData:e})=>e.entete===``?e.indicateur_entete:e.entete},{title:`Fonction Total`,width:150,dataKey:`total_function`,dataGetter:({rowData:e})=>{let n=``;return t.forEach(t=>{t.value===e.total_function&&(n+=t.title)}),n}}),e.type_rapport===`VUEPARAM`&&i.push({title:`Comparé avec`,width:300,dataKey:`compared_indicator_label`}),i.map(e=>({width:200,...e,resizable:!0,key:e.dataKey,className:`cti-default-table`,headerClassName:`cti-default-table`}))}var ve=e=>[{title:`Code`,dataIndex:`code`,dataKey:`code`,key:`code`,width:250,resizable:!0},{title:`Nom`,dataKey:`texte`,dataIndex:`texte`,key:`name`,frozen:`left`,width:400,cellRenderer:({rowData:e})=>{let t=e.texte===``?e.entete_etendue:e.texte,n=Y(e);return(0,q.jsx)(`div`,{style:n,className:`BaseTable__row-cell-text`,children:(0,q.jsx)(b,{label:t,isCti:e.is_cti?`1`:`0`,style:n,icon:`Hospital`,toolTipLabel:`Indicateur créé par l'établissement`})})}},{title:`Format de sortie`,dataKey:`output_format`,dataIndex:`output_format`,key:`output_format`,width:200},{title:`Table`,dataKey:`table_name`,dataGetter:({rowData:t})=>{let n=t.table_name,r=e.find(e=>e.code===n);return r?r.texte:n},width:200,key:`table`}],ye=[],Z=({showModal:e,handleShowModal:t,handleAddIndicators:n,handleModifyIndicator:r,options:i,specifiedIndicators:a=ye,joinedIndicatorIndex:o=null})=>{let[s,c]=(0,C.useState)(``),[l,u]=(0,C.useState)([]),[d,p]=(0,C.useState)(!1),{softCode:m}=ee(),h=K(m).data??G,g=(0,C.useMemo)(()=>x(a.length?a:h.indicators,s,[`texte`,`code`]),[h.indicators,s,a]);(0,C.useEffect)(()=>{u([])},[e]);let _=(0,q.jsx)(J,{selectedRowKeys:l,setSelectedRowKeys:u,setSelectionsModified:p,selectionsModified:d,handleAddIndicators:n,handleModifyIndicator:r,handleShowModal:t,tableData:g,options:i,joinedIndicatorIndex:o});return(0,q.jsx)(S,{open:e,onCancel:t,footer:_,width:`75%`,bodyStyle:{height:`70vh`},centered:!0,zIndex:3010,children:(0,q.jsxs)(`div`,{className:`indicator-modal`,children:[(0,q.jsxs)(`div`,{className:`indicator-modal-header`,children:[(0,q.jsx)(`span`,{className:`modal-title`,children:`Choix d'un ou plusieurs indicateurs`}),(0,q.jsxs)(`div`,{className:`modal-search`,children:[(0,q.jsx)(`span`,{children:`Rechercher par texte:`}),(0,q.jsx)(f,{value:s,onChange:e=>{c(e.target.value)}})]})]}),(0,q.jsx)(`div`,{className:`indicator-modal-table`,children:(0,q.jsx)(te,{rowKey:`key`,columns:ve(h.tables),data:g,selectedRow:i.oneOnly===!0?g.find(e=>e.key===l[0]):null,selectedRows:i.oneOnly===!1?l:null,shiftMulti:i.oneOnly!==!0,onRowSelect:e=>{if(p(!0),i.oneOnly)l.length&&l[0]===e?u([]):u([e]);else{let t=[...l];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),u(t)}}})})]})})};Z.propTypes={showModal:w.default.bool,handleShowModal:w.default.func,handleAddIndicators:w.default.func,handleModifyIndicator:w.default.func,options:w.default.object,specifiedIndicators:w.default.array};var Q=({onConfirm:e,modified:t,disabled:n,placement:r=`topRight`})=>(0,q.jsx)(y,{onConfirm:e,modified:t,disabled:n,text:`Annuler`,title:`Annuler les modifications ?`,okText:`Annuler les modifications`,cancelText:`Revenir à l'éditeur`,placement:r});Q.propTypes={onConfirm:w.default.func.isRequired,modified:w.default.bool,disabled:w.default.bool,placement:w.default.string};var $=({onConfirm:e,modified:t,disabled:n,placement:i=`topRight`})=>(0,q.jsx)(y,{onConfirm:e,modified:t,placement:i,children:(0,q.jsx)(g,{type:`link`,className:`close-button`,disabled:n,children:(0,q.jsx)(r,{})})});$.propTypes={onConfirm:w.default.func.isRequired,modified:w.default.bool,disabled:w.default.bool,placement:w.default.string};export{I as _,_e as a,R as b,ce as c,K as d,ue as f,L as g,z as h,X as i,ge as l,U as m,Q as n,W as o,fe as p,Z as r,G as s,$ as t,me as u,F as v,T as x,V as y}; \ No newline at end of file diff --git a/assets/CloseButton-DRGleAxl.css b/assets/CloseButton-DRGleAxl.css new file mode 100644 index 0000000..1b84f2e --- /dev/null +++ b/assets/CloseButton-DRGleAxl.css @@ -0,0 +1 @@ +.indicator-modal-header{flex-direction:column;justify-content:space-between;margin-bottom:20px;display:flex}.modal-title{font-size:16px;font-weight:800}.modal-search{flex-direction:row;align-items:center;width:50%;margin-top:12px;display:flex}.modal-search>span{min-width:200px;font-weight:600}.indicator-modal{flex-flow:column;height:100%;display:flex}.indicator-modal-table{flex:3;width:100%;min-height:0} diff --git a/assets/ColorPicker-B-UA61SD.css b/assets/ColorPicker-B-UA61SD.css new file mode 100644 index 0000000..275a87f --- /dev/null +++ b/assets/ColorPicker-B-UA61SD.css @@ -0,0 +1 @@ +.color-button{cursor:pointer;background:#fff;border-radius:1px;max-height:25px;margin:5px 0;padding:5px;display:inline-flex;box-shadow:0 0 0 1px #0000001a}.block-picker{z-index:3;margin-top:5px;margin-left:18px;position:absolute!important}.color-picker-container{flex-direction:row;align-items:center;display:flex}.reset-button{margin-left:10px} diff --git a/assets/ColorPicker-BYeWsagE.js b/assets/ColorPicker-BYeWsagE.js new file mode 100644 index 0000000..69be5ab --- /dev/null +++ b/assets/ColorPicker-BYeWsagE.js @@ -0,0 +1,27 @@ +import{o as e,t}from"./chunk-jRWAZmH_.js";import{n,t as r}from"./jsx-runtime-CEixWuwE.js";import{It as i,Lt as a,Rt as o,n as s}from"./axios-BDcMaxoP.js";import{t as c}from"./button-xukQsL9n.js";import{t as l}from"./tooltip-D0a9NNK5.js";import{S as u,v as d}from"./sanitizeDataUtils-DBUp8Fd9.js";import{r as f}from"./react-redux-Bek2gPun.js";import{t as p}from"./cloneDeep-CmY0yaDx.js";import{Z as m}from"./index-C1mw6CgG.js";import{n as h,t as g}from"./map-CF4UXsnC.js";var _=t(((e,t)=>{var n=a(),r=o(),s=i(),c=`[object String]`;function l(e){return typeof e==`string`||!r(e)&&s(e)&&n(e)==c}t.exports=l})),v=t(((e,t)=>{var n=d();function r(e){return typeof e==`function`?e:n}t.exports=r})),y=t(((e,t)=>{var n=u(),r=v();function i(e,t){return e&&n(e,r(t))}t.exports=i})),ee=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flattenNames=void 0;var t=a(_()),n=a(y()),r=a(h()),i=a(g());function a(e){return e&&e.__esModule?e:{default:e}}e.default=e.flattenNames=function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=[];return(0,i.default)(a,function(i){Array.isArray(i)?e(i).map(function(e){return o.push(e)}):(0,r.default)(i)?(0,n.default)(i,function(e,t){e===!0&&o.push(t),o.push(t+`-`+e)}):(0,t.default)(i)&&o.push(i)}),o}})),te=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeClasses=void 0;var t=i(y()),n=i(p()),r=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],a=e.default&&(0,n.default)(e.default)||{};return i.map(function(n){var i=e[n];return i&&(0,t.default)(i,function(e,t){a[t]||(a[t]={}),a[t]=r({},a[t],i[t])}),n}),a}})),ne=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.autoprefix=void 0;var t=r(y()),n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(e,`__esModule`,{value:!0}),e.hover=void 0;var t=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:`span`;return function(i){s(c,i);function c(){var i,s,l,u;a(this,c);var d=[...arguments];return u=(s=(l=o(this,(i=c.__proto__||Object.getPrototypeOf(c)).call.apply(i,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return r.default.createElement(n,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},r.default.createElement(e,t({},l.props,l.state)))},s),o(l,u)}return c}(r.default.Component)}})),ie=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.active=void 0;var t=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:`span`;return function(i){s(c,i);function c(){var i,s,l,u;a(this,c);var d=[...arguments];return u=(s=(l=o(this,(i=c.__proto__||Object.getPrototypeOf(c)).call.apply(i,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return r.default.createElement(n,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},r.default.createElement(e,t({},l.props,l.state)))},s),o(l,u)}return c}(r.default.Component)}})),ae=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=function(e,t){var n={},r=function(e){n[e]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0};return e===0&&r(`first-child`),e===t-1&&r(`last-child`),(e===0||e%2==0)&&r(`even`),Math.abs(e%2)===1&&r(`odd`),r(`nth-child`,e),n}})),oe=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReactCSS=e.loop=e.handleActive=e.handleHover=e.hover=void 0;var t=s(ee()),n=s(te()),r=s(ne()),i=s(re()),a=s(ie()),o=s(ae());function s(e){return e&&e.__esModule?e:{default:e}}e.hover=i.default,e.handleHover=i.default,e.handleActive=a.default,e.loop=o.default,e.default=e.ReactCSS=function(e){var i=[...arguments].slice(1),a=(0,t.default)(i),o=(0,n.default)(e,a);return(0,r.default)(o)}})),b=e(n()),x=e(oe()),se=function(e,t,n,r,i){var a=i.clientWidth,o=i.clientHeight,s=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,c=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n===`vertical`){var d=void 0;if(d=u<0?0:u>o?1:Math.round(u*100/o)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:`rgb`}}else{var f=void 0;if(f=l<0?0:l>a?1:Math.round(l*100/a)/100,r!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:`rgb`}}return null},ce={},le=function(e,t,n,r){if(typeof document>`u`&&!r)return null;var i=r?new r:document.createElement(`canvas`);i.width=n*2,i.height=n*2;var a=i.getContext(`2d`);return a?(a.fillStyle=e,a.fillRect(0,0,i.width,i.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),i.toDataURL()):null},ue=function(e,t,n,r){var i=e+`-`+t+`-`+n+(r?`-server`:``);if(ce[i])return ce[i];var a=le(e,t,n,r);return ce[i]=a,a},de=Object.assign||function(e){for(var t=1;t-1},De=function(e){return Number(String(e).replace(/%/g,``))},Oe=1,C=function(e){Se(t,e);function t(e){be(this,t);var n=xe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=De(e.target.value);if(!isNaN(t)&&Ee(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===we?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+ Oe++,n}return ve(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`getValueObjectWithLabel`,value:function(e){return ye({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||Ce}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,x.default)({default:{wrap:{position:`relative`}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:`ew-resize`}}},{"user-override":!0},this.props);return b.createElement(`div`,{style:t.wrap},b.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:`false`}),this.props.label&&!this.props.hideLabel?b.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(b.PureComponent||b.Component),ke=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:`hsl`}}else{var d=void 0;if(d=c<0?0:c>i?359:360*(c*100/i)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:`hsl`}}return null},Ae=function(){function e(e,t){for(var n=0;n-1}function Ve(e,t){var n=this.__data__,r=Ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function E(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=gn}function R(e){return e!=null&&_n(e.length)&&!ct(e)}function vn(e){return I(e)&&R(e)}function yn(){return!1}var bn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,xn=bn&&typeof module==`object`&&module&&!module.nodeType&&module,Sn=xn&&xn.exports===bn?D.Buffer:void 0,Cn=(Sn?Sn.isBuffer:void 0)||yn,wn=`[object Object]`,Tn=Function.prototype,En=Object.prototype,Dn=Tn.toString,On=En.hasOwnProperty,kn=Dn.call(Object);function An(e){if(!I(e)||k(e)!=wn)return!1;var t=on(e);if(t===null)return!0;var n=On.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Dn.call(n)==kn}var jn=`[object Arguments]`,Mn=`[object Array]`,Nn=`[object Boolean]`,Pn=`[object Date]`,Fn=`[object Error]`,In=`[object Function]`,Ln=`[object Map]`,Rn=`[object Number]`,zn=`[object Object]`,Bn=`[object RegExp]`,Vn=`[object Set]`,Hn=`[object String]`,Un=`[object WeakMap]`,Wn=`[object ArrayBuffer]`,Gn=`[object DataView]`,Kn=`[object Float32Array]`,qn=`[object Float64Array]`,Jn=`[object Int8Array]`,Yn=`[object Int16Array]`,Xn=`[object Int32Array]`,Zn=`[object Uint8Array]`,Qn=`[object Uint8ClampedArray]`,$n=`[object Uint16Array]`,er=`[object Uint32Array]`,z={};z[Kn]=z[qn]=z[Jn]=z[Yn]=z[Xn]=z[Zn]=z[Qn]=z[$n]=z[er]=!0,z[jn]=z[Mn]=z[Wn]=z[Nn]=z[Gn]=z[Pn]=z[Fn]=z[In]=z[Ln]=z[Rn]=z[zn]=z[Bn]=z[Vn]=z[Hn]=z[Un]=!1;function tr(e){return I(e)&&_n(e.length)&&!!z[k(e)]}function nr(e){return function(t){return e(t)}}var rr=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ir=rr&&typeof module==`object`&&module&&!module.nodeType&&module,ar=ir&&ir.exports===rr&&Ke.process,or=function(){try{return ir&&ir.require&&ir.require(`util`).types||ar&&ar.binding&&ar.binding(`util`)}catch{}}(),sr=or&&or.isTypedArray,cr=sr?nr(sr):tr;function lr(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var ur=Object.prototype.hasOwnProperty;function dr(e,t,n){var r=e[t];(!(ur.call(e,t)&&Fe(r,n))||n===void 0&&!(t in e))&&Ut(e,t,n)}function fr(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=Mr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ir=Fr(jr);function Lr(e,t){return Ir(kr(e,t,Er),e+``)}function Rr(e,t,n){if(!A(n))return!1;var r=typeof t;return(r==`number`?R(n)&&gr(t,n.length):r==`string`&&t in n)?Fe(n[t],e):!1}function zr(e){return Lr(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Rr(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r=t||n<0||d&&r>=a}function _(){var e=Vr();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function ee(){return s===void 0?o:v(Vr())}function te(){var e=Vr(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return te.cancel=y,te.flush=ee,te}var ii=`Expected a function`;function ai(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ii);return A(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),ri(e,t,{leading:r,maxWait:t,trailing:i})}var oi=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,a=r.height,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),l<0?l=0:l>a&&(l=a);var u=c/i,d=1-l/a;return{h:t.h,s:u,v:d,a:t.a,source:`hsv`}},si=function(){function e(e,t){for(var n=0;n=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return V(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Li,arguments)},brighten:function(){return this._applyModification(Ri,arguments)},darken:function(){return this._applyModification(zi,arguments)},desaturate:function(){return this._applyModification(Pi,arguments)},saturate:function(){return this._applyModification(Fi,arguments)},greyscale:function(){return this._applyModification(Ii,arguments)},spin:function(){return this._applyModification(Bi,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Wi,arguments)},complement:function(){return this._applyCombination(Vi,arguments)},monochromatic:function(){return this._applyCombination(Gi,arguments)},splitcomplement:function(){return this._applyCombination(Ui,arguments)},triad:function(){return this._applyCombination(Hi,[3])},tetrad:function(){return this._applyCombination(Hi,[4])}},V.fromRatio=function(e,t){if(Si(e)==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=$i(e[r]));e=n}return V(e,t)};function Ti(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=na(e)),Si(e)==`object`&&(K(e.r)&&K(e.g)&&K(e.b)?(t=Ei(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):K(e.h)&&K(e.s)&&K(e.v)?(r=$i(e.s),i=$i(e.v),t=Ai(e.h,r,i),o=!0,s=`hsv`):K(e.h)&&K(e.s)&&K(e.l)&&(r=$i(e.s),a=$i(e.l),t=Oi(e.h,r,a),o=!0,s=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=Yi(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function Ei(e,t,n){return{r:H(e,255)*255,g:H(t,255)*255,b:H(n,255)*255}}function Di(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function ki(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,c=r-i;if(o=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(V(r));return a}function Gi(e,t){t||=6;for(var n=V(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(V({h:r,s:i,v:a})),a=(a+s)%1;return o}V.mix=function(e,t,n){n=n===0?0:n||50;var r=V(e).toRgb(),i=V(t).toRgb(),a=n/100;return V({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},V.readability=function(e,t){var n=V(e),r=V(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},V.isReadable=function(e,t,n){var r=V.readability(e,t),i,a=!1;switch(i=ra(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},V.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var l=0;li&&(i=a,r=V(t[l]));return V.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,V.mostReadable(e,[`#fff`,`#000`],n))};var Ki=V.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},qi=V.hexNames=Ji(Ki);function Ji(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Yi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function H(e,t){Zi(e)&&(e=`100%`);var n=Qi(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Xi(e){return Math.min(1,Math.max(0,e))}function U(e){return parseInt(e,16)}function Zi(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function Qi(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function W(e){return e.length==1?`0`+e:``+e}function $i(e){return e<=1&&(e=e*100+`%`),e}function ea(e){return Math.round(parseFloat(e)*255).toString(16)}function ta(e){return U(e)/255}var G=function(){var e=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,t=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`,n=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(e),rgb:RegExp(`rgb`+t),rgba:RegExp(`rgba`+n),hsl:RegExp(`hsl`+t),hsla:RegExp(`hsla`+n),hsv:RegExp(`hsv`+t),hsva:RegExp(`hsva`+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function K(e){return!!G.CSS_UNIT.exec(e)}function na(e){e=e.replace(Ci,``).replace(wi,``).toLowerCase();var t=!1;if(Ki[e])e=Ki[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n;return(n=G.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=G.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=G.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=G.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=G.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=G.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=G.hex8.exec(e))?{r:U(n[1]),g:U(n[2]),b:U(n[3]),a:ta(n[4]),format:t?`name`:`hex8`}:(n=G.hex6.exec(e))?{r:U(n[1]),g:U(n[2]),b:U(n[3]),format:t?`name`:`hex`}:(n=G.hex4.exec(e))?{r:U(n[1]+``+n[1]),g:U(n[2]+``+n[2]),b:U(n[3]+``+n[3]),a:ta(n[4]+``+n[4]),format:t?`name`:`hex8`}:(n=G.hex3.exec(e))?{r:U(n[1]+``+n[1]),g:U(n[2]+``+n[2]),b:U(n[3]+``+n[3]),format:t?`name`:`hex`}:!1}function ra(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}var ia=function(e){var t=[`r`,`g`,`b`,`a`,`h`,`s`,`l`,`v`],n=0,r=0;return xi(t,function(t){e[t]&&(n+=1,isNaN(e[t])||(r+=1),(t===`s`||t===`l`)&&/^\d+%$/.test(e[t])&&(r+=1))}),n===r?e:!1},aa=function(e,t){var n=e.hex?V(e.hex):V(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),o=n.toHex();return r.s===0&&(r.h=t||0,i.h=t||0),{hsl:r,hex:o===`000000`&&a.a===0?`transparent`:`#`+o,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},q=function(e){if(e===`transparent`)return!0;var t=+(String(e).charAt(0)===`#`);return e.length!==4+t&&e.length<7+t&&V(e).isValid()},oa=function(e){if(!e)return`#fff`;var t=aa(e);return t.hex===`transparent`?`rgba(0,0,0,0.4)`:(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3>=128?`#000`:`#fff`},sa=function(e,t){var n=e.replace(`°`,``);return V(t+` (`+n+`)`)._ok},ca=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:`span`;return function(n){_a(r,n);function r(){var e,t,n,i;ha(this,r);var a=[...arguments];return i=(t=(n=ga(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},t),ga(n,i)}return ma(r,[{key:`render`,value:function(){return b.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},b.createElement(e,pa({},this.props,this.state)))}}]),r}(b.Component)},ya=Object.assign||function(e){for(var t=1;ts))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Ma?new Oa:void 0;for(a.set(e,t),a.set(t,e);++d{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=24;e.default=function(e){var n=e.fill,i=n===void 0?`currentColor`:n,s=e.width,c=s===void 0?o:s,l=e.height,u=l===void 0?o:l,d=e.style,f=d===void 0?{}:d,p=a(e,[`fill`,`width`,`height`,`style`]);return r.default.createElement(`svg`,t({viewBox:`0 0 `+o+` `+o,style:t({fill:i,width:c,height:u},f)},p),r.default.createElement(`path`,{d:`M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z`}))}}))()),Hs=function(){function e(e,t){for(var n=0;n1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(e.a*100)/100,source:`rgb`},t)):(e.h||e.s||e.l)&&(typeof e.s==`string`&&e.s.includes(`%`)&&(e.s=e.s.replace(`%`,``)),typeof e.l==`string`&&e.l.includes(`%`)&&(e.l=e.l.replace(`%`,``)),e.s==1?e.s=.01:e.l==1&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Bs(e.s)?n.props.hsl.s:e.s),l:Number(Bs(e.l)?n.props.hsl.l:e.l),source:`hsl`},t))},n.showHighlight=function(e){e.currentTarget.style.background=`#eee`},n.hideHighlight=function(e){e.currentTarget.style.background=`transparent`},e.hsl.a!==1&&e.view===`hex`?n.state={view:`rgb`}:n.state={view:e.view},n}return Hs(t,[{key:`render`,value:function(){var e=this,t=(0,x.default)({default:{wrap:{paddingTop:`16px`,display:`flex`},fields:{flex:`1`,display:`flex`,marginLeft:`-6px`},field:{paddingLeft:`6px`,width:`100%`},alpha:{paddingLeft:`6px`,width:`100%`},toggle:{width:`32px`,textAlign:`right`,position:`relative`},icon:{marginRight:`-4px`,marginTop:`12px`,cursor:`pointer`,position:`relative`},iconHighlight:{position:`absolute`,width:`24px`,height:`28px`,background:`#eee`,borderRadius:`4px`,top:`10px`,left:`12px`,display:`none`},input:{fontSize:`11px`,color:`#333`,width:`100%`,borderRadius:`2px`,border:`none`,boxShadow:`inset 0 0 0 1px #dadada`,height:`21px`,textAlign:`center`},label:{textTransform:`uppercase`,fontSize:`11px`,lineHeight:`11px`,color:`#969696`,textAlign:`center`,display:`block`,marginTop:`12px`},svg:{fill:`#333`,width:`24px`,height:`24px`,border:`1px transparent solid`,borderRadius:`5px`}},disableAlpha:{alpha:{display:`none`}}},this.props,this.state),n=void 0;return this.state.view===`hex`?n=b.createElement(`div`,{style:t.fields,className:`flexbox-fix`},b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`hex`,value:this.props.hex,onChange:this.handleChange}))):this.state.view===`rgb`?n=b.createElement(`div`,{style:t.fields,className:`flexbox-fix`},b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`r`,value:this.props.rgb.r,onChange:this.handleChange})),b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`g`,value:this.props.rgb.g,onChange:this.handleChange})),b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`b`,value:this.props.rgb.b,onChange:this.handleChange})),b.createElement(`div`,{style:t.alpha},b.createElement(C,{style:{input:t.input,label:t.label},label:`a`,value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view===`hsl`&&(n=b.createElement(`div`,{style:t.fields,className:`flexbox-fix`},b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`h`,value:Math.round(this.props.hsl.h),onChange:this.handleChange})),b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`s`,value:Math.round(this.props.hsl.s*100)+`%`,onChange:this.handleChange})),b.createElement(`div`,{style:t.field},b.createElement(C,{style:{input:t.input,label:t.label},label:`l`,value:Math.round(this.props.hsl.l*100)+`%`,onChange:this.handleChange})),b.createElement(`div`,{style:t.alpha},b.createElement(C,{style:{input:t.input,label:t.label},label:`a`,value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),b.createElement(`div`,{style:t.wrap,className:`flexbox-fix`},n,b.createElement(`div`,{style:t.toggle},b.createElement(`div`,{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},b.createElement(Vs.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.hsl.a!==1&&t.view===`hex`?{view:`rgb`}:null}}]),t}(b.Component);Ks.defaultProps={view:`hex`};var qs=function(){var e=(0,x.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,transform:`translate(-6px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}}});return b.createElement(`div`,{style:e.picker})},Js=function(){var e=(0,x.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,boxShadow:`inset 0 0 0 1px #fff`,transform:`translate(-6px, -6px)`}}});return b.createElement(`div`,{style:e.picker})},Ys=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,o=e.hsv,s=e.hex,c=e.renderers,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?``:d,p=e.defaultView,m=(0,x.default)(B({default:{picker:{width:t,background:`#fff`,borderRadius:`2px`,boxShadow:`0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)`,boxSizing:`initial`,fontFamily:`Menlo`},saturation:{width:`100%`,paddingBottom:`55%`,position:`relative`,borderRadius:`2px 2px 0 0`,overflow:`hidden`},Saturation:{radius:`2px 2px 0 0`},body:{padding:`16px 16px 12px`},controls:{display:`flex`},color:{width:`32px`},swatch:{marginTop:`6px`,width:`16px`,height:`16px`,borderRadius:`8px`,position:`relative`,overflow:`hidden`},active:{absolute:`0px 0px 0px 0px`,borderRadius:`8px`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.1)`,background:`rgba(`+i.r+`, `+i.g+`, `+i.b+`, `+i.a+`)`,zIndex:`2`},toggles:{flex:`1`},hue:{height:`10px`,position:`relative`,marginBottom:`8px`},Hue:{radius:`2px`},alpha:{height:`10px`,position:`relative`},Alpha:{radius:`2px`}},disableAlpha:{color:{width:`22px`},alpha:{display:`none`},hue:{marginBottom:`0px`},swatch:{width:`10px`,height:`10px`,marginTop:`0px`}}},u),{disableAlpha:r});return b.createElement(`div`,{style:m.picker,className:`chrome-picker `+f},b.createElement(`div`,{style:m.saturation},b.createElement(di,{style:m.Saturation,hsl:a,hsv:o,pointer:Js,onChange:n})),b.createElement(`div`,{style:m.body},b.createElement(`div`,{style:m.controls,className:`flexbox-fix`},b.createElement(`div`,{style:m.color},b.createElement(`div`,{style:m.swatch},b.createElement(`div`,{style:m.active}),b.createElement(S,{renderers:c}))),b.createElement(`div`,{style:m.toggles},b.createElement(`div`,{style:m.hue},b.createElement(w,{style:m.Hue,hsl:a,pointer:qs,onChange:n})),b.createElement(`div`,{style:m.alpha},b.createElement(_e,{style:m.Alpha,rgb:i,hsl:a,pointer:qs,renderers:c,onChange:n})))),b.createElement(Ks,{rgb:i,hsl:a,hex:s,view:p,onChange:n,disableAlpha:r})))};Ys.propTypes={width:T.default.oneOfType([T.default.string,T.default.number]),disableAlpha:T.default.bool,styles:T.default.object,defaultView:T.default.oneOf([`hex`,`rgb`,`hsl`])},Ys.defaultProps={width:225,disableAlpha:!1,styles:{}},J(Ys);var Xs=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.active,o=(0,x.default)({default:{color:{background:t,width:`15px`,height:`15px`,float:`left`,marginRight:`5px`,marginBottom:`5px`,position:`relative`,cursor:`pointer`},dot:{absolute:`5px 5px 5px 5px`,background:oa(t),borderRadius:`50%`,opacity:`0`}},active:{dot:{opacity:`1`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},dot:{background:`#000`}},transparent:{dot:{background:`#000`}}},{active:a,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return b.createElement(Y,{style:o.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},b.createElement(`div`,{style:o.dot}))},Zs=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,x.default)({default:{fields:{display:`flex`,paddingBottom:`6px`,paddingRight:`5px`,position:`relative`},active:{position:`absolute`,top:`6px`,left:`5px`,height:`9px`,width:`9px`,background:t},HEXwrap:{flex:`6`,position:`relative`},HEXinput:{width:`80%`,padding:`0px`,paddingLeft:`20%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},HEXlabel:{display:`none`},RGBwrap:{flex:`3`,position:`relative`},RGBinput:{width:`70%`,padding:`0px`,paddingLeft:`30%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},RGBlabel:{position:`absolute`,top:`3px`,left:`0px`,lineHeight:`16px`,textTransform:`uppercase`,fontSize:`12px`,color:`#999`}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:`rgb`},t):r({hex:e.hex,source:`hex`},t)};return b.createElement(`div`,{style:i.fields,className:`flexbox-fix`},b.createElement(`div`,{style:i.active}),b.createElement(C,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:`hex`,value:t,onChange:a}),b.createElement(C,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`r`,value:n.r,onChange:a}),b.createElement(C,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`g`,value:n.g,onChange:a}),b.createElement(C,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`b`,value:n.b,onChange:a}))},Qs=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,x.default)(B({default:{Compact:{background:`#f6f6f6`,radius:`4px`},compact:{paddingTop:`5px`,paddingLeft:`5px`,boxSizing:`initial`,width:`240px`},clear:{clear:`both`}}},s)),d=function(e,n){e.hex?q(e.hex)&&t({hex:e.hex,source:`hex`},n):t(e,n)};return b.createElement(Br,{style:u.Compact,styles:s},b.createElement(`div`,{style:u.compact,className:`compact-picker `+l},b.createElement(`div`,null,Z(r,function(e){return b.createElement(Xs,{key:e,color:e,active:e.toLowerCase()===i,onClick:d,onSwatchHover:n})}),b.createElement(`div`,{style:u.clear})),b.createElement(Zs,{hex:i,rgb:a,onChange:d})))};Qs.propTypes={colors:T.default.arrayOf(T.default.string),styles:T.default.object},Qs.defaultProps={colors:`#4D4D4D.#999999.#FFFFFF.#F44E3B.#FE9200.#FCDC00.#DBDF00.#A4DD00.#68CCCA.#73D8FF.#AEA1FF.#FDA1FF.#333333.#808080.#cccccc.#D33115.#E27300.#FCC400.#B0BC00.#68BC00.#16A5A5.#009CE0.#7B64FF.#FA28FF.#000000.#666666.#B3B3B3.#9F0500.#C45100.#FB9E00.#808900.#194D33.#0C797D.#0062B1.#653294.#AB149E`.split(`.`),styles:{}},J(Qs);var $s=(0,x.handleHover)(function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:`relative`,zIndex:`2`,outline:`2px solid #fff`,boxShadow:`0 0 5px 2px rgba(0,0,0,0.25)`},o=(0,x.default)({default:{swatch:{width:`25px`,height:`25px`,fontSize:`0`}},hover:{swatch:a}},{hover:t});return b.createElement(`div`,{style:o.swatch},b.createElement(Y,{color:n,onClick:r,onHover:i,focusStyle:a}))}),ec=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,x.default)(B({default:{card:{width:t,background:`#fff`,border:`1px solid rgba(0,0,0,0.2)`,boxShadow:`0 3px 12px rgba(0,0,0,0.15)`,borderRadius:`4px`,position:`relative`,padding:`5px`,display:`flex`,flexWrap:`wrap`},triangle:{position:`absolute`,border:`7px solid transparent`,borderBottomColor:`#fff`},triangleShadow:{position:`absolute`,border:`8px solid transparent`,borderBottomColor:`rgba(0,0,0,0.15)`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-14px`,left:`10px`},triangleShadow:{top:`-16px`,left:`9px`}},"top-right-triangle":{triangle:{top:`-14px`,right:`10px`},triangleShadow:{top:`-16px`,right:`9px`}},"bottom-left-triangle":{triangle:{top:`35px`,left:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,left:`9px`,transform:`rotate(180deg)`}},"bottom-right-triangle":{triangle:{top:`35px`,right:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,right:`9px`,transform:`rotate(180deg)`}}},s),{"hide-triangle":a===`hide`,"top-left-triangle":a===`top-left`,"top-right-triangle":a===`top-right`,"bottom-left-triangle":a===`bottom-left`,"bottom-right-triangle":a===`bottom-right`}),d=function(e,t){return r({hex:e,source:`hex`},t)};return b.createElement(`div`,{style:u.card,className:`github-picker `+l},b.createElement(`div`,{style:u.triangleShadow}),b.createElement(`div`,{style:u.triangle}),Z(n,function(e){return b.createElement($s,{color:e,key:e,onClick:d,onSwatchHover:i})}))};ec.propTypes={width:T.default.oneOfType([T.default.string,T.default.number]),colors:T.default.arrayOf(T.default.string),triangle:T.default.oneOf([`hide`,`top-left`,`top-right`,`bottom-left`,`bottom-right`]),styles:T.default.object},ec.defaultProps={width:200,colors:[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],triangle:`top-left`,styles:{}},J(ec);var tc=function(e){var t=e.direction,n=(0,x.default)({default:{picker:{width:`18px`,height:`18px`,borderRadius:`50%`,transform:`translate(-9px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}},vertical:{picker:{transform:`translate(-3px, -9px)`}}},{vertical:t===`vertical`});return b.createElement(`div`,{style:n.picker})},nc=Object.assign||function(e){for(var t=1;t.5});return b.createElement(`div`,{style:n.picker})},oc=function(){var e=(0,x.default)({default:{triangle:{width:0,height:0,borderStyle:`solid`,borderWidth:`4px 0 4px 6px`,borderColor:`transparent transparent transparent #fff`,position:`absolute`,top:`1px`,left:`1px`},triangleBorder:{width:0,height:0,borderStyle:`solid`,borderWidth:`5px 0 5px 8px`,borderColor:`transparent transparent transparent #555`},left:{Extend:`triangleBorder`,transform:`translate(-13px, -4px)`},leftInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`},right:{Extend:`triangleBorder`,transform:`translate(20px, -14px) rotate(180deg)`},rightInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`}}});return b.createElement(`div`,{style:e.pointer},b.createElement(`div`,{style:e.left},b.createElement(`div`,{style:e.leftInside})),b.createElement(`div`,{style:e.right},b.createElement(`div`,{style:e.rightInside})))},sc=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,x.default)({default:{button:{backgroundImage:`linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)`,border:`1px solid #878787`,borderRadius:`2px`,height:`20px`,boxShadow:`0 1px 0 0 #EAEAEA`,fontSize:`14px`,color:`#000`,lineHeight:`20px`,textAlign:`center`,marginBottom:`10px`,cursor:`pointer`}},active:{button:{boxShadow:`0 0 0 1px #878787`}}},{active:i});return b.createElement(`div`,{style:a.button,onClick:t},n||r)},cc=function(e){var t=e.rgb,n=e.currentColor,r=(0,x.default)({default:{swatches:{border:`1px solid #B3B3B3`,borderBottom:`1px solid #F0F0F0`,marginBottom:`2px`,marginTop:`1px`},new:{height:`34px`,background:`rgb(`+t.r+`,`+t.g+`, `+t.b+`)`,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000`},current:{height:`34px`,background:n,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000`},label:{fontSize:`14px`,color:`#000`,textAlign:`center`}}});return b.createElement(`div`,null,b.createElement(`div`,{style:r.label},`new`),b.createElement(`div`,{style:r.swatches},b.createElement(`div`,{style:r.new}),b.createElement(`div`,{style:r.current})),b.createElement(`div`,{style:r.label},`current`))},lc=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:`rgb`},i))};return b.createElement(`div`,{style:o.fields,className:`flexbox-fix`},b.createElement(`div`,{style:o.double},b.createElement(C,{style:{input:o.input,label:o.label},label:`hex`,value:i.replace(`#`,``),onChange:s})),b.createElement(`div`,{style:o.single},b.createElement(C,{style:{input:o.input,label:o.label},label:`r`,value:n.r,onChange:s,dragLabel:`true`,dragMax:`255`})),b.createElement(`div`,{style:o.single},b.createElement(C,{style:{input:o.input,label:o.label},label:`g`,value:n.g,onChange:s,dragLabel:`true`,dragMax:`255`})),b.createElement(`div`,{style:o.single},b.createElement(C,{style:{input:o.input,label:o.label},label:`b`,value:n.b,onChange:s,dragLabel:`true`,dragMax:`255`})),b.createElement(`div`,{style:o.alpha},b.createElement(C,{style:{input:o.input,label:o.label},label:`a`,value:Math.round(n.a*100),onChange:s,dragLabel:`true`,dragMax:`100`})))},hc=Object.assign||function(e){for(var t=1;t{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=24;e.default=function(e){var n=e.fill,i=n===void 0?`currentColor`:n,s=e.width,c=s===void 0?o:s,l=e.height,u=l===void 0?o:l,d=e.style,f=d===void 0?{}:d,p=a(e,[`fill`,`width`,`height`,`style`]);return r.default.createElement(`svg`,t({viewBox:`0 0 `+o+` `+o,style:t({fill:i,width:c,height:u},f)},p),r.default.createElement(`path`,{d:`M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z`}))}}))()),wc=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.first,o=e.last,s=e.active,c=(0,x.default)({default:{color:{width:`40px`,height:`24px`,cursor:`pointer`,background:t,marginBottom:`1px`},check:{color:oa(t),marginLeft:`8px`,display:`none`}},first:{color:{overflow:`hidden`,borderRadius:`2px 2px 0 0`}},last:{color:{overflow:`hidden`,borderRadius:`0 0 2px 2px`}},active:{check:{display:`block`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},check:{color:`#333`}},transparent:{check:{color:`#333`}}},{first:a,last:o,active:s,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return b.createElement(Y,{color:t,style:c.color,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},b.createElement(`div`,{style:c.check},b.createElement(Cc.default,null)))},Tc=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,x.default)({default:{group:{paddingBottom:`10px`,width:`40px`,float:`left`,marginRight:`10px`}}});return b.createElement(`div`,{style:a.group},Z(r,function(e,a){return b.createElement(wc,{key:e,color:e,active:e.toLowerCase()===i,first:a===0,last:a===r.length-1,onClick:t,onSwatchHover:n})}))},Ec=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,o=e.hex,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,x.default)(B({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:`scroll`},body:{padding:`16px 0 6px 16px`},clear:{clear:`both`}}},c)),f=function(e,t){return r({hex:e,source:`hex`},t)};return b.createElement(`div`,{style:d.picker,className:`swatches-picker `+u},b.createElement(Br,null,b.createElement(`div`,{style:d.overflow},b.createElement(`div`,{style:d.body},Z(a,function(e){return b.createElement(Tc,{key:e.toString(),group:e,active:o,onClick:f,onSwatchHover:i})}),b.createElement(`div`,{style:d.clear})))))};Ec.propTypes={width:T.default.oneOfType([T.default.string,T.default.number]),height:T.default.oneOfType([T.default.string,T.default.number]),colors:T.default.arrayOf(T.default.arrayOf(T.default.string)),styles:T.default.object},Ec.defaultProps={width:320,height:240,colors:[[Q[900],Q[700],Q[500],Q[300],Q[100]],[bs[900],bs[700],bs[500],bs[300],bs[100]],[xs[900],xs[700],xs[500],xs[300],xs[100]],[Ss[900],Ss[700],Ss[500],Ss[300],Ss[100]],[Cs[900],Cs[700],Cs[500],Cs[300],Cs[100]],[ws[900],ws[700],ws[500],ws[300],ws[100]],[Ts[900],Ts[700],Ts[500],Ts[300],Ts[100]],[Es[900],Es[700],Es[500],Es[300],Es[100]],[Ds[900],Ds[700],Ds[500],Ds[300],Ds[100]],[`#194D33`,Os[700],Os[500],Os[300],Os[100]],[ks[900],ks[700],ks[500],ks[300],ks[100]],[As[900],As[700],As[500],As[300],As[100]],[js[900],js[700],js[500],js[300],js[100]],[Ms[900],Ms[700],Ms[500],Ms[300],Ms[100]],[Ns[900],Ns[700],Ns[500],Ns[300],Ns[100]],[Ps[900],Ps[700],Ps[500],Ps[300],Ps[100]],[Fs[900],Fs[700],Fs[500],Fs[300],Fs[100]],[Is[900],Is[700],Is[500],Is[300],Is[100]],[`#000000`,`#525252`,`#969696`,`#D9D9D9`,`#FFFFFF`]],styles:{}},J(Ec);var Dc=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,o=e.triangle,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,x.default)(B({default:{card:{width:a,background:`#fff`,border:`0 solid rgba(0,0,0,0.25)`,boxShadow:`0 1px 4px rgba(0,0,0,0.25)`,borderRadius:`4px`,position:`relative`},body:{padding:`15px 9px 9px 15px`},label:{fontSize:`18px`,color:`#fff`},triangle:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent #fff transparent`,position:`absolute`},triangleShadow:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent rgba(0,0,0,.1) transparent`,position:`absolute`},hash:{background:`#F0F0F0`,height:`30px`,width:`30px`,borderRadius:`4px 0 0 4px`,float:`left`,color:`#98A1A4`,display:`flex`,alignItems:`center`,justifyContent:`center`},input:{width:`100px`,fontSize:`14px`,color:`#666`,border:`0px`,outline:`none`,height:`28px`,boxShadow:`inset 0 0 0 1px #F0F0F0`,boxSizing:`content-box`,borderRadius:`0 4px 4px 0`,float:`left`,paddingLeft:`8px`},swatch:{width:`30px`,height:`30px`,float:`left`,borderRadius:`4px`,margin:`0 6px 6px 0`},clear:{clear:`both`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-10px`,left:`12px`},triangleShadow:{top:`-11px`,left:`12px`}},"top-right-triangle":{triangle:{top:`-10px`,right:`12px`},triangleShadow:{top:`-11px`,right:`12px`}}},c),{"hide-triangle":o===`hide`,"top-left-triangle":o===`top-left`,"top-right-triangle":o===`top-right`}),f=function(e,n){q(e)&&t({hex:e,source:`hex`},n)};return b.createElement(`div`,{style:d.card,className:`twitter-picker `+u},b.createElement(`div`,{style:d.triangleShadow}),b.createElement(`div`,{style:d.triangle}),b.createElement(`div`,{style:d.body},Z(i,function(e,t){return b.createElement(Y,{key:t,color:e,hex:e,style:d.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:`0 0 4px `+e}})}),b.createElement(`div`,{style:d.hash},`#`),b.createElement(C,{label:null,style:{input:d.input},value:r.replace(`#`,``),onChange:f}),b.createElement(`div`,{style:d.clear})))};Dc.propTypes={width:T.default.oneOfType([T.default.string,T.default.number]),triangle:T.default.oneOf([`hide`,`top-left`,`top-right`]),colors:T.default.arrayOf(T.default.string),styles:T.default.object},Dc.defaultProps={width:276,colors:[`#FF6900`,`#FCB900`,`#7BDCB5`,`#00D084`,`#8ED1FC`,`#0693E3`,`#ABB8C3`,`#EB144C`,`#F78DA7`,`#9900EF`],triangle:`top-left`,styles:{}},J(Dc);var Oc=function(e){var t=(0,x.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,border:`2px #fff solid`,transform:`translate(-12px, -13px)`,background:`hsl(`+Math.round(e.hsl.h)+`, `+Math.round(e.hsl.s*100)+`%, `+Math.round(e.hsl.l*100)+`%)`}}});return b.createElement(`div`,{style:t.picker})};Oc.propTypes={hsl:T.default.shape({h:T.default.number,s:T.default.number,l:T.default.number,a:T.default.number})},Oc.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var kc=function(e){var t=(0,x.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,transform:`translate(-10px, -7px)`,background:`hsl(`+Math.round(e.hsl.h)+`, 100%, 50%)`,border:`2px white solid`}}});return b.createElement(`div`,{style:t.picker})};kc.propTypes={hsl:T.default.shape({h:T.default.number,s:T.default.number,l:T.default.number,a:T.default.number})},kc.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ac=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,o=function(e,n){if(e.hex)q(e.hex)&&t({hex:e.hex,source:`hex`},n);else if(e.rgb){var r=e.rgb.split(`,`);sa(e.rgb,`rgb`)&&t({r:r[0],g:r[1],b:r[2],a:1,source:`rgb`},n)}else if(e.hsv){var i=e.hsv.split(`,`);sa(e.hsv,`hsv`)&&(i[2]=i[2].replace(`%`,``),i[1]=i[1].replace(`%`,``),i[0]=i[0].replace(`°`,``),i[1]==1?i[1]=.01:i[2]==1&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:`hsv`},n))}else if(e.hsl){var a=e.hsl.split(`,`);sa(e.hsl,`hsl`)&&(a[2]=a[2].replace(`%`,``),a[1]=a[1].replace(`%`,``),a[0]=a[0].replace(`°`,``),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:`hsl`},n))}},s=(0,x.default)({default:{wrap:{display:`flex`,height:`100px`,marginTop:`4px`},fields:{width:`100%`},column:{paddingTop:`10px`,display:`flex`,justifyContent:`space-between`},double:{padding:`0px 4.4px`,boxSizing:`border-box`},input:{width:`100%`,height:`38px`,boxSizing:`border-box`,padding:`4px 10% 3px`,textAlign:`center`,border:`1px solid #dadce0`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,fontFamily:`Roboto,Arial,sans-serif`},input2:{height:`38px`,width:`100%`,border:`1px solid #dadce0`,boxSizing:`border-box`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,paddingLeft:`10px`,fontFamily:`Roboto,Arial,sans-serif`},label:{textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`35px`,top:`-6px`,left:`0`,right:`0`,marginLeft:`auto`,marginRight:`auto`,fontFamily:`Roboto,Arial,sans-serif`},label2:{left:`10px`,textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`32px`,top:`-6px`,fontFamily:`Roboto,Arial,sans-serif`},single:{flexGrow:`1`,margin:`0px 4.4px`}}}),c=n.r+`, `+n.g+`, `+n.b,l=Math.round(r.h)+`°, `+Math.round(r.s*100)+`%, `+Math.round(r.l*100)+`%`,u=Math.round(a.h)+`°, `+Math.round(a.s*100)+`%, `+Math.round(a.v*100)+`%`;return b.createElement(`div`,{style:s.wrap,className:`flexbox-fix`},b.createElement(`div`,{style:s.fields},b.createElement(`div`,{style:s.double},b.createElement(C,{style:{input:s.input,label:s.label},label:`hex`,value:i,onChange:o})),b.createElement(`div`,{style:s.column},b.createElement(`div`,{style:s.single},b.createElement(C,{style:{input:s.input2,label:s.label2},label:`rgb`,value:c,onChange:o})),b.createElement(`div`,{style:s.single},b.createElement(C,{style:{input:s.input2,label:s.label2},label:`hsv`,value:u,onChange:o})),b.createElement(`div`,{style:s.single},b.createElement(C,{style:{input:s.input2,label:s.label2},label:`hsl`,value:l,onChange:o})))))},jc=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,o=e.hex,s=e.header,c=e.styles,l=c===void 0?{}:c,u=e.className,d=u===void 0?``:u,f=(0,x.default)(B({default:{picker:{width:t,background:`#fff`,border:`1px solid #dfe1e5`,boxSizing:`initial`,display:`flex`,flexWrap:`wrap`,borderRadius:`8px 8px 0px 0px`},head:{height:`57px`,width:`100%`,paddingTop:`16px`,paddingBottom:`16px`,paddingLeft:`16px`,fontSize:`20px`,boxSizing:`border-box`,fontFamily:`Roboto-Regular,HelveticaNeue,Arial,sans-serif`},saturation:{width:`70%`,padding:`0px`,position:`relative`,overflow:`hidden`},swatch:{width:`30%`,height:`228px`,padding:`0px`,background:`rgba(`+r.r+`, `+r.g+`, `+r.b+`, 1)`,position:`relative`,overflow:`hidden`},body:{margin:`auto`,width:`95%`},controls:{display:`flex`,boxSizing:`border-box`,height:`52px`,paddingTop:`22px`},color:{width:`32px`},hue:{height:`8px`,position:`relative`,margin:`0px 16px 0px 16px`,width:`100%`},Hue:{radius:`2px`}}},l));return b.createElement(`div`,{style:f.picker,className:`google-picker `+d},b.createElement(`div`,{style:f.head},s),b.createElement(`div`,{style:f.swatch}),b.createElement(`div`,{style:f.saturation},b.createElement(di,{hsl:i,hsv:a,pointer:Oc,onChange:n})),b.createElement(`div`,{style:f.body},b.createElement(`div`,{style:f.controls,className:`flexbox-fix`},b.createElement(`div`,{style:f.hue},b.createElement(w,{style:f.Hue,hsl:i,radius:`4px`,pointer:kc,onChange:n}))),b.createElement(Ac,{rgb:r,hsl:i,hex:o,hsv:a,onChange:n})))};jc.propTypes={width:T.default.oneOfType([T.default.string,T.default.number]),styles:T.default.object,header:T.default.string},jc.defaultProps={width:652,styles:{},header:`Color picker`},J(jc);var $=r(),Mc=({onChange:e,color:t,style:n,triangle:r,buttonStyle:i,position:a=`bottom`})=>{let o=f(e=>e.cti.ui.primaryColor),[s,u]=(0,b.useState)(!1),d=new Event(`onChange`),p=Array.from(new Set([o,...[`#FCB900`,`#7BDCB5`,`#00D084`,`#8ED1FC`,`#0693E3`,`#ABB8C3`,`#EB144C`,`#F78DA7`,`#FF8801`]])),h=()=>{u(!s)},g=(t,n)=>{u(!1),e(t,n),dispatchEvent(d)},_=``;return a===`top`&&(_=`translateY(-200px)`),(0,$.jsxs)(`div`,{className:`color-picker-container`,children:[(0,$.jsxs)(`div`,{className:`color-button`,style:i,children:[(0,$.jsx)(`div`,{onClick:h,style:{width:`36px`,height:`14px`,borderRadius:`2px`,backgroundColor:t}}),s?(0,$.jsx)(`div`,{className:`wrapper`,style:{...n,transform:_},children:(0,$.jsx)(ys,{triangle:r,colors:p,color:t,onChangeComplete:g,style:n})}):null]}),(0,$.jsx)(`div`,{style:i,className:`reset-button`,children:t?(0,$.jsx)(l,{placement:`top`,title:`Supprimer la couleur`,children:(0,$.jsx)(c,{type:`danger`,icon:(0,$.jsx)(m,{}),onClick:g,size:`small`})}):null})]})};export{Mc as t}; \ No newline at end of file diff --git a/assets/CopyOutlined-DYcCtig4.js b/assets/CopyOutlined-DYcCtig4.js new file mode 100644 index 0000000..bcd0831 --- /dev/null +++ b/assets/CopyOutlined-DYcCtig4.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/CopyToClipboard-CHoMvyT3.js b/assets/CopyToClipboard-CHoMvyT3.js new file mode 100644 index 0000000..d7ad887 --- /dev/null +++ b/assets/CopyToClipboard-CHoMvyT3.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-BDcMaxoP.js";import{B as a,i as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{i as c}from"./select-dQ-XiIfN.js";import{t as l}from"./CopyOutlined-DYcCtig4.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{F as d}from"./index-C1mw6CgG.js";import{x as f}from"./CloseButton-CawXCByx.js";var p=async e=>f(await o(`modules/base/php/getIndicateurs.php`,{softCode:e}));async function m(e,t){await o(`modules/base/php/setIndicateur.php`,{action:`save`,softCode:e,...t})}async function h(e,t){await o(`modules/base/php/setIndicateur.php`,{action:`delete`,softCode:e,oid:t})}async function g(e,t){await o(`modules/base/php/setIndicateur.php`,{action:`copy`,softCode:e,oid:t})}var _={all:[`indicators`],list:e=>[..._.all,`list`,e]},v={indicators:[],tables:[],themesSearch:[],themes:[]},y=e=>u({queryKey:_.list(e),queryFn:()=>p(e),enabled:!!e}),b=e=>i(y(e)),x=e=>{let t=[{value:`*LIST`,title:`Pas de fonction total`},{value:`Sommes`,title:`Sommes`,disabled:!0,children:[{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`}]},{value:`Bornes`,title:`Bornes`,disabled:!0,children:[{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`}]},{value:`Moyennes`,title:`Moyennes`,disabled:!0,children:[{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`}]},{value:`Comptage`,title:`Comptage`,disabled:!0,children:[{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`}]},{value:`Texte`,title:`Texte`,disabled:!0,children:[{title:`Aggrégation des valeurs`,value:`LISTACUM`}]}];return e===`eis`&&t.filter(e=>e.value===`Texte`)[0].children.push({title:`AGGVAL`,data:`AGGVAL`}),t},S=[{title:`Pas de fonction total`,value:`AGGVAL`},{title:`Pas de fonction total`,value:`*LIST`},{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`},{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`},{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`},{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`},{title:`Aggrégation des valeurs`,value:`LISTACUM`},{title:`Calcul entre indicateurs`,value:`*CALC`}],C=(e,t)=>{let n={},r=[];for(let[t,r]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(t)&&r!==`0`&&(n[t]=r);if(n){let e=Object.values(n).map(e=>t?.indicators.find(t=>t.oid===e));e.forEach(e=>{for(let[t,r]of Object.entries(n))if(r===e?.oid){let n=t.match(/\d+/g);e.associatedIndicatorIndex=Number(n[0])}}),r=e}return r},w=e(r()),T=e(t()),E=n(),D=({copiedText:e,size:t=`default`,type:n=`primary`,tooltip:r=`Copier`,style:i})=>{let[o,u]=(0,T.useState)(!1);return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(d,{title:`Copier`,children:(0,E.jsx)(s,{style:i,size:t,type:n,icon:o?(0,E.jsx)(c,{style:{color:a.green}}):(0,E.jsx)(l,{}),onClick:()=>{u(!o),navigator.clipboard.writeText(e)}})})})};D.propTypes={copiedText:w.default.string,size:w.default.string,type:w.default.string,tooltip:w.default.string};export{v as a,g as c,x as i,h as l,C as n,b as o,S as r,_ as s,D as t,m as u}; \ No newline at end of file diff --git a/assets/DiscardChangesButton-BFEqbiGO.js b/assets/DiscardChangesButton-BFEqbiGO.js new file mode 100644 index 0000000..bb610e8 --- /dev/null +++ b/assets/DiscardChangesButton-BFEqbiGO.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o}from"./axios-BDcMaxoP.js";import{t as s}from"./button-xukQsL9n.js";import{t as c}from"./popconfirm-BanNBanA.js";import{t as l}from"./UndoOutlined-DAvTbx0c.js";import{F as u}from"./index-C1mw6CgG.js";var d=e(t());i();var f={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z`}},{tag:`path`,attrs:{d:`M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z`}},{tag:`path`,attrs:{d:`M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z`}}]},name:`console-sql`,theme:`outlined`},p=d.forwardRef(function(e,t){return d.createElement(a,r(r({},e),{},{ref:t,icon:f}))}),m=e(o()),h=n(),g=({onConfirm:e,modified:t=!0,children:n,title:r=`Quitter sans enregistrer ?`,description:i=`Vos modifications seront perdues.`,okText:a=`Quitter`,cancelText:o=`Continuer à modifier`,placement:f=`topRight`,toolTipTitle:p=`Annuler les modifications`,text:m,size:g=`default`,disabled:_=!1})=>{let v=(0,h.jsx)(u,{title:m?null:p,children:(0,h.jsx)(s,{size:g,disabled:_,icon:(0,h.jsx)(l,{}),children:m})});return t?(0,h.jsx)(c,{placement:f,title:r,description:i,onConfirm:e,okText:a,okButtonProps:{danger:!0},cancelText:o,children:n??v}):n?d.cloneElement(n,{onClick:e}):d.cloneElement(v,{onClick:e})};g.propTypes={onConfirm:m.default.func.isRequired,modified:m.default.bool,children:m.default.node,title:m.default.string,description:m.default.string,okText:m.default.string,cancelText:m.default.string,placement:m.default.string,toolTipTitle:m.default.string,text:m.default.string,size:m.default.string,disabled:m.default.bool};export{p as n,g as t}; \ No newline at end of file diff --git a/assets/DownloadOutlined-BxQhjjNl.js b/assets/DownloadOutlined-BxQhjjNl.js new file mode 100644 index 0000000..5807d5d --- /dev/null +++ b/assets/DownloadOutlined-BxQhjjNl.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/ExpertControlsSettings-BOPHWS0D.css b/assets/ExpertControlsSettings-BOPHWS0D.css new file mode 100644 index 0000000..2da3343 --- /dev/null +++ b/assets/ExpertControlsSettings-BOPHWS0D.css @@ -0,0 +1 @@ +.cti-indicator-modal{flex-flow:column;height:70vh;display:flex}.indicator-modal-table{flex:3;margin-top:18px}.expert-settings{flex-direction:column;flex:3;min-height:0;display:flex}.expert-settings .BaseTable__row-cell-text{line-height:40px}.expert-settings-modal .ant-form-item-label{text-align:left;white-space:pre-line;width:150px}.expert-rule-container{border:1px dashed #d3d3d3;border-radius:5px;margin:14px 12px 12px;position:relative}.expert-rule-header{background-color:#fff;align-items:center;padding:0 8px;display:flex;position:absolute;top:-7px;left:27px}.expert-rule-label{font-size:12px;font-weight:500;line-height:12px}.expert-rule{padding:12px 12px 0}.expert-rule-indicator{margin-top:20px;position:relative}.expert-control-inactive{color:#b1b1b1}.expert-rule-divider{margin-top:0;margin-bottom:12px;position:absolute;top:-18px}.expert-rule-indicator-container,.expert-settings-containet .expert-settings-column{flex-direction:column;display:flex}.expert-rule-delete-button{justify-content:flex-end;display:flex}.expert-rule-add-button{justify-content:space-around;display:flex}.expert-rule-title-header{align-items:center;display:flex}.form-item-font{font-weight:600}.form-item-widht{width:100%;max-width:280px}.switch-label{font-size:12px;font-weight:400}span.ant-radio+*{font-weight:400}.header__settings--filters-actions{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.header__settings--filters-actions-switch{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.header__settings--filters-actions-switch span{margin-right:0!important}.header__settings--filters-actions-switch button{width:30px}.header__settings{background-color:#fff;flex-flow:row;justify-content:space-between;align-items:center;width:100%;height:48px;padding:5px 20px;display:flex}.header__settings--filters{background-color:#fff;border-top:1px solid #eee;padding:10px 20px;box-shadow:0 .125rem .25rem #00000013}.header__settings--filters-search{flex-flow:row;align-items:center;display:flex}.header__settings--actions{flex-flow:row;align-items:center;gap:10px;display:flex} diff --git a/assets/ExpertControlsSettings-CpBaaD43.js b/assets/ExpertControlsSettings-CpBaaD43.js new file mode 100644 index 0000000..2856d67 --- /dev/null +++ b/assets/ExpertControlsSettings-CpBaaD43.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Dt as r,kt as i,n as a,o,r as s,tt as c}from"./axios-BDcMaxoP.js";import{t as l}from"./index.esm-D4i6w2dF.js";import{t as u}from"./input-C55Uc3oN.js";import{V as d}from"./ctiAxios-HKh7HuhO.js";import{t as f}from"./button-xukQsL9n.js";import{t as p}from"./select-dQ-XiIfN.js";import{t as m}from"./tooltip-D0a9NNK5.js";import{g as h}from"./sanitizeDataUtils-DBUp8Fd9.js";import{t as g}from"./radio-ChcrxtKW.js";import{n as _,t as v}from"./row-CaO7bYqu.js";import{t as y}from"./WarningFilled-UnKqlBYo.js";import{t as b}from"./typography-CKptiUMY.js";import{r as x}from"./react-redux-Bek2gPun.js";import{i as S,n as C,r as w}from"./notification-DIuyPXAV.js";import{t as T}from"./useMutation-BtpRmKbj.js";import{n as E,t as D}from"./RowLabelWithIcon-Uk-N0Fra.js";import{t as O}from"./UndoOutlined-DAvTbx0c.js";import{B as k,Ct as A,F as j,I as M,N,Q as P,X as F,Z as I,dt as L,et as R,ht as ee,mt as z,ot as B,s as V}from"./index-C1mw6CgG.js";import{t as H}from"./module-eIe9lCj8.js";import{t as U}from"./indicatorsColumns-BR3REQy_.js";var W=e(t()),te=e(d()),G=e(a()),K=e(h()),q=n(),J=({indicators:e,visible:t,onCancel:n,onOk:r})=>{let[i,a]=(0,W.useState)(``),[o,s]=(0,W.useState)();return(0,W.useEffect)(()=>{s(),a(``)},[t]),(0,q.jsx)(R,{open:t,zIndex:2e3,onCancel:n,onOk:()=>r(o),title:`Choisir un indicateur`,width:`60vw`,children:(0,q.jsxs)(`div`,{className:`cti-indicator-modal`,children:[(0,q.jsx)(`div`,{className:`indicator-modal-search`,children:(0,q.jsx)(u,{placeholder:`Recherche`,value:i,onChange:e=>a(e.target.value)})}),(0,q.jsx)(`div`,{className:`indicator-modal-table`,children:(0,q.jsx)(V,{rowKey:`oid`,fixed:!1,columns:U,selectedRow:o,onRowSelect:t=>{s(e.find(e=>e.oid===t))},data:e.filter(e=>e.code.toLowerCase().includes(i.toLowerCase())||e.texte.toLowerCase().includes(i.toLowerCase()))})})]})})};J.propTypes={indicators:G.default.array,visible:G.default.bool,onCancel:G.default.func,okOk:G.default.func};var Y=async e=>(await N.get(`api/${e}/experts-controls/settings`)).data,X=async(e,t)=>{await N.post(`api/${t}/experts-controls`,e)},Z=async(e,t)=>{await N.put(`api/${t}/experts-controls/${e.oid}`,e)},ne=async(e,t)=>{await N.delete(`api/${t}/experts-controls/${e}`)},re=async(e,t)=>(await N.put(`api/${t}/experts-controls/execute/${e}`)).data,Q={all:[`expertControls`],list:e=>[...Q.all,e]};function ie(){let e=o();return T({mutationFn:({expertControl:e,module:t})=>X(e,t),meta:{successMessage:`Contrôle expert créé`,errorMessage:`Erreur lors de la création du contrôle`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Q.list(r.module)})}})}function ae(){let e=o();return T({mutationFn:({expertControl:e,module:t})=>Z(e,t),meta:{successMessage:`Contrôle expert mis à jour`,errorMessage:`Erreur lors de la mise à jour du contrôle`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Q.list(r.module)})}})}function oe(){let e=o();return T({mutationFn:({id:e,module:t})=>ne(e,t),meta:{successMessage:`Contrôle expert supprimé`,errorMessage:`Erreur lors de la suppression du contrôle`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Q.list(r.module)})}})}function se(){let e=o();return T({mutationFn:({id:e,module:t})=>re(e,t),onMutate:({id:e})=>{w({type:`info`,message:e===0?`Exécution des contrôles experts lancée`:`Exécution du contrôle expert lancée`})},onSuccess:(e,t)=>{S({message:t.id===0?`Contrôles experts exécutés`:`Contrôle expert exécuté`})},onError:(e,t)=>{C({message:t.id===0?`Erreur lors de l'exécution des contrôles`:`Erreur lors de l'exécution du contrôle`,description:e.response?.data?.message??e.message??`Erreur inconnue`})},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Q.list(r.module)})}})}var{Title:ce,Text:le}=b;function ue({showModal:e,selectedControl:t,schema:n,data:r,setShowModal:i}){let a=x(e=>e.cti.ui.primaryColor),o=M(),s=ie(),c=ae(),l=o.data?.session,[d]=B.useForm(),[h]=B.useForm(),[y]=B.useForm(),[b]=B.useForm(),[S]=B.useForm(),[C]=B.useForm(),w=W.useMemo(()=>[h,y,b,S,C],[h,y,b,S,C]),[T,E]=(0,W.useState)(!1),[D,O]=(0,W.useState)([]),[k,j]=(0,W.useState)({}),[N,P]=(0,W.useState)([]);(0,W.useEffect)(()=>{t&&d.setFieldsValue(t),t&&!Object.keys(t).length&&d.resetFields()},[t,d]),(0,W.useEffect)(()=>{if(t){let e=(0,K.default)(r.rules.filter(e=>Number(e.expertControleId)===t.oid).sort((e,t)=>e.oid-t.oid),e=>e.isCti),n=[],i=[];if(e.true)for(let t=0;t<3;t++)e.true[t]&&e.true[t].isCti?(n[t]=e.true[t],i.push(e.true[t].indicateur3Id&&e.true[t].indicateur3Id!==`0`?3:e.true[t].indicateur2Id&&e.true[t].indicateur2Id!==`0`?2:1)):i.push(1);if(e.false)for(let t=0;t<2;t++)e.false[t]?(n[t+3]=e.false[t],i.push(e.false[t].indicateur3Id&&e.false[t].indicateur3Id!==`0`?3:e.false[t].indicateur2Id&&e.false[t].indicateur2Id!==`0`?2:1)):i.push(1);O(i),P(n)}},[t,r]),(0,W.useEffect)(()=>{for(let e=0;e<5;e++){let t=w[e];N[e]?t.setFieldsValue(N[e]):t.resetFields()}},[N,w]);let V=e=>{let t=[...D];t[e]=(t[e]??0)+1,O(t)},H=async()=>{let e=[];await d.validateFields();for(let t=0;t<=4;t++){let n=w[t].getFieldsValue(!0);t>2?n.isCti=!1:n.isCti=!0,e.push(n)}let t={...d.getFieldsValue(!0),rules:e};t.oid?c.mutate({expertControl:t,module:n}):s.mutate({expertControl:t,module:n}),G()},U=(e,t)=>{let n=w[e],r=n.getFieldsValue(),i=D[e]-1;if(t===0&&i===0)n.setFieldsValue({...r,indicateurId:``,indicateurConditionId:[]});else if(t===i){n.setFieldsValue({...r,[`indicateur${t+1}Id`]:``,[`indicateurCondition${t+1}Id`]:[]});let i=[...D];i[e]=i[e]-1,O(i)}else{let a={...r};if(t===0){a={...a,indicateuId:r.indicateur2Id,indicateurConditionId:r.indicateurCondition2Id};for(let e=i;e>t;e--)a={...a,[`indicateur${e+1}Id`]:r[`indicateur${e+2}Id`],[`indicateurCondition${e+1}Id`]:r[`indicateurCondition${e+2}Id`],[`indicateur${e+2}Id`]:``,[`indicateurCondition${e+2}Id`]:[]}}else for(let e=i;e>=t;e--)a={...a,[`indicateur${e+1}Id`]:r[`indicateur${e+2}Id`],[`indicateurCondition${e+1}Id`]:r[`indicateurCondition${e+2}Id`],[`indicateur${e+2}Id`]:``,[`indicateurCondition${e+2}Id`]:[]};n.setFieldsValue(a);let o=[...D];o[e]=o[e]-1,O(o)}},te=(e,t)=>{j({rule:e,indicator:t}),E(!0)},G=()=>{i(!e)},Y=e=>{let n=w[k.rule],r=k.indicator===0?`indicateurId`:`indicateur${k.indicator+1}Id`;n.setFieldsValue({expertControleId:t.oid,...n.getFieldsValue(),[r]:e.oid}),E(!1)},X=e=>{let t=w[e],n=[],i=D[e]??0;for(let t=0;t0&&(0,q.jsx)(L,{className:`expert-rule-divider`}),(0,q.jsxs)(`div`,{className:`expert-rule-indicator-container`,children:[(0,q.jsx)(v,{children:(0,q.jsxs)(_,{span:12,children:[(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Indicateur`,name:t===0?`indicateurId`:`indicateur${t+1}Id`,hidden:!0,children:(0,q.jsx)(u,{})}),(0,q.jsx)(B.Item,{shouldUpdate:!0,children:n=>{let a=r.indicators.find(e=>e.oid===Number(n.getFieldValue(t===0?`indicateurId`:`indicateur${t+1}Id`)));return(0,q.jsx)(B.Item,{className:`form-item-font`,label:i,shouldUpdate:!0,children:(0,q.jsx)(u.Search,{className:`form-item-widht`,name:`searchIndicator`,label:`searchIndicator`,value:a?.texte??`Choisir un indicateur`,readOnly:!0,onSearch:()=>te(e,t)})})}})]})}),(0,q.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`},children:[(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Opérateur des conditions`,name:t===0?`conditionsOperateur`:`conditionsOperateur${t+1}`,children:(0,q.jsxs)(g.Group,{children:[(0,q.jsx)(g,{value:`AND`,children:`Toutes les conditions doivent être vraies`}),(0,q.jsx)(g,{value:`OR`,children:`Au moins une des conditions doit être vraie`})]})}),(0,q.jsx)(`div`,{children:(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Conditions`,name:t===0?`indicateurConditionId`:`indicateurCondition${t+1}Id`,children:(0,q.jsx)(F,{showSearch:!0,style:{width:`100%`},allowClear:!0,treeData:r.conditions,multiple:!0,treeNodeFilterProp:`title`})})}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Formule`,name:t===0?`formula`:`formula${t+1}`,children:(0,q.jsx)(u,{style:{width:`100%`},placeholder:`Valeur par défault: <> 0`})})]})]})]},t)}),(0,q.jsx)(_,{span:2,children:(0,q.jsx)(`div`,{className:`expert-rule-delete-button`,children:(0,q.jsx)(m,{placement:`leftTop`,title:`Supprimer la règle`,children:(0,q.jsx)(f,{type:`danger`,icon:(0,q.jsx)(I,{}),onClick:()=>U(e,t)})})})})]}))}return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(B,{name:`rule_${isFinite}`,form:t,children:(0,q.jsx)(`div`,{className:`expert-rule-container`,children:(0,q.jsxs)(`div`,{className:`expert-rule`,children:[n,(0,q.jsx)(L,{style:{marginTop:0,marginBottom:12}}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Niveau de détail`,name:`dataType`,children:(0,q.jsx)(p,{options:r.levels})})]})})}),(0,q.jsx)(v,{children:(0,q.jsx)(_,{span:24,children:(0,q.jsx)(`div`,{className:`expert-rule-add-button`,children:(0,q.jsx)(f,{type:`primary`,disabled:D[e]>=3,onClick:()=>V(e),children:`Ajouter un indicateur`})})})})]})},Z=W.useCallback((e,t)=>N[e]&&N[e].indicateurId&&N[e].indicateurId!==`0`?(0,q.jsx)(A,{dot:!0,color:a,style:{right:-4,top:4},children:t}):t,[N]),ne=W.useCallback(()=>{let e=[];for(let t=0;t<5;t++)N[t]&&N[t].indicateurId&&N[t].indicateurId!==`0`&&e.push(`Règle ${t+1}`);return e.join(` ou `)},[N]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(J,{indicators:r?.indicators??[],visible:T,onCancel:()=>E(!1),onOk:Y}),(0,q.jsx)(R,{title:`Ajouter/Modifier un contrôle expert`,open:e,onCancel:G,onOk:H,okText:`Enregistrer`,width:`53vw`,className:`expert-settings-modal`,children:(0,q.jsxs)(B.Provider,{children:[(0,q.jsxs)(B,{form:d,children:[(0,q.jsx)(ce,{level:3,children:`Définition`}),(0,q.jsx)(L,{style:{marginTop:0}}),(0,q.jsxs)(v,{children:[(0,q.jsx)(_,{span:12,children:(0,q.jsxs)(`div`,{className:`expert-settings-containet`,children:[(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Code`,name:`code`,rules:[{required:!0,message:`Code requis`}],children:(0,q.jsx)(u,{className:`form-item-widht`})}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Texte`,name:`texte`,rules:[{required:!0,message:`Texte requis`}],children:(0,q.jsx)(u,{className:`form-item-widht`})}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Gravité`,name:`graviteId`,children:(0,q.jsx)(p,{className:`form-item-widht`,options:[{label:`Information`,value:`0`},{label:`Avertissement`,value:`5`},{label:`Erreur`,value:`9`}]})}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`A partir de`,name:`startPeriode`,children:(0,q.jsx)(p,{className:`form-item-widht`,options:[{label:``,value:``},{label:`Année en cours`,value:`A0`},{label:`A - 1`,value:`A1`},{label:`A - 2`,value:`A2`},{label:`12 derniers mois`,value:`M12`},{label:`24 derniers mois`,value:`M24`}]})})]})}),(0,q.jsx)(_,{span:12,children:(0,q.jsxs)(`div`,{className:`expert-settings-column`,children:[l.ISROLECTI&&(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Contrôle expert CTI`,name:`isCti`,valuePropName:`checked`,style:{width:`450px`},rules:[{required:!0,message:`Type de contrôle requis`}],children:(0,q.jsx)(z,{size:`small`})}),(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Contrôle expert actif`,name:`isActive`,valuePropName:`checked`,children:(0,q.jsx)(z,{})})]})})]}),(0,q.jsx)(v,{children:(0,q.jsx)(_,{span:24,children:(0,q.jsx)(B.Item,{className:`form-item-font`,label:`Description`,name:`description`,children:(0,q.jsx)(u.TextArea,{style:{maxWidth:800}})})})})]}),t?.isCti&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`expert-rule-title-header`,children:[(0,q.jsx)(ce,{level:3,children:`Règles`}),(0,q.jsx)(le,{type:`secondary`,style:{marginLeft:12},children:`Toutes les règles sont exclusives (${ne()})`})]}),(0,q.jsx)(L,{style:{marginTop:0}}),(0,q.jsx)(ee,{defaultActiveKey:[`0`],items:[`Règle CTI 1`,`Règle CTI 2`,`Règle CTI 3`,`Règle Établissement 1`,`Règle Établissement 2`].map((e,t)=>({label:Z(t,e),key:String(t),children:X(t)}))})]})]})})]})}ue.propTypes={showModal:G.default.bool,handleShowModal:G.default.func,selectedControl:G.default.object,schema:G.default.string};var de=({handleRefresh:e})=>(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(j,{title:`Actualiser`,children:(0,q.jsx)(f,{style:{height:`unset`},type:`link`,onClick:e,children:(0,q.jsx)(O,{})})})}),fe=({label:e,handleAdd:t})=>(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(j,{title:`Créer un nouveau ${e}`,children:(0,q.jsxs)(f,{size:`default`,type:`primary`,icon:(0,q.jsx)(E,{}),onClick:t,children:[`Ajouter un `,e]})})}),pe=({handleRefresh:e=null,handleAddItem:t=null,label:n,handleExecute:r=null,headerActionsToDisplay:i,executeIsLoading:a=!1,disangageValue:o=!1,handleDisangage:s})=>{let c=M().data?.session;return(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(`div`,{className:`header__settings--actions`,children:(0,q.jsxs)(q.Fragment,{children:[i.includes(`refresh`)&&(0,q.jsx)(de,{handleRefresh:e}),i.includes(`disengage`)&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:`switch-label`,children:[`Débrayer tous les `,n,` : `]}),(0,q.jsx)(z,{checked:o,onChange:s})]}),i.includes(`execute`)&&(0,q.jsx)(f,{disabled:!c.ISROLECTI||a,onClick:r,icon:(0,q.jsx)(k,{}),children:a?`Exécution en cours...`:`Exécuter tous les ${n}`}),i.includes(`add`)&&(0,q.jsx)(fe,{label:n,handleAdd:t})]})})})},me=({searchTerm:e,setSearchTerm:t=null,label:n,headerFiltersToDisplay:r,showActiveItemsOnly:i,setShowActiveItemsOnly:a,showCtiItemsOnly:o,setShowCtiItemsOnly:s})=>(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(v,{children:[t&&(0,q.jsx)(_,{span:12,children:(0,q.jsxs)(`div`,{className:`header__settings--filters-search`,children:[(0,q.jsx)(`span`,{style:{marginLeft:`10px`},children:`Filtre:`}),(0,q.jsx)(u,{style:{maxWidth:`400px`,marginLeft:`10px`},className:`search-input`,placeholder:`Recherche ... `,value:e,onChange:e=>t(e.target.value)})]})}),(0,q.jsx)(_,{span:12,children:(0,q.jsxs)(`div`,{className:`header__settings--filters-actions`,children:[(r.includes(`showCtiItems`)||r.includes(`showActiveItems`))&&(0,q.jsx)(`span`,{children:`Afficher uniquement :`}),r.includes(`showCtiItems`)&&(0,q.jsxs)(`div`,{className:`header__settings--filters-actions-switch`,children:[(0,q.jsx)(P,{size:`small`,checked:o,onChange:e=>{s(e)}}),(0,q.jsxs)(`span`,{children:[n,` CTI`]})]}),r.includes(`showActiveItems`)&&(0,q.jsxs)(`div`,{className:`header__settings--filters-actions-switch`,children:[(0,q.jsx)(P,{size:`small`,checked:i,onChange:e=>{a(e)}}),(0,q.jsxs)(`span`,{children:[n,` actifs`]})]})]})})]})}),he=({title:e})=>(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(`h2`,{className:`title__h2`,children:e})});he.propTypes={title:G.default.string};var ge=({title:e,handleRefresh:t,label:n,handleAddItem:r,handleExecute:i,searchTerm:a,setSearchTerm:o,headerActionsToDisplay:s,headerFiltersToDisplay:c,showActiveItemsOnly:l,setShowActiveItemsOnly:u,showCtiItemsOnly:d,setShowCtiItemsOnly:f,executeIsLoading:p,disangageValue:m,handleDisangage:h})=>(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`header__settings`,children:[(0,q.jsx)(he,{style:{flex:3},title:e}),(0,q.jsx)(pe,{handleRefresh:t,handleAddItem:r,label:n,handleExecute:i,headerActionsToDisplay:s,executeIsLoading:p,disangageValue:m,handleDisangage:h})]}),(0,q.jsx)(`div`,{className:`header__settings--filters`,children:(0,q.jsx)(me,{searchTerm:a,setSearchTerm:o,label:n,headerFiltersToDisplay:c,showCtiItemsOnly:d,setShowCtiItemsOnly:f,showActiveItemsOnly:l,setShowActiveItemsOnly:u})})]}),_e=(e=[],t)=>{let[n,r]=(0,W.useState)(``);return{searchTerm:n,setSearchTerm:r,filteredData:e.filter(e=>t.some(t=>{let r=e[t];return r&&r.toString().toLowerCase().includes(n.toLowerCase())}))}},ve=e=>s({queryKey:Q.list(e),queryFn:()=>Y(e)}),ye=async(e,t)=>(await N.get(`api/${t}/divers/${e}`)).data,be=async(e,t)=>{await N.put(`api/${t}/divers/${e.code}`,e)},$={all:[`diverParameter`],detail:(e,t)=>[...$.all,e,t]},xe=(e,t)=>s({queryKey:$.detail(t,e),queryFn:()=>ye(e,t)});function Se(){let e=o();return T({mutationFn:({diverParameter:e,module:t})=>be(e,t),meta:{successMessage:`Paramètre expert mis à jour`,errorMessage:`Erreur lors de la mise à jour du paramètre`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.detail(r.module,r.diverParameter.code)})}})}var Ce=({softCode:e})=>{let t=H(e),n=M(),a=ve(t),s=ae(),u=oe(),d=se(),p=xe(`CONTROLSEXPERTACTIVE`,t),m=Se(),h=o(),g=n.data?.session,[_,v]=(0,W.useState)(!1),[b,x]=(0,W.useState)(),[S,C]=(0,W.useState)(!1),[w,T]=(0,W.useState)(!1),{searchTerm:E,setSearchTerm:O,filteredData:A}=_e(a.data?.controls,[`texte`,`code`]);S&&(A=A.filter(e=>e.isActive)),w&&(A=A.filter(e=>e.isCti));let N=p.data?.valeur??!1;N===`0`?N=!1:N===`1`&&(N=!0);let P=(e,n)=>{e.stopPropagation(),d.mutate({id:n.oid,module:t})},F=()=>{d.mutate({id:0,module:t})},L=(e,n)=>{e.stopPropagation(),s.mutate({expertControl:{oid:n.oid,isActive:!n.isActive,rules:[]},module:t})},R=()=>{v(!0),x({})},ee=e=>{x(a.data?.controls.find(t=>t.oid===e)),v(!0)},B=(e,n)=>{e.stopPropagation(),u.mutate({id:n.oid,module:t})},U=async()=>{await h.invalidateQueries({queryKey:Q.list(t)})},G=e=>{let n=e.target.checked?`0`:`1`;h.setQueryData($.detail(t,`CONTROLSEXPERTACTIVE`),e=>e?{...e,valeur:n}:[]),m.mutate({diverParameter:h.getQueryData($.detail(t,`CONTROLSEXPERTACTIVE`)),module:t})},K=[{title:`Code`,dataKey:`code`},{title:`Texte`,dataKey:`texte`,flexGrow:2,flexShrink:2,cellRenderer:({rowData:e})=>{let t=e.texte;return(0,q.jsx)(`div`,{className:`BaseTable__row-cell-text`,children:(0,q.jsx)(D,{label:t,isCti:e.isCti,icon:`Hospital`,toolTipLabel:`Contrôle expert créé par l'établissement`})})}},{title:`Contrôle expert Actif`,dataKey:`isCti`,align:`center`,width:100,dataGetter:({rowData:e})=>(0,q.jsx)(z,{checked:e.isActive,onClick:t=>L(t,e)})},{title:`Date dernière éxecution`,dataKey:`lastExecutionTimestamp`,align:`right`,dataGetter:({rowData:e})=>e.lastExecutionTimestamp?(0,te.default)(e.lastExecutionTimestamp).format(`DD/MM/YYYY`):`Jamais exécuté`},{title:`Statut dernière éxecution`,dataKey:`lastExecutionOk`,align:`center`,dataGetter:({rowData:e})=>e.lastExecutionOk?(0,q.jsx)(c,{style:{color:`#52c41a`,display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`}}):null},{title:`Nombre de signalements`,dataKey:`lastExecutionCount`,align:`right`,width:150},{title:`Gravité`,dataKey:`graviteId`,align:`center`,width:100,dataGetter:({rowData:e})=>(0,q.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`},children:(e=>{switch(e?.graviteId){case`5`:return(0,q.jsx)(y,{style:{color:`#faad14`}});case`9`:return(0,q.jsx)(i,{style:{color:`#ff4d4f`}});default:return(0,q.jsx)(r,{style:{color:`#1677ff`}})}})(e)})},{title:`Action`,dataKey:`action`,width:170,minWidth:140,align:`center`,dataGetter:({rowData:e})=>(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(j,{title:`Executer`,children:(0,q.jsx)(f,{style:{marginLeft:8},onClick:t=>P(t,e),children:(0,q.jsx)(k,{})})}),(0,q.jsx)(j,{title:`Supprimer`,children:(0,q.jsx)(f,{type:`danger`,style:{marginLeft:8},disabled:e.isCti&&!g?.ISROLECTI,onClick:t=>B(t,e),children:(0,q.jsx)(I,{})})})]})}].map(e=>({width:200,key:e.dataKey,...e}));return(0,q.jsxs)(`div`,{className:`expert-settings`,children:[(0,q.jsx)(ue,{showModal:_,selectedControl:b,schema:t,data:a.data??[],setShowModal:v}),(0,q.jsx)(l,{children:(0,q.jsx)(`title`,{children:`iCTI | Paramètres contrôle expert`})}),(0,q.jsx)(ge,{title:`Paramètre contrôle expert`,handleRefresh:U,label:`contrôle expert`,handleAddItem:R,handleExecute:F,searchTerm:E,setSearchTerm:O,headerActionsToDisplay:[`disengage`,`refresh`,`add`,`execute`],headerFiltersToDisplay:[`search`,`showCtiItems`,`showActiveItems`],showActiveItemsOnly:S,setShowActiveItemsOnly:C,showCtiItemsOnly:w,setShowCtiItemsOnly:T,executeIsLoading:d.isPending,disangageValue:N,handleDisangage:G}),(0,q.jsx)(`div`,{className:`component-content`,children:(0,q.jsx)(V,{loading:a.isFetching,fixed:!1,columns:K,rowKey:`oid`,data:A,rowHeight:40,rowClassName:({columns:e,rowData:t,rowIndex:n})=>{let r=`expert-row`;return t.isActive||(r+=` expert-control-inactive`),r},onRowSelect:ee})})]})};Ce.propTypes={softCode:G.default.string};export{Ce as default}; \ No newline at end of file diff --git a/assets/Exploit-BaWtWdll.js b/assets/Exploit-BaWtWdll.js new file mode 100644 index 0000000..25be1b4 --- /dev/null +++ b/assets/Exploit-BaWtWdll.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BDcMaxoP.js";import{V as i}from"./ctiAxios-HKh7HuhO.js";import{t as a}from"./button-xukQsL9n.js";import{$ as o,B as s,H as c,I as l,Q as u,ht as d,v as f,z as p}from"./index-C1mw6CgG.js";import{t as m}from"./logs.queries-Dl26GlbD.js";var h=e(t()),g=e(i()),_=e(r()),v=n(),y=({status:e,env:t,provider:n,module:r,duration:i,start:a,running:o})=>{let c=l().data,u=window.location,d=u.origin,f=u.pathname.replace(c?.environment?.ICTIDIR??``,`iCTI_${t.code}`),p=``,m=``;switch(e){case 0:p=`rgb(240, 255, 241)`,m=`3px solid rgb(124, 217, 146)`;break;case 1:p=`rgb(254, 255, 240)`,m=`3px solid rgb(247, 228, 99)`;break;case 2:p=`rgb(255, 242, 240)`,m=`3px solid rgb(235, 96, 96)`;break;case-1:p=`rgb(211,211,211)`,m=`3px solid rgb(122, 122, 122)`;break;default:break}return(0,v.jsx)(`a`,{href:d+f,target:`_blank`,rel:`noreferrer`,children:(0,v.jsxs)(`div`,{className:`exploit-env`,style:{backgroundColor:p,border:m},children:[(0,v.jsxs)(`div`,{className:`exploit-label`,children:[o===1&&(0,v.jsx)(s,{className:`exploit__icon`,spin:!0}),r??`${t.code} - ${t.trig&&t.trig!==``?t.trig+` - `:``}${t.comment}`]}),a&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Débuté le `,(0,g.default)(a).format(`DD/MM/YYYY à HH:mm`)]}),i&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Durée: `,i]}),(0,v.jsx)(`div`,{className:`exploit-provider`,children:n})]},r||t.code)})};y.propTypes={status:_.default.number,env:_.default.object,provider:_.default.string,module:_.default.string,duration:_.default.string,start:_.default.string,running:_.default.number};var b={iCTI_activite:`ADMPROVIDER`,iCTI_pmsi:`PMSIPROVIDER`,iCTI_pmsipsy:`PMSIPSYPROVIDER`,iCTI_pmsihad:`PMSIHADPROVIDER`,iCTI_pmsissr:`PMSISSRPROVIDER`,iCTI_rh:`RHPROVIDER`,iCTI_compta:`COMPTAPROVIDER`,iCTI_eco:`ECOPROVIDER`,iCTI_dpi:`DPIPROVIDER`},x=()=>{let e=m(),t=l(),n=e.data?.envs??[],r=e.data?.timestamp,i=t.data,[s,_]=(0,h.useState)([`Synthèse`]),[x,S]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(n.length){let e=[];n.forEach(t=>{t.jobs.forEach(t=>{let n=``;switch(t.job){case`iCTI_consolidation_pmsi`:n=`iCTI_pmsi`;break;case`iCTI_import_activite_consolidation`:n=`iCTI_activite`;break;default:n=t.job.replace(/iCTI_(import_)?/,``);break}f[n]&&!e.includes(n)&&e.push(n)})}),_(e)}},[n]);let C=()=>{e.refetch()},w=e=>n.filter(t=>t.jobs.some(t=>e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e))).sort((e,t)=>e.code.localeCompare(t.code)).map(t=>{let n=t.jobs.find(t=>e===`rss_rsf`?t.job.includes(e)&&!t.job.includes(`en_cours`):e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e));if(n){let r=n.status,i=n.running;return(0,v.jsx)(y,{status:r,running:i,env:t,provider:Object.keys(t.settings).length?t.settings[b[f[e].module]]:``,duration:n.duration,start:n.start},t.code)}else return null});return!e.isFetching&&!i?.environment?.ISEXPLOIT?(0,v.jsx)(o,{icon:(0,v.jsx)(p,{}),title:`Cette fonctionnalité n'est pas encore disponible sur votre serveur.`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`div`,{className:`component-header`,children:[(0,v.jsxs)(`div`,{className:`header-title`,children:[i?.environment?.ISEXPLOIT===`1`?`Résumé Exploitation Serveur `:`Résumé Exploitation `,`(dernière mise à jour: `,(0,g.default)(r).format(`HH:mm`),`)`]}),(0,v.jsxs)(`div`,{className:`header-actions`,children:[(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`div`,{className:`actions-label`,children:`Afficher les jobs CTI:`}),(0,v.jsx)(u,{checked:x,onChange:e=>S(e)})]}),(0,v.jsx)(a,{onClick:C,type:`primary`,loading:e.isFetching,disabled:e.isFetching,icon:(0,v.jsx)(c,{}),children:`Rafraichir`})]})]}),(0,v.jsx)(`div`,{className:`component-content`,children:(0,v.jsx)(d,{items:[{label:`Synthèse`,key:`total`,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:(e=>{if(e)return n.sort((e,t)=>e.code.localeCompare(t.code)).map(e=>(0,v.jsx)(y,{status:e.jobs.map(e=>e.status).includes(-1)?-1:e.jobs.reduce((e,t)=>(x||f[t.module])&&t.status>e?t.status:e,0),running:0,env:e,provider:``},e.code));{let e=n.find(e=>e.code===i?.environment?.ICTIDIR?.replace(`iCTI_`,``));if(e)return e.jobs.map(t=>{let n=t.module===t.job?t.job.replace(/iCTI_(import_)?/,``):t.module,r=Object.keys(e.settings).length&&f[t.module]?e.settings[b[f[t.module].module]]:null;return x||f[n]?(0,v.jsx)(y,{status:t.status,running:t.running,env:e,provider:r,duration:t.duration,start:t.start,module:f[n]?f[n].label:n},t.job):null})}})(i?.environment?.ISEXPLOIT===`1`)})},{tabsItems:()=>{let e=[];return i?.environment?.ISEXPLOIT===`1`&&(e=s.map(e=>({label:f[e]?.label??e,key:e,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:w(e)})}))),e}}]})})]})};export{x as default}; \ No newline at end of file diff --git a/assets/Exploit-yVAt52Ij.css b/assets/Exploit-yVAt52Ij.css new file mode 100644 index 0000000..dfcbee3 --- /dev/null +++ b/assets/Exploit-yVAt52Ij.css @@ -0,0 +1 @@ +.exploit__icon{margin-right:6px}.actions-label{font-size:14px;font-weight:400}.exploit-module{flex-flow:wrap;padding-top:12px;display:flex;overflow-y:scroll}.exploit-env{border:1px solid #000;border-radius:5px;flex-flow:column;width:320px;height:120px;margin-bottom:12px;margin-right:12px;padding:8px;display:flex}.exploit-label{font-size:14px;font-weight:500}.exploit-provider{margin-top:auto;font-style:italic} diff --git a/assets/FavoritesEditor-DNSVAy1I.css b/assets/FavoritesEditor-DNSVAy1I.css new file mode 100644 index 0000000..166db6b --- /dev/null +++ b/assets/FavoritesEditor-DNSVAy1I.css @@ -0,0 +1 @@ +.editable-label{cursor:pointer;flex-flow:row;align-items:center;height:24px;margin:4px 6px;padding:0 6px;display:flex}.editable-label:hover{background-color:#eee;border:1px solid #fff;border-radius:4px}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.favorites-editor{flex-flow:row;align-items:center;height:100%;display:flex}.favorites-editor .ant-tree-switcher{align-items:center;display:flex}.favorites-editor-items,.favorites-editor-menu{background-color:#fff;flex-flow:column;width:100%;height:100%;min-height:0;display:flex;box-shadow:0 .125rem .25rem #00000013}.favorites-editor .ant-tree{height:100%;min-height:0;padding-top:8px}.favorites-editor .ant-tree-list{height:100%;min-height:0}.favorites-editor .ant-tree-list>div{height:100%;overflow:scroll}.favorites-editor .ant-tree-list-holder-inner{height:300px;max-height:100%}.favorites-actions{flex-flow:row;justify-content:space-between;align-items:center;height:100%;display:flex}.favorites-loader{z-index:1000;height:0;position:relative;top:150px} diff --git a/assets/FavoritesEditor-mJChfUvn.js b/assets/FavoritesEditor-mJChfUvn.js new file mode 100644 index 0000000..2d80a4c --- /dev/null +++ b/assets/FavoritesEditor-mJChfUvn.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o,r as s}from"./axios-BDcMaxoP.js";import{t as c}from"./index.esm-D4i6w2dF.js";import{t as l}from"./input-C55Uc3oN.js";import{t as u}from"./button-xukQsL9n.js";import{t as d}from"./tree-Df2nuFCU.js";import{t as f}from"./queryOptions-Cg9orY1Y.js";import{t as p}from"./LeftSquareOutlined-DRQwPml3.js";import{t as m}from"./Loader-BvAKWCqv.js";import{Z as h,d as g,f as _,u as v}from"./index-C1mw6CgG.js";import{t as y}from"./SaveButton-BWNmkjLW.js";import{n as b}from"./userUtils-Cx2i_4wQ.js";var x={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder-add`,theme:`outlined`};i();var S=e(t()),C=S.forwardRef(function(e,t){return S.createElement(a,r(r({},e),{},{ref:t,icon:x}))}),w={all:[`favorites`],list:()=>[...w.all,`list`]},T=()=>f({queryKey:w.list(),queryFn:_}),E=()=>s(T()),D=e(o()),O=n(),k=({text:e,nodeKey:t,setLabel:n,onEditingChange:r})=>{let[i,a]=(0,S.useState)(e),[o,s]=(0,S.useState)(!1),[c,u]=(0,S.useState)(!1),d=(0,S.useRef)();(0,S.useEffect)(()=>{c&&d.current.focus()},[c]);let f=e=>{a(e.target.value)},p=()=>{s(!o)};return(0,O.jsx)(`div`,{className:`editable-title`,onMouseEnter:p,onMouseLeave:p,children:c?(0,O.jsx)(l,{ref:d,draggable:!1,style:{marginLeft:`6px`,width:`50%`},value:i,onChange:f,onBlur:e=>{u(!1),r(!1),n(t,i)}}):(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(`div`,{className:`editable-label`,onClick:()=>{let e=!c;u(e),r(e)},children:i})})})};k.propTypes={text:D.default.string,nodeKey:D.default.string,setLabel:D.default.func,onEditingChange:D.default.func.isRequired};var{DirectoryTree:A}=d,j=()=>{let e=E(),t=g();e.data;let[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(!1),[o,s]=(0,S.useState)([]),[l,d]=(0,S.useState)([]),[f,_]=(0,S.useState)([]),[x,w]=(0,S.useState)([]),[T,D]=(0,S.useState)([]),[j,M]=(0,S.useState)(!1);(0,S.useEffect)(()=>{let t=e.data;t?.myFavorites&&r(N(t.myFavorites,``,!0)),t?.allViews&&s(N(t.allViews))},[e.data]);function N(e,t=``,n=!1){let r=[];return Object.values(e).forEach((e,i)=>{let a=(t===``?``:t+`_`)+i,o={...e,key:a,isLeaf:!0,title:e.label,editable:n};delete o.icon,e.children&&(o.children=N(e.children,a,n),o.isLeaf=!1,o.checkable=!1),r.push(o)}),r}function P(e,t){let i=n.map(e=>({...e}));I(i,e,(e,n,r)=>{e.label=t}),r(i)}function F(e,t=``){let n=[];return e.forEach((e,r)=>{let i=(t===``?``:t+`_`)+r+e.name;e.key=i,e.children&&(e.children=F(e.children,i),e.isLeaf=!1),n.push(e)}),n}function I(e,t,n){for(let r=0;r{a(!0);let e={name:`Nouveau dossier`,label:`Nouveau dossier`,editable:!0,key:(n.length+1).toString(),view:``,isLeaf:!1,children:[]};r(F([...n,e]))},R=(e,t)=>{if(t.checked)D([...T,...t.checkedNodes]);else{let e=T.findIndex(e=>e.key===t.node.key),n=[...T];n.splice(e,1),D(n)}d(e)},z=(e,t)=>{if(t.checked)w([...x,t.node]);else{let e=x.findIndex(e=>e.key===t.node.key),n=[...x];n.splice(e,1),w(n)}_(e)},B=()=>{a(!0);let e=N(x,``,!0);r(F([...n,...e])),w([]),_([])},V=()=>{a(!0);let e=n.map(e=>({...e}));T.forEach(t=>{I(e,t.key,(e,t,n)=>{n.splice(t,1)})});let t=F(e);D([]),d([]),r(t)},H=({event:e,node:t,dragNode:i,dropPosition:o,dropToGap:s})=>{a(!0);let c=n.map(e=>({...e})),l=t.key,u=i.key;if(!s)I(c,l,e=>{if(!e.isLeaf){let t;I(c,u,(e,n,r)=>{t={...e},r.splice(n,1)}),e.children=e.children||[],e.children.push(t)}});else if((t.children||[]).length>0&&t.expanded&&o===1){let e;I(c,u,(t,n,r)=>{e={...t},r.splice(n,1)}),I(c,l,t=>{t.children=t.children||[],t.children.unshift(e)})}else{let e;I(c,u,(t,n,r)=>{e={...t},r.splice(n,1)});let t,n;I(c,l,(e,r,i)=>{t=i,n=r}),o===-1?t.splice(n,0,e):t.splice(n+1,0,e)}r(c)},U=()=>{let e=v({sendFavorites:{XMLType:`MYFAVORITES`,children:b(n)}},!0);t.mutate({myFavorites:e})},W=e=>e?.map(e=>({...e,title:e.editable?(0,O.jsx)(k,{text:e.label,nodeKey:e.key,setLabel:P,onEditingChange:M}):e.label,children:e.children?W(e.children):null})),G=W(n);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(c,{children:(0,O.jsx)(`title`,{children:`iCTI | Gestion des favoris`})}),(0,O.jsxs)(`div`,{className:`component-header`,children:[(0,O.jsx)(`h1`,{className:`header-title`,children:`Organisation de mes favoris`}),(0,O.jsx)(`div`,{className:`favorites-actions`,children:(0,O.jsx)(y,{onClick:U,disabled:!i||t.isPending,loading:t.isPending,toolTipTitle:`Enregistrer`})})]}),(0,O.jsx)(`div`,{className:`component-content`,children:(0,O.jsxs)(`div`,{className:`favorites-editor`,children:[(0,O.jsxs)(`div`,{className:`favorites-editor-items`,children:[(0,O.jsxs)(`div`,{className:`tree-header`,children:[(0,O.jsx)(`h2`,{children:`Mes Favoris`}),(0,O.jsxs)(`div`,{className:`header-actions`,children:[(0,O.jsx)(u,{type:`link`,onClick:L,children:(0,O.jsx)(C,{})}),(0,O.jsx)(u,{type:`link`,onClick:V,children:(0,O.jsx)(h,{})})]})]}),e.isFetching?null:(0,O.jsx)(A,{checkable:!0,treeData:G,draggable:!j,blockNode:!0,onDrop:H,checkedKeys:l,onCheck:R})]}),(0,O.jsx)(`div`,{className:`transfer-actions`,children:(0,O.jsx)(u,{type:`link`,onClick:B,children:(0,O.jsx)(p,{})})}),(0,O.jsxs)(`div`,{className:`favorites-editor-menu`,children:[(0,O.jsx)(`h2`,{className:`tree-header`,children:`Vues disponibles`}),e.isFetching?(0,O.jsx)(`div`,{className:`favorites-loader`,children:(0,O.jsx)(m,{size:`small`})}):(0,O.jsx)(A,{checkable:!0,treeData:o,checkedKeys:f,onCheck:z})]})]})})]})};export{j as default}; \ No newline at end of file diff --git a/assets/Filter-6hGzrL6X.js b/assets/Filter-6hGzrL6X.js new file mode 100644 index 0000000..d83f528 --- /dev/null +++ b/assets/Filter-6hGzrL6X.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{fill:`currentColor`,d:`M14.453 22.656q-.19 0-.368-.06l-3.914-1.302a1.17 1.17 0 0 1-.796-1.112V14.36l-.004-.007-8.235-9.591a1.465 1.465 0 0 1 1.113-2.42h20.505a1.465 1.465 0 0 1 1.113 2.42l-8.238 9.593-.004.006v7.122a1.17 1.17 0 0 1-1.172 1.172`})});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/FilterOutline-0NxB8lny.js b/assets/FilterOutline-0NxB8lny.js new file mode 100644 index 0000000..94ae681 --- /dev/null +++ b/assets/FilterOutline-0NxB8lny.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{fill:`#fff`,stroke:`currentColor`,d:`M14.455 22.156h-.002a.7.7 0 0 1-.21-.034L10.33 20.82a.67.67 0 0 1-.455-.636v-5.931l-.044-.098a.5.5 0 0 0-.085-.131l-8.23-9.587a.965.965 0 0 1 .732-1.593h20.506a.965.965 0 0 1 .957 1.098l.495.07-.495-.07a.97.97 0 0 1-.224.495L15.25 14.03a.6.6 0 0 0-.063.091l-.062.112v7.253a.67.67 0 0 1-.196.474l.354.354-.354-.354a.67.67 0 0 1-.474.196Z`})});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/Home-C0KXjxek.js b/assets/Home-C0KXjxek.js new file mode 100644 index 0000000..e85918c --- /dev/null +++ b/assets/Home-C0KXjxek.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:[(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.772 4.945a.39.39 0 0 0-.54 0l-8.99 8.588a.4.4 0 0 0-.12.282l-.002 8.06a1.56 1.56 0 0 0 1.563 1.563h4.692a.78.78 0 0 0 .781-.782v-6.64a.39.39 0 0 1 .39-.391h3.907a.39.39 0 0 1 .39.39v6.641a.78.78 0 0 0 .782.782h4.69a1.563 1.563 0 0 0 1.563-1.563v-8.06a.4.4 0 0 0-.12-.282z`}),(0,i.jsx)(`path`,{fill:`currentColor`,d:`m23.97 11.921-3.652-3.494V3.125a.78.78 0 0 0-.781-.781h-2.344a.78.78 0 0 0-.781.781v1.563l-2.828-2.705c-.265-.267-.659-.42-1.084-.42-.424 0-.816.153-1.081.42L1.033 11.92c-.303.293-.342.775-.065 1.093a.78.78 0 0 0 1.132.052l10.132-9.682a.39.39 0 0 1 .54 0l10.132 9.682a.78.78 0 0 0 1.103-.022c.3-.31.275-.823-.037-1.122`})]});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/HomeOutline-DA8r8OiJ.js b/assets/HomeOutline-DA8r8OiJ.js new file mode 100644 index 0000000..a7e8657 --- /dev/null +++ b/assets/HomeOutline-DA8r8OiJ.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 26 25`,...e,children:[(0,i.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,clipPath:`url(#home-outline_svg__a)`,children:[(0,i.jsx)(`path`,{d:`M4.87 10.352v11.523a.78.78 0 0 0 .782.781h4.687v-6.64a1.17 1.17 0 0 1 1.172-1.172h3.906a1.17 1.17 0 0 1 1.172 1.172v6.64h4.688a.78.78 0 0 0 .781-.781V10.352`}),(0,i.jsx)(`path`,{d:`M24.402 12.5 13.996 2.54c-.244-.259-.815-.262-1.063 0L2.527 12.5M20.496 8.74V3.125h-2.344v3.37`})]}),(0,i.jsx)(`defs`,{children:(0,i.jsx)(`clipPath`,{id:`home-outline_svg__a`,children:(0,i.jsx)(`path`,{fill:`#fff`,d:`M.964 0h25v25h-25z`})})})]});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/Hospital-B-IOUtwu.js b/assets/Hospital-B-IOUtwu.js deleted file mode 100644 index 14bb209..0000000 --- a/assets/Hospital-B-IOUtwu.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a}from"./index-mh7VHmRi.js";const t=h=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48",...h,children:[a.jsx("path",{fill:"#45413C",d:"M3.5 45.5c0 .398 2.16.78 6.004 1.06 3.845.282 9.06.44 14.496.44 5.437 0 10.651-.158 14.496-.44 3.844-.28 6.004-.662 6.004-1.06s-2.16-.78-6.004-1.06C34.65 44.157 29.436 44 24 44c-5.437 0-10.651.158-14.496.44-3.844.28-6.004.662-6.004 1.06",opacity:.15}),a.jsx("path",{fill:"#8CA4B8",d:"M4 15h40v3H4z"}),a.jsx("path",{fill:"#ADC4D9",d:"M43 15H5a1 1 0 0 0-1 1v1a1 1 0 0 0 0 .25 1 1 0 0 1 1-.75h38a1 1 0 0 1 1 .75q.015-.125 0-.25v-1a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 15h40v3H4z"}),a.jsx("path",{fill:"#fff",d:"M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"}),a.jsx("path",{fill:"#E0E0E0",d:"M5 18h38v2.25H5z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"}),a.jsx("path",{fill:"#fff",d:"M13.5 12.5h21v32h-21z"}),a.jsx("path",{fill:"#E0E0E0",d:"M13.5 12.5h21v1.79h-21z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 12.5h21v32h-21z"}),a.jsx("path",{fill:"#00B8F0",d:"M18 33.5h12v11H18z"}),a.jsx("path",{fill:"#4ACFFF",d:"M20.44 44.5h5.2L30 33.93v-.43h-5.03z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 33.5h12v11H18z"}),a.jsx("path",{fill:"#8CA4B8",d:"M17 30h14v3.5H17z"}),a.jsx("path",{fill:"#ADC4D9",d:"M30 30H18a1 1 0 0 0-1 1v1.5a.5.5 0 0 0 0 .12 1 1 0 0 1 1-.87h12a1 1 0 0 1 1 .87.5.5 0 0 0 0-.12V31a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 30h14v3.5H17z"}),a.jsx("path",{fill:"#8CA4B8",d:"M12.5 9.5h23v3h-23z"}),a.jsx("path",{fill:"#ADC4D9",d:"M34.5 9.5h-21a1 1 0 0 0-1 1v1q.01.129.05.25a1 1 0 0 1 .95-.75h21a1 1 0 0 1 1 .75 1 1 0 0 0 0-.25v-1a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.5 9.5h23v3h-23z"}),a.jsx("path",{fill:"#FF6242",stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M27.5 19H26a.5.5 0 0 1-.5-.5V17a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H22a.5.5 0 0 1 .5.5V24a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-1.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5"}),a.jsx("path",{fill:"#00B8F0",d:"M8 20.5h2.5V25H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 25H10a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{fill:"#00B8F0",d:"M8 27.5h2.5V32H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 32H10a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{fill:"#00B8F0",d:"M8 34.5h2.5V39H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 39H10a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20.5h2.5V25H8zm0 7h2.5V32H8zm0 7h2.5V39H8z"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 20.5H40V25h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 25h1.5a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 25"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 27.5H40V32h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 32h1.5a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 32"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 34.5H40V39h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 39h1.5a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 39"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M24 33.5v11m13.5-24H40V25h-2.5zm0 7H40V32h-2.5zm0 7H40V39h-2.5z"})]});export{t as default}; diff --git a/assets/Hospital-Cq8lBfIi.js b/assets/Hospital-Cq8lBfIi.js new file mode 100644 index 0000000..d66c45f --- /dev/null +++ b/assets/Hospital-Cq8lBfIi.js @@ -0,0 +1 @@ +import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";e();var n=t(),r=e=>(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 48 48`,...e,children:[(0,n.jsx)(`path`,{fill:`#45413C`,d:`M3.5 45.5c0 .398 2.16.78 6.004 1.06 3.845.282 9.06.44 14.496.44 5.437 0 10.651-.158 14.496-.44 3.844-.28 6.004-.662 6.004-1.06s-2.16-.78-6.004-1.06C34.65 44.157 29.436 44 24 44c-5.437 0-10.651.158-14.496.44-3.844.28-6.004.662-6.004 1.06`,opacity:.15}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M4 15h40v3H4z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M43 15H5a1 1 0 0 0-1 1v1a1 1 0 0 0 0 .25 1 1 0 0 1 1-.75h38a1 1 0 0 1 1 .75q.015-.125 0-.25v-1a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 15h40v3H4z`}),(0,n.jsx)(`path`,{fill:`#fff`,d:`M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`}),(0,n.jsx)(`path`,{fill:`#E0E0E0`,d:`M5 18h38v2.25H5z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`}),(0,n.jsx)(`path`,{fill:`#fff`,d:`M13.5 12.5h21v32h-21z`}),(0,n.jsx)(`path`,{fill:`#E0E0E0`,d:`M13.5 12.5h21v1.79h-21z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M13.5 12.5h21v32h-21z`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M18 33.5h12v11H18z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M20.44 44.5h5.2L30 33.93v-.43h-5.03z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18 33.5h12v11H18z`}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M17 30h14v3.5H17z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M30 30H18a1 1 0 0 0-1 1v1.5a.5.5 0 0 0 0 .12 1 1 0 0 1 1-.87h12a1 1 0 0 1 1 .87.5.5 0 0 0 0-.12V31a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 30h14v3.5H17z`}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M12.5 9.5h23v3h-23z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M34.5 9.5h-21a1 1 0 0 0-1 1v1q.01.129.05.25a1 1 0 0 1 .95-.75h21a1 1 0 0 1 1 .75 1 1 0 0 0 0-.25v-1a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12.5 9.5h23v3h-23z`}),(0,n.jsx)(`path`,{fill:`#FF6242`,stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M27.5 19H26a.5.5 0 0 1-.5-.5V17a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H22a.5.5 0 0 1 .5.5V24a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-1.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 20.5h2.5V25H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 25H10a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 27.5h2.5V32H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 32H10a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 34.5h2.5V39H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 39H10a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 20.5h2.5V25H8zm0 7h2.5V32H8zm0 7h2.5V39H8z`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 20.5H40V25h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 25h1.5a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 25`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 27.5H40V32h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 32h1.5a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 32`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 34.5H40V39h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 39h1.5a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 39`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M24 33.5v11m13.5-24H40V25h-2.5zm0 7H40V32h-2.5zm0 7H40V39h-2.5z`})]});export{r as default}; \ No newline at end of file diff --git a/assets/Import-D6wnUmCv.js b/assets/Import-D6wnUmCv.js new file mode 100644 index 0000000..39e8416 --- /dev/null +++ b/assets/Import-D6wnUmCv.js @@ -0,0 +1,4 @@ +import{a as e,o as t,t as n}from"./chunk-jRWAZmH_.js";import{n as r,t as i}from"./jsx-runtime-CEixWuwE.js";import{$ as a,A as o,At as s,Cr as c,Gn as l,In as u,Jt as d,Kn as f,Ln as p,Q as m,Qt as h,Sn as g,Wn as _,Y as v,Yt as y,Zt as b,ar as x,cr as S,gr as C,hr as w,ir as T,jt as E,kt as D,n as O,nn as k,nr as A,o as j,or as M,ot as ee,r as te,rr as ne,sr as N,st as P,tn as F,tr as re,xn as ie}from"./axios-BDcMaxoP.js";import{t as ae}from"./index.esm-D4i6w2dF.js";import{t as oe}from"./input-C55Uc3oN.js";import{i as se}from"./ctiAxios-HKh7HuhO.js";import{n as ce,t as le}from"./slicedToArray-BjCmY1mt.js";import{n as I,t as ue}from"./typeof-C6uZ2mkP.js";import{i as L,r as R}from"./asyncToGenerator-BFc9W-7V.js";import{l as de,m as fe,p as pe,t as z,u as me}from"./button-xukQsL9n.js";import{t as he}from"./table-adA-XDZ0.js";import{i as B}from"./select-dQ-XiIfN.js";import{r as ge}from"./pagination-Bbd-H34x.js";import{t as _e}from"./tooltip-D0a9NNK5.js";import{i as V}from"./iconUtil-DGYSxFEZ.js";import{t as ve}from"./popconfirm-BanNBanA.js";import{t as H}from"./DownloadOutlined-BxQhjjNl.js";import{a as ye,i as be,n as xe,r as Se}from"./notification-DIuyPXAV.js";import{t as U}from"./useMutation-BtpRmKbj.js";import{t as Ce}from"./UndoOutlined-DAvTbx0c.js";import{A as we,F as Te,J as W,L as Ee,M as De,N as G,P as Oe,V as ke,Y as K,Z as Ae,at as je,b as Me,ht as Ne,it as Pe,j as Fe,mt as Ie,s as Le,st as Re,x as ze,z as Be}from"./index-C1mw6CgG.js";import{t as Ve}from"./BaseActionButton-C-haanPv.js";import{D as He,E as Ue,S as We,T as Ge,a as Ke,b as qe,c as Je,d as Ye,f as Xe,g as Ze,h as Qe,i as $e,l as et,m as tt,n as nt,o as rt,r as it,s as at,t as ot,u as st,w as ct,x as lt,y as ut}from"./context-CpzI18et.js";import{i as dt,n as ft,r as pt,t as mt}from"./ref-CAN0g-GQ.js";import{d as ht,f as gt,i as _t}from"./path-DqrO9bqq.js";import{n as vt,r as yt,t as bt}from"./importColumn-GAofQzY-.js";var q=t(r()),xt={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,trailColor:`#D9D9D9`,trailWidth:1,gapPosition:`bottom`},St=function(){var e=(0,q.useRef)([]),t=(0,q.useRef)(null);return(0,q.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}}),r&&(t.current=Date.now())}),e.current},J=t(_());ce(),y();var Ct=0,wt=d();function Tt(){var e;return wt?(e=Ct,Ct+=1):e=`TEST_OR_SSR`,e}var Et=(function(e){var t=le(q.useState(),2),n=t[0],r=t[1];return q.useEffect(function(){r(`rc_progress_${Tt()}`)},[]),e||n});S(),I(),p(),k();var Dt=[`id`,`prefixCls`,`steps`,`strokeWidth`,`trailWidth`,`gapDegree`,`gapPosition`,`trailColor`,`strokeLinecap`,`style`,`className`,`strokeColor`,`percent`];function Ot(e){return+e.replace(`%`,``)}function kt(e){var t=e??[];return Array.isArray(t)?t:[t]}var At=100,jt=function(e,t,n,r,i,a,o,s,c,l){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`0 0`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Mt=function(e){var t=u(u({},xt),e),n=t.id,r=t.prefixCls,i=t.steps,a=t.strokeWidth,o=t.trailWidth,s=t.gapDegree,c=s===void 0?0:s,l=t.gapPosition,d=t.trailColor,f=t.strokeLinecap,p=t.style,m=t.className,h=t.strokeColor,g=t.percent,_=F(t,Dt),v=`${Et(n)}-gradient`,y=At/2-a/2,b=Math.PI*2*y,x=c>0?90+c/2:-90,S=b*((360-c)/360),C=ue(i)===`object`?i:{count:i,space:2},w=C.count,T=C.space,E=jt(b,S,0,100,x,c,l,d,f,a),D=kt(g),O=kt(h),k=O.find(function(e){return e&&ue(e)===`object`}),A=St();return q.createElement(`svg`,N({className:(0,J.default)(`${r}-circle`,m),viewBox:`${-At/2} ${-At/2} ${At} ${At}`,style:p,id:n,role:`presentation`},_),k&&q.createElement(`defs`,null,q.createElement(`linearGradient`,{id:v,x1:`100%`,y1:`0%`,x2:`0%`,y2:`0%`},Object.keys(k).sort(function(e,t){return Ot(e)-Ot(t)}).map(function(e,t){return q.createElement(`stop`,{key:t,offset:e,stopColor:k[e]})}))),!w&&q.createElement(`circle`,{className:`${r}-circle-trail`,r:y,cx:0,cy:0,stroke:d,strokeLinecap:f,strokeWidth:o||a,style:E}),w?function(){var e=Math.round(w*(D[0]/100)),t=100/w,n=0;return Array(w).fill(null).map(function(i,o){var s=o<=e-1?O[0]:d,u=s&&ue(s)===`object`?`url(#${v})`:void 0,f=jt(b,S,n,t,x,c,l,s,`butt`,a,T);return n+=(S-f.strokeDashoffset+T)*100/S,q.createElement(`circle`,{key:o,className:`${r}-circle-path`,r:y,cx:0,cy:0,stroke:u,strokeWidth:a,opacity:1,style:f,ref:function(e){A[o]=e}})})}():function(){var e=0;return D.map(function(t,n){var i=O[n]||O[O.length-1],o=i&&ue(i)===`object`?`url(#${v})`:void 0,s=jt(b,S,e,t,x,c,l,i,f,a);return e+=t,q.createElement(`circle`,{key:n,className:`${r}-circle-path`,r:y,cx:0,cy:0,stroke:o,strokeLinecap:f,strokeWidth:a,opacity:t===0?0:1,style:s,ref:function(e){A[n]=e}})}).reverse()}())};function Y(e){return!e||e<0?0:e>100?100:e}function Nt(e){var t=e.success,n=e.successPercent;return t&&`progress`in t&&(n=t.progress),t&&`percent`in t&&(n=t.percent),n}L(),b();function Pt(e){var t=e.percent,n=e.success,r=e.successPercent,i=Y(Nt({success:n,successPercent:r}));return[i,Y(Y(t)-i)]}function Ft(e){var t=e.success,n=t===void 0?{}:t,r=e.strokeColor;return[n.strokeColor||h.green,r||null]}var It=function(e){var t=e.prefixCls,n=e.width,r=e.strokeWidth,i=e.trailColor,a=i===void 0?null:i,o=e.strokeLinecap,s=o===void 0?`round`:o,c=e.gapPosition,l=e.gapDegree,u=e.type,d=e.children,f=e.success,p=n||120,m={width:p,height:p,fontSize:p*.15+6},h=r||6,g=c||u===`dashboard`&&`bottom`||void 0,_=function(){if(l||l===0)return l;if(u===`dashboard`)return 75},v=Object.prototype.toString.call(e.strokeColor)===`[object Object]`,y=Ft({success:f,strokeColor:e.strokeColor}),b=(0,J.default)(`${t}-inner`,R({},`${t}-circle-gradient`,v));return q.createElement(`div`,{className:b,style:m},q.createElement(Mt,{percent:Pt(e),strokeWidth:h,trailWidth:h,strokeColor:y,strokeLinecap:s,trailColor:a,prefixCls:t,gapDegree:_(),gapPosition:g}),d)};S(),b();var Lt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=100?`success`:t||`normal`}function y(t,n){var r=e.format,i=Nt(e);if(!f)return null;var o,l=r||function(e){return`${e}%`},u=m===`line`;return r||n!==`exception`&&n!==`success`?o=l(Y(c),Y(i)):n===`exception`?o=u?q.createElement(D,null):q.createElement(a,null):n===`success`&&(o=u?q.createElement(s,null):q.createElement(B,null)),q.createElement(`span`,{className:`${t}-text`,title:typeof o==`string`?o:void 0},o)}var b=q.useContext(v),x=b.getPrefixCls,S=b.direction,C=x(`progress`,t),w=_(),T=y(C,w),E=Array.isArray(i)?i[0]:i,O=typeof i==`string`||Array.isArray(i)?i:void 0,k;m===`line`?k=r?q.createElement(Vt,N({},e,{strokeColor:O,prefixCls:C,steps:r}),T):q.createElement(Bt,N({},e,{strokeColor:E,prefixCls:C,direction:S}),T):(m===`circle`||m===`dashboard`)&&(k=q.createElement(It,N({},e,{strokeColor:E,prefixCls:C,progressStatus:w}),T));var A=(0,J.default)(C,R(R(R(R(R({},`${C}-${m===`dashboard`&&`circle`||r&&`steps`||m}`,!0),`${C}-status-${w}`,!0),`${C}-show-info`,f),`${C}-${u}`,u),`${C}-rtl`,S===`rtl`),n);return q.createElement(`div`,N({},me(h,[`status`,`format`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`strokeLinecap`,`success`,`successPercent`]),{className:A,role:`progressbar`}),k)};S(),p(),k(),M(),T(),A(),f(),g(),L();var Gt=[`className`,`prefixCls`,`style`,`active`,`status`,`iconPrefix`,`icon`,`wrapperStyle`,`stepNumber`,`disabled`,`description`,`title`,`subTitle`,`progressDot`,`stepIcon`,`tailContent`,`icons`,`stepIndex`,`onStepClick`,`onClick`];function Kt(e){return typeof e==`string`}var qt=function(e){l(n,e);var t=ie(n);function n(){var e;x(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),R(re(e),`onClick`,function(){var t=e.props,n=t.onClick,r=t.onStepClick,i=t.stepIndex;n&&n.apply(void 0,arguments),r(i)}),e}return ne(n,[{key:`renderIconNode`,value:function(){var e,t=this.props,n=t.prefixCls,r=t.progressDot,i=t.stepIcon,a=t.stepNumber,o=t.status,s=t.title,c=t.description,l=t.icon,u=t.iconPrefix,d=t.icons,f,p=(0,J.default)(`${n}-icon`,`${u}icon`,(e={},R(e,`${u}icon-${l}`,l&&Kt(l)),R(e,`${u}icon-check`,!l&&o===`finish`&&(d&&!d.finish||!d)),R(e,`${u}icon-cross`,!l&&o===`error`&&(d&&!d.error||!d)),e)),m=q.createElement(`span`,{className:`${n}-icon-dot`});return f=r?typeof r==`function`?q.createElement(`span`,{className:`${n}-icon`},r(m,{index:a-1,status:o,title:s,description:c})):q.createElement(`span`,{className:`${n}-icon`},m):l&&!Kt(l)?q.createElement(`span`,{className:`${n}-icon`},l):d&&d.finish&&o===`finish`?q.createElement(`span`,{className:`${n}-icon`},d.finish):d&&d.error&&o===`error`?q.createElement(`span`,{className:`${n}-icon`},d.error):l||o===`finish`||o===`error`?q.createElement(`span`,{className:p}):q.createElement(`span`,{className:`${n}-icon`},a),i&&(f=i({index:a-1,status:o,title:s,description:c,node:f})),f}},{key:`render`,value:function(){var e,t=this.props,n=t.className,r=t.prefixCls,i=t.style,a=t.active,o=t.status,s=o===void 0?`wait`:o;t.iconPrefix;var c=t.icon;t.wrapperStyle,t.stepNumber;var l=t.disabled,d=t.description,f=t.title,p=t.subTitle;t.progressDot,t.stepIcon;var m=t.tailContent;t.icons,t.stepIndex;var h=t.onStepClick,g=t.onClick,_=F(t,Gt),v=(0,J.default)(`${r}-item`,`${r}-item-${s}`,n,(e={},R(e,`${r}-item-custom`,c),R(e,`${r}-item-active`,a),R(e,`${r}-item-disabled`,l===!0),e)),y=u({},i),b={};return h&&!l&&(b.role=`button`,b.tabIndex=0,b.onClick=this.onClick),q.createElement(`div`,N({},_,{className:v,style:y}),q.createElement(`div`,N({onClick:g},b,{className:`${r}-item-container`}),q.createElement(`div`,{className:`${r}-item-tail`},m),q.createElement(`div`,{className:`${r}-item-icon`},this.renderIconNode()),q.createElement(`div`,{className:`${r}-item-content`},q.createElement(`div`,{className:`${r}-item-title`},f,p&&q.createElement(`div`,{title:typeof p==`string`?p:void 0,className:`${r}-item-subtitle`},p)),d&&q.createElement(`div`,{className:`${r}-item-description`},d))))}}]),n}(q.Component);S(),p(),k(),M(),T(),A(),f(),g(),L();var Jt=[`prefixCls`,`style`,`className`,`children`,`direction`,`type`,`labelPlacement`,`iconPrefix`,`status`,`size`,`current`,`progressDot`,`stepIcon`,`initial`,`icons`,`onChange`,`items`],Yt=function(e){l(n,e);var t=ie(n);function n(){var e;x(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),R(re(e),`onStepClick`,function(t){var n=e.props,r=n.onChange,i=n.current;r&&i!==t&&r(t)}),e}return ne(n,[{key:`render`,value:function(){var e,t=this,n=this.props,r=n.prefixCls,i=n.style,a=i===void 0?{}:i,o=n.className;n.children;var s=n.direction,c=n.type,l=n.labelPlacement,d=n.iconPrefix,f=n.status,p=n.size,m=n.current,h=n.progressDot,g=n.stepIcon,_=n.initial,v=n.icons,y=n.onChange,b=n.items,x=b===void 0?[]:b,S=F(n,Jt),C=c===`navigation`,w=h?`vertical`:l,T=(0,J.default)(r,`${r}-${s}`,o,(e={},R(e,`${r}-${p}`,p),R(e,`${r}-label-${w}`,s===`horizontal`),R(e,`${r}-dot`,!!h),R(e,`${r}-navigation`,C),e));return q.createElement(`div`,N({className:T,style:a},S),x.filter(function(e){return e}).map(function(e,n){var i=u({},e),o=_+n;return f===`error`&&n===m-1&&(i.className=`${r}-next-error`),i.status||(o===m?i.status=f:o{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=function(e){return+setTimeout(e,16)},n=function(e){return clearTimeout(e)};typeof window<`u`&&`requestAnimationFrame`in window&&(t=function(e){return window.requestAnimationFrame(e)},n=function(e){return window.cancelAnimationFrame(e)});var r=0,i=new Map;function a(e){i.delete(e)}var o=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;r+=1;var o=r;function s(n){if(n===0)a(o),e();else{var r=t(function(){s(n-1)});i.set(o,r)}}return s(n),o};o.cancel=function(e){var t=i.get(e);return a(e),n(t)},e.default=o})),an=n((e=>{var t=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=a;var n=t(rn()),r=0,i={};function a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=r++,o=t;function s(){--o,o<=0?(e(),delete i[a]):i[a]=(0,n.default)(s)}return i[a]=(0,n.default)(s),a}a.cancel=function(e){e!==void 0&&(n.default.cancel(i[e]),delete i[e])},a.ids=i})),on=n((e=>{var t=Ue().default,n=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var i=n(Ye()),a=n(st()),o=n(Ke()),s=n(at()),c=n(Je()),l=n(rt()),u=n(et()),d=lt(),f=mt(),p=t(r()),m=nt(),h=n(an()),g=pt();function _(e,t,n){return t=(0,c.default)(t),(0,o.default)(e,(0,s.default)()?Reflect.construct(t,n||[],(0,c.default)(e).constructor):t.apply(e,n))}var v;function y(e){return!e||e.offsetParent===null||e.hidden}function b(e){return e instanceof Document?e.body:Array.from(e.childNodes).find(function(e){return e?.nodeType===Node.ELEMENT_NODE})}function x(e){var t=(e||``).match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var S=function(e){(0,u.default)(t,e);function t(){var e;return(0,i.default)(this,t),e=_(this,t,arguments),e.containerRef=p.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r=e.props,i=r.insertExtraNode;if(!(r.disabled||!t||y(t)||t.className.includes(`-leave`))){e.extraNode=document.createElement(`div`);var a=(0,l.default)(e).extraNode,o=e.context.getPrefixCls;a.className=`${o(``)}-click-animating-node`;var s=e.getAttributeName();if(t.setAttribute(s,`true`),n&&n!==`#fff`&&n!==`#ffffff`&&n!==`rgb(255, 255, 255)`&&n!==`rgba(255, 255, 255, 1)`&&x(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&n!==`transparent`){a.style.borderColor=n;var c=t.getRootNode?.call(t)||t.ownerDocument,u=b(c)??c;v=(0,d.updateCSS)(` + [${o(``)}-click-animating-without-extra-node='true']::after, .${o(``)}-click-animating-node { + --antd-wave-shadow-color: ${n}; + }`,`antd-wave`,{csp:e.csp,attachTo:u})}i&&t.appendChild(a),[`transition`,`animation`].forEach(function(n){t.addEventListener(`${n}start`,e.onTransitionStart),t.addEventListener(`${n}end`,e.onTransitionEnd)})}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;!t||t.target!==n||e.animationStart||e.resetEffect(n)}},e.onTransitionEnd=function(t){!t||t.animationName!==`fadeEffect`||e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(!(!t||!t.getAttribute||t.getAttribute(`disabled`)||t.className.includes(`disabled`))){var n=function(n){if(!(n.target.tagName===`INPUT`||y(n.target))){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue(`border-top-color`)||getComputedStyle(t).getPropertyValue(`border-color`)||getComputedStyle(t).getPropertyValue(`background-color`);e.clickWaveTimeoutId=window.setTimeout(function(){return e.onClick(t,r)},0),h.default.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,h.default)(function(){e.animationStart=!1},10)}};return t.addEventListener(`click`,n,!0),{cancel:function(){t.removeEventListener(`click`,n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!p.isValidElement(r))return r;var i=e.containerRef;return(0,f.supportRef)(r)&&(i=(0,f.composeRef)(r.ref,e.containerRef)),(0,g.cloneElement)(r,{ref:i})},e}return(0,a.default)(t,[{key:`componentDidMount`,value:function(){this.destroyed=!1;var e=this.containerRef.current;!e||e.nodeType!==1||(this.instance=this.bindAnimationEvent(e))}},{key:`componentWillUnmount`,value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:`getAttributeName`,value:function(){var e=this.context.getPrefixCls;return this.props.insertExtraNode?`${e(``)}-click-animating`:`${e(``)}-click-animating-without-extra-node`}},{key:`resetEffect`,value:function(e){var t=this;if(!(!e||e===this.extraNode||!(e instanceof Element))){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,`false`),v&&(v.innerHTML=``),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),[`transition`,`animation`].forEach(function(n){e.removeEventListener(`${n}start`,t.onTransitionStart),e.removeEventListener(`${n}end`,t.onTransitionEnd)})}}},{key:`render`,value:function(){return p.createElement(m.ConfigConsumer,null,this.renderWave)}}]),t}(p.Component);S.contextType=m.ConfigContext,e.default=S})),sn=n((e=>{var t=Ue().default,n=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.GroupSizeContext=void 0;var i=n(W()),a=n(Ge()),o=n(_()),s=t(r()),c=nt();n(Ze());var l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n=K().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var i=n(Xe()),a=n((P(),e(ee))),o=n(r()),s=function(){return{width:0,opacity:0,transform:`scale(0)`}},c=function(e){return{width:e.scrollWidth,opacity:1,transform:`scale(1)`}};t.default=function(e){var t=e.prefixCls,n=e.loading,r=e.existIcon,l=!!n;return r?o.default.createElement(`span`,{className:`${t}-loading-icon`},o.default.createElement(i.default,null)):o.default.createElement(a.default,{visible:l,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:s,onAppearActive:c,onEnterStart:s,onEnterActive:c,onLeaveStart:c,onLeaveActive:s},function(e,n){var r=e.className,a=e.style;return o.default.createElement(`span`,{className:`${t}-loading-icon`,style:a,ref:n},o.default.createElement(i.default,{className:r}))})}})),ln=n((e=>{var t=Ue().default,n=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.convertLegacyProps=O,e.default=void 0;var i=n(W()),a=n(Ge()),o=n(ct()),s=n(He()),c=n(_()),l=n(ut()),u=t(r()),d=nt(),f=n($e()),p=n(it()),m=dt(),h=pt(),g=ft();n(Ze());var v=n(on()),y=t(sn()),b=n(cn()),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default=t(ln()).default})),dn=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTransitionName=e.getTransitionDirection=e.default=void 0;var t=ft(),n=function(){return{height:0,opacity:0}},r=function(e){return{height:e.scrollHeight,opacity:1}},i=function(e){return{height:e?e.offsetHeight:0}},a=function(e,t){return t?.deadline===!0||t.propertyName===`height`},o={motionName:`ant-motion-collapse`,onAppearStart:n,onEnterStart:n,onAppearActive:r,onEnterActive:r,onLeaveStart:i,onLeaveActive:n,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500};(0,t.tuple)(`bottomLeft`,`bottomRight`,`topLeft`,`topRight`),e.getTransitionDirection=function(e){return e!==void 0&&(e===`topLeft`||e===`topRight`)?`slide-down`:`slide-up`},e.getTransitionName=function(e,t,n){return n===void 0?`${e}-${t}`:n},e.default=o})),fn=n((e=>{var t=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.isStyleSupport=a;var n=t(We()),r=function(e){if((0,n.default)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],r=window.document.documentElement;return t.some(function(e){return e in r.style})}return!1},i=function(e,t){if(!r(e))return!1;var n=document.createElement(`div`),i=n.style[e];return n.style[e]=t,n.style[e]!==i};function a(e,t){return!Array.isArray(e)&&t!==void 0?i(e,t):r(e)}})),pn=n((e=>{var t=K().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.detectFlexGapSupported=e.canUseDocElement=void 0,Object.defineProperty(e,`isStyleSupport`,{enumerable:!0,get:function(){return r.isStyleSupport}});var n=t(We()),r=fn(),i=e.canUseDocElement=function(){return(0,n.default)()&&window.document.documentElement},a;e.detectFlexGapSupported=function(){if(!i())return!1;if(a!==void 0)return a;var e=document.createElement(`div`);return e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e),a=e.scrollHeight===1,document.body.removeChild(e),a}})),mn=t(n((t=>{var n=Ue().default,i=K().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var a=i(Ge()),o=i(W()),s=i(qe()),c=i(_()),l=i((je(),e(Pe))),u=n(r()),d=i(un()),f=ln(),p=nt(),m=ot(),h=i(tt()),g=dt(),v=dn(),y=pn();i(Ze());var b=Qe(),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i(0,Z.jsxs)(mn.default,{open:e,title:`Options de génération`,okText:`Lancer la génération`,cancelText:`Annuler`,onOk:()=>{i.mutate({import_id:t,module:r,...a},{onSettled:(e,t)=>{t||e.returnType===`error`?s(2,!0):s(3)}}),n()},onCancel:n,children:[(0,Z.jsx)(`div`,{className:`form-row`,children:(0,Z.jsxs)(`div`,{className:`form-item`,children:[(0,Z.jsx)(`span`,{className:`first-label`,children:`Générer contrôles expert`}),(0,Z.jsx)(Ie,{checked:a.option_expert,onChange:e=>o(e.target.checked,`option_expert`)})]})}),(0,Z.jsx)(`div`,{className:`form-row`,children:(0,Z.jsxs)(`div`,{className:`form-item`,children:[(0,Z.jsx)(`span`,{className:`first-label`,children:`Générer essentiels`}),(0,Z.jsx)(Ie,{checked:a.option_essentiels,onChange:e=>o(e.target.checked,`option_essentiels`)})]})})]});hn.propTypes={showGenerateModal:X.default.bool,handleShowGenerateModal:X.default.func,selectedImportId:X.default.string,module:X.default.string,importOptions:X.default.object,generateImportMutation:X.default.object,handleImportOptions:X.default.func,updateProgression:X.default.func};var gn=({jobsQueryData:e,isJobsQueryLoading:t,selectedJobId:n,handleSelectedJobId:r})=>(0,Z.jsx)(`div`,{className:`import-jobs`,children:(0,Z.jsx)(Le,{columns:bt,data:e,loading:t,selectedRowOid:n,handleSelectedRowOid:r})});gn.propTypes={jobsQueryData:X.default.array,isJobsQueryLoading:X.default.bool,selectedJobId:X.default.string,handleSelectedJobId:X.default.func};var _n=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=w(t,`FILE`),r=w(t,`STATUS`)[0];return{files:c(n),statusMessage:C(r)}},Q=`modules/base/php/import`,vn=async e=>(await G.post(`${Q}/getImportJobs.php`,e)).data,yn=async e=>_n(await se(_t(e,`getFiles.php`,`httpservice_PMSI_rssUpload_getFiles.php`))),bn=async(e,t)=>{let n={type:t.type,importFile:t.name,importFileDate:t.lastModified.toString().substring(0,10),Filedata:t},r=_t(e,`upload.php`,`importUploadFiles.php`);if([`pmsi`,`pmsissr`].includes(e)){let e=Oe(n),t=(await De.post(r,e)).data;if(t.returnCode===`KO`)throw Error(t.returnTexte);return t}let i=(await se(r,n)).getElementsByTagName(`HTTP_SERVICE`)[0],a=C(i);if(a.returnCode===`KO`)throw Error(a.returnTexte);return a},xn=async e=>(await G.post(`${Q}/removeFile.php`,{filename:e})).data,Sn=async(e,t)=>{let n=(await se(_t(e,`valideFiles.php`,`httpservice_PMSI_rssUpload_valideFiles.php`),t)).getElementsByTagName(`HTTP_SERVICE`)[0],r=C(n);if(r.returnCode===`KO`)throw Error(r.returnTexte);return r},Cn=async(e,t)=>{let n={module:e,import_id:t},r=(await G.post(`${Q}/execControl.php`,n)).data;if(r.returnType===`error`)throw Error(r.message);return r},wn=async e=>(await G.post(`${Q}/getImports.php`,e)).data,Tn=async(e,t)=>{let n={module:t,option:`D`,import_id:e};await G.post(`${Q}/execImport.php`,n)},En=async(e,t)=>{let n={module:t,option:`C`,import_id:e},r=(await G.post(`${Q}/execImport.php`,n)).data;if(r.returnType===`error`)throw Error(r.message);return r},Dn=async(e,t,n)=>{let r={...n,module:t,option:`G`,import_id:e},i=(await G.post(`${Q}/execImport.php`,r)).data;if(i.returnType===`error`)throw Error(i.message);return i},On=async(e,t)=>{let n=new FormData;n.append(`import_id`,e);let r=_t(t,`getImportRapport.php`,`PMSI_getImportRapport.php`),i=await we.post(r,n);return new TextDecoder(`iso-8859-15`).decode(i.data)},kn=async(e,t,n)=>{let r=new FormData;r.append(`import_id`,e),r.append(`data_type`,n);let i=_t(t,`getFile.php`,`PMSI_getFile.php`);return await Fe.post(i,r)},$={all:[`imports`],jobs:e=>[...$.all,`jobs`,e],uploadedFiles:e=>[...$.all,`uploadedFiles`,e],list:e=>[...$.all,`list`,e]},An=(e,t)=>te({queryKey:$.jobs(e.module),queryFn:()=>vn(e),enabled:t===`jobs`}),jn=e=>te({queryKey:$.uploadedFiles(e),queryFn:()=>yn(e)}),Mn=e=>te({queryKey:$.list(e.module),queryFn:()=>wn(e),staleTime:1e3*60*5,gcTime:1e3*60*5});function Nn(){let e=j();return U({mutationFn:({module:e,file:t})=>bn(e,t),meta:{errorMessage:`Erreur lors du téléchargement du fichier`},onSuccess:(e,t)=>{be({message:`Fichier téléchargé`,description:t.file.name})},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.uploadedFiles(r.module)})}})}function Pn(){let e=j();return U({mutationFn:({filename:e})=>xn(e),meta:{successMessage:`Fichier supprimé`,errorMessage:`Erreur lors de la suppression du fichier`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.uploadedFiles(r.module)})}})}function Fn(){let e=j();return U({mutationFn:({module:e,importOptions:t})=>Sn(e,t),meta:{errorMessage:`Erreur de validation des fichiers`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.list(r.module)}),await e.invalidateQueries({queryKey:$.uploadedFiles(r.module)})}})}function In(){let e=j();return U({mutationFn:({module:e,import_id:t})=>Cn(e,t),meta:{errorMessage:`Erreur lancement des contrôles`},onSuccess:e=>{Se({type:e.returnType,message:`Contrôle terminé`,description:e.message})},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.list(r.module)})}})}function Ln(){let e=j();return U({mutationFn:({import_id:e,module:t})=>Tn(e,t),meta:{successMessage:`Suppression réussie`,errorMessage:`Erreur lors de la suppression`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.list(r.module)})}})}function Rn(){let e=j();return U({mutationFn:({import_id:e,module:t})=>En(e,t),meta:{errorMessage:`Erreur lancement des contrôles`},onMutate:()=>{Se({type:`info`,message:`Contrôle`,description:`Contrôle lancé`})},onSuccess:e=>{Se({type:e.returnType,message:`Contrôle terminé`,description:e.message})},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.list(r.module)})}})}function zn(){let e=j();return U({mutationFn:({import_id:e,module:t,...n})=>Dn(e,t,n),meta:{successMessage:`La génération a été lancée sur le serveur`,errorMessage:`Erreur génération`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:$.list(r.module)})}})}function Bn(){return U({mutationFn:({import_id:e,module:t})=>On(e,t),meta:{errorMessage:`Erreur lors de l'affichage du rapport`},onSuccess:e=>{let t=new Blob([e],{type:`text/html;charset=utf-8`}),n=URL.createObjectURL(t),r=window.open(n);setTimeout(()=>URL.revokeObjectURL(n),1e3),r||xe({message:`Impossible d'ouvrir le rapport`,description:`Le popup a été bloqué par le navigateur`})}})}function Vn(){return U({mutationFn:({import_id:e,module:t,fileImportType:n})=>kn(e,t,n),meta:{successMessage:`Téléchargement débuté`,errorMessage:`Erreur téléchargement`},onSuccess:e=>{let t=ze(e);Me(e.data,t)}})}var Hn=({fileTypes:e,handleImportOptions:t,importOptions:n,module:r,progress:i,isShowProgressBar:a,updateProgression:o})=>{let s=(0,q.useRef)(),c=jn(r),l=Nn(),u=Pn();return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`import-new`,children:[(0,Z.jsx)(`span`,{className:`new-title`,children:`Fichiers locaux à importer`}),(0,Z.jsxs)(`div`,{className:`upload-form`,children:[(0,Z.jsx)(z,{icon:(0,Z.jsx)(Ee,{}),loading:l.isPending,disabled:l.isPending,onClick:()=>{s.current.click()},children:`Rechercher`}),(0,Z.jsx)(`input`,{type:`file`,ref:s,onChange:e=>{let t=e.target.files[0];t&&(c.data.files.some(e=>t.name===e.name)?ye({message:`Fichier déjà présent`,description:t.name}):l.mutate({module:r,file:t}),e.target.value=null)},style:{display:`none`}}),(0,Z.jsxs)(`div`,{className:`description`,children:[(0,Z.jsx)(`span`,{style:{marginRight:`20px`},children:`Texte`}),(0,Z.jsx)(oe,{style:{width:`200px`},value:n.import_texte,onChange:e=>t(e.target.value,`import_texte`)})]})]}),(0,Z.jsx)(he,{dataSource:c.data?.files??[],columns:vt(e,r,(e,t)=>{o(-1),u.mutate({filename:e,module:t})}),loading:c.isPending??!0,pagination:!1})]}),(0,Z.jsx)(`div`,{className:`import-progress`,style:{display:a&&i.current!==-1?`block`:`none`},children:(0,Z.jsx)(en,{current:i.current,status:i.status,items:[{title:`Validation des fichiers`},{title:`Contrôle des fichiers`},{title:`Lancement génération`}]})})]})};Hn.propTypes={fileTypes:X.default.array,handleImportOptions:X.default.func,importOptions:X.default.object,module:X.default.string,progress:X.default.object,isShowProgressBar:X.default.bool,updateProgression:X.default.func};var Un=({importData:e,importIsLoading:t,selectedImportId:n,handleSelectedImportId:r,module:i})=>(0,Z.jsx)(`div`,{className:`import-state`,children:(0,Z.jsx)(Le,{columns:yt(i),data:e,loading:t,selectedRowOid:n,handleSelectedRowOid:r})});Un.propTypes={importData:X.default.array,importIsLoading:X.default.bool,selectedImportId:X.default.string,handleSelectedImportId:X.default.func,module:X.default.string};var Wn=({importsQuery:e,fileTypes:t,selectedImportId:n,setShowGenerateModal:r,module:i,setIsShowProgressBar:a,generateImportMutation:o})=>{let s=Ln(),c=Rn(),l=Bn(),u=Vn(),d=j(),f=async()=>{await d.invalidateQueries({queryKey:$.list(i)})},p=()=>{s.mutate({import_id:n,module:i})},m=()=>{l.mutate({import_id:n,module:i})},h=()=>{c.mutate({import_id:n,module:i})},g=()=>{a(!1),r(!0)},_=async({key:e})=>{await u.mutateAsync({import_id:n,module:i,fileImportType:e})},v=(()=>{let r=[],i=e.data?.find(e=>e.oid===n);return i&&(r=t.reduce((e,{key:t,label:n})=>{let r=`${t.toLocaleLowerCase()}_file_path`;return i[r]&&i[r]!==``?[...e,{label:n,key:t}]:e},[])),r})();return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Te,{title:`Actualiser`,children:(0,Z.jsx)(z,{type:`link`,onClick:f,disabled:e.isFetching,children:(0,Z.jsx)(Ce,{})})}),(0,Z.jsx)(Te,{title:`Supprimer l'import`,children:(0,Z.jsx)(ve,{placement:`top`,style:{zIndex:`4000`},title:`Etes vous sur de vouloir supprimer l'import ?`,onConfirm:p,okText:`Supprimer`,cancelText:`Annuler`,children:(0,Z.jsx)(z,{type:`link`,disabled:!n||s.isPending,children:(0,Z.jsx)(Ae,{})})})}),(0,Z.jsx)(z,{size:`default`,icon:(0,Z.jsx)(V,{}),loading:l.isPending,disabled:!n||l.isPending,onClick:m,children:`Dernier rapport`}),(0,Z.jsx)(z,{size:`default`,icon:(0,Z.jsx)(Be,{}),loading:c.isPending,disabled:!n||c.isPending,onClick:h,children:`Recontrôler`}),(0,Z.jsx)(z,{size:`default`,icon:(0,Z.jsx)(ke,{}),loading:o.isPending,disabled:!n||o.isPending,onClick:g,children:`Générer`}),(0,Z.jsx)(Re,{menu:{items:v,onClick:_},disabled:!n||u.isPending,trigger:[`click`],arrow:!0,children:(0,Z.jsx)(z,{size:`default`,type:`primary`,icon:(0,Z.jsx)(H,{}),loading:u.isPending,children:`Télécharger fichier`})})]})};Wn.propTypes={importsQuery:X.default.object,fileTypes:X.default.array,selectedImportId:X.default.string,setShowGenerateModal:X.default.func,module:X.default.string,setIsShowProgressBar:X.default.func,generateImportMutation:X.default.object};var Gn=({importOptions:e,setShowGenerateModal:t,setSelectedImportId:n,module:r,updateProgression:i,setIsShowProgressBar:a,validateUploadedFilesMutation:o,controlUploadedFiles:s})=>{let c=jn(r),l=!c.data?.files?.length||!e.import_texte||c?.data?.statusMessage?.statusCode===`KO`,u=null;if(l){let t=c?.data?.statusMessage?.statusText?.split(`;`);u=l?(0,Z.jsxs)(Z.Fragment,{children:[`Génération impossible :`,(0,Z.jsxs)(`ul`,{style:{margin:0,paddingLeft:16},children:[t?.map(e=>(0,Z.jsx)(`li`,{children:e},e)),e.import_texte?``:(0,Z.jsx)(`li`,{children:`Champ texte vide`},`texte`)]})]}):``}let d=()=>{i(0),a(!0),o.mutate({module:r,importOptions:e},{onSuccess:e=>{f(e.import_id)},onError:()=>{i(0,!0)}})},f=e=>{i(1),s.mutate({module:r,import_id:e},{onError:()=>{i(1,!0)},onSuccess:r=>{i(2),t(!0),n(e)}})};return(0,Z.jsxs)(Z.Fragment,{children:[l&&(0,Z.jsx)(_e,{title:u,children:(0,Z.jsx)(m,{style:{color:`#FF8801`,fontSize:18,cursor:`pointer`}})}),(0,Z.jsx)(Ve,{withPopConfirm:!0,onClick:d,confirmTitle:`Confirmez-vous le lancement de cet import ?`,okText:`Lancer l'import`,cancelText:`Annuler`,icon:(0,Z.jsx)(nn,{}),disabled:l,loading:o.isPending||s.isPending,children:`Lancer l'import`})]})};Gn.propTypes={importOptions:X.default.object,module:X.default.string,updateProgression:X.default.func,setShowGenerateModal:X.default.func,setIsShowProgressBar:X.default.func,setSelectedImportId:X.default.func,validateUploadedFilesMutation:X.default.object,controlUploadedFiles:X.default.object};var Kn=({module:e,jobsQueryIsFetching:t})=>{let n=j();return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(Te,{title:`Actualiser`,children:(0,Z.jsx)(z,{type:`link`,disabled:t,onClick:async()=>{await n.invalidateQueries({queryKey:$.jobs(e)})},children:(0,Z.jsx)(Ce,{})})})})};Kn.propTypes={module:X.default.string,jobsQueryIsFetching:X.default.bool};var qn=({softcode:e})=>{let[t,n]=(0,q.useState)(`state`),[r,i]=(0,q.useState)({current:-1,status:`process`}),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(null),[l,u]=(0,q.useState)(null),[d,f]=(0,q.useState)(!1),[p,m]=(0,q.useState)({option_expert:!0,option_essentiels:!0}),h=gt[e]??``,g=Mn({module:h}),_=An({module:h},t),v=Fn(),y=In(),b=zn();if(g.isError){let e=g.error.message;Se({type:`error`,message:`Erreur`,description:e})}let x=ht[h]??[],S={pmsi:`RSS / RSF`,pmsissr:`RHS / RSF`,pmsihad:`RPSS`,pmsipsy:`RPS`}[h]??``,C=e=>{n(e)},w=e=>{c(e)},T=e=>{u(e)},E=(e,t=!1)=>{i({current:e,status:t?`error`:`process`})},D=()=>{f(e=>!e)},O=(e,t)=>{m(n=>({...n,[t]:e}))};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ae,{children:(0,Z.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,Z.jsx)(hn,{showGenerateModal:d,selectedImportId:s,handleShowGenerateModal:D,module:h,generateImportMutation:b,importOptions:p,handleImportOptions:O,updateProgression:E}),(0,Z.jsxs)(`div`,{className:`component-header`,children:[(0,Z.jsxs)(`div`,{className:`header-title`,children:[`Import des fichiers `,S]}),(0,Z.jsx)(`div`,{className:`header-actions`,children:(()=>{switch(t){case`state`:return(0,Z.jsx)(Wn,{importsQuery:g,fileTypes:x,selectedImportId:s,setShowGenerateModal:f,module:h,setIsShowProgressBar:o,generateImportMutation:b});case`new`:return(0,Z.jsx)(Gn,{importOptions:p,setShowGenerateModal:f,setSelectedImportId:c,module:h,updateProgression:E,setIsShowProgressBar:o,validateUploadedFilesMutation:v,controlUploadedFiles:y});case`jobs`:return(0,Z.jsx)(Kn,{module:h,jobsQueryIsFetching:_.isFetching??!0});default:return null}})()})]}),(0,Z.jsx)(`div`,{className:`component-content`,children:(0,Z.jsx)(Ne,{onChange:C,defaultActiveKey:`state`,items:[{label:`Etats des imports`,key:`state`,children:(0,Z.jsx)(Un,{importData:g.data??[],importIsLoading:g.isFetching??!0,selectedImportId:s,handleSelectedImportId:w,module:h})},{label:`Nouvel import`,key:`new`,children:(0,Z.jsx)(Hn,{fileTypes:x,handleImportOptions:O,importOptions:p,module:h,progress:r,isShowProgressBar:a,updateProgression:E})},{label:`Historique des imports`,key:`jobs`,children:(0,Z.jsx)(gn,{jobsQueryData:_.data??[],selectedJobId:l,isJobsQueryLoading:_.isFetching??!0,handleSelectedJobId:T})}]})})]})};qn.propTypes={softcode:X.default.string};export{qn as default}; \ No newline at end of file diff --git a/assets/Import-DlPp7kZf.css b/assets/Import-DlPp7kZf.css new file mode 100644 index 0000000..caad612 --- /dev/null +++ b/assets/Import-DlPp7kZf.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.import-state,.import-jobs{height:100%}.import-new{background-color:#fff;border-radius:5px;flex-flow:column;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.new-title{font-size:14px;font-weight:600}.upload-form{flex-flow:row;justify-content:space-between;align-items:center;width:100%;margin:20px 0;display:flex}.description .ant-select{width:200px;margin-right:10px}.import-progress{background-color:#fff;border-radius:5px;margin-top:10px;padding:20px;box-shadow:0 .125rem .25rem #00000013} diff --git a/assets/ImportOutlined-okr1I4Tb.js b/assets/ImportOutlined-okr1I4Tb.js new file mode 100644 index 0000000..52c2506 --- /dev/null +++ b/assets/ImportOutlined-okr1I4Tb.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z`}}]},name:`import`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/IndicatorsManager-B1yIccHe.js b/assets/IndicatorsManager-B1yIccHe.js new file mode 100644 index 0000000..8743f99 --- /dev/null +++ b/assets/IndicatorsManager-B1yIccHe.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,o as i}from"./axios-BDcMaxoP.js";import{t as a}from"./index.esm-D4i6w2dF.js";import{t as o}from"./input-C55Uc3oN.js";import{B as s}from"./ctiAxios-HKh7HuhO.js";import{t as c}from"./button-xukQsL9n.js";import{t as l}from"./select-dQ-XiIfN.js";import{t as u}from"./SearchOutlined-ouHQf-Hv.js";import{t as d}from"./tooltip-D0a9NNK5.js";import{n as f,t as p}from"./row-CaO7bYqu.js";import{t as m}from"./popconfirm-BanNBanA.js";import{t as h}from"./CopyOutlined-DYcCtig4.js";import{t as g}from"./useMutation-BtpRmKbj.js";import{n as _}from"./DiscardChangesButton-BFEqbiGO.js";import{n as ee}from"./RowLabelWithIcon-Uk-N0Fra.js";import{t as v}from"./UndoOutlined-DAvTbx0c.js";import{t as y}from"./Loader-BvAKWCqv.js";import{D as b,E as x,F as S,I as C,Q as w,X as T,Z as E,ht as D,k as O,mt as k,ot as A,s as j}from"./index-C1mw6CgG.js";import{t as M}from"./SaveButton-BWNmkjLW.js";import{r as N,t as P}from"./useFormIsActive-Bgv4fpIz.js";import{n as F,r as te,t as I}from"./CloseButton-CawXCByx.js";import{a as L,c as ne,i as R,l as z,n as B,o as V,s as H,t as U,u as W}from"./CopyToClipboard-CHoMvyT3.js";import{n as G}from"./Information-BXzTZc0Z.js";import{n as K}from"./indicatorsColumns-BR3REQy_.js";var q=e(t()),J=e(r());function re(){let e=i();return g({mutationFn:({softCode:e,indicator:t})=>W(e,t),meta:{successMessage:`Indicateur enregistré`,errorMessage:`Erreur lors de l'enregistrement de l'indicateur`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:H.list(r.softCode)})}})}function ie(){let e=i();return g({mutationFn:({softCode:e,oid:t})=>z(e,t),meta:{successMessage:`Indicateur supprimé`,errorMessage:`Erreur lors de la suppression de l'indicateur`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:H.list(r.softCode)})}})}function ae(){let e=i();return g({mutationFn:({softCode:e,oid:t})=>ne(e,t),meta:{successMessage:`Indicateur copié`,errorMessage:`Erreur lors de la copie de l'indicateur`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:H.list(r.softCode)})}})}var Y=n(),oe=()=>(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Largeur`}),(0,Y.jsx)(A.Item,{name:`width`,children:(0,Y.jsx)(o,{className:`indicator-form-input`})})]}),(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Format de sortie`}),(0,Y.jsx)(A.Item,{name:`output_format`,children:(0,Y.jsx)(o,{className:`indicator-form-input`})})]})]})}),X=({textAreaLastCursorPosition:e,indicator:t,handleShowModal:n,handleChange:r})=>{let{softCode:i,module:a}=b(),o=B(t,V(i).data??L),s=n=>{let i=``,a=e,o=`[`+n.associatedIndicatorIndex+`]`;i=t.column_name?e?t.column_name.slice(0,a)+o+t.column_name.slice(a):t.column_name+o:o,r({field:`column_name`,value:i})},l=(e=>{for(let[t,n]of Object.entries(e))if(/indicateur_associe_[\d]*_id/.test(t)&&n===`0`)return t;return null})(t);return(0,Y.jsx)(Y.Fragment,{children:(()=>{if(t.table_name&&!t.table_name.includes(`*CALC`))return(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Fonction 'total'`}),(0,Y.jsx)(A.Item,{name:`total_function`,children:(0,Y.jsx)(T,{treeData:R(a),size:`large`,treeDefaultExpandAll:!0,dropdownStyle:{maxHeight:400,overflow:`auto`},className:`indicator-form-input`,onChange:r})})]});{let e=o.map((e,i)=>(0,Y.jsxs)(`li`,{className:`editor__database-joined-indicator-list`,children:[(0,Y.jsxs)(`span`,{className:`editor__database-joined-indicator-list--key`,children:[`[`,e.associatedIndicatorIndex,`] - `]}),(0,Y.jsx)(c,{type:`dashed`,onClick:()=>s(e),children:(0,Y.jsx)(`span`,{children:e.code})}),(0,Y.jsx)(d,{placement:`top`,title:`Modifier l'indicateur`,children:(0,Y.jsx)(c,{type:`secondary`,icon:(0,Y.jsx)(u,{}),onClick:()=>n(`indicateur_associe_${e.associatedIndicatorIndex}_id`,t)})}),(0,Y.jsx)(d,{placement:`top`,title:`Supprimer l'indicateur`,children:(0,Y.jsx)(c,{type:`danger`,icon:(0,Y.jsx)(E,{}),className:`editor__database-joined-indicator--delete-button`,onClick:()=>r({field:`indicateur_associe_${e.associatedIndicatorIndex}_id`,value:`0`})})})]},i));return(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Indicateurs associés:`}),(0,Y.jsxs)(`div`,{className:`editor__database-joined-indicator-block`,children:[o.length>0&&(0,Y.jsx)(`ul`,{children:e}),o.length<=20&&(0,Y.jsx)(c,{onClick:()=>n(l,t),children:`Ajouter`})]})]})})}})()})};X.propTypes={textAreaLastCursorPosition:J.default.oneOfType([J.default.string,J.default.number]),form:J.default.object,indicator:J.default.object,handleShowModal:J.default.func,handleChange:J.default.func};var Z=({tableOptions:e,form:t,indicator:n,handleShowModal:r,handleChange:i})=>{let[a,s]=(0,q.useState)(null),c=e=>{s(e.target.selectionStart)};return(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Table`}),(0,Y.jsx)(A.Item,{name:`table_name`,children:(0,Y.jsx)(l,{className:`indicator-form-input`,onChange:e=>i({field:`table_name`,value:e}),children:e})})]}),n.table_name!==``&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Code SQL`}),(0,Y.jsx)(A.Item,{name:`column_name`,children:(0,Y.jsx)(o.TextArea,{autoSize:{minRows:4},className:`editor__database-textArea`,onChange:e=>i({field:`column_name`,value:e.target.value}),onMouseLeave:e=>c(e)})})]}),n.total_function!==`*LISTANON`&&(0,Y.jsx)(X,{textAreaLastCursorPosition:a,form:t,indicator:n,handleShowModal:r,handleChange:i})]})]})})};Z.propTypes={tableOptions:J.default.array,form:J.default.object,indicator:J.default.object,handleShowModal:J.default.func};var Q=({indicator:e,availableDimensions:t,indicatorDimensions:n,setIndicatorDimensions:r,handleChange:i})=>{let{softCode:a}=b(),c=C().data?.session;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Code`}),(0,Y.jsx)(A.Item,{name:`code`,children:(0,Y.jsx)(o,{className:`indicator-form-input`})}),(0,Y.jsx)(U,{copiedText:e.code,type:`secondary`,style:{marginLeft:8,marginBottom:5}},e.oid)]})}),(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Nom`}),(0,Y.jsx)(A.Item,{name:`texte`,children:(0,Y.jsx)(o,{className:`indicator-form-input`})})]})}),(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Nom abrégé`}),(0,Y.jsx)(A.Item,{name:`entete`,children:(0,Y.jsx)(o.TextArea,{className:`indicator-form-input`})}),(0,Y.jsx)(S,{title:`Nom de l'entéte de la colonne qui apparait dans le rapport`,children:(0,Y.jsx)(G,{style:{marginLeft:6,marginBottom:-1,color:s.lightBlue}})})]})}),(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Description`}),(0,Y.jsx)(A.Item,{name:`description`,children:(0,Y.jsx)(o.TextArea,{className:`indicator-form-input`})})]})}),c.ISROLECTI&&(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Indicateur CTI`}),(0,Y.jsx)(A.Item,{valuePropName:`checked`,name:`is_cti`,children:(0,Y.jsx)(k,{size:`small`,onChange:e=>i({field:`is_cti`,value:e.target.checked})})})]})}),c.ISROLECTI&&a!==`iCTI_dpi`&&(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Indicateur masqué`}),(0,Y.jsx)(A.Item,{valuePropName:`checked`,name:`is_hide`,children:(0,Y.jsx)(k,{size:`small`,onChange:e=>i({field:`is_hide`,value:e.target.checked})})})]})}),(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Indicateur anonymisé`}),(0,Y.jsx)(A.Item,{valuePropName:`checked`,name:`anonymized`,children:(0,Y.jsx)(k,{size:`small`,onChange:t=>{let n={anonymized:t.target.checked};t.target.checked?(n.total_function=`*LISTANON`,e.table_name===`*CALC`&&(n.table_name=``)):n.total_function=`*LIST`,i({fieldsToEdit:n})},disabled:!c.ISROLECTI||!c.ISROLEADMIN})})]})}),a===`iCTI_activite`&&(0,Y.jsx)(`div`,{className:`form-row`,children:(0,Y.jsxs)(`div`,{className:`form-item`,children:[(0,Y.jsx)(`span`,{className:`first-label`,children:`Dimension date`}),e.dimension_date===``||!e.dimension_date?(0,Y.jsx)(A.Item,{name:`dimensions`,children:(0,Y.jsx)(T,{treeData:t,value:n,multiple:!0,onChange:e=>{r(e)}})}):(0,Y.jsx)(`span`,{children:e.dimension_date})]})})]})};Q.propTypes={setModified:J.default.func,indicator:J.default.object,availableDimensions:J.default.array,setIndicatorDimensions:J.default.func,handleChange:J.default.func};var se=({modified:e,indicator:t,handleSubmit:n,handleReset:r,handleCopy:i,handleCloseEditor:a,handleDelete:o,isMutating:s=!1})=>{let l=C().data?.session,u=P(t.is_cti,l),d=t.oid===`-1`;return(0,Y.jsxs)(`div`,{className:`editor-new-indicator-header`,children:[(0,Y.jsx)(`div`,{className:`editor__header-title`,children:d?`Nouvel indicateur`:`Modifier l'indicateur`}),(0,Y.jsxs)(`div`,{className:`editor-indicator-action-button`,children:[!d&&(0,Y.jsx)(S,{title:`Copier l'indicateur`,children:(0,Y.jsx)(c,{size:`default`,icon:(0,Y.jsx)(h,{}),onClick:i,loading:s,children:`Copier`})}),!d&&l?.ISROLECTI&&(0,Y.jsx)(c,{size:`default`,icon:(0,Y.jsx)(_,{}),onClick:()=>N(t.module,t.oid),children:`SQL`}),!d&&(0,Y.jsx)(m,{title:`Voulez-vous vraiment supprimer cet indicateur ?`,okText:`Supprimer`,okButtonProps:{danger:!0},cancelText:`Annuler`,onConfirm:o,disabled:u||s,children:(0,Y.jsxs)(c,{danger:!0,disabled:u||s,children:[(0,Y.jsx)(E,{}),`Supprimer`]})}),(0,Y.jsx)(F,{onConfirm:r,modified:e,disabled:!e||s}),(0,Y.jsx)(M,{onClick:n,toolTipTitle:`Enregistrer`,loading:s,disabled:!e}),(0,Y.jsx)(I,{onConfirm:a,modified:e,disabled:s})]})]})};se.propTypes={modified:J.default.bool,indicator:J.default.object,handleSubmit:J.default.func,handleReset:J.default.func,handleCopy:J.default.func,handleCloseEditor:J.default.func,handleDelete:J.default.func,isMutating:J.default.bool};var{Option:ce}=l,$=({indicator:e,setIndicator:t,showEditor:n,tables:r,handleCloseEditor:i,themes:a,module:o})=>{let s=C(),c=V(o),l=re(),u=ie(),d=ae(),f=c.data??L,p=s.data?.session,[m]=A.useForm(),[h,g]=(0,q.useState)(!1),[_,ee]=(0,q.useState)(),[v,y]=(0,q.useState)(),[b,x]=(0,q.useState)(),[S,w]=(0,q.useState)(),[T,E]=(0,q.useState)(null),[O,k]=(0,q.useState)(!1),[j,M]=(0,q.useState)([]);(0,q.useEffect)(()=>{let t=r.find(t=>t.code===e.table_name);t&&w(t.dimensions)},[e,r]),(0,q.useEffect)(()=>{let t=W(e);m.setFieldsValue(t),ee(t),y(G(e)),x(K(e))},[e,f.indicators]);let N=({value:n,field:r,fieldsToEdit:i})=>{g(!0);let a=JSON.parse(JSON.stringify(e)),o=m.getFieldsValue();for(let e in o)a[e]=o[e];let s={...a};if(r&&n&&(s={...a,[r]:n}),i){for(let e in i)a[e]=i[e];s={...a,fieldsToEdit:i}}t({...s})},F=(e=null,t)=>{e&&(E(e),M(U(t))),k(!O)},I=()=>{g(!0)},ne=()=>{m.setFieldsValue(_),g(!1)},R=()=>{u.mutate({softCode:e.module,oid:e.oid},{onSuccess:()=>i()})},z=()=>{d.mutate({softCode:e.module,oid:e.oid})},B=()=>{let t=H(e,m);l.mutate({softCode:e.module,indicator:t},{onSuccess:()=>g(!1)})},H=(e,t)=>{let n=t.getFieldsValue();for(let e in n)n[e]===!0?n[e]=`1`:n[e]===!1?n[e]=`0`:n[e]||(n[e]=``);let r=J(a);for(let e=1;e<=6;e++){let t=`0`;v[e-1]&&(t=r.find(t=>t.value===v[e-1]).data),n[`theme_${e}_id`]=t}for(let e=1;e<=5;e++){let t=``;b[e-1]&&(t=b[e-1].toString()),n[`dimension_date_${e}`]=t}let i={...e,...n};return delete i.dimensions,delete i.themes,delete i.anonymized,delete i.themesSearch,delete i.is_new,i},U=e=>{let t=[];for(let[n,r]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(n)&&r!==`0`&&t.push(r);let n=f.indicators.filter(e=>!t.includes(e.oid)).filter(t=>![e.oid].includes(t.oid));return n.length>0?n:[]};function W(t){let n=m.getFieldsValue();for(let e in n)n[e]=null;return n.table_name=r[0].code,{...n,...e}}function G(e){let t=[],n=J(a);return e.themes.forEach(e=>{let r=n.find(t=>t.data===e);r&&t.push(r.value)}),t}function K(e){let t=[],n=r.find(t=>t.code===e.table_name);return e?.dimensions.forEach(e=>{let r=n?.dimensions.find(t=>t.value===e);r&&t.push(r.value)}),t}function J(e){let t=[];return e.forEach(e=>{let n={...e};n.children&&(t=t.concat(J(n.children)),delete n.children),t.push(n)}),t}let X=l.isPending||u.isPending||d.isPending,$=r.map((e,t)=>(0,Y.jsx)(ce,{value:e.code,children:e.texte},t));return e.total_function===`*LISTANON`&&($=$.filter(e=>e.props.value!==`*CALC`)),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(te,{showModal:O,handleShowModal:()=>F(null),handleModifyIndicator:N,options:{oneOnly:!0},specifiedIndicators:j,joinedIndicatorIndex:T}),(0,Y.jsxs)(`div`,{className:`editor-indicator-editor`,style:{display:n?`flex`:`none`},children:[(0,Y.jsx)(`div`,{className:`editor-indicator-header `,children:(0,Y.jsx)(se,{modified:h,indicator:e,handleSubmit:B,handleReset:ne,handleCopy:z,handleCloseEditor:i,handleDelete:R,isMutating:X})}),(0,Y.jsxs)(A,{className:`indicator-editor-form`,form:m,onValuesChange:I,disabled:P(e.is_cti,p),children:[(0,Y.jsx)(`div`,{className:`indicator-tab-column`,children:(0,Y.jsx)(D,{items:[{label:`Paramètre`,key:`1`,className:`scrollable-tab`,children:(0,Y.jsx)(Q,{indicator:e,availableDimensions:S,indicatorDimensions:b,setIndicatorDimensions:x,handleChange:N})}]})}),e.code!==`CTI_SEP`&&(0,Y.jsx)(`div`,{className:`indicator-tab-column`,children:(0,Y.jsx)(D,{items:[{label:`Base de donnée`,key:`1`,className:`scrollable-tab`,children:(0,Y.jsx)(Z,{tableOptions:$,form:m,indicator:e,handleShowModal:F,handleChange:N})},{label:`Présentation`,key:`2`,className:`scrollable-tab`,children:(0,Y.jsx)(oe,{})}]})})]})]})]})};$.propTypes={indicator:J.default.object,setIndicator:J.default.func,showEditor:J.default.bool,tables:J.default.arrayOf(J.default.object),handleCloseEditor:J.default.func,themes:J.default.arrayOf(J.default.object),module:J.default.string};var le=q.memo(({tables:e,selectedRow:t,handleSelectedRow:n,module:r,tableData:i,loading:a})=>(0,Y.jsx)(j,{columns:K(r,e),data:i,loading:a,selectedRow:t,onRowSelect:n,rowClassName:({columns:e,rowData:t,rowIndex:n})=>{let r=``;return t.is_hide&&(r+=`settings__rowTable-inactive`),n%2==0&&(r+=` even-row`),r}})),ue=({softCode:e})=>{let t=V(e),n=t.data??L,[r,i]=(0,q.useState)(!1),[s,l]=(0,q.useState)(null),[u,d]=(0,q.useState)(null),[m,h]=(0,q.useState)(`100%`),[g,_]=(0,q.useState)([]),[b,C]=(0,q.useState)(!1),[T,E]=(0,q.useState)(!1),[D,k]=(0,q.useState)(``);return(0,q.useEffect)(()=>{l(null),i(!1),h(`100%`)},[n.indicators]),(0,q.useEffect)(()=>{let e=n.indicators.filter(e=>(!T||e.is_hide===!0)&&(!b||e.is_cti===!0));D&&(e=x(e,D,[`texte`,`column_name`,`code`,`entete`,`table`])),_(e)},[n.indicators,D,b,T]),t.isPending?(0,Y.jsx)(`div`,{className:`loading-wrapper`,children:(0,Y.jsx)(y,{style:{height:`auto`}})}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(a,{children:(0,Y.jsx)(`title`,{children:`iCTI | Gestion des indicateurs`})}),(0,Y.jsxs)(`div`,{className:`component-header`,children:[(0,Y.jsx)(`div`,{className:`header-title`,children:`Gestion des indicateurs`}),(0,Y.jsxs)(`div`,{className:`header-actions`,children:[(0,Y.jsx)(S,{title:`Actualiser`,children:(0,Y.jsx)(c,{type:`link`,onClick:()=>{t.refetch()},children:(0,Y.jsx)(v,{})})}),(0,Y.jsx)(S,{title:`Créer un nouvel indicateur`,children:(0,Y.jsx)(c,{size:`default`,type:`primary`,icon:(0,Y.jsx)(ee,{}),onClick:()=>{d({softCode:e,oid:`-1`,themes:[],dimensions:[],custom_total_function:``,indicateur_associe_1_id:`0`,indicateur_associe_2_id:`0`,indicateur_associe_3_id:`0`,indicateur_associe_4_id:`0`,indicateur_associe_5_id:`0`,indicateur_associe_6_id:`0`,table_name:``,total_function:`*LIST`,is_new:!0,is_cti:!1,is_hide:!1}),l(null),i(!0),h(`55%`)},children:`Ajouter un indicateur`})})]})]}),(0,Y.jsx)(`div`,{className:`settings-filters`,children:(0,Y.jsxs)(p,{children:[(0,Y.jsx)(f,{span:12,children:(0,Y.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:10},children:(0,Y.jsxs)(`div`,{className:`settings-search`,children:[(0,Y.jsx)(`span`,{style:{minWidth:161},children:`Filtre`}),(0,Y.jsx)(o,{className:`search-input`,placeholder:`Recherche`,value:D,onChange:e=>{k(e.target.value)},style:{width:`50%`}})]})})}),(0,Y.jsx)(f,{span:12,children:(0,Y.jsxs)(`div`,{className:`indicators__table-check`,children:[(0,Y.jsx)(`span`,{children:`Afficher uniquement :`}),(0,Y.jsxs)(`div`,{className:`indicators__table-single-check`,children:[(0,Y.jsx)(w,{size:`small`,checked:b,onChange:e=>{C(e)}}),(0,Y.jsx)(`span`,{children:`Indicateurs CTI`})]}),(0,Y.jsxs)(`div`,{className:`indicators__table-single-check`,children:[(0,Y.jsx)(w,{size:`small`,checked:T,onChange:e=>{E(e)}}),(0,Y.jsx)(`span`,{children:`Indicateurs masqués`})]})]})})]})}),(0,Y.jsx)(`div`,{className:`component-content`,children:(0,Y.jsxs)(`div`,{className:`indicators-tab`,children:[(0,Y.jsx)(O,{className:`tables-table`,axis:`x`,handleComponent:{bottom:(0,Y.jsx)(`div`,{className:`resize-handle`,style:{marginBottom:8},children:(0,Y.jsx)(`span`,{children:`…`})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:`100%`,height:m},onResizeStop:e=>{h(m+e.height)},children:(0,Y.jsx)(le,{tables:n.tables,selectedRow:s,handleSelectedRow:e=>{let t=n.indicators.find(t=>t.key===e);t.anonymized=t.total_function===`*LISTANON`,l(t),i(!0),h(`55%`),d(t)},softCode:e,tableData:g,loading:t.isFetching})}),r&&(0,Y.jsx)($,{indicator:u,setIndicator:d,showEditor:r,tables:n.tables,themes:n.themes,handleCloseEditor:()=>{l(null),i(!1),h(`100%`)},softCode:e})]})})]})};ue.propTypes={softCode:J.default.string};var de=q.memo(ue);export{de as default}; \ No newline at end of file diff --git a/assets/IndicatorsManager-CugyWTGU.css b/assets/IndicatorsManager-CugyWTGU.css new file mode 100644 index 0000000..76cf367 --- /dev/null +++ b/assets/IndicatorsManager-CugyWTGU.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.editor-indicator-editor{background-color:#fff;flex-flow:column;flex:3;min-height:0;margin-top:20px;padding:20px;box-shadow:0 .125rem .25rem #00000013}.editor-indicator-header{flex-flow:row;justify-content:flex-end;align-items:center;gap:10px;width:100%;height:30px;display:flex}.editor-indicator-header .close-button{line-height:12px}.editor-new-indicator-header{flex-flow:row;justify-content:space-between;width:100%;height:30px;display:flex}.editor-indicator-action-button{align-items:center;gap:10px;display:flex}.editor-indicator-action-button .close-button{line-height:12px}.scrollable-tab{overflow-y:scroll}.indicator-tab-column{max-width:50%;padding:0 10px}.indicator-tab-column .form-row{flex-flow:wrap;align-items:center;margin-top:4px;display:flex}.editor-form{justify-content:space-around;height:calc(100% - 48px);margin-top:10px;padding:10px 20px}.indicator-editor-form{flex-direction:row;min-height:0;display:flex}.indicator-editor-form .first-label{min-width:130px}.indicator-form-input{min-width:400px}.editor__database-joined-indicator{margin-right:10px}.editor__database-joined-indicator--delete-button{display:block}.editor__database-joined-indicator-block{flex-direction:column;display:flex}.editor__database-joined-indicator-block ul{padding:0}.editor__database-joined-indicator-block li{list-style:none}.editor__database-joined-indicator-list--key{color:var(--primary-color)}.editor__database-joined-indicator-list{gap:10px;margin-bottom:10px;display:flex}.editor__database-joined-indicator-list>button{max-width:287px}.editor__database-joined-indicator-list>button span{text-overflow:ellipsis;max-width:266px;overflow:hidden}.editor__database-textArea{min-width:400px}.editor__header-title{min-width:150px;font-size:14px;font-weight:600}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.indicators-tab{flex-flow:column;height:100%;display:flex}.indicators__table-check{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.indicators__table-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.indicators__table-single-check span{margin-right:0!important}.indicators__table-single-check button{width:30px} diff --git a/assets/Information-BXzTZc0Z.js b/assets/Information-BXzTZc0Z.js new file mode 100644 index 0000000..7d11d14 --- /dev/null +++ b/assets/Information-BXzTZc0Z.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 20 20`,...e,children:(0,i.jsx)(`path`,{fill:`currentColor`,d:`M9 7h2V5H9m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18a10 10 0 1 0 0 20 10 10 0 0 0 0-20M9 15h2V9H9z`})});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/LeftSquareOutlined-DRQwPml3.js b/assets/LeftSquareOutlined-DRQwPml3.js new file mode 100644 index 0000000..62d713b --- /dev/null +++ b/assets/LeftSquareOutlined-DRQwPml3.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`left-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/LicencesManager-BlZQO97C.css b/assets/LicencesManager-BlZQO97C.css new file mode 100644 index 0000000..2446c4d --- /dev/null +++ b/assets/LicencesManager-BlZQO97C.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.licences-info{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.licences-info-row{flex-flow:row;font-size:12px;font-weight:600;display:flex}.licences-info-row span{width:100px;font-weight:400} diff --git a/assets/LicencesManager-DziwskFR.js b/assets/LicencesManager-DziwskFR.js new file mode 100644 index 0000000..96840f6 --- /dev/null +++ b/assets/LicencesManager-DziwskFR.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{o as r}from"./axios-BDcMaxoP.js";import{t as i}from"./index.esm-D4i6w2dF.js";import{t as a}from"./input-C55Uc3oN.js";import{u as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{n as c,t as l}from"./row-CaO7bYqu.js";import{t as u}from"./useMutation-BtpRmKbj.js";import{t as d}from"./UndoOutlined-DAvTbx0c.js";import{t as f}from"./Loader-BvAKWCqv.js";import{F as p,G as m,K as h,Q as g,_,et as v,g as y,h as b,m as x,s as S}from"./index-C1mw6CgG.js";function C(){let e=r();return u({mutationFn:e=>_(e),meta:{successMessage:`Licence ajoutée`,errorMessage:`Erreur lors de l'ajout de la licence`},onSettled:async()=>{await e.invalidateQueries({queryKey:y.all})}})}var w=e(t()),T=n(),E=[{title:`Modules installés`,dataKey:`label`,key:`label`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.label,` `,(0,T.jsx)(`span`,{style:{float:`right`},children:r.licenceOK===`OK`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Code`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Expiration`,dataKey:`licenceDate`,key:`licenceDate`,width:250},{title:`Type`,dataKey:`licenceType`,key:`licenceType`,width:250}],D=[{title:`Licences serveur installées`,dataKey:`machineName`,key:`machineName`,width:250},{title:`FINESS`,dataKey:`finess`,key:`finess`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.finess,(0,T.jsx)(`span`,{style:{float:`right`},children:r.finessOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Module`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Date expiration`,dataKey:`endDate`,key:`endDate`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.endDate,(0,T.jsx)(`span`,{style:{float:`right`},children:r.endDateOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})}],O=()=>{let e=b(),t=C(),n=e.data??x,[r,u]=(0,w.useState)(!1),[m,h]=(0,w.useState)(``),[_,O]=(0,w.useState)(!1),k=()=>{o.invalidateQueries({queryKey:y.all})},A=e=>{u(e)},j=()=>{O(!_)};return e.isPending?(0,T.jsx)(`div`,{className:`loading-wrapper`,children:(0,T.jsx)(f,{style:{height:`auto`}})}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(i,{children:(0,T.jsx)(`title`,{children:`iCTI | Gestion des licences`})}),(0,T.jsx)(v,{open:_,onCancel:j,onOk:()=>{t.mutate(m,{onSuccess:()=>{h(``),j()}})},okText:`Ajouter`,cancelText:`Annuler`,confirmLoading:t.isPending,title:`Ajouter une licence`,children:(0,T.jsx)(`div`,{className:`form-row`,children:(0,T.jsxs)(`div`,{className:`form-item`,children:[(0,T.jsx)(`span`,{className:`first-label`,children:`Clé de la licence`}),(0,T.jsx)(a,{value:m,onChange:e=>{h(e.target.value)}})]})})}),(0,T.jsxs)(`div`,{className:`component-header`,children:[(0,T.jsx)(`div`,{className:`header-title`,children:`Gestions des licences`}),(0,T.jsxs)(`div`,{className:`header-actions`,children:[(0,T.jsx)(p,{title:`Actualiser`,children:(0,T.jsx)(s,{type:`link`,onClick:k,children:(0,T.jsx)(d,{})})}),(0,T.jsx)(s,{type:`primary`,onClick:j,children:`Ajouter une licence`})]})]}),(0,T.jsx)(`div`,{className:`licences-info`,children:(0,T.jsxs)(l,{children:[(0,T.jsxs)(c,{span:12,children:[(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`FINESS :`}),n.env.FINESS]}),(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`Serveur :`}),n.session.SERVERNAME]})]}),(0,T.jsx)(c,{span:12,children:(0,T.jsxs)(`div`,{className:`settings-single-check`,children:[(0,T.jsx)(g,{size:`small`,className:`switch`,checked:r,onChange:A}),(0,T.jsx)(`span`,{children:`Afficher les licences installées`})]})})]})}),(0,T.jsx)(`div`,{className:`component-content`,children:r?(0,T.jsx)(S,{columns:D,data:n.licences}):(0,T.jsx)(S,{columns:E,data:n.modules})})]})};O.propTypes={};export{O as default}; \ No newline at end of file diff --git a/assets/ListesManagers-7BB0kOmZ.css b/assets/ListesManagers-7BB0kOmZ.css new file mode 100644 index 0000000..b59de59 --- /dev/null +++ b/assets/ListesManagers-7BB0kOmZ.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.list-editor{background-color:#f0f2f5;height:100%}.listes-description{background-color:#fff;border-top:1px solid #eee;flex-flow:row;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.listes-description .form-column{margin-right:50px}.listes-description .form-item>span{min-width:70px}.container{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.selected-items-table,.available-items{flex-flow:column;width:50%;height:100%;display:flex}.available-items-options{background-color:#fff;border-radius:5px;margin-bottom:12px;padding:8px;box-shadow:0 .125rem .25rem #00000013}.available-items-table{flex:3}.cti-listes-manager-references{flex-flow:column;height:30%;padding-top:20px}.listes-manager-listes{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll;box-shadow:0 .125rem .25rem #00000013}.references-header{flex-flow:wrap;display:flex}.references-tree{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll;box-shadow:0 .125rem .25rem #00000013}.listes-spin-loader{z-index:1000;height:0;position:relative;top:150px;left:50%} diff --git a/assets/ListesManagers-DpNtgPfM.js b/assets/ListesManagers-DpNtgPfM.js new file mode 100644 index 0000000..b89929a --- /dev/null +++ b/assets/ListesManagers-DpNtgPfM.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,o as i,r as a}from"./axios-BDcMaxoP.js";import{t as o}from"./index.esm-D4i6w2dF.js";import{t as s}from"./input-C55Uc3oN.js";import{t as c}from"./button-xukQsL9n.js";import{i as l}from"./select-dQ-XiIfN.js";import{f as u,u as ee}from"./sanitizeDataUtils-DBUp8Fd9.js";import{n as d}from"./iconUtil-DGYSxFEZ.js";import{t as f}from"./spin-BSto2uUH.js";import{t as te}from"./ArrowLeftOutlined-Bae7unhy.js";import{t as p}from"./popconfirm-BanNBanA.js";import{t as m}from"./tree-Df2nuFCU.js";import{c as h,s as ne}from"./chunk-4N6VE7H7-DnASKJzj.js";import{t as g}from"./useMutation-BtpRmKbj.js";import{t as _}from"./queryOptions-Cg9orY1Y.js";import{n as v,t as y}from"./DiscardChangesButton-BFEqbiGO.js";import{a as re,i as b,n as x,o as S,r as C,s as ie,t as w}from"./filterByCode-B4_opWRI.js";import{t as T}from"./ImportOutlined-okr1I4Tb.js";import{t as ae}from"./LeftSquareOutlined-DRQwPml3.js";import{t as E}from"./RightSquareOutlined-C-Af7NvS.js";import{t as oe}from"./Loader-BvAKWCqv.js";import{B as D,D as se,E as O,I as k,O as A,Q as j,R as M,T as N,Z as ce,mt as P,ot as F,s as I,t as le}from"./index-C1mw6CgG.js";import{i as ue,t as L}from"./useFormIsActive-Bgv4fpIz.js";import{t as de}from"./module-eIe9lCj8.js";var R={all:[`listes`],list:e=>[...R.all,`list`,e],detail:(e,t,n)=>[...R.all,`detail`,e,t,n]};function fe(){let e=i();return g({mutationFn:e=>S(e),meta:{successMessage:`Liste enregistrée`,errorMessage:`Erreur lors de l'enregistrement de la liste`},onSettled:async()=>{await e.invalidateQueries({queryKey:R.all}),N()}})}function pe(){let e=i();return g({mutationFn:e=>S({...e,action:`delete`}),meta:{successMessage:`Liste supprimée`,errorMessage:`Erreur lors de la suppression de la liste`},onSettled:async()=>{await e.invalidateQueries({queryKey:R.all}),N()}})}function z(){let e=i();return g({mutationFn:({refoid:e,softCode:t,schema:n,database:r})=>x(e,t,n,r),meta:{successMessage:`Synchronisation terminée`,errorMessage:`La synchronisation a échoué`},onSettled:async()=>{await e.invalidateQueries({queryKey:R.all})}})}var B=e=>_({queryKey:R.list(e),queryFn:()=>b(e),enabled:!!e}),V=e=>a(B(e)),H=(e,t,n)=>_({queryKey:R.detail(e,t,n),queryFn:()=>C(e,t,n),enabled:!!e&&!!t&&!!n}),me=(e,t,n)=>a(H(e,t,n)),U=e(t()),W=e(r()),G=e(A()),K=n(),q=({selectedListeParams:e,handleKillEditor:t,softCode:n})=>{let r=k(),i=fe(),a=pe(),o=me(e?.schema,e?.table_id,e?.liste_id),u=o.data,ee=o.isPending&&o.fetchStatus!==`idle`,d=r.data?.session,f=de(n),[m,h]=(0,U.useState)(!1),[ne,g]=(0,U.useState)(!1),[_,b]=(0,U.useState)(!1),[x,S]=(0,U.useState)(!1),[C,T]=(0,U.useState)(!1),[D,se]=(0,U.useState)(``),[A,M]=(0,U.useState)([]),[N,R]=(0,U.useState)([]),[z,B]=(0,U.useState)([]),[V,H]=(0,U.useState)([]),[W,G]=(0,U.useState)([]),[q,he]=(0,U.useState)(``),[J]=F.useForm();(0,U.useEffect)(()=>{u&&S(u.contenu_by_code===`1`)},[u]),(0,U.useEffect)(()=>{if(u){let e=X(),t=Object.values(u.oids).map(e=>e.oid);R(e.filter(e=>t.includes(e.oid))),M(e),Q()}},[u,_,x]),(0,U.useEffect)(()=>{if(A){let e=new Set(N.map(e=>e.key));B($(A.filter(t=>!e.has(t.key)),!0))}},[q,A,D,N,_]);let Y=L(u?.is_cti===`1`,d);if(ee||!u)return(0,K.jsx)(`div`,{className:`loading-wrapper`,children:(0,K.jsx)(oe,{style:{height:`auto`}})});function X(){return Object.values(u.records).map((e,t)=>({key:e.oid,oid:e.oid,code:e.code,texte:e.texte,complement:e.complement,utilise:e.utilise,disabled:x}))}let Z=()=>{T(!1),t()},ge=e=>{let t=u.table_name===`t_finess`?`base`:f;return{...e,liste_id:u.oid,table_id:u.table_id,liste_schema:t,schema:t,softCode:n,to_oids:x?``:N.map(e=>e.oid).join(`,`),database:`RH000004`,is_cti:e.is_cti?`1`:`0`,est_partagee_modification:e.est_partagee_modification?`1`:`0`,show_omit:e.show_omit?`1`:`0`,contenu_non_replicable_ailleurs:e.contenu_non_replicable_ailleurs?`1`:`0`,contenu_by_code:e.contenu_by_code?`1`:`0`,include_code:e.include_code||``,exclude_code:e.exclude_code||``}},_e=e=>{let t={...ge(e),action:`save`};i.mutate(t,{onSuccess:()=>T(!1)})},ve=()=>{let e=ge({});a.mutate(e,{onSuccess:()=>Z()})},ye=()=>{S(!x),Q()},be=()=>{ue(n,u.oid,u.table_name)},xe=async()=>{h(!0);let e={};e.schema=f,e.table_id=u.table_id,e.exclude_code=J.getFieldValue(`exclude_code`),e.include_code=J.getFieldValue(`include_code`),Ee(await re(e)),h(!1)},Q=()=>{g(x?(J.getFieldValue(`include_code`)+` `+J.getFieldValue(`exclude_code`)).trim()!==``:!1)},Se=()=>{T(!0)},Ce=e=>{he(e.target.value)},we=e=>{se(e.target.value);let t=X();t=w(t,e.target.value),M(t)},Te=()=>{S(!1),J.setFieldsValue({contenu_by_code:!1})},Ee=e=>{if(T(!0),e){let t=new Set(e),n=A.filter(e=>t.has(Number(e.oid)));B($(A.filter(e=>!t.has(Number(e.oid))))),R($(n))}else{let e=new Set(V),t=A.filter(t=>e.has(t.key)),n=A.filter(t=>!e.has(t.key));R($([...N,...t])),B(n),H([])}},De=()=>{T(!0);let e=N.filter(e=>!W.includes(e.key)),t=N.filter(e=>W.includes(e.key)),n=$([...z,...t]);R(e),B(n),G([])},Oe=e=>{let t=[...V];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),H(t)},ke=e=>{let t=[...W];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),G(t)},Ae=()=>{V.length||W.length?(H([]),G([])):H(z.map(e=>e.key))};function $(e,t=!1){let n=[...e].sort((e,t)=>e.code.localeCompare(t.code));return t&&(n=O(n,q,[`code`,`texte`,`complement`]),n=w(n,D),_===!0&&(n=n.filter(e=>e.utilise===`O`))),n}let je=[{dataKey:`code`,key:`code`,title:u.table_texte,sorter:(e,t)=>e.code.localeCompare(t.code),width:200,resizable:!0},{dataKey:`texte`,key:`texte`,title:`Texte`,sorter:(e,t)=>e.texte.localeCompare(t.texte),width:200,resizable:!0},{dataKey:`complement`,key:`complement`,title:`Complement`,sorter:(e,t)=>e.complement.localeCompare(t.complement),width:200,resizable:!0},{dataKey:`utilise`,key:`utilise`,title:`Ref`,sorter:(e,t)=>e.utilise.localeCompare(t.utilise),width:200,resizable:!0}];return(0,K.jsx)(`div`,{className:`list-editor`,children:(0,K.jsxs)(F,{id:`formListEditor`,name:`basic`,form:J,style:{height:`100%`,display:`flex`,flexFlow:`column`},initialValues:{texte:u.texte,code:u.code,table:u.table_texte,chapitre:u.chapitre,include_code:u.include_code,exclude_code:u.exclude_code,is_cti:u.is_cti===`1`,est_partagee_modification:u.est_partagee_modification===`1`,show_omit:u.show_omit===`1`,contenu_non_replicable_ailleurs:u.contenu_non_replicable_ailleurs===`1`,contenu_by_code:u.contenu_by_code===`1`},size:`small`,onFinish:_e,onValuesChange:Se,disabled:Y,children:[(0,K.jsxs)(`div`,{className:`component-header`,children:[(0,K.jsxs)(`div`,{className:`header-title`,children:[(0,K.jsx)(y,{onConfirm:Z,modified:C,children:(0,K.jsx)(c,{type:`link`,style:{height:`100%`,paddingRight:`20px`},disabled:i.isPending||a.isPending,children:(0,K.jsx)(te,{})})}),`Gestion des listes`]}),(0,K.jsxs)(`div`,{className:`header-actions`,children:[(0,K.jsx)(c,{size:`default`,icon:(0,K.jsx)(ie,{}),onClick:()=>{le(J.getFieldsValue(),u)},children:`Exporter`},`formExcelExportBtn`),d.ISROLECTI&&(0,K.jsx)(c,{size:`default`,icon:(0,K.jsx)(v,{}),onClick:be,children:`SQL`},`formSQLExportBtn`),(0,K.jsx)(p,{title:`Voulez-vous vraiment supprimer cette liste ?`,onConfirm:ve,okText:`Supprimer`,okButtonProps:{danger:!0},cancelText:`Annuler`,placement:`bottomRight`,children:(0,K.jsx)(c,{size:`default`,danger:!0,icon:(0,K.jsx)(ce,{}),children:`Supprimer`},`formDeleteBtn`)}),(0,K.jsx)(c,{size:`default`,type:`primary`,htmlType:`submit`,icon:(0,K.jsx)(l,{}),loading:i.isPending,disabled:!C,children:`Enregistrer`},`formSubmitbtn`)]})]}),(0,K.jsxs)(`div`,{className:`listes-description`,children:[(0,K.jsxs)(`div`,{className:`form-column`,children:[(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Code:`}),(0,K.jsx)(F.Item,{name:`code`,extra:`Id interne : `+u.oid,children:(0,K.jsx)(s,{})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Texte:`}),(0,K.jsx)(F.Item,{name:`texte`,children:(0,K.jsx)(s,{})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Chapitre:`}),(0,K.jsx)(F.Item,{name:`chapitre`,extra:`Table: ${u.table_texte}`,children:(0,K.jsx)(s,{})})]})]}),(0,K.jsxs)(`div`,{className:`form-column checkbox-col`,children:[d.ISROLECTI&&(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Liste CTI`}),(0,K.jsx)(F.Item,{valuePropName:`checked`,name:`is_cti`,children:(0,K.jsx)(P,{})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Modification partagée`}),(0,K.jsx)(F.Item,{valuePropName:`checked`,name:`est_partagee_modification`,children:(0,K.jsx)(P,{})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Liste sauf possible`}),(0,K.jsx)(F.Item,{valuePropName:`checked`,name:`show_omit`,children:(0,K.jsx)(P,{})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Contenu non réplicable ailleurs`}),(0,K.jsx)(F.Item,{valuePropName:`checked`,name:`contenu_non_replicable_ailleurs`,onClick:Te,children:(0,K.jsx)(P,{})})]})]}),(0,K.jsxs)(`div`,{className:`form-column code-col`,children:[(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Saisie par code:`}),(0,K.jsx)(F.Item,{valuePropName:`checked`,name:`contenu_by_code`,children:(0,K.jsx)(j,{onChange:ye})}),(0,K.jsx)(c,{disabled:!ne||!x,style:{marginLeft:`15px`},type:`secondary`,onClick:xe,loading:m,children:`Appliquer`})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Codes inclus:`}),(0,K.jsx)(F.Item,{name:`include_code`,children:(0,K.jsx)(s,{disabled:!x,onChange:Q})})]}),(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Codes exclus:`}),(0,K.jsx)(F.Item,{name:`exclude_code`,children:(0,K.jsx)(s,{disabled:!x,onChange:Q})})]})]})]}),(0,K.jsx)(`div`,{className:`component-content`,children:(0,K.jsxs)(`div`,{className:`transfer-layout-content`,children:[(0,K.jsx)(`div`,{className:`selected-items-table`,children:(0,K.jsx)(I,{columns:je,data:N,fixed:!1,shiftMulti:!0,selectedRows:W,onRowSelect:ke})}),(0,K.jsxs)(`div`,{className:`transfer-actions`,children:[(0,K.jsx)(c,{type:`link`,onClick:()=>Ee(),disabled:!V.length||x||Y,children:(0,K.jsx)(ae,{})}),(0,K.jsx)(c,{type:`link`,onClick:()=>De(),disabled:!W.length||x||Y,children:(0,K.jsx)(E,{})})]}),(0,K.jsxs)(`div`,{className:`available-items`,children:[(0,K.jsxs)(`div`,{className:`available-items-options`,children:[(0,K.jsx)(`div`,{className:`form-row`,children:(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Recherche par texte:`}),(0,K.jsx)(s,{value:q,onChange:Ce})]})}),(0,K.jsx)(`div`,{className:`form-row`,children:(0,K.jsxs)(`div`,{className:`form-item`,children:[(0,K.jsx)(`span`,{children:`Recherche par code:`}),(0,K.jsx)(s.TextArea,{value:D,onChange:we})]})}),(0,K.jsxs)(`div`,{className:`form-row`,children:[(0,K.jsx)(c,{type:`primary`,onClick:Ae,children:`De/Sélectionner`}),(0,K.jsx)(`span`,{style:{margin:`0px 12px`},children:`Référencés uniquement`}),(0,K.jsx)(P,{checked:_,onChange:e=>b(e.target.checked)})]})]}),(0,K.jsx)(`div`,{className:`available-items-table`,children:(0,K.jsx)(I,{columns:je,data:z,fixed:!1,shiftMulti:!0,selectedRows:V,onRowSelect:Oe})})]})]})})]},u.oid)})};q.propTypes={selectedListeParams:W.default.object,handleKillEditor:W.default.func,softCode:W.default.string};var he=U.memo(q),{DirectoryTree:J}=m,Y={},X=({softCode:e})=>{let t=h(),{search:n}=ne(),r=(0,U.useMemo)(()=>Object.fromEntries(new URLSearchParams(n)),[n]),{menuItem:i}=se(),a=V(e),l=z(),te=de(e),p=a.data?.tables??Y,m=a.data?.refTables??Y,[g,_]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),[re,b]=(0,U.useState)(null),[x,S]=(0,U.useState)([]),[C,ie]=(0,U.useState)([]),[w,ae]=(0,U.useState)(null),[E,oe]=(0,U.useState)(``),[O,k]=(0,U.useState)([]),[A,j]=(0,U.useState)([]);(0,U.useEffect)(()=>{S(L(p))},[E,p]),(0,U.useEffect)(()=>{if(!r.liste||v||!Object.keys(p).length)return;let e=r.liste,n=fe(Object.values(p)).find(t=>t.code===e);n?(b({table_id:n.table_id,liste_id:n.liste_id,schema:n.schema}),y(!0)):t({search:``},{replace:!0})},[r.liste,p]),(0,U.useEffect)(()=>{S(L(p)),ie(L(m))},[p,m]),(0,U.useEffect)(()=>{k(ee(x))},[x]),(0,U.useEffect)(()=>{if(E===``)j([]);else{let e=[];O.forEach(t=>{t.title.toLowerCase().includes(E.toLowerCase())&&(e=e.concat(u(t.key,x)))}),e=e.filter((e,t,n)=>e&&n.indexOf(e)===t),j(e)}},[E,x,O]);let N=()=>{t({search:``},{replace:!0}),y(!1),b(null)},ce=(e,n)=>{let r=n.node;r.liste_id&&(t({search:`?liste=${r.code}`}),y(!0),b({table_id:r.table_id,liste_id:r.liste_id,schema:r.schema}))},P=t=>{t&&l.mutate({refoid:t,softCode:e,schema:te,database:i?.name})},F=()=>{a.refetch()},I=()=>{_(!g)},le=e=>{oe(e.target.value)},ue=e=>{j(e)};function L(e,t=``){let n=[];return Object.values(e).forEach((e,r)=>{let i,a,o=(t===``?``:t+`_`)+(0,G.default)(e.texte)+r.toString(),s={title:e.texte,key:e.table_id?r:o,table_id:e.table_id};e.listes!==void 0&&(i=R(e.listes,o)),e.groups!==void 0&&(a=L(e.groups,o)),i!==void 0&&a!==void 0?s.children=i.concat(a):i===void 0?s.children=a:s.children=i,n.push(s)}),n.sort((e,t)=>e.title.localeCompare(t.title,void 0,{numeric:!0,sensitivity:`base`}))}function R(e,t){let n=[];return Object.values(e).forEach((e,r)=>{let i={title:e.texte,key:t+`_`+(0,G.default)(e.texte),isLeaf:!0,table_id:e.table_id,liste_id:e.liste_id,code:e.code,schema:e.schema};e.liste_id===`-1`?i.icon=(0,K.jsx)(d,{}):i.icon=(0,K.jsx)(M,{}),n.push(i)}),n.sort((e,t)=>Number(e.liste_id)-Number(t.liste_id))}function fe(e){let t=[];return Object.values(e).forEach(e=>{e.groups&&Object.values(e.groups).forEach(e=>{e.listes&&(t=[...t,...Object.values(e.listes)]),e.groups&&Object.values(e.groups).forEach(e=>{e.listes&&(t=[...t,...Object.values(e.listes)])})})}),t}return v===!0?(0,K.jsx)(he,{selectedListeParams:re,handleKillEditor:N,softCode:e}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(o,{children:(0,K.jsx)(`title`,{children:`iCTI | Gestion des listes`})}),(0,K.jsxs)(`div`,{className:`component-header`,children:[(0,K.jsx)(`div`,{className:`header-title`,children:`Gestion des listes`}),(0,K.jsxs)(`div`,{className:`header-actions`,children:[(0,K.jsx)(s,{placeholder:`Recherche`,value:E,onChange:le}),(0,K.jsx)(c,{onClick:F,icon:(0,K.jsx)(D,{}),loading:a.isFetching,children:`Actualiser`},`refreshBtn`),(0,K.jsx)(c,{style:{width:`148.5px`},type:g?`secondary`:`primary`,onClick:I,icon:(0,K.jsx)(M,{}),children:g?`Cacher références`:`Afficher références`},`showReferencesBtn`)]})]}),(0,K.jsxs)(`div`,{className:`component-content`,children:[(0,K.jsxs)(`div`,{className:`listes-manager-listes`,children:[a.isFetching?(0,K.jsx)(`div`,{className:`listes-spin-loader`,children:(0,K.jsx)(f,{})}):null,(0,K.jsx)(J,{onSelect:ce,treeData:x,expandedKeys:A,onExpand:ue})]}),(0,K.jsxs)(`div`,{className:`cti-listes-manager-references`,style:{display:g?`flex`:`none`},children:[(0,K.jsxs)(`div`,{className:`references-header`,children:[(0,K.jsx)(`h3`,{children:`Listes de références`}),(0,K.jsx)(c,{style:{marginLeft:`10px`},size:`small`,onClick:()=>P(w),icon:(0,K.jsx)(T,{}),loading:l.isPending,disabled:!w,children:`Importer`},`importBtn`)]}),(0,K.jsx)(`div`,{className:`references-tree`,children:(0,K.jsx)(J,{treeData:C,onSelect:(e,t)=>{let n=t.node;ae(n.table_id&&n.isLeaf?n.liste_id:null)}})})]})]})]})};X.propTypes={softCode:W.default.string};var Z=U.memo(X);export{Z as default}; \ No newline at end of file diff --git a/assets/Loader-BvAKWCqv.js b/assets/Loader-BvAKWCqv.js new file mode 100644 index 0000000..9c50d54 --- /dev/null +++ b/assets/Loader-BvAKWCqv.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BDcMaxoP.js";import{r as i}from"./react-redux-Bek2gPun.js";t();var a=e(r()),o=n(),s=({style:e={},size:t})=>{i(e=>e.cti.ui.primaryColor);let n={...e};if(t)switch(t){case`small`:n.transform=`scale(0.5)`;break;default:break}return(0,o.jsx)(`div`,{className:`cti-loader`,style:n,children:(0,o.jsxs)(`div`,{className:`sk-folding-cube`,children:[(0,o.jsx)(`div`,{className:`sk-cube1 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube2 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube4 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube3 sk-cube`})]})})};s.propTypes={style:a.default.object,size:a.default.string};export{s as t}; \ No newline at end of file diff --git a/assets/Loader-Df31oCEP.css b/assets/Loader-Df31oCEP.css new file mode 100644 index 0000000..93e51b3 --- /dev/null +++ b/assets/Loader-Df31oCEP.css @@ -0,0 +1 @@ +.cti-loader{flex-flow:row;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.sk-folding-cube{width:40px;height:40px;margin:20px auto;position:relative;transform:rotate(45deg)}.sk-folding-cube .sk-cube{float:left;width:50%;height:50%;position:relative;transform:scale(1.1)}.sk-folding-cube .sk-cube:before{content:"";background-color:var(--primary-color);transform-origin:100% 100%;width:100%;height:100%;animation:2.4s linear infinite both sk-foldCubeAngle;position:absolute;top:0;left:0}.sk-folding-cube .sk-cube2{transform:scale(1.1)rotate(90deg)}.sk-folding-cube .sk-cube3{transform:scale(1.1)rotate(180deg)}.sk-folding-cube .sk-cube4{transform:scale(1.1)rotate(270deg)}.sk-folding-cube .sk-cube2:before{animation-delay:.3s}.sk-folding-cube .sk-cube3:before{animation-delay:.6s}.sk-folding-cube .sk-cube4:before{animation-delay:.9s}@keyframes sk-foldCubeAngle{0%,10%{opacity:0;transform:perspective(140px)rotateX(-180deg)}25%,75%{opacity:1;transform:perspective(140px)rotateX(0)}90%,to{opacity:0;transform:perspective(140px)rotateY(180deg)}} diff --git a/assets/Logs-9Q14oB_B.css b/assets/Logs-9Q14oB_B.css new file mode 100644 index 0000000..e342949 --- /dev/null +++ b/assets/Logs-9Q14oB_B.css @@ -0,0 +1 @@ +.logs-table{height:100%}.logs-cache-pre{background:#f5f5f5;border-radius:4px;flex:1;margin:0;padding:12px;font-size:12px;overflow:auto} diff --git a/assets/Logs-DCS0HMPY.js b/assets/Logs-DCS0HMPY.js new file mode 100644 index 0000000..c2ab3ae --- /dev/null +++ b/assets/Logs-DCS0HMPY.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{nt as r}from"./axios-BDcMaxoP.js";import{S as i,c as a,u as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{n as c}from"./chunk-4N6VE7H7-DnASKJzj.js";import{I as l,pt as u,s as d}from"./index-C1mw6CgG.js";import{n as f}from"./logs.queries-Dl26GlbD.js";var p=e(t()),m=n(),h=async()=>{let e=await i.getItem(`REACT_QUERY_OFFLINE_CACHE`);return e?(a(e)?.clientState?.queries??[]).map(e=>({queryKey:e.queryKey,status:e.state?.status??`—`,dataUpdatedAt:e.state?.dataUpdatedAt?new Date(e.state.dataUpdatedAt).toLocaleString():`—`,data:e.state?.data})):[]},g=()=>{let e=f(),t=l(),n=e.data??[],i=t.data?.session,[a,g]=(0,p.useState)(`logs`),[_,v]=(0,p.useState)([]),y=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(a!==`cache`)return;let e=async()=>{v(await h())};e();let t=o.getQueryCache().subscribe(()=>{clearTimeout(y.current),y.current=setTimeout(e,1500)});return()=>{t(),clearTimeout(y.current)}},[a]);let b=()=>{e.refetch()},x=[{title:`Id`,dataKey:`id`},{title:`Date`,dataKey:`createdAt`,width:150},{title:`Code`,dataKey:`code`,width:100},{title:`Count`,dataKey:`count`,width:100},{title:`Erreur`,dataKey:`error`,width:200},{title:`Texte`,dataKey:`text`,width:200},{title:`Message`,dataKey:`message`,width:200},{title:`Utilisateur`,dataKey:`user`,dataGetter:({rowData:e})=>e.extra.user,width:100},{title:`URL`,dataKey:`url`,dataGetter:({rowData:e})=>e.extra.url,width:300}].map(e=>({width:50,resizable:!0,key:e.dataKey,...e}));return i.CONNECTEDUSER===`cti`?(0,m.jsxs)(`div`,{className:`cti-page`,children:[(0,m.jsxs)(`div`,{className:`page-header`,children:[(0,m.jsx)(`div`,{className:`header-title`,children:`Logs`}),(0,m.jsxs)(`div`,{className:`header-actions`,children:[(0,m.jsx)(s,{type:a===`logs`?`primary`:`default`,onClick:()=>g(`logs`),children:`Logs serveur`}),(0,m.jsx)(s,{type:a===`cache`?`primary`:`default`,onClick:()=>g(`cache`),children:`Cache persistant`}),a===`logs`&&(0,m.jsx)(s,{onClick:b,children:`Reload`})]})]}),(0,m.jsxs)(`div`,{className:`page-content`,children:[a===`logs`&&(0,m.jsx)(`div`,{className:`logs-table`,children:(0,m.jsx)(d,{rowKey:`id`,columns:x,data:n,loading:e.isFetching,cellProps:({rowData:e,column:t})=>({onClick:n=>{n.preventDefault();var i=document.createElement(`textarea`);i.value=e[t.dataKey],document.body.appendChild(i),i.select(),document.execCommand(`copy`),document.body.removeChild(i),r.success(`Copié !`)}})})}),a===`cache`&&(0,m.jsx)(`div`,{className:`logs-cache-pre`,children:_===null||_.length===0?(0,m.jsx)(`p`,{children:`Aucun cache persistant trouvé.`}):(0,m.jsx)(u,{children:_.map((e,t)=>(0,m.jsx)(u.Panel,{header:(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{children:JSON.stringify(e.queryKey)}),` — `,e.status,` — `,e.dataUpdatedAt]}),children:(0,m.jsx)(`pre`,{style:{margin:0,fontSize:11,overflow:`auto`},children:JSON.stringify(e.data,null,2)})},t))})})]})]}):(0,m.jsx)(c,{to:`/accueil`,replace:!0})};g.propTypes={};export{g as default}; \ No newline at end of file diff --git a/assets/NotificationsOutline-COWH5lJd.js b/assets/NotificationsOutline-COWH5lJd.js new file mode 100644 index 0000000..010728d --- /dev/null +++ b/assets/NotificationsOutline-COWH5lJd.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M20.883 17.16c-1.254-1.535-2.14-2.316-2.14-6.547 0-3.875-1.978-5.255-3.606-5.925a.87.87 0 0 1-.486-.516c-.286-.972-1.087-1.828-2.151-1.828-1.065 0-1.866.857-2.148 1.83-.066.224-.27.425-.486.513-1.63.672-3.607 2.047-3.607 5.926-.003 4.23-.888 5.012-2.142 6.547-.52.635-.064 1.59.844 1.59h15.083c.903 0 1.355-.957.839-1.59M15.625 18.75v.781a3.125 3.125 0 1 1-6.25 0v-.781`})});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/OvalideImports-C882gTRJ.css b/assets/OvalideImports-C882gTRJ.css new file mode 100644 index 0000000..2dbc65c --- /dev/null +++ b/assets/OvalideImports-C882gTRJ.css @@ -0,0 +1 @@ +.ovalide-imports{height:100%} diff --git a/assets/OvalideImports-CuBGxFMT.js b/assets/OvalideImports-CuBGxFMT.js new file mode 100644 index 0000000..d789220 --- /dev/null +++ b/assets/OvalideImports-CuBGxFMT.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{fr as r,n as i,o as a,r as o}from"./axios-BDcMaxoP.js";import{t as s}from"./index.esm-D4i6w2dF.js";import{t as c}from"./ctiAxios-HKh7HuhO.js";import{t as l}from"./button-xukQsL9n.js";import{t as u}from"./DownloadOutlined-BxQhjjNl.js";import{t as d}from"./useMutation-BtpRmKbj.js";import{t as f}from"./queryOptions-Cg9orY1Y.js";import{t as p}from"./UndoOutlined-DAvTbx0c.js";import{F as m,I as h,L as g,N as _,Z as v,s as y,y as b}from"./index-C1mw6CgG.js";import{r as x,t as S}from"./path-DqrO9bqq.js";import{i as C}from"./importColumn-GAofQzY-.js";async function w(e){let t=new FormData;return t.append(`action`,`get`),(await c({method:`post`,url:r()+x(e),data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function T({id:e,module:t}){if(t===`ssr`){await _.delete(`api/pmsissr/importsOvalide/${e}`);return}let n=new FormData;n.append(`action`,`delete`),n.append(`id`,e),await c({method:`post`,url:r()+x(t),data:n,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})}async function E({file:e,typeEts:t,module:n}){let i=new FormData;return i.append(`action`,`post`),i.append(`fileName`,e.name),i.append(`fileData`,e),i.append(`typeEts`,t),(await c({method:`post`,url:r()+x(n),data:i,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function D(e,t){b((await c({method:`get`,url:`${r()}${S(t)}${e}`,responseType:`blob`,headers:{"Content-Type":`multipart/form-data`}})).data,`ovalide.zip`)}var O={all:[`ovalideImports`],list:e=>[...O.all,`list`,e]},k=e=>f({queryKey:O.list(e),queryFn:()=>w(e),enabled:!!e}),A=e=>o(k(e));function j(){let e=a();return d({mutationFn:T,meta:{successMessage:`Import supprimé`,errorMessage:`Erreur lors de la suppression de l'import`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}function M(){let e=a();return d({mutationFn:E,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}var N=e(t()),P=e(i()),F=n(),I=({module:e})=>{let t=h(),n=A(e),r=j(),i=M(),a=n.data??[],[o,c]=(0,N.useState)(null),d=(0,N.useRef)(),f=()=>{n.refetch()},_=e=>{c(a.find(t=>t.oid===e))},b=()=>{o&&r.mutate({id:o.oid,module:e},{onSuccess:()=>c(null)})},x=()=>{o&&D(o.oid,e)},S=()=>{d.current.click()},w=n=>{let r=n.target.files[0];if(r){let n=t.data?.environment?.TYPEETS;i.mutate({file:r,typeEts:n,module:e})}},T=r.isPending||i.isPending;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s,{children:(0,F.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,F.jsxs)(`div`,{className:`component-header`,children:[(0,F.jsx)(`div`,{className:`header-title`,children:`Import des fichiers MAT2A/OVALIDE`}),(0,F.jsxs)(`div`,{className:`header-actions`,children:[(0,F.jsx)(m,{title:`Actualiser`,children:(0,F.jsx)(l,{type:`link`,onClick:f,children:(0,F.jsx)(p,{})})}),(0,F.jsx)(m,{title:`Supprimer`,children:(0,F.jsx)(l,{type:`link`,onClick:b,disabled:!o||r.isPending,children:(0,F.jsx)(v,{})})}),(0,F.jsx)(m,{title:`Télécharger le fichier de l'import`,children:(0,F.jsx)(l,{type:`link`,onClick:x,disabled:!o||!o.oid,children:(0,F.jsx)(u,{})})}),(0,F.jsx)(l,{size:`default`,type:`primary`,icon:(0,F.jsx)(g,{}),onClick:S,loading:i.isPending,children:`Importer un fichier`}),(0,F.jsx)(`input`,{type:`file`,ref:d,onChange:w,style:{display:`none`}})]})]}),(0,F.jsx)(`div`,{className:`component-content`,children:(0,F.jsx)(`div`,{className:`ovalide-imports`,children:(0,F.jsx)(y,{rowKey:`oid`,columns:C(e),loading:n.isFetching||T,data:a,selectedRow:o,onRowSelect:_})})})]})};I.propTypes={module:P.default.string};export{I as default}; \ No newline at end of file diff --git a/assets/PasswordManager-Dlhyw8pK.js b/assets/PasswordManager-Dlhyw8pK.js new file mode 100644 index 0000000..7036079 --- /dev/null +++ b/assets/PasswordManager-Dlhyw8pK.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-D4i6w2dF.js";import{t as i}from"./input-C55Uc3oN.js";import{I as a,ot as o}from"./index-C1mw6CgG.js";import{t as s}from"./SaveButton-BWNmkjLW.js";import{r as c}from"./users.mutations-CKeA39Fu.js";var l=e(t()),u=n(),d=()=>{let e=a(),t=c(),n=e.data?.session,[d,f]=(0,l.useState)(!1),[p]=o.useForm();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r,{children:(0,u.jsx)(`title`,{children:`iCTI | Modification du mot de passe`})}),(0,u.jsxs)(`div`,{className:`component-header`,children:[(0,u.jsx)(`h1`,{className:`header-title`,children:`Modification du mot de passe`}),(0,u.jsx)(`div`,{className:`header-actions`,children:(0,u.jsx)(s,{onClick:()=>p.submit(),disabled:!d||t.isPending,loading:t.isPending,toolTipTitle:`Enregistrer`})})]}),(0,u.jsx)(`div`,{className:`component-content`,children:(0,u.jsx)(`div`,{className:`password-form`,children:(0,u.jsxs)(o,{form:p,onValuesChange:()=>{f(!0)},onFinish:e=>{let r=n.CONNECTEDUSER;t.mutate({user:r,password:e.password,newPassword:e.newPassword},{onSuccess:()=>{p.resetFields(),f(!1)}})},children:[(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Mot de passe actuel :`}),(0,u.jsx)(o.Item,{name:`password`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`newPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Confirmer le nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`confirmPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`},({getFieldValue:e})=>({validator(t,n){return!n||e(`newPassword`)===n?Promise.resolve():Promise.reject(`Les mots de passes ne sont pas identiques !`)}})],children:(0,u.jsx)(i.Password,{})})]})})]})})})]})};d.propTypes={};export{d as default}; \ No newline at end of file diff --git a/assets/PasswordManager-Ry4JHtDv.css b/assets/PasswordManager-Ry4JHtDv.css new file mode 100644 index 0000000..2319043 --- /dev/null +++ b/assets/PasswordManager-Ry4JHtDv.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.password-form{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.password-form .first-label{font-size:12px;min-width:250px!important} diff --git a/assets/PeopleOutline-D1hS4ztT.js b/assets/PeopleOutline-D1hS4ztT.js new file mode 100644 index 0000000..afe05fe --- /dev/null +++ b/assets/PeopleOutline-D1hS4ztT.js @@ -0,0 +1 @@ +import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";e();var n=t(),r=e=>(0,n.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,n.jsx)(`path`,{fill:`currentColor`,d:`M22.168 19.52a10.4 10.4 0 0 0-2.249-3.334 10.5 10.5 0 0 0-3.334-2.25q-.017-.006-.034-.013A6.918 6.918 0 0 0 12.5 1.395a6.92 6.92 0 0 0-6.92 6.92 6.91 6.91 0 0 0 2.869 5.61q-.017.008-.034.015a10.4 10.4 0 0 0-3.334 2.249 10.5 10.5 0 0 0-2.249 3.334 10.4 10.4 0 0 0-.823 3.853.223.223 0 0 0 .223.229h1.674c.123 0 .22-.098.223-.218a8.32 8.32 0 0 1 2.45-5.7 8.32 8.32 0 0 1 5.921-2.453c2.238 0 4.339.87 5.92 2.453a8.32 8.32 0 0 1 2.45 5.7c.003.123.101.218.224.218h1.674a.223.223 0 0 0 .223-.229 10.4 10.4 0 0 0-.823-3.856M12.5 13.114c-1.28 0-2.486-.5-3.393-1.406a4.77 4.77 0 0 1-1.406-3.393c0-1.281.5-2.486 1.406-3.393A4.77 4.77 0 0 1 12.5 3.516c1.28 0 2.486.5 3.393 1.406a4.77 4.77 0 0 1 1.406 3.393c0 1.28-.5 2.486-1.406 3.393a4.77 4.77 0 0 1-3.393 1.406`})});export{r as default}; \ No newline at end of file diff --git a/assets/PeopleOutline-D4Hyxmyn.js b/assets/PeopleOutline-D4Hyxmyn.js deleted file mode 100644 index 550dd00..0000000 --- a/assets/PeopleOutline-D4Hyxmyn.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a}from"./index-mh7VHmRi.js";const o=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:a.jsx("path",{fill:"currentColor",d:"M22.168 19.52a10.4 10.4 0 0 0-2.249-3.334 10.5 10.5 0 0 0-3.334-2.25q-.017-.006-.034-.013A6.918 6.918 0 0 0 12.5 1.395a6.92 6.92 0 0 0-6.92 6.92 6.91 6.91 0 0 0 2.869 5.61q-.017.008-.034.015a10.4 10.4 0 0 0-3.334 2.249 10.5 10.5 0 0 0-2.249 3.334 10.4 10.4 0 0 0-.823 3.853.223.223 0 0 0 .223.229h1.674c.123 0 .22-.098.223-.218a8.32 8.32 0 0 1 2.45-5.7 8.32 8.32 0 0 1 5.921-2.453c2.238 0 4.339.87 5.92 2.453a8.32 8.32 0 0 1 2.45 5.7c.003.123.101.218.224.218h1.674a.223.223 0 0 0 .223-.229 10.4 10.4 0 0 0-.823-3.856M12.5 13.114c-1.28 0-2.486-.5-3.393-1.406a4.77 4.77 0 0 1-1.406-3.393c0-1.281.5-2.486 1.406-3.393A4.77 4.77 0 0 1 12.5 3.516c1.28 0 2.486.5 3.393 1.406a4.77 4.77 0 0 1 1.406 3.393c0 1.28-.5 2.486-1.406 3.393a4.77 4.77 0 0 1-3.393 1.406"})});export{o as default}; diff --git a/assets/PersonCircleOutline-DFO77GzI.js b/assets/PersonCircleOutline-DFO77GzI.js new file mode 100644 index 0000000..5f5546f --- /dev/null +++ b/assets/PersonCircleOutline-DFO77GzI.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:[(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.642 2.344C6.93 2.267 2.267 6.93 2.344 12.642 2.42 18.12 6.88 22.58 12.358 22.656c5.713.078 10.375-4.585 10.297-10.297C22.58 6.88 18.12 2.42 12.642 2.344m6.172 15.979a.194.194 0 0 1-.235.04.2.2 0 0 1-.064-.056 6.1 6.1 0 0 0-1.58-1.445c-1.243-.798-2.818-1.237-4.435-1.237s-3.192.44-4.435 1.237a6.1 6.1 0 0 0-1.58 1.445.196.196 0 0 1-.3.015 8.56 8.56 0 0 1-2.279-5.675c-.08-4.752 3.82-8.73 8.573-8.74 4.754-.013 8.615 3.847 8.615 8.593a8.56 8.56 0 0 1-2.28 5.823`}),(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.5 7.031c-.963 0-1.834.361-2.452 1.017-.619.656-.928 1.562-.858 2.536.142 1.916 1.626 3.479 3.31 3.479s3.165-1.563 3.31-3.479c.072-.964-.234-1.862-.863-2.53-.621-.66-1.49-1.023-2.447-1.023`})]});export{a as n,r as t}; \ No newline at end of file diff --git a/assets/PresentationManager-CGXwNKt6.js b/assets/PresentationManager-CGXwNKt6.js new file mode 100644 index 0000000..fb859a4 --- /dev/null +++ b/assets/PresentationManager-CGXwNKt6.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./select-dQ-XiIfN.js";import{n as i,t as a}from"./row-CaO7bYqu.js";import{r as o}from"./react-redux-Bek2gPun.js";import{t as s}from"./menu.queries-DYe2vnq9.js";import{I as c,Q as l,dt as u,ot as d}from"./index-C1mw6CgG.js";import{t as f}from"./SaveButton-BWNmkjLW.js";import{i as p}from"./users.mutations-CKeA39Fu.js";import{t as m}from"./ColorPicker-BYeWsagE.js";var h=e(t()),g=n(),{Option:_}=r,v={},y=()=>{let e=o(e=>e.cti.ui.primaryColor),t=s(),n=c(),y=p(),b=t.data??v,x=n.data?.session,S=n.data?.user.homePageDefaultModule,C=n.data?.user.showGraphs,w=n.data?.user.spreadsheetEditor,T=n.data?.user.spreadsheetSeparator,E=n.data?.user.pmsiDefaultModule,D=n.data?.user.expandedRows,O=x?.CONNECTEDUSER,k=D===`ouvert`,A=Object.values(b).filter(e=>{let t=e.name.toUpperCase();return t.includes(`PMSI`)||t.includes(`P.M.S.I`)}),[j,M]=(0,h.useState)(!1),[N]=d.useForm();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(`div`,{className:`page-header`,children:[(0,g.jsx)(`h1`,{className:`header-title`,children:`Options`}),(0,g.jsx)(`div`,{className:`header-actions`,children:(0,g.jsx)(f,{onClick:()=>{M(!1),N.submit()},disabled:!j||y.isPending,loading:y.isPending,toolTipTitle:`Enregistrer`})})]}),(0,g.jsx)(`div`,{className:`page-content`,style:{overflow:`scroll`},children:(0,g.jsxs)(d,{form:N,onValuesChange:()=>M(!0),onFinish:e=>{e.expandedRows=e.expandedRows===!0?`ouvert`:`fermé`,y.mutate({user:O,displaySettings:e},{onSuccess:()=>N.resetFields()})},initialValues:{pmsiDefaultModule:E,homePageDefaultModule:S,spreadsheetSeparator:T,spreadsheetEditor:w,showGraphs:C,primaryColor:e,expandedRows:k},children:[(0,g.jsxs)(`div`,{className:`options-section`,children:[(0,g.jsx)(`h2`,{className:`section-title`,children:`Paramètres d'affichage `}),(0,g.jsx)(u,{style:{marginTop:`0px`,marginBottom:`10px`}}),(0,g.jsxs)(`div`,{className:`section-body`,children:[(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Principale`})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{name:`primaryColor`,valuePropName:`color`,getValueFromEvent:e=>e?.hex??null,className:`form-item-element`,children:(0,g.jsx)(m,{style:{right:`120px`,top:`24px`,position:`relative`}})})})]}),(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Affichage des graphiques `})}),(0,g.jsx)(d.Item,{name:`showGraphs`,className:`form-item-element`,children:(0,g.jsx)(r,{style:{width:160},options:[{value:`always`,label:`toujours`},{value:`hidden`,label:`masqués`},{value:`never`,label:`jamais`}]})})]})]})]}),(0,g.jsxs)(`div`,{className:`options-section-middle`,children:[(0,g.jsx)(`h2`,{className:`section-title`,children:`Paramètres de l'export EXCEL `}),(0,g.jsx)(u,{style:{marginTop:`0px`,marginBottom:`10px`}}),(0,g.jsxs)(`div`,{className:`section-body`,children:[(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Editeur CSV `})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{name:`spreadsheetEditor`,className:`form-item-element`,children:(0,g.jsxs)(r,{style:{width:160},children:[(0,g.jsx)(_,{value:`EXCEL`,children:`Microsoft Excel`}),(0,g.jsx)(_,{value:`CSV`,children:`Open Office`})]})})})]}),(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Séparateur `})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{name:`spreadsheetSeparator`,className:`form-item-element`,children:(0,g.jsxs)(r,{style:{width:80},children:[(0,g.jsx)(_,{value:`;`,children:`;`}),(0,g.jsx)(_,{value:`,`,children:`,`})]})})})]})]})]}),(0,g.jsxs)(`div`,{className:`options-section-middle`,children:[(0,g.jsx)(`h2`,{className:`section-title`,children:`Paramètres des menus `}),(0,g.jsx)(u,{style:{marginTop:`0px`,marginBottom:`10px`}}),(0,g.jsxs)(`div`,{className:`section-body`,children:[(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Module à ouvrir `})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{name:`homePageDefaultModule`,className:`form-item-element`,children:(0,g.jsxs)(r,{style:{width:160},children:[(0,g.jsx)(_,{value:`accueil`,children:`Accueil`}),Object.values(b).map(({name:e,label:t})=>(0,g.jsx)(_,{value:e.toLowerCase(),children:t},e))]})})})]}),A.length>1?(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Module PMSI par défaut`})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{name:`pmsiDefaultModule`,className:`form-item-element`,children:(0,g.jsx)(r,{style:{width:160},children:A.map(e=>(0,g.jsx)(_,{value:e.name.toLowerCase(),children:e.label},e.name))})})})]}):null]})]}),(0,g.jsxs)(`div`,{className:`options-section-middle`,children:[(0,g.jsx)(`h2`,{className:`section-title`,children:`Paramètres des Tableaux`}),(0,g.jsx)(u,{style:{marginTop:`0px`,marginBottom:`10px`}}),(0,g.jsx)(`div`,{className:`section-body`,children:(0,g.jsxs)(a,{children:[(0,g.jsx)(i,{span:4,children:(0,g.jsx)(`span`,{className:`first-label`,children:`Ouverture par défaut des regroupements`})}),(0,g.jsx)(i,{span:6,children:(0,g.jsx)(d.Item,{className:`form-item-element`,name:`expandedRows`,valuePropName:`checked`,children:(0,g.jsx)(l,{defaultChecked:k})})})]})})]})]})})]})};export{y as default}; \ No newline at end of file diff --git a/assets/PresentationManager-DSEhDZxm.css b/assets/PresentationManager-DSEhDZxm.css new file mode 100644 index 0000000..22a1797 --- /dev/null +++ b/assets/PresentationManager-DSEhDZxm.css @@ -0,0 +1 @@ +.options-section{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;padding:20px;display:flex}.options-section-middle{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;margin-top:10px;padding:20px;display:flex}.section-title{margin-bottom:10px}.section-body{flex-flow:column;flex:3;display:flex}.section-body>div{height:40px}.form-item-element{margin-left:10px} diff --git a/assets/ReportsManager-BAs2sDjN.css b/assets/ReportsManager-BAs2sDjN.css new file mode 100644 index 0000000..c216197 --- /dev/null +++ b/assets/ReportsManager-BAs2sDjN.css @@ -0,0 +1 @@ +.form-item .ant-input,.form-item .ant-select{width:250px}.editor-essentials{background-color:#fff;height:100%;padding:20px;box-shadow:0 .125rem .25rem #00000013}.column-lists{flex-direction:row;height:calc(100% - 50px);padding-top:10px;display:flex}.column-list{flex-flow:row;flex:3;justify-content:center;width:100%;min-height:0}.column-list .ant-tree,.column-list .ant-tree-list,.column-list .ant-tree-list>div,.column-list .ant-tree-list-holder-inner{height:100%}.column-list .ant-tree-list-holder-inner{overflow:scroll}.tree-title{text-align:center;font-weight:600}.editor-essentials .ant-tree-list-holder>div{height:100%}.essentials-right-content{height:calc(100% - 28px)}.essentials-left-content{flex-flow:column;height:100%;display:flex}.essentials-left-content .ant-tree .ant-tree-treenode,.essentials-left-content .ant-tree .ant-tree-node-content-wrapper{width:100%}.reports-editor-table,.editor-table{flex:3;height:100%}.reports-editor-table{box-shadow:0 .125rem .25rem #00000013}.form-item .ant-input,.form-item .ant-select{width:250px}.editor-indicator-editor{background-color:#fff;flex-flow:column;flex:3;min-height:0;margin-top:20px;padding:20px;box-shadow:0 .125rem .25rem #00000013}.editor-indicator-header{flex-flow:row;justify-content:flex-end;align-items:center;gap:10px;width:100%;height:30px;display:flex}.editor-indicator-header .close-button{line-height:12px}.editor-new-indicator-header{flex-flow:row;justify-content:space-between;width:100%;height:30px;display:flex}.editor-indicator-action-button{align-items:center;gap:10px;display:flex}.editor-indicator-action-button .close-button{line-height:12px}.scrollable-tab{overflow-y:scroll}.indicator-tab-column{max-width:50%;padding:0 10px}.indicator-tab-column .form-row{flex-flow:wrap;align-items:center;margin-top:4px;display:flex}.form__report-indicator{flex-direction:column;min-height:0;display:flex}.form-item .ant-input,.form-item .ant-select{width:250px}.reports-editor-settings{background-color:#fff;border-top:1px solid #eee;flex-flow:column;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.indicators-tab{flex-flow:column;height:100%;display:flex}#settings{flex-flow:wrap;display:flex}#settings>.form-row{flex:1;column-gap:50px;min-width:350px}#settings>.form-row>.form-item{flex:1}#settings>.form-row>.form-item .ant-input,#settings>.form-row>.form-item .ant-select{width:100%;min-width:200px}.form-row_margin_right{margin-right:50px!important}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.reports-table{flex:3}.reports-params{background-color:#fff;flex-flow:wrap;align-items:flex-start;width:100%;height:350px;margin-top:20px;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.params-close{flex-flow:row;justify-content:space-between;align-items:center;width:100%;height:32px;min-height:0;display:flex}.params-actions{align-items:center;gap:10px;display:flex}.params-actions .close-button{line-height:12px}.params-close>span{font-size:16px;font-weight:600}.params-form{flex-flow:row;width:100%;height:calc(100% - 32px);display:flex}.reports-params .ant-form{width:100%;height:100%}.settings__rowTable-inactive{color:#b1b1b1}.BaseTable__row-cell svg{margin-right:3px}.reports__table-check{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.reports__table-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.reports__table-single-check span{margin-right:0!important}.reports__table-single-check button{width:30px}.reports__table-headers{background-color:#fff;border-top:1px solid #eee;padding:10px 20px;box-shadow:0 .125rem .25rem #00000013}.reports__table-headers .ant-input{max-width:250px;margin-right:10px}.reports__table-headers span{margin-right:10px;font-weight:600}.reports__table-filters{flex-flow:row;align-items:center;display:flex} diff --git a/assets/ReportsManager-bB9elu33.js b/assets/ReportsManager-bB9elu33.js new file mode 100644 index 0000000..261cae1 --- /dev/null +++ b/assets/ReportsManager-bB9elu33.js @@ -0,0 +1,3 @@ +import{a as e,o as t,t as n}from"./chunk-jRWAZmH_.js";import{n as r,t as i}from"./jsx-runtime-CEixWuwE.js";import{In as a,Ln as o,Wn as s,jt as c,n as l,o as u}from"./axios-BDcMaxoP.js";import{t as d}from"./index.esm-D4i6w2dF.js";import{t as f}from"./input-C55Uc3oN.js";import{B as p,x as m}from"./ctiAxios-HKh7HuhO.js";import{t as h}from"./button-xukQsL9n.js";import{i as g,t as _}from"./select-dQ-XiIfN.js";import{t as v}from"./SearchOutlined-ouHQf-Hv.js";import{T as y}from"./sanitizeDataUtils-DBUp8Fd9.js";import{n as b,t as x}from"./row-CaO7bYqu.js";import{t as S}from"./ArrowLeftOutlined-Bae7unhy.js";import{t as C}from"./popconfirm-BanNBanA.js";import{t as w}from"./tree-Df2nuFCU.js";import{t as T}from"./CopyOutlined-DYcCtig4.js";import{r as E,t as D}from"./notification-DIuyPXAV.js";import{t as O}from"./useMutation-BtpRmKbj.js";import{n as ee,t as te}from"./DiscardChangesButton-BFEqbiGO.js";import{t as k}from"./ImportOutlined-okr1I4Tb.js";import{n as ne}from"./RowLabelWithIcon-Uk-N0Fra.js";import{t as A}from"./UndoOutlined-DAvTbx0c.js";import{t as j}from"./Loader-BvAKWCqv.js";import{a as M,c as N,i as P,o as F,s as I,t as re}from"./es--u5We8Xl.js";import{D as ie,E as ae,F as L,H as oe,I as se,J as R,Q as z,V as ce,X as le,Y as B,Z as ue,a as V,et as de,ht as fe,i as pe,k as me,mt as H,o as he,ot as U,rt as W,s as ge,u as _e}from"./index-C1mw6CgG.js";import{a as ve,t as ye}from"./useFormIsActive-Bgv4fpIz.js";import{C as G,D as be,E as xe,T as K,a as q,c as J,d as Y,l as X,o as Se,u as Ce}from"./context-CpzI18et.js";import{_ as we,a as Te,b as Ee,c as De,d as Oe,f as ke,g as Ae,h as je,i as Me,l as Ne,m as Pe,n as Fe,o as Ie,p as Le,r as Re,t as ze,u as Be,v as Ve,y as He}from"./CloseButton-CawXCByx.js";import{a as Ue,n as We,o as Ge,r as Ke,t as qe}from"./CopyToClipboard-CHoMvyT3.js";import{n as Je}from"./Information-BXzTZc0Z.js";import{t as Ye}from"./ColorPicker-BYeWsagE.js";import{t as Xe}from"./Checkbox-D2PZJZxq.js";var Ze={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`more`,theme:`outlined`};o();var Z=t(r()),Qe=Z.forwardRef(function(e,t){return Z.createElement(c,a(a({},e),{},{ref:t,icon:Ze}))}),$e={oid:`-1`,code:``,texte:``,is_cti:`0`,is_essentiel:`1`,serie_entete_1:``,serie_entete_2:``,serie_entete_3:``,serie_entete_4:``,serie_entete_5:``,serie_entete_6:``,serie_entete_7:``,serie_entete_8:``,serie_entete_9:``,colonnes_essentiel:`ENTETE_ETENDUE|VAP101|VAP100|ECP100|TDP100|VAM112|VAM100|ECM100|TDM100|VAP201|VAP200|ECP200|TDP200|VAM212|VAM200|ECM200|TDM200`,colonnes_essentiel_style:``,is_hide:`1`,group_id:`13`,group_texte:`Tableau de bord opérationnel`,rapport_template_id:`0`,is_template_updatable:`0`,label:``,rapport_indicateur_condition_id_1:`0`,rapport_indicateur_condition_id_2:`0`,rapport_indicateur_condition_id_3:`0`,rapport_indicateur_condition_id_4:`0`,rapport_indicateur_condition_id_5:`0`,sections:[],type_rapport:`ESSENTIEL`},Q=t(l()),et={key:0,numero_rubrique:``,indicateur_id:``,indicateur_texte:``,is_hide:`0`,entete:``,indicateur_entete:``,entete_etendue:``,indicateur_entete_etendue:``,description:``,indicateur_description:``,output_format:``,indicateur_output_format:``,width:`0`,indicateur_width:`0`,picto_enabled:``,positif_is_good:``,periode_reference:``,row_height:`0`,padding:`0`,font_size:`0`,font_weight:``,color:``,background_color:``,border_thickness:`0`,viewlink:``,viewlink_label:``,viewlink_param:``,indicateur_associe_id:`0`,indicateur_associe_texte:``,entete_etendue_2:``,indicateur_entete_etendue_2:``,description_2:``,indicateur_description_2:``,output_format_2:``,indicateur_output_format_2:``,picto_enabled_2:``,positif_is_good_2:``,indicateur_associe_3_id:`0`,entete_etendue_3:``,description_3:``,output_format_3:``,picto_enabled_3:``,positif_is_good_3:``,indicateur_associe_4_id:`0`,entete_etendue_4:``,description_4:``,output_format_4:``,picto_enabled_4:``,positif_is_good_4:``,indicateur_associe_5_id:`0`,entete_etendue_5:``,description_5:``,output_format_5:``,picto_enabled_5:``,positif_is_good_5:``,indicateur_associe_6_id:`0`,entete_etendue_6:``,description_6:``,output_format_6:``,picto_enabled_6:``,positif_is_good_6:``,indicateur_associe_7_id:`0`,entete_etendue_7:``,description_7:``,output_format_7:``,picto_enabled_7:``,positif_is_good_7:``,indicateur_associe_8_id:`0`,entete_etendue_8:``,description_8:``,output_format_8:``,picto_enabled_8:``,positif_is_good_8:``,indicateur_associe_9_id:`0`,entete_etendue_9:``,description_9:``,output_format_9:``,picto_enabled_9:``,positif_is_good_9:``,base_nationale:`0`,base_nationale_qualifiee:`0`,specific_viewlink:``,specific_viewlink_label:``,specific_viewlink_param:``,indicateur_condition_id_1:`0`,indicateur_condition_id_2:`0`,indicateur_condition_id_3:`0`,indicateur_condition_id_4:`0`,indicateur_condition:``,field_tag:``,hide_on_zero_field:``,calc_formula:``,erase_rapport_indicateur_condition:`0`};function tt(){let e=u();return O({mutationFn:({softCode:e,xmlDef:t})=>Ve(e,t),meta:{successMessage:`Rapport enregistré`,errorMessage:`Erreur lors de l'enregistrement du rapport`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Pe.all})}})}function nt(){let e=u();return O({mutationFn:({softCode:e,xmlDef:t})=>we(e,t),meta:{successMessage:`Rapport supprimé`,errorMessage:`Erreur lors de la suppression du rapport`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Pe.list(r.softCode)})}})}function rt(){let e=u();return O({mutationFn:({softCode:e,xmlDef:t})=>Ae(e,t),meta:{successMessage:`Rapport copié`,errorMessage:`Erreur lors de la copie du rapport`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Pe.list(r.softCode)})}})}function it(){let e=u();return O({mutationFn:({softCode:e,xmlDef:t})=>Ee(e,t),meta:{successMessage:`Paramètres enregistrés`,errorMessage:`Erreur lors de la mise à jour des paramètres`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Pe.list(r.softCode)})}})}function at(){let e=u();return O({mutationFn:({softCode:e,refoid:t})=>je(e,t),meta:{successMessage:`Synchronisation terminée`,errorMessage:`Erreur lors de l'import des rapports de référence`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:Pe.list(r.softCode)})}})}function ot(){let e=u();return O({mutationFn:He,meta:{errorMessage:`Erreur lors de la mise à jour des rapports`},onSuccess:()=>{e.setQueryData(Pe.computingStatus(),`computing`)}})}var st=[`ENTETE_ETENDUE`,`VAP101`,`VAP100`,`ECP100`,`TDP100`,`VAM112`,`VAM100`,`ECM100`,`TDM100`,`VAP201`,`VAP200`,`ECP200`,`TDP200`,`VAM212`,`VAM200`,`ECM200`,`TDM200`],ct=(e=>{let t=[];for(let n=1;n<10;n++)e.forEach(e=>{let r=e.key;if(n>1&&e.key===`ENTETE_ETENDUE`)r=`${r}_${n}`;else if(n>1){let e=[...r.matchAll(/(?[A-Z]{3})(?\d)(?.*)/gm)][0]?.groups;r=`${e.prefix}${n}${e.rest}`}t.push({...e,key:r,title:n===1?e.title:`${e.title} (${n})`,serie:n})});return t})([{title:`Entete ligne`,indicateur:1,key:`ENTETE_ETENDUE`,selected:`1`,position:0},{title:`Cumul période Année`,indicateur:1,key:`VAP100`,selected:`1`,position:0},{title:`Cumul période Année - 1`,indicateur:1,key:`VAP101`,selected:`0`,position:0},{title:`Cumul période Année - 2`,indicateur:1,key:`VAP102`,selected:`1`,position:0},{title:`Cumul 12 derniers mois`,indicateur:1,key:`VAZ100`,selected:`1`,position:0},{title:`Cumul 4 derniers trimestres`,indicateur:1,key:`VAQ100`,selected:`1`,position:0},{title:`Budget Année période `,indicateur:1,key:`BUP100`,selected:`1`,position:0},{title:`Budget Année total`,indicateur:1,key:`BUA100`,selected:`1`,position:0},{title:`Ecart période Année / Année - 1`,indicateur:1,key:`ECP100`,selected:`1`,position:0},{title:`Tendance période Année / Année - 1`,indicateur:1,key:`TDP100`,selected:`1`,position:0},{title:`% atteinte budget Année période `,indicateur:1,key:`BTP100`,selected:`1`,position:0},{title:`% atteinte budget Année total`,indicateur:1,key:`BTA100`,selected:`1`,position:0},{title:`Ecart budget Année période `,indicateur:1,key:`BEP100`,selected:`1`,position:0},{title:`Ecart budget Année total`,indicateur:1,key:`BEA100`,selected:`1`,position:0},{title:`Ecart Moyen Année total`,indicateur:1,key:`BNA100`,selected:`1`,position:0},{title:`Cumul période Exercice`,indicateur:1,key:`VAY100`,selected:`1`,position:0},{title:`Cumul période Exercice - 1`,indicateur:1,key:`VAY101`,selected:`1`,position:0},{title:`Cumul période Exercice - 2`,indicateur:1,key:`VAY102`,selected:`1`,position:0},{title:`Budget Exercice période`,indicateur:1,key:`BUY100`,selected:`1`,position:0},{title:`Budget Exercice total`,indicateur:1,key:`BUX100`,selected:`1`,position:0},{title:`Ecart période Exercice / Exercice - 1`,indicateur:1,key:`ECY100`,selected:`1`,position:0},{title:`Tendance période Exercice / Exercice - 1`,indicateur:1,key:`TDY100`,selected:`1`,position:0},{title:`% atteinte Budget Exercice periode`,indicateur:1,key:`BTY100`,selected:`1`,position:0},{title:`% atteinte Budget Exercice total`,indicateur:1,key:`BTX100`,selected:`1`,position:0},{title:`Ecart Budget Exercice periode`,indicateur:1,key:`BEY100`,selected:`1`,position:0},{title:`Ecart Budget Exercice total`,indicateur:1,key:`BEX100`,selected:`1`,position:0},{title:`Budget mois`,indicateur:1,key:`BUM100`,selected:`1`,position:0},{title:`Cumul mois`,indicateur:1,key:`VAM100`,selected:`1`,position:0},{title:`Cumul mois Année - 1`,indicateur:1,key:`VAM112`,selected:`1`,position:0},{title:`Cumul mois Année - 2`,indicateur:1,key:`VAM124`,selected:`1`,position:0},{title:`Ecart mois Année / Année - 1`,indicateur:1,key:`ECM100`,selected:`1`,position:0},{title:`Tendance mois Année / Année - 1`,indicateur:1,key:`TDM100`,selected:`1`,position:0},{title:`Cumul mois - 1`,indicateur:1,key:`VAM101`,selected:`1`,position:0},{title:`Ecart Mois / Mois - 1`,indicateur:1,key:`ECM101`,selected:`1`,position:0},{title:`Tendance mois Mois / Mois - 1`,indicateur:1,key:`TDM101`,selected:`1`,position:0},{title:`Cumul mois - 2`,indicateur:1,key:`VAM102`,selected:`1`,position:0},{title:`Cumul mois - 3`,indicateur:1,key:`VAM103`,selected:`1`,position:0},{title:`Cumul mois - 4`,indicateur:1,key:`VAM104`,selected:`1`,position:0},{title:`Cumul mois - 5`,indicateur:1,key:`VAM105`,selected:`1`,position:0},{title:`Cumul mois - 6`,indicateur:1,key:`VAM106`,selected:`1`,position:0},{title:`Cumul mois - 7`,indicateur:1,key:`VAM107`,selected:`1`,position:0},{title:`Cumul mois - 8`,indicateur:1,key:`VAM108`,selected:`1`,position:0},{title:`Cumul mois - 9`,indicateur:1,key:`VAM109`,selected:`1`,position:0},{title:`Cumul mois - 10`,indicateur:1,key:`VAM110`,selected:`1`,position:0},{title:`Cumul mois - 11`,indicateur:1,key:`VAM111`,selected:`1`,position:0},{title:`Evolution mensuelle Année`,indicateur:1,key:`DAM100`,selected:`1`,position:0},{title:`Evolution mensuelle Exercice`,indicateur:1,key:`DXM100`,selected:`1`,position:0},{title:`Evolution mensuelle 12 derniers mois`,indicateur:1,key:`DZM100`,selected:`1`,position:0},{title:`Evolution mensuelle Budget Année`,indicateur:1,key:`BAM100`,selected:`1`,position:0},{title:`Evolution mensuelle Budget Exercice`,indicateur:1,key:`BXM100`,selected:`1`,position:0},{title:`Evolution mensuelle Budget 12 derniers mois`,indicateur:1,key:`BZM100`,selected:`1`,position:0},{title:`Evolution mens. Année (Valeur+Budget)`,indicateur:1,key:`FAM100`,selected:`1`,position:0},{title:`Evolution mens. Exercice (Valeur+Budget)`,indicateur:1,key:`FXM100`,selected:`1`,position:0},{title:`Evolution mens. 12 derniers mois (Valeur+Budget)`,indicateur:1,key:`FZM100`,selected:`1`,position:0},{title:`Cumul trimestre`,indicateur:1,key:`VAT100`,selected:`1`,position:0},{title:`Cumul trimestre Année - 1`,indicateur:1,key:`VAT112`,selected:`1`,position:0},{title:`Cumul trimestre Année - 2`,indicateur:1,key:`VAT124`,selected:`1`,position:0},{title:`Ecart trimestre Année / Année - 1`,indicateur:1,key:`ECT100`,selected:`1`,position:0},{title:`Tendance trimestre Année / Année - 1`,indicateur:1,key:`TDT100`,selected:`1`,position:0},{title:`Evolution trimestrielle Année`,indicateur:1,key:`DAT100`,selected:`1`,position:0},{title:`Evolution trimestrielle Exercice`,indicateur:1,key:`DXT100`,selected:`1`,position:0},{title:`Evolution trimestrielle 4 derniers trimestres`,indicateur:1,key:`DZT100`,selected:`1`,position:0},{title:`Evolution quotidienne mois en cours`,indicateur:1,key:`VMJ100`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux période`,indicateur:1,key:`NAP100MCO`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux mois`,indicateur:1,key:`NAM100MCO`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux privé période`,indicateur:1,key:`NRP100MCO`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux privé mois`,indicateur:1,key:`NRM100MCO`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux public période`,indicateur:1,key:`NUP100MCO`,selected:`1`,position:0},{title:`MCO. Indicateurs nationaux public mois`,indicateur:1,key:`NUM100MCO`,selected:`1`,position:0}]),lt=t(m()),$=i(),ut=({formReport:e,form:t})=>{let n=[];for(let t=1;t<=9;t++)(t===1||e.sections.some(e=>e[`indicateur_associe_${t}_id`]!==`0`))&&n.push(t);return(0,$.jsx)(U,{form:t,children:n.map(e=>(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Nom abrégé série ${e}`}),(0,$.jsx)(U.Item,{name:`serie_entete_${e}`,children:(0,$.jsx)(f,{})})]})},e))})};ut.propTypes={formReport:Q.default.object,form:Q.default.object};var dt=t(Xe()),ft=({open:e,onCancel:t,onOk:n,draftStyles:r,setDraftStyles:i,selectedColumnKey:a})=>(0,$.jsx)(de,{open:e,onCancel:t,onOk:n,title:(0,$.jsxs)($.Fragment,{children:[`Styles de la colonne `,(0,$.jsx)(`b`,{children:ct.find(e=>e.key===a)?.title||``})]}),okText:`Valider`,cancelText:`Annuler`,style:{top:200},children:(0,$.jsxs)(`div`,{className:`style-options`,children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Taille`}),(0,$.jsx)(f,{name:`fontSize`,type:`number`,onChange:e=>i(t=>({...t,fontSize:e.target.value})),value:r?.fontSize})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Gras`}),(0,$.jsx)(dt.default,{name:`fontWeight`,checked:r?.fontWeight===`bold`,onChange:e=>i(t=>({...t,fontWeight:e.target.checked?`bold`:`normal`}))})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Couleur`}),(0,$.jsx)(Ye,{name:`color`,triangle:`hide`,position:`top`,onChange:e=>i(t=>({...t,color:e.hex.replace(`#`,`0x`)})),color:r?.color?.replace(`0x`,`#`)})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Fond`}),(0,$.jsx)(Ye,{name:`backgroundColor`,triangle:`hide`,position:`top`,onChange:e=>i(t=>({...t,backgroundColor:e.hex.replace(`#`,`0x`)})),color:r?.backgroundColor?.replace(`0x`,`#`)})]})})]})});ft.propTypes={open:Q.default.bool,onCancel:Q.default.func,onOk:Q.default.func,draftStyles:Q.default.object,setDraftStyles:Q.default.func,selectedColumnKey:Q.default.string};var pt=({form:e,formReport:t,setFormReport:n,setSelectedReportModified:r})=>{let[i,a]=(0,Z.useState)(t.colonnes_essentiel?t.colonnes_essentiel.split(`|`):st),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(1),[u,d]=(0,Z.useState)({}),[f,p]=(0,Z.useState)(!1),m=(0,lt.default)(i,st),g=e=>{a(st),y(st)},v=()=>{r(!0),n(e=>({...e,colonnes_essentiel_style:ht({})}))},y=e=>{r(!0),n(t=>({...t,colonnes_essentiel:e.join(`|`)}))},b=e=>{let t=i.map(e=>ct.find(t=>t.key===e)).filter(e=>e&&e.serie!==c).map(e=>e.key),n=ct.filter(t=>t.serie===c&&e.includes(t.key)).map(e=>e.key),r=[...t,...n];a(r.sort((e,t)=>i.includes(e)&&i.indexOf(e){let n=e[0];n?(s(n),d({...mt(t.colonnes_essentiel_style)[n]}),p(!0)):s(null)},S=()=>{r(!0);let e={...t},i=mt(e.colonnes_essentiel_style),a=i[o]??{};for(let e in u)a[e]=u[e];i[o]=a,e.colonnes_essentiel_style=ht(i),n(e),p(!1)},T=({node:e,dragNode:t,dragNodesKeys:n,event:o})=>{let s=t.key,c=e.key,l=i.findIndex(e=>e===s),u=i.findIndex(e=>e===c),d=[...i];d.splice(u,0,d.splice(l,1)[0]),a(d),y(d),r(!0)},E=()=>{let e=t.sections.reduce((e,t)=>{for(let n in t)n.startsWith(`indicateur_associe_`)&&n.includes(`_id`)&&t[n]!==`0`&&e.push(n);return e},[]),n=[...new Set(e)].map((e,t)=>({label:`Serie ${t+2}`,value:t+2}));return n.unshift({label:`Serie 1`,value:1}),n},D=i.filter(e=>{let t=ct.find(t=>t.key===e);return t?t.serie===c:!1});return(0,$.jsx)(`div`,{className:`editor-essentials`,children:(0,$.jsx)(fe,{items:[{label:`Séries`,key:`1`,children:(0,$.jsx)(ut,{form:e,formReport:t})},{label:`Colonnes à afficher`,key:`3`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(C,{okText:`Valider`,cancelText:`Annuler`,onConfirm:g,title:`Etes vous sûr de vouloir réinitialiser toutes les colonnes ?`,children:(0,$.jsx)(h,{style:{marginLeft:8},children:`Réinitialiser les colonnes`})}),(0,$.jsx)(C,{okText:`Valider`,cancelText:`Annuler`,onConfirm:v,title:`Etes vous sûr de vouloir réinitialiser tous les styles ?`,children:(0,$.jsx)(h,{style:{marginLeft:8},children:`Réinitialiser les styles`})})]})}),(0,$.jsxs)(`div`,{className:`column-lists`,children:[(0,$.jsxs)(`div`,{className:`column-list`,children:[(0,$.jsx)(`div`,{className:`tree-title`,children:`Colonnes choisies ${m?`(par défaut)`:`(personnalisées)`}`}),(0,$.jsxs)(`div`,{className:`essentials-left-content`,children:[(0,$.jsx)(w,{treeData:ct.filter(e=>i.includes(e.key)).sort((e,t)=>i.indexOf(e.key){let n={...mt(t.colonnes_essentiel_style)[e.key]};return{...e,title:(0,$.jsx)(`div`,{style:{width:`80%`,paddingLeft:4,...n},children:e.title})}}),onSelect:x,draggable:!0,onDrop:T}),(0,$.jsx)(ft,{open:f,onCancel:()=>{p(!1),s(null)},setIsStyleModalVisible:p,onOk:S,selectedColumnKey:o,draftStyles:u,setDraftStyles:d},o)]})]}),(0,$.jsxs)(`div`,{className:`column-list`,children:[(0,$.jsx)(`div`,{className:`tree-title`,children:`Colonnes disponibles`}),(0,$.jsx)(_,{style:{width:`100%`},value:c,options:E(),onChange:e=>l(e)}),(0,$.jsx)(`div`,{className:`essentials-right-content`,children:(0,$.jsx)(w,{checkable:!0,onCheck:b,selectable:!0,checkedKeys:D??[],treeData:ct.filter(e=>e.serie===c)})})]})]})]})}]})})};pt.propTypes={form:Q.default.object,formReport:Q.default.object,setFormReport:Q.default.func,setSelectedReportModified:Q.default.func};var mt=e=>{let t={};return e&&(t=e.split(`|`).reduce((e,t)=>{let[n,r]=t.split(`:`);if(n&&r){let[t,i]=r.split(`=`);i=i.replace(`0x`,`#`);let a=e[n]??{};a[t]=i,e[n]=a}return e},{})),t},ht=e=>{let t=``;for(let n in e){let r=e[n];for(let e in r){let i=r[e];e===`fontWeight`&&i!==!1?(i=`bold`,t+=`${n}:${e}=${i}|`):e!==`fontWeight`&&(i=i.replace(`#`,`0x`),t+=`${n}:${e}=${i}|`)}}return t},gt=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(Y()),i=t(Ce()),a=t(q()),o=t(J()),s=t(Se()),c=t(X()),u=t(r()),d=t(l()),f=function(e){(0,c.default)(t,e);function t(e){var r;return(0,n.default)(this,t),r=(0,a.default)(this,(0,o.default)(t).call(this,e)),r.renderHeaderRow=r.renderHeaderRow.bind((0,s.default)(r)),r.renderFrozenRow=r.renderFrozenRow.bind((0,s.default)(r)),r._setRef=r._setRef.bind((0,s.default)(r)),r}return(0,i.default)(t,[{key:`scrollTo`,value:function(e){var t=this;requestAnimationFrame(function(){t.headerRef&&(t.headerRef.scrollLeft=e)})}},{key:`renderHeaderRow`,value:function(e,t){var n=this.props,r=n.columns,i=n.headerRenderer;return e<=0?null:i({style:{width:`100%`,height:e},columns:r,headerIndex:t})}},{key:`renderFrozenRow`,value:function(e,t){var n=this.props,r=n.columns,i=n.rowHeight,a=n.rowRenderer;return a({style:{width:`100%`,height:i},columns:r,rowData:e,rowIndex:-t-1})}},{key:`render`,value:function(){var e=this.props,t=e.className,n=e.width,r=e.height,i=e.rowWidth,a=e.headerHeight,o=e.frozenData;if(r<=0)return null;var s={width:n,height:r,position:`relative`,overflow:`hidden`},c={width:i,height:r},l=Array.isArray(a)?a:[a];return u.default.createElement(`div`,{role:`grid`,ref:this._setRef,className:t,style:s},u.default.createElement(`div`,{role:`rowgroup`,style:c},l.map(this.renderHeaderRow),o.map(this.renderFrozenRow)))}},{key:`_setRef`,value:function(e){this.headerRef=e}}]),t}(u.default.PureComponent);f.propTypes={className:d.default.string,width:d.default.number.isRequired,height:d.default.number.isRequired,headerHeight:d.default.oneOfType([d.default.number,d.default.arrayOf(d.default.number)]).isRequired,rowWidth:d.default.number.isRequired,rowHeight:d.default.number.isRequired,columns:d.default.arrayOf(d.default.object).isRequired,data:d.default.array.isRequired,frozenData:d.default.array,headerRenderer:d.default.func.isRequired,rowRenderer:d.default.func.isRequired},e.default=f})),_t=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.renderElement=c,e.normalizeColumns=l,e.isObjectEqual=u,e.callOrReturn=d,e.hasChildren=f,e.unflatten=p,e.flattenOnKeys=m,e.cloneArray=h,e.noop=g,e.toString=_,e.getValue=y,e.getScrollbarSize=x,e.addClassName=S,e.removeClassName=C,e.getEstimatedTotalRowsHeight=w,e.throttle=e.debounce=void 0;var n=t(be()),i=t(K()),a=t(r());function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:!0;if(e===t||e===null&&t===null)return!0;if(e===null||t===null||(0,n.default)(e)!==`object`||(0,n.default)(t)!==`object`)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var o=0;o0}function p(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`id`,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`parentId`,i=[],a={},o=e.length,c=0;c2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`id`;if(!t||!t.length)return e;var i=[],a=new Set;t.forEach(function(e){return a.add(e)});var o=[].concat(e);o.forEach(function(e){return n[e[r]]=0});for(var s=function(){var e=o.shift();i.push(e),a.has(e[r])&&Array.isArray(e.children)&&e.children.length>0&&(o=[].concat(e.children,o),e.children.forEach(function(t){return n[t[r]]=n[e[r]]+1}))};o.length>0;)s();return i}function h(e){return Array.isArray(e)?[].concat(e):[]}function g(){}function _(e){return typeof e==`string`?e:e==null?``:e.toString?e.toString():``}function v(e){for(var t=e.split(`.`),n=[],r=0;r1&&arguments[1]!==void 0?arguments[1]:0,n;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){return e.apply(r,i)},t)}},e.throttle=function(e,t){var n,r,i;return function(){var a=this,o=arguments;n?(clearTimeout(r),r=setTimeout(function(){Date.now()-i>=t&&(e.apply(a,o),i=Date.now())},Math.max(t-(Date.now()-i),0))):(e.apply(a,o),i=Date.now(),n=!0)}};var b;function x(e){if((!b&&b!==0||e)&&typeof window<`u`&&window.document&&window.document.createElement){var t=document.createElement(`div`);t.style.position=`absolute`,t.style.top=`-9999px`,t.style.width=`50px`,t.style.height=`50px`,t.style.overflow=`scroll`,document.body.appendChild(t),b=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return b}function S(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function C(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function w(e,t){return typeof t==`function`?e.reduce(function(e,n,r){return e+t({rowData:n,rowIndex:r})},0):e.length*t}})),vt=n((t=>{var n=B();Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var i=n(R()),a=n(G()),o=n(K()),c=n(Y()),u=n(Ce()),d=n(q()),f=n(J()),p=n(Se()),m=n(X()),h=n(r()),g=n(l()),_=n(s()),v=(F(),e(M)),y=n((I(),e(N))),b=n(gt()),x=_t();function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.props.estimatedRowHeight&&this.bodyRef&&this.bodyRef.resetAfterRowIndex(e,t)}},{key:`forceUpdateTable`,value:function(){this.headerRef&&this.headerRef.forceUpdate(),this.bodyRef&&this.bodyRef.forceUpdate()}},{key:`scrollToPosition`,value:function(e){this.headerRef&&this.headerRef.scrollTo(e.scrollLeft),this.bodyRef&&this.bodyRef.scrollTo(e)}},{key:`scrollToTop`,value:function(e){this.bodyRef&&this.bodyRef.scrollTo({scrollTop:e})}},{key:`scrollToLeft`,value:function(e){this.headerRef&&this.headerRef.scrollTo(e),this.bodyRef&&this.bodyRef.scrollToPosition({scrollLeft:e})}},{key:`scrollToRow`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`auto`;this.bodyRef&&this.bodyRef.scrollToItem({rowIndex:e,align:t})}},{key:`getTotalRowsHeight`,value:function(){var e=this.props,t=e.data,n=e.rowHeight,r=e.estimatedRowHeight;return r?this.innerRef&&this.innerRef.clientHeight||this._getEstimatedTotalRowsHeight(t,r):t.length*n}},{key:`renderRow`,value:function(e){var t=this.props,n=t.data,r=t.columns,i=t.rowRenderer,a=n[e.rowIndex];return i(C({},e,{columns:r,rowData:a}))}},{key:`render`,value:function(){var e=this.props,t=e.containerStyle,n=e.classPrefix,r=e.className,o=e.data,s=e.frozenData,c=e.width,l=e.height,u=e.rowHeight,d=e.estimatedRowHeight,f=e.getRowHeight,p=e.headerWidth,m=e.bodyWidth,g=e.useIsScrolling,y=e.onScroll,x=e.hoveredRowKey,S=e.overscanRowCount;e.style,e.onScrollbarPresenceChange;var C=(0,a.default)(e,[`containerStyle`,`classPrefix`,`className`,`data`,`frozenData`,`width`,`height`,`rowHeight`,`estimatedRowHeight`,`getRowHeight`,`headerWidth`,`bodyWidth`,`useIsScrolling`,`onScroll`,`hoveredRowKey`,`overscanRowCount`,`style`,`onScrollbarPresenceChange`]),w=this._getHeaderHeight(),T=s.length,E=u*T,D=(0,_.default)(`${n}__table`,r),O=t?{style:t}:null,ee=d?v.VariableSizeGrid:v.FixedSizeGrid;return this._resetColumnWidthCache(m),h.default.createElement(`div`,(0,i.default)({role:`table`,className:D},O),h.default.createElement(ee,(0,i.default)({},C,{className:`${n}__body`,ref:this._setBodyRef,innerRef:this._setInnerRef,itemKey:this._itemKey,data:o,frozenData:s,width:c,height:Math.max(l-w-E,0),rowHeight:d?f:u,estimatedRowHeight:typeof d==`function`?void 0:d,rowCount:o.length,overscanRowCount:S,columnWidth:d?this._getBodyWidth:m,columnCount:1,overscanColumnCount:0,useIsScrolling:g,hoveredRowKey:x,onScroll:y,onItemsRendered:this._handleItemsRendered,children:this.renderRow})),w+E>0&&h.default.createElement(b.default,(0,i.default)({},C,{className:`${n}__header`,ref:this._setHeaderRef,data:o,frozenData:s,width:c,height:Math.min(w+E,l),rowWidth:p,rowHeight:u,headerHeight:this.props.headerHeight,headerRenderer:this.props.headerRenderer,rowRenderer:this.props.rowRenderer,hoveredRowKey:T>0?x:null})))}},{key:`_setHeaderRef`,value:function(e){this.headerRef=e}},{key:`_setBodyRef`,value:function(e){this.bodyRef=e}},{key:`_setInnerRef`,value:function(e){this.innerRef=e}},{key:`_itemKey`,value:function(e){var t=e.rowIndex,n=this.props,r=n.data,i=n.rowKey;return r[t][i]}},{key:`_getHeaderHeight`,value:function(){var e=this.props.headerHeight;return Array.isArray(e)?e.reduce(function(e,t){return e+t},0):e}},{key:`_getBodyWidth`,value:function(){return this.props.bodyWidth}},{key:`_handleItemsRendered`,value:function(e){var t=e.overscanRowStartIndex,n=e.overscanRowStopIndex,r=e.visibleRowStartIndex,i=e.visibleRowStopIndex;this.props.onRowsRendered({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})}}]),t}(h.default.PureComponent);w.propTypes={containerStyle:g.default.object,classPrefix:g.default.string,className:g.default.string,width:g.default.number.isRequired,height:g.default.number.isRequired,headerHeight:g.default.oneOfType([g.default.number,g.default.arrayOf(g.default.number)]).isRequired,headerWidth:g.default.number.isRequired,bodyWidth:g.default.number.isRequired,rowHeight:g.default.number.isRequired,estimatedRowHeight:g.default.oneOfType([g.default.func,g.default.number]),getRowHeight:g.default.func,columns:g.default.arrayOf(g.default.object).isRequired,data:g.default.array.isRequired,frozenData:g.default.array,rowKey:g.default.oneOfType([g.default.string,g.default.number]).isRequired,useIsScrolling:g.default.bool,overscanRowCount:g.default.number,hoveredRowKey:g.default.oneOfType([g.default.string,g.default.number]),style:g.default.object,onScrollbarPresenceChange:g.default.func,onScroll:g.default.func,onRowsRendered:g.default.func,headerRenderer:g.default.func.isRequired,rowRenderer:g.default.func.isRequired},t.default=w})),yt=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(R()),i=t(G()),a=t(r()),o=t(l()),s=_t(),c=function(e){var t=e.className,r=e.style,o=e.columns,c=e.headerIndex,l=e.cellRenderer,u=e.headerRenderer,d=e.expandColumnKey,f=e.expandIcon,p=e.tagName,m=(0,i.default)(e,[`className`,`style`,`columns`,`headerIndex`,`cellRenderer`,`headerRenderer`,`expandColumnKey`,`expandIcon`,`tagName`]),h=o.map(function(e,t){return l({columns:o,column:e,columnIndex:t,headerIndex:c,expandIcon:e.key===d&&a.default.createElement(f,null)})});return u&&(h=(0,s.renderElement)(u,{cells:h,columns:o,headerIndex:c})),a.default.createElement(p,(0,n.default)({},m,{className:t,style:r}),h)};c.defaultProps={tagName:`div`},c.propTypes={isScrolling:o.default.bool,className:o.default.string,style:o.default.object,columns:o.default.arrayOf(o.default.object).isRequired,headerIndex:o.default.number,cellRenderer:o.default.func,headerRenderer:o.default.oneOfType([o.default.func,o.default.element]),expandColumnKey:o.default.string,expandIcon:o.default.func,tagName:o.default.elementType},e.default=c})),bt=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(R()),i=t(G()),a=t(Y()),o=t(Ce()),s=t(q()),c=t(J()),u=t(Se()),d=t(X()),f=t(r()),p=t(l()),m=_t(),h=function(e){(0,d.default)(t,e);function t(e){var n;return(0,a.default)(this,t),n=(0,s.default)(this,(0,c.default)(t).call(this,e)),n.state={measured:!1},n._setRef=n._setRef.bind((0,u.default)(n)),n._handleExpand=n._handleExpand.bind((0,u.default)(n)),n}return(0,o.default)(t,[{key:`componentDidMount`,value:function(){this.props.estimatedRowHeight&&this.props.rowIndex>=0&&this._measureHeight(!0)}},{key:`componentDidUpdate`,value:function(e,t){var n=this;this.props.estimatedRowHeight&&this.props.rowIndex>=0&&!this.props.getIsResetting()&&this.state.measured&&t.measured&&this.setState({measured:!1},function(){return n._measureHeight()})}},{key:`render`,value:function(){var e=this.props,t=e.isScrolling,r=e.className,a=e.style,o=e.columns,s=e.rowIndex,c=e.rowData,l=e.expandColumnKey,u=e.depth,d=e.rowEventHandlers,p=e.estimatedRowHeight,h=e.rowRenderer,g=e.cellRenderer,_=e.expandIconRenderer,v=e.tagName;e.rowKey,e.getIsResetting,e.onRowHover,e.onRowExpand,e.onRowHeightChange;var y=(0,i.default)(e,[`isScrolling`,`className`,`style`,`columns`,`rowIndex`,`rowData`,`expandColumnKey`,`depth`,`rowEventHandlers`,`estimatedRowHeight`,`rowRenderer`,`cellRenderer`,`expandIconRenderer`,`tagName`,`rowKey`,`getIsResetting`,`onRowHover`,`onRowExpand`,`onRowHeightChange`]),b=_({rowData:c,rowIndex:s,depth:u,onExpand:this._handleExpand}),x=o.map(function(e,n){return g({isScrolling:t,columns:o,column:e,columnIndex:n,rowData:c,rowIndex:s,expandIcon:e.key===l&&b})});h&&(x=(0,m.renderElement)(h,{isScrolling:t,cells:x,columns:o,rowData:c,rowIndex:s,depth:u}));var S=this._getEventHandlers(d);if(p&&s>=0){a.height;var C=(0,i.default)(a,[`height`]);return f.default.createElement(v,(0,n.default)({},y,{ref:this._setRef,className:r,style:this.state.measured?a:C},this.state.measured&&S),x)}return f.default.createElement(v,(0,n.default)({},y,{className:r,style:a},S),x)}},{key:`_setRef`,value:function(e){this.ref=e}},{key:`_handleExpand`,value:function(e){var t=this.props,n=t.onRowExpand,r=t.rowData,i=t.rowIndex,a=t.rowKey;n&&n({expanded:e,rowData:r,rowIndex:i,rowKey:a})}},{key:`_measureHeight`,value:function(e){if(this.ref){var t=this.props,n=t.style,r=t.rowKey,i=t.onRowHeightChange,a=t.rowIndex,o=t.columns,s=this.ref.getBoundingClientRect().height;this.setState({measured:!0},function(){(e||s!==n.height)&&i(r,s,a,o[0]&&!o[0].__placeholder__&&o[0].frozen)})}}},{key:`_getEventHandlers`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=this.props,n=t.rowData,r=t.rowIndex,i=t.rowKey,a=t.onRowHover,o={};if(Object.keys(e).forEach(function(t){var a=e[t];typeof a==`function`&&(o[t]=function(e){a({rowData:n,rowIndex:r,rowKey:i,event:e})})}),a){var s=o.onMouseEnter;o.onMouseEnter=function(e){a({hovered:!0,rowData:n,rowIndex:r,rowKey:i,event:e}),s&&s(e)};var c=o.onMouseLeave;o.onMouseLeave=function(e){a({hovered:!1,rowData:n,rowIndex:r,rowKey:i,event:e}),c&&c(e)}}return o}}]),t}(f.default.PureComponent);h.defaultProps={tagName:`div`},h.propTypes={isScrolling:p.default.bool,className:p.default.string,style:p.default.object,columns:p.default.arrayOf(p.default.object).isRequired,rowData:p.default.object.isRequired,rowIndex:p.default.number.isRequired,rowKey:p.default.oneOfType([p.default.string,p.default.number]),expandColumnKey:p.default.string,depth:p.default.number,rowEventHandlers:p.default.object,rowRenderer:p.default.oneOfType([p.default.func,p.default.element]),cellRenderer:p.default.func,expandIconRenderer:p.default.func,estimatedRowHeight:p.default.oneOfType([p.default.number,p.default.func]),getIsResetting:p.default.func,onRowHover:p.default.func,onRowExpand:p.default.func,onRowHeightChange:p.default.func,tagName:p.default.elementType},e.default=h})),xt=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(r()),i=t(l()),a=function(e){var t=e.className,r=e.column;return e.columnIndex,n.default.createElement(`div`,{className:t},r.title)};a.propTypes={className:i.default.string,column:i.default.object,columnIndex:i.default.number},e.default=a})),St=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(r()),i=t(l()),a=_t(),o=function(e){var t=e.className,r=e.cellData;return e.column,e.columnIndex,e.rowData,e.rowIndex,n.default.createElement(`div`,{className:t},n.default.isValidElement(r)?r:(0,a.toString)(r))};o.propTypes={className:i.default.string,cellData:i.default.any,column:i.default.object,columnIndex:i.default.number,rowData:i.default.object,rowIndex:i.default.number},e.default=o})),Ct=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.FrozenDirection=e.Alignment=void 0;var n=t(Y()),i=t(q()),a=t(J()),o=t(X()),s=t(r()),c=t(l()),u={LEFT:`left`,CENTER:`center`,RIGHT:`right`};e.Alignment=u;var d={LEFT:`left`,RIGHT:`right`,DEFAULT:!0,NONE:!1};e.FrozenDirection=d;var f=function(e){(0,o.default)(t,e);function t(){return(0,n.default)(this,t),(0,i.default)(this,(0,a.default)(t).apply(this,arguments))}return t}(s.default.Component);f.propTypes={className:c.default.oneOfType([c.default.string,c.default.func]),headerClassName:c.default.oneOfType([c.default.string,c.default.func]),style:c.default.object,title:c.default.node,dataKey:c.default.string,dataGetter:c.default.func,align:c.default.oneOf([`left`,`center`,`right`]),flexGrow:c.default.number,flexShrink:c.default.number,width:c.default.number.isRequired,maxWidth:c.default.number,minWidth:c.default.number,frozen:c.default.oneOf([`left`,`right`,!0,!1]),hidden:c.default.bool,resizable:c.default.bool,sortable:c.default.bool,cellRenderer:c.default.oneOfType([c.default.func,c.default.element]),headerRenderer:c.default.oneOfType([c.default.func,c.default.element])},f.Alignment=u,f.FrozenDirection=d,e.default=f})),wt=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={ASC:`asc`,DESC:`desc`}})),Tt=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(R()),i=t(G()),a=t(Y()),o=t(Ce()),c=t(q()),u=t(J()),d=t(Se()),f=t(X()),p=t(r()),m=t(l()),h=t(s()),g=function(e){(0,f.default)(t,e);function t(e){var n;return(0,a.default)(this,t),n=(0,c.default)(this,(0,u.default)(t).call(this,e)),n._handleClick=n._handleClick.bind((0,d.default)(n)),n}return(0,o.default)(t,[{key:`render`,value:function(){var e=this.props,t=e.expandable,r=e.expanded,a=e.indentSize,o=e.depth,s=e.onExpand,c=(0,i.default)(e,[`expandable`,`expanded`,`indentSize`,`depth`,`onExpand`]);if(!t&&a===0)return null;var l=(0,h.default)(`BaseTable__expand-icon`,{"BaseTable__expand-icon--expanded":r});return p.default.createElement(`div`,(0,n.default)({},c,{className:l,onClick:t&&s?this._handleClick:null,style:{fontFamily:`initial`,cursor:`pointer`,userSelect:`none`,width:`16px`,minWidth:`16px`,height:`16px`,lineHeight:`16px`,fontSize:`16px`,textAlign:`center`,transition:`transform 0.15s ease-out`,transform:`rotate(${t&&r?90:0}deg)`,marginLeft:o*a}}),t&&`▸`)}},{key:`_handleClick`,value:function(e){e.stopPropagation(),e.preventDefault();var t=this.props,n=t.onExpand,r=t.expanded;n(!r)}}]),t}(p.default.PureComponent);g.defaultProps={depth:0,indentSize:16},g.propTypes={expandable:m.default.bool,expanded:m.default.bool,indentSize:m.default.number,depth:m.default.number,onExpand:m.default.func},e.default=g})),Et=n((e=>{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(K()),i=t(r()),a=t(l()),o=t(s()),c=t(wt());function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.addUserSelectStyles=y,e.removeUserSelectStyles=b,e.default=void 0;var n=t(R()),i=t(K()),a=t(G()),o=t(Y()),s=t(Ce()),c=t(q()),u=t(J()),d=t(Se()),f=t(X()),p=t(r()),m=t(l()),h=_t();function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;tl?p=l:p{var t=B();Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(K()),r=t(Y()),i=t(Ce()),a=Ct();function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0&&n._origColumns[r].width===e.width&&(t=n._columns[r].width)}return s({},e,{width:t})}),this._origColumns=e,this._fixed=t,this._cached={},this._columnStyles=this.recomputeColumnStyles()}},{key:`resetCache`,value:function(){this._cached={}}},{key:`getOriginalColumns`,value:function(){return this._origColumns}},{key:`getColumns`,value:function(){return this._columns}},{key:`getVisibleColumns`,value:function(){var e=this;return this._cache(`visibleColumns`,function(){return e._columns.filter(function(e){return!e.hidden})})}},{key:`hasFrozenColumns`,value:function(){var e=this;return this._cache(`hasFrozenColumns`,function(){return e._fixed&&e.getVisibleColumns().some(function(e){return!!e.frozen})})}},{key:`hasLeftFrozenColumns`,value:function(){var e=this;return this._cache(`hasLeftFrozenColumns`,function(){return e._fixed&&e.getVisibleColumns().some(function(e){return e.frozen===a.FrozenDirection.LEFT||e.frozen===!0})})}},{key:`hasRightFrozenColumns`,value:function(){var e=this;return this._cache(`hasRightFrozenColumns`,function(){return e._fixed&&e.getVisibleColumns().some(function(e){return e.frozen===a.FrozenDirection.RIGHT})})}},{key:`getMainColumns`,value:function(){var t=this;return this._cache(`mainColumns`,function(){var r=t.getVisibleColumns();if(!t.hasFrozenColumns())return r;var i=[];return t.getLeftFrozenColumns().forEach(function(t){i.push(s({},t,(0,n.default)({},e.PlaceholderKey,!0)))}),t.getVisibleColumns().forEach(function(e){e.frozen||i.push(e)}),t.getRightFrozenColumns().forEach(function(t){i.push(s({},t,(0,n.default)({},e.PlaceholderKey,!0)))}),i})}},{key:`getLeftFrozenColumns`,value:function(){var e=this;return this._cache(`leftFrozenColumns`,function(){return e._fixed?e.getVisibleColumns().filter(function(e){return e.frozen===a.FrozenDirection.LEFT||e.frozen===!0}):[]})}},{key:`getRightFrozenColumns`,value:function(){var e=this;return this._cache(`rightFrozenColumns`,function(){return e._fixed?e.getVisibleColumns().filter(function(e){return e.frozen===a.FrozenDirection.RIGHT}):[]})}},{key:`getColumn`,value:function(e){var t=this._columns.findIndex(function(t){return t.key===e});return this._columns[t]}},{key:`getColumnsWidth`,value:function(){var e=this;return this._cache(`columnsWidth`,function(){return e.recomputeColumnsWidth(e.getVisibleColumns())})}},{key:`getLeftFrozenColumnsWidth`,value:function(){var e=this;return this._cache(`leftFrozenColumnsWidth`,function(){return e.recomputeColumnsWidth(e.getLeftFrozenColumns())})}},{key:`getRightFrozenColumnsWidth`,value:function(){var e=this;return this._cache(`rightFrozenColumnsWidth`,function(){return e.recomputeColumnsWidth(e.getRightFrozenColumns())})}},{key:`recomputeColumnsWidth`,value:function(e){return e.reduce(function(e,t){return e+t.width},0)}},{key:`setColumnWidth`,value:function(e,t){var n=this.getColumn(e);n.width=t,this._cached={},this._columnStyles[n.key]=this.recomputeColumnStyle(n)}},{key:`getColumnStyle`,value:function(e){return this._columnStyles[e]}},{key:`getColumnStyles`,value:function(){return this._columnStyles}},{key:`recomputeColumnStyle`,value:function(e){var t=0,n=0;this._fixed||(t=typeof e.flexGrow==`number`?e.flexGrow:0,n=typeof e.flexShrink==`number`?e.flexShrink:1);var r=`${t} ${n} auto`,i=s({},e.style,{flex:r,msFlex:r,WebkitFlex:r,width:e.width,overflow:`hidden`});return!this._fixed&&e.maxWidth&&(i.maxWidth=e.maxWidth),!this._fixed&&e.minWidth&&(i.minWidth=e.minWidth),i}},{key:`recomputeColumnStyles`,value:function(){var e=this;return this._columns.reduce(function(t,n){return t[n.key]=e.recomputeColumnStyle(n),t},{})}}]),e}();e.default=c,c.PlaceholderKey=`__placeholder__`})),kt=t(n((t=>{var n=xe(),i=B();Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var a=i(G()),o=i(R()),c=i(K()),u=i(Y()),d=i(Ce()),f=i(q()),p=i(J()),m=i(Se()),h=i(X()),g=i(r()),_=i(l()),v=i(s()),y=i((I(),e(N))),b=i(vt()),x=i(yt()),S=i(bt()),C=i(xt()),w=i(St()),T=n(Ct()),E=i(wt()),D=i(Tt()),O=i(Et()),ee=i(Dt()),te=i(Ot()),k=_t();function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.props.estimatedRowHeight&&(this.table&&this.table.resetAfterRowIndex(e,t),this.leftTable&&this.leftTable.resetAfterRowIndex(e,t),this.rightTable&&this.rightTable.resetAfterRowIndex(e,t))}},{key:`resetRowHeightCache`,value:function(){this.props.estimatedRowHeight&&(this._resetIndex=null,this._rowHeightMapBuffer={},this._rowHeightMap={},this._mainRowHeightMap={},this._leftRowHeightMap={},this._rightRowHeightMap={})}},{key:`scrollToPosition`,value:function(e){this._scroll=e,this.table&&this.table.scrollToPosition(e),this.leftTable&&this.leftTable.scrollToTop(e.scrollTop),this.rightTable&&this.rightTable.scrollToTop(e.scrollTop)}},{key:`scrollToTop`,value:function(e){this._scroll.scrollTop=e,this.table&&this.table.scrollToPosition(this._scroll),this.leftTable&&this.leftTable.scrollToTop(e),this.rightTable&&this.rightTable.scrollToTop(e)}},{key:`scrollToLeft`,value:function(e){this._scroll.scrollLeft=e,this.table&&this.table.scrollToPosition(this._scroll)}},{key:`scrollToRow`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`auto`;this.table&&this.table.scrollToRow(e,t),this.leftTable&&this.leftTable.scrollToRow(e,t),this.rightTable&&this.rightTable.scrollToRow(e,t)}},{key:`setExpandedRowKeys`,value:function(e){this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:(0,k.cloneArray)(e)})}},{key:`renderExpandIcon`,value:function(e){var t=e.rowData,n=e.rowIndex,r=e.depth,i=e.onExpand,a=this.props,s=a.rowKey,c=a.expandColumnKey,l=a.expandIconProps;if(!c)return null;var u=n>=0&&(0,k.hasChildren)(t),d=n>=0&&this.getExpandedRowKeys().indexOf(t[s])>=0,f=(0,k.callOrReturn)(l,{rowData:t,rowIndex:n,depth:r,expandable:u,expanded:d}),p=this._getComponent(`ExpandIcon`);return g.default.createElement(p,(0,o.default)({depth:r,expandable:u,expanded:d},f,{onExpand:i}))}},{key:`renderRow`,value:function(e){var t,n=e.isScrolling,r=e.columns,i=e.rowData,a=e.rowIndex,o=e.style,s=this.props,l=s.rowClassName,u=s.rowRenderer,d=s.rowEventHandlers,f=s.expandColumnKey,p=s.estimatedRowHeight,m=(0,k.callOrReturn)(l,{columns:r,rowData:i,rowIndex:a}),h=(0,k.callOrReturn)(this.props.rowProps,{columns:r,rowData:i,rowIndex:a}),_=i[this.props.rowKey],y=this._depthMap[_]||0,b=(0,v.default)(this._prefixClass(`row`),m,(t={},(0,c.default)(t,this._prefixClass(`row--depth-${y}`),!!f&&a>=0),(0,c.default)(t,this._prefixClass(`row--expanded`),!!f&&this.getExpandedRowKeys().indexOf(_)>=0),(0,c.default)(t,this._prefixClass(`row--hovered`),!n&&_===this.state.hoveredRowKey),(0,c.default)(t,this._prefixClass(`row--frozen`),y===0&&a<0),(0,c.default)(t,this._prefixClass(`row--customized`),u),t)),x=this.columnManager.hasFrozenColumns(),C=A({},h,{role:`row`,key:`row-${_}`,isScrolling:n,className:b,style:o,columns:r,rowIndex:a,rowData:i,rowKey:_,expandColumnKey:f,depth:y,rowEventHandlers:d,rowRenderer:u,estimatedRowHeight:a>=0?p:void 0,getIsResetting:this._getIsResetting,cellRenderer:this.renderRowCell,expandIconRenderer:this.renderExpandIcon,onRowExpand:this._handleRowExpand,onRowHover:x?this._handleRowHover:null,onRowHeightChange:x?this._handleFrozenRowHeightChange:this._handleRowHeightChange});return g.default.createElement(S.default,C)}},{key:`renderRowCell`,value:function(e){var t,n=e.isScrolling,r=e.columns,i=e.column,s=e.columnIndex,l=e.rowData,u=e.rowIndex,d=e.expandIcon;if(i[te.default.PlaceholderKey])return g.default.createElement(`div`,{key:`row-${l[this.props.rowKey]}-cell-${i.key}-placeholder`,className:this._prefixClass(`row-cell-placeholder`),style:this.columnManager.getColumnStyle(i.key)});var f=i.className,p=i.dataKey,m=i.dataGetter,h=i.cellRenderer,_=this._getComponent(`TableCell`),y=m?m({columns:r,column:i,columnIndex:s,rowData:l,rowIndex:u}):(0,k.getValue)(l,p),b={isScrolling:n,cellData:y,columns:r,column:i,columnIndex:s,rowData:l,rowIndex:u,container:this},x=(0,k.renderElement)(h||g.default.createElement(_,{className:this._prefixClass(`row-cell-text`)}),b),S=(0,k.callOrReturn)(f,{cellData:y,columns:r,column:i,columnIndex:s,rowData:l,rowIndex:u}),C=(0,v.default)(this._prefixClass(`row-cell`),S,(t={},(0,c.default)(t,this._prefixClass(`row-cell--align-center`),i.align===T.Alignment.CENTER),(0,c.default)(t,this._prefixClass(`row-cell--align-right`),i.align===T.Alignment.RIGHT),t)),w=(0,k.callOrReturn)(this.props.cellProps,{columns:r,column:i,columnIndex:s,rowData:l,rowIndex:u})||{},E=w.tagName,D=(0,a.default)(w,[`tagName`]),O=E||`div`;return g.default.createElement(O,(0,o.default)({role:`gridcell`,key:`row-${l[this.props.rowKey]}-cell-${i.key}`},D,{className:C,style:this.columnManager.getColumnStyle(i.key)}),d,x)}},{key:`renderHeader`,value:function(e){var t,n=e.columns,r=e.headerIndex,i=e.style,a=this.props,o=a.headerClassName,s=a.headerRenderer,l=(0,k.callOrReturn)(o,{columns:n,headerIndex:r}),u=(0,k.callOrReturn)(this.props.headerProps,{columns:n,headerIndex:r}),d=(0,v.default)(this._prefixClass(`header-row`),l,(t={},(0,c.default)(t,this._prefixClass(`header-row--resizing`),!!this.state.resizingKey),(0,c.default)(t,this._prefixClass(`header-row--customized`),s),t)),f=A({},u,{role:`row`,key:`header-${r}`,className:d,style:i,columns:n,headerIndex:r,headerRenderer:s,cellRenderer:this.renderHeaderCell,expandColumnKey:this.props.expandColumnKey,expandIcon:this._getComponent(`ExpandIcon`)});return g.default.createElement(x.default,f)}},{key:`renderHeaderCell`,value:function(e){var t,n=e.columns,r=e.column,i=e.columnIndex,s=e.headerIndex,l=e.expandIcon;if(r[te.default.PlaceholderKey])return g.default.createElement(`div`,{key:`header-${s}-cell-${r.key}-placeholder`,className:this._prefixClass(`header-cell-placeholder`),style:this.columnManager.getColumnStyle(r.key)});var u=r.headerClassName,d=r.headerRenderer,f=this.props,p=f.sortBy,m=f.sortState,h=f.headerCellProps,_=this._getComponent(`TableHeaderCell`),y=this._getComponent(`SortIndicator`),b={columns:n,column:r,columnIndex:i,headerIndex:s,container:this},x=(0,k.renderElement)(d||g.default.createElement(_,{className:this._prefixClass(`header-cell-text`)}),b),S,C;if(m){var w=m[r.key];S=w===E.default.ASC||w===E.default.DESC,C=S?w:E.default.ASC}else S=r.key===p.key,C=S?p.order:E.default.ASC;var D=(0,k.callOrReturn)(u,{columns:n,column:r,columnIndex:i,headerIndex:s}),O=(0,v.default)(this._prefixClass(`header-cell`),D,(t={},(0,c.default)(t,this._prefixClass(`header-cell--align-center`),r.align===T.Alignment.CENTER),(0,c.default)(t,this._prefixClass(`header-cell--align-right`),r.align===T.Alignment.RIGHT),(0,c.default)(t,this._prefixClass(`header-cell--sortable`),r.sortable),(0,c.default)(t,this._prefixClass(`header-cell--sorting`),S),(0,c.default)(t,this._prefixClass(`header-cell--resizing`),r.key===this.state.resizingKey),t)),ne=(0,k.callOrReturn)(h,{columns:n,column:r,columnIndex:i,headerIndex:s})||{},A=ne.tagName,j=(0,a.default)(ne,[`tagName`]),M=A||`div`;return g.default.createElement(M,(0,o.default)({role:`gridcell`,key:`header-${s}-cell-${r.key}`,onClick:r.sortable?this._handleColumnSort:null},j,{className:O,style:this.columnManager.getColumnStyle(r.key),"data-key":r.key}),l,x,r.sortable&&g.default.createElement(y,{sorting:S,sortOrder:C,className:(0,v.default)(this._prefixClass(`sort-indicator`),(0,c.default)({},this._prefixClass(`sort-indicator--descending`),C===E.default.DESC))}),r.resizable&&g.default.createElement(ee.default,{className:this._prefixClass(`column-resizer`),column:r,onResizeStart:this._handleColumnResizeStart,onResizeStop:this._handleColumnResizeStop,onResize:this._handleColumnResize}))}},{key:`renderMainTable`,value:function(){var e=this.props,t=e.width,n=e.headerHeight,r=e.rowHeight,i=e.fixed,s=e.estimatedRowHeight,c=(0,a.default)(e,[`width`,`headerHeight`,`rowHeight`,`fixed`,`estimatedRowHeight`]),l=this._getTableHeight(),u=t-this._verticalScrollbarSize;if(i){var d=this.columnManager.getColumnsWidth();u=Math.max(Math.round(d),u)}return g.default.createElement(b.default,(0,o.default)({},c,this.state,{className:this._prefixClass(`table-main`),ref:this._setMainTableRef,data:this._data,columns:this.columnManager.getMainColumns(),width:t,height:l,headerHeight:n,rowHeight:r,estimatedRowHeight:s,getRowHeight:s?this._getRowHeight:void 0,headerWidth:u+(i?this._verticalScrollbarSize:0),bodyWidth:u,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleScroll,onRowsRendered:this._handleRowsRendered}))}},{key:`renderLeftTable`,value:function(){if(!this.columnManager.hasLeftFrozenColumns())return null;var e=this.props,t=e.width,n=e.headerHeight,r=e.rowHeight,i=e.estimatedRowHeight,s=(0,a.default)(e,[`width`,`headerHeight`,`rowHeight`,`estimatedRowHeight`]),c=this._getFrozenContainerHeight(),l=this._verticalScrollbarSize||20,u=this.columnManager.getLeftFrozenColumnsWidth();return g.default.createElement(b.default,(0,o.default)({},s,this.state,{containerStyle:this._getLeftTableContainerStyle(u,t,c),className:this._prefixClass(`table-frozen-left`),ref:this._setLeftTableRef,data:this._data,columns:this.columnManager.getLeftFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:u+l,height:c,headerHeight:n,rowHeight:r,estimatedRowHeight:i,getRowHeight:i?this._getRowHeight:void 0,headerWidth:u+l,bodyWidth:u+l,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:k.noop}))}},{key:`renderRightTable`,value:function(){if(!this.columnManager.hasRightFrozenColumns())return null;var e=this.props,t=e.width,n=e.headerHeight,r=e.rowHeight,i=e.estimatedRowHeight,s=(0,a.default)(e,[`width`,`headerHeight`,`rowHeight`,`estimatedRowHeight`]),c=this._getFrozenContainerHeight(),l=this.columnManager.getRightFrozenColumnsWidth(),u=this._verticalScrollbarSize;return g.default.createElement(b.default,(0,o.default)({},s,this.state,{containerStyle:this._getLeftTableContainerStyle(l+u,t,c),className:this._prefixClass(`table-frozen-right`),ref:this._setRightTableRef,data:this._data,columns:this.columnManager.getRightFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:l+u,height:c,headerHeight:n,rowHeight:r,estimatedRowHeight:i,getRowHeight:i?this._getRowHeight:void 0,headerWidth:l+u,bodyWidth:l,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:k.noop}))}},{key:`renderResizingLine`,value:function(){var e=this.props,t=e.width,n=e.fixed,r=this.state.resizingKey;if(!n||!r)return null;var i=this.columnManager.getMainColumns(),a=i.findIndex(function(e){return e.key===r}),o=i[a],s=o.width,c=o.frozen,l=this.columnManager.recomputeColumnsWidth(i.slice(0,a))+s;if(!c)l-=this._scroll.scrollLeft;else if(c===T.FrozenDirection.RIGHT){var u=this.columnManager.recomputeColumnsWidth(i.slice(a+1));l=u+s>t-this._verticalScrollbarSize?s:t-this._verticalScrollbarSize-u}var d={left:l,height:this._getTableHeight()-this._horizontalScrollbarSize};return g.default.createElement(`div`,{className:this._prefixClass(`resizing-line`),style:d})}},{key:`renderFooter`,value:function(){var e=this.props,t=e.footerHeight,n=e.footerRenderer;return t===0?null:g.default.createElement(`div`,{className:this._prefixClass(`footer`),style:{height:t}},(0,k.renderElement)(n))}},{key:`renderEmptyLayer`,value:function(){var e=this.props,t=e.data,n=e.frozenData,r=e.footerHeight,i=e.emptyRenderer;if(t&&t.length||n&&n.length)return null;var a=this._getHeaderHeight();return g.default.createElement(`div`,{className:this._prefixClass(`empty-layer`),style:{top:a,bottom:r}},(0,k.renderElement)(i))}},{key:`renderOverlay`,value:function(){var e=this.props.overlayRenderer;return g.default.createElement(`div`,{className:this._prefixClass(`overlay`)},!!e&&(0,k.renderElement)(e))}},{key:`render`,value:function(){var e,t=this.props,n=t.columns,r=t.children,i=t.width,a=t.fixed,o=t.data,s=t.frozenData,l=t.expandColumnKey,u=t.disabled,d=t.className,f=t.style,p=t.footerHeight,m=t.classPrefix,h=t.estimatedRowHeight;this._resetColumnManager(j(n,r),a);var _=l?this._flattenOnKeys(o,this.getExpandedRowKeys(),this.props.rowKey):o;this._data!==_&&(this.resetAfterRowIndex(0,!1),this._data=_),this._calcScrollbarSizes(),this._totalRowsHeight=this.getTotalRowsHeight();var y=A({},f,{width:i,height:this._getTableHeight()+p,position:`relative`}),b=(0,v.default)(m,d,(e={},(0,c.default)(e,`${m}--fixed`,a),(0,c.default)(e,`${m}--expandable`,!!l),(0,c.default)(e,`${m}--empty`,o.length===0),(0,c.default)(e,`${m}--has-frozen-rows`,s.length>0),(0,c.default)(e,`${m}--has-frozen-columns`,this.columnManager.hasFrozenColumns()),(0,c.default)(e,`${m}--disabled`,u),(0,c.default)(e,`${m}--dynamic`,!!h),e));return g.default.createElement(`div`,{ref:this._setContainerRef,className:b,style:y},this.renderFooter(),this.renderMainTable(),this.renderLeftTable(),this.renderRightTable(),this.renderResizingLine(),this.renderEmptyLayer(),this.renderOverlay())}},{key:`componentDidMount`,value:function(){var e=this.props.getScrollbarSize();e>0&&this.setState({scrollbarSize:e})}},{key:`componentDidUpdate`,value:function(e,t){var n=this.props,r=n.data,i=n.height,a=n.maxHeight,o=n.estimatedRowHeight;r!==e.data&&(this._lastScannedRowIndex=-1,this._hasDataChangedSinceEndReached=!0),(a!==e.maxHeight||i!==e.height)&&this._maybeCallOnEndReached(),this._maybeScrollbarPresenceChange(),o&&this.getTotalRowsHeight()!==this._totalRowsHeight&&this.forceUpdate()}},{key:`_prefixClass`,value:function(e){return`${this.props.classPrefix}__${e}`}},{key:`_setContainerRef`,value:function(e){this.tableNode=e}},{key:`_setMainTableRef`,value:function(e){this.table=e}},{key:`_setLeftTableRef`,value:function(e){this.leftTable=e}},{key:`_setRightTableRef`,value:function(e){this.rightTable=e}},{key:`_getComponent`,value:function(e){return this.props.components&&this.props.components[e]?this.props.components[e]:P[e]}},{key:`_getRowHeight`,value:function(e){var t=this.props,n=t.estimatedRowHeight,r=t.rowKey;return this._rowHeightMap[this._data[e][r]]||(0,k.callOrReturn)(n,{rowData:this._data[e],rowIndex:e})}},{key:`_getIsResetting`,value:function(){return this._isResetting}},{key:`_getHeaderHeight`,value:function(){var e=this.props.headerHeight;return Array.isArray(e)?e.reduce(function(e,t){return e+t},0):e}},{key:`_getFrozenRowsHeight`,value:function(){var e=this.props,t=e.frozenData,n=e.rowHeight;return t.length*n}},{key:`_getTableHeight`,value:function(){var e=this.props,t=e.height,n=e.maxHeight,r=e.footerHeight,i=t-r;if(n>0){var a=this._getFrozenRowsHeight(),o=this.getTotalRowsHeight(),s=this._getHeaderHeight()+a+o+this._horizontalScrollbarSize;i=Math.min(s,n-r)}return i}},{key:`_getBodyHeight`,value:function(){return this._getTableHeight()-this._getHeaderHeight()-this._getFrozenRowsHeight()}},{key:`_getFrozenContainerHeight`,value:function(){var e=this.props.maxHeight,t=this._getTableHeight()-(this._data.length>0?this._horizontalScrollbarSize:0);if(e>0)return t;var n=this.getTotalRowsHeight()+this._getHeaderHeight()+this._getFrozenRowsHeight();return Math.min(t,n)}},{key:`_calcScrollbarSizes`,value:function(){var e=this.props,t=e.fixed,n=e.width,r=this.state.scrollbarSize,i=this.getTotalRowsHeight(),a=this.getTotalColumnsWidth(),o=this._horizontalScrollbarSize,s=this._verticalScrollbarSize;r===0?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0):!t||a<=n-r?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=i>this._getBodyHeight()?r:0):a>n?(this._horizontalScrollbarSize=r,this._verticalScrollbarSize=i>this._getBodyHeight()-this._horizontalScrollbarSize?r:0):(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0,i>this._getBodyHeight()&&(this._horizontalScrollbarSize=r,this._verticalScrollbarSize=r)),(o!==this._horizontalScrollbarSize||s!==this._verticalScrollbarSize)&&(this._scrollbarPresenceChanged=!0)}},{key:`_maybeScrollbarPresenceChange`,value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({size:this.state.scrollbarSize,horizontal:this._horizontalScrollbarSize>0,vertical:this._verticalScrollbarSize>0})}}},{key:`_maybeCallOnEndReached`,value:function(){var e=this.props,t=e.onEndReached,n=e.onEndReachedThreshold,r=this._scroll.scrollTop,i=this.getTotalRowsHeight(),a=this._getBodyHeight();if(!(!t||!a||!i)){var o=i-r-a+this._horizontalScrollbarSize;this._lastScannedRowIndex>=0&&o<=n&&(this._hasDataChangedSinceEndReached||i!==this._scrollHeight)&&(this._hasDataChangedSinceEndReached=!1,this._scrollHeight=i,t({distanceFromEnd:o}))}}},{key:`_handleScroll`,value:function(e){var t=this._scroll.scrollTop;this.scrollToPosition(e),this.props.onScroll(e),e.scrollTop>t&&this._maybeCallOnEndReached()}},{key:`_handleVerticalScroll`,value:function(e){var t=e.scrollTop,n=this._scroll.scrollTop;t!==n&&this.scrollToTop(t),t>n&&this._maybeCallOnEndReached()}},{key:`_handleRowsRendered`,value:function(e){this.props.onRowsRendered(e),e.overscanStopIndex>this._lastScannedRowIndex&&(this._lastScannedRowIndex=e.overscanStopIndex,this._maybeCallOnEndReached())}},{key:`_handleRowHover`,value:function(e){var t=e.hovered,n=e.rowKey;this.setState({hoveredRowKey:t?n:null})}},{key:`_handleRowExpand`,value:function(e){var t=e.expanded,n=e.rowData,r=e.rowIndex,i=e.rowKey,a=(0,k.cloneArray)(this.getExpandedRowKeys());if(t)!a.indexOf(i)>=0&&a.push(i);else{var o=a.indexOf(i);o>-1&&a.splice(o,1)}this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:a}),this.props.onRowExpand({expanded:t,rowData:n,rowIndex:r,rowKey:i}),this.props.onExpandedRowsChange(a)}},{key:`_handleColumnResize`,value:function(e,t){var n=e.key;this.columnManager.setColumnWidth(n,t),this.setState({resizingWidth:t});var r=this.columnManager.getColumn(n);this.props.onColumnResize({column:r,width:t})}},{key:`_handleColumnResizeStart`,value:function(e){var t=e.key;this.setState({resizingKey:t})}},{key:`_handleColumnResizeStop`,value:function(){var e=this.state,t=e.resizingKey,n=e.resizingWidth;if(this.setState({resizingKey:null,resizingWidth:0}),!(!t||!n)){var r=this.columnManager.getColumn(t);this.props.onColumnResizeEnd({column:r,width:n})}}},{key:`_handleColumnSort`,value:function(e){var t=e.currentTarget.dataset.key,n=this.props,r=n.sortBy,i=n.sortState,a=n.onColumnSort,o=E.default.ASC;i?o=i[t]===E.default.ASC?E.default.DESC:E.default.ASC:t===r.key&&(o=r.order===E.default.ASC?E.default.DESC:E.default.ASC),a({column:this.columnManager.getColumn(t),key:t,order:o})}},{key:`_handleFrozenRowHeightChange`,value:function(e,t,n,r){r?r===T.FrozenDirection.RIGHT?this._rightRowHeightMap[e]=t:this._leftRowHeightMap[e]=t:this._mainRowHeightMap[e]=t;var i=Math.max(this._mainRowHeightMap[e]||0,this._leftRowHeightMap[e]||0,this._rightRowHeightMap[e]||0);this._rowHeightMap[e]!==i&&this._handleRowHeightChange(e,i,n)}},{key:`_handleRowHeightChange`,value:function(e,t,n){(this._resetIndex===null||this._resetIndex>n)&&(this._resetIndex=n),this._rowHeightMapBuffer[e]=t,this._updateRowHeights()}}]),t}(g.default.PureComponent);ie.Column=T.default,ie.PlaceholderKey=te.default.PlaceholderKey,ie.defaultProps={classPrefix:`BaseTable`,rowKey:`id`,data:[],frozenData:[],fixed:!1,headerHeight:50,rowHeight:50,footerHeight:0,defaultExpandedRowKeys:[],sortBy:{},useIsScrolling:!1,overscanRowCount:1,onEndReachedThreshold:500,getScrollbarSize:k.getScrollbarSize,ignoreFunctionInColumnCompare:!0,onScroll:k.noop,onRowsRendered:k.noop,onScrollbarPresenceChange:k.noop,onRowExpand:k.noop,onExpandedRowsChange:k.noop,onColumnSort:k.noop,onColumnResize:k.noop,onColumnResizeEnd:k.noop},ie.propTypes={classPrefix:_.default.string,className:_.default.string,style:_.default.object,children:_.default.node,columns:_.default.arrayOf(_.default.shape(T.default.propTypes)),data:_.default.array.isRequired,frozenData:_.default.array,rowKey:_.default.oneOfType([_.default.string,_.default.number]).isRequired,width:_.default.number.isRequired,height:_.default.number,maxHeight:_.default.number,rowHeight:_.default.number,estimatedRowHeight:_.default.oneOfType([_.default.number,_.default.func]),headerHeight:_.default.oneOfType([_.default.number,_.default.arrayOf(_.default.number)]).isRequired,footerHeight:_.default.number,fixed:_.default.bool,disabled:_.default.bool,overlayRenderer:_.default.oneOfType([_.default.func,_.default.element]),emptyRenderer:_.default.oneOfType([_.default.func,_.default.element]),footerRenderer:_.default.oneOfType([_.default.func,_.default.element]),headerRenderer:_.default.oneOfType([_.default.func,_.default.element]),rowRenderer:_.default.oneOfType([_.default.func,_.default.element]),headerClassName:_.default.oneOfType([_.default.string,_.default.func]),rowClassName:_.default.oneOfType([_.default.string,_.default.func]),headerProps:_.default.oneOfType([_.default.object,_.default.func]),headerCellProps:_.default.oneOfType([_.default.object,_.default.func]),rowProps:_.default.oneOfType([_.default.object,_.default.func]),cellProps:_.default.oneOfType([_.default.object,_.default.func]),expandIconProps:_.default.oneOfType([_.default.object,_.default.func]),expandColumnKey:_.default.string,defaultExpandedRowKeys:_.default.arrayOf(_.default.oneOfType([_.default.string,_.default.number])),expandedRowKeys:_.default.arrayOf(_.default.oneOfType([_.default.string,_.default.number])),onRowExpand:_.default.func,onExpandedRowsChange:_.default.func,sortBy:_.default.shape({key:_.default.string,order:_.default.oneOf([E.default.ASC,E.default.DESC])}),sortState:_.default.object,onColumnSort:_.default.func,onColumnResize:_.default.func,onColumnResizeEnd:_.default.func,useIsScrolling:_.default.bool,overscanRowCount:_.default.number,getScrollbarSize:_.default.func,onScroll:_.default.func,onEndReached:_.default.func,onEndReachedThreshold:_.default.number,onRowsRendered:_.default.func,onScrollbarPresenceChange:_.default.func,rowEventHandlers:_.default.object,ignoreFunctionInColumnCompare:_.default.bool,components:_.default.shape({TableCell:_.default.elementType,TableHeaderCell:_.default.elementType,ExpandIcon:_.default.elementType,SortIndicator:_.default.elementType})},t.default=ie}))()),At=pe(({children:e})=>e),jt=V(({children:e})=>e),Mt=he(({children:e})=>e),Nt=({selectedIndicator:e,handleSelectedIndicator:t,report:n,handleSort:r,indicators:i,loading:a})=>{let[o,s]=(0,Z.useState)([]),[c,l]=(0,Z.useState)([]);(0,Z.useEffect)(()=>{o&&l(Te(n,Ke,We,i))},[o]),(0,Z.useEffect)(()=>{n.sections&&s(n.sections)},[n]);let u=({key:e,index:t,children:n,...r})=>n.length===c.length?(0,$.jsx)(`div`,{...r,children:n}):(0,$.jsx)(jt,{index:t,children:(0,$.jsxs)(`div`,{...r,children:[(0,$.jsx)(Mt,{children:(0,$.jsx)(`div`,{children:(0,$.jsx)(Qe,{})})}),n]})},e);function d(e){let[t,n]=(0,Z.useState)(e.data),r=(0,Z.useRef)(),i=()=>r.current.getDOMNode().querySelector(`.BaseTable__table-frozen-left .BaseTable__body`),a=()=>r.current.getDOMNode().querySelector(`.BaseTable__table-frozen-left`),o=t=>({...P(e.rowProps),tagName:u,index:t.rowIndex});return(0,$.jsx)(At,{useDragHandle:!0,getContainer:i,getHelperContainer:a,onSortEnd:({oldIndex:r,newIndex:i})=>{let a=t.map(e=>({...e})),[o]=a.splice(r,1);a.splice(i,0,o),n(a),e.handleSort(a)},children:(0,$.jsx)(kt.default,{...e,ref:r,data:t,fixed:!0,rowProps:o})})}let f=()=>10,p=({columns:t,rowData:n,rowIndex:r})=>{let i=``;return e!==null&&e===n.key&&(i+=` selected`),r%2==0&&(i+=` even-row`),i},m={onClick:({rowData:e,rowIndex:n,rowKey:r,event:i})=>{t(r)}},h=Z.useCallback(()=>a?(0,$.jsx)(j,{style:{backgroundColor:`rgba(255,255,255, 0.5)`}}):null,[a]);return(0,$.jsx)(`div`,{className:`reports-editor-table`,children:(0,$.jsx)(re,{children:({width:e,height:t})=>(0,$.jsx)(d,{fixed:!0,rowKey:`key`,columns:c,headerHeight:50,headerClassName:`indicator-table-header`,rowHeight:25,width:e,height:t,data:o,getScrollbarSize:f,rowClassName:p,overlayRenderer:h,rowEventHandlers:m,handleSort:r,style:{fontSize:`11px`}})})})};Nt.propTypes={selectedIndicator:Q.default.number,handleSelectedIndicator:Q.default.func,report:Q.default.object,handleSort:Q.default.func};var Pt=({indicator:e})=>(0,$.jsx)(`div`,{style:{overflow:`scroll`},children:Object.keys(e).filter(e=>e.substring(0,11)===`description`).map((t,n)=>n===0||e[`indicateur_entete_etendue_${n+1}`]?(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Description série ${n+1}`}),(0,$.jsx)(U.Item,{name:n===0?`description`:`description_${n+1}`,children:(0,$.jsx)(f,{})})]})},n):null)});Pt.propTypes={indicator:Q.default.object};var{Option:Ft}=_,It=({form:e,specific:t=!1})=>{let n=Be().data??[],[r,i]=(0,Z.useState)(!0),a=n?.map((e,t)=>(0,$.jsx)(Ft,{value:e.name,variables:e.variables,children:e.label},t));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Rapport / Collection`}),(0,$.jsx)(U.Item,{name:t===!0?`specific_viewlink`:`viewlink`,children:(0,$.jsx)(_,{onChange:(n,r)=>{i(!1),t===!0?e.setFieldsValue({specific_viewlink_param:r.variables}):e.setFieldsValue({viewlink_param:r.variables})},children:a})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Vue justificative`}),(0,$.jsx)(U.Item,{name:t===!0?`specific_viewlink`:`viewlink`,children:(0,$.jsx)(f,{disabled:r})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Libellé`}),(0,$.jsx)(U.Item,{name:t===!0?`specific_viewlink_label`:`viewlink_label`,children:(0,$.jsx)(f,{disabled:r})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Paramètres`}),(0,$.jsx)(U.Item,{name:t===!0?`specific_viewlink_param`:`viewlink_param`,children:(0,$.jsx)(f.TextArea,{disabled:r})})]})})]})};It.propTypes={form:Q.default.object,specific:Q.default.bool};var Lt=({indicator:e,form:t,handleIndicatorModified:n,isActive:r,isEssentiel:i})=>{let[a,o]=(0,Z.useState)(e.color),[s,c]=(0,Z.useState)(e.background_color);(0,Z.useEffect)(()=>{Object.keys(e).length&&(o(e.color),c(e.background_color))},[e]);let l=(e,r)=>{switch(t.setFieldsValue({[r]:e.hex}),n(!0),r){case`color`:o(e.hex);break;case`background_color`:c(e.hex);break;default:break}};return(0,$.jsx)(fe,{defaultActiveKey:[`0`],items:[{label:`Général`,key:`0`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Bordure`}),(0,$.jsx)(U.Item,{name:`border_thickness`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Masquer indicateur:`}),(0,$.jsx)(U.Item,{name:`rubrique_is_hide`,children:(0,$.jsx)(_,{options:[{value:`NEVER`,label:`Jamais`},{value:`ALWAYS`,label:`Toujours`},...i?[{value:`*SELF`,label:`Si vide`}]:[]]})})]})})]})},{label:`En-tête`,key:`1`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Taille caractères`}),(0,$.jsx)(U.Item,{name:`font_size`,children:(0,$.jsx)(W,{min:10,max:18})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Gras`}),(0,$.jsx)(U.Item,{name:`font_weight`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]})})]})},{label:`Colonne`,key:`2`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Couleur du texte`}),(0,$.jsx)(Ye,{triangle:`hide`,color:a,onChange:e=>l(e,`color`),style:{right:470,bottom:400,position:`absolute`},disabled:r}),(0,$.jsx)(U.Item,{name:`color`,style:{display:`none`},children:(0,$.jsx)(f,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Couleur du fond`}),(0,$.jsx)(Ye,{triangle:`hide`,color:s,onChange:e=>l(e,`background_color`),style:{right:470,bottom:340,position:`absolute`},disabled:r}),(0,$.jsx)(U.Item,{name:`background_color`,style:{display:`none`},children:(0,$.jsx)(f,{})})]})})]})}]})};Lt.propTypes={indicator:Q.default.object,form:Q.default.object,handleIndicatorModified:Q.default.func,isActive:Q.default.bool,isEssentiel:Q.default.bool};var Rt=({indicator:e,handleShowModalFromForm:t,associatedIndicators:n})=>{let[r,i]=(0,Z.useState)({});return(0,Z.useEffect)(()=>{let t={},n=!1,r=[`entete_etendue`,`description`,`output_format`,`picto_enabled`,`positif_is_good`];for(let i=2;i<=9;i++){let a=`indicateur_associe_${i}_id`,o=e[a]&&e[a]!==`0`;if(o||!n&&!o){let s={key:i};r.forEach(t=>{let n=`${t}_${i}`;e[n]!==void 0&&(s[n]=e[n])}),o&&(s[a]=e[a]),t[i]=s,o||(n=!0)}}i(t)},[e]),(0,$.jsx)(fe,{items:Object.values(r).map(e=>(n&&(e.associatedIndicator=n.find(t=>t?.associatedIndicatorIndex===e?.key)),{label:`Série ${e.key}`,key:e.key,forceRender:!0,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Indicateur`}),(0,$.jsx)(U.Item,{style:{width:`240px`,display:`block`,textAlign:`center`,color:`rgba(0, 0, 0, 0.25)`,backgroundColor:`#f5f5f5`,borderColor:`#eeeeee`},name:`indicateur_associe_${e.key}_id`,children:(0,$.jsx)(`span`,{children:e?.associatedIndicator?.code})}),(0,$.jsx)(h,{style:{marginLeft:8,marginBottom:5},type:`secondary`,icon:(0,$.jsx)(v,{}),onClick:()=>t(e.key)}),(0,$.jsx)(qe,{copiedText:e?.associatedIndicator?.code,type:`secondary`,style:{marginLeft:8,marginBottom:5}},e?.associatedIndicator?.code)]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Nom abrégé`}),(0,$.jsx)(U.Item,{name:`entete_etendue_${e.key}`,extra:e?.associatedIndicator?.entete,children:(0,$.jsx)(f,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Description`}),(0,$.jsx)(U.Item,{name:`description_${e.key}`,extra:e?.associatedIndicator?.description,children:(0,$.jsx)(f.TextArea,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Format`}),(0,$.jsx)(U.Item,{name:`output_format_${e.key}`,extra:e?.associatedIndicator?.output_format,children:(0,$.jsx)(f,{})})]})}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Picto tendance`}),(0,$.jsx)(U.Item,{name:`picto_enabled_${e.key}`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Tendance positive = OK`}),(0,$.jsx)(U.Item,{name:`positif_is_good_${e.key}`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]})]})]})}))})};Rt.propTypes={indicator:Q.default.object,handleShowModalFromForm:Q.default.func,associatedIndicators:Q.default.array};var{Option:zt}=_,Bt=({report:e,indicator:t})=>{let n=e?.sections?.filter(e=>e.indicateur_output_format===t.indicateur_output_format&&e.indicateur_id!==t.indicateur_id);n?.length>0&&n.unshift({indicateur_id:0,indicateur_entete_etendue:` `});let r=n.map(e=>(0,$.jsx)(zt,{value:e.indicateur_id,children:e.indicateur_entete_etendue},e.indicateur_id));return(0,$.jsx)($.Fragment,{children:n?.length>0?(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Comparer avec l'indicateur :`}),(0,$.jsx)(U.Item,{name:`compared_indicator_id`,children:(0,$.jsx)(_,{style:{width:250},children:r})})]})}):(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsx)(`div`,{className:`form-item`,children:(0,$.jsx)(`span`,{className:`first-label`,children:`Aucun indicateur comparable avec l'indicateur séléctionné`})})})})};Bt.propTypes={report:Q.default.object,indicator:Q.default.object};var Vt=({indicator:e,showEditor:t,isEssentiel:n,handleUpdateIndicator:r,handleCancelSection:i,handleShowModalFromForm:a,indicatorModified:o,handleIndicatorModified:s,handleDeleteSection:c,report:l,setFormIndicator:u,handleResetIndicatorSection:d,associatedIndicators:m})=>{let{softCode:_}=ie(),b=se(),x=(ke(_).data??Ie).comboCondition,S=b.data?.session,[w]=U.useForm();(0,Z.useEffect)(()=>{w.setFieldsValue(e),w.setFieldsValue({indicator_conditions:ne(e)})},[e]);let T=()=>{let t={...e,...w.getFieldsValue()};for(let e in t)t[e]===!0?e===`font_weight`?t[e]=`bold`:t[e]=`1`:t[e]===!1?t[e]=`0`:t[e]===void 0&&(t[e]=``);delete t.indicator_conditions,s(!1),r(t),E({type:`success`,message:`Indicateur`,description:`L'indicateur est ajouté au rapport`})},O=(e,t)=>{s(!0)},ee=(e,t)=>{e?.length>4&&e.pop();for(let t=1;t<=4;t++)e[t-1]?w.setFieldsValue({[`indicateur_condition_id_${t}`]:e[t-1]}):w.setFieldsValue({[`indicateur_condition_id_${t}`]:``})},te=e=>{D(e,`Indicateur`,`Les champs du formulaires sont incomplets`)},k=()=>{d(),s(!1)};function ne(e){let t=[];for(let n=1;n<=4;n++){let r=e[`indicateur_condition_id_${n}`];r&&r!==`0`&&t.push(r)}return t}let A=(t=!1)=>{let n={...e},r=n.field_tag?n.field_tag:n?.code+n.key*9;t&&(r=n?.code+y(1,1e4)),new Set(l?.sections.filter(e=>e.field_tag!==``).map(e=>e.field_tag)).has(r)&&A(!0),u({...e,field_tag:r}),s(!0)},j=ye(l.is_cti===`1`,S),M=()=>{let e=[];for(let t=1;t<=4;t++)e.push((0,$.jsx)(U.Item,{name:`indicateur_condition_id_${t}`,children:(0,$.jsx)(f,{})},t));return e},N=[{label:`Présentation`,key:`1`,children:(0,$.jsx)(Lt,{indicator:e,form:w,handleIndicatorModified:s,isActive:j,isEssentiel:n})},...n?[{label:`Description`,key:`2`,className:`scrollable-tab`,children:(0,$.jsx)(Pt,{indicator:e})},{label:`Justificatif`,key:`3`,className:`scrollable-tab`,children:(0,$.jsx)(It,{form:w})}]:[],...l.type_rapport===`VUEPARAM`?[{label:`Comparaison`,key:`5`,className:`scrollable-tab`,children:(0,$.jsx)(Bt,{form:w,report:l,indicator:e})}]:[]],P=[{label:`Indicateur`,key:`1`,className:`scrollable-tab`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Code`}),(0,$.jsx)(U.Item,{name:`code`,children:(0,$.jsx)(f,{style:{textAlign:`center`},disabled:!0})}),(0,$.jsx)(h,{style:{marginLeft:8,marginBottom:5},type:`secondary`,icon:(0,$.jsx)(v,{}),onClick:()=>a()}),(0,$.jsx)(qe,{copiedText:e.code,type:`secondary`,style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsxs)(`span`,{className:`first-label`,children:[`Nom`,(0,$.jsx)(L,{title:`Nom de l'indicateur au sein du rapport`,children:(0,$.jsx)(Je,{style:{marginLeft:6,marginBottom:-1,color:p.lightBlue}})})]}),(0,$.jsx)(U.Item,{name:`entete_etendue`,extra:e.indicateur_texte,children:(0,$.jsx)(f,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsxs)(`span`,{className:`first-label`,children:[`Nom abrégé`,(0,$.jsx)(L,{title:`Nom de l'entéte de la colonne qui apparait dans le rapport`,children:(0,$.jsx)(Je,{style:{marginLeft:6,marginBottom:-1,color:p.lightBlue}})})]}),(0,$.jsx)(U.Item,{name:`entete`,extra:e.indicateur_entete,children:(0,$.jsx)(f.TextArea,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Description`}),(0,$.jsx)(U.Item,{name:`description`,extra:e.indicateur_descritption,children:(0,$.jsx)(f.TextArea,{})})]})}),e.indicateur_id!==`999`&&(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsxs)(`span`,{className:`first-label`,children:[`Etiquette`,(0,$.jsx)(L,{title:`Identifiant unique de l'indicateur au sein du rapport qui sera utilisé dans le calcul entre indicateurs`,children:(0,$.jsx)(Je,{style:{marginLeft:6,marginBottom:-1,color:p.lightBlue}})})]}),(0,$.jsx)(U.Item,{name:`field_tag`,rules:[{validator(t,n){return new Promise((t,r)=>{new Set(l?.sections.filter(t=>t.field_tag!==``&&t.key!==e.key).map(e=>e.field_tag)).has(n)?r(`L'étiquette est déja assigné à un indicateur du rapport`):t()})}}],children:(0,$.jsx)(f,{})}),e.field_tag===``&&(0,$.jsx)(L,{title:`test`,children:(0,$.jsx)(h,{onClick:()=>A(!1),children:(0,$.jsx)(oe,{})})}),e.field_tag!==``&&(0,$.jsx)(qe,{copiedText:`[`+e.field_tag+`]`,type:`secondary`,style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Format`}),(0,$.jsx)(U.Item,{name:`output_format`,extra:e.indicateur_output_format,children:(0,$.jsx)(f,{})})]})}),e.code===`CTI_RAPPORTCALC`&&(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Formule`}),(0,$.jsx)(U.Item,{shouldUpdate:!0,children:e=>(0,$.jsx)(U.Item,{name:`calc_formula`,children:(0,$.jsx)(f.TextArea,{})})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Option`}),(0,$.jsx)(U.Item,{name:`option`,children:(0,$.jsx)(f,{})})]})}),n&&(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Picto Tendance`}),(0,$.jsx)(U.Item,{name:`picto_enabled`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Tendance positive = OK`}),(0,$.jsx)(U.Item,{name:`positif_is_good`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]})]})]})},...e.total_function===`*CALC`?[]:[{label:`Condition`,key:`3`,className:`scrollable-tab`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Ne pas prendre en compte les conditions du rapport`}),(0,$.jsx)(U.Item,{name:`erase_rapport_indicateur_condition`,valuePropName:`checked`,children:(0,$.jsx)(H,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Conditions`}),(0,$.jsx)(U.Item,{name:`indicator_conditions`,children:(0,$.jsx)(le,{showSearch:!0,style:{width:`300px`},multiple:!0,treeData:x,onChange:ee,treeNodeFilterProp:`label`})}),(0,$.jsx)(`div`,{style:{display:`none`},children:M()})]})})]})}],...n?[{label:`Séries`,key:`2`,className:`scrollable-tab`,children:(0,$.jsx)(Rt,{indicator:e,handleShowModalFromForm:a,associatedIndicators:m})}]:[]];return(0,$.jsx)(`div`,{className:`editor-indicator-editor`,style:{display:t?`flex`:`none`},children:(0,$.jsxs)(U,{form:w,name:`indicator`,onValuesChange:O,className:`form__report-indicator`,onFinish:T,onFinishFailed:te,disabled:j,children:[(0,$.jsxs)(`div`,{className:`editor-indicator-header `,children:[(0,$.jsx)(C,{title:`Supprimer cet indicateur du rapport ?`,okText:`Supprimer`,okButtonProps:{danger:!0},cancelText:`Annuler`,onConfirm:c,children:(0,$.jsx)(h,{danger:!0,icon:(0,$.jsx)(ue,{}),children:`Supprimer`})}),(0,$.jsx)(Fe,{onConfirm:k,modified:o,disabled:!o}),(0,$.jsx)(h,{type:`primary`,htmlType:`submit`,icon:(0,$.jsx)(g,{}),disabled:!o,children:`Enregistrer`}),(0,$.jsx)(ze,{onConfirm:i,modified:o})]}),(0,$.jsxs)(`div`,{style:{display:`flex`,minHeight:0},children:[(0,$.jsx)(`div`,{className:`indicator-tab-column`,children:(0,$.jsx)(fe,{items:P})}),(0,$.jsx)(`div`,{className:`indicator-tab-column`,style:{flex:3},children:(0,$.jsx)(fe,{items:N})})]})]})})};Vt.propTypes={indicator:Q.default.object,showEditor:Q.default.bool,isEssentiel:Q.default.bool,handleUpdateIndicator:Q.default.func,handleShowModalFromForm:Q.default.func,indicatorModified:Q.default.bool,handleIndicatorModified:Q.default.func,handleDeleteSection:Q.default.func,handleCancelSection:Q.default.func,report:Q.default.object,setFormIndicator:Q.default.func,handleResetIndicatorSection:Q.default.func,associatedIndicators:Q.default.array};var Ht=({selectedReportsType:e,selectedReport:t,label:n,softCode:r})=>{let i=!!Ne().data,a=ot();return(0,$.jsx)(L,{title:n,children:(0,$.jsxs)(h,{onClick:()=>{if(r!==`iCTI_pmsipsy`){let e=`-m ${r.substring(5)}`;t&&(e+=` -r ${t.code}`),a.mutate(e)}},disabled:i||a.isPending||e!==`ESSENTIEL`,children:[(0,$.jsx)(oe,{}),i?n+` (en cours)`:n]})})};Ht.propTypes={selectedReportsType:Q.default.string,selectedReport:Q.default.object,label:Q.default.string,softCode:Q.default.string};var{Option:Ut}=_,Wt=({selectedRow:e,models:t,handleCloseEditor:n,newReport:r,nameReportsType:i})=>{let{softCode:a}=ie(),o=se(),s=ke(a),c=Le(a,e?.oid),l=Ge(a),u=tt(),d=nt(),p=rt(),m=o.data?.session,v=s.data??Ie,y=c.data??De,b=v.comboCondition,x=v.comboGroup,w=l.data??Ue,[E]=U.useForm(),[D,O]=(0,Z.useState)(!1),[k,A]=(0,Z.useState)(),[j,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)(null),[F,I]=(0,Z.useState)({}),[re,ae]=(0,Z.useState)({}),[oe,R]=(0,Z.useState)(!1),[z,ce]=(0,Z.useState)({oneOnly:!1}),[B,V]=(0,Z.useState)(!1),[de,pe]=(0,Z.useState)(!1),[he,W]=(0,Z.useState)(`100%`),[ge,G]=(0,Z.useState)([]);(0,Z.useEffect)(()=>{if(N!==null){let e=F.sections.find(e=>e.key===N);G(()=>We(e,w)),ae(K(e))}},[N,F]),(0,Z.useEffect)(()=>{r?(I(r),E.setFieldsValue(xe(r)),A(`ESSENTIEL`),O(!1)):Object.keys(y).length?(I(y),A(y.type_rapport),E.setFieldsValue(xe(y)),O(y.is_cti===`1`)):(I({}),E.setFieldsValue({}),O(!1))},[y,r]);let be=ye(D,m);function xe(e){let t={...e};for(let e in t)switch(e){case`is_cti`:t[e]=t[e]===`1`;break;case`is_hide`:t[e]=t[e]===`1`;break;case`is_template_updatable`:t[e]=t[e]===`1`;break;default:break}let n=[];for(let e=1;e<=5;e++)t[`rapport_indicateur_condition_id_${e}`]&&t[`rapport_indicateur_condition_id_${e}`]!==`0`&&n.push(t[`rapport_indicateur_condition_id_${e}`]);return t.essential_conditions=n,t}function K(e){let t={...e};for(let e in t)if(e.includes(`picto_enabled`))t[e]=t[e]===`1`;else if(e.includes(`positif_is_good`))t[e]=t[e]===`1`;else switch(e){case`erase_rapport_indicateur_condition`:t[e]=t[e]===`1`;break;case`font_weight`:t[e]=t[e]===`bold`;break;default:break}return t}let q=(e,t)=>e.map((e,n)=>{let r={...et,key:t+n,numero_rubrique:(t+n+1).toString(),indicateur_id:e.oid};for(let t in r){let n=t.substring(11);e[n]&&(r[t]=e[n])}return r}),J=e=>{A(e)},Y=e=>{let t={...F},n=q(e,t.sections.length);t.sections=t.sections.concat(n),I(t),n.length===1&&(P(n[0].key),M(!0),W(`30%`)),V(!0)},X=e=>{let t={...F},n=t.sections.find(e=>e.key===N);z.serie===null?(n.indicateur_output_format=e.output_format,n.indicateur_id=e.oid,n.indicateur_entete_etendue=e.texte,n.indicateur_texte=e.texte,n.indicateur_entete=e.texte,n.indicateur_code=e.code):(n.indicateur_entete=e.texte,n[`indicateur_entete_etendue_${z.serie}`]=e.texte,n[`indicateur_output_format_${z.serie}`]=e.output_format,z.serie>=2&&(n[`indicateur_associe_${z.serie}_id`]=e.oid,G(We(n,w)))),I(t),pe(!0),V(!0),ce({oneOnly:!1})},Se=e=>{P(e),M(!0),W(`30%`)},Ce=e=>{let t={...F},n=[...F.sections],r=n.findIndex(t=>t.key===e.key);r===-1?n.push(e):n[r]=e,t.sections=n,I(t),pe(!1),V(!0),M(!1),W(`100%`),P(null)},we=()=>{M(!1),W(`100%`),P(null)},Te=()=>{if(N!==null){let e=F.sections.find(e=>e.key===N);e&&ae(K(e))}},Ee=()=>{V(!0)},Oe=()=>{let t=``;p.mutate({softCode:a,xmlDef:t})},Ae=()=>{let t=``;d.mutate({softCode:a,xmlDef:t},{onSuccess:()=>n()})},je=()=>{let e={...F},t=[...F.sections],n=t.findIndex(e=>e.key===N);n!==-1&&t.splice(n,1),e.sections=t,I(e),V(!0),M(!1),W(`100%`),P(null)},Me=()=>{ve(a,e.oid)},Ne=()=>{let e=E.getFieldsValue(),t={...F,...e};for(let e in t)t[e]===!0?t[e]=`1`:t[e]===!1&&(t[e]=`0`);t.children=t.sections.map(e=>({...e,XMLType:`RUBRIQUE`})),delete t.sections,t.XMLType=`RAPPORT`;let n=_e({Rapport:t},!0);u.mutate({softCode:a,xmlDef:n},{onSuccess:()=>V(!1)})},Pe=(e,t)=>{if(t.changedFields.length&&e!==`indicator`){Ee();let e={...F},n=t.changedFields[0].name[0],r=t.changedFields[0].value;n&&(e[n]=r,I(e))}},ze=e=>{Ee();let t={...F};t.sections=e.map((e,t)=>({...e,numero_rubrique:(t+1).toString(),XMLType:`RUBRIQUE`})),I(t)},Be=()=>{ce({oneOnly:!1}),R(!oe)},Ve=(e=null)=>{ce({oneOnly:!0,serie:e}),R(!0)},He=e=>{pe(e)},Ke=()=>{r?(I(r),E.setFieldsValue(xe(r))):Object.keys(y).length?(I(y),E.setFieldsValue(xe(y))):(I({}),E.setFieldsValue({})),V(!1)},qe=e=>{W(he+e.height)},Je=()=>{O(e=>!e)},Ye=e=>{e?.length>5&&e.pop();let t={...F};for(let n=1;n<=5;n++)e[n-1]?t[`rapport_indicateur_condition_id_${n}`]=e[n-1]:t[`rapport_indicateur_condition_id_${n}`]=``;I(t)},Xe=u.isPending||d.isPending||p.isPending,Ze=t.map((e,t)=>(0,$.jsx)(Ut,{value:e.oid,children:e.texte},t)),Qe=x.map((e,t)=>(0,$.jsx)(Ut,{value:e.oid,children:e.texte},t));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`component-header`,children:[(0,$.jsxs)(`div`,{className:`header-title`,children:[(0,$.jsx)(te,{onConfirm:n,modified:B,children:(0,$.jsx)(h,{type:`link`,style:{height:`100%`,paddingRight:`20px`},disabled:Xe,children:(0,$.jsx)(S,{})})}),e?`Modifier le rapport`:`Nouveau rapport`]}),(0,$.jsxs)(`div`,{className:`header-actions`,children:[(0,$.jsx)(L,{title:`Copier`,children:(0,$.jsx)(h,{type:`link`,onClick:Oe,disabled:!e||Xe,loading:p.isPending,children:(0,$.jsx)(T,{})})}),(0,$.jsx)(C,{title:`Etes vous sûr de vouloir supprimer ce rapport ?`,okText:`Supprimer le rapport`,cancelText:`Annuler`,onConfirm:Ae,children:(0,$.jsx)(L,{title:`Supprimer le rapport`,children:(0,$.jsx)(h,{type:`link`,disabled:be||Xe,loading:d.isPending,children:(0,$.jsx)(ue,{})})})}),m?.ISROLECTI&&(0,$.jsx)(L,{title:`Script SQL`,children:(0,$.jsx)(h,{type:`link`,disabled:!e,onClick:Me,children:(0,$.jsx)(ee,{})})}),F.is_essentiel===`1`&&(0,$.jsx)(Ht,{selectedReportsType:k,selectedReport:e,label:`Recalcul de l'essentiel`,softCode:a}),(0,$.jsx)(L,{title:`Ajouter un nouvel indicateur`,children:(0,$.jsx)(h,{size:`default`,type:`primary`,icon:(0,$.jsx)(ne,{}),onClick:Be,disabled:be,children:`Ajouter un indicateur`})}),(0,$.jsx)(Fe,{onConfirm:Ke,modified:B,disabled:!B||Xe}),(0,$.jsx)(h,{type:`primary`,icon:(0,$.jsx)(g,{}),onClick:Ne,loading:u.isPending,disabled:!B||Xe,children:`Enregistrer`})]})]}),(0,$.jsx)(Re,{showModal:oe,options:z,handleShowModal:Be,handleAddIndicators:Y,handleModifyIndicator:X}),(0,$.jsxs)(U.Provider,{onFormChange:Pe,children:[(0,$.jsxs)(U,{form:E,name:`settings`,className:`reports-editor-settings`,onValuesChange:Ee,disabled:be,children:[(0,$.jsxs)(`div`,{className:`form-row form-row_margin_right`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Code`}),(0,$.jsx)(U.Item,{name:`code`,children:(0,$.jsx)(f,{})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Nom`}),(0,$.jsx)(U.Item,{name:`label`,children:(0,$.jsx)(f,{})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Contexte`}),(0,$.jsx)(U.Item,{name:`contexte`,children:(0,$.jsx)(f,{style:{maxWidth:150}})})]})]}),(0,$.jsxs)(`div`,{className:`form-row form-row_margin_right`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Conditions`}),(0,$.jsx)(U.Item,{name:`essential_conditions`,children:(0,$.jsx)(le,{showSearch:!0,treeData:b,multiple:!0,onChange:Ye,style:{width:`100%`},treeNodeFilterProp:`label`})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Modèle`}),(0,$.jsx)(U.Item,{name:`rapport_template_id`,children:(0,$.jsx)(_,{children:Ze})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Type de rapport`}),(0,$.jsx)(U.Item,{name:`type_rapport`,children:(0,$.jsx)(_,{options:i,onChange:J})})]})]}),(0,$.jsxs)(`div`,{className:`form-row `,children:[k===`ESSENTIEL`&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Groupe`}),(0,$.jsx)(U.Item,{name:`group_id`,children:(0,$.jsx)(_,{children:Qe})})]}),m.ISROLECTI&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Rapport CTI`}),(0,$.jsx)(U.Item,{valuePropName:`checked`,name:`is_cti`,onChange:Je,children:(0,$.jsx)(H,{})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Rapport désactivé`}),(0,$.jsx)(U.Item,{valuePropName:`checked`,name:`is_hide`,children:(0,$.jsx)(H,{})})]})]})]}),(0,$.jsx)(`div`,{className:`component-content`,children:(0,$.jsx)(`div`,{className:`editor-table`,children:(0,$.jsx)(fe,{defaultActiveKey:`1`,items:[{label:`Indicateurs`,key:`1`,children:(0,$.jsxs)(`div`,{className:`indicators-tab`,children:[(0,$.jsx)(me,{className:`tables-table`,axis:`x`,handleComponent:{bottom:(0,$.jsx)(`div`,{className:`resize-handle`,style:{marginBottom:8},children:(0,$.jsx)(`span`,{children:`…`})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:`100%`,height:he},onResizeStop:qe,children:(0,$.jsx)(Nt,{report:F,selectedIndicator:N,handleSelectedIndicator:Se,handleSort:ze,indicators:w,loading:c.isFetching})}),(0,$.jsx)(Vt,{indicator:re,showEditor:j,isEssentiel:k===`ESSENTIEL`,handleUpdateIndicator:Ce,handleCancelSection:we,handleShowModalFromForm:Ve,indicatorModified:de,handleIndicatorModified:He,handleDeleteSection:je,report:F,setFormIndicator:ae,handleResetIndicatorSection:Te,associatedIndicators:ge})]})},...k===`ESSENTIEL`?[{label:`Paramétrages Essentiels`,key:`2`,children:(0,$.jsx)(pt,{form:E,formReport:F,setFormReport:I,setSelectedReportModified:V})}]:[]]})})})]})]})};Wt.propTypes={selectedRow:Q.default.object,models:Q.default.array,handleCloseEditor:Q.default.func,newReport:Q.default.object,nameReportsType:Q.default.array};var Gt=Z.memo(Wt),Kt=({selectedRow:e,setSelectedRow:t,showParams:n,handleShowParams:r,handleCloseEditor:i,showEditor:a,setShowEditor:o,handleAddReport:s,nameReportsType:c,selectedType:l,setSelectedType:u})=>{let{softCode:d}=ie(),p=se(),m=ke(d),v=it(),y=at(),C=p.data?.session,w=m.data??Ie,T=w.comboGroup,[E]=U.useForm(),[D,O]=(0,Z.useState)([]),[ee,te]=(0,Z.useState)([]),[j,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)(!1),[F,I]=(0,Z.useState)(!1),[re,oe]=(0,Z.useState)(!1),[R,le]=(0,Z.useState)([]),[B,ue]=(0,Z.useState)(``);(0,Z.useEffect)(()=>{l&&(te(Me(l)),E.setFieldsValue(K(T)));let e=w.reports.filter(e=>(!re||e.is_hide===`0`)&&(!F||e.is_cti===`1`)&&e.type_rapport===l);B&&(e=ae(e,B,[`texte`,`code`,`contexte`])),O(e)},[w.reports,l,B,F,re]);let V=e=>{u(e)},fe=e=>{ue(e.target.value)},pe=e=>{M(!0)},me=()=>{E.setFieldsValue(K(T)),M(!1)},H=e=>{let n=w.reports.find(t=>t.key===e);t(n),u(n.type_rapport),o(!0)},he=()=>{let e=E.getFieldsValue(),t={GENERALSETTINGS:{XMLType:`GENERALSETTINGS`}};for(let n in e)e[n]===!0?e[n]=`1`:e[n]===!1&&(e[n]=`0`),t.GENERALSETTINGS[`group_${n}`]=e[n];let n=_e(t,!0),r=[{oid:`0`,texte:`N/A`,one_click:`0`}];for(let t in e){let n=t.split(`_`),i=n.pop(),a=n.join(`_`),o=r.find(e=>e.oid===i);o?o[a]=e[t]:r.push({oid:i,[a]:e[t]})}v.mutate({softCode:d,xmlDef:n},{onSuccess:()=>M(!1)})},W=()=>{P(!N),le([])},ve=()=>{let e=w.refReports.filter((e,t)=>R.includes(t)).map(e=>e.oid).join(`,`);y.mutate({softCode:d,refoid:e},{onSuccess:()=>W()})},ye=()=>{m.refetch()},G=e=>{let t=[...R];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),le([...new Set(t)])},be=e=>{I(e)},xe=e=>{oe(e)};function K(e){let t={};return T.forEach((e,n)=>{if(n!==0)for(let n in e)n===`one_click`?t[`${n}_${e.oid}`]=e[n]===`1`:t[`${n}_${e.oid}`]=e[n]}),t}let q=(e=!1)=>T.map((t,n)=>t.texte===`N/A`?null:(e?Number(t.oid)<10:Number(t.oid)>10)?(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsx)(`div`,{className:`form-item`,children:(0,$.jsx)(U.Item,{name:`texte_${t.oid}`,children:(0,$.jsx)(f,{disabled:e})})})},n):null);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(de,{title:`Importer depuis l'environnement de référence`,open:N,onCancel:W,width:`70vw`,okText:`Importer les rapports sélectionnés`,okButtonProps:{disabled:!R.length,loading:y.isPending},onOk:ve,cancelText:`Annuler`,children:(0,$.jsx)(`div`,{style:{height:`50vh`},children:(0,$.jsx)(ge,{columns:[{title:`oid`,dataKey:`oid`,key:`oid`,width:60},{title:`Rapport de référence`,dataKey:`texte`,key:`texte`,width:600},{title:`Code`,dataKey:`code`,key:`code`,width:200},{title:`CTI`,dataKey:`is_cti`,key:`is_cti`,width:200}],data:w.refReports,selectedRows:R,onRowSelect:G,shiftMulti:!0})})}),(0,$.jsxs)(`div`,{className:`component-header`,children:[(0,$.jsxs)(`div`,{className:`header-title`,children:[a&&(0,$.jsx)(h,{type:`link`,style:{height:`100%`},children:(0,$.jsx)(S,{onClick:i})}),`Gestion des rapports`]}),(0,$.jsx)(`div`,{className:`header-actions`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(L,{title:`Actualiser`,children:(0,$.jsx)(h,{type:`link`,onClick:ye,children:(0,$.jsx)(A,{})})}),(0,$.jsx)(L,{title:`Importer depuis l'environement de référence`,children:(0,$.jsx)(h,{type:`link`,onClick:W,children:(0,$.jsx)(k,{})})}),l===`ESSENTIEL`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(L,{title:`Parametres généraux`,children:(0,$.jsx)(h,{type:`link`,onClick:r,children:(0,$.jsx)(ce,{})})}),(0,$.jsx)(Ht,{selectedReportsType:l,selectedReport:e,label:`Recalcul des essentiels`,softCode:d})]}),(0,$.jsx)(L,{title:`Créer un nouveau rapport`,children:(0,$.jsx)(h,{size:`default`,type:`primary`,icon:(0,$.jsx)(ne,{}),onClick:s,children:`Ajouter un rapport`})})]})})]}),(0,$.jsx)(`div`,{className:`reports__table-headers`,children:(0,$.jsxs)(x,{children:[(0,$.jsx)(b,{span:12,children:(0,$.jsxs)(`div`,{className:`reports__table-filters`,children:[(0,$.jsx)(`span`,{children:`Type de rapport:`}),(0,$.jsx)(_,{options:c,onChange:V,style:{width:200},value:l}),(0,$.jsx)(`span`,{style:{marginLeft:`10px`},children:`Filtre:`}),(0,$.jsx)(f,{className:`search-input`,placeholder:`Recherche`,value:B,onChange:fe})]})}),(0,$.jsx)(b,{span:12,children:(0,$.jsxs)(`div`,{className:`reports__table-check`,children:[(0,$.jsx)(`span`,{children:`Afficher uniquement :`}),(0,$.jsxs)(`div`,{className:`reports__table-single-check`,children:[(0,$.jsx)(z,{size:`small`,checked:F,onChange:be}),(0,$.jsx)(`span`,{children:`Rapports CTI`})]}),(0,$.jsxs)(`div`,{className:`reports__table-single-check`,children:[(0,$.jsx)(z,{size:`small`,checked:re,onChange:xe}),(0,$.jsx)(`span`,{children:`Rapports actifs`})]})]})})]})}),(0,$.jsxs)(`div`,{className:`component-content`,children:[(0,$.jsx)(`div`,{className:`reports-table`,children:(0,$.jsx)(ge,{columns:ee,data:D,loading:m.isFetching,selectedRow:e,onRowSelect:H,rowClassName:({columns:e,rowData:t,rowIndex:n})=>{let r=``;return t.is_hide===`1`&&(r+=`settings__rowTable-inactive`),n%2==0&&(r+=` even-row`),r}})}),(0,$.jsxs)(`div`,{className:`reports-params`,style:{display:n?`block`:`none`},children:[(0,$.jsxs)(`div`,{className:`params-close`,children:[(0,$.jsx)(`span`,{children:`Paramètres généraux des essentiels`}),(0,$.jsxs)(`div`,{className:`params-actions`,children:[(0,$.jsx)(Fe,{onConfirm:me,modified:j,disabled:!j,placement:`top`}),(0,$.jsx)(h,{type:`primary`,onClick:he,loading:v.isPending,disabled:!j,icon:(0,$.jsx)(g,{}),children:`Enregistrer`}),(0,$.jsx)(ze,{onConfirm:r,modified:j})]})]}),(0,$.jsx)(U,{form:E,onValuesChange:pe,children:(0,$.jsxs)(`div`,{className:`params-form`,children:[C.ISROLECTI&&(0,$.jsxs)(`div`,{className:`form-column`,children:[(0,$.jsx)(`span`,{children:`Intitulés des groupes d'essentiels CTI`}),q(!0)]}),(0,$.jsxs)(`div`,{className:`form-column`,children:[(0,$.jsx)(`span`,{children:`Intitulés des groupes d'essentiels Etablissement`}),q()]})]})})]})]})]})};Kt.propTypes={selectedRow:Q.default.object,showParams:Q.default.bool,handleShowParams:Q.default.func,handleCloseEditor:Q.default.func,showEditor:Q.default.bool,handleAddReport:Q.default.func};var qt=Z.memo(Kt),Jt=({softCode:e})=>{let[t,n]=(0,Z.useState)(!1),[r,i]=(0,Z.useState)(!1),[a,o]=(0,Z.useState)(),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(`ESSENTIEL`),f=ke(e).data??Ie;Oe(e),Be();let p=()=>{o(null),n(!1),c(null)},m=()=>{i(!r)},h=()=>{c($e),n(!0)},g=f.comboType.map(e=>({value:e.oid,label:e.texte}));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(d,{children:(0,$.jsx)(`title`,{children:`iCTI | Gestion des rapports`})}),t?(0,$.jsx)(Gt,{selectedRow:a,models:f.comboReport,handleCloseEditor:p,newReport:s,nameReportsType:g}):(0,$.jsx)(qt,{selectedRow:a,setSelectedRow:o,showParams:r,handleShowParams:m,handleCloseEditor:p,showEditor:t,setShowEditor:n,handleAddReport:h,nameReportsType:g,selectedType:l,setSelectedType:u})]})};Jt.propTypes={softCode:Q.default.string};var Yt=Z.memo(Jt);export{Yt as default}; \ No newline at end of file diff --git a/assets/ResetButton-BWz1k8XX.js b/assets/ResetButton-BWz1k8XX.js new file mode 100644 index 0000000..c83ec55 --- /dev/null +++ b/assets/ResetButton-BWz1k8XX.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-BDcMaxoP.js";import{t as a}from"./UndoOutlined-DAvTbx0c.js";import{N as o}from"./index-C1mw6CgG.js";import{t as s}from"./BaseActionButton-C-haanPv.js";var c=async()=>(await o.get(`/api/rh/paie/ventilations/eligible-salaries`)).data,l=async e=>(await o.get(`/api/rh/paie/ventilations/${e}/settings`)).data,u=async(e,t)=>(await o.put(`/api/rh/paie/ventilations/${e}/settings`,t)).data,d={all:[`salarieVentilation`],list:()=>[...d.all,`list`],detail:e=>[...d.all,e]},f=[`janvier`,`fevrier`,`mars`,`avril`,`mai`,`juin`,`juillet`,`aout`,`septembre`,`octobre`,`novembre`,`decembre`];function p(e,t){return e.filter(e=>{for(let n in t)if(t[n]?.length>0&&!t[n].includes(e[n]))return!1;return!0})}function m(e,t){return p(e,t).map(e=>e.salarie_id)}var h=e=>{let t=e?.ventilations??[],n=e=>`Etablissement ${e}`,r=t.reduce((e,t)=>{let{yearNumber:r,etablissementId:i,monthName:a,ratio:o,etablissementVentilation:s}=t;return e[r]||(e[r]={}),e[r][i]||(e[r][i]={key:i,etablissement_id:i,label:s||n(i)},f.forEach(t=>{e[r][i][`ratio_${t}`]=null})),e[r][i][`ratio_${a}`]=o,e},{}),i={};for(let e in r)i[e]=Object.values(r[e]);return i};function g(e,t){return Number(e)!==Number(t)}function _(e,t){for(let[n,r]of Object.entries(e)){if(!n.startsWith(`ratio_`))continue;let e=t?.[n]??null;if(!(r==null&&e==null)&&g(r,e))return!0}return!1}var v=(e,t)=>{let n=[],r=t.salarie_id;for(let[t,i]of Object.entries(e))i.forEach(e=>{f.forEach(i=>{let a=`ratio_${i}`;e.hasOwnProperty(a)&&(n=[...n,{yearNumber:Number(t),monthName:i,salarieId:r,etablissementId:e.etablissement_id,etablissementVentilation:e.label??`Non renseigné`,ratio:e[a]??0}])})});return{infos:t,ventilations:n}},y=(e=[])=>i({queryKey:d.list(),queryFn:c,select:t=>e.length>0?t.filter(({salarie_id:t})=>e.includes(t)):t}),b=e=>i({queryKey:d.detail(e),queryFn:()=>l(e),select:e=>({ventilationByYear:h(e),salarieInfo:e.infos})});t();var x=e(r()),S=n(),C=({children:e=`Réinitialiser`,...t})=>(0,S.jsx)(s,{icon:(0,S.jsx)(a,{}),confirmTitle:`Confirmez-vous la réinitialisation ?`,okText:`Réinitialiser`,...t,children:e});C.propTypes={children:x.default.node};export{p as a,g as c,u as d,f as i,v as l,b as n,m as o,y as r,_ as s,C as t,d as u}; \ No newline at end of file diff --git a/assets/RightOutlined-C8iXxAwf.js b/assets/RightOutlined-C8iXxAwf.js new file mode 100644 index 0000000..fa31907 --- /dev/null +++ b/assets/RightOutlined-C8iXxAwf.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/RightSquareOutlined-C-Af7NvS.js b/assets/RightSquareOutlined-C-Af7NvS.js new file mode 100644 index 0000000..4322232 --- /dev/null +++ b/assets/RightSquareOutlined-C-Af7NvS.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`right-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/RowLabelWithIcon-Uk-N0Fra.js b/assets/RowLabelWithIcon-Uk-N0Fra.js new file mode 100644 index 0000000..f5e388a --- /dev/null +++ b/assets/RowLabelWithIcon-Uk-N0Fra.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Filter-6hGzrL6X.js","./chunk-jRWAZmH_.js","./jsx-runtime-CEixWuwE.js","./FilterOutline-0NxB8lny.js","./Home-C0KXjxek.js","./HomeOutline-DA8r8OiJ.js","./Hospital-Cq8lBfIi.js","./Information-BXzTZc0Z.js","./NotificationsOutline-COWH5lJd.js","./PeopleOutline-D1hS4ztT.js","./PersonCircleOutline-DFO77GzI.js","./SynthesisOutline-DU1b2CPh.js"])))=>i.map(i=>d[i]); +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o}from"./axios-BDcMaxoP.js";import{t as s}from"./preload-helper-DZmVH3u5.js";import{F as c}from"./index-C1mw6CgG.js";var l=e(t());i();var u={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`plus-circle`,theme:`outlined`},d=l.forwardRef(function(e,t){return l.createElement(a,r(r({},e),{},{ref:t,icon:u}))}),f=e(o()),p=n(),m=Object.assign({"../../components/shared/svg/icons/Filter.jsx":()=>s(()=>import(`./Filter-6hGzrL6X.js`).then(e=>e.t),__vite__mapDeps([0,1,2]),import.meta.url),"../../components/shared/svg/icons/FilterOutline.jsx":()=>s(()=>import(`./FilterOutline-0NxB8lny.js`).then(e=>e.t),__vite__mapDeps([3,1,2]),import.meta.url),"../../components/shared/svg/icons/Home.jsx":()=>s(()=>import(`./Home-C0KXjxek.js`).then(e=>e.t),__vite__mapDeps([4,1,2]),import.meta.url),"../../components/shared/svg/icons/HomeOutline.jsx":()=>s(()=>import(`./HomeOutline-DA8r8OiJ.js`).then(e=>e.t),__vite__mapDeps([5,1,2]),import.meta.url),"../../components/shared/svg/icons/Hospital.jsx":()=>s(()=>import(`./Hospital-Cq8lBfIi.js`),__vite__mapDeps([6,1,2]),import.meta.url),"../../components/shared/svg/icons/Information.jsx":()=>s(()=>import(`./Information-BXzTZc0Z.js`).then(e=>e.t),__vite__mapDeps([7,1,2]),import.meta.url),"../../components/shared/svg/icons/NotificationsOutline.jsx":()=>s(()=>import(`./NotificationsOutline-COWH5lJd.js`).then(e=>e.t),__vite__mapDeps([8,1,2]),import.meta.url),"../../components/shared/svg/icons/PeopleOutline.jsx":()=>s(()=>import(`./PeopleOutline-D1hS4ztT.js`),__vite__mapDeps([9,1,2]),import.meta.url),"../../components/shared/svg/icons/PersonCircleOutline.jsx":()=>s(()=>import(`./PersonCircleOutline-DFO77GzI.js`).then(e=>e.t),__vite__mapDeps([10,1,2]),import.meta.url),"../../components/shared/svg/icons/SynthesisOutline.jsx":()=>s(()=>import(`./SynthesisOutline-DU1b2CPh.js`).then(e=>e.n),__vite__mapDeps([11,1,2]),import.meta.url)}),h=(e,t)=>{let[n,r]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let n=!0;return(async()=>{try{let i=[``,`.jsx`,`.tsx`,`.js`,`.ts`],a=null;for(let t of i){let n=`../../components/${e}${t}`;if(m[n]){a=m[n];break}}if(!a){console.error(`Composant non trouvé: ${e}`);return}let o=(await a()).default;n&&r((0,p.jsx)(o,{...t}))}catch(t){console.error(`Erreur lors de l'import de ${e}:`,t)}})(),()=>{n=!1}},[e,t]),n},g=({label:e,isCti:t,icon:n,toolTipLabel:r})=>{let i=h(`shared/svg/icons/${n}`);return(0,p.jsxs)(p.Fragment,{children:[(t===`0`||t===`false`||!t)&&(0,p.jsx)(c,{title:r,children:i}),e]})};g.propTypes={label:f.default.string,isCti:f.default.oneOfType([f.default.string,f.default.bool]),icon:f.default.string};export{d as n,g as t}; \ No newline at end of file diff --git a/assets/SalarieVentilationEditor-Bu7A8pR3.css b/assets/SalarieVentilationEditor-Bu7A8pR3.css new file mode 100644 index 0000000..71bb565 --- /dev/null +++ b/assets/SalarieVentilationEditor-Bu7A8pR3.css @@ -0,0 +1 @@ +.salarie-ventilation-editor{padding:0 20px}.salarie-ventilation-editor .ant-descriptions{background:#fff;border-radius:5px;margin-top:24px;margin-bottom:24px;padding:16px 24px}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-title{color:#012b43;letter-spacing:.02em;margin-bottom:12px;font-size:14px;font-weight:700}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-item-label{color:#929292;font-size:12px;font-weight:600}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-item-content{color:#012b43;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:12px}.salarie-ventilation-editor .ant-table-thead th .auto-fill-btn:hover{opacity:1;color:#ff8801;background:#ffe6cc!important}.salarie-ventilation-editor .ant-tooltip-inner{background:#faad14;border-radius:5px;font-size:12px;font-weight:500}.salarie-ventilation-editor .editable-cell-value-wrap{cursor:pointer;padding:5px 12px}.salarie-ventilation-editor .editable-cell-value-wrap:hover{border:1px solid #ff8801;border-radius:2px;padding:4px 11px}.salarie-ventilation-editor .cell-modified .editable-cell-value-wrap{color:#ff8801;font-weight:800}.salarie-ventilation-editor .column-error .editable-cell-value-wrap{color:#ff4d4f;font-weight:800}.ventilation-error-alert{color:#ff4d4f;border:1px solid #ff4d4f;border-radius:4px;padding:8px 14px;font-weight:500}.auto-fill-btn{opacity:.3;transition:opacity .15s}.salarie-ventilation-editor .editor-table-container{border-radius:5px}.salarie-ventilation-editor .editor-table-container .ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab{border-radius:4px 4px 0 0;justify-content:center;width:75px;font-weight:600;display:flex}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active{background:#fafafa;border-color:#ff8801 #ff8801 #fff;transition:background .3s,border-color .3s,border-bottom-color .3s}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active span{color:#ff8801;font-weight:700}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active.ant-tabs-tab:has(.tab-error){border-color:#ff4d4f #ff4d4f #fff;transition:background .3s,border-color .3s,border-bottom-color .3s}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active.ant-tabs-tab:has(.tab-error) span{color:red}.salarie-ventilation-editor .editor-table-container .ant-badge-dot{background:#ff8801}.salarie-ventilation-editor .editor-table-container .badge-error .ant-badge-dot{background:#ff4d4f}.salarie-ventilation-editor .editor-table-container .ant-tabs-extra-content .tabs-extra-button{gap:10px;margin-bottom:8px;display:flex} diff --git a/assets/SalarieVentilationEditor-QEw3R70S.js b/assets/SalarieVentilationEditor-QEw3R70S.js new file mode 100644 index 0000000..082be40 --- /dev/null +++ b/assets/SalarieVentilationEditor-QEw3R70S.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,L as i,Ln as a,Q as o,Wn as s,X as c,Y as l,cr as u,jt as d,n as f,o as p,sr as m}from"./axios-BDcMaxoP.js";import{t as h}from"./input-C55Uc3oN.js";import{n as g,t as _}from"./slicedToArray-BjCmY1mt.js";import{n as v,t as y}from"./typeof-C6uZ2mkP.js";import{i as b,r as x}from"./asyncToGenerator-BFc9W-7V.js";import{m as S,p as C,t as w}from"./button-xukQsL9n.js";import{t as T}from"./table-adA-XDZ0.js";import{n as E}from"./pagination-Bbd-H34x.js";import{n as D,r as O}from"./useFlexGapSupport-CC7UZaio.js";import{t as k}from"./tooltip-D0a9NNK5.js";import{t as A}from"./ArrowLeftOutlined-Bae7unhy.js";import{c as j,s as M,u as ee}from"./chunk-4N6VE7H7-DnASKJzj.js";import{n as te}from"./notification-DIuyPXAV.js";import{t as ne}from"./useMutation-BtpRmKbj.js";import{t as re}from"./Loader-BvAKWCqv.js";import{Ct as ie,ht as ae,ot as N,wt as oe}from"./index-C1mw6CgG.js";import{c as se,d as ce,i as P,l as le,n as ue,r as de,s as F,t as fe,u as I}from"./ResetButton-BWz1k8XX.js";import{t as pe}from"./BaseActionButton-C-haanPv.js";import{t as me}from"./SaveButton-BWNmkjLW.js";var he=function(e){return e.children};b();var L=e(s()),R=e(t());function z(e){return e!=null}var B=function(e){var t=e.itemPrefixCls,n=e.component,r=e.span,i=e.className,a=e.style,o=e.labelStyle,s=e.contentStyle,c=e.bordered,l=e.label,u=e.content,d=e.colon,f=n;return c?R.createElement(f,{className:(0,L.default)(x(x({},`${t}-item-label`,z(l)),`${t}-item-content`,z(u)),i),style:a,colSpan:r},z(l)&&R.createElement(`span`,{style:o},l),z(u)&&R.createElement(`span`,{style:s},u)):R.createElement(f,{className:(0,L.default)(`${t}-item`,i),style:a,colSpan:r},R.createElement(`div`,{className:`${t}-item-container`},(l||l===0)&&R.createElement(`span`,{className:(0,L.default)(`${t}-item-label`,x({},`${t}-item-no-colon`,!d)),style:o},l),(u||u===0)&&R.createElement(`span`,{className:(0,L.default)(`${t}-item-content`),style:s},u)))};u();function V(e,t,n){var r=t.colon,i=t.prefixCls,a=t.bordered,o=n.component,s=n.type,c=n.showLabel,l=n.showContent,u=n.labelStyle,d=n.contentStyle;return e.map(function(e,t){var n=e.props,f=n.label,p=n.children,h=n.prefixCls,g=h===void 0?i:h,_=n.className,v=n.style,y=n.labelStyle,b=n.contentStyle,x=n.span,S=x===void 0?1:x,C=e.key;return typeof o==`string`?R.createElement(B,{key:`${s}-${C||t}`,className:_,style:v,labelStyle:m(m({},u),y),contentStyle:m(m({},d),b),span:S,colon:r,component:o,itemPrefixCls:g,bordered:a,label:c?f:null,content:l?p:null}):[R.createElement(B,{key:`label-${C||t}`,className:_,style:m(m(m({},u),v),y),span:1,colon:r,component:o[0],itemPrefixCls:g,bordered:a,label:f}),R.createElement(B,{key:`content-${C||t}`,className:_,style:m(m(m({},d),v),b),span:S*2-1,component:o[1],itemPrefixCls:g,bordered:a,content:p})]})}var ge=function(e){var t=R.useContext(H),n=e.prefixCls,r=e.vertical,i=e.row,a=e.index,o=e.bordered;return r?R.createElement(R.Fragment,null,R.createElement(`tr`,{key:`label-${a}`,className:`${n}-row`},V(i,e,m({component:`th`,type:`label`,showLabel:!0},t))),R.createElement(`tr`,{key:`content-${a}`,className:`${n}-row`},V(i,e,m({component:`td`,type:`content`,showContent:!0},t)))):R.createElement(`tr`,{key:a,className:`${n}-row`},V(i,e,m({component:o?[`th`,`td`]:`td`,type:`item`,showLabel:!0,showContent:!0},t)))};b(),g(),v(),C();var H=R.createContext({}),U={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function _e(e,t){if(typeof e==`number`)return e;if(y(e)===`object`)for(var n=0;nn)&&(r=i(e,{span:n})),r}function ve(e,t){var n=S(e).filter(function(e){return e}),r=[],i=[],a=t;return n.forEach(function(e,o){var s=e.props?.span,c=s||1;if(o===n.length-1){i.push(W(e,s,a)),r.push(i);return}cce(e,t),meta:{successMessage:`Mise à jour de la ventilation`,errorMessage:`Erreur lors de la mise à jour de la ventilation`},onMutate:async({salarieId:t,newVentilation:n})=>{await e.cancelQueries({queryKey:I.detail(t)});let r=e.getQueryData(I.detail(t));return e.setQueryData(I.detail(t),n),{previousVentilation:r,salarieId:t}},onError:(t,n,r)=>{e.setQueryData(I.detail(r.salarieId),r.previousVentilation)},onSettled:async(t,n,r,i)=>{await e.invalidateQueries({queryKey:I.detail(i.salarieId)})}})}var K=n(),q=({children:e,...t})=>(0,K.jsx)(pe,{type:`default`,confirmTitle:`Des modifications non enregistrées seront perdues. Voulez-vous vraiment quitter cette page ?`,okText:`Oui, quitter sans enregistrer`,cancelText:`Non, rester sur cette page`,...t,children:e}),J=({children:e,...t})=>(0,K.jsxs)(q,{...t,children:[(0,K.jsx)(A,{}),e]});function Se({currentYear:e,hasUnsavedChanges:t,setHasUnsavedChanges:n,salarieId:r,editedVentilationByYear:i,salarieInfo:a,onReset:o,hasAtLeastOneYearInError:s}){let c=j(),l=M(),u=l.state?.filteredSalarieIds||[],d=l.state?.filteredInfo||[],f=xe(),p=()=>{c(`/rh/ventilation/parametrage/ventilation-listing`,{state:{fromSider:!0,filteredSalarieIds:u,filteredInfo:d}})},m=Object.values(t).some(e=>e===!0);return(0,K.jsxs)(`div`,{className:`page-header`,children:[(0,K.jsxs)(`div`,{className:`page-header-content-title`,children:[(0,K.jsx)(J,{onClick:p,withModalConfirm:t[e]}),(0,K.jsx)(`div`,{className:`header-title`,children:`Ventilation salarie`})]}),(0,K.jsxs)(`div`,{className:`header-actions`,children:[(0,K.jsx)(fe,{onClick:o,disabled:!m,withPopConfirm:!0}),(0,K.jsx)(me,{onClick:()=>f.mutate({salarieId:r,newVentilation:le(i,a)},{onSuccess:()=>n({})}),disabled:!m||s,withPopConfirm:!0})]})]})}var Ce=({children:e,...t})=>(0,K.jsxs)(q,{...t,children:[e,(0,K.jsx)(be,{})]}),Y=R.createContext(null),we=({index:e,...t})=>{let[n]=N.useForm();return(0,K.jsx)(N,{form:n,component:!1,children:(0,K.jsx)(Y.Provider,{value:n,children:(0,K.jsx)(`tr`,{...t})})})},Te=({title:e,editable:t,children:n,dataIndex:r,record:i,handleCellSave:a,validationRules:o,...s})=>{let[c,l]=(0,R.useState)(!1),u=(0,R.useRef)(null),d=(0,R.useContext)(Y);(0,R.useEffect)(()=>{c&&u.current.focus()},[c]);let f=()=>{l(!c),d.setFieldsValue({[r]:i[r]})},p=async()=>{try{let e=await d.validateFields();f(),a({...i,...e})}catch(e){console.log(`Save failed:`,e)}},m=n;return t&&(m=c?(0,K.jsx)(N.Item,{style:{margin:0},name:r,rules:o||[],children:(0,K.jsx)(h,{ref:u,onPressEnter:p,onBlur:p})}):(0,K.jsx)(`div`,{className:`editable-cell-value-wrap`,style:{paddingRight:24},onClick:f,children:n})),(0,K.jsx)(`td`,{...s,children:m})};function X(e){let t=Z(e||{}),n=De(t);return{ratiosInError:t,yearInErrors:n,hasAtLeastOneYearInError:Object.values(n).some(e=>e===!0)}}var Z=e=>{let t={};for(let[n,r]of Object.entries(e))t[n]=Ee(r);return t},Ee=e=>{let t={};return P.forEach(n=>{let r=`ratio_${n}`,i=e.reduce((e,t)=>e+(parseInt(t[r])||0),0);t[r]=Math.abs(i-100)>1e-4&&Math.abs(i)!==0}),t};function De(e){let t={};for(let[n,r]of Object.entries(e))t[n]=Object.values(r).some(e=>e===!0);return t}var Oe=({currentYear:e,ratiosInError:t={},autoFillFromMonth:n,handleCellSave:r,isCellModified:i})=>ke.map(a=>{if(!a.editable)return a;let o=t?.[e]?.[a.dataIndex],s=a.dataIndex.replace(`ratio_`,``);return{...a,className:o?`column-error`:``,title:(0,K.jsx)(`div`,{className:`${o?`column-error`:``}`,children:(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:1,minWidth:0,width:`100%`},children:[(0,K.jsx)(`span`,{style:{flex:1,minWidth:0,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:a.title}),(0,K.jsx)(k,{title:`Recopier ${a.title} sur les mois suivants`,children:(0,K.jsx)(w,{className:`auto-fill-btn`,icon:(0,K.jsx)(E,{}),size:`small`,type:`text`,style:{color:`#b26d00`,marginLeft:2},onClick:()=>n(s),"aria-label":`Recopier la valeur de ${a.title} sur les mois suivants`})})]})}),onCell:e=>({record:e,className:i(e,a.dataIndex)?`cell-modified`:``,editable:a.editable,dataIndex:a.dataIndex,title:a.title,validationRules:[{pattern:/^\d+(\.\d{1,2})?$/,message:`Nombre à 2 décimales max`}],handleCellSave:r})}}),ke=[{title:``,dataIndex:`label`,fixed:`left`,width:150},{title:`Janvier`,dataIndex:`ratio_janvier`,editable:!0},{title:`Février`,dataIndex:`ratio_fevrier`,editable:!0},{title:`Mars`,dataIndex:`ratio_mars`,editable:!0},{title:`Avril`,dataIndex:`ratio_avril`,editable:!0},{title:`Mai`,dataIndex:`ratio_mai`,editable:!0},{title:`Juin`,dataIndex:`ratio_juin`,editable:!0},{title:`Juillet`,dataIndex:`ratio_juillet`,editable:!0},{title:`Aout`,dataIndex:`ratio_aout`,editable:!0},{title:`Septembre`,dataIndex:`ratio_septembre`,editable:!0},{title:`Octobre`,dataIndex:`ratio_octobre`,editable:!0},{title:`Novembre`,dataIndex:`ratio_novembre`,editable:!0},{title:`Décembre`,dataIndex:`ratio_decembre`,editable:!0}],Q=e(f());function $({currentYear:e,setCurrentYear:t,hasUnsavedChanges:n,setHasUnsavedChanges:r,salarieId:i,editedVentilationByYear:a,setEditedVentilationByYear:s,salarieVentilationQuery:c}){let l=M(),u=j(),d=de(l.state?.filteredSalarieIds||[]),{ratiosInError:f,yearInErrors:p}=X(a),m=[...new Set(d.data?.map(e=>parseInt(e.salarie_id)).filter(Boolean))],h=m[m.indexOf(parseInt(i))+1],g=m[m.indexOf(parseInt(i))-1],_=Object.keys(a).sort((e,t)=>e-t)??[],v=e=>{t(e)},y=t=>{let n=[...a[e]],i=n.findIndex(e=>e.key===t.key),o=n[i];if(!F(o,t))return;n[i]={...o,...t},s(t=>({...t,[e]:n}));let l=F({...c?.data.ventilationByYear[e][i]},t);r(t=>({...t,[e]:l}))},b=e=>{u(`/rh/ventilations/${e}/settings`,{state:{fromSider:!0,filteredSalarieIds:l.state?.filteredSalarieIds||[],filteredInfo:l.state?.filteredInfo||[]}})},x={body:{row:we,cell:Te}},S=Oe({currentYear:e,ratiosInError:f,autoFillFromMonth:t=>{let n=P.indexOf(t),i=parseInt(e),o=Object.keys(a).map(Number).filter(e=>e>=i).sort((e,t)=>e-t),c=!1,l=a[e]||[],u={...a};if(o.forEach((e,r)=>{let i=e.toString();u[i]=(a[i]||[]).map(e=>{let i=l.find(t=>t.etablissement_id===e.etablissement_id);if(!i)return e;let a=i[`ratio_${t}`];if(a===void 0)return e;let o={...e};return(r===0?P.slice(n):P).forEach(e=>{o[`ratio_${e}`]=parseFloat(a)}),!c&&F(e,o)&&(c=!0),o})}),c){let e=o.reduce((e,t)=>(e[t.toString()]=!0,e),{});s(u),r(t=>({...t,...e}))}},handleCellSave:y,isCellModified:(t,n)=>{let r=c.data.ventilationByYear?.[e]?.find(e=>e.key===t.key);return r?se(t[n],r[n]):!1}}),C=_.map(t=>{let r=p[t];return{key:t,label:(0,K.jsx)(`div`,{className:`${r?`tab-error`:``}`,children:(0,K.jsx)(k,{title:r&&`Une ou plusieurs colonnes sont incorrectes: le total de chaque colonne doit être égal à 1.`,children:(0,K.jsxs)(ie,{dot:!0,offset:[6,0],className:p[t]&&`badge-error`,count:n[t]?`1`:`0`,children:[r&&(0,K.jsx)(o,{style:{color:`#cf1322`,marginRight:4}}),(0,K.jsx)(`span`,{children:t})]},t)})}),children:(0,K.jsx)(T,{rowKey:`key`,components:x,rowClassName:()=>`editable-row`,columns:S,dataSource:a[t]||[],pagination:!1,scroll:{x:1200,y:`calc(100vh - 425px)`},summary:()=>{let n=a[t]||[],r=P.reduce((e,t)=>{let r=n.reduce((e,n)=>{let r=parseInt(n[`ratio_${t}`]);return e+(isNaN(r)?0:r)},0);return e[`ratio_${t}`]=r,e},{});return(0,K.jsx)(T.Summary,{fixed:!0,children:(0,K.jsxs)(T.Summary.Row,{children:[(0,K.jsx)(T.Summary.Cell,{index:0,children:`Total`}),P.map((t,n)=>{let i=`ratio_${t}`,a=r[i],o=f[e][i];return(0,K.jsx)(T.Summary.Cell,{index:n+1,className:`${o?`column-error`:``}`,children:a.toFixed(0)},t)})]})})}},i)}});return(0,K.jsx)(`div`,{className:`editor-table-container`,children:(0,K.jsx)(ae,{defaultActiveKey:e.toString(),activeKey:e.toString(),onChange:v,type:`card`,size:`large`,tabBarStyle:{marginBottom:0},tabBarGutter:5,items:C,tabBarExtraContent:(0,K.jsxs)(`div`,{className:`tabs-extra-button`,children:[(0,K.jsx)(J,{disabled:!g,onClick:()=>b(g),withModalConfirm:n[e],children:`Salarié Précédent`}),(0,K.jsx)(Ce,{disabled:!h,onClick:()=>b(h),withModalConfirm:n[e],children:`Salarié Suivant`})]})})})}$.propTypes={currentYear:Q.default.oneOfType([Q.default.string,Q.default.number]).isRequired,setCurrentYear:Q.default.func.isRequired,hasUnsavedChanges:Q.default.objectOf(Q.default.bool).isRequired,setHasUnsavedChanges:Q.default.func.isRequired,salarieId:Q.default.string.isRequired,editedVentilationByYear:Q.default.objectOf(Q.default.arrayOf(Q.default.shape({key:Q.default.number.isRequired,etablissement_id:Q.default.number.isRequired,label:Q.default.string,ratio_janvier:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_fevrier:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_mars:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_avril:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_mai:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_juin:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_juillet:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_aout:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_septembre:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_octobre:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_novembre:Q.default.oneOfType([Q.default.string,Q.default.number]),ratio_decembre:Q.default.oneOfType([Q.default.string,Q.default.number])}))).isRequired,setEditedVentilationByYear:Q.default.func.isRequired,salarieVentilationQuery:Q.default.shape({data:Q.default.shape({ventilationByYear:Q.default.object}),status:Q.default.string.isRequired}).isRequired};function Ae(e,{key:t,message:n,description:r,duration:i=0},a){let o=(0,R.useRef)(!1);(0,R.useEffect)(()=>{e&&!o.current&&(o.current=!0,te({key:t,message:n,description:r,duration:i})),e||c.close(t)},[e,t,n,r,i]),(0,R.useEffect)(()=>(o.current=!1,c.close(t),()=>c.close(t)),[t,a]);function s(){c.close(t),o.current=!1}return s}function je(e,t){return Ae(e,{key:`ventilation-error`,message:`Erreurs de ventilation`,description:`Le total de chaque colonne doit être égal à 1.`},t)}function Me(){let[e,t]=(0,R.useState)(()=>new Date().getFullYear()),[n,r]=(0,R.useState)({}),[i,a]=(0,R.useState)({}),{salarieId:o}=ee(),s=ue(o),{hasAtLeastOneYearInError:c}=X(n),l=je(c,o);(0,R.useEffect)(()=>{s.data?.ventilationByYear&&(r(s.data?.ventilationByYear??{}),a({}))},[s.data?.ventilationByYear]);let u=()=>{r(s.data.ventilationByYear),l(),a({})};if(s.status===`pending`||!s.data)return(0,K.jsx)(`div`,{className:`loading-wrapper`,children:(0,K.jsx)(re,{style:{height:`auto`}})});if(s.status===`error`)return(0,K.jsx)(oe,{message:`Erreur de chargement`,description:s.error.message,type:`error`,showIcon:!0});let d=s.data.salarieInfo;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Se,{currentYear:e,hasUnsavedChanges:i,setHasUnsavedChanges:a,salarieId:o,editedVentilationByYear:n,salarieInfo:d,onReset:u,hasAtLeastOneYearInError:c}),(0,K.jsxs)(`div`,{className:`salarie-ventilation-editor`,children:[(0,K.jsxs)(G,{title:`Informations salarie`,column:2,children:[(0,K.jsx)(G.Item,{label:`Matricule`,children:d.matricule}),(0,K.jsx)(G.Item,{label:`Etablissement Contrat`,children:d.etablissement_contrat}),(0,K.jsxs)(G.Item,{label:`Nom - Prenom`,children:[d.nom,` - `,d.prenom]}),(0,K.jsx)(G.Item,{label:`Qualif`,children:d.qualification})]}),(0,K.jsx)($,{currentYear:e,setCurrentYear:t,hasUnsavedChanges:i,setHasUnsavedChanges:a,salarieId:o,editedVentilationByYear:n,setEditedVentilationByYear:r,salarieVentilationQuery:s})]})]})}export{Me as default}; \ No newline at end of file diff --git a/assets/SalarieVentilationListing-Br3rPhPn.js b/assets/SalarieVentilationListing-Br3rPhPn.js new file mode 100644 index 0000000..47305bb --- /dev/null +++ b/assets/SalarieVentilationListing-Br3rPhPn.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-D4i6w2dF.js";import{t as i}from"./button-xukQsL9n.js";import{t as a}from"./table-adA-XDZ0.js";import{c as o,s,t as c}from"./chunk-4N6VE7H7-DnASKJzj.js";import{t as l}from"./Loader-BvAKWCqv.js";import{a as u,o as d,r as f,t as p}from"./ResetButton-BWz1k8XX.js";var m=e(t()),h=n();function g(){let e=s(),t=o(),[n,g]=(0,m.useState)(e.state?.filteredInfo||{}),_=Object.values(n).filter(Boolean).length!==0,v=f();if(v.status===`pending`)return(0,h.jsx)(`div`,{className:`loading-wrapper`,children:(0,h.jsx)(l,{style:{height:`auto`}})});if(v.status===`error`)return(0,h.jsx)(`p`,{children:`Error :(`});let y=_?u(v.data,n):[...v.data],b=[`matricule`,`nom`,`prenom`,`etablissement_contrat`,`qualification`],x={};b.forEach(e=>{let t=new Set(y?.map(t=>t[e]).filter(Boolean));x[e]=Array.from(t).sort((e,t)=>e.localeCompare(t)).map(e=>({text:e,value:e}))});let S=(n,r,i)=>{g(r),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:r}})},C=()=>{g({}),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:{}}})},w=[{title:`Matricule`,dataIndex:`matricule`,key:`matricule`,onFilter:(e,t)=>t.matricule.toString().toLowerCase().includes(e.toLowerCase()),filteredValue:n.matricule||null,filters:x.matricule,filterSearch:!0},{title:`Nom`,dataIndex:`nom`,key:`nom`,filteredValue:n.nom||null,filters:x.nom,filterSearch:!0,onFilter:(e,t)=>t.nom.toString().toLowerCase().includes(e.toLowerCase())},{title:`Prénom`,dataIndex:`prenom`,key:`prenom`,filteredValue:n.prenom||null,filters:x.prenom,onFilter:(e,t)=>t.prenom.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Etablissement du contrat`,dataIndex:`etablissement_contrat`,key:`etablissement_contrat`,filteredValue:n.etablissement_contrat||null,filters:x.etablissement_contrat,onFilter:(e,t)=>t.etablissement_contrat.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Qualification`,dataIndex:`qualification`,key:`qualification`,filteredValue:n.qualification||null,filters:x.qualification,onFilter:(e,t)=>t.qualification.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Action`,dataIndex:``,key:`action`,width:`8%`,render:e=>(0,h.jsx)(c,{to:{pathname:`/rh/ventilations/${e.salarie_id}/settings`,state:{fromSider:!0,filteredSalarieIds:d(v.data,n),filteredInfo:n}},children:(0,h.jsx)(i,{children:`Éditer`})})}];return(0,h.jsxs)(`div`,{className:``,children:[(0,h.jsx)(r,{children:(0,h.jsx)(`title`,{children:`iCTI | Liste des Salariés`})}),(0,h.jsxs)(`div`,{className:`component-header`,children:[(0,h.jsx)(`div`,{className:`header-title`,children:`Liste des Salariés`}),(0,h.jsx)(p,{disabled:!_,onClick:C,children:`Réinitialiser les filtres`})]}),(0,h.jsx)(`div`,{className:`component-content`,children:(0,h.jsx)(a,{columns:w,dataSource:y,pagination:{pageSize:50},scroll:{y:`calc(100vh - 240px)`},onChange:S,size:`small`})})]})}export{g as default}; \ No newline at end of file diff --git a/assets/SaveButton-BWNmkjLW.js b/assets/SaveButton-BWNmkjLW.js new file mode 100644 index 0000000..b61c34f --- /dev/null +++ b/assets/SaveButton-BWNmkjLW.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BDcMaxoP.js";import{t as i}from"./SaveOutlined-uzaDTRdi.js";import{t as a}from"./BaseActionButton-C-haanPv.js";t();var o=e(r()),s=n(),c=({children:e=`Enregistrer`,...t})=>(0,s.jsx)(a,{icon:(0,s.jsx)(i,{}),confirmTitle:`Confirmez-vous l'enregistrement ?`,okText:`Enregister`,...t,children:e});c.propTypes={children:o.default.node};export{c as t}; \ No newline at end of file diff --git a/assets/SaveOutlined-uzaDTRdi.js b/assets/SaveOutlined-uzaDTRdi.js new file mode 100644 index 0000000..88d9a25 --- /dev/null +++ b/assets/SaveOutlined-uzaDTRdi.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z`}}]},name:`save`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/SearchOutlined-ouHQf-Hv.js b/assets/SearchOutlined-ouHQf-Hv.js new file mode 100644 index 0000000..72e6f60 --- /dev/null +++ b/assets/SearchOutlined-ouHQf-Hv.js @@ -0,0 +1,29 @@ +import{n as e,o as t,r as n}from"./chunk-jRWAZmH_.js";import{n as r}from"./jsx-runtime-CEixWuwE.js";import{A as i,F as a,Gn as o,In as s,Kn as c,Ln as l,P as u,Rn as d,Sn as f,Tt as p,Vn as m,Wn as h,ar as g,bn as _,cr as v,fn as y,gn as b,hn as x,ir as ee,jt as te,mn as S,nn as ne,nr as re,or as ie,pn as C,rr as ae,sr as oe,tn as se,tr as w,wt as T,xn as ce,yn as E}from"./axios-BDcMaxoP.js";import{n as le,t as ue}from"./slicedToArray-BjCmY1mt.js";import{n as de,t as fe}from"./typeof-C6uZ2mkP.js";import{i as D,n as pe,r as O,t as me}from"./asyncToGenerator-BFc9W-7V.js";import{l as he,m as ge,p as _e,u as ve}from"./button-xukQsL9n.js";function ye(e,t){return e.indexOf(t)===0}function be(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:s({},t),r={};return Object.keys(e).forEach(function(t){(n.aria&&(t===`role`||ye(t,Se))||n.data&&ye(t,Ce)||n.attr&&xe.includes(t))&&(r[t]=e[t])}),r}var xe,Se,Ce,we=e((()=>{l(),xe=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Se=`aria-`,Ce=`data-`})),Te,k,A,j,M=e((()=>{d(),Te=t(r()),k=`RC_FORM_INTERNAL_HOOKS`,A=function(){m(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},j=Te.createContext({getFieldValue:A,getFieldsValue:A,getFieldError:A,getFieldWarning:A,getFieldsError:A,isFieldsTouched:A,isFieldTouched:A,isFieldValidating:A,isFieldsValidating:A,resetFields:A,setFields:A,setFieldValue:A,setFieldsValue:A,validateFields:A,submit:A,getInternalHooks:function(){return A(),{dispatch:A,initEntityValue:A,registerField:A,useSubscribe:A,setInitialValues:A,destroyForm:A,setCallbacks:A,registerWatch:A,getFields:A,setValidateMessages:A,setPreserve:A,getInitialValue:A}}})})),Ee,N,De=e((()=>{Ee=t(r()),N=Ee.createContext(null)}));function Oe(e){return e==null?[]:Array.isArray(e)?e:[e]}function ke(e){return e&&!!e._init}var Ae=e((()=>{}));function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fe(e,t,n){return Fe=Pe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ne(i,n.prototype),i},Fe.apply(null,arguments)}function Ie(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function Le(e){var t=typeof Map==`function`?new Map:void 0;return Le=function(e){if(e===null||!Ie(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Fe(e,arguments,Me(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ne(n,e)},Le(e)}function Re(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function F(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ye,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function ze(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function I(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||ze(t)&&typeof e==`string`&&!e)}function Be(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function Ve(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s{Ye=/%[sdj%]/g,Xe=function(){},Ze=function(e){je(t,e);function t(t,n){var r=e.call(this,`Async Validation Error`)||this;return r.errors=t,r.fields=n,r}return t}(Le(Error)),Qe=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||I(t,a||e.type))&&r.push(F(i.messages.required,e.fullField))},$e=function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(F(i.messages.whitespace,e.fullField))},tt=(function(){if(et)return et;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=`+e+`)|(?<=`+e+`)(?=\\s|$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=(` +(?: +(?:`+r+`:){7}(?:`+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 +(?:`+r+`:){6}(?:`+n+`|:`+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 +(?:`+r+`:){5}(?::`+n+`|(?::`+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 +(?:`+r+`:){4}(?:(?::`+r+`){0,1}:`+n+`|(?::`+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 +(?:`+r+`:){3}(?:(?::`+r+`){0,2}:`+n+`|(?::`+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 +(?:`+r+`:){2}(?:(?::`+r+`){0,3}:`+n+`|(?::`+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 +(?:`+r+`:){1}(?:(?::`+r+`){0,4}:`+n+`|(?::`+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 +(?::(?:(?::`+r+`){0,5}:`+n+`|(?::`+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 +)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 +`).replace(/\s*\/\/.*$/gm,``).replace(/\n/g,``).trim(),a=RegExp(`(?:^`+n+`$)|(?:^`+i+`$)`),o=RegExp(`^`+n+`$`),s=RegExp(`^`+i+`$`),c=function(e){return e&&e.exact?a:RegExp(`(?:`+t(e)+n+t(e)+`)|(?:`+t(e)+i+t(e)+`)`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(``+t(e)+n+t(e),`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(``+t(e)+i+t(e),`g`)};var l=`(?:(?:[a-z]+:)?//)`,u=`(?:\\S+(?::\\S*)?@)?`,d=c.v4().source,f=c.v6().source,p=`(?:`+l+`|www\\.)`+u+`(?:localhost|`+d+`|`+f+`|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return et=RegExp(`(?:^`+p+`$)`,`i`),et}),nt={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},L={integer:function(e){return L.number(e)&&parseInt(e,10)===e},float:function(e){return L.number(e)&&!L.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return typeof e==`object`&&!L.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(nt.email)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(tt())},hex:function(e){return typeof e==`string`&&!!e.match(nt.hex)}},rt=function(e,t,n,r,i){if(e.required&&t===void 0){Qe(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?L[o](t)||r.push(F(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(F(i.messages.types[o],e.fullField,e.type))},it=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(F(i.messages[u].len,e.fullField,e.len)):o&&!s&&le.max?r.push(F(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(F(i.messages[u].range,e.fullField,e.min,e.max))},R=`enum`,z={required:Qe,whitespace:$e,type:rt,range:it,enum:function(e,t,n,r,i){e[R]=Array.isArray(e[R])?e[R]:[],e[R].indexOf(t)===-1&&r.push(F(i.messages[R],e.fullField,e[R].join(`, `)))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(F(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(F(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},at=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,`string`)&&!e.required)return n();z.required(e,t,r,a,i,`string`),I(t,`string`)||(z.type(e,t,r,a,i),z.range(e,t,r,a,i),z.pattern(e,t,r,a,i),e.whitespace===!0&&z.whitespace(e,t,r,a,i))}n(a)},ot=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&z.type(e,t,r,a,i)}n(a)},st=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&(z.type(e,t,r,a,i),z.range(e,t,r,a,i))}n(a)},ct=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&z.type(e,t,r,a,i)}n(a)},lt=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),I(t)||z.type(e,t,r,a,i)}n(a)},ut=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&(z.type(e,t,r,a,i),z.range(e,t,r,a,i))}n(a)},dt=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&(z.type(e,t,r,a,i),z.range(e,t,r,a,i))}n(a)},ft=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();z.required(e,t,r,a,i,`array`),t!=null&&(z.type(e,t,r,a,i),z.range(e,t,r,a,i))}n(a)},pt=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&z.type(e,t,r,a,i)}n(a)},mt=`enum`,ht=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i),t!==void 0&&z[mt](e,t,r,a,i)}n(a)},gt=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,`string`)&&!e.required)return n();z.required(e,t,r,a,i),I(t,`string`)||z.pattern(e,t,r,a,i)}n(a)},_t=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,`date`)&&!e.required)return n();if(z.required(e,t,r,a,i),!I(t,`date`)){var o=t instanceof Date?t:new Date(t);z.type(e,o,r,a,i),o&&z.range(e,o.getTime(),r,a,i)}}n(a)},vt=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:typeof t;z.required(e,t,r,a,i,o),n(a)},yt=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,a)&&!e.required)return n();z.required(e,t,r,o,i,a),I(t,a)||z.type(e,t,r,o,i)}n(o)},B={string:at,method:ot,number:st,boolean:ct,regexp:lt,integer:ut,float:dt,array:ft,object:pt,enum:ht,pattern:gt,date:_t,url:yt,hex:yt,email:yt,required:vt,any:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();z.required(e,t,r,a,i)}n(a)}},bt=Je(),V=function(){function e(e){this.rules=null,this._messages=bt,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=qe(Je(),e)),this._messages},t.validate=function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=t,o=n,s=r;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,e)}else t.push(e)}for(var i=0;i{H="'${name}' is not a valid ${type}",St={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:H,method:H,array:H,object:H,number:H,date:H,boolean:H,integer:H,float:H,regexp:H,email:H,url:H,hex:H},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}}}));function wt(e,t){return e.replace(/\$\{\w+\}/g,function(e){return t[e.slice(2,-1)]})}function Tt(e,t,n,r,i){return Et.apply(this,arguments)}function Et(){return Et=me(T().mark(function e(t,n,r,i,a){var o,c,l,u,d,f,p,m,h;return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=s({},r),delete o.ruleIndex,Nt.warning=function(){},o.validator&&(c=o.validator,o.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Pt)}}),l=null,o&&o.type===`array`&&o.defaultField&&(l=o.defaultField,delete o.defaultField),u=new Nt(O({},t,[o])),d=C(St,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(O({},t,n),s({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var n=e.message,r=n===Pt?d.default:n;return Mt.isValidElement(r)?Mt.cloneElement(r,{key:`error_${t}`}):r}));case 18:if(!(!f.length&&l)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Tt(`${t}.${n}`,e,l,i,a)}));case 21:return p=e.sent,e.abrupt(`return`,p.reduce(function(e,t){return[].concat(E(e),E(t))},[]));case 23:return m=s(s({},r),{},{name:t,enum:(r.enum||[]).join(`, `)},a),h=f.map(function(e){return typeof e==`string`?wt(e,m):e}),e.abrupt(`return`,h);case 26:case`end`:return e.stop()}},e,null,[[10,15]])})),Et.apply(this,arguments)}function Dt(e,t,n,r,i,a){var o=e.join(`.`),c=n.map(function(e,t){var n=e.validator,r=s(s({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,a=n(e,t,function(){var e=[...arguments];Promise.resolve().then(function(){m(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,m(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(function(){r()}).catch(function(e){r(e||` `)})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,a=t.ruleIndex;return!!n==!!i?r-a:n?1:-1}),l;if(i===!0)l=new Promise(function(){var e=me(T().mark(function e(n,i){var s,l,u;return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0;case 1:if(!(s{_(),D(),p(),l(),pe(),xt(),Mt=t(r()),d(),Ct(),y(),Nt=V,Pt=`CODE_LOGIC_ERROR`}));function U(e){return Oe(e)}function It(e,t){var n={};return t.forEach(function(t){var r=x(e,t);n=S(n,t,r)}),n}function W(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(e){return Lt(t,e,n)})}function Lt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(t,n){return e[n]===t})}function Rt(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||fe(e)!==`object`||fe(t)!==`object`)return!1;var n=Object.keys(e),r=Object.keys(t);return E(new Set([].concat(n,r))).every(function(n){var r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function zt(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&fe(t.target)===`object`&&e in t.target?t.target[e]:t}function Bt(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(E(e.slice(0,n)),[i],E(e.slice(n,t)),E(e.slice(t+1,r))):a<0?[].concat(E(e.slice(0,t)),E(e.slice(t+1,n+1)),[i],E(e.slice(n+1,r))):e}var Vt=e((()=>{_(),de(),b(),y(),Ae()}));function Ht(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}function Ut(e){var t=e.name,n=se(e,Wt),r=G.useContext(j),i=G.useContext(N),a=t===void 0?void 0:U(t),o=`keep`;return n.isListField||(o=`_${(a||[]).join(`_`)}`),G.createElement(Gt,oe({key:o,name:a,isListField:!!i},n,{fieldContext:r}))}var G,Wt,K,Gt,Kt=e((()=>{v(),ne(),p(),pe(),l(),_(),ie(),ee(),re(),c(),f(),D(),_e(),u(),d(),G=t(r()),M(),De(),Ae(),Ft(),Vt(),Wt=[`name`],K=[],Gt=function(e){o(n,e);var t=ce(n);function n(e){var r;if(g(this,n),r=t.call(this,e),O(w(r),`state`,{resetCount:0}),O(w(r),`cancelRegisterFunc`,null),O(w(r),`mounted`,!1),O(w(r),`touched`,!1),O(w(r),`dirty`,!1),O(w(r),`validatePromise`,void 0),O(w(r),`prevValidating`,void 0),O(w(r),`errors`,K),O(w(r),`warnings`,K),O(w(r),`cancelRegister`,function(){var e=r.props,t=e.preserve,n=e.isListField,i=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,U(i)),r.cancelRegisterFunc=null}),O(w(r),`getNamePath`,function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,i=n===void 0?[]:n;return t===void 0?[]:[].concat(E(i),E(t))}),O(w(r),`getRules`,function(){var e=r.props,t=e.rules,n=t===void 0?[]:t,i=e.fieldContext;return n.map(function(e){return typeof e==`function`?e(i):e})}),O(w(r),`refresh`,function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),O(w(r),`metaCache`,null),O(w(r),`triggerMetaEvent`,function(e){var t=r.props.onMetaChange;if(t){var n=s(s({},r.getMeta()),{},{destroy:e});a(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),O(w(r),`onStoreChange`,function(e,t,n){var i=r.props,a=i.shouldUpdate,o=i.dependencies,s=o===void 0?[]:o,c=i.onReset,l=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(l),p=t&&W(t,u);switch(n.type===`valueUpdate`&&n.source===`external`&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=K,r.warnings=K,r.triggerMetaEvent()),n.type){case`reset`:if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=K,r.warnings=K,r.triggerMetaEvent(),c?.(),r.refresh();return}break;case`remove`:if(a){r.reRender();return}break;case`setField`:var m=n.data;if(p){`touched`in m&&(r.touched=m.touched),`validating`in m&&!(`originRCField`in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),`errors`in m&&(r.errors=m.errors||K),`warnings`in m&&(r.warnings=m.warnings||K),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}else if(`value`in m&&W(t,u,!0)){r.reRender();return}if(a&&!u.length&&Ht(a,e,l,d,f,n)){r.reRender();return}break;case`dependenciesUpdate`:if(s.map(U).some(function(e){return W(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!s.length||u.length||a)&&Ht(a,e,l,d,f,n)){r.reRender();return}break}a===!0&&r.reRender()}),O(w(r),`validateRules`,function(e){var t=r.getNamePath(),n=r.getValue(),i=e||{},a=i.triggerName,o=i.validateOnly,s=o===void 0?!1:o,c=Promise.resolve().then(me(T().mark(function i(){var o,s,l,u,d,f,p;return T().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r.mounted){i.next=2;break}return i.abrupt(`return`,[]);case 2:if(o=r.props,s=o.validateFirst,l=s===void 0?!1:s,u=o.messageVariables,d=o.validateDebounce,f=r.getRules(),a&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return t?Oe(t).includes(a):!0})),!(d&&a)){i.next=10;break}return i.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===c){i.next=10;break}return i.abrupt(`return`,[]);case 10:return p=Dt(t,n,f,e,l,u),p.catch(function(e){return e}).then(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],i=[];(t=e.forEach)==null||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,a=r===void 0?K:r;t?i.push.apply(i,E(a)):n.push.apply(n,E(a))}),r.errors=n,r.warnings=i,r.triggerMetaEvent(),r.reRender()}}),i.abrupt(`return`,p);case 13:case`end`:return i.stop()}},i)})));return s?c:(r.validatePromise=c,r.dirty=!0,r.errors=K,r.warnings=K,r.triggerMetaEvent(),r.reRender(),c)}),O(w(r),`isFieldValidating`,function(){return!!r.validatePromise}),O(w(r),`isFieldTouched`,function(){return r.touched}),O(w(r),`isFieldDirty`,function(){if(r.dirty||r.props.initialValue!==void 0)return!0;var e=r.props.fieldContext.getInternalHooks(k).getInitialValue;return e(r.getNamePath())!==void 0}),O(w(r),`getErrors`,function(){return r.errors}),O(w(r),`getWarnings`,function(){return r.warnings}),O(w(r),`isListField`,function(){return r.props.isListField}),O(w(r),`isList`,function(){return r.props.isList}),O(w(r),`isPreserve`,function(){return r.props.preserve}),O(w(r),`getMeta`,function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:r.validatePromise===null}}),O(w(r),`getOnlyChild`,function(e){if(typeof e==`function`){var t=r.getMeta();return s(s({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=ge(e);return n.length!==1||!G.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}}),O(w(r),`getValue`,function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return x(e||t(!0),n)}),O(w(r),`getControlled`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.props,n=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,o=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=i===void 0?u.validateTrigger:i,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,h=p(k).dispatch,g=r.getValue(),_=l||function(e){return O({},c,e)},v=e[n],y=s(s({},e),_(g));return y[n]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();var e,t=[...arguments];e=a?a.apply(void 0,t):zt.apply(void 0,[c].concat(t)),o&&(e=o(e,g,m(!0))),h({type:`updateValue`,namePath:f,value:e}),v&&v.apply(void 0,t)},Oe(d||[]).forEach(function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:`validateField`,namePath:f,triggerName:e})}}),y}),e.fieldContext){var i=e.fieldContext.getInternalHooks,o=i(k).initEntityValue;o(w(r))}return r}return ae(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=n.getInternalHooks,i=r(k).registerField;this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}},{key:`componentWillUnmount`,value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:`reRender`,value:function(){this.mounted&&this.forceUpdate()}},{key:`render`,value:function(){var e=this.state.resetCount,t=this.props.children,n=this.getOnlyChild(t),r=n.child,i=n.isFunction,a;return i?a=r:G.isValidElement(r)?a=G.cloneElement(r,this.getControlled(r.props)):(m(!r,"`children` of Field is not validate ReactElement."),a=r),G.createElement(G.Fragment,{key:e},a)}}]),n}(G.Component),O(Gt,`contextType`,j),O(Gt,`defaultProps`,{trigger:`onChange`,valuePropName:`value`})}));function qt(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,c=q.useContext(j),l=q.useContext(N),u=q.useRef({keys:[],id:0}).current,d=q.useMemo(function(){var e=U(c.prefixName)||[];return[].concat(E(e),E(U(t)))},[c.prefixName,t]),f=q.useMemo(function(){return s(s({},c),{},{prefixName:d})},[c,d]),p=q.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return typeof r==`function`?q.createElement(N.Provider,{value:p},q.createElement(j.Provider,{value:f},q.createElement(Ut,{name:[],shouldUpdate:function(e,t,n){return n.source===`internal`?!1:e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!l},function(e,t){var n=e.value,i=n===void 0?[]:n,a=e.onChange,o=c.getFieldValue,s=function(){return o(d||[])||[]},l={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(E(u.keys.slice(0,t)),[u.id],E(u.keys.slice(t))),a([].concat(E(n.slice(0,t)),[e],E(n.slice(t))))):(u.keys=[].concat(E(u.keys),[u.id]),a([].concat(E(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),a(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Bt(u.keys,e,t),a(Bt(n,e,t)))}}},f=i||[];return Array.isArray(f)||(f=[]),r(f.map(function(e,t){var n=u.keys[t];return n===void 0&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}}),l,t)}))):(m(!1,`Form.List only accepts function as children.`),null)}var q,Jt=e((()=>{l(),_(),q=t(r()),d(),M(),Kt(),Vt(),De()}));function Yt(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(e,o){e.catch(function(e){return t=!0,e}).then(function(e){--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Xt=e((()=>{}));function Zt(e){return e.map(function(e){return`${fe(e)}:${e}`}).join(Qt)}var Qt,J,$t=e((()=>{le(),_(),ie(),ee(),D(),de(),Qt=`__@field_split__`,J=function(){function e(){g(this,e),O(this,`kvs`,new Map)}return ae(e,[{key:`set`,value:function(e,t){this.kvs.set(Zt(e),t)}},{key:`get`,value:function(e){return this.kvs.get(Zt(e))}},{key:`update`,value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:`delete`,value:function(e){this.kvs.delete(Zt(e))}},{key:`map`,value:function(e){return E(this.kvs.entries()).map(function(t){var n=ue(t,2),r=n[0],i=n[1];return e({key:r.split(Qt).map(function(e){var t=ue(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return n===`number`?Number(r):r}),value:i})})}},{key:`toJSON`,value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(`.`)]=r,null}),e}}]),e}()}));function en(e){var t=tn.useRef(),n=ue(tn.useState({}),2)[1];return t.current||(e?t.current=e:t.current=new rn(function(){n({})}).getForm()),[t.current]}var tn,nn,rn,an=e((()=>{le(),l(),ne(),_(),de(),ee(),ie(),D(),d(),tn=t(r()),M(),Xt(),y(),Ct(),$t(),Vt(),nn=[`name`],rn=ae(function e(t){var n=this;g(this,e),O(this,`formHooked`,!1),O(this,`forceRootUpdate`,void 0),O(this,`subscribable`,!0),O(this,`store`,{}),O(this,`fieldEntities`,[]),O(this,`initialValues`,{}),O(this,`callbacks`,{}),O(this,`validateMessages`,null),O(this,`preserve`,null),O(this,`lastValidatePromise`,null),O(this,`getForm`,function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),O(this,`getInternalHooks`,function(e){return e===`RC_FORM_INTERNAL_HOOKS`?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(m(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),O(this,`useSubscribe`,function(e){n.subscribable=e}),O(this,`prevWithoutPreserves`,null),O(this,`setInitialValues`,function(e,t){if(n.initialValues=e||{},t){var r,i=C(e,n.store);(r=n.prevWithoutPreserves)==null||r.map(function(t){var n=t.key;i=S(i,n,x(e,n))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),O(this,`destroyForm`,function(){var e=new J;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e}),O(this,`getInitialValue`,function(e){var t=x(n.initialValues,e);return e.length?C(t):t}),O(this,`setCallbacks`,function(e){n.callbacks=e}),O(this,`setValidateMessages`,function(e){n.validateMessages=e}),O(this,`setPreserve`,function(e){n.preserve=e}),O(this,`watchList`,[]),O(this,`registerWatch`,function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),O(this,`notifyWatch`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),O(this,`timeoutId`,null),O(this,`warningUnhooked`,function(){}),O(this,`updateStore`,function(e){n.store=e}),O(this,`getFieldEntities`,function(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),O(this,`getFieldsMap`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=new J;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),O(this,`getFieldEntitiesForNamePathList`,function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=U(e);return t.get(n)||{INVALIDATE_NAME_PATH:U(e)}})}),O(this,`getFieldsValue`,function(e,t){n.warningUnhooked();var r,i,a;if(e===!0||Array.isArray(e)?(r=e,i=t):e&&fe(e)===`object`&&(a=e.strict,i=e.filter),r===!0&&!i)return n.store;var o=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return o.forEach(function(e){var t,n,o=`INVALIDATE_NAME_PATH`in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){var c,l;if((c=(l=e).isList)!=null&&c.call(l))return}else if(!r&&(t=(n=e).isListField)!=null&&t.call(n))return;if(!i)s.push(o);else{var u=`getMeta`in e?e.getMeta():null;i(u)&&s.push(o)}}),It(n.store,s.map(U))}),O(this,`getFieldValue`,function(e){n.warningUnhooked();var t=U(e);return x(n.store,t)}),O(this,`getFieldsError`,function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!(`INVALIDATE_NAME_PATH`in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:U(e[n]),errors:[],warnings:[]}})}),O(this,`getFieldError`,function(e){n.warningUnhooked();var t=U(e);return n.getFieldsError([t])[0].errors}),O(this,`getFieldWarning`,function(e){n.warningUnhooked();var t=U(e);return n.getFieldsError([t])[0].warnings}),O(this,`isFieldsTouched`,function(){n.warningUnhooked();var e=[...arguments],t=e[0],r=e[1],i,a=!1;e.length===0?i=null:e.length===1?Array.isArray(t)?(i=t.map(U),a=!1):(i=null,a=t):(i=t.map(U),a=r);var o=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!i)return a?o.every(s):o.some(s);var c=new J;i.forEach(function(e){c.set(e,[])}),o.forEach(function(e){var t=e.getNamePath();i.forEach(function(n){n.every(function(e,n){return t[n]===e})&&c.update(n,function(t){return[].concat(E(t),[e])})})});var l=function(e){return e.some(s)},u=c.map(function(e){return e.value});return a?u.every(l):u.some(l)}),O(this,`isFieldTouched`,function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),O(this,`isFieldsValidating`,function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(U);return t.some(function(e){return W(r,e.getNamePath())&&e.isFieldValidating()})}),O(this,`isFieldValidating`,function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),O(this,`resetWithFieldInitialValue`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=new J,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(n!==void 0){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});var i=function(r){r.forEach(function(r){if(r.props.initialValue!==void 0){var i=r.getNamePath();if(n.getInitialValue(i)!==void 0)m(!1,`Form already set 'initialValues' with path '${i.join(`.`)}'. Field can not overwrite it.`);else{var a=t.get(i);if(a&&a.size>1)m(!1,`Multiple Field with path '${i.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(a){var o=n.getFieldValue(i);(!e.skipExist||o===void 0)&&n.updateStore(S(n.store,i,E(a)[0].value))}}}})},a;e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach(function(e){var n=t.get(e);if(n){var r;(r=a).push.apply(r,E(E(n).map(function(e){return e.entity})))}})):a=r,i(a)}),O(this,`resetFields`,function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore(C(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:`reset`}),n.notifyWatch();return}var r=e.map(U);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(S(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:`reset`}),n.notifyWatch(r)}),O(this,`setFields`,function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var i=e.name,a=se(e,nn),o=U(i);r.push(o),`value`in a&&n.updateStore(S(n.store,o,a.value)),n.notifyObservers(t,[o],{type:`setField`,data:e})}),n.notifyWatch(r)}),O(this,`getFields`,function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=s(s({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,`originRCField`,{value:!0}),r})}),O(this,`initEntityValue`,function(e){var t=e.props.initialValue;if(t!==void 0){var r=e.getNamePath();x(n.store,r)===void 0&&n.updateStore(S(n.store,r,t))}}),O(this,`isMergedPreserve`,function(e){return(e===void 0?n.preserve:e)??!0}),O(this,`registerField`,function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),e.props.initialValue!==void 0){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(i)&&(!r||a.length>1)){var o=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==o&&n.fieldEntities.every(function(e){return!Lt(e.getNamePath(),t)})){var s=n.store;n.updateStore(S(s,t,o,!0)),n.notifyObservers(s,[t],{type:`remove`}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}}),O(this,`dispatch`,function(e){switch(e.type){case`updateValue`:var t=e.namePath,r=e.value;n.updateValue(t,r);break;case`validateField`:var i=e.namePath,a=e.triggerName;n.validateFields([i],{triggerName:a});break;default:}}),O(this,`notifyObservers`,function(e,t,r){if(n.subscribable){var i=s(s({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){var r=n.onStoreChange;r(e,t,i)})}else n.forceRootUpdate()}),O(this,`triggerDependenciesUpdate`,function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:`dependenciesUpdate`,relatedFields:[t].concat(E(r))}),r}),O(this,`updateValue`,function(e,t){var r=U(e),i=n.store;n.updateStore(S(n.store,r,t)),n.notifyObservers(i,[r],{type:`valueUpdate`,source:`internal`}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(i,r),o=n.callbacks.onValuesChange;o&&o(It(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(E(a)))}),O(this,`setFieldsValue`,function(e){n.warningUnhooked();var t=n.store;if(e){var r=C(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),n.notifyWatch()}),O(this,`setFieldValue`,function(e,t){n.setFields([{name:e,value:t}])}),O(this,`getDependencyChildrenFields`,function(e){var t=new Set,r=[],i=new J;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=U(t);i.update(n,function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return t.add(e),t})})}),(function e(n){(i.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}})})(e),r}),O(this,`triggerOnFieldsChange`,function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var a=new J;t.forEach(function(e){var t=e.name,n=e.errors;a.set(t,n)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var o=i.filter(function(t){var n=t.name;return W(e,n)});o.length&&r(o,i)}}),O(this,`validateFields`,function(e,t){n.warningUnhooked();var r,i;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(r=e,i=t):i=e;var a=!!r,o=a?r.map(U):[],c=[],l=String(Date.now()),u=new Set,d=i?.recursive;n.getFieldEntities(!0).forEach(function(e){if(a||o.push(e.getNamePath()),!(!e.props.rules||!e.props.rules.length)){var t=e.getNamePath();if(u.add(t.join(l)),!a||W(o,t,d)){var r=e.validateRules(s({validateMessages:s(s({},St),n.validateMessages)},i));c.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],i=[];return(n=e.forEach)==null||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,E(n)):r.push.apply(r,E(n))}),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}}))}}});var f=Yt(c);n.lastValidatePromise=f,f.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:`validateFinish`}),n.triggerOnFieldsChange(t,e)});var p=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==f})});p.catch(function(e){return e});var m=o.filter(function(e){return u.has(e.join(l))});return n.triggerOnFieldsChange(m),p}),O(this,`submit`,function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t})})),Y,on,sn,cn=e((()=>{D(),l(),Y=t(r()),on=Y.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sn=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=Y.useContext(on),o=Y.useRef({});return Y.createElement(on.Provider,{value:s(s({},a),{},{validateMessages:s(s({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:o.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:o.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(o.current=s(s({},o.current),{},O({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=s({},o.current);delete t[e],o.current=t,a.unregisterForm(e)}})},i)}})),X,ln,un,dn=e((()=>{v(),l(),le(),ne(),X=t(r()),an(),M(),cn(),Vt(),De(),ln=[`name`,`initialValues`,`fields`,`form`,`preserve`,`children`,`component`,`validateMessages`,`validateTrigger`,`onValuesChange`,`onFieldsChange`,`onFinish`,`onFinishFailed`],un=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,o=e.preserve,c=e.children,l=e.component,u=l===void 0?`form`:l,d=e.validateMessages,f=e.validateTrigger,p=f===void 0?`onChange`:f,m=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,_=e.onFinishFailed,v=se(e,ln),y=X.useContext(on),b=ue(en(a),1)[0],x=b.getInternalHooks(k),ee=x.useSubscribe,te=x.setInitialValues,S=x.setCallbacks,ne=x.setValidateMessages,re=x.setPreserve,ie=x.destroyForm;X.useImperativeHandle(t,function(){return b}),X.useEffect(function(){return y.registerForm(n,b),function(){y.unregisterForm(n)}},[y,b,n]),ne(s(s({},y.validateMessages),d)),S({onValuesChange:m,onFieldsChange:function(e){if(y.triggerFormChange(n,e),h){var t=[...arguments].slice(1);h.apply(void 0,[e].concat(t))}},onFinish:function(e){y.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:_}),re(o);var C=X.useRef(null);te(r,!C.current),C.current||=!0,X.useEffect(function(){return ie},[]);var ae,w=typeof c==`function`;ae=w?c(b.getFieldsValue(!0),b):c,ee(!w);var T=X.useRef();X.useEffect(function(){Rt(T.current||[],i||[])||b.setFields(i||[]),T.current=i},[i,b]);var ce=X.useMemo(function(){return s(s({},b),{},{validateTrigger:p})},[b,p]),E=X.createElement(N.Provider,{value:null},X.createElement(j.Provider,{value:ce},ae));return u===!1?E:X.createElement(u,oe({},v,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),b.submit()},onReset:function(e){var t;e.preventDefault(),b.resetFields(),(t=v.onReset)==null||t.call(v,e)}}),E)}}));function fn(e){try{return JSON.stringify(e)}catch{return Math.random()}}function pn(){var e=[...arguments],t=e[0],n=t===void 0?[]:t,r=e[1],i=r===void 0?{}:r,a=ke(i)?{form:i}:i,o=a.form,s=ue((0,Z.useState)(),2),c=s[0],l=s[1],u=(0,Z.useMemo)(function(){return fn(c)},[c]),d=(0,Z.useRef)(u);d.current=u;var f=(0,Z.useContext)(j),p=o||f,m=p&&p._init,h=U(n),g=(0,Z.useRef)(h);return g.current=h,mn(h),(0,Z.useEffect)(function(){if(m){var e=p.getFieldsValue,t=p.getInternalHooks,n=t(k).registerWatch,r=n(function(e,t){var n=x(a.preserve?t:e,g.current),r=fn(n);d.current!==r&&(d.current=r,l(n))}),i=x(a.preserve?e(!0):e(),g.current);return c!==i&&l(i),r}},[m]),c}var Z,mn,hn=e((()=>{le(),d(),Z=t(r()),M(),Ae(),Vt(),mn=function(){}})),gn=n({Field:()=>Ut,FieldContext:()=>j,FormProvider:()=>sn,List:()=>qt,ListContext:()=>N,default:()=>Q,useForm:()=>en,useWatch:()=>pn}),_n,Q,vn=e((()=>{_n=t(r()),Kt(),Jt(),an(),dn(),cn(),M(),De(),hn(),Q=_n.forwardRef(un),Q.FormProvider=sn,Q.Field=Ut,Q.List=qt,Q.useForm=en,Q.useWatch=pn}));v(),vn(),he();var $=t(r()),yn=$.createContext({labelAlign:`right`,vertical:!1,itemRef:function(){}}),bn=$.createContext(null),xn=function(e){var t=ve(e,[`prefixCls`]);return $.createElement(sn,oe({},t))},Sn=$.createContext({prefixCls:``}),Cn=$.createContext({}),wn=function(e){var t=e.children,n=e.status,r=e.override,i=(0,$.useContext)(Cn),a=(0,$.useMemo)(function(){var e=oe({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,i]);return $.createElement(Cn.Provider,{value:a},t)};D();var Tn=t(h());i(`warning`,`error`,``);function En(e,t,n){return(0,Tn.default)(O(O(O(O(O({},`${e}-status-success`,t===`success`),`${e}-status-warning`,t===`warning`),`${e}-status-error`,t===`error`),`${e}-status-validating`,t===`validating`),`${e}-has-feedback`,n))}var Dn=function(e,t){return t||e},On={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`};l();var kn=$.forwardRef(function(e,t){return $.createElement(te,s(s({},e),{},{ref:t,icon:On}))});export{N as _,Cn as a,be as b,wn as c,gn as d,vn as f,Ut as g,qt as h,yn as i,bn as l,en as m,Dn as n,Sn as o,pn as p,En as r,xn as s,kn as t,Q as u,j as v,we as y}; \ No newline at end of file diff --git a/assets/Simulations-3b4H2jez.js b/assets/Simulations-3b4H2jez.js new file mode 100644 index 0000000..df4bf81 --- /dev/null +++ b/assets/Simulations-3b4H2jez.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Cr as r,hr as i,n as a,o,r as s}from"./axios-BDcMaxoP.js";import{t as c}from"./index.esm-D4i6w2dF.js";import{i as l}from"./ctiAxios-HKh7HuhO.js";import{t as u}from"./button-xukQsL9n.js";import{t as d}from"./DownloadOutlined-BxQhjjNl.js";import{r as f}from"./notification-DIuyPXAV.js";import{t as p}from"./useMutation-BtpRmKbj.js";import{t as m}from"./UndoOutlined-DAvTbx0c.js";import{F as h,L as g,s as _,wt as v}from"./index-C1mw6CgG.js";var y={all:[`simulations`],list:e=>[...y.all,e]},b=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return r(i(t,`FILE`))},x=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return r(i(t,`RETURN`))[0]},S=`modules/pmsi/php/PMSI_simulation.php`;async function C(e){let t=await l(S,{operation:`get_list`,FG_YEAR:e});return{simulations:b(t),message:x(t)}}async function w(e){await l(S,{operation:`send_file`,FG_YEAR:e})}async function T(e,t){let n=x(await l(S,{operation:`get_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}async function E(e,t){let n=x(await l(S,{operation:`trt_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}function D(e){return s({queryKey:y.list(e),queryFn:()=>C(e),enabled:!!e})}function O(){let e=o();return p({mutationFn:({year:e})=>w(e),meta:{successMessage:`Séjours non groupés envoyés`,errorMessage:`Erreur lors de l'envoi des séjours`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}function k(){let e=o();return p({mutationFn:async({year:e,file:t})=>{await T(e,t),f({type:`info`,message:`Simulation`,description:`Séjours groupés téléchargés, lancement des traitements`}),await E(e,t)},meta:{successMessage:`Traitements terminés`,errorMessage:`Erreur lors du téléchargement des séjours groupés`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}var A=e(t()),j=e(a()),M=[{title:`Séjour téléversés`,dataKey:`fg0_name`,key:`fg0_name`,width:300,resizable:!0,flexGrow:1},{title:`Date de téléversement`,dataKey:`fg0_remote_date`,key:`fg0_remote_date`,width:300,resizable:!0},{title:`Taille`,dataKey:`fg0_size`,key:`fg0_size`,cellRenderer:({cellData:e})=>`${e/1e3} Ko`,width:300,resizable:!0},{title:`Groupé par CTI`,dataKey:`fg1_remote_date`,key:`fg1_remote_date`,width:300,resizable:!0}],N=n(),P=({year:e})=>{let t=D(e),n=O(),r=k(),i=t.data?.simulations??[],a=t.data?.message??{},[o,s]=(0,A.useState)({}),l=()=>{t.refetch()},f=()=>{n.mutate({year:e})},p=e=>{s(i.find(t=>t.key===e))},y=()=>{o.fg1_ok===`OUI`&&r.mutate({year:e,file:o.fg1_name})},b=t.isFetching||n.isPending||r.isPending;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{children:(0,N.jsxs)(`title`,{children:[`iCTI | Regroupage `,e]})}),(0,N.jsxs)(`div`,{className:`component-header`,children:[(0,N.jsxs)(`div`,{className:`header-title`,children:[`Regroupage `,e]}),(0,N.jsxs)(`div`,{className:`header-actions`,children:[(0,N.jsx)(h,{title:`Téléverser les séjours vers Web CTI`,children:(0,N.jsxs)(u,{onClick:f,disabled:n.isPending,children:[(0,N.jsx)(g,{}),`Téléverser`]})}),(0,N.jsx)(h,{title:`Télécharger la simulation`,children:(0,N.jsxs)(u,{disabled:o.fg1_ok!==`OUI`||r.isPending,onClick:y,children:[(0,N.jsx)(d,{}),`Télécharger`]})}),(0,N.jsx)(h,{title:`Actualiser`,children:(0,N.jsx)(u,{type:`link`,onClick:l,children:(0,N.jsx)(m,{})})})]})]}),a.warning&&a.warning!==``?(0,N.jsx)(v,{message:a.warning,type:`warning`,showIcon:!0}):null,(0,N.jsx)(`div`,{className:`component-content`,children:(0,N.jsx)(_,{columns:M,data:i,loading:b,fixed:!1,onRowSelect:p,selectedRow:o})})]})};P.propTypes={year:j.default.string};export{P as default}; \ No newline at end of file diff --git a/assets/SpecSynchronize-DIhae1qi.js b/assets/SpecSynchronize-DIhae1qi.js new file mode 100644 index 0000000..b9eba72 --- /dev/null +++ b/assets/SpecSynchronize-DIhae1qi.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BDcMaxoP.js";import{t as i}from"./index.esm-D4i6w2dF.js";import{t as a}from"./input-C55Uc3oN.js";import{i as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{t as c}from"./popconfirm-BanNBanA.js";import{r as l}from"./notification-DIuyPXAV.js";import{t as u}from"./UndoOutlined-DAvTbx0c.js";import{t as d}from"./Loader-BvAKWCqv.js";import{F as f,ht as p,ot as m,s as h}from"./index-C1mw6CgG.js";import{a as g,t as _}from"./synchronize.queries-BZpHRXuv.js";var v=e(t()),y=e(r()),b=n(),x=({swfData:e})=>{let[t]=m.useForm(),n=(0,v.useMemo)(()=>{let t=e.split(`|`);return{exe:t[0],title:t[1],options:t.splice(2,t.length-1).filter(e=>e)}},[e]),r=_(n.exe),y=()=>{r.refetch()},x=async()=>{let e=t.getFieldsValue(),r={exe:n.exe},i=``;for(let t in e)e[t]&&(i=`${i}${t} ${e[t]} `);r.args=i,l({type:`success`,message:`Synchronisation`,description:`Synchronisation lancée sur le serveur`}),await o(`modules/outils/php/httpService_synchronizeManager_exec.php`,r),y()};function S(e){return(0,b.jsx)(`div`,{className:`content-table`,children:(0,b.jsx)(h,{columns:g,data:e.map((e,t)=>({...e,key:t})),loading:r.isFetching})})}return!r.data?.jobs||r.isPending?(0,b.jsx)(`div`,{className:`loading-wrapper`,children:(0,b.jsx)(d,{})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i,{children:(0,b.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,b.jsxs)(`div`,{className:`component-header`,children:[(0,b.jsx)(`div`,{className:`header-title`,children:n.title}),(0,b.jsx)(`div`,{className:`header-actions`,children:(0,b.jsx)(f,{title:`Actualiser`,children:(0,b.jsx)(s,{type:`link`,onClick:y,children:(0,b.jsx)(u,{})})})})]}),(0,b.jsx)(`div`,{className:`component-content`,children:(0,b.jsx)(p,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,b.jsxs)(b.Fragment,{children:[!n.options||!n.options.length?null:(0,b.jsx)(`div`,{className:`sync-options`,children:(0,b.jsx)(m,{form:t,children:n.options.map(e=>{let t=e.split(`#`)[0],n=e.split(`#`)[1],r=e.split(`#`)[3];return(0,b.jsxs)(`div`,{className:`form-item`,children:[(0,b.jsx)(`div`,{className:`first-label`,children:t}),(0,b.jsx)(m.Item,{name:n,extra:r,children:(0,b.jsx)(a,{})},n)]},n)})})}),(0,b.jsx)(`div`,{style:{display:`flex`,flexDirection:`row`,justifyContent:`center`},children:(0,b.jsxs)(c,{title:`Êtes-vous sur de vouloir lancer la synchronisation ?`,onConfirm:x,children:[(0,b.jsx)(s,{type:`primary`,style:{width:500},children:`Lancer`}),(0,b.jsx)(`p`,{children:r.data.lastJobs[0].last_all_endded})]})})]})},{label:`Historique des travaux`,key:`2`,children:(0,b.jsx)(b.Fragment,{children:S(r.data.jobs)})}]})})]})};x.propTypes={data:y.default.string};var S=v.memo(x);export{S as default}; \ No newline at end of file diff --git a/assets/SpecSynchronize-Za88ZlAG.css b/assets/SpecSynchronize-Za88ZlAG.css new file mode 100644 index 0000000..1dfbda3 --- /dev/null +++ b/assets/SpecSynchronize-Za88ZlAG.css @@ -0,0 +1 @@ +.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.content-table{height:100%} diff --git a/assets/Synchronize-I6VOf-nB.js b/assets/Synchronize-I6VOf-nB.js new file mode 100644 index 0000000..e5be868 --- /dev/null +++ b/assets/Synchronize-I6VOf-nB.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o,o as s}from"./axios-BDcMaxoP.js";import{t as c}from"./index.esm-D4i6w2dF.js";import{t as l}from"./button-xukQsL9n.js";import{t as u}from"./popconfirm-BanNBanA.js";import{t as d}from"./useMutation-BtpRmKbj.js";import{t as f}from"./UndoOutlined-DAvTbx0c.js";import{t as p}from"./Loader-BvAKWCqv.js";import{F as m,ht as h,s as g}from"./index-C1mw6CgG.js";import{a as _,i as v,n as y,r as b}from"./synchronize.queries-BZpHRXuv.js";var x={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z`}}]},name:`play-square`,theme:`filled`};i();var S=e(t()),C=S.forwardRef(function(e,t){return S.createElement(a,r(r({},e),{},{ref:t,icon:x}))});function w(){let e=s();return d({mutationFn:({exePath:e,year:t})=>v(e,t),meta:{successMessage:`Synchronisation lancée sur le serveur`,errorMessage:`Erreur lors du lancement de la synchronisation`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:b.ssaeJobs(r.year)})}})}var T=e(o()),E=n(),D=({softCode:e,year:t})=>{let n=y(t),r=w(),i=()=>{n.refetch()},a=e=>{r.mutate({exePath:e,year:t})};function o(t){return e===`iCTI_ssae`?(0,E.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:t.map(e=>(0,E.jsxs)(`div`,{style:{padding:`10px 20px`},children:[(0,E.jsx)(u,{title:e.confirm,onConfirm:()=>a(e.exe_path),okText:`Lancer la synchronisation`,cancelText:`Annuler`,children:(0,E.jsx)(l,{type:`primary`,icon:(0,E.jsx)(C,{}),children:e.button})}),(0,E.jsx)(`br`,{}),(0,E.jsx)(`span`,{style:{margin:`10px 0px 0px`},children:e.last_status})]},e.button))}):(0,E.jsx)(`div`,{})}function s(e){return(0,E.jsx)(`div`,{className:`content-table`,children:(0,E.jsx)(g,{columns:_,data:e.map((e,t)=>({...e,key:t})),loading:n.isFetching})})}return!n.data?.jobs||n.isPending?(0,E.jsx)(`div`,{className:`loading-wrapper`,children:(0,E.jsx)(p,{})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c,{children:(0,E.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,E.jsxs)(`div`,{className:`component-header`,children:[(0,E.jsx)(`div`,{className:`header-title`,children:`Synchronisation des données`}),(0,E.jsx)(`div`,{className:`header-actions`,children:(0,E.jsx)(m,{title:`Actualiser`,children:(0,E.jsx)(l,{type:`link`,onClick:i,children:(0,E.jsx)(f,{})})})})]}),(0,E.jsx)(`div`,{className:`component-content`,children:(0,E.jsx)(h,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,E.jsx)(E.Fragment,{children:o(n.data.execs)})},{label:`Historique des travaux`,key:`2`,children:(0,E.jsx)(E.Fragment,{children:s(n.data.jobs)})}]})})]})};D.propTypes={softCode:T.default.string,year:T.default.string};var O=S.memo(D);export{O as default}; \ No newline at end of file diff --git a/assets/Synchronize-lo2f-wsS.css b/assets/Synchronize-lo2f-wsS.css new file mode 100644 index 0000000..255945a --- /dev/null +++ b/assets/Synchronize-lo2f-wsS.css @@ -0,0 +1 @@ +.sync-button{background-color:#fff;border-radius:5px;flex-flow:column;padding:20px;display:flex}.sync-button .sync-title{font-size:14px;font-weight:600}.sync-button button{max-width:200px;margin-top:10px} diff --git a/assets/SynthesisOutline-DU1b2CPh.js b/assets/SynthesisOutline-DU1b2CPh.js new file mode 100644 index 0000000..c4a5e7b --- /dev/null +++ b/assets/SynthesisOutline-DU1b2CPh.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 26`,...e,children:[(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:2,d:`M20.313 11.303v9.51a2.344 2.344 0 0 1-2.344 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.188A2.344 2.344 0 0 1 7.03 2.844h4.822c.414 0 .812.164 1.104.457l6.898 6.898c.293.293.457.69.457 1.104Z`}),(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M12.5 3.234v5.86a1.563 1.563 0 0 0 1.563 1.562h5.859M8.594 14.562h7.812M8.594 18.47h7.812`})]});export{r as n,a as t}; \ No newline at end of file diff --git a/assets/TablesManager-BCrQPm9h.css b/assets/TablesManager-BCrQPm9h.css new file mode 100644 index 0000000..64e584a --- /dev/null +++ b/assets/TablesManager-BCrQPm9h.css @@ -0,0 +1 @@ +.aju-editor{flex-flow:column;height:100%;min-height:400px;display:flex}.second-label{min-width:120px}.common-form-item{border-radius:2px;flex-direction:row;align-items:center;min-height:3em;margin:3px;display:flex}.common-form-item .ant-row.ant-form-item{width:100%;margin:0;padding:0}.item-label{width:200px;margin-right:10px;font-weight:600}.checkboxUnit{border:1px solid #eee;border-radius:50px;margin-left:2px;margin-right:2px;padding-left:10px;padding-right:3px}.bud-editor{flex-flow:row;height:100%;min-height:400px;display:flex}.bud-indicator-field{flex-flow:row;justify-content:space-between;display:flex}.indicator-field-text{text-overflow:ellipsis;white-space:nowrap;max-width:80%;overflow:hidden}.bud-table-indicators{flex:3}.bud-table-indicators .BaseTable__header-row{background-color:#f0f2f5}.bui-acti-editor,.bui-indicator-tab{flex-flow:column;height:100%;display:flex}.bui-acti-editor{min-height:500px}.bui-excel-actions{flex-flow:row;height:32px;display:flex}.bui-excel-actions button{margin-right:8px}.bui-table{flex:3}.bui-tabs{flex-flow:column;flex:3;display:flex}.bui-tabs .ant-tabs{flex:3}.bui-tabs .ant-tabs-content-holder{flex-flow:column;display:flex}.bui-tabs .ant-tabs-content{flex:3}.dms-editor{flex-flow:row;height:100%;display:flex}.dms-top-table,.dms-bottom-table{flex:3}.dms-top-table .BaseTable__header-row,.dms-bottom-table .BaseTable__header-row{background-color:#f0f2f5}.top-editor{display:flex}.dms-button{flex-flow:row;align-items:center;width:50%;height:32px;margin-top:5px;display:flex}.dms-search{flex-flow:row;justify-content:space-between;align-items:center;width:100%;height:32px;margin-top:3px;display:flex}.dms-search .dms-search-child{width:100%}.dms-search .dms-search-child .child-label{margin:0 8px}.evt-indicator-row{flex-flow:row;align-items:center;display:flex}.evt-indicator{flex-flow:row;width:300px;margin-right:24px;display:flex}.evt-indicator button{margin-left:12px}.evt-condition{margin-bottom:12px;display:flex}.evt-condition .condition-label{width:120px;margin-right:12px;font-weight:500}.lines-container{flex-direction:row;width:100%;display:flex}.med-editor{flex-flow:row;height:100%;display:flex}.meda-editor{flex-direction:row nowrap;height:100%;display:flex}.meda-tables{flex-flow:column;height:100%;padding:12px;display:flex}.meda-top-table,.meda-bottom-table{height:45%}.meda-actions{flex-direction:row;display:flex}.form-meda-item select,.form-meda-item input{flex:3}.rubrique{background-color:#f0f2f5;border-radius:5px;width:150px;margin:10px;padding:5px}.rubrique-header{flex-direction:row;align-items:baseline;width:100%;padding:0 7px 0 0;display:flex}.rubrique-fields{flex-direction:column;width:100%;display:flex}.tables-rubriques-fields{flex-wrap:wrap;padding-top:20px;display:flex;overflow:scroll}.compta-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));place-items:flex-start;gap:15px;width:100%;display:grid}.compta-grid__container{display:flex}.compta-grid__container .ant-input-group{width:70%}.transfer-editor{flex-flow:row;height:100%;display:flex}.med-top-table,.med-bottom-table{flex:3}.med-top-table .BaseTable__header-row,.med-bottom-table .BaseTable__header-row{background-color:#f0f2f5}.med-actions{flex-flow:row;align-items:center;width:100%;height:64px;display:flex}.form-item .ant-input,.form-item .ant-select{width:250px}.tables-editor-header{flex-flow:row;justify-content:flex-end;margin-bottom:8px;display:flex}.tables-editor-header button{margin-right:8px}.tables-editor-header .close-button{line-height:12px}.tables-editor-content{flex:3;min-width:0;height:50%;display:flex;overflow-y:scroll}.tables-editor-content form{flex:3}.tables-column{flex-flow:column;flex:3;width:50%;padding:12px;display:flex}.tables-tab-fields{height:100%}.tables-tab-panes{overflow-y:scroll}.tables-tab-fields .ant-tabs-content-holder{height:100%}.tables-chapter-fields{flex-flow:column;display:flex}.title-input{width:300px}.indicator-qualite-table{height:300px}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.tables-table{height:100%}.rub-table .rub-header{color:#000000d9;font-size:12px;font-weight:500}.rub-table .BaseTable__row-cell-text,.rub-table .BaseTable__header-cell{border-right:1px solid #f0f0f0}.rub-table .cti-default-table{padding:0!important}.tables-search{background-color:#fff;border-top:1px solid #eee;flex-flow:row;justify-content:flex-start;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.tables-search .form-row{gap:16px}.tables-search .form-item{gap:8px}.tables-editor{background-color:#fff;border-radius:5px;flex-flow:column;flex:3;height:60%;min-height:45%;margin-top:16px;padding:20px;display:flex}.content-tabs{height:100%}.spanStr{padding-right:5px}.group-cell{justify-content:center;align-items:center;height:100%;display:flex}.group-cell:not(:last-child){border-right:1px solid #f0f0f0}.component-content .ant-tabs-tabpane{flex-flow:column;display:flex} diff --git a/assets/TablesManager-Bh8eOhLi.js b/assets/TablesManager-Bh8eOhLi.js new file mode 100644 index 0000000..3859ecc --- /dev/null +++ b/assets/TablesManager-Bh8eOhLi.js @@ -0,0 +1,9 @@ +import{a as e,i as t,o as n,t as r}from"./chunk-jRWAZmH_.js";import{n as i,t as a}from"./jsx-runtime-CEixWuwE.js";import{$ as o,A as s,Cr as c,F as l,Gn as u,In as d,It as f,K as p,Kn as m,Ln as h,M as g,Mn as _,N as v,P as y,Q as b,Rn as x,Rt as S,Sn as C,Vn as w,W as T,Wn as E,Y as D,an as ee,ar as O,bn as te,cr as k,fr as ne,ft as re,gr as ie,hr as A,ir as ae,jn as oe,jt as j,kt as se,ln as ce,lt as le,n as ue,nt as de,o as fe,or as pe,pt as me,r as he,rr as ge,sr as M,ur as _e,ut as ve,xn as ye,yn as be,zn as xe}from"./axios-BDcMaxoP.js";import{t as Se}from"./index.esm-D4i6w2dF.js";import{i as Ce,o as we,r as Te,s as Ee,t as N}from"./input-C55Uc3oN.js";import{V as De,i as Oe,t as ke}from"./ctiAxios-HKh7HuhO.js";import{n as Ae,p as je,t as P}from"./slicedToArray-BjCmY1mt.js";import{n as Me,t as Ne}from"./typeof-C6uZ2mkP.js";import{i as F,r as I}from"./asyncToGenerator-BFc9W-7V.js";import{c as Pe,o as Fe,s as L,t as R}from"./button-xukQsL9n.js";import{t as z}from"./select-dQ-XiIfN.js";import{a as Ie,n as Le,r as Re,t as ze}from"./SearchOutlined-ouHQf-Hv.js";import{t as Be}from"./tooltip-D0a9NNK5.js";import{C as Ve,_ as B,s as He}from"./sanitizeDataUtils-DBUp8Fd9.js";import{E as Ue,T as We,a as Ge,h as Ke,i as qe,l as Je,m as Ye,r as Xe,s as Ze,t as Qe,w as $e,x as et}from"./_getTag-Hpw31fpV.js";import{n as tt,r as nt}from"./iconUtil-DGYSxFEZ.js";import{t as rt}from"./popconfirm-BanNBanA.js";import{t as it}from"./CopyOutlined-DYcCtig4.js";import{t as at}from"./DownloadOutlined-BxQhjjNl.js";import{t as ot}from"./useMutation-BtpRmKbj.js";import{t as st}from"./queryOptions-Cg9orY1Y.js";import{n as ct}from"./DiscardChangesButton-BFEqbiGO.js";import{t as lt}from"./ImportOutlined-okr1I4Tb.js";import{n as ut}from"./RowLabelWithIcon-Uk-N0Fra.js";import{t as dt}from"./SaveOutlined-uzaDTRdi.js";import{t as ft}from"./UndoOutlined-DAvTbx0c.js";import{n as pt}from"./_assignValue-BF_ln0J3.js";import{t as mt}from"./Loader-BvAKWCqv.js";import{a as ht,c as gt,n as _t,o as vt,r as yt,s as bt}from"./cloneDeep-CmY0yaDx.js";import{r as xt}from"./es--u5We8Xl.js";import{$ as St,B as Ct,E as wt,F as Tt,I as Et,J as Dt,Q as Ot,S as kt,U as At,W as jt,X as Mt,Y as Nt,Z as Pt,c as Ft,dt as It,et as Lt,ft as Rt,ht as zt,k as Bt,mt as Vt,n as Ht,nt as Ut,ot as V,q as Wt,s as Gt,u as Kt,y as qt,yt as Jt,z as Yt}from"./index-C1mw6CgG.js";import{D as Xt,E as Zt,S as Qt,T as $t,_ as en,a as tn,c as nn,d as rn,g as an,i as on,l as sn,n as cn,p as ln,r as un,s as dn,t as fn,u as pn,w as mn,y as hn}from"./context-CpzI18et.js";import{i as gn,n as _n,r as vn,t as yn}from"./ref-CAN0g-GQ.js";import{a as bn,n as xn,o as Sn}from"./path-DqrO9bqq.js";import{d as Cn,n as wn,r as Tn,s as En,t as Dn}from"./CloseButton-CawXCByx.js";import{n as On,t as kn}from"./map-CF4UXsnC.js";import{t as An}from"./Checkbox-D2PZJZxq.js";var jn;function H(){return jn.apply(null,arguments)}function Mn(e){jn=e}function Nn(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function Pn(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function Fn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function In(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(Fn(e,t))return!1;return!0}function Ln(e){return e===void 0}function Rn(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function zn(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function Bn(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}var ur=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,dr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fr={},pr={};function W(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(pr[e]=i),t&&(pr[t[0]]=function(){return lr(i.apply(this,arguments),t[1],t[2])}),n&&(pr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function mr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function hr(e){var t=e.match(ur),n,r;for(n=0,r=t.length;n=0&&dr.test(e);)e=e.replace(dr,r),dr.lastIndex=0,--n;return e}var vr={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};function yr(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ur).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}var br=`Invalid date`;function xr(){return this._invalidDate}var Sr=`%d`,Cr=/\d{1,2}/;function wr(e){return this._ordinal.replace(`%d`,e)}var Tr={future:`in %s`,past:`%s ago`,s:`a few seconds`,ss:`%d seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,w:`a week`,ww:`%d weeks`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function Er(e,t,n,r){var i=this._relativeTime[n];return nr(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Dr(e,t){var n=this._relativeTime[e>0?`future`:`past`];return nr(n)?n(t):n.replace(/%s/i,t)}var Or={D:`date`,dates:`date`,date:`date`,d:`day`,days:`day`,day:`day`,e:`weekday`,weekdays:`weekday`,weekday:`weekday`,E:`isoWeekday`,isoweekdays:`isoWeekday`,isoweekday:`isoWeekday`,DDD:`dayOfYear`,dayofyears:`dayOfYear`,dayofyear:`dayOfYear`,h:`hour`,hours:`hour`,hour:`hour`,ms:`millisecond`,milliseconds:`millisecond`,millisecond:`millisecond`,m:`minute`,minutes:`minute`,minute:`minute`,M:`month`,months:`month`,month:`month`,Q:`quarter`,quarters:`quarter`,quarter:`quarter`,s:`second`,seconds:`second`,second:`second`,gg:`weekYear`,weekyears:`weekYear`,weekyear:`weekYear`,GG:`isoWeekYear`,isoweekyears:`isoWeekYear`,isoweekyear:`isoWeekYear`,w:`week`,weeks:`week`,week:`week`,W:`isoWeek`,isoweeks:`isoWeek`,isoweek:`isoWeek`,y:`year`,years:`year`,year:`year`};function kr(e){return typeof e==`string`?Or[e]||Or[e.toLowerCase()]:void 0}function Ar(e){var t={},n,r;for(r in e)Fn(e,r)&&(n=kr(r),n&&(t[n]=e[r]));return t}var jr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Mr(e){var t=[],n;for(n in e)Fn(e,n)&&t.push({unit:n,priority:jr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}var Nr=/\d/,Pr=/\d\d/,Fr=/\d{3}/,Ir=/\d{4}/,Lr=/[+-]?\d{6}/,Rr=/\d\d?/,zr=/\d\d\d\d?/,Br=/\d\d\d\d\d\d?/,Vr=/\d{1,3}/,Hr=/\d{1,4}/,Ur=/[+-]?\d{1,6}/,Wr=/\d+/,Gr=/[+-]?\d+/,Kr=/Z|[+-]\d\d:?\d\d/gi,qr=/Z|[+-]\d\d(?::?\d\d)?/gi,Jr=/[+-]?\d+(\.\d{1,3})?/,Yr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Xr=/^[1-9]\d?/,Zr=/^([1-9]\d|\d)/,Qr={};function G(e,t,n){Qr[e]=nr(t)?t:function(e,r){return e&&n?n:t}}function $r(e,t){return Fn(Qr,e)?Qr[e](t._strict,t._locale):new RegExp(ei(e))}function ei(e){return ti(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function ti(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function ni(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ni(t)),n}var ri={};function ii(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),Rn(t)&&(r=function(e,n){n[t]=K(e)}),i=e.length,n=0;n68?1900:2e3)};var vi=bi(`FullYear`,!0);function yi(){return si(this.year())}function bi(e,t){return function(n){return n==null?xi(this,e):(Si(this,e,n),H.updateOffset(this,t),this)}}function xi(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case`Milliseconds`:return r?n.getUTCMilliseconds():n.getMilliseconds();case`Seconds`:return r?n.getUTCSeconds():n.getSeconds();case`Minutes`:return r?n.getUTCMinutes():n.getMinutes();case`Hours`:return r?n.getUTCHours():n.getHours();case`Date`:return r?n.getUTCDate():n.getDate();case`Day`:return r?n.getUTCDay():n.getDay();case`Month`:return r?n.getUTCMonth():n.getMonth();case`FullYear`:return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Si(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:i?r.setUTCMilliseconds(n):r.setMilliseconds(n);return;case`Seconds`:i?r.setUTCSeconds(n):r.setSeconds(n);return;case`Minutes`:i?r.setUTCMinutes(n):r.setMinutes(n);return;case`Hours`:i?r.setUTCHours(n):r.setHours(n);return;case`Date`:i?r.setUTCDate(n):r.setDate(n);return;case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!si(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Ci(e){return e=kr(e),nr(this[e])?this[e]():this}function wi(e,t){if(typeof e==`object`){e=Ar(e);var n=Mr(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Wi(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Gi(e,t,n){var r=7+t-n;return-((7+Wi(e,0,r).getUTCDay()-t)%7)+r-1}function Ki(e,t,n,r,i){var a=(7+n-r)%7,o=Gi(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=_i(c)+s):s>_i(e)?(c=e+1,l=s-_i(e)):(c=e,l=s),{year:c,dayOfYear:l}}function qi(e,t,n){var r=Gi(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+Ji(o,t,n)):i>Ji(e.year(),t,n)?(a=i-Ji(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function Ji(e,t,n){var r=Gi(e,t,n),i=Gi(e+1,t,n);return(_i(e)-r+i)/7}W(`w`,[`ww`,2],`wo`,`week`),W(`W`,[`WW`,2],`Wo`,`isoWeek`),G(`w`,Rr,Xr),G(`ww`,Rr,Pr),G(`W`,Rr,Xr),G(`WW`,Rr,Pr),ai([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=K(e)});function Yi(e){return qi(e,this._week.dow,this._week.doy).week}var Xi={dow:0,doy:6};function Zi(){return this._week.dow}function Qi(){return this._week.doy}function $i(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function ea(e){var t=qi(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}W(`d`,0,`do`,`day`),W(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),W(`e`,0,0,`weekday`),W(`E`,0,0,`isoWeekday`),G(`d`,Rr),G(`e`,Rr),G(`E`,Rr),G(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),G(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),G(`dddd`,function(e,t){return t.weekdaysRegex(e)}),ai([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?U(n).invalidWeekday=e:t.d=i}),ai([`d`,`e`,`E`],function(e,t,n,r){t[r]=K(e)});function ta(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function na(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ra(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ia=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),aa=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),oa=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),sa=Yr,ca=Yr,la=Yr;function ua(e,t){var n=Nn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?ra(n,this._week.dow):e?n[e.day()]:n}function da(e){return e===!0?ra(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function fa(e){return e===!0?ra(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function pa(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Hn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=Ei.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=Ei.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=Ei.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=Ei.call(this._weekdaysParse,o),i!==-1||(i=Ei.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Ei.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=Ei.call(this._shortWeekdaysParse,o),i!==-1||(i=Ei.call(this._weekdaysParse,o),i!==-1)?i:(i=Ei.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=Ei.call(this._minWeekdaysParse,o),i!==-1||(i=Ei.call(this._weekdaysParse,o),i!==-1)?i:(i=Ei.call(this._shortWeekdaysParse,o),i===-1?null:i))}function ma(e,t,n){var r,i,a;if(this._weekdaysParseExact)return pa.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=Hn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function ha(e){if(!this.isValid())return e==null?NaN:this;var t=xi(this,`Day`);return e==null?t:(e=ta(e,this.localeData()),this.add(e-t,`d`))}function ga(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function _a(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=na(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function va(e){return this._weekdaysParseExact?(Fn(this,`_weekdaysRegex`)||xa.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Fn(this,`_weekdaysRegex`)||(this._weekdaysRegex=sa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ya(e){return this._weekdaysParseExact?(Fn(this,`_weekdaysRegex`)||xa.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Fn(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=ca),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ba(e){return this._weekdaysParseExact?(Fn(this,`_weekdaysRegex`)||xa.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Fn(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=la),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function xa(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=Hn([2e3,1]).day(a),s=ti(this.weekdaysMin(o,``)),c=ti(this.weekdaysShort(o,``)),l=ti(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function Sa(){return this.hours()%12||12}function Ca(){return this.hours()||24}W(`H`,[`HH`,2],0,`hour`),W(`h`,[`hh`,2],0,Sa),W(`k`,[`kk`,2],0,Ca),W(`hmm`,0,0,function(){return``+Sa.apply(this)+lr(this.minutes(),2)}),W(`hmmss`,0,0,function(){return``+Sa.apply(this)+lr(this.minutes(),2)+lr(this.seconds(),2)}),W(`Hmm`,0,0,function(){return``+this.hours()+lr(this.minutes(),2)}),W(`Hmmss`,0,0,function(){return``+this.hours()+lr(this.minutes(),2)+lr(this.seconds(),2)});function wa(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}wa(`a`,!0),wa(`A`,!1);function Ta(e,t){return t._meridiemParse}G(`a`,Ta),G(`A`,Ta),G(`H`,Rr,Zr),G(`h`,Rr,Xr),G(`k`,Rr,Xr),G(`HH`,Rr,Pr),G(`hh`,Rr,Pr),G(`kk`,Rr,Pr),G(`hmm`,zr),G(`hmmss`,Br),G(`Hmm`,zr),G(`Hmmss`,Br),ii([`H`,`HH`],di),ii([`k`,`kk`],function(e,t,n){var r=K(e);t[di]=r===24?0:r}),ii([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ii([`h`,`hh`],function(e,t,n){t[di]=K(e),U(n).bigHour=!0}),ii(`hmm`,function(e,t,n){var r=e.length-2;t[di]=K(e.substr(0,r)),t[fi]=K(e.substr(r)),U(n).bigHour=!0}),ii(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[di]=K(e.substr(0,r)),t[fi]=K(e.substr(r,2)),t[pi]=K(e.substr(i)),U(n).bigHour=!0}),ii(`Hmm`,function(e,t,n){var r=e.length-2;t[di]=K(e.substr(0,r)),t[fi]=K(e.substr(r))}),ii(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[di]=K(e.substr(0,r)),t[fi]=K(e.substr(r,2)),t[pi]=K(e.substr(i))});function Ea(e){return(e+``).toLowerCase().charAt(0)===`p`}var Da=/[ap]\.?m?\.?/i,Oa=bi(`Hours`,!0);function ka(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}var Aa={calendar:sr,longDateFormat:vr,invalidDate:br,ordinal:Sr,dayOfMonthOrdinalParse:Cr,relativeTime:Tr,months:Oi,monthsShort:ki,week:Xi,weekdays:ia,weekdaysMin:oa,weekdaysShort:aa,meridiemParse:Da},ja={},Ma={},Na;function Pa(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Ra(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&Pa(a,r)>=n-1)break;n--}t++}return Na}function La(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function Ra(e){var n=null,r;if(ja[e]===void 0&&typeof module<`u`&&module&&module.exports&&La(e))try{n=Na._abbr,r=t,r(`./locale/`+e),za(n)}catch{ja[e]=null}return ja[e]}function za(e,t){var n;return e&&(n=Ln(t)?Ha(e):Ba(e,t),n?Na=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),Na._abbr}function Ba(e,t){if(t!==null){var n,r=Aa;if(t.abbr=e,ja[e]!=null)tr(`defineLocaleOverride`,`use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.`),r=ja[e]._config;else if(t.parentLocale!=null)if(ja[t.parentLocale]!=null)r=ja[t.parentLocale]._config;else if(n=Ra(t.parentLocale),n!=null)r=n._config;else return Ma[t.parentLocale]||(Ma[t.parentLocale]=[]),Ma[t.parentLocale].push({name:e,config:t}),null;return ja[e]=new ar(ir(r,t)),Ma[e]&&Ma[e].forEach(function(e){Ba(e.name,e.config)}),za(e),ja[e]}else return delete ja[e],null}function Va(e,t){if(t!=null){var n,r,i=Aa;ja[e]!=null&&ja[e].parentLocale!=null?ja[e].set(ir(ja[e]._config,t)):(r=Ra(e),r!=null&&(i=r._config),t=ir(i,t),r??(t.abbr=e),n=new ar(t),n.parentLocale=ja[e],ja[e]=n),za(e)}else ja[e]!=null&&(ja[e].parentLocale==null?ja[e]!=null&&delete ja[e]:(ja[e]=ja[e].parentLocale,e===za()&&za(e)));return ja[e]}function Ha(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Na;if(!Nn(e)){if(t=Ra(e),t)return t;e=[e]}return Ia(e)}function Ua(){return or(ja)}function Wa(e){var t,n=e._a;return n&&U(e).overflow===-2&&(t=n[li]<0||n[li]>11?li:n[ui]<1||n[ui]>Di(n[ci],n[li])?ui:n[di]<0||n[di]>24||n[di]===24&&(n[fi]!==0||n[pi]!==0||n[mi]!==0)?di:n[fi]<0||n[fi]>59?fi:n[pi]<0||n[pi]>59?pi:n[mi]<0||n[mi]>999?mi:-1,U(e)._overflowDayOfYear&&(tui)&&(t=ui),U(e)._overflowWeeks&&t===-1&&(t=hi),U(e)._overflowWeekday&&t===-1&&(t=gi),U(e).overflow=t),e}var Ga=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ka=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qa=/Z|[+-]\d\d(?::?\d\d)?/,Ja=[[`YYYYYY-MM-DD`,/[+-]\d{6}-\d\d-\d\d/],[`YYYY-MM-DD`,/\d{4}-\d\d-\d\d/],[`GGGG-[W]WW-E`,/\d{4}-W\d\d-\d/],[`GGGG-[W]WW`,/\d{4}-W\d\d/,!1],[`YYYY-DDD`,/\d{4}-\d{3}/],[`YYYY-MM`,/\d{4}-\d\d/,!1],[`YYYYYYMMDD`,/[+-]\d{10}/],[`YYYYMMDD`,/\d{8}/],[`GGGG[W]WWE`,/\d{4}W\d{3}/],[`GGGG[W]WW`,/\d{4}W\d{2}/,!1],[`YYYYDDD`,/\d{7}/],[`YYYYMM`,/\d{6}/,!1],[`YYYY`,/\d{4}/,!1]],Ya=[[`HH:mm:ss.SSSS`,/\d\d:\d\d:\d\d\.\d+/],[`HH:mm:ss,SSSS`,/\d\d:\d\d:\d\d,\d+/],[`HH:mm:ss`,/\d\d:\d\d:\d\d/],[`HH:mm`,/\d\d:\d\d/],[`HHmmss.SSSS`,/\d\d\d\d\d\d\.\d+/],[`HHmmss,SSSS`,/\d\d\d\d\d\d,\d+/],[`HHmmss`,/\d\d\d\d\d\d/],[`HHmm`,/\d\d\d\d/],[`HH`,/\d\d/]],Xa=/^\/?Date\((-?\d+)/i,Za=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $a(e){var t,n,r=e._i,i=Ga.exec(r)||Ka.exec(r),a,o,s,c,l=Ja.length,u=Ya.length;if(i){for(U(e).iso=!0,t=0,n=l;t_i(o)||e._dayOfYear===0)&&(U(e)._overflowDayOfYear=!0),n=Wi(o,0,e._dayOfYear),e._a[li]=n.getUTCMonth(),e._a[ui]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?+(t===2):e._a[t];e._a[di]===24&&e._a[fi]===0&&e._a[pi]===0&&e._a[mi]===0&&(e._nextDay=!0,e._a[di]=0),e._d=(e._useUTC?Wi:Ui).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[di]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(U(e).weekdayMismatch=!0)}}function uo(e){var t=e._w,n,r,i,a,o,s,c,l;t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=so(t.GG,e._a[ci],qi(bo(),1,4).year),r=so(t.W,1),i=so(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=qi(bo(),a,o),n=so(t.gg,e._a[ci],l.year),r=so(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>Ji(n,a,o)?U(e)._overflowWeeks=!0:c==null?(s=Ki(n,r,i,a,o),e._a[ci]=s.year,e._dayOfYear=s.dayOfYear):U(e)._overflowWeekday=!0}H.ISO_8601=function(){},H.RFC_2822=function(){};function fo(e){if(e._f===H.ISO_8601){$a(e);return}if(e._f===H.RFC_2822){ao(e);return}e._a=[],U(e).empty=!0;var t=``+e._i,n,r,i,a,o,s=t.length,c=0,l,u;for(i=_r(e._f,e._locale).match(ur)||[],u=i.length,n=0;n0&&U(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),c+=r.length),pr[a]?(r?U(e).empty=!1:U(e).unusedTokens.push(a),oi(a,r,e)):e._strict&&!r&&U(e).unusedTokens.push(a);U(e).charsLeftOver=s-c,t.length>0&&U(e).unusedInput.push(t),e._a[di]<=12&&U(e).bigHour===!0&&e._a[di]>0&&(U(e).bigHour=void 0),U(e).parsedDateParts=e._a.slice(0),U(e).meridiem=e._meridiem,e._a[di]=po(e._locale,e._a[di],e._meridiem),l=U(e).era,l!==null&&(e._a[ci]=e._locale.erasConvertYear(l,e._a[ci])),lo(e),Wa(e)}function po(e,t,n){var r;return n==null?t:e.meridiemHour==null?e.isPM==null?t:(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):e.meridiemHour(t,n)}function mo(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){U(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Kn()});function Co(e,t){var n,r;if(t.length===1&&Nn(t[0])&&(t=t[0]),!t.length)return bo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qo(){if(!Ln(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yn(e,this),e=_o(e),e._a?(t=e._isUTC?Hn(e._a):bo(e._a),this._isDSTShifted=this.isValid()&&Po(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Jo(){return this.isValid()?!this._isUTC:!1}function Yo(){return this.isValid()?this._isUTC:!1}function Xo(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Zo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $o(e,t){var n=e,r=null,i,a,o;return Mo(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Rn(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Zo.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:K(r[ui])*i,h:K(r[di])*i,m:K(r[fi])*i,s:K(r[pi])*i,ms:K(No(r[mi]*1e3))*i}):(r=Qo.exec(e))?(i=r[1]===`-`?-1:1,n={y:es(r[2],i),M:es(r[3],i),w:es(r[4],i),d:es(r[5],i),h:es(r[6],i),m:es(r[7],i),s:es(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(o=ns(bo(n.from),bo(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new jo(n),Mo(e)&&Fn(e,`_locale`)&&(a._locale=e._locale),Mo(e)&&Fn(e,`_isValid`)&&(a._isValid=e._isValid),a}$o.fn=jo.prototype,$o.invalid=Ao;function es(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function ts(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,`M`).isAfter(t)&&--n.months,n.milliseconds=t-+e.clone().add(n.months,`M`),n}function ns(e,t){var n;return e.isValid()&&t.isValid()?(t=Ro(t,e),e.isBefore(t)?n=ts(e,t):(n=ts(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rs(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(tr(t,`moment().`+t+`(period, number) is deprecated. Please use moment().`+t+`(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.`),a=n,n=r,r=a),i=$o(n,r),is(this,i,e),this}}function is(e,t,n,r){var i=t._milliseconds,a=No(t._days),o=No(t._months);e.isValid()&&(r??=!0,o&&Li(e,xi(e,`Month`)+o*n),a&&Si(e,`Date`,xi(e,`Date`)+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&H.updateOffset(e,a||o))}var as=rs(1,`add`),os=rs(-1,`subtract`);function ss(e){return typeof e==`string`||e instanceof String}function cs(e){return Zn(e)||zn(e)||ss(e)||Rn(e)||us(e)||ls(e)||e==null}function ls(e){var t=Pn(e)&&!In(e),n=!1,r=[`years`,`year`,`y`,`months`,`month`,`M`,`days`,`day`,`d`,`dates`,`date`,`D`,`hours`,`hour`,`h`,`minutes`,`minute`,`m`,`seconds`,`second`,`s`,`milliseconds`,`millisecond`,`ms`],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?gr(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):nr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,gr(n,`Z`)):gr(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function Ts(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function Es(e){e||=this.isUtc()?H.defaultFormatUtc:H.defaultFormat;var t=gr(this,e);return this.localeData().postformat(t)}function Ds(e,t){return this.isValid()&&(Zn(e)&&e.isValid()||bo(e).isValid())?$o({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Os(e){return this.from(bo(),e)}function ks(e,t){return this.isValid()&&(Zn(e)&&e.isValid()||bo(e).isValid())?$o({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function As(e){return this.to(bo(),e)}function js(e){var t;return e===void 0?this._locale._abbr:(t=Ha(e),t!=null&&(this._locale=t),this)}var Ms=$n(`moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.`,function(e){return e===void 0?this.localeData():this.locale(e)});function Ns(){return this._locale}var Ps=1e3,Fs=60*Ps,Is=60*Fs,Ls=146097*24*Is;function Rs(e,t){return(e%t+t)%t}function zs(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ls:new Date(e,t,n).valueOf()}function Bs(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ls:Date.UTC(e,t,n)}function Vs(e){var t,n;if(e=kr(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?Bs:zs,e){case`year`:t=n(this.year(),0,1);break;case`quarter`:t=n(this.year(),this.month()-this.month()%3,1);break;case`month`:t=n(this.year(),this.month(),1);break;case`week`:t=n(this.year(),this.month(),this.date()-this.weekday());break;case`isoWeek`:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case`day`:case`date`:t=n(this.year(),this.month(),this.date());break;case`hour`:t=this._d.valueOf(),t-=Rs(t+(this._isUTC?0:this.utcOffset()*Fs),Is);break;case`minute`:t=this._d.valueOf(),t-=Rs(t,Fs);break;case`second`:t=this._d.valueOf(),t-=Rs(t,Ps);break}return this._d.setTime(t),H.updateOffset(this,!0),this}function Hs(e){var t,n;if(e=kr(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?Bs:zs,e){case`year`:t=n(this.year()+1,0,1)-1;break;case`quarter`:t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case`month`:t=n(this.year(),this.month()+1,1)-1;break;case`week`:t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case`isoWeek`:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case`day`:case`date`:t=n(this.year(),this.month(),this.date()+1)-1;break;case`hour`:t=this._d.valueOf(),t+=Is-Rs(t+(this._isUTC?0:this.utcOffset()*Fs),Is)-1;break;case`minute`:t=this._d.valueOf(),t+=Fs-Rs(t,Fs)-1;break;case`second`:t=this._d.valueOf(),t+=Ps-Rs(t,Ps)-1;break}return this._d.setTime(t),H.updateOffset(this,!0),this}function Us(){return this._d.valueOf()-(this._offset||0)*6e4}function Ws(){return Math.floor(this.valueOf()/1e3)}function Gs(){return new Date(this.valueOf())}function Ks(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function qs(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Js(){return this.isValid()?this.toISOString():null}function Ys(){return Gn(this)}function Xs(){return Vn({},U(this))}function Zs(){return U(this).overflow}function Qs(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}W(`N`,0,0,`eraAbbr`),W(`NN`,0,0,`eraAbbr`),W(`NNN`,0,0,`eraAbbr`),W(`NNNN`,0,0,`eraName`),W(`NNNNN`,0,0,`eraNarrow`),W(`y`,[`y`,1],`yo`,`eraYear`),W(`y`,[`yy`,2],0,`eraYear`),W(`y`,[`yyy`,3],0,`eraYear`),W(`y`,[`yyyy`,4],0,`eraYear`),G(`N`,lc),G(`NN`,lc),G(`NNN`,lc),G(`NNNN`,uc),G(`NNNNN`,dc),ii([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?U(n).era=i:U(n).invalidEra=e}),G(`y`,Wr),G(`yy`,Wr),G(`yyy`,Wr),G(`yyyy`,Wr),G(`yo`,fc),ii([`y`,`yy`,`yyy`,`yyyy`],ci),ii([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ci]=n._locale.eraYearOrdinalParse(e,i):t[ci]=parseInt(e,10)});function $s(e,t){var n,r,i,a=this._eras||Ha(`en`)._eras;for(n=0,r=a.length;n=0)return a[r]}function tc(e,t){var n=e.since<=e.until?1:-1;return t===void 0?H(e.since).year():H(e.since).year()+(t-e.offset)*n}function nc(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),Sc.call(this,e,t,n,r,i))}function Sc(e,t,n,r,i){var a=Ki(e,t,n,r,i),o=Wi(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(`Q`,0,`Qo`,`quarter`),G(`Q`,Nr),ii(`Q`,function(e,t){t[li]=(K(e)-1)*3});function Cc(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}W(`D`,[`DD`,2],`Do`,`date`),G(`D`,Rr,Xr),G(`DD`,Rr,Pr),G(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ii([`D`,`DD`],ui),ii(`Do`,function(e,t){t[ui]=K(e.match(Rr)[0])});var wc=bi(`Date`,!0);W(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),G(`DDD`,Vr),G(`DDDD`,Fr),ii([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=K(e)});function Tc(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}W(`m`,[`mm`,2],0,`minute`),G(`m`,Rr,Zr),G(`mm`,Rr,Pr),ii([`m`,`mm`],fi);var Ec=bi(`Minutes`,!1);W(`s`,[`ss`,2],0,`second`),G(`s`,Rr,Zr),G(`ss`,Rr,Pr),ii([`s`,`ss`],pi);var Dc=bi(`Seconds`,!1);W(`S`,0,0,function(){return~~(this.millisecond()/100)}),W(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),W(0,[`SSS`,3],0,`millisecond`),W(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),W(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),W(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),W(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),W(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),W(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),G(`S`,Vr,Nr),G(`SS`,Vr,Pr),G(`SSS`,Vr,Fr);var Oc,kc;for(Oc=`SSSS`;Oc.length<=9;Oc+=`S`)G(Oc,Wr);function Ac(e,t){t[mi]=K((`0.`+e)*1e3)}for(Oc=`S`;Oc.length<=9;Oc+=`S`)ii(Oc,Ac);kc=bi(`Milliseconds`,!1),W(`z`,0,0,`zoneAbbr`),W(`zz`,0,0,`zoneName`);function jc(){return this._isUTC?`UTC`:``}function Mc(){return this._isUTC?`Coordinated Universal Time`:``}var q=Xn.prototype;q.add=as,q.calendar=ps,q.clone=ms,q.diff=xs,q.endOf=Hs,q.format=Es,q.from=Ds,q.fromNow=Os,q.to=ks,q.toNow=As,q.get=Ci,q.invalidAt=Zs,q.isAfter=hs,q.isBefore=gs,q.isBetween=_s,q.isSame=vs,q.isSameOrAfter=ys,q.isSameOrBefore=bs,q.isValid=Ys,q.lang=Ms,q.locale=js,q.localeData=Ns,q.max=So,q.min=xo,q.parsingFlags=Xs,q.set=wi,q.startOf=Vs,q.subtract=os,q.toArray=Ks,q.toObject=qs,q.toDate=Gs,q.toISOString=ws,q.inspect=Ts,typeof Symbol<`u`&&Symbol.for!=null&&(q[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),q.toJSON=Js,q.toString=Cs,q.unix=Ws,q.valueOf=Us,q.creationData=Qs,q.eraName=nc,q.eraNarrow=rc,q.eraAbbr=ic,q.eraYear=ac,q.year=vi,q.isLeapYear=yi,q.weekYear=hc,q.isoWeekYear=gc,q.quarter=q.quarters=Cc,q.month=Ri,q.daysInMonth=zi,q.week=q.weeks=$i,q.isoWeek=q.isoWeeks=ea,q.weeksInYear=yc,q.weeksInWeekYear=bc,q.isoWeeksInYear=_c,q.isoWeeksInISOWeekYear=vc,q.date=wc,q.day=q.days=ha,q.weekday=ga,q.isoWeekday=_a,q.dayOfYear=Tc,q.hour=q.hours=Oa,q.minute=q.minutes=Ec,q.second=q.seconds=Dc,q.millisecond=q.milliseconds=kc,q.utcOffset=Bo,q.utc=Ho,q.local=Uo,q.parseZone=Wo,q.hasAlignedHourOffset=Go,q.isDST=Ko,q.isLocal=Jo,q.isUtcOffset=Yo,q.isUtc=Xo,q.isUTC=Xo,q.zoneAbbr=jc,q.zoneName=Mc,q.dates=$n(`dates accessor is deprecated. Use date instead.`,wc),q.months=$n(`months accessor is deprecated. Use month instead`,Ri),q.years=$n(`years accessor is deprecated. Use year instead`,vi),q.zone=$n(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,Vo),q.isDSTShifted=$n(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,qo);function Nc(e){return bo(e*1e3)}function Pc(){return bo.apply(null,arguments).parseZone()}function Fc(e){return e}var Ic=ar.prototype;Ic.calendar=cr,Ic.longDateFormat=yr,Ic.invalidDate=xr,Ic.ordinal=wr,Ic.preparse=Fc,Ic.postformat=Fc,Ic.relativeTime=Er,Ic.pastFuture=Dr,Ic.set=rr,Ic.eras=$s,Ic.erasParse=ec,Ic.erasConvertYear=tc,Ic.erasAbbrRegex=sc,Ic.erasNameRegex=oc,Ic.erasNarrowRegex=cc,Ic.months=Ni,Ic.monthsShort=Pi,Ic.monthsParse=Ii,Ic.monthsRegex=Vi,Ic.monthsShortRegex=Bi,Ic.week=Yi,Ic.firstDayOfYear=Qi,Ic.firstDayOfWeek=Zi,Ic.weekdays=ua,Ic.weekdaysMin=fa,Ic.weekdaysShort=da,Ic.weekdaysParse=ma,Ic.weekdaysRegex=va,Ic.weekdaysShortRegex=ya,Ic.weekdaysMinRegex=ba,Ic.isPM=Ea,Ic.meridiem=ka;function Lc(e,t,n,r){var i=Ha(),a=Hn().set(r,t);return i[n](a,e)}function Rc(e,t,n){if(Rn(e)&&(t=e,e=void 0),e||=``,t!=null)return Lc(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=Lc(e,r,n,`month`);return i}function zc(e,t,n,r){typeof e==`boolean`?(Rn(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,Rn(t)&&(n=t,t=void 0),t||=``);var i=Ha(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Lc(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=Lc(t,(o+a)%7,r,`day`);return s}function Bc(e,t){return Rc(e,t,`months`)}function Vc(e,t){return Rc(e,t,`monthsShort`)}function Hc(e,t,n){return zc(e,t,n,`weekdays`)}function Uc(e,t,n){return zc(e,t,n,`weekdaysShort`)}function Wc(e,t,n){return zc(e,t,n,`weekdaysMin`)}za(`en`,{eras:[{since:`0001-01-01`,until:1/0,offset:1,name:`Anno Domini`,narrow:`AD`,abbr:`AD`},{since:`0000-12-31`,until:-1/0,offset:1,name:`Before Christ`,narrow:`BC`,abbr:`BC`}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(K(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`)}}),H.lang=$n(`moment.lang is deprecated. Use moment.locale instead.`,za),H.langData=$n(`moment.langData is deprecated. Use moment.localeData instead.`,Ha);var Gc=Math.abs;function Kc(){var e=this._data;return this._milliseconds=Gc(this._milliseconds),this._days=Gc(this._days),this._months=Gc(this._months),e.milliseconds=Gc(e.milliseconds),e.seconds=Gc(e.seconds),e.minutes=Gc(e.minutes),e.hours=Gc(e.hours),e.months=Gc(e.months),e.years=Gc(e.years),this}function qc(e,t,n,r){var i=$o(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Jc(e,t){return qc(this,e,t,1)}function Yc(e,t){return qc(this,e,t,-1)}function Xc(e){return e<0?Math.floor(e):Math.ceil(e)}function Zc(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Xc($c(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ni(e/1e3),r.seconds=i%60,a=ni(i/60),r.minutes=a%60,o=ni(a/60),r.hours=o%24,t+=ni(o/24),c=ni(Qc(t)),n+=c,t-=Xc($c(c)),s=ni(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Qc(e){return e*4800/146097}function $c(e){return e*146097/4800}function el(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kr(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+Qc(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round($c(this._months)),e){case`week`:return t/7+r/6048e5;case`day`:return t+r/864e5;case`hour`:return t*24+r/36e5;case`minute`:return t*1440+r/6e4;case`second`:return t*86400+r/1e3;case`millisecond`:return Math.floor(t*864e5)+r;default:throw Error(`Unknown unit `+e)}}function tl(e){return function(){return this.as(e)}}var nl=tl(`ms`),rl=tl(`s`),il=tl(`m`),al=tl(`h`),ol=tl(`d`),sl=tl(`w`),cl=tl(`M`),ll=tl(`Q`),ul=tl(`y`),dl=nl;function fl(){return $o(this)}function pl(e){return e=kr(e),this.isValid()?this[e+`s`]():NaN}function ml(e){return function(){return this.isValid()?this._data[e]:NaN}}var hl=ml(`milliseconds`),gl=ml(`seconds`),_l=ml(`minutes`),vl=ml(`hours`),yl=ml(`days`),bl=ml(`months`),xl=ml(`years`);function Sl(){return ni(this.days()/7)}var Cl=Math.round,wl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tl(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function El(e,t,n,r){var i=$o(e).abs(),a=Cl(i.as(`s`)),o=Cl(i.as(`m`)),s=Cl(i.as(`h`)),c=Cl(i.as(`d`)),l=Cl(i.as(`M`)),u=Cl(i.as(`w`)),d=Cl(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a0,f[4]=r,Tl.apply(null,f)}function Dl(e){return e===void 0?Cl:typeof e==`function`?(Cl=e,!0):!1}function Ol(e,t){return wl[e]===void 0?!1:t===void 0?wl[e]:(wl[e]=t,e===`s`&&(wl.ss=t-1),!0)}function kl(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=wl,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},wl,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=El(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Al=Math.abs;function jl(e){return(e>0)-(e<0)||+e}function Ml(){if(!this.isValid())return this.localeData().invalidDate();var e=Al(this._milliseconds)/1e3,t=Al(this._days),n=Al(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=ni(e/60),i=ni(r/60),e%=60,r%=60,a=ni(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=jl(this._months)===jl(s)?``:`-`,u=jl(this._days)===jl(s)?``:`-`,d=jl(this._milliseconds)===jl(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var J=jo.prototype;J.isValid=ko,J.abs=Kc,J.add=Jc,J.subtract=Yc,J.as=el,J.asMilliseconds=nl,J.asSeconds=rl,J.asMinutes=il,J.asHours=al,J.asDays=ol,J.asWeeks=sl,J.asMonths=cl,J.asQuarters=ll,J.asYears=ul,J.valueOf=dl,J._bubble=Zc,J.clone=fl,J.get=pl,J.milliseconds=hl,J.seconds=gl,J.minutes=_l,J.hours=vl,J.days=yl,J.weeks=Sl,J.months=bl,J.years=xl,J.humanize=kl,J.toISOString=Ml,J.toString=Ml,J.toJSON=Ml,J.locale=js,J.localeData=Ns,J.toIsoString=$n(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,Ml),J.lang=Ms,W(`X`,0,0,`unix`),W(`x`,0,0,`valueOf`),G(`x`,Gr),G(`X`,Jr),ii(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),ii(`x`,function(e,t,n){n._d=new Date(K(e))}),H.version=`2.30.1`,Mn(bo),H.fn=q,H.min=wo,H.max=To,H.now=Eo,H.utc=Hn,H.unix=Nc,H.months=Bc,H.isDate=zn,H.locale=za,H.invalid=Kn,H.duration=$o,H.isMoment=Zn,H.weekdays=Hc,H.parseZone=Pc,H.localeData=Ha,H.isDuration=Mo,H.monthsShort=Vc,H.weekdaysMin=Wc,H.defineLocale=Ba,H.updateLocale=Va,H.locales=Ua,H.weekdaysShort=Uc,H.normalizeUnits=kr,H.relativeTimeRounding=Dl,H.relativeTimeThreshold=Ol,H.calendarFormat=fs,H.prototype=q,H.HTML5_FMT={DATETIME_LOCAL:`YYYY-MM-DDTHH:mm`,DATETIME_LOCAL_SECONDS:`YYYY-MM-DDTHH:mm:ss`,DATETIME_LOCAL_MS:`YYYY-MM-DDTHH:mm:ss.SSS`,DATE:`YYYY-MM-DD`,TIME:`HH:mm`,TIME_SECONDS:`HH:mm:ss`,TIME_MS:`HH:mm:ss.SSS`,WEEK:`GGGG-[W]WW`,MONTH:`YYYY-MM`},x();var Nl={getNow:function(){return H()},getFixedDate:function(e){return H(e,`YYYY-MM-DD`)},getEndDate:function(e){return e.clone().endOf(`month`)},getWeekDay:function(e){var t=e.clone().locale(`en_US`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.clone().add(t,`year`)},addMonth:function(e,t){return e.clone().add(t,`month`)},addDate:function(e,t){return e.clone().add(t,`day`)},setYear:function(e,t){return e.clone().year(t)},setMonth:function(e,t){return e.clone().month(t)},setDate:function(e,t){return e.clone().date(t)},setHour:function(e,t){return e.clone().hour(t)},setMinute:function(e,t){return e.clone().minute(t)},setSecond:function(e,t){return e.clone().second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return H().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.clone().locale(e).weekday(0)},getWeek:function(e,t){return t.clone().locale(e).week()},getShortWeekDays:function(e){return H().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return H().locale(e).localeData().monthsShort()},format:function(e,t,n){return t.clone().locale(e).format(n)},parse:function(e,t,n){for(var r=[],i=0;i{var n=Jt(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),Fl=r(((e,t)=>{var n=Pl();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),Y=n(i()),Il=Y.createContext({}),Ll={visibility:`hidden`};function Rl(e){var t=e.prefixCls,n=e.prevIcon,r=n===void 0?`‹`:n,i=e.nextIcon,a=i===void 0?`›`:i,o=e.superPrevIcon,s=o===void 0?`«`:o,c=e.superNextIcon,l=c===void 0?`»`:c,u=e.onSuperPrev,d=e.onSuperNext,f=e.onPrev,p=e.onNext,m=e.children,h=Y.useContext(Il),g=h.hideNextBtn,_=h.hidePrevBtn;return Y.createElement(`div`,{className:t},u&&Y.createElement(`button`,{type:`button`,onClick:u,tabIndex:-1,className:`${t}-super-prev-btn`,style:_?Ll:{}},s),f&&Y.createElement(`button`,{type:`button`,onClick:f,tabIndex:-1,className:`${t}-prev-btn`,style:_?Ll:{}},r),Y.createElement(`div`,{className:`${t}-view`},m),p&&Y.createElement(`button`,{type:`button`,onClick:p,tabIndex:-1,className:`${t}-next-btn`,style:g?Ll:{}},a),d&&Y.createElement(`button`,{type:`button`,onClick:d,tabIndex:-1,className:`${t}-super-next-btn`,style:g?Ll:{}},l))}k();function zl(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,i=e.onPrevDecades,a=e.onNextDecades;if(Y.useContext(Il).hideHeader)return null;var o=`${t}-header`,s=n.getYear(r),c=Math.floor(s/100)*100,l=c+100-1;return Y.createElement(Rl,M({},e,{prefixCls:o,onSuperPrev:i,onSuperNext:a}),c,`-`,l)}function Bl(e,t,n,r,i){var a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,i),a}function Vl(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function Hl(e,t,n,r,i,a){var o=Math.floor(e/r)*r;if(o1&&(o=t.addDate(o,-7)),o}function yu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case`year`:return n.addYear(e,r*10);case`quarter`:case`month`:return n.addYear(e,r);default:return n.addMonth(e,r)}}function bu(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return typeof i==`function`?i(e):n.locale.format(r.locale,e,i)}function xu(e,t){var n=t.generateConfig,r=t.locale,i=t.formatList;return!e||typeof i[0]==`function`?null:n.locale.parse(r.locale,e,i)}function Su(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,i=e.generateConfig;if(!r)return!1;var a=function(e,n,a){for(var o=n;o<=a;){var s=void 0;switch(e){case`date`:if(s=i.setDate(t,o),!r(s))return!1;break;case`month`:if(s=i.setMonth(t,o),!Su({cellDate:s,mode:`month`,generateConfig:i,disabledDate:r}))return!1;break;case`year`:if(s=i.setYear(t,o),!Su({cellDate:s,mode:`year`,generateConfig:i,disabledDate:r}))return!1;break}o+=1}return!0};switch(n){case`date`:case`week`:return r(t);case`month`:return a(`date`,1,i.getDate(i.getEndDate(t)));case`quarter`:var o=Math.floor(i.getMonth(t)/3)*3;return a(`month`,o,o+2);case`year`:return a(`month`,0,11);case`decade`:var s=i.getYear(t),c=Math.floor(s/10)*10;return a(`year`,c,c+10-1)}}function Cu(e){if(Y.useContext(Il).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,a=e.format,o=`${t}-header`;return Y.createElement(Rl,{prefixCls:o},i?bu(i,{locale:r,format:a,generateConfig:n}):`\xA0`)}function wu(e){var t=e.value,n=e.generateConfig,r=e.disabledMinutes,i=e.disabledSeconds,a=e.minutes,o=e.seconds,s=e.use12Hours;return function(e,c,l,u){var d=t||n.getNow(),f=Math.max(0,c),p=Math.max(0,l),m=Math.max(0,u),h=r&&r(f);if(h?.includes(p)){var g=a.find(function(e){return!h.includes(e.value)});if(g)p=g.value;else return null}var _=i&&i(f,p);if(_?.includes(m)){var v=o.find(function(e){return!_.includes(e.value)});if(v)m=v.value;else return null}return d=Bl(n,d,!s||!e?f:f+12,p,m),d}}function Tu(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`0`,r=String(e);r.length=1?n|0:1,o=e;o<=t;o+=a)i.push({label:Tu(o,2),value:o,disabled:(r||[]).includes(o)});return i}function Nu(e){var t=e.generateConfig,n=e.prefixCls,r=e.operationRef,i=e.activeColumnIndex,a=e.value,o=e.showHour,s=e.showMinute,c=e.showSecond,l=e.use12Hours,u=e.hourStep,f=u===void 0?1:u,p=e.minuteStep,m=p===void 0?1:p,h=e.secondStep,g=h===void 0?1:h,v=e.disabledHours,y=e.disabledMinutes,b=e.disabledSeconds,x=e.disabledTime,S=e.hideDisabledOptions,C=e.onSelect,w=[],T=`${n}-content`,E=`${n}-time-panel`,D,ee=a?t.getHour(a):-1,O=ee,te=a?t.getMinute(a):-1,k=a?t.getSecond(a):-1,ne=t.getNow(),re=P(Y.useMemo(function(){if(x){var e=x(ne);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[v,y,b]},[v,y,b,x,ne]),3),ie=re[0],A=re[1],ae=re[2],oe=Mu(0,23,f,ie&&ie()),j=_(function(){return oe},oe,ju);l&&(D=O>=12,O%=12);var se=P(Y.useMemo(function(){if(!l)return[!1,!1];var e=[!0,!0];return j.forEach(function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)}),e},[l,j]),2),ce=se[0],le=se[1],ue=Y.useMemo(function(){return l?j.filter(D?function(e){return e.value>=12}:function(e){return e.value<12}).map(function(e){var t=e.value%12,n=t===0?`12`:Tu(t,2);return d(d({},e),{},{label:n,value:t})}):j},[l,D,j]),de=Mu(0,59,m,A&&A(ee)),fe=Mu(0,59,g,ae&&ae(ee,te)),pe=wu({value:a,generateConfig:t,disabledMinutes:A,disabledSeconds:ae,minutes:de,seconds:fe,use12Hours:l});r.current={onUpDown:function(e){var t=w[i];if(t)for(var n=t.units.findIndex(function(e){return e.value===t.value}),r=t.units.length,a=1;a2&&arguments[2]!==void 0?arguments[2]:!1;(F===g||n)&&(N(e),T&&T(e),he&&he(e,t),E&&!gu(s,e,Ee)&&!p?.(e)&&E(e))},Re=function(e){if(ad.includes(F)){var t,n,r=F===`date`;switch(n=e===L.PAGE_UP||e===L.PAGE_DOWN?r?s.addMonth:s.addYear:r?s.addDate:s.addMonth,e){case L.LEFT:case L.PAGE_UP:t=n(Oe,-1);break;case L.RIGHT:case L.PAGE_DOWN:t=n(Oe,1);break;case L.UP:case L.DOWN:t=n(Oe,Number(`${e===L.UP?`-`:``}${r?7:3}`));break}if(t)return!p?.(t)}return!0},ze=function(e){if(Ce.current&&Ce.current.onKeyDown){var t=!0,n=e.which;if([L.LEFT,L.RIGHT,L.UP,L.DOWN,L.PAGE_UP,L.PAGE_DOWN,L.ENTER].includes(n)&&(e.preventDefault(),n!==L.ENTER&&v===0&&(t=Re(n))),t)return Ce.current.onKeyDown(e)}return w(!1,`Panel not correct handle keyDown event. Please help to fire issue about this.`),!1},Be=function(e){Ce.current&&Ce.current.onBlur&&Ce.current.onBlur(e)};fe&&be!==`right`&&(fe.current={onKeyDown:ze,onClose:function(){Ce.current&&Ce.current.onClose&&Ce.current.onClose()}}),Y.useEffect(function(){c&&!we.current&&ke(c)},[c]),Y.useEffect(function(){we.current=!1},[]);var Ve,B=d(d({},e),{},{operationRef:Ce,prefixCls:r,viewDate:Oe,value:Ee,onViewDateChange:Ae,sourceMode:R,onPanelChange:Ie,disabledDate:p});switch(delete B.onChange,delete B.onSelect,F){case`decade`:Ve=Y.createElement(ou,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;case`year`:Ve=Y.createElement(nd,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;case`month`:Ve=Y.createElement(Ju,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;case`quarter`:Ve=Y.createElement(Qu,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;case`week`:Ve=Y.createElement(Wu,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;case`time`:delete B.showTime,Ve=Y.createElement(Fu,M({},B,Ne(b)===`object`?b:null,{onSelect:function(e,t){Ae(e),Le(e,t)}}));break;default:Ve=b?Y.createElement(Uu,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}})):Y.createElement(Vu,M({},B,{onSelect:function(e,t){Ae(e),Le(e,t)}}))}var He,Ue;ge||(He=rd(r,F,S),Ue=id({prefixCls:r,components:k,needConfirmButton:se,okDisabled:!Ee||p&&p(Ee),locale:o,showNow:y,onNow:se&&function(){var e=s.getNow(),t=Hl(s.getHour(e),s.getMinute(e),s.getSecond(e),ce?ie:1,le?ae:1,ue?j:1);Le(Bl(s,e,t[0],t[1],t[2]),`submit`)},onOk:function(){Ee&&(Le(Ee,`submit`,!0),te&&te(Ee))}}));var We;if(x&&F===`date`&&g===`date`&&!b){var Ge=s.getNow(),Ke=`${r}-today-btn`,qe=p&&p(Ge);We=Y.createElement(`a`,{className:(0,Wl.default)(Ke,qe&&`${Ke}-disabled`),"aria-disabled":qe,onClick:function(){qe||Le(Ge,`mouse`,!0)}},o.today)}return Y.createElement(Il.Provider,{value:d(d({},de),{},{mode:F,hideHeader:`hideHeader`in e?C:de.hideHeader,hidePrevBtn:ye&&be===`right`,hideNextBtn:ye&&be===`left`})},Y.createElement(`div`,{tabIndex:v,className:(0,Wl.default)(`${r}-panel`,i,(t={},I(t,`${r}-panel-has-range`,xe&&xe[0]&&xe[1]),I(t,`${r}-panel-has-range-hover`,Se&&Se[0]&&Se[1]),I(t,`${r}-panel-rtl`,ne===`rtl`),t)),style:a,onKeyDown:ze,onBlur:Be,onMouseDown:ee,ref:pe},Ve,He||Ue||We?Y.createElement(`div`,{className:`${r}-footer`},He,Ue,We):null))}F();var sd={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function cd(e){var t,n=e.prefixCls,r=e.popupElement,i=e.popupStyle,a=e.visible,o=e.dropdownClassName,s=e.dropdownAlign,c=e.transitionName,l=e.getPopupContainer,u=e.children,d=e.range,f=e.popupPlacement,p=e.direction,m=`${n}-dropdown`;return Y.createElement(g,{showAction:[],hideAction:[],popupPlacement:function(){return f===void 0?p===`rtl`?`bottomRight`:`bottomLeft`:f}(),builtinPlacements:sd,prefixCls:m,popupTransitionName:c,popup:r,popupAlign:s,popupVisible:a,popupClassName:(0,Wl.default)(o,(t={},I(t,`${m}-range`,d),I(t,`${m}-rtl`,p===`rtl`),t)),popupStyle:i,getPopupContainer:l},u)}Ae(),Pe();function ld(e){var t=e.open,n=e.value,r=e.isClickOutside,i=e.triggerOpen,a=e.forwardKeyDown,o=e.onKeyDown,s=e.blurToCancel,c=e.onSubmit,l=e.onCancel,u=e.onFocus,d=e.onBlur,f=e.currentFocusedKey,p=e.key,m=p===void 0?`start`:p,h=P((0,Y.useState)(!1),2),g=h[0],_=h[1],v=P((0,Y.useState)(!1),2),y=v[0],b=v[1],x=(0,Y.useRef)(),S=(0,Y.useRef)(!1),C=(0,Y.useRef)(!1),w=(0,Y.useRef)(!1);return(0,Y.useEffect)(function(){C.current=!1},[t]),(0,Y.useEffect)(function(){C.current=!0},[n]),(0,Y.useEffect)(function(){return nu(function(e){var n=r(ru(e));t?n?(!y||n)&&i(!1):(S.current=!0,requestAnimationFrame(function(){S.current=!1})):y&&!n&&(S.current=!0)})}),(0,Y.useEffect)(function(){return function(){return clearTimeout(x.current)}},[]),[{onMouseDown:function(){_(!0),i(!0)},onKeyDown:function(e){if(o(e,function(){w.current=!0}),!w.current){switch(e.which){case L.ENTER:t?c()!==!1&&_(!0):i(!0),e.preventDefault();return;case L.TAB:g&&t&&!e.shiftKey?(_(!1),e.preventDefault()):!g&&t&&!a(e)&&e.shiftKey&&(_(!0),e.preventDefault());return;case L.ESC:_(!0),l();return}!t&&![L.SHIFT].includes(e.which)?i(!0):g||a(e)}},onFocus:function(e){_(!0),b(!0),f&&(f.current=m),clearTimeout(x.current),u&&u(e)},onBlur:function(e){if(S.current||!r(document.activeElement)){S.current=!1;return}s?setTimeout(function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&l()},0):t&&(i(!1),C.current&&c()),b(!1),f?(f.current=``,x.current=setTimeout(function(){f.current||d?.(e)},100)):d?.(e)}},{focused:y,typing:g}]}Ae();function ud(e){var t=e.valueTexts,n=e.onTextChange,r=P(Y.useState(``),2),i=r[0],a=r[1],o=Y.useRef([]);o.current=t;function s(e){a(e),n(e)}function c(){a(o.current[0])}return Y.useEffect(function(){t.every(function(e){return e!==i})&&c()},[t.join(`||`)]),[i,s,c]}oe(),y();function dd(e,t){var n=t.formatList,r=t.generateConfig,i=t.locale;return _(function(){if(!e)return[[``],``];for(var t=``,a=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(c.current),t){s(e);return}c.current=requestAnimationFrame(function(){s(e)})}var u=P(dd(o,{formatList:n,generateConfig:r,locale:i}),2)[1];function d(e){l(e)}function f(){l(null,arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)}return(0,Y.useEffect)(function(){f(!0)},[e]),(0,Y.useEffect)(function(){return function(){return cancelAnimationFrame(c.current)}},[]),[u,d,f]}x(),pe(),ae(),m(),C(),k(),F(),h(),Ae(),x(),re();function pd(e){var t,n=e.prefixCls,r=n===void 0?`rc-picker`:n,i=e.id,a=e.tabIndex,o=e.style,s=e.className,c=e.dropdownClassName,l=e.dropdownAlign,u=e.popupStyle,f=e.transitionName,p=e.generateConfig,m=e.locale,h=e.inputReadOnly,g=e.allowClear,_=e.autoFocus,v=e.showTime,y=e.picker,b=y===void 0?`date`:y,x=e.format,S=e.use12Hours,C=e.value,T=e.defaultValue,E=e.open,D=e.defaultOpen,ee=e.defaultOpenValue,O=e.suffixIcon,te=e.clearIcon,k=e.disabled,ne=e.disabledDate,re=e.placeholder,ie=e.getPopupContainer,A=e.pickerRef,ae=e.panelRender,oe=e.onChange,j=e.onOpenChange,se=e.onFocus,ce=e.onBlur,le=e.onMouseDown,ue=e.onMouseUp,de=e.onMouseEnter,fe=e.onMouseLeave,pe=e.onContextMenu,he=e.onClick,ge=e.onKeyDown,_e=e.onSelect,ve=e.direction,ye=e.autoComplete,be=ye===void 0?`off`:ye,xe=e.inputRender,Se=Y.useRef(null),Ce=b===`date`&&!!v||b===`time`,we=Du(Ql(x,b,v,S)),Te=Y.useRef(null),Ee=Y.useRef(null),N=Y.useRef(null),De=P(me(null,{value:C,defaultValue:T}),2),Oe=De[0],ke=De[1],Ae=P(Y.useState(Oe),2),je=Ae[0],Me=Ae[1],Ne=Y.useRef(null),F=P(me(!1,{value:E,defaultValue:D,postState:function(e){return k?!1:e},onChange:function(e){j&&j(e),!e&&Ne.current&&Ne.current.onClose&&Ne.current.onClose()}}),2),Pe=F[0],Fe=F[1],L=P(dd(je,{formatList:we,generateConfig:p,locale:m}),2),R=L[0],z=L[1],Ie=P(ud({valueTexts:R,onTextChange:function(e){var t=xu(e,{locale:m,formatList:we,generateConfig:p});t&&(!ne||!ne(t))&&Me(t)}}),3),Le=Ie[0],Re=Ie[1],ze=Ie[2],Be=function(e){Me(e),ke(e),oe&&!gu(p,Oe,e)&&oe(e,e?bu(e,{generateConfig:p,locale:m,format:we[0]}):``)},Ve=function(e){k&&e||Fe(e)},B=function(e){return Pe&&Ne.current&&Ne.current.onKeyDown?Ne.current.onKeyDown(e):(w(!1,`Picker not correct forward KeyDown operation. Please help to fire issue about this.`),!1)},He=function(){var e=[...arguments];he?.apply(void 0,e),Se.current&&(Se.current.focus(),Ve(!0))},Ue=P(ld({blurToCancel:Ce,open:Pe,value:Le,triggerOpen:Ve,forwardKeyDown:B,isClickOutside:function(e){return!au([Te.current,Ee.current,N.current],e)},onSubmit:function(){return!je||ne&&ne(je)?!1:(Be(je),Ve(!1),ze(),!0)},onCancel:function(){Ve(!1),Me(Oe),ze()},onKeyDown:function(e,t){ge?.(e,t)},onFocus:se,onBlur:ce}),2),We=Ue[0],Ge=Ue[1],Ke=Ge.focused,qe=Ge.typing;Y.useEffect(function(){Pe||(Me(Oe),!R.length||R[0]===``?Re(``):z!==Le&&ze())},[Pe,R]),Y.useEffect(function(){Pe||ze()},[b]),Y.useEffect(function(){Me(Oe)},[Oe]),A&&(A.current={focus:function(){Se.current&&Se.current.focus()},blur:function(){Se.current&&Se.current.blur()}});var Je=P(fd(Le,{formatList:we,generateConfig:p,locale:m}),3),Ye=Je[0],Xe=Je[1],Ze=Je[2],Qe=d(d({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),$e=Y.createElement(od,M({},Qe,{generateConfig:p,className:(0,Wl.default)(I({},`${r}-panel-focused`,!qe)),value:je,locale:m,tabIndex:-1,onSelect:function(e){_e?.(e),Me(e)},direction:ve,onPanelChange:function(t,n){var r=e.onPanelChange;Ze(!0),r?.(t,n)}}));ae&&($e=ae($e));var et=Y.createElement(`div`,{className:`${r}-panel-container`,onMouseDown:function(e){e.preventDefault()}},$e),tt;O&&(tt=Y.createElement(`span`,{className:`${r}-suffix`},O));var nt;g&&Oe&&!k&&(nt=Y.createElement(`span`,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),Be(null),Ve(!1)},className:`${r}-clear`,role:`button`},te||Y.createElement(`span`,{className:`${r}-clear-btn`})));var rt=d(d(d({id:i,tabIndex:a,disabled:k,readOnly:h||typeof we[0]==`function`||!qe,value:Ye||Le,onChange:function(e){Re(e.target.value)},autoFocus:_,placeholder:re,ref:Se,title:Le},We),{},{size:$l(b,we[0],p)},Ou(e)),{},{autoComplete:be}),it=xe?xe(rt):Y.createElement(`input`,rt),at=function(e,t){(t===`submit`||t!==`key`&&!Ce)&&(Be(e),Ve(!1))},ot=ve===`rtl`?`bottomRight`:`bottomLeft`;return Y.createElement(Il.Provider,{value:{operationRef:Ne,hideHeader:b===`time`,panelRef:Te,onSelect:at,open:Pe,defaultOpenValue:ee,onDateMouseEnter:Xe,onDateMouseLeave:Ze}},Y.createElement(cd,{visible:Pe,popupElement:et,popupStyle:u,prefixCls:r,dropdownClassName:c,dropdownAlign:l,getPopupContainer:ie,transitionName:f,popupPlacement:ot,direction:ve},Y.createElement(`div`,{ref:N,className:(0,Wl.default)(r,s,(t={},I(t,`${r}-disabled`,k),I(t,`${r}-focused`,Ke),I(t,`${r}-rtl`,ve===`rtl`),t)),style:o,onMouseDown:le,onMouseUp:ue,onMouseEnter:de,onMouseLeave:fe,onContextMenu:pe,onClick:He},Y.createElement(`div`,{className:(0,Wl.default)(`${r}-input`,I({},`${r}-input-placeholder`,!!Ye)),ref:Ee},it,tt,nt))))}var md=function(e){u(n,e);var t=ye(n);function n(){var e;O(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),e.pickerRef=Y.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return ge(n,[{key:`render`,value:function(){return Y.createElement(pd,M({},this.props,{pickerRef:this.pickerRef}))}}]),n}(Y.Component);function hd(e,t,n){var r=e.picker,i=e.locale,a=e.selectedValue,o=e.disabledDate,s=e.disabled,c=e.generateConfig,l=X(a,0),u=X(a,1);function d(e){return c.locale.getWeekFirstDate(i.locale,e)}function f(e){var t=c.getYear(e),n=c.getMonth(e);return t*100+n}function p(e){var t=c.getYear(e),n=uu(c,e);return t*10+n}return[Y.useCallback(function(e){if(o&&o(e))return!0;if(s[1]&&u)return!pu(c,e,u)&&c.isAfter(e,u);if(t&&u)switch(r){case`quarter`:return p(e)>p(u);case`month`:return f(e)>f(u);case`week`:return d(e)>d(u);default:return!pu(c,e,u)&&c.isAfter(e,u)}return!1},[o,s[1],u,t]),Y.useCallback(function(e){if(o&&o(e))return!0;if(s[0]&&l)return!pu(c,e,u)&&c.isAfter(l,e);if(n&&l)switch(r){case`quarter`:return p(e)0&&arguments[0]!==void 0?arguments[0]:!1,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null;ct&&Bt&&Bt[0]&&Bt[1]&&h.isAfter(Bt[1],Bt[0])&&(r=Bt);var i=C;if(C&&Ne(C)===`object`&&C.defaultValue){var o=C.defaultValue;i=d(d({},C),{},{defaultValue:X(o,B)||void 0})}var s=null;return A&&(s=function(e,t){return A(e,t,{range:B?`end`:`start`})}),Y.createElement(Iu.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:Lt||Qe,hoverRangedValue:r}},Y.createElement(od,M({},e,n,{dateRender:s,showTime:i,mode:tt[B],generateConfig:h,style:void 0,direction:ke,disabledDate:B===0?at:ot,disabledTime:function(e){return ie?ie(e,B===0?`start`:`end`):!1},className:(0,Wl.default)(I({},`${a}-panel-focused`,B===0?!rn:!ln)),value:X(Qe,B),locale:g,tabIndex:-1,onPanelChange:function(e,n){B===0&&Wt(!0),B===1&&Jt(!0),rt(ku(tt,n,B),ku(Qe,e,B));var r=e;t===`right`&&tt[B]===n&&(r=yu(r,n,h,-1)),Xe(r,B)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:B===0?X(Qe,1):X(Qe,0)})))}var gn=0,_n=0;if(B&&R.current&&Ie.current&&L.current){gn=R.current.offsetWidth+Ie.current.offsetWidth;var vn=ze.current.offsetLeft>gn?ze.current.offsetLeft-gn:ze.current.offsetLeft;L.current.offsetWidth&&ze.current.offsetWidth&&gn>L.current.offsetWidth-ze.current.offsetWidth-(ke===`rtl`?0:vn)&&(_n=gn)}var yn=ke===`rtl`?{right:gn}:{left:gn};function bn(){var e,t=rd(a,tt[B],pe),n=id({prefixCls:a,components:De,needConfirmButton:F,okDisabled:!X(Qe,B)||re&&re(Qe[B]),locale:g,rangeList:mn,onOk:function(){X(Qe,B)&&(vt(Qe,B),Ee&&Ee(Qe))}});if(S!==`time`&&!C){var r=Ye(B),i=yu(r,S,h),o=tt[B]===S,s=hn(o?`left`:!1,{pickerValue:r,onPickerValueChange:function(e){Xe(e,B)}}),c=hn(`right`,{pickerValue:i,onPickerValueChange:function(e){Xe(yu(e,S,h,-1),B)}});e=ke===`rtl`?Y.createElement(Y.Fragment,null,c,o&&s):Y.createElement(Y.Fragment,null,s,o&&c)}else e=hn();var l=Y.createElement(Y.Fragment,null,Y.createElement(`div`,{className:`${a}-panels`},e),(t||n)&&Y.createElement(`div`,{className:`${a}-footer`},t,n));return ae&&(l=ae(l)),Y.createElement(`div`,{className:`${a}-panel-container`,style:{marginLeft:_n},ref:L,onMouseDown:function(e){e.preventDefault()}},l)}var xn=Y.createElement(`div`,{className:(0,Wl.default)(`${a}-range-wrapper`,`${a}-${S}-range-wrapper`),style:{minWidth:pt}},Y.createElement(`div`,{ref:ze,className:`${a}-range-arrow`,style:yn}),bn()),Sn;ce&&(Sn=Y.createElement(`span`,{className:`${a}-suffix`},ce));var Cn;se&&(X(Ke,0)&&!We[0]||X(Ke,1)&&!We[1])&&(Cn=Y.createElement(`span`,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Ke;We[0]||(t=ku(t,null,0)),We[1]||(t=ku(t,null,1)),vt(t,null),gt(!1,B)},className:`${a}-clear`},le||Y.createElement(`span`,{className:`${a}-clear-btn`})));var wn={size:$l(S,Be[0],h)},Tn=0,En=0;R.current&&z.current&&Ie.current&&(B===0?En=R.current.offsetWidth:(Tn=gn,En=z.current.offsetWidth));var Dn=ke===`rtl`?{right:Tn}:{left:Tn};return Y.createElement(Il.Provider,{value:{operationRef:Ue,hideHeader:S===`time`,onDateMouseEnter:Yt,onDateMouseLeave:Xt,hideRanges:!0,onSelect:function(e,t){var n=ku(Qe,e,B);t===`submit`||t!==`key`&&!F?(vt(n,B),B===0?Wt():Jt()):$e(n)},open:ct}},Y.createElement(cd,{visible:ct,popupElement:xn,popupStyle:l,prefixCls:a,dropdownClassName:u,dropdownAlign:p,getPopupContainer:m,transitionName:f,range:!0,direction:ke},Y.createElement(`div`,M({ref:Fe,className:(0,Wl.default)(a,`${a}-range`,c,(t={},I(t,`${a}-disabled`,We[0]&&We[1]),I(t,`${a}-focused`,B===0?nn:cn),I(t,`${a}-rtl`,ke===`rtl`),t)),style:s,onClick:un,onMouseEnter:Ce,onMouseLeave:we,onMouseDown:dn,onMouseUp:Se},Ou(e)),Y.createElement(`div`,{className:(0,Wl.default)(`${a}-input`,(n={},I(n,`${a}-input-active`,B===0),I(n,`${a}-input-placeholder`,!!Ut),n)),ref:R},Y.createElement(`input`,M({id:o,disabled:We[0],readOnly:de||typeof Be[0]==`function`||!rn,value:Ut||kt,onChange:function(e){At(e.target.value)},autoFocus:v,placeholder:X(_,0)||``,ref:Le},en,wn,{autoComplete:Me}))),Y.createElement(`div`,{className:`${a}-range-separator`,ref:Ie},D),Y.createElement(`div`,{className:(0,Wl.default)(`${a}-input`,(r={},I(r,`${a}-input-active`,B===1),I(r,`${a}-input-placeholder`,!!Kt),r)),ref:z},Y.createElement(`input`,M({disabled:We[1],readOnly:de||typeof Be[0]==`function`||!ln,value:Kt||Nt,onChange:function(e){Pt(e.target.value)},placeholder:X(_,1)||``,ref:Re},on,wn,{autoComplete:Me}))),Y.createElement(`div`,{className:`${a}-active-bar`,style:d(d({},Dn),{},{width:En,position:`absolute`})}),Sn,Cn)))}var Sd=function(e){u(n,e);var t=ye(n);function n(){var e;O(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),e.pickerRef=Y.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return ge(n,[{key:`render`,value:function(){return Y.createElement(xd,M({},this.props,{pickerRef:this.pickerRef}))}}]),n}(Y.Component),Cd=md;k();function wd(e){return Y.createElement(R,M({size:`small`,type:`primary`},e))}k();function Td(e){return Y.createElement(Rt,M({color:`blue`},e))}var Ed={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`};h();var Dd=Y.forwardRef(function(e,t){return Y.createElement(j,d(d({},e),{},{ref:t,icon:Ed}))}),Od={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`};h();var kd=Y.forwardRef(function(e,t){return Y.createElement(j,d(d({},e),{},{ref:t,icon:Od}))}),Ad={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`};h();var jd=Y.forwardRef(function(e,t){return Y.createElement(j,d(d({},e),{},{ref:t,icon:Ad}))});function Md(e,t,n){return n===void 0?e===`year`&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:e===`quarter`&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:e===`month`&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:e===`week`&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:e===`time`&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder:n}function Nd(e,t,n){return n===void 0?e===`year`&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:e===`quarter`&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:e===`month`&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:e===`week`&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:e===`time`&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder:n}function Pd(e,t){var n={adjustX:1,adjustY:1};switch(t){case`bottomLeft`:return{points:[`tl`,`bl`],offset:[0,4],overflow:n};case`bottomRight`:return{points:[`tr`,`br`],offset:[0,4],overflow:n};case`topLeft`:return{points:[`bl`,`tl`],offset:[0,-4],overflow:n};case`topRight`:return{points:[`br`,`tr`],offset:[0,-4],overflow:n};default:return{points:e===`rtl`?[`tr`,`br`]:[`tl`,`bl`],offset:[0,4],overflow:n}}}F(),k();var Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t={XMLType:`HISTO`,...e};r.RECORD.children.push(t)}),n.indicators&&n.indicators.forEach(e=>{let t=[];e?.hasOwnProperty(`keys`)&&(t=e.keys?.map(e=>({XMLType:`CLE`,...e})));let n={XMLType:`INDICATEUR`,...e,children:t};r.RECORD.children.push(n)}),n.lits&&n.lits.forEach(e=>{let t={XMLType:`LIT`,...e};r.RECORD.children.push(t)}),n.etages&&n.etages.forEach(e=>{let t={XMLType:`ETAGE`,...e};r.RECORD.children.push(t)}),n.iqv&&n.iqv.forEach(e=>{let t={XMLType:`IQV`,...e};r.RECORD.children.push(t)}),Kt(r,!0)}function ef(e,t={}){let n=t.fields&&Array.isArray(t.fields)?t.fields:[];for(let r in e){let i;n&&(i=n.find(e=>e.dataKey===r));let a=e[r];i&&i.type===`date`&&(a=t.tableName===`t_provider_data_section`?e[r]?e[r].format(`YYY-MM-DD`):``:t.tableName===`t_finess`?e[r]?e[r].format(`YYYY-MM-DD`):``:e[r]?e[r].format(`DD-MM-YYYY`):``),a===!1&&(a=`0`),a===!0&&(a=`1`),a===void 0&&(a=``),r===`user_modified`&&(a===!0||a===`1`)?a=`M`:r===`p_cumul`&&(a===!0||a===`1`)?a=`C`:r===`p_detail`&&(a===!0||a===`1`)?a=`D`:(r.startsWith(`p_`)||r===`proratiser_conversion`)&&((a===!0||a===`1`)&&(a=`X`),(a===!1||a===`0`)&&(a=``)),e[r]=a}return e}function tf(e){let t=Buffer.from(e,`base64`),n=je.inflate(t);return new TextDecoder(`iso-8859-15`).decode(n)}var nf=(e,t={},n=[])=>{let r=t.fields;for(let t in e){let n;if(r&&Array.isArray(r)&&(n=r.find(e=>e.dataKey===t)),n&&n.type===`checkbox`&&e[t]===`0`&&(e[t]=!1),n&&n.type===`checkbox`&&[`1`,`M`,`C`,`D`,`X`].includes(e[t])&&(e[t]=!0),n&&n.type===`date`){let n=(0,Qd.default)(e[t],`DD-MM-YYYY`);n.isValid()||(n=(0,Qd.default)(e[t],`YYYY-MM-DD`),n.isValid()||(n=null)),e[t]=n}}if(e.description&&e.description.startsWith(`_c_`))try{let t=tf(e.description.substring(3));t.includes(`TEXTFORMAT`)&&(t=t.replace(/<\/?TEXTFORMAT[^>]*>|<\/?FONT[^>]*>|]*>|<\/LI[^>]*>/gm,``).replace(/<\/?B[^>]*>/g,`**`).replace(/<\/P[^>]*>/g,` +`).replace(/]*>/g,` + - `).replace(/'/g,`'`).replace(/\[/g,` (`).replace(/\]/g,` )`).replace(/"/g,`"`)),e.description=t}catch{}return t?.component===`MEDA`&&n.length&&(e.medecins_regroupes_oids=n.filter(t=>t.medecin_reference_id===e.oid).map(e=>e.oid).join(`, `)),e},rf=(e,t,n={})=>{let r=e.getElementsByTagName(`HTTP_SERVICE`)[0],i=A(r,`RECORD`),a=A(r,`REFRECORD`),o=A(r,`COMBO_POL`),s=A(r,`COMBO_SPI`),l=A(r,`COMBO_MDA`),u=A(r,`COMBO_SERVICE`),d=A(r,`COMBO_ETAGE`),f=A(r,`COMBO_MOIS`),p=A(r,`COMBO_CPT`),m=A(r,`COMBO_GRG`),h=A(r,`COMBO_DEP`),g=A(r,`COMBO_SPI`),_=A(r,`COMBO_TAU`),v=A(r,`COMBO_UM`),y=A(r,`COMBO_MED`),b=A(r,`COMBO_FAC`),x=A(r,`COMBO_FSO`),S=A(r,`COMBO_MVT_UF_SOIN`),C=A(r,`COMBO_FINESS`),w=A(r,`COMBO_MTR`),T=A(r,`COMBO_DMT`),E=A(r,`COMBO_ACTIVITE`),D=A(r,`COMBO_UMD`),ee=A(r,`COMBO_UMX`),O=A(r,`COMBO_SER`),te=A(r,`COMBO_QUA`),k=A(r,`COMBO_SAL`),ne=A(r,`COMBO_FROMSER`),re=A(r,`COMBO_TOSER`),ae=A(r,`COMBO_FROMQUA`),oe=A(r,`COMBO_TOQUA`),j=A(r,`COMBO_FROMDAT`),se=A(r,`COMBO_TODAT`),ce=A(r,`COMBO_JOURNAL`),le=A(r,`COMBO_SECTION`),ue=A(r,`COMBO_COMPTE`),de=A(r,`COMBO_SITE`),fe=A(r,`COMBO_ECH`),pe=A(r,`COMBO_CST`),me=A(r,`COMBO_FOU`),he=A(r,`COMBO_TAA`),ge=A(r,`COMBO_CONDITION`),M=A(r,`COMBO_BUDGET_CLE`),_e=A(r,`ARRAY_SEJ`),ve=[];_e.length&&(ve=A(_e[0],`RECORD`));let ye=A(r,`COMBO_TYPECOMPTA`),be=A(r,`COMBO_PRESTATION`),xe=A(r,`PRESTATAIRE`),Se=A(r,`ADDRECORD`),Ce={};Se.length&&(Ce=ie(Se[0]));let we=A(r,`COMBO_POP`)[0],Te=[];we&&(Te=A(we,`RECORD`),Te=Te.map(e=>{let t=ie(e);return{...t,label:t.texte,value:t.oid}}));let Ee=A(r,`COMBO_DEP`)[0],N=[];Ee&&(N=A(Ee,`RECORD`),N=N.map(e=>{let t=ie(e);return{...t,label:t.texte,value:t.oid}}));let De=A(r,`LIST_MDA`)[0],Oe=A(r,`LIST_MEDA`)[0],ke=[],Ae=[];De&&(ke=A(De,`RECORD`)),Oe&&(Ae=A(Oe,`RECORD`));let je=A(r,`LIST_CPO`)[0],P=[];je&&(P=A(je,`RECORD`));let Me=A(r,`LIST_GHM`)[0],Ne=[];Me&&(Ne=A(Me,`RECORD`));let F=A(r,`LIST_ART`)[0],I=[];F&&(I=A(F,`RECORD`));let Pe=A(r,`LIST_FOU`)[0],Fe=[];Pe&&(Fe=A(Pe,`RECORD`));let L=A(r,`ARRAY_RA9`),R=A(r,`ARRAY_RA1`),z={POL:Z(o),SPI:Z(s),MDA:Z(l),SERVICE:Z(u),ETAGE:Z(d),MOIS:Z(f),CPT:Z(p),PRESTATION:Z(be),TPY:Z(m),CPO:Z(h),MED:Z(g),TAU:Z(_),UM:Z(v),UM_MED:Z(y),FAC:Z(b),FSO:Z(x),MVT_UF_SOIN:Z(S),FINESS:Z(C),MTR:Z(w),DMT:Z(T),ACTIVITE:Z(E),UMD:Z(D),UMX:Z(ee),SER:Z(O),QUA:Z(te),PRESTATAIRE:c(xe),SAL:Z(k),FROMSER:Z(ne),TOSER:Z(re),FROMQUA:Z(ae),TOQUA:Z(oe),FROMDAT:Z(j),TODAT:Z(se),TYPECOMPTA:Z(ye),JOURNAL:Z(ce),SECTION:Z(le),COMPTE:Z(ue),SITE:Z(de),BUDGET_CLE:Z(M),FOU:Z(me),CONDITIONS:He(Z(ge)),ECH:Z(fe),CST:Z(pe),TAA:Z(he),SEJ:c(ve),RA9:Z(L),RA1:Z(R),DEP:N,POP:Te},Ie={MDA:c(ke),MEDA:c(Ae),CPO:c(P),GHM:c(Ne),ART:c(I),LFOU:c(Fe)},Le=c(i),Re=c(a);Le=Le.map((e,t)=>{let r={},a=A(i[t],`INDICATEUR`);a&&(r.indicators=of(a)),e.extraData=r;let o=A(i[t],`HISTO`);o&&(e.extraData.histos=c(o));let s=A(i[t],`LIT`);s&&(e.extraData.lits=c(s));let l=A(i[t],`ETAGE`);l&&(e.extraData.etages=c(l));let u=A(i[t],`IQV`);return u&&(e.extraData.iqv=c(u)),nf(e,n,Le)});let ze={},Be=A(r,`DIVERS`)[0];Be&&t===`t_rubriques`&&(ze.rubriques=ie(A(Be,`RECORD`)[0]));let Ve=A(r,`GENERAL_SETTINGS`);return Ve&&t===`t_expert_controle`&&!n.module&&(ze.expert=ie(Ve[0])),{records:Le,combos:z,listes:Ie,divers:ze,addRecord:Ce,refRecords:Re}},af=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=c(A(t,`RECORD`));return n.forEach(e=>{e.label=e.texte,e.value=e.oid}),n};function Z(e){let t=[];if(e&&e.length){let n=e[0];t=c(A(n,`RECORD`)),t=t.map(e=>({...e,label:e.texte??e.label,value:e.oid??e.data}))}return t}function of(e){return e.map((e,t)=>{let n=ie(e);n.key=t;let r=A(e,`CLE`);return r&&r.length&&(n.keys=r.map((e,t)=>{let n=ie(e);return n.key=t,n})),n})}var sf=async(e,t,n,r=``,i={})=>{let a={softCode:t,tableName:n,firstCall:`1`,getParam:r};return i.tableSection&&(a.tableSection=i.tableSection),rf(await Oe(pf(e),a),n,i)},cf=`SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri FROM base.t_territoires_sante UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, ' Sélectionnez une valeur...' as tri ORDER BY 3`,lf=async e=>af(await Oe(`modules/base/php/httpservice_getChoices.php`,{query:e})),uf=async(e,t,n,r,i,a=!0)=>{await Oe(Sn(e),{softCode:t,tableName:n,action:i,propagate:a,recordNode:r})},df=async(e,t,n,r=null,i=null)=>{let a=Sn(e),o={softCode:n,tableName:t,action:i??`execute_rules`};r!==null&&(o.oids=r),await Oe(a,o)},ff=async(e,t,n)=>{await Oe(xn(e),{tableName:t,oids:n.join(`, `)})};function pf(e){switch(e){case`./CTI_BASE_TablesManager.swf`:return`modules/base/php/BASE_getTableRecords.php`;case`./CTI_ECO_TablesManager.swf`:return`modules/eco/php/httpService_tablesManager_getData.php`;case`./CTI_ACTI_TablesManager.swf`:return`modules/activite/php/ACTI_getTableRecords.php`;case`./CTI_PMSI_TablesManager.swf`:return`modules/pmsi/php/PMSI_getTableRecords.php`;case`./CTI_RH_TablesManager.swf`:return`modules/rh/php/httpService_tablesManager_getData.php`;case`./CTI_PMSISSR_TablesManager.swf`:return`modules/pmsissr/php/PMSISSR_getTableRecords.php`;case`./CTI_COMPTA_TablesManager.swf`:return`modules/compta/php/COMPTA_getTableRecords.php`;case`./CTI_SSAE_TablesManager.swf`:return`modules/ssae/php/SSAE_getTableRecords.php`;case`./CTI_DPI_TablesManager.swf`:return`modules/dpi/php/DPI_getTableRecords.php`;case`./CTI_ACTI_ConsoManager.swf`:return`modules/activite/php/httpService_ACTI_consoManager_getData.php`;default:return}}var mf={all:[`tables`],lists:()=>[...mf.all,`list`],list:(e,t,n,r)=>[...mf.all,`list`,e,t,n,r],choices:e=>[...mf.all,`choices`,e]},hf=(e,t,n,r=``,i={})=>st({queryKey:mf.list(e,t,n,r),queryFn:()=>sf(e,t,n,r,i),enabled:!!e&&!!t&&!!n}),gf=(e,t,n,r=``,i={})=>he(hf(e,t,n,r,i)),_f=e=>st({queryKey:mf.choices(e),queryFn:()=>lf(e),enabled:!!e}),vf=e=>he(_f(e));function yf(){let e=fe();return ot({mutationFn:({swf:e,softCode:t,tableName:n,recordXml:r,propagate:i})=>uf(e,t,n,r,`save`,i),meta:{successMessage:`Enregistrement effectué`,errorMessage:`Erreur lors de l'enregistrement`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}function bf(){let e=fe();return ot({mutationFn:({swf:e,softCode:t,tableName:n,recordXml:r})=>uf(e,t,n,r,`copy`),meta:{successMessage:`Entrée copiée`,errorMessage:`Erreur lors de la copie`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}function xf(){let e=fe();return ot({mutationFn:({swf:e,softCode:t,tableName:n,recordXml:r})=>uf(e,t,n,r,`delete`),meta:{successMessage:`Entrée supprimée`,errorMessage:`Erreur lors de la suppression`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}function Sf(){let e=fe();return ot({mutationFn:({swf:e,softCode:t,tableName:n,recordXml:r})=>uf(e,t,n,r,`purge_history`),meta:{successMessage:`Historique effacé`,errorMessage:`Erreur lors de la purge de l'historique`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}function Cf(){let e=fe();return ot({mutationFn:({swf:e,tableName:t,softCode:n,oids:r,execute:i})=>df(e,t,n,r,i),meta:{successMessage:`Règles exécutées`,errorMessage:`Erreur lors de l'exécution des règles`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}function wf(){let e=fe();return ot({mutationFn:({swf:e,tableName:t,refs:n})=>ff(e,t,n),meta:{successMessage:`Import terminé`,errorMessage:`Erreur lors de l'import des références`},onSettled:async()=>{await e.invalidateQueries({queryKey:mf.lists()})}})}var Tf=[{title:`Code`,dataKey:`code`,width:75,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`}],Ef={POL:{tableName:`t_pole`,title:`Gestion Poles`,component:`common`,addButton:!0,fields:[...Tf,{title:`Nombre Références (règles)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}],visible:!0},POR:{tableName:`t_pole_rule`,title:`Gestion règles poles`,component:`rules`,addButton:!0,execute:{label:`Executer les règles`,action:`POR_execute_rules`},fields:[{title:`Priorité`,dataKey:`priorite`,type:`input`,default:`5000`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Code règle`,dataKey:`code`,type:`input`,editable:!1,hidden:!0},{title:`Pole`,dataKey:`pole_texte`,editVisible:!1},{title:`Règles`,dataKey:`rule_resume`,type:`input`,editVisible:!1},{title:`Pole`,dataKey:`pole_id`,type:`select`,selectOptionsKey:`POL`,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole02_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux02`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole03_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux03`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole04_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux04`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole05_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux05`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole06_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux06`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole07_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux07`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole08_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux08`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole09_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux09`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole10_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux10`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole11_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`},{dataKey:`taux11`,type:`input`,editVisible:!1,hidden:!0,comptaExtraParams:`taux`},{dataKey:`pole12_id`,type:`select`,editVisible:!1,hidden:!0,comptaExtraParams:`pole`}],comptaExtraParams:!0,visible:!0,extraFields:!0},SPI:{tableName:`t_specialites_medecin`,title:`Gestion Spécialités internes des médecins`,component:`common`,addButton:!0,fields:[...Tf,{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Nombre Références (médecins)`,dataKey:`nbref`,type:`input`,editVisible:!1}],visible:!0},MED:{tableName:`t_medecins`,title:`Gestion Référentiel Médecins`,component:`MED`,addButton:!0,doubleFilter:!0,sejoursActFilter:!0,saveWithoutCalc:!0,addSearchFields:[`nom`,`prenom`],fields:[{title:`Code`,dataKey:`code`,type:`input`},{title:`Nom`,dataKey:`nom`,type:`input`},{title:`Prénom`,dataKey:`prenom`,type:`input`},{title:`Spécialité interne`,dataKey:`specialite_interne_texte`,editVisible:`false`},{title:`Spécialité interne`,dataKey:`specialite_interne_id`,type:`select`,hidden:!0,selectOptionsKey:`SPI`},{title:`Nº ADELI`,dataKey:`numero_ordre`,type:`input`},{title:`RPPS`,dataKey:`code_rpps`,type:`input`},{title:`Identifiant groupe`,dataKey:`identifiant_groupe`,type:`input`},{title:`Etablissements`,dataKey:`ets`,type:`input`,editable:!1},{title:`Références (médecins administratifs)`,dataKey:`nbref`,type:`input`,editable:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``},{title:`Références (séjours)`,dataKey:`nbsej`,type:`input`,editable:!1},{title:`Références (actes)`,dataKey:`nbact`,type:`input`,editable:!1},{title:`Doublon`,dataKey:`doublon`,type:`input`,editable:!1,editVisible:!1}],visible:!0},BUD:{tableName:`t_budget`,title:`Gestion Budgets`,addButton:!0,component:`BUD`,fields:[...Tf,{title:`Date début`,dataKey:`date_debut`,type:`date`},{title:`Date fin`,dataKey:`date_fin`,type:`date`}],visible:!0,modalLabel:`Gestion des indicateurs`},BUC:{tableName:`t_budget_cle`,title:`Gestion Clés budgétaires`,component:`common`,addButton:!0,fields:[...Tf,{title:`Texte court`,dataKey:`texte_court`,type:`input`}],visible:!0},BUR:{tableName:`t_budget_cle_rule`,title:`Gestion Règles d'affectation aux Clés budgétaires`,component:`rules`,addButton:!0,execute:{label:`Executer les règles`,action:`execute_rules`},fields:[...Tf,{title:`Priorite`,dataKey:`priorite`,type:`input`,default:`5000`},{title:`Clé budgétaire`,dataKey:`budget_cle_texte`,type:`input`,editVisible:!1},{title:`Clé budgétaire`,dataKey:`budget_cle_id`,type:`select`,selectOptionsKey:`BUDGET_CLE`,hidden:!0},{title:`Règles`,dataKey:`rule_resume`,type:`input`,editVisible:!1}],visible:!0,extraFields:!0},BUI:{tableName:`t_budget_cle_budget`,title:`Gestion Budgets`,component:`BUI_activite`,fields:[...Tf.map(e=>({...e,editable:!1})),{title:`Date début`,dataKey:`date_debut`,type:`input`,editVisible:!1},{title:`Date fin`,dataKey:`date_fin`,type:`input`,editVisible:!1}],visible:!0},VPA:{tableName:`t_validation_parametre`,title:`Validation nouveaux paramètres`,refUniquement:!1,component:`common`,fields:[{title:`oid`,dataKey:`oid`,type:`input`,hidden:!1,editVisible:!1},{title:`Table`,dataKey:`table_texte`,type:`input`,editable:!1},{title:`Code`,dataKey:`parametre_code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`parametre_texte`,type:`input`,editable:!1},{title:`Date`,dataKey:`parametre_date`,type:`input`,editable:!1},{title:`Validé`,dataKey:`parametre_valide`,type:`checkbox`,hidden:!0}],visible:!0}},Df=(e,t)=>{switch(e){case`POR`:return Of(e,t);case`PER`:return Of(e,t);case`BUR`:return Of(e,t);case`FAR`:return Of(e,t);case`FSR`:return Of(e,t);default:break}};function Of(e,t){switch(t){case`iCTI_activite`:let t=[{title:`Type séjour`,dataKey:`liste_type_sejour`,type:`input`,hidden:!0,tab:!0},{title:`Spécialité`,dataKey:`liste_specialite`,type:`input`,hidden:!0,tab:!0},{title:`Médecins`,dataKey:`liste_medecin`,type:`input`,hidden:!0,tab:!0},{title:`Services (S)`,dataKey:`liste_service`,type:`input`,hidden:!0,tab:!0},{title:e===`BUR`?`Activite`:`Etages (S)`,dataKey:e===`BUR`?`liste_activite`:`liste_etage`,type:`input`,hidden:!0,tab:!0},{title:`Unité fonctionnelle (S)`,dataKey:e===`BUR`?`liste_uf`:`liste_unite_fonctionnelle`,type:`input`,hidden:!0,tab:!0},{title:`Actes`,dataKey:`liste_acte`,type:`input`,hidden:!0,tab:!0},{title:`Rubriques`,dataKey:`liste_rubrique`,type:`input`,hidden:!0,tab:!0},{title:`GHM`,dataKey:`liste_ghm`,type:`input`,hidden:!0,tab:!0},{title:`Sauf GHM`,dataKey:`liste_sauf_ghm`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostic principal`,dataKey:`liste_diagnostic_principal`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostique relié`,dataKey:`liste_diagnostic_relie`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostique associé`,dataKey:`liste_diagnostic_associe`,type:`input`,hidden:!0,tab:!0},{title:`FINESS`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0},e!==`BUR`&&{title:`Prestations`,dataKey:`liste_prestation`,type:`input`,hidden:!0,tab:!0}];return e===`CAR`?t.push({title:`Sauf Préstation`,dataKey:`liste_sauf_prestation`,type:`input`,hidden:!0,tab:!0},{title:`Compte Produit`,dataKey:`liste_compte_produit`,type:`input`,hidden:!0,tab:!0},{title:`Sauf Compte Produit`,dataKey:`liste_sauf_compte_produit`,type:`input`,hidden:!0,tab:!0}):(e===`FAR`||e===`FSR`)&&t.push({title:`UF (E)`,dataKey:`liste_unite_fonctionnelle_entree`,type:`input`,hidden:!0,tab:!0},{title:`Etage (E)`,dataKey:`liste_etage_entree`,type:`input`,hidden:!0,tab:!0},{title:`Service (E)`,dataKey:`liste_service_entree`,type:`input`,hidden:!0,tab:!0}),t;case`iCTI_rh`:let n=[{title:`Service`,dataKey:`liste_service`,type:`input`,hidden:!0,tab:!0},{title:`Spécialité`,dataKey:`liste_specialite`,type:`input`,hidden:!0,tab:!0},{title:`Section analytique`,dataKey:`liste_section_analytique`,type:`input`,hidden:!0,tab:!0},{title:`Section paie`,dataKey:`liste_section_analytique_paie`,type:`input`,hidden:!0,tab:!0},{title:`Qualification`,dataKey:`liste_qualification`,type:`input`,hidden:!0,tab:!0},{title:`Grille`,dataKey:`liste_grille`,type:`input`,hidden:!0,tab:!0},{title:`Code emploi`,dataKey:`liste_code_emploi`,type:`input`,hidden:!0,tab:!0},{title:`Catégories socio professionnelle`,dataKey:`liste_categorie_socio_professionnelle`,type:`input`,hidden:!0,tab:!0},{title:`FINESS`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0},{title:`Etablissement`,dataKey:`liste_etablissement`,type:`input`,hidden:!0,tab:!0}];return e===`PER`&&n.push({title:`Statut`,dataKey:`liste_statut`,type:`input`,hidden:!0,tab:!0}),e===`POR`&&n.push({title:`Service Planning`,dataKey:`liste_service_planning`,type:`input`,hidden:!0,tab:!0}),n;case`iCTI_compta`:return[{title:`Compte`,dataKey:`liste_compte`,type:`input`,hidden:!0,tab:!0},{title:`Sauf Compte`,dataKey:`liste_sauf_compte`,type:`input`,hidden:!0,tab:!0},{title:`Journal`,dataKey:`liste_journal`,type:`input`,hidden:!0,tab:!0},{title:`Sauf journal`,dataKey:`liste_sauf_journal`,type:`input`,hidden:!0,tab:!0},{title:`Section`,dataKey:`liste_section_analytique`,type:`input`,hidden:!0,tab:!0},{title:`Sauf section`,dataKey:`liste_sauf_section_analytique`,type:`input`,hidden:!0,tab:!0},{title:`Site`,dataKey:`liste_site`,type:`input`,hidden:!0,tab:!0},{title:`Exercice`,dataKey:`liste_exercice`,type:`input`,hidden:!0,tab:!0},{title:`Finess`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0},{title:`Mois comptable`,dataKey:`liste_mois_comptable`,type:`input`,hidden:!0,tab:!0},{title:`Mode`,dataKey:`special_calc`,type:`input`,editVisible:!1}];case`iCTI_eco`:return[{title:`FINESS`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0},{title:`Sites`,dataKey:`liste_site`,type:`input`,hidden:!0,tab:!0},{title:`Unité fonctionnelle`,dataKey:`liste_unite_fonctionnelle`,type:`input`,hidden:!0,tab:!0}];case`iCTI_qualite`:return[{title:`FINESS`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0},{title:`Unité fonctionnelle`,dataKey:`liste_unite_fonctionnelle`,type:`input`,hidden:!0,tab:!0}];default:break}}var Q=n(ue()),kf=n(An()),Af=(0,Y.createContext)(null),jf=()=>{let e=(0,Y.useContext)(Af);if(!e)throw Error(`useTablesParams must be used within TablesManager`);return e},$=a(),Mf=({form:e,record:t,handleValuesChange:n})=>{let{swf:r,softCode:i,tableName:a,choice:o,tableParams:s}=jf(),c=gf(r,i,a,o,s).data?.combos??{},[l,u]=(0,Y.useState)(`2020`);(0,Y.useEffect)(()=>{if(t?.date_ecriture){let n=t.date_ecriture.slice(0,4);u(n);let r={};for(let e=1;e<=12;e++)e<10?r[`mois_ventile_${e}`]=`${n}0${e}`:r[`mois_ventile_${e}`]=`${n}${e}`;e.setFieldsValue(r)}},[t,e]);let d=t=>{t===`D`?e.setFieldsValue({montant_debit:e.getFieldValue(`montant`),montant_credit:`0`}):e.setFieldsValue({montant_credit:e.getFieldValue(`montant`),montant_debit:`0`})},f=t=>{e.getFieldValue(`debit`)===`D`?e.setFieldsValue({montant_debit:t.target.value,montant_credit:`0`}):e.setFieldsValue({montant_credit:t.target.value,montant_debit:`0`})},p=()=>{let t=e.getFieldValue(`montant`),r=e.getFieldValue(`debit`),i=(Number(t)/12).toFixed(2),a=(Number(t)-11*Number(i)).toFixed(2).replace(`.`,`,`),o={};for(let e=1;e<12;e++)o[`montant_ventile_${e}`]=i.replace(`.`,`,`);o.montant_ventile_12=a,o.total=t,r===`D`?o.montant_credit=`0`:o.montant_debit=`0`,e.setFieldsValue(o),n()},m=t=>{let n=t.slice(0,4);u(t.slice(0,4));let r={};for(let e=1;e<=12;e++){let t=`${n}${e}`;e<10&&(t=`${n}0${e}`),r[`mois_ventile_${e}`]=t}e.setFieldsValue(r)},h=()=>{let t=0,n=e.getFieldValue(`debit`),r=e.getFieldsValue();for(let e=1;e<=12;e++)t+=Number(r[`montant_ventile_${e}`].replace(`,`,`.`));t=t.toFixed(2).replace(`.`,`,`);let i={total:t,montant_credit:t,montant:t,montant_debit:`0`};n===`D`&&(i.montant_debit=t,i.montant_credit=`0`),e.setFieldsValue(i)};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Mois Comptable`}),(0,$.jsx)(V.Item,{name:`mois_comptable`,children:(0,$.jsx)(z,{options:c.MOIS,onChange:m})})]}),(0,$.jsxs)(`span`,{children:[`Saisie le `,(0,Qd.default)().format(`YYYY-MM-DD`)]})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Site`}),(0,$.jsx)(V.Item,{name:`site_id`,children:(0,$.jsx)(z,{options:c.SITE})})]}),(0,$.jsx)(`div`,{className:`form-item`,children:(0,$.jsx)(V.Item,{name:`clinique_honoraire`,children:(0,$.jsx)(z,{options:[{label:`Clinique`,value:`C`},{label:`Honoraire`,value:`H`}]})})})]}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Journal`}),(0,$.jsx)(V.Item,{name:`journal_code`,children:(0,$.jsx)(z,{options:c.JOURNAL})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Compte`}),(0,$.jsx)(V.Item,{name:`compte_numero`,children:(0,$.jsx)(z,{style:{width:`200px`},options:c.COMPTE})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Section`}),(0,$.jsx)(V.Item,{name:`section_code`,children:(0,$.jsx)(z,{options:c.SECTION})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Texte`}),(0,$.jsx)(V.Item,{name:`texte`,children:(0,$.jsx)(N.TextArea,{})})]})}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Montant`}),(0,$.jsx)(V.Item,{name:`debit`,children:(0,$.jsx)(z,{options:[{label:`Débit`,value:`D`},{label:`Crédit`,value:`C`}],onChange:d})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{name:`montant`,children:(0,$.jsx)(N,{onChange:f})}),(0,$.jsx)(R,{type:`primary`,onClick:p,children:`Ventiler`}),(0,$.jsx)(V.Item,{name:`montant_credit`,hidden:!0,children:(0,$.jsx)(N,{})}),(0,$.jsx)(V.Item,{name:`montant_debit`,hidden:!0,children:(0,$.jsx)(N,{})})]})]}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Report automatique`}),(0,$.jsx)(V.Item,{name:`report_automatique_mois_suivant`,valuePropName:`checked`,children:(0,$.jsx)(Vt,{})})]})}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Ventilation`}),(0,$.jsx)(`span`,{className:`second-label`,children:`Janvier ${l}`}),(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_1`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(V.Item,{name:`montant_ventile_1`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_2`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Février ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_2`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_3`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Mars ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_3`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_4`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Avril ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_4`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_5`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Mai ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_5`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_6`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Juin ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_6`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_7`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`first-label`}),(0,$.jsx)(`span`,{className:`second-label`,children:`Juillet ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_7`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_8`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Août ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_8`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_9`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Septembre ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_9`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_10`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Octobre ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_10`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_11`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Novembre ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_11`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(V.Item,{hidden:!0,name:`mois_ventile_12`,children:(0,$.jsx)(N,{})}),(0,$.jsx)(`span`,{className:`second-label`,children:`Décembre ${l}`}),(0,$.jsx)(V.Item,{name:`montant_ventile_12`,children:(0,$.jsx)(N,{style:{width:`80px`},onChange:h})})]})]}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Total`}),(0,$.jsx)(V.Item,{name:`total`,children:(0,$.jsx)(N,{disabled:!0})})]})})]})};Mf.propTypes={form:Q.default.object,record:Q.default.object,handleValuesChange:Q.default.func};var Nf=({form:e,record:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s=gf(n,r,i,a,o).data?.combos??{};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Type`}),(0,$.jsx)(V.Item,{name:`est_balance`,children:(0,$.jsx)(z,{options:[{label:`Ecritures`,value:``},{label:`Balance mensuelle`,value:`M`},{label:`Balance exercice`,value:`X`}]})})]})}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Site`}),(0,$.jsx)(V.Item,{name:`site_id`,children:(0,$.jsx)(z,{options:s.SITE})})]}),(0,$.jsx)(`div`,{className:`form-item`,children:(0,$.jsx)(V.Item,{name:`clinique_honoraire`,children:(0,$.jsx)(z,{options:[{label:`Clinique`,value:`C`},{label:`Honoraire`,value:`H`}]})})})]}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Texte`}),(0,$.jsx)(V.Item,{name:`texte`,children:(0,$.jsx)(N.TextArea,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Report automatique`}),(0,$.jsx)(V.Item,{name:`report_automatique_mois_suivant`,valuePropName:`checked`,children:(0,$.jsx)(Vt,{})})]})}),(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Coller les données:`}),(0,$.jsx)(V.Item,{name:`import_data`,children:(0,$.jsx)(N.TextArea,{autoSize:{minRows:8}})})]})})]})};Nf.propTypes={form:Q.default.object,record:Q.default.object};var Pf=({record:e,handleValuesChange:t,form:n})=>{let[r,i]=(0,Y.useState)(!1);return(0,Y.useEffect)(()=>{if(e){if((e.montant_credit||e.montant_debit)&&(e.montant_credit===`+0`?e.montantd_debit!==`+0`&&n.setFieldsValue({montant:e.montant_debit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:`D`}):n.setFieldsValue({montant:e.montant_credit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:`C`})),e.montant_ventile_1){let t=0;for(let r=1;r<=12;r++)t+=Number(e[`montant_ventile_${r}`].substring(1)),n.setFieldsValue({[`montant_ventile_${r}`]:e[`montant_ventile_${r}`].substring(1).replace(`.`,`,`)});n.setFieldsValue({total:t})}let t=!1,r=!1;e.est_import_data===`1`&&(t=!0),e.report_automatique_mois_suivant===`1`&&(r=!0),i(t),n.setFieldsValue({est_import_data:t,report_automatique_mois_suivant:r})}},[e,n]),(0,$.jsxs)(`div`,{className:`aju-editor`,children:[(0,$.jsx)(`div`,{className:`form-row`,children:(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:`Import Tableur`}),(0,$.jsx)(V.Item,{name:`est_import_data`,valuePropName:`checked`,children:(0,$.jsx)(Vt,{onChange:e=>{i(e.target.checked)}})})]})}),r===!0?(0,$.jsx)(Nf,{form:n,record:e,handleValuesChange:t}):(0,$.jsx)(Mf,{form:n,record:e,handleValuesChange:t})]})};Pf.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func,form:Q.default.object};var Ff=r((e=>{var t=Zt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(i());function r(e){var t=n.useRef();return t.current=e,n.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}})),If=r((e=>{var t=Nt().default,n=Zt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.useLayoutUpdateEffect=e.default=void 0;var r=n(i()),a=(0,t(Qt()).default)()?r.useLayoutEffect:r.useEffect,o=function(e,t){var n=r.useRef(!0);a(function(){return e(n.current)},t),a(function(){return n.current=!1,function(){n.current=!0}},[])};e.useLayoutUpdateEffect=function(e,t){o(function(t){if(!t)return e()},t)},e.default=o})),Lf=r((e=>{var t=Zt().default,n=Nt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var r=n(mn()),a=t(i());function o(e){var t=a.useRef(!1),n=a.useState(e),i=(0,r.default)(n,2),o=i[0],s=i[1];a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(e,n){n&&t.current||s(e)}return[o,c]}})),Rf=r((e=>{var t=Nt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=s;var n=t(mn()),r=t(Ff()),i=If(),a=t(Lf());function o(e){return e!==void 0}function s(e,t){var s=t||{},c=s.defaultValue,l=s.value,u=s.onChange,d=s.postState,f=(0,a.default)(function(){return o(l)?l:o(c)?typeof c==`function`?c():c:typeof e==`function`?e():e}),p=(0,n.default)(f,2),m=p[0],h=p[1],g=l===void 0?m:l,_=d?d(g):g,v=(0,r.default)(u),y=(0,a.default)([g]),b=(0,n.default)(y,2),x=b[0],S=b[1];return(0,i.useLayoutUpdateEffect)(function(){var e=x[0];m!==e&&v(m,e)},[x]),(0,i.useLayoutUpdateEffect)(function(){o(l)||h(l)},[l]),[_,(0,r.default)(function(e,t){h(e,t),S([g],t)})]}})),zf=r((e=>{var t=Nt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.getMergedStatus=void 0,e.getStatusClassNames=i;var n=t($t()),r=t(E());(0,_n().tuple)(`warning`,`error`,``);function i(e,t,i){return(0,r.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},`${e}-status-success`,t===`success`),`${e}-status-warning`,t===`warning`),`${e}-status-error`,t===`error`),`${e}-status-validating`,t===`validating`),`${e}-has-feedback`,i))}e.getMergedStatus=function(e,t){return t||e}})),Bf=r((e=>{var t=Zt().default,n=Nt().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var r=n($t()),a=n(rn()),o=n(pn()),s=n(tn()),c=n(dn()),l=n(nn()),u=n(sn()),d=n(ln()),f=n(E()),p=t(i()),m=fn(),h=vn(),g=zf(),_=_n();function v(e,t,n){return t=(0,l.default)(t),(0,s.default)(e,(0,c.default)()?Reflect.construct(t,n||[],(0,l.default)(e).constructor):t.apply(e,n))}var y=(0,_.tuple)(`text`,`input`);function b(e){return!!(e.addonBefore||e.addonAfter)}e.default=function(e){(0,u.default)(t,e);function t(){return(0,a.default)(this,t),v(this,t,arguments)}return(0,o.default)(t,[{key:`renderClearIcon`,value:function(e){var t=this.props,n=t.value,i=t.disabled,a=t.readOnly,o=t.handleReset,s=t.suffix,c=!i&&!a&&n,l=`${e}-clear-icon`;return p.createElement(d.default,{onClick:o,onMouseDown:function(e){return e.preventDefault()},className:(0,f.default)((0,r.default)((0,r.default)({},`${l}-hidden`,!c),`${l}-has-suffix`,!!s),l),role:`button`})}},{key:`renderTextAreaWithClearIcon`,value:function(e,t,n){var i=this.props,a=i.value,o=i.allowClear,s=i.className,c=i.focused,l=i.style,u=i.direction,d=i.bordered,m=i.hidden,_=i.status,v=n.status,y=n.hasFeedback;if(!o)return(0,h.cloneElement)(t,{value:a});var x=(0,f.default)(`${e}-affix-wrapper`,`${e}-affix-wrapper-textarea-with-clear-btn`,(0,g.getStatusClassNames)(`${e}-affix-wrapper`,(0,g.getMergedStatus)(v,_),y),(0,r.default)((0,r.default)((0,r.default)((0,r.default)({},`${e}-affix-wrapper-focused`,c),`${e}-affix-wrapper-rtl`,u===`rtl`),`${e}-affix-wrapper-borderless`,!d),`${s}`,!b(this.props)&&s));return p.createElement(`span`,{className:x,style:l,hidden:m},(0,h.cloneElement)(t,{style:null,value:a}),this.renderClearIcon(e))}},{key:`render`,value:function(){var e=this;return p.createElement(m.FormItemInputContext.Consumer,null,function(t){var n=e.props,r=n.prefixCls,i=n.inputType,a=n.element;if(i===y[0])return e.renderTextAreaWithClearIcon(r,a,t)})}}]),t}(p.Component)})),Vf=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=n;var t=i();function n(e,n){var r=(0,t.useRef)([]),i=function(){r.current.push(setTimeout(function(){var t;e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&((t=e.current)==null||t.input.removeAttribute(`value`))}))};return(0,t.useEffect)(function(){return n&&i(),function(){return r.current.forEach(function(e){e&&clearTimeout(e)})}},[]),i}})),Hf=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasPrefixSuffix=t;function t(e){return!!(e.prefix||e.suffix||e.allowClear)}})),Uf=r((t=>{var n=Zt().default,r=Nt().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0,t.fixControlledValue=S,t.resolveOnChange=C,t.triggerFocus=w;var a=r($t()),o=r(Dt()),s=r(Xt()),c=r(ln()),l=r(E()),u=r((Ee(),e(we))),d=yn(),f=n(i()),p=cn(),m=r(on()),h=r(un()),g=fn(),_=gn(),v=zf();r(an());var y=r(Vf()),b=Hf(),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n=Zt().default,r=Nt().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var a=r(Xt()),o=r($t()),s=r(Dt()),c=r(mn()),l=r(en()),u=r(E()),d=r((Ce(),e(Te))),f=r(Rf()),p=r(hn()),m=n(i()),h=cn(),g=r(on()),_=r(un()),v=fn(),y=zf(),b=r(Bf()),x=Uf(),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ir&&(i=t),i}t.default=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.bordered,i=r===void 0?!0:r,T=e.showCount,E=T===void 0?!1:T,D=e.maxLength,ee=e.className,O=e.style,te=e.size,k=e.disabled,ne=e.onCompositionStart,re=e.onCompositionEnd,ie=e.onChange,A=e.onFocus,ae=e.onBlur,oe=e.status,j=S(e,[`prefixCls`,`bordered`,`showCount`,`maxLength`,`className`,`style`,`size`,`disabled`,`onCompositionStart`,`onCompositionEnd`,`onChange`,`onFocus`,`onBlur`,`status`]),se=m.useContext(h.ConfigContext),ce=se.getPrefixCls,le=se.direction,ue=m.useContext(_.default),de=m.useContext(g.default),fe=k??de,pe=m.useContext(v.FormItemInputContext),me=pe.status,he=pe.hasFeedback,ge=pe.isFormItemInput,M=pe.feedbackIcon,_e=(0,y.getMergedStatus)(me,oe),ve=m.useRef(null),ye=m.useRef(null),be=m.useState(!1),xe=(0,c.default)(be,2),Se=xe[0],Ce=xe[1],we=m.useState(!1),Te=(0,c.default)(we,2),Ee=Te[0],N=Te[1],De=m.useRef(),Oe=m.useRef(0),ke=(0,f.default)(j.defaultValue,{value:j.value}),Ae=(0,c.default)(ke,2),je=Ae[0],P=Ae[1],Me=j.hidden,Ne=function(e,t){j.value===void 0&&(P(e),t?.())},F=Number(D)>0,I=function(e){Ce(!0),De.current=je,Oe.current=e.currentTarget.selectionStart,ne?.(e)},Pe=function(e){Ce(!1);var t=e.currentTarget.value;F&&(t=w(Oe.current>=D+1||Oe.current===De.current?.length,De.current,t,D)),t!==je&&(Ne(t),(0,x.resolveOnChange)(e.currentTarget,e,ie,t)),re?.(e)},Fe=function(e){var t=e.target.value;!Se&&F&&(t=w(e.target.selectionStart>=D+1||e.target.selectionStart===t.length||!e.target.selectionStart,je,t,D)),Ne(t),(0,x.resolveOnChange)(e.currentTarget,e,ie,t)},L=function(e){N(!1),ae?.(e)},R=function(e){N(!0),A?.(e)};m.useEffect(function(){N(function(e){return!fe&&e})},[fe]);var z=function(e){var t;Ne(``),(t=ve.current)==null||t.focus(),(0,x.resolveOnChange)(ve.current?.resizableTextArea?.textArea,e,ie)},Ie=ce(`input`,n);m.useImperativeHandle(t,function(){return{resizableTextArea:ve.current?.resizableTextArea,focus:function(e){(0,x.triggerFocus)(ve.current?.resizableTextArea?.textArea,e)},blur:function(){return ve.current?.blur()}}});var Le=m.createElement(d.default,(0,s.default)({},(0,p.default)(j,[`allowClear`]),{disabled:fe,className:(0,u.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)({},`${Ie}-borderless`,!i),ee,ee&&!E),`${Ie}-sm`,ue===`small`||te===`small`),`${Ie}-lg`,ue===`large`||te===`large`),(0,y.getStatusClassNames)(Ie,_e)),style:E?{resize:O?.resize}:O,prefixCls:Ie,onCompositionStart:I,onChange:Fe,onBlur:L,onFocus:R,onCompositionEnd:Pe,ref:ve})),Re=(0,x.fixControlledValue)(je);!Se&&F&&(j.value===null||j.value===void 0)&&(Re=C(Re,D));var ze=m.createElement(b.default,(0,s.default)({disabled:fe,focused:Ee},j,{prefixCls:Ie,direction:le,inputType:`text`,value:Re,element:Le,handleReset:z,ref:ye,bordered:i,status:oe,style:E?void 0:O}));if(E||he){var Be=(0,l.default)(Re).length,Ve=``;return Ve=(0,a.default)(E)===`object`?E.formatter({value:Re,count:Be,maxLength:D}):`${Be}${F?` / ${D}`:``}`,m.createElement(`div`,{hidden:Me,className:(0,u.default)(`${Ie}-textarea`,(0,o.default)((0,o.default)((0,o.default)({},`${Ie}-textarea-rtl`,le===`rtl`),`${Ie}-textarea-show-count`,E),`${Ie}-textarea-in-form-item`,ge),(0,y.getStatusClassNames)(`${Ie}-textarea`,_e,he),ee),style:O,"data-count":Ve},ze,he&&m.createElement(`span`,{className:`${Ie}-textarea-suffix`},M))}return ze})}))()),Gf=new Date().getFullYear(),Kf=[];for(let e=Gf-4;e<=Gf+2;e++)Kf.push(e);var qf={DPI_CST:[{label:``,value:``},{label:`Liste de valeurs selon échelle`,value:`LIST-ECHELLE`},{label:`Liste de valeurs numériques`,value:`LIST-NUMERIC`}],DPI_SPE:[{label:``,value:``},{label:`Spécialité`,value:`S`}],COMPTA_CH:[{label:`Clinique`,value:`C`},{label:`Honoraire`,value:`H`}],AJU_est_balance:[{label:`Ecritures`,value:``},{label:`Balance mensuelle`,value:`M`},{label:`Balance exercice`,value:`X`}],AJU_Debit_Credit:[{label:`Débit`,value:`D`},{label:`Crédit`,value:`C`}],YEARS:Kf.map(e=>({label:e,value:e})),PRC_type_valorisation_facture:[{label:`Ventilation par défault`,value:``},{label:`Forcer ventilation quotidienne`,value:`1`}],PRC_type_valorisation_non_facture:[{label:``,value:``},{label:`Prix de journée`,value:`PJ`},{label:`Chambre particulière`,value:`CP`},{label:`Forfait à l'entrée`,value:`ENT`},{label:`Moyenne par journée de présence service`,value:`*AVGJOUSER`},{label:`Uniquement prestations saisies`,value:`*SAISIE`}],UMD_type_ventilation_ca:[{label:`Par défault (avec PMS)`,value:``},{label:`Uniquement selon durée séjour`,value:`1`}],UMD_type_eclatement:[{label:`Pas d'éclatement`,value:`0`},{label:`Eclatement selon première UM`,value:`1`},{label:`Eclatement selon première UM`,value:`2`}],UMD_mode_hospitalisation:[{label:`Hospitalisation complète`,value:`C`},{label:`Hospitalisation partielle`,value:`P`},{label:`Hospitalisation mixte`,value:`M`}],UMD_type_sejour:[{label:`Pas de forçage`,value:`1`},{label:`Externe`,value:`3`},{label:`Ignorer (fil de l'eau)`,value:`9`}],PRC_type_valorisation_non_facture_provider:[{label:`Prix de journée`,value:`PJ`},{label:`Chambre particulière`,value:`CP`},{label:`Moyenne par journée de précense service`,value:`*AVGJOUSER`},{label:`Forfait à l'entrée`,value:`ENT`},{label:`Uniquement prestations saisies`,value:`*SAISIE`}],calculCodeList:[{label:`Aucun`,value:`0`},{label:`(1) Heures payées`,value:`1`},{label:`(2) Heures (non) travaillées`,value:`2`},{label:`(3) Frais imposables`,value:`3`},{label:`(4) Avantages en nature`,value:`4`},{label:`(5) OD/net salariées`,value:`5`},{label:`(6) OD/net patronales`,value:`6`},{label:`(7)`,value:`7`},{label:`(8)`,value:`8`},{label:`(9) Ignorer`,value:`9`},{label:`(10) Heures contrat`,value:`10`},{label:`(11) Heures c/p/t`,value:`11`}],EXC_cible_provider:[{label:`Tous`,value:`0`},{label:`Présent`,value:`1`},{label:`Non facturé`,value:`2`}],EXC_gravite_provider:[{label:`Information`,value:`0`},{label:`Avertissement`,value:`5`},{label:`Erreur`,value:`9`}],EXC_table_provider:[{label:`Séjour`,value:`0`},{label:`Mouvements`,value:`1`},{label:`Factures`,value:`2`},{label:`Lignes Factures Honoraires`,value:`3`},{label:`SQL brut`,value:`99`}],EXC_table_provider_RH:[{label:`Contrats`,value:`1`},{label:`Historique de paie`,value:`2`},{label:`Arrêts de travail`,value:`3`},{label:`Mouvement planning`,value:`4`},{label:`SQL brut`,value:`99`}],EXC_table_provider_SSR:[{label:`Séjours ePMSI`,value:`0`},{label:`Séjours fil de l'eau`,value:`1`}],GENRE:[{label:``,value:``},{label:`Féminin`,value:`F`},{label:`Masculin`,value:`M`},{label:`Sans object`,value:`I`}],TYPE_TEMPS_TRAVAIL:[{label:``,value:``},{label:`Temps complet`,value:`TC`},{label:`Temps partiel`,value:`TP`}],EIE_etat:[{label:`Nouveau`,value:`0`},{label:`En-cours`,value:`1`},{label:`Traité`,value:`9`}],EIE_gravite:[{label:``,value:``},{label:`Mineure`,value:`1`},{label:`Significative`,value:`2`},{label:`Majeure`,value:`3`},{label:`Critique`,value:`4`},{label:`Catastrophique`,value:`5`}],EIF_frequence:[{label:``,value:``},{label:`Très improbable`,value:`1`},{label:`Très peu probable`,value:`2`},{label:`Peu probable`,value:`3`},{label:`Possible / Probable`,value:`4`},{label:`Très probable à certain`,value:`5`}],EII_data_type:[{label:``,value:``},{label:`APTA`,value:`APTA`},{label:`Blue Medi XML`,value:`BLUEMEDI`},{label:`CSV`,value:`CSV`},{label:`CSV sans entete`,value:`CSVWITHOUTHEADER`}],IXI_data_type:[{label:``,value:``},{label:`CSV`,value:`CSV`},{label:`Données créées depuis interface externe`,value:`EXT`}],QSE_type_entete:[{label:``,value:``},{label:`Choix unique`,value:`choixunique`},{label:`Choix multiple`,value:`choixmultiple`},{label:`Date de réponse`,value:`date`},{label:`Mois de réponse`,value:`mois`},{label:`Service`,value:`service`},{label:`Age`,value:`age`},{label:`Sexe`,value:`sexe`},{label:`Ignorer`,value:`ignore`}],CXP_start:[{label:``,value:``},{label:`Année en cours`,value:`A0`},{label:`A - 1`,value:`A1`},{label:`A - 2`,value:`A2`},{label:`12 derniers mois`,value:`M12`},{label:`24 derniers mois`,value:`M24`}],CXP_item_dpi:[{label:``,value:``},{label:`Item`,value:`ITM`},{label:`Table normale Item`,value:`ITMTAB`},{label:`Séjour`,value:`SEJ`},{label:`Document`,value:`DOC`},{label:`Intervention`,value:`INT`}],code_calcul:[{label:`Aucun`,value:`0`},{label:`(1) Heures payées`,value:`1`},{label:`(2) Heures (non) travaillées`,value:`2`},{label:`(3) Frais imposables`,value:`3`},{label:`(4) Avantages en nature`,value:`4`},{label:`(5) OD/net salariées`,value:`5`},{label:`(6) OD/net patronales`,value:`6`},{label:`(7)`,value:`7`},{label:`(8)`,value:`8`},{label:`(9) Ignorer`,value:`9`},{label:`(10) Heures contrat`,value:`10`},{label:`(11) Heures c/p/t`,value:`11`}],TYM_SENS:[{label:`Aucun forcage`,value:``},{label:`Entrée`,value:`E`},{label:`Sortie`,value:`S`}],TYM_SIGNE:[{label:`Non`,value:`0`},{label:`Oui`,value:`1`}],FSJ_type:[{label:`Pas de forçage`,value:`0`},{label:`Hospitalisé`,value:`1`},{label:`Ambulatoire`,value:`2`},{label:`Séance`,value:`5`},{label:`Bébé`,value:`6`},{label:`Externe`,value:`3`},{label:`Fictif`,value:`9`}],TYA:[{label:`Sans Valeur par défaut`,value:``},{label:`Catégorire`,value:`CAT`},{label:`Compte`,value:`CPT`}]},Jf=({record:e,fields:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s={...gf(n,r,i,a,o).data?.combos??{},...qf};return e?(0,$.jsx)($.Fragment,{children:Yf(t,e,s)}):null};Jf.propTypes={tableParams:Q.default.object,record:Q.default.object};function Yf(e,t,n={}){if(Array.isArray(e)&&e.length)return e.map((e,r)=>Zf(e,r,t,n))}var Xf=async(e,t,n)=>{let r=new FormData;r.append(`ISSOID`,t.oid),r.append(`CSVOID`,e.dataKey===`int18_entet_csvf`?t.int18_entet_csvi:t.int18_poste_csvi);let i=await ke({method:`post`,url:ne()+e.downloadUrl,data:r,responseType:`blob`,headers:{"Content-Type":`multipart/form-data`}}),a=i.headers[`content-disposition`].split(`;`)[1].split(`="`)[1].replace(/"/gm,``);qt(i.data,a)};function Zf(e,t=0,n,r){if(e.editVisible===!1)return null;let i=e.titleEdit?e.titleEdit:e.title,a=e.editable===!1;e.dependsOn&&(a=n[e.dependsOn]===e.disabledWhen);let o=null;switch(e.type){case`divider`:o=(0,$.jsx)(`div`,{children:(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:i})})},t);break;case`input`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:i}),(0,$.jsx)(V.Item,{shouldUpdate:!0,children:t=>(a=e.editable===!1,e.dependsOn&&(a=t.getFieldsValue()[e.dependsOn]===e.disabledWhen),(0,$.jsx)(V.Item,{style:{width:`100%`},name:e.dataKey,extra:e.detail,children:(0,$.jsx)(N,{addonAfter:e.pourcentage?`%`:null,disabled:a})}))})]})},t);break;case`fileDownload`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:i}),(0,$.jsx)(R,{icon:(0,$.jsx)(at,{}),style:{marginRight:8,paddingRight:8,paddingLeft:8},onClick:()=>Xf(e,n)}),(0,$.jsx)(V.Item,{shouldUpdate:!0,children:t=>(a=e.editable===!1,e.dependsOn&&(a=t.getFieldsValue()[e.dependsOn]===e.disabledWhen),(0,$.jsx)(V.Item,{style:{width:`100%`},name:e.dataKey,extra:e.detail,children:(0,$.jsx)(N,{addonAfter:e.pourcentage?`%`:null,disabled:a})}))})]})},t);break;case`textArea`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:e.title}),(0,$.jsx)(V.Item,{name:e.dataKey,extra:e.detail,style:{width:`100%`},children:(0,$.jsx)(Wf.default,{disabled:a,style:{width:`100%`}})})]})},t);break;case`select`:let s=e.value===`-1`;o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:e.title}),(0,$.jsx)(V.Item,{name:e.dataKey,extra:e.detail,style:{width:`100%`},children:(0,$.jsx)(z,{style:{width:`100%`},disabled:a,options:r[e.selectOptionsKey],showSearch:!0,filterOption:(e,t)=>(t?.label??``).toLowerCase().includes(e.toLowerCase()),allowClear:e.allowClear,defaultActiveFirstOption:s})})]})},t);break;case`checkbox`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:i}),(0,$.jsx)(V.Item,{style:{width:`100%`},name:e.dataKey,valuePropName:`checked`,extra:e.detail,children:(0,$.jsx)(Vt,{disabled:!e.dataKey||a})})]})},t);break;case`date`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:e.title}),(0,$.jsx)(V.Item,{name:e.dataKey,extra:e.detail,style:{width:`100%`},children:(0,$.jsx)(Ud,{dateRender:e=>(0,$.jsx)(`div`,{className:`ant-picker-cell-inner`,style:{fontSize:`12px`},children:e.date()})})})]})},t);break;case`checkboxRow`:o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,style:{width:`250px`},children:e.title}),(0,$.jsx)(`div`,{style:{display:`flex`,flexFlow:`row wrap`},children:e.children.map(e=>(0,$.jsx)(V.Item,{name:e.dataKey,label:e.title,valuePropName:`checked`,extra:e.detail,className:`checkboxUnit`,children:(0,$.jsx)(Vt,{disabled:e.editable===!1})},e.dataKey+`-chckbx-unit`))})]})},t);break;case`multi-input`:let c=e=>{switch(e.type){case`input`:return(0,$.jsx)(V.Item,{label:e.title,name:e.dataKey,extra:e.detail,children:(0,$.jsx)(N,{addonAfter:e.pourcentage?`%`:null,disabled:e.editable===!1})},e.dataKey);default:return null}};o=(0,$.jsx)(`div`,{children:(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`first-label`,children:e.title}),(0,$.jsx)(`div`,{style:{display:`flex`,flexFlow:`row wrap`},children:e.children.map(e=>c(e))})]})},t);break;default:o=null}return o}var Qf=({text:e,handleUpdateRecord:t,record:n,indicator:r,handleValuesChange:i})=>{let[a,o]=(0,Y.useState)(!1);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:a,options:{oneOnly:!0},handleShowModal:()=>{o(!a)},handleModifyIndicator:e=>{let a={...n},o=a.extraData.indicators.find(e=>e.oid===r.oid);o&&(o.indicateur_id=e.oid,o.module=e.module),i(),t(a)}}),(0,$.jsxs)(`div`,{className:`bud-indicator-field`,children:[(0,$.jsx)(`div`,{className:`indicator-field-text`,children:e}),(0,$.jsx)(R,{type:`link`,onClick:()=>{o(!0)},children:(0,$.jsx)(ze,{})})]})]})};Qf.propTypes={text:Q.default.string,handleUpdateRecord:Q.default.func,record:Q.default.object,indicator:Q.default.object,handleValuesChange:Q.default.func};var $f=({title:e})=>(0,$.jsx)($.Fragment,{children:(0,$.jsx)(`h3`,{className:`title__h3`,children:e})});$f.propTypes={title:Q.default.string};var ep={CLEBUD:[{label:`Pas de génération automatique des clés`,value:``},{label:`Génération d'une clé par médecin séjour (CTI)`,value:`CTIMEDSEJ`},{label:`Génération d'une clé par classe d'UF (CTI)`,value:`CTICLSUF`}]},tp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r,form:i,softCode:a})=>{let o={iCTI_rh:`rh`,iCTI_activite:`activite, pmsi`}[a],s=Cn(o),c=s.data?.indicators??[],[l,u]=(0,Y.useState)([]),[d,f]=(0,Y.useState)(!1),[p,m]=(0,Y.useState)(!1),[h,g]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{f(t.cle_budgetaire_activite===`CTICLSUF`)},[t,i]),(0,Y.useEffect)(()=>{t?.extraData?u(t.extraData.indicators.map(e=>({...e}))):u([])},[t]);let _=(e,i)=>{let a={...t},o=a.extraData.indicators.find(t=>t.key===e);o&&(i.target.checked===!0?o.actif=`1`:o.actif=`0`),n(a),r()},v=(e,i,a)=>{let o={...t};o.extraData={...o.extraData};let s=l.map(e=>({...e})),c=s.find(e=>e.key===a);c&&(c[e]=i,o.extraData.indicators=s,n(o),r());let d=[...l],f=d.find(e=>e.key===a);f&&(f[e]=i,u(d))},y=e=>{let i={...t};i.cle_budgetaire_activite=e,n(i),r()},b=e=>{let i=[],a={...t};a.extraData={...a.extraData},a.extraData.indicators&&(i=a.extraData.indicators.map(e=>({...e}))),i.push({oid:`-1`,actif:e?.actif??`1`,code:e?.code??``,texte:e?.texte??``,indicateur_id:e.oid,indicateur_module:e.module,key:i.length+1}),a.extraData.indicators=i,n(a),r()},x=()=>{let e={...t};e.extraData={...e.extraData};let i=l.map(e=>({...e})),a=i.findIndex(e=>e.key===h.key);a>-1&&(i.splice(a,1),e.extraData.indicators=i,n(e),r());let o=[...l],s=o.find(e=>e.key===h.key);s&&(o.splice(s,1),u(o))},S=e=>{g(l.find(t=>t.key===e))},C=(0,Y.useMemo)(()=>ep.CLEBUD.find(e=>e.value===t.cle_budgetaire_activite)?.label,[t.cle_budgetaire_activite]),w=[{title:`Code`,dataKey:`code`,width:150,cellRenderer:({rowData:e})=>(0,$.jsx)(Ft,{initialText:e.code,handleUpdateText:v,field:`code`,rowKey:e.key})},{title:`Texte`,dataKey:`texte`,flexGrow:1,cellRenderer:({rowData:e})=>(0,$.jsx)(Ft,{initialText:e.texte,handleUpdateText:v,field:`texte`,rowKey:e.key})},{title:`Indicateur CTI`,dataKey:`indicateur_id`,dataGetter:({rowData:e})=>{let i=``,a=c.find(t=>t.oid===e.indicateur_id);return a&&(i=a.texte),(0,$.jsx)(Qf,{text:i,handleUpdateRecord:n,record:t,indicator:e,handleValuesChange:r})}},{title:`Actif`,dataKey:`actif`,width:100,dataGetter:({rowData:e})=>(0,$.jsx)(Vt,{checked:e.actif===`1`,onClick:t=>_(e.key,t)})}].map(e=>({width:300,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e}));return s.isPending?(0,$.jsx)(`div`,{className:`loading-wrapper`,children:(0,$.jsx)(mt,{style:{height:`auto`}})}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:p,options:{oneOnly:!0},handleModifyIndicator:b,handleShowModal:()=>m(!p)}),(0,$.jsxs)(`div`,{className:`bud-editor`,children:[(0,$.jsxs)(`div`,{className:`tables-column`,children:[Yf(e.fields,t),a===`iCTI_activite`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Clés automatiques`}),(0,$.jsx)(z,{options:ep.CLEBUD,value:C,onChange:y,style:{width:`100%`}})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Classe`}),(0,$.jsx)(V.Item,{name:`classe_code`,hidden:!d,style:{width:`100%`},children:(0,$.jsx)(N,{})})]})]})]}),(0,$.jsx)(`div`,{className:`tables-column`,children:(0,$.jsxs)(`div`,{className:`bud-table-indicators`,style:{display:`flex`,flexFlow:`column`},children:[(0,$.jsx)($f,{title:e.modalLabel}),(0,$.jsxs)(`div`,{className:`bud-table-buttons`,style:{display:`flex`,flexFlow:`row nowrap`,justifyContent:`space-between`},children:[(0,$.jsx)(R,{style:{width:`48%`,marginBottom:`12px`},type:`primary`,onClick:()=>m(!0),children:`Ajouter`}),(0,$.jsx)(R,{style:{width:`48%`,marginBottom:`12px`},onClick:x,disabled:!h,children:`Supprimer`})]}),(0,$.jsx)(`div`,{className:`ind-table`,style:{flex:3},children:(0,$.jsx)(Gt,{columns:w,data:l,flexGrowBool:!0,fixed:!1,rowHeight:30,selectedRow:h,onRowSelect:S})})]})})]})]})};tp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func,form:Q.default.object,softCode:Q.default.string};var np=({indicator:e,handleUpdateIndicator:t,handleExcelExport:n,handleExcelImport:r,recordkey:i})=>{let[a,o]=(0,Y.useState)([]);(0,Y.useEffect)(()=>{e&&e.keys&&o(e.keys.map(e=>({...e})))},[e]);let s=()=>{let n={...e};n.keys.forEach(e=>{for(let t=1;t<=12;t++){let n=t<10?`budget_0${t}`:`budget_${t}`;e[n]=`0`}});let r=[...a];r.forEach(e=>{for(let t=1;t<=12;t++){let n=t<10?`budget_0${t}`:`budget_${t}`;e[n]=`0`}}),o(r),t(n)},c=(n,r,i)=>{t(e,n,r,i);let s=[...a],c=s.find(e=>e.key===i);c&&(c[n]=r),o(s)};return(0,$.jsxs)(`div`,{className:`bui-indicator-tab`,children:[(0,$.jsxs)(`div`,{className:`bui-excel-actions`,children:[(0,$.jsx)(R,{icon:(0,$.jsx)(lt,{}),onClick:()=>r(e.key),children:`Importer depuis Excel (indicateur courant)`}),(0,$.jsx)(R,{icon:(0,$.jsx)(jt,{}),onClick:()=>n(e.key),children:`Exporter vers Excel (indicateur courant)`}),(0,$.jsx)(R,{icon:(0,$.jsx)(Pt,{}),onClick:s,children:`Effacer`})]}),(0,$.jsx)(`div`,{className:`bui-table`,children:(0,$.jsx)(Gt,{rowHeight:32,columns:(()=>{let e=[{title:`Indicateur`,dataKey:`budget_cle_fulltexte`,width:200}];for(let t=1;t<=12;t++){let n=t<10?`budget_0${t}`:`budget_${t}`;e.push({title:t.toString(),dataKey:n,cellRenderer:({rowData:e})=>(0,$.jsx)(Ft,{initialText:e[n],handleUpdateText:c,field:n,rowKey:e.key,recordKey:i})})}return e.map(e=>({width:100,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e}))})(),data:a})})]})};np.propTypes={indicator:Q.default.object,handleUpdateIndicator:Q.default.func,handleExcelImport:Q.default.func,handleExcelExport:Q.default.func,recordKey:Q.default.number};var rp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let[i,a]=(0,Y.useState)(!1),[o,s]=(0,Y.useState)(null),[c,l]=(0,Y.useState)(``),[u,d]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{t&&d({...t})},[t]);let f=e=>{s(e===`all`?null:e),a(!0)},p=()=>{let e={...u};e.extraData={...e.extraData};let t=e.extraData.indicators.map(e=>({...e}));c.split(` +`).forEach(e=>{let n=e.split(` `);if(n.length===14&&o!==null){let e=t.find(e=>e.key===o);if(e){let t=e.keys.map(e=>({...e})),r=t.find(e=>e.budget_cle_code===n[0]);if(r)for(let e=1;e<=12;e++){let t=e<10?`budget_0${e}`:`budget_${e}`;r[t]=n[e+1]}e.keys=t}}else if(n.length===15){let e=t.find(e=>e.budget_indicateur_code===n[0]);if(e){let t=e.keys.map(e=>({...e})),r=t.find(e=>e.budget_cle_code===n[1]);if(r)for(let e=1;e<=12;e++){let t=e<10?`budget_0${e}`:`budget_${e}`;r[t]=n[e+2]}e.keys=t}}}),e.extraData.indicators=t,a(!1),l(``),n(e),r()},m=e=>{l(e.target.value)},h=e=>{let t=``,n;e===`all`?(n=u.extraData.indicators,n.forEach(e=>{e.keys.forEach(n=>{t+=`${e.budget_indicateur_code}\t${n.budget_cle_code}\t${n.budget_cle_texte}\t`;for(let e=1;e<=12;e++){let r=e<10?`budget_0${e}`:`budget_${e}`;t+=`${n[r]}\t`}t+=` +`})})):(n=u.extraData.indicators.find(t=>t.key===e),n.keys.forEach(e=>{t+=`${e.budget_cle_code}\t${e.budget_cle_texte}\t`;for(let n=1;n<=12;n++){let r=n<10?`budget_0${n}`:`budget_${n}`;t+=`${e[r]}\t`}t+=` +`}));var r=document.createElement(`textarea`);r.value=t,document.body.appendChild(r),r.select(),document.execCommand(`copy`),document.body.removeChild(r),de.success(`Copié !`)},g=(e,t,i,a)=>{let o={...u};o.extraData={...o.extraData};let s={...o.extraData.indicators.find(t=>t.key===e.key)};if(s){if(!t)s=e;else{let e=s.keys.map(e=>({...e})),n=e.find(e=>e.key===a);n&&(n[t]=i),s.keys=e}r(),n(o)}};return!u||!u.extraData?(0,$.jsx)(`div`,{className:`loading-wrapper`,children:(0,$.jsx)(mt,{style:{height:`auto`}})}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Lt,{open:i,title:`Budget à importer`,okText:`Importer`,cancelText:`Annuler`,onCancel:()=>a(!1),onOk:p,children:(0,$.jsx)(N.TextArea,{autoSize:{minRows:20,maxRows:30},value:c,onChange:m})}),(0,$.jsxs)(`div`,{className:`bui-acti-editor`,children:[(0,$.jsx)(`div`,{className:`base-editor`,children:Yf(e.fields)}),(0,$.jsxs)(`div`,{className:`bui-excel-actions`,children:[(0,$.jsx)(R,{icon:(0,$.jsx)(lt,{}),onClick:()=>f(`all`),children:`Importer depuis Excel (tous les indicateurs)`}),(0,$.jsx)(R,{icon:(0,$.jsx)(jt,{}),onClick:()=>h(`all`),children:`Exporter vers Excel (tous les indicateurs)`})]}),(0,$.jsx)(`div`,{className:`bui-tabs`,children:(0,$.jsx)(zt,{items:u.extraData.indicators.map((e,t)=>({label:e.budget_indicateur_code,key:t,children:(0,$.jsx)(np,{indicator:e,handleUpdateIndicator:g,handleExcelExport:h,handleExcelImport:f,recordkey:u.key},t)}))})})]})]})};rp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};function ip({tableParams:e,record:t,form:n,handleUpdateRecord:r,typeOnly:i=!1}){let{swf:a,softCode:o,tableName:s,choice:c,tableParams:l}=jf(),u=gf(a,o,s,c,l).data?.combos??{};return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{className:`tables-common-fields`,children:[!i&&Yf(e.fields,``,qf),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Type de réponse`}),(0,$.jsx)(V.Item,{style:{width:`100%`},name:`auto_reponse_code_type`,children:(0,$.jsx)(z,{style:{width:`100%`},options:qf.DPI_CST,onChange:e=>{r({...t,auto_reponse_code_type:e})}})})]}),t.auto_reponse_code_type===`LIST-ECHELLE`&&(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Echelle`}),(0,$.jsx)(V.Item,{style:{width:`100%`},name:`echelle_id`,children:(0,$.jsx)(z,{style:{width:`100%`},options:u.ECH})})]}),t.auto_reponse_code_type===`LIST-NUMERIC`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:`160px`},children:`Valeurs`}),(0,$.jsx)(`div`,{className:`form-row`,style:{width:`100%`},children:(()=>{let e=[];for(let t=1;t<=20;t++){let n=t<10?`0`+t:t,r=t<11?`0${t-1}`:t-1;e.push((0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{shouldUpdate:!0,children:e=>{let t=e.getFieldValue(`auto_reponse_code_values_${r}`);return(0,$.jsx)(V.Item,{name:`auto_reponse_code_values_${n}`,children:(0,$.jsx)(N,{disabled:t===``})})}})}))}return e})()})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:`160px`},children:`Valeurs autres`}),(0,$.jsx)(V.Item,{name:`auto_reponse_code_value_other`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]})]})]})})}ip.propTypes={tableParams:Q.default.object,record:Q.default.object,form:Q.default.object,typeOnly:Q.default.bool};var ap=r(((e,t)=>{var n=B(),r=qe(),i=Xe();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),op=r(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{var n=op(),r=B(),i=Fl(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),cp=r(((e,t)=>{t.exports=ap()(sp())})),lp=r(((e,t)=>{var n=pt(),r=We();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),up=r(((e,t)=>{var n=qe(),r=f();function i(e){return r(e)&&n(e)}t.exports=i})),dp=r(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),fp=r(((e,t)=>{var n=gt(),r=bt();function i(e){return n(e,r(e))}t.exports=i})),pp=r(((e,t)=>{var n=lp(),r=vt(),i=yt(),a=ht(),o=_t(),s=Ke(),c=S(),l=up(),u=Ye(),d=$e(),f=Ue(),p=On(),m=Je(),h=dp(),g=fp();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),ee=!D&&u(C),O=!D&&!ee&&m(C);T=C,D||ee||O?c(S)?T=S:l(S)?T=a(S):ee?(E=!1,T=r(C,!0)):O?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),mp=r(((e,t)=>{var n=et(),r=lp(),i=Ve(),a=pp(),o=Ue(),s=bt(),c=dp();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),hp=r(((e,t)=>{var n=mp();t.exports=kt()(function(e,t,r){n(e,t,r)})})),gp=n(kn()),_p=n(cp()),vp=n(hp()),yp=[{title:`Code`,dataKey:`code`,width:100},{title:`Texte`,dataKey:`texte`,minWidth:500},{title:`DMS`,dataKey:`dms`,width:80,dataGetter:({rowData:e})=>e.dms[0]===`+`?e.dms.substring(1):e.dms}],{TextArea:bp}=N,{confirm:xp}=Lt,{Search:Sp}=N,Cp=({tableParams:e,record:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s=gf(n,r,i,a,o),c=s.data?.listes?.GHM,l=s.data?.combos??{},[u,d]=(0,Y.useState)(``),[f,p]=(0,Y.useState)(!1),[m,h]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(null),[v,y]=(0,Y.useState)([]);(0,Y.useEffect)(()=>{if(t!==null&&c){let e=c.map(e=>({...e,label:e.texte}));t.dms&&(e=x(t,e)),y(D(e,f))}},[t,c,u,f]);function x(e,t){let n=e.dms.split(`;`).map((e,t)=>{let n=e.split(`=`);return{key:`${n[0]}-${t}`,oid:n[0],dms:n[1]}});return(0,gp.default)(t,function(e){return(0,vp.default)({...e},(0,_p.default)(n,{oid:e.oid}))})}let S=()=>xp({title:`Confirmez-vous l'effacement des DMS ?`,icon:(0,$.jsx)(b,{}),maskClosable:!0,okText:`Oui`,okType:`danger`,cancelText:`Non`,onOk(){console.log(t)},onCancel(){console.log(`Cancel`)}}),C=e=>{d(e.target.value)},w=e=>{_(v.find(t=>t.key===e))},T=e=>{h(e)},E=e=>{if(e)return S()};function D(e,t=!1){let n=wt(e,u,[`code`,`texte`]);return t&&(n=n.filter(e=>Number(e.dms)!==0)),n}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`top-editor`,children:[(0,$.jsx)(`div`,{className:`tables-common-fields-dms`,children:Yf(e.fields,t,l)}),(0,$.jsxs)(`div`,{className:`dms-button`,children:[(0,$.jsx)(R,{icon:(0,$.jsx)(tt,{}),onClick:()=>T(!0),disabled:!(t.key===0&&t.dms.trim()===``),style:{marginRight:`3px`},children:`Ajouter DMS`}),(0,$.jsx)(R,{icon:(0,$.jsx)(nt,{}),onClick:()=>E(!0),disabled:!(t.key===0&&t.dms.trim()===``),children:`Effacer DMS`})]}),(0,$.jsxs)(`div`,{className:`dms-search`,children:[(0,$.jsx)(`div`,{className:`dms-search-child`,children:(0,$.jsx)(Sp,{style:{height:`24px`},value:u,onChange:C,placeholder:`Rechercher`})}),(0,$.jsxs)(`div`,{className:`dms-search-child`,children:[(0,$.jsx)(`span`,{className:`child-label`,children:`DMS renseignées uniquement`}),(0,$.jsx)(kf.default,{checked:f,onChange:e=>p(e.target.checked)})]})]})]}),(0,$.jsxs)(`div`,{className:`dms-editor`,children:[(0,$.jsx)(`div`,{className:`dms-top-table`,children:(0,$.jsx)(Gt,{fixed:!1,columns:(e=>e.map(e=>({width:300,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e})))(yp),data:v,selectedRow:g,onRowSelect:w})}),(0,$.jsx)(Lt,{title:`Ajout DMS`,open:m,okText:`Enregistrer`,cancelText:`Annuler`,onCancel:()=>T(!1),children:(0,$.jsx)(bp,{})},`add-modal`)]})]})};Cp.propTypes={tableParams:Q.default.object,record:Q.default.object};var wp=({record:e,handleUpdateRecord:t,typeOfRegles:n})=>{let{swf:r,softCode:i,tableName:a,choice:o,tableParams:s}=jf(),c=gf(r,i,a,o,s).data?.combos??{},l=Cn(i).data??En,[u,d]=(0,Y.useState)(!1),[f,p]=(0,Y.useState)(null),m=(0,Y.useMemo)(()=>n===`event-regle-cti`?{title:`Règles CTI`,data:[`01`,`02`,`03`]}:{title:`Indicateurs Etablissement`,data:[`51`,`52`,`53`]},[n]),h=(0,Y.useMemo)(()=>c.CONDITIONS.map(e=>({...e,key:e.value,children:e.children.map(e=>({...e,key:e.value,children:e?.children?.map(e=>({...e,key:e.value}))}))})),[c.CONDITIONS]),g=n=>{t({...e,[`ei_${f}_id`]:n.oid}),p(null),d(!1)},_=e=>{d(!0),p(e)},v=(0,Y.useCallback)(t=>{let n=[`1`,`2`,`3`,`4`];return t.data.map((r,i)=>(0,$.jsxs)(`div`,{className:`common-form-item`,style:{alignItems:`flex-start`},children:[(0,$.jsx)(`span`,{className:`item-label`,children:i===0?t.title:`ou`}),(0,$.jsxs)(`div`,{className:`evt-indicator-row`,style:{alignItems:`flex-start`},children:[(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:l.indicators.find(t=>t.oid===e[`ei_${r}_id`])?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>_(r),children:`Ajouter`})]}),(0,$.jsx)(`div`,{className:`evt-conditions`,children:n.map(e=>(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:e===`1`?`Conditions`:`et`}),(0,$.jsx)(V.Item,{name:`ec_${r}_id_${e}`,children:(0,$.jsx)(Mt,{treeData:h,style:{width:300}})})]},e))})]})]},r))},[h,l.indicators,e]);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:u,handleShowModal:()=>d(!1),options:{oneOnly:!0},handleAddIndicators:g,handleModifyIndicator:g}),v(m)]})};wp.propTypes={tableParams:Q.default.object,record:Q.default.object,form:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Tp=({tableParams:e,record:t,handleUpdateRecord:n,softCode:r})=>{let i=vf(cf),[a,o]=(0,Y.useState)({});(0,Y.useEffect)(()=>{o(e.lineBlocks[0].lines)},[e]);let s=(e,r,i)=>{n({...t,[i]:e})},c=(e,r)=>{n({...t,[`coefficient_mco_${r}`]:e.target.value})};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`tables-common-fields`,children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Code`}),(0,$.jsx)(V.Item,{name:`code`,style:{width:`80%`},children:(0,$.jsx)(N,{disabled:!0})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Texte`}),(0,$.jsx)(V.Item,{name:`texte`,style:{width:`80%`},children:(0,$.jsx)(N,{disabled:!0})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Territoire de santé`}),(0,$.jsx)(V.Item,{name:`tersante_id`,style:{width:`80%`},children:(0,$.jsx)(z,{options:i.data,style:{width:`100%`}})})]})]}),r===`iCTI_pmsi`&&(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Coefficient MCO FG11`}),(0,$.jsx)(V.Item,{name:`coefficient_mco_simulation_fg11`,style:{width:`80%`},children:(0,$.jsx)(N,{type:`number`})})]}),(0,$.jsx)(It,{}),(0,$.jsxs)(`div`,{className:`lines-container`,children:[` `,(()=>{let e=[];if(a.length){e.push((0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[0].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[1].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[2].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[3].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[4].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[5].label})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(`span`,{className:`item-label`,children:a[6].label})})]},0));for(let n=1;n<=7;n++){let i=parseFloat(t[`${a[1].key}${n}`])===0||!t[`${a[1].key}${n}`]||!t[`${a[0].key}${n}`],o=r===`iCTI_pmsissr`?i||t[`${a[0].key}${n}`].$y===2099:i;e.push((0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[0].key}${n}`,style:{width:`100%`},children:(0,$.jsx)(Ud,{name:`${a[0].key}${n}`,format:`DD-MM-YYYY`,onChange:(e,t)=>{s(e,t,[`${a[0].key}${n}`])},style:{width:`100%`},dateRender:e=>(0,$.jsx)(`div`,{className:`ant-picker-cell-inner`,style:{fontSize:`12px`},children:e.date()})})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[1].key}${n}`,children:(0,$.jsx)(N,{type:`number`,onChange:e=>{c(e,n)},disabled:r===`iCTI_pmsi`?!t[`${a[0].key}${n}`]:!t[`${a[0].key}${n}`]||t[`${a[0].key}${n}`].$y===2099})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[2].key}${n}`,children:(0,$.jsx)(N,{type:`number`,disabled:o})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[3].key}${n}`,children:(0,$.jsx)(N,{type:`number`,disabled:o})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[4].key}${n}`,children:(0,$.jsx)(N,{type:`number`,disabled:o})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[5].key}${n}`,style:{width:`100%`},children:r===`iCTI_pmsi`?(0,$.jsx)(Ud,{name:`${a[5].key}${n}`,format:`DD-MM-YYYY`,onChange:(e,t)=>{s(e,t,[`${a[5].key}${n}`])},style:{width:`100%`},dateRender:e=>(0,$.jsx)(`div`,{className:`ant-picker-cell-inner`,style:{fontSize:`12px`},children:e.date()})}):(0,$.jsx)(N,{type:`number`,disabled:o})})}),(0,$.jsx)(`div`,{className:`common-form-item`,children:(0,$.jsx)(V.Item,{name:`${a[6].key}${n}`,children:(0,$.jsx)(N,{type:`number`,disabled:r===`iCTI_pmsi`?!t[`${a[5].key}${n}`]:o})})})]},n))}}return e})()]})]})};Tp.propTypes={record:Q.default.object,handleUpdateRecord:Q.default.func,softCode:Q.default.string};var Ep=({tableParams:e,record:t,form:n,handleUpdateRecord:r,handleValuesChange:i})=>{let[a,o]=(0,Y.useState)([]),[s,c]=(0,Y.useState)(!1),[l,u]=(0,Y.useState)([]),d=Y.useCallback((e,n)=>{let a={...t,extraData:{...t.extraData,iqv:t.extraData.iqv.map(e=>({...e}))}},o=a.extraData.iqv.find(t=>t.key===e);o&&(o.note=n),i(),r(a)},[r,t,i]);return(0,Y.useEffect)(()=>{let e=[{key:`code`,dataKey:`code`,title:`Code`,width:200},{key:`text`,dataKey:`texte`,title:`Texte`,width:200}];s&&e.push({key:`note`,dataKey:`note`,title:`Note`,width:200,dataGetter:({rowData:e})=>(0,$.jsx)(N,{value:e.note,onChange:t=>d(e.key,t.target.value)})}),u(e)},[s,d,t]),(0,Y.useEffect)(()=>{t?.extraData&&o(t.extraData.iqv.map(e=>({...e}))),t.note_with?c(t.note_with):c(!1)},[t]),(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`tables-common-fields`,children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Code`}),(0,$.jsx)(V.Item,{name:`code`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Texte`}),(0,$.jsx)(V.Item,{name:`texte`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Note`}),(0,$.jsx)(V.Item,{name:`note_with`,valuePropName:`checked`,style:{width:`100%`},children:(0,$.jsx)(Vt,{onChange:e=>{c(e.target.checked)}})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Coefficient`}),(0,$.jsx)(V.Item,{name:`note_coefficient`,style:{width:`100%`},children:(0,$.jsx)(N,{disabled:!s})})]})]}),(0,$.jsx)(`div`,{className:`indicator-qualite-table`,children:(0,$.jsx)(Gt,{columns:l,data:a})})]})};Ep.propTypes={tableParams:Q.default.object,record:Q.default.object,form:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Dp=({form:e})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`tables-common-fields`,children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Code`}),(0,$.jsx)(V.Item,{name:`code`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Texte`}),(0,$.jsx)(V.Item,{name:`texte`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]})]}),(()=>{let e=[];for(let t=1;t<=5;t++){let n=[];for(let e=1;e<=5;e++)n.push((0,$.jsxs)(`div`,{className:`form-item`,children:[e>1&&(0,$.jsx)(`span`,{children:`et`}),(0,$.jsx)(V.Item,{shouldUpdate:!0,children:n=>{let r=n.getFieldValue(),i=!1;return i=t===1&&e===1?!1:t>1&&e===1?r[`rule_array_0${t-1}_01`]===``:r[`rule_array_0${t}_0${e-1}`]===``,(0,$.jsx)(V.Item,{name:`rule_array_0${t}_0${e}`,children:(0,$.jsx)(N,{disabled:i})})}})]}));e.push((0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Règle ${t}`}),n]}))}return e})()]});Dp.propTypes={form:Q.default.object};var Op=[{title:`Médecins administratifs associés`,dataKey:`nom_adm`},{title:`Module`,dataKey:`module`}],kp=[{title:`Médecins administratifs non associés`,dataKey:`nom_adm`},{title:`Déjà associé à`,dataKey:`nom_ref`},{title:`Module`,dataKey:`module`}],Ap=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)([]),[c,l]=(0,Y.useState)([]),[u,d]=(0,Y.useState)([]),[f,p]=(0,Y.useState)(null),[m,h]=(0,Y.useState)(null),{swf:g,softCode:_,tableName:v,choice:y,tableParams:b}=jf(),x=gf(g,_,v,y,b),S=x.data?.listes?.MDA,C=x.data?.combos??{};(0,Y.useEffect)(()=>{if(t!==null&&t.medecins_regroupes_oids){a(t.nom);let e=t.medecins_regroupes_oids.split(`,`);if(l(e),e.length&&S){let t=[];e.forEach(e=>{let n=S.find(t=>t.oid===e);n&&t.push(n)}),s(t)}S&&d(D(S))}else a(``),s([])},[t,S]),(0,Y.useEffect)(()=>{S&&d(D(S))},[i,c]);let w=e=>{a(e.target.value)},T=e=>{p(o.find(t=>t.key===e))},E=e=>{h(u.find(t=>t.key===e))};function D(e){let t=[...e];return t=t.filter(e=>(e.nom_adm.toLowerCase().includes(i.toLocaleLowerCase())||e.nom_ref.toLowerCase().includes(i.toLocaleLowerCase()))&&!c.includes(e.oid)),t}let ee=()=>{let e={...t},i=t.medecins_regroupes_oids.split(`,`);i=i.filter(e=>e!==f.oid),e.medecins_regroupes_oids=i.join(`,`),n(e),r(),p(null)},O=()=>{let e={...t},i=t.medecins_regroupes_oids.split(`,`);i.push(m.oid),e.medecins_regroupes_oids=i.join(`,`),n(e),r(),h(null)},te=e=>e.map(e=>({width:300,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e}));return(0,$.jsxs)(`div`,{className:`med-editor`,children:[(0,$.jsx)(`div`,{className:`tables-column`,children:Yf(e.fields,t,C)}),(0,$.jsxs)(`div`,{className:`tables-column`,children:[(0,$.jsx)(`div`,{className:`med-top-table`,children:(0,$.jsx)(Gt,{fixed:!1,columns:te(Op),data:o,selectedRow:f,onRowSelect:T})}),(0,$.jsxs)(`div`,{className:`med-actions`,children:[(0,$.jsx)(R,{type:`link`,style:{lineHeight:`28px`},disabled:!f,onClick:ee,children:(0,$.jsx)(nt,{})}),(0,$.jsx)(R,{type:`link`,style:{lineHeight:`28px`},disabled:!m,onClick:O,children:(0,$.jsx)(tt,{})}),(0,$.jsx)(`span`,{style:{paddingLeft:`12px`,paddingRight:`8px`},children:`Recherche`}),(0,$.jsx)(N,{style:{height:`24px`},value:i,onChange:w})]}),(0,$.jsx)(`div`,{className:`med-bottom-table`,children:(0,$.jsx)(Gt,{fixed:!1,columns:te(kp),data:u,selectedRow:m,onRowSelect:E})})]})]})};Ap.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var jp=[{title:`Médecins regroupés`,width:100,flexGrow:2,dataKey:`texte`}],Mp=[{title:`Médecins à regrouper`,width:100,flexGrow:2,dataKey:`texte`,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>r.texte}],Np=({record:e,form:t,handleUpdateRecord:n,handleValuesChange:r})=>{let[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)([]),[c,l]=(0,Y.useState)(),[u,d]=(0,Y.useState)(),{swf:f,softCode:p,tableName:m,choice:h,tableParams:g}=jf(),_=gf(f,p,m,h,g),v=_.data?.combos??{},y=_.data?.listes??{},b=_.data?.records??[];return(0,Y.useEffect)(()=>{e.nom&&a(e.nom.substring(0,3));let t=[];if(e.medecins_regroupes_oids&&y.MEDA?.length){let n=e.medecins_regroupes_oids.split(`, `).map(e=>e.trim());t=[...t,...n]}y.MEDA&&y.MEDA.length&&s(y.MEDA.filter(e=>t.indexOf(e.oid)>=0))},[e,y,b]),(0,$.jsxs)(`div`,{className:`meda-editor`,children:[(0,$.jsxs)(`div`,{className:`form-column`,style:{width:`30%`,justifyContent:`flex-start`},children:[(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Code`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`code`,children:(0,$.jsx)(N,{disabled:!0})})})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Nom`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`nom`,children:(0,$.jsx)(N,{})})})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Prénom`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`prenom`,children:(0,$.jsx)(N,{})})})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Spécialité officielle`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`specialite`,children:(0,$.jsx)(N,{disabled:!0})})})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Médecin référence`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`medecin_reference`,children:(0,$.jsx)(N,{disabled:!0})})})]}),(0,$.jsxs)(`div`,{className:`form-row`,children:[(0,$.jsx)(`div`,{className:`first-label`,children:`Spécialité interne`}),(0,$.jsx)(`div`,{className:`form-meda-item`,style:{flex:3},children:(0,$.jsx)(V.Item,{name:`specialite_interne_id`,children:(0,$.jsx)(z,{options:v.SPI,style:{width:`100%`}})})})]})]}),e.medecin_reference_id===`0`&&(0,$.jsxs)(`div`,{className:`form-column meda-tables`,style:{flex:3},children:[(0,$.jsx)(`div`,{className:`meda-top-table`,children:(0,$.jsx)(Gt,{data:o,columns:jp,selectedRow:u,onRowSelect:e=>d(b.find(t=>t.key===e))})}),(0,$.jsxs)(`div`,{className:`meda-actions`,children:[(0,$.jsx)(R,{onClick:()=>{let t=e.medecins_regroupes_oids?e.medecins_regroupes_oids+`, `+c.oid:c.oid;n({...e,medecins_regroupes_oids:t}),l(null),r()},children:(0,$.jsx)(Wt,{})}),(0,$.jsx)(R,{style:{marginLeft:8,marginRight:8},onClick:()=>{let t=e.medecins_regroupes_oids.split(`, `).filter(e=>e!==u.oid).join(`, `);n({...e,medecins_regroupes_oids:t}),d(null),r()},children:(0,$.jsx)(Gd,{})}),(0,$.jsx)(N,{placeholder:`Recherche`,value:i,onChange:e=>a(e.target.value)})]}),(0,$.jsx)(`div`,{className:`meda-bottom-table`,children:(0,$.jsx)(Gt,{data:y.MEDA.filter(e=>e.texte.includes(i)),columns:Mp,selectedRow:c,onRowSelect:e=>l(y.MEDA.find(t=>t.key===e))})})]})]})};Np.propTypes={record:Q.default.object,form:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Pp=n(r(((e,t)=>{var n=Ge(),r=Qe(),i=Ke(),a=S(),o=qe(),s=Ye(),c=Ze(),l=Je(),u=`[object Map]`,d=`[object Set]`,f=Object.prototype.hasOwnProperty;function p(e){if(e==null)return!0;if(o(e)&&(a(e)||typeof e==`string`||typeof e.splice==`function`||s(e)||l(e)||i(e)))return!e.length;var t=r(e);if(t==u||t==d)return!e.size;if(c(e))return!n(e).length;for(var p in e)if(f.call(e,p))return!1;return!0}t.exports=p}))()),Fp=({value:e,handleUpdate:t,column:n,recordKey:r,rowKey:i,type:a,selectValues:o})=>{let[s,c]=(0,Y.useState)(!1),[l,u]=(0,Y.useState)(``),d=(0,Y.useRef)();(0,Y.useEffect)(()=>{u(e)},[e,r]),(0,Y.useEffect)(()=>{s&&d.current.focus()},[s]);let f=()=>{c(!s)},p=e=>{u(e.target.value)},m=()=>{c(!1),l!==e&&t(n.key,l,i)},h=r=>{let a=r.target.checked?`1`:`0`;a!==e&&t(n.key,a,i)},g=r=>{r!==e&&t(n.key,r,i)};switch(a){case`checkbox`:return(0,$.jsx)(Vt,{checked:e===`1`,onChange:e=>h(e)});case`input`:return s?(0,$.jsx)(N,{ref:d,style:{marginLeft:`6px`,width:`90%`},value:l,onChange:p,onBlur:m}):(0,$.jsx)(`div`,{className:`editable-field`,onClick:f,children:l});case`select`:return(0,$.jsx)(z,{value:e,options:o,style:{width:250},showSearch:!0,filterOption:(e,t)=>(t?.label??``).toLowerCase().includes(e.toLowerCase()),onChange:g});default:break}};Fp.propTypes={initialText:Q.default.string,handleUpdate:Q.default.func,field:Q.default.string,rowKey:Q.default.number,type:Q.default.string};var Ip=[{title:`Date`,dataKey:`date`},{title:`Étage`,dataKey:`oid`,width:300}],Lp=({record:e,handleUpdateRecord:t,handleValuesChange:n,selectValues:r})=>{let[i,a]=(0,Y.useState)([]),o=(0,Y.useRef)();o.current=e,(0,Y.useEffect)(()=>{!(0,Pp.default)(e)&&e.extraData.etages&&a(e.extraData.etages.map(e=>({...e})))},[e]);let s=e=>e.map(e=>({width:120,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e,cellRenderer:({cellData:e,column:t,rowData:n,rowIndex:i})=>t.key===`oid`?(0,$.jsx)(Fp,{value:e,handleUpdate:l,column:t,rowKey:i,type:`select`,selectValues:r.ETAGE}):(0,$.jsx)(Fp,{value:e,handleUpdate:l,column:t,field:t.key,rowKey:i,type:`input`})})),c=()=>{let r={key:e.extraData.etages.length,date:(0,Qd.default)().format(`DD/MM/YYYY`),date_debut:(0,Qd.default)().format(`DD/MM/YYYY`),oid:`0`},i={...e};i.extraData={...e.extraData};let a=i.extraData.etages.map(e=>({...e}));i.extraData.etages=a,i.extraData.etages.push(r),t(i),n()},l=(e,r,s)=>{let c={...o.current};c.extraData={...c.extraData};let l=c.extraData.etages.map(e=>({...e})),u=l.find(e=>e.key===s);u&&(u[e]=r,c.extraData.etages=l,t(c),n());let d=[...i],f=d.find(e=>e.key===s);f&&(f[e]=r,a(d))};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(R,{type:`primary`,onClick:c,children:`Ajouter`}),(0,$.jsx)(Gt,{columns:s(Ip),data:i})]})};Lp.propTypes={record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Rp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c).data?.combos??{},u=Cn(e.module?`iCTI_${e.module}`:void 0).data??En,[d,f]=(0,Y.useState)(!1),[p,m]=(0,Y.useState)(),h=e=>{n({...t,[`ei_${p}_id`]:e.oid}),r(),m(null),f(!1)},g=e=>{f(!0),m(e)};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:d,handleShowModal:()=>f(!1),options:{oneOnly:!0},handleAddIndicators:h,handleModifyIndicator:h}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Indicateurs CTI`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_01_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`01`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_01_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_01_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_01`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_01`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]})]})};Rp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var zp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c).data?.combos??{},u=Cn(e.module?`iCTI_${e.module}`:void 0).data??En,[d,f]=(0,Y.useState)(!1),[p,m]=(0,Y.useState)(),h=e=>{n({...t,[`ei_${p}_id`]:e.oid}),r(),m(null),f(!1)},g=e=>{f(!0),m(e)};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:d,handleShowModal:()=>f(!1),options:{oneOnly:!0},handleAddIndicators:h,handleModifyIndicator:h}),(0,$.jsxs)(`div`,{style:{height:`800px`},children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Indicateur établissement`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_51_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`51`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_51_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_51_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_51`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_51`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Ou`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_52_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`52`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_52_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_52_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_52`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_52`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Ou`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_53_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`53`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_53_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_53_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_53`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_53`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]})]})]})};zp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Bp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c).data?.combos??{},u=Cn(e.module?`iCTI_${e.module}`:void 0).data??En,[d,f]=(0,Y.useState)(!1),[p,m]=(0,Y.useState)(),h=e=>{n({...t,[`ei_${p}_id`]:e.oid}),r(),m(null),f(!1)},g=e=>{f(!0),m(e)};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Tn,{showModal:d,handleShowModal:()=>f(!1),options:{oneOnly:!0},handleAddIndicators:h,handleModifyIndicator:h}),(0,$.jsxs)(`div`,{style:{height:`600px`},children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Autre indicateur CTI`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_02_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`02`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_02_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_02_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_02`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_02`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Ou`}),(0,$.jsx)(`div`,{className:`evt-indicator-row`,children:(0,$.jsxs)(`div`,{className:`evt-indicator`,children:[(0,$.jsx)(N,{style:{height:28},disabled:!0,value:u.indicators.find(e=>e.oid===t.ei_03_id)?.entete??``}),(0,$.jsx)(R,{type:`primary`,onClick:()=>g(`03`),children:`Ajouter`})]})}),(0,$.jsxs)(`div`,{className:`evt-conditions`,children:[(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`Conditions`}),(0,$.jsx)(V.Item,{name:`ec_03_id_1`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]}),(0,$.jsxs)(`div`,{className:`evt-condition`,children:[(0,$.jsx)(`span`,{className:`condition-label`,children:`et`}),(0,$.jsx)(V.Item,{name:`ec_03_id_2`,children:(0,$.jsx)(Mt,{treeData:l.CONDITIONS,style:{width:300}})})]})]})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Formule`}),(0,$.jsx)(V.Item,{name:`ef_03`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,style:{minWidth:200},children:`Niveau de détail`}),(0,$.jsx)(V.Item,{name:`et_03`,style:{width:`100%`},children:(0,$.jsx)(z,{options:qf[`CXP_item_${e.module}`]})})]})]})]})};Bp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Vp=[{title:`Lit`,dataKey:`code`},{title:`CP`,dataKey:`chambre_particuliere`,width:50}],Hp=({record:e,handleUpdateRecord:t,handleValuesChange:n})=>{let[r,i]=(0,Y.useState)([]),a=(0,Y.useRef)();a.current=e,(0,Y.useEffect)(()=>{!(0,Pp.default)(e)&&e.extraData.lits&&i(e.extraData.lits.map(e=>({...e})))},[e]);let o=e=>e.map(e=>({width:120,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e,cellRenderer:({cellData:e,column:t,rowData:n,rowIndex:r})=>t.key===`chambre_particuliere`?(0,$.jsx)(Fp,{value:n[t.key],handleUpdate:s,column:t,recordKey:t.key,rowKey:r,type:`checkbox`}):(0,$.jsx)(Fp,{value:e,handleUpdate:s,column:t,recordKey:t.key,rowKey:r,type:`input`})})),s=(e,o,s)=>{let c={...a.current};c.extraData={...c.extraData};let l=c.extraData.lits.map(e=>({...e})),u=l.find(e=>e.key===s);u&&(u[e]=o,c.extraData.lits=l,t(c),n());let d=[...r],f=d.find(e=>e.key===s);f&&(f[e]=o,i(d))};return(0,$.jsx)($.Fragment,{children:(0,$.jsx)(Gt,{columns:o(Vp),data:r})})};Hp.propTypes={record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Up=[{title:`Supprimer`,dataKey:`action`},{title:`Date`,dataKey:`date`},{title:`Lits théoriques`,dataKey:`nb_lits_theoriques`},{title:`Lits ouverts`,dataKey:`nb_lits_ouverts`},{title:`Box A théoriques`,dataKey:`nb_box_ambulatoires_theoriques`},{title:`Box A ouverts`,dataKey:`nb_box_ambulatoires_ouverts`},{title:`Box S théoriques`,dataKey:`nb_box_seances_theoriques`},{title:`Box S ouverts`,dataKey:`nb_box_seances_ouverts`},{title:`C.P. théoriques`,dataKey:`nb_lits_cp_theoriques`},{title:`C.P. ouvertes`,dataKey:`nb_lits_cp_ouverts`},{title:`L`,dataKey:`est_ouvert_1`,width:50},{title:`M`,dataKey:`est_ouvert_2`,width:50},{title:`M`,dataKey:`est_ouvert_3`,width:50},{title:`J`,dataKey:`est_ouvert_4`,width:50},{title:`V`,dataKey:`est_ouvert_5`,width:50},{title:`S`,dataKey:`est_ouvert_6`,width:50},{title:`D`,dataKey:`est_ouvert_7`,width:50}],Wp=({record:e,handleUpdateRecord:t,handleValuesChange:n})=>{let[r,i]=(0,Y.useState)([]),a=(0,Y.useRef)();a.current=e,(0,Y.useEffect)(()=>{!(0,Pp.default)(e)&&e.extraData.histos&&i(e.extraData.histos.map(e=>({...e})))},[e]);let o=(e,o,s)=>{let c={...a.current};c.extraData={...c.extraData};let l=c.extraData.histos.map(e=>({...e})),u=l.find(e=>e.key===s);u&&(u[e]=o,c.extraData.histos=l,t(c),n());let d=[...r],f=d.find(e=>e.key===s);f&&(f[e]=o,i(d))},s=e=>{let r={...a.current};r.extraData={...r.extraData};let i=r.extraData.histos.map(e=>({...e})),o=i.findIndex(t=>t.key===e);o>-1&&(i.splice(o,1),r.extraData.histos=i,t(r),n())};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(R,{type:`primary`,onClick:()=>{let r={key:0,date:(0,Qd.default)().format(`DD/MM/YYYY`),nb_lits_theoriques:`0`,nb_lits_ouverts:`0`,nb_box_ambulatoires_theoriques:`0`,nb_box_ambulatoires_ouverts:`0`,nb_box_seances_theoriques:`0`,nb_box_seances_ouverts:`0`,est_ouvert_1:`1`,est_ouvert_2:`1`,est_ouvert_3:`1`,est_ouvert_4:`1`,est_ouvert_5:`1`,est_ouvert_6:`1`,est_ouvert_7:`1`},i={...e};i.extraData={...e.extraData};let a=i.extraData.histos.map(e=>({key:e.key++,...e}));i.extraData.histos=a,i.extraData.histos.unshift(r),t(i),n()},style:{marginBottom:`8px`},children:`Ajouter`}),(0,$.jsx)(Gt,{fixed:!1,columns:(e=>e.map(e=>({width:120,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e,cellRenderer:({cellData:e,column:t,rowData:n,rowIndex:r})=>t.key.startsWith(`est_ouvert`)?(0,$.jsx)(Fp,{value:e,handleUpdate:o,column:t,rowKey:r,type:`checkbox`}):t.key===`action`?(0,$.jsx)(R,{onClick:()=>s(r),children:(0,$.jsx)(Pt,{})}):(0,$.jsx)(Fp,{value:e,handleUpdate:o,column:t,field:t.key,rowKey:r,type:`input`})})))(Up),data:r})]})};Wp.propTypes={record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Gp=[{title:`Date début`,dataKey:`dd`},{title:`Date fin`,dataKey:`df`},{title:`Borne basse`,dataKey:`bb`},{title:`Borne haute`,dataKey:`bh`},{title:`Dms nationale`,dataKey:`dm`},{title:`Tarif GHS`,dataKey:`tg`},{title:`Forfait EXB`,dataKey:`fb`},{title:`Tarif EXB`,dataKey:`tb`},{title:`Tarif EXH`,dataKey:`tx`}],Kp=({record:e,typeEts:t})=>{let n=t===`public`?`pp`:`pr`,r=Object.keys(e).filter(e=>e.includes(n)),i={};r.forEach(t=>i[t]=e[t]);let a={};return Object.keys(i).forEach(e=>{let t=parseInt(e.slice(-1));a[t]=a[t]?a[t]:{key:t},a[t][e.slice(0,-3)]=i[e]}),(0,$.jsx)($.Fragment,{children:(0,$.jsx)(Gt,{fixed:!1,columns:(e=>e.map(e=>({width:120,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e})))(Gp),data:_e(Object.values(a),`dd`,`desc`)})})};Kp.propTypes={record:Q.default.object,typeEts:Q.default.string};var qp={SER_type_t2a_provider:[{label:`Pas de sélection`,value:`0`},{label:`PMSI MCO`,value:`1`},{label:`PMSI SMR`,value:`2`},{label:`PMSI PSY`,value:`3`},{label:`PMSI HAD`,value:`4`}],OPTADM_DAYOUT_PROVIDER:[{label:`Jour de sortie non inclus sauf hospits avec DE=DS`,value:`0`},{label:`Jour de sortie non inclus`,value:`1`},{label:`Jour de sortie inclus`,value:`2`}],SER_TYPE_SEJOUR_PROVIDER:[{label:`Selon mode de traitement et séjour`,value:`0`},{label:`Selon mode de traitement et séjour (sauf séance)`,value:`0sauf5`},{label:`Hospitalisé`,value:`1`},{label:`Ambulatoire`,value:`2`},{label:`Externe`,value:`3`},{label:`Externe si durée <= 1n, Hospitalisé sinon)`,value:`31`},{label:`Séance`,value:`5`},{label:`Bébé`,value:`6`},{label:`Ignorer ce service`,value:`9`}],SER_est_sans_facturation_provider:[{label:`Avec facturation`,value:`0`},{label:`Sans facturation`,value:`1`},{label:`Facturation facultative si budget global expédié MAT2A`,value:`2`}]},Jp=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c).data?.combos??{},[u,d]=(0,Y.useState)([]),f={...l,...qp,...qf};return(0,Y.useEffect)(()=>{e&&d(e.fields)},[e]),(0,Pp.default)(t)?null:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-common-fields`,children:Yf(e.fields.filter(e=>!e.tab),``,f)}),(0,$.jsx)(`div`,{className:`tables-tab-fields`,children:(0,$.jsx)(zt,{shouldUpdate:!0,items:(i=>{let a={};return e.tabs.forEach(e=>{a[e.key]={...e,children:[]}}),i.forEach(e=>{a[e.tab].children.push(e)}),Object.values(a).map((i,a)=>({label:(0,$.jsx)(`span`,{children:i.label}),key:a,className:`tables-tab-panes`,children:(i=>i.children.map((i,a)=>{switch(i.type){case`histos`:return(0,$.jsx)(Wp,{record:t,handleUpdateRecord:n,handleValuesChange:r},a);case`lits`:return(0,$.jsx)(Hp,{record:t,handleUpdateRecord:n,handleValuesChange:r},a);case`etages`:return(0,$.jsx)(Lp,{record:t,handleUpdateRecord:n,handleValuesChange:r,selectValues:f},a);case`cti-constantes`:return(0,$.jsx)(ip,{record:t,handleUpdateRecord:n,tableParams:e,typeOnly:!0});case`cxp-regle-cti`:return(0,$.jsx)(Rp,{record:t,handleUpdateRecord:n,handleValuesChange:r,tableParams:e,typeOnly:!0});case`cxp-autre-cti`:return(0,$.jsx)(Bp,{record:t,handleUpdateRecord:n,handleValuesChange:r,tableParams:e,typeOnly:!0});case`cxp-ets`:return(0,$.jsx)(zp,{record:t,handleUpdateRecord:n,handleValuesChange:r,tableParams:e,typeOnly:!0});case`tarifs_prive_ghs`:return(0,$.jsx)(Kp,{record:t,typeEts:`prive`},a);case`tarifs_public_ghs`:return(0,$.jsx)(Kp,{record:t,typeEts:`public`},a);case`event-regle-cti`:case`event-regle-spe`:return(0,$.jsx)(wp,{record:t,handleUpdateRecord:n,typeOfRegles:i.type},a);default:return Zf(i,a,t,f)}}))(i)}))})(e.fields.filter(e=>e.tab))})})]})};Jp.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var Yp={selectOptions:[{label:`Nombre`,value:`0`},{label:`Base`,value:`1`},{label:`Tx. salarial`,value:`2`},{label:`Mt. salarial`,value:`3`},{label:`Tx. patronal`,value:`4`},{label:`Mt. patronal`,value:`5`},{label:`Mt. +sal. +pat.`,value:`6`},{label:`Mt. +sal. -pat.`,value:`7`},{label:`Mt. -sal. +pat.`,value:`8`}]},Xp=({index:e,rubrique:t,field:n,handleUpdateRubrique:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c).data?.combos??{},[u,d]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{d(!t.pVal)},[t]);let f={...l,...Yp};return(0,$.jsxs)(`div`,{className:`rubrique`,children:[(0,$.jsxs)(`div`,{className:`rubrique-header`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:n.title}),(0,$.jsx)(V.Item,{name:t.pKey,valuePropName:`checked`,extra:n.detail,children:(0,$.jsx)(Vt,{onChange:e=>r(e.target)})})]}),(0,$.jsxs)(`div`,{className:`rubrique-fields`,children:[(0,$.jsx)(V.Item,{name:t.sKey,children:(0,$.jsx)(z,{disabled:u,options:f.selectOptions,showSearch:!0,filterOption:(e,t)=>(t?.label??``).toLowerCase().includes(e.toLowerCase()),style:{width:`100%`}})}),(0,$.jsx)(V.Item,{name:t.cKey,children:(0,$.jsx)(N,{disabled:u})})]})]},e)};Xp.propTypes={index:Q.default.number,rubrique:Q.default.object,field:Q.default.object,handleUpdateRubrique:Q.default.func};var Zp=({record:e,fields:t,handleGetFieldValue:n,handleUpdateRecord:r})=>{let{swf:i,softCode:a,tableName:o,choice:s,tableParams:c}=jf(),l=gf(i,a,o,s,c),u=l.data?.combos??{},d=l.data?.divers??{},f=t=>{let n=t.id,i={...e};i[n]=t.checked===!0?`X`:``,r(i)},p=(e,t)=>{if(e.editVisible===!1)return null;{let r=e.dataKey?e.dataKey:e.key,i=r.replace(`p`,`c`),a=r.replace(`p`,`s`);return(0,$.jsx)(Xp,{index:t,field:e,rubrique:{pKey:r,pVal:n(r),cKey:i,cVal:n(i),sKey:a,sVal:n(a)},handleUpdateRubrique:f,handleGetFieldValue:n},t+r)}};if((0,Pp.default)(e))return null;let m=d.rubriques.valeur,h=t[m].filter(e=>e.isSC);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-common-fields`,children:Yf(t[m],``,u)}),(0,$.jsx)(`div`,{className:`tables-rubriques-fields`,children:h.map((e,t)=>p(e,t))})]})};Zp.propTypes={record:Q.default.object,fields:Q.default.object,handleGetFieldValue:Q.default.func,handleUpdateRecord:Q.default.func};var Qp=({tableParams:e,record:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s=gf(n,r,i,a,o).data?.combos??{};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-common-fields`,children:Yf(e.fields.filter(e=>!e.tab),``,s)}),(0,$.jsx)(`div`,{className:`tables-chapter-fields`,children:(()=>{let e=Object.keys(t).filter(e=>e.startsWith(`cc`)&&t[e]!==``),n=Object.keys(t).filter(e=>e.startsWith(`ct`)&&t[e]!==``);return e.map((e,r)=>(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:t[e]}),(0,$.jsx)(V.Item,{name:n[r],className:`title-input`,style:{width:`100%`},children:(0,$.jsx)(N,{})})]},e))})()})]})};Qp.propTypes={tableParams:Q.default.object,record:Q.default.object};var $p=({tableParams:e,record:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s=gf(n,r,i,a,o).data?.combos??{},[c,l]=(0,Y.useState)([]),[u,d]=(0,Y.useState)(!1),[f,p]=(0,Y.useState)([]),[m,h]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(0);(0,Y.useEffect)(()=>{e&&p(e.fields)},[e,r]),(0,Y.useEffect)(()=>{r===`iCTI_compta`&&(l(v(f)),t[c?.modeSpe]?d(!0):d(!1))},[t]);let v=e=>{let t=e.filter(e=>e.comptaExtraParams===`taux`),n=e.filter(e=>e.comptaExtraParams===`pole`);return t.map((e,t)=>({tauxId:e.dataKey,poleId:n[t].dataKey}))},y=e=>{let t=0;return c?.forEach(n=>{t+=Number(e[n.tauxId])}),t},b=e=>{h(!m),t[e.target.id]=e.target.value};(0,Y.useEffect)(()=>{_(y(t))},[t,b]);let x=e=>{e.target.value&&!u?d(!0):u&&!e.target.value&&d(!1)};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-common-fields`,children:Yf(e.fields.filter(e=>!e.tab),``,s)}),r===`iCTI_compta`&&c.length&&(0,$.jsx)(`div`,{className:`tables-common-fields`,children:(e=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Mode spécifique`}),(0,$.jsx)(V.Item,{name:`special_calc`,onChange:x,children:(0,$.jsx)(N,{})})]}),e&&!u&&(0,$.jsxs)(`div`,{className:`common-form-item`,style:{alignItems:`flex-start`},children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Pole Total : ${g} %`}),(0,$.jsx)(`div`,{className:`compta-grid`,children:e.map(e=>(0,$.jsxs)(`div`,{className:`compta-grid__container`,children:[(0,$.jsx)(V.Item,{name:e.poleId,children:(0,$.jsx)(z,{options:s.POL})}),(0,$.jsx)(V.Item,{shouldUpdate:!0,children:({getFieldValue:t})=>(0,$.jsx)(V.Item,{name:e.tauxId,onChange:b,children:(0,$.jsx)(N,{disabled:t(e.poleId)===`0`,addonAfter:`%`,type:`number`})})})]},e.tauxId))})]})]}))(c)}),(0,$.jsx)(`div`,{className:`tables-tab-fields`,children:(0,$.jsx)(zt,{items:(e=>e.map((e,n)=>e.editVisible===!1?null:{label:(0,$.jsxs)(`span`,{children:[t[e.dataKey]!==``&&(0,$.jsx)(Zd,{}),e.title]}),key:n,children:(0,$.jsx)(V.Item,{name:e.dataKey,children:(0,$.jsx)(N.TextArea,{})})}))(e.fields.filter(e=>e.tab))})})]})};$p.propTypes={tableParams:Q.default.object,record:Q.default.object};var em=n(Ut()),tm=({tableParams:e,form:t})=>{let{swf:n,softCode:r,tableName:i,choice:a,tableParams:o}=jf(),s=gf(n,r,i,a,o).data?.combos??{},c=s.SEJ;return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{className:`tables-common-fields`,children:[(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Numéro`}),(0,$.jsx)(V.Item,{style:{width:`100%`},name:`code`,children:(0,$.jsx)(N,{onChange:(0,em.default)(e=>{let n=c.find(t=>t.code===e.target.value),r=`?`;n&&(r=n.texte),t.setFieldsValue({texte:r})},500)})})]}),(0,$.jsxs)(`div`,{className:`common-form-item`,children:[(0,$.jsx)(`span`,{className:`item-label`,children:`Nom`}),(0,$.jsx)(V.Item,{style:{width:`100%`},name:`texte`,children:(0,$.jsx)(N,{disabled:!0})})]}),Yf(e.fields.filter(e=>e.dataKey!==`code`&&e.dataKey!==`texte`),``,{...s,...qf})]})})};tm.propTypes={tableParams:Q.default.object,form:Q.default.object};var nm=({tableParams:e,record:t,handleUpdateRecord:n,handleValuesChange:r})=>{let i=e.listName,a=e.listPath,{swf:o,softCode:s,tableName:c,choice:l,tableParams:u}=jf(),d=gf(o,s,c,l,u),f=d.data?.listes?.[i],p=d.data?.combos??{},m=vf(cf),h=(0,Y.useMemo)(()=>({...p,territoire_de_sante:m.data}),[p,m.data]),[g,_]=(0,Y.useState)(``),[v,y]=(0,Y.useState)([]),[b,x]=(0,Y.useState)([]),[S,C]=(0,Y.useState)([]),[w,T]=(0,Y.useState)(null),[E,D]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{if(t!==null&&t[a]){g===``&&_(t.texte);let e=t[a].replace(/\s+/g,``).split(`,`);if(e=e.map(e=>e),x(e),e.length&&f){let t=[];e.forEach(e=>{let n=f.find(t=>t.oid===e);n&&t.push(n)}),y(t)}if(f){let t=[];f.forEach(n=>{e.find(e=>n.oid===e)||t.push(n)}),C(k(t))}}else y([]),C([]),x([])},[t,f]),(0,Y.useEffect)(()=>{let e=[];f&&(t!==null&&t[a]&&b?f.forEach(n=>{let r=t[a].replace(/\s+/g,``).split(`,`);r=r.map(e=>e),r.find(e=>n.oid===e)||e.push(n)}):e=f.map(e=>({...e,label:e.texte})),C(k(e)))},[g,b]);let ee=e=>{_(e.target.value)},O=e=>{T(v.find(t=>t.key===e))},te=e=>{D(S.find(t=>t.key===e))},k=e=>{let t=[...e];return g&&(t=t.filter(e=>e.texte.toLowerCase().includes(g.toLocaleLowerCase()))),t},ne=()=>{let e={...t},i=t[a].replace(/\s+/g,``).split(`,`);i=i.filter(e=>e!==w.oid),e[a]=i.join(`,`),n(e),r(),T(null)},re=()=>{let e={...t},i=t[a].replace(/\s+/g,``).split(`,`);i.push(E.oid),e[a]=i.join(`,`),n(e),r(),D(null)},ie=[...e.transfertFields],A=e=>e.map(e=>({width:300,key:e.dataKey,dataIndex:e.dataKey,ellipsis:!0,...e}));return(0,$.jsxs)(`div`,{className:`transfer-editor`,children:[(0,$.jsx)(`div`,{className:`tables-column`,children:Yf(e.fields,t,h)}),(0,$.jsxs)(`div`,{className:`tables-column`,children:[(0,$.jsx)(`div`,{className:`med-top-table`,children:(0,$.jsx)(Gt,{fixed:!1,columns:A(ie),data:v,selectedRow:w,onRowSelect:O})}),(0,$.jsxs)(`div`,{className:`med-actions`,children:[(0,$.jsx)(R,{type:`link`,style:{lineHeight:`28px`},disabled:!w,onClick:ne,children:(0,$.jsx)(nt,{})}),(0,$.jsx)(R,{type:`link`,style:{lineHeight:`28px`},disabled:!E,onClick:re,children:(0,$.jsx)(tt,{})}),(0,$.jsx)(`span`,{style:{paddingLeft:`12px`,paddingRight:`8px`},children:`Recherche`}),(0,$.jsx)(N,{style:{height:`24px`},value:g,onChange:ee})]}),(0,$.jsx)(`div`,{className:`med-bottom-table`,children:(0,$.jsx)(Gt,{fixed:!1,columns:A(ie),data:S,selectedRow:E,onRowSelect:te})})]})]})};nm.propTypes={tableParams:Q.default.object,record:Q.default.object,handleUpdateRecord:Q.default.func,handleValuesChange:Q.default.func};var rm=({tableParams:e,record:t,handleShowEditor:n,swf:r,choice:i})=>{let a=Et(),{swf:o,softCode:s,tableName:c,choice:l,tableParams:u}=jf(),d=gf(o,s,c,l,u),f=yf(),p=bf(),m=xf(),h=a.data?.session,g=d.data?.records??[],_=e?.component??null,[v,y]=(0,Y.useState)(!1),[b,x]=(0,Y.useState)({}),[S]=V.useForm();(0,Y.useEffect)(()=>{if(t){y(!1);let n=nf(t,e,g);S.setFieldsValue(n),x({...n})}},[t,e,g]);let C=f.isPending||p.isPending||m.isPending,w=t?.nbref&&t?.nbref!==`+0`&&t?.nbref!==`0`||t?.oid===`-1`,T=e=>S.getFieldValue(e),E=()=>{y(!0)},D=()=>{let e=g.find(e=>e.key===t.key);x({...e}),S.setFieldsValue(e),y(!1)},ee=()=>{y(!1),n()},O=e=>{x({...e,...S.getFieldsValue()})},te=(t=!0)=>{let i={...b,...S.getFieldsValue()};i=ef(i,e);let a=$d(i,`save`);f.mutate({swf:r,softCode:s,tableName:e.tableName,recordXml:a,propagate:t},{onSuccess:()=>{y(!1),n()}})},k=()=>{let t={...b,...S.getFieldsValue()};t=ef(t,e);let i=$d(t,`copy`);p.mutate({swf:r,softCode:s,tableName:e.tableName,recordXml:i},{onSuccess:()=>{y(!1),n()}})},ne=()=>{bn(e.tableName,t.oid)},re=()=>{let t=Kt({RECORD:{XMLType:`RECORD`,oid:b.oid}},!0);m.mutate({swf:r,softCode:s,tableName:e.tableName,recordXml:t})};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`tables-editor-header`,children:[e.sqlButton&&h.ISROLECTI&&(0,$.jsx)(R,{icon:(0,$.jsx)(ct,{}),onClick:ne,children:`SQL`}),e.addButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment supprimer cette entrée ?`,okText:`Supprimer`,cancelText:`Annuler`,onConfirm:re,children:(0,$.jsx)(R,{icon:(0,$.jsx)(Pt,{}),disabled:w||C,loading:m.isPending,children:`Supprimer`})}),e.deleteButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment supprimer cette entrée ?`,okText:`Supprimer`,cancelText:`Annuler`,onConfirm:re,children:(0,$.jsx)(R,{icon:(0,$.jsx)(Pt,{}),loading:m.isPending,disabled:C||(e?.tableName===`t_ghm_dms`?!(t&&t.dms?.trim()===``&&t.key===0):w),children:`Supprimer`})}),e.copyButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment copier cette entrée ?`,okText:`Copier`,cancelText:`Annuler`,onConfirm:k,children:(0,$.jsx)(R,{icon:(0,$.jsx)(it,{}),loading:p.isPending,disabled:C||t&&t.oid===`-1`,children:`Copier`})}),(0,$.jsx)(wn,{onConfirm:D,modified:v,disabled:!v}),(0,$.jsx)(R,{icon:(0,$.jsx)(dt,{}),type:`primary`,disabled:!v||C,loading:f.isPending,onClick:()=>te(),children:`Enregistrer`}),e.saveWithoutCalc&&(0,$.jsx)(R,{icon:(0,$.jsx)(dt,{}),type:`primary`,disabled:!v||C,loading:f.isPending,onClick:()=>te(!1),children:`Enregistrer sans recalcul`}),(0,$.jsx)(Dn,{onConfirm:ee,modified:v})]}),(0,$.jsx)(`div`,{className:`tables-editor-content`,children:(0,$.jsx)(V,{form:S,onValuesChange:E,style:{maxWidth:`100%`},children:(()=>{switch(_){case`common`:return(0,$.jsx)(Jf,{record:b,fields:e.fields});case`rubrique`:return(0,$.jsx)(Zp,{record:b,fields:e.fields,handleGetFieldValue:T,handleUpdateRecord:O});case`onglet`:return(0,$.jsx)(Jp,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E});case`rules`:return(0,$.jsx)($p,{tableParams:e,record:b});case`finess`:return(0,$.jsx)(Tp,{tableParams:e,record:b,handleUpdateRecord:O,softCode:s});case`transfert`:return(0,$.jsx)(nm,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E});case`DMS`:return(0,$.jsx)(Cp,{tableParams:e,record:b});case`MED`:return(0,$.jsx)(Ap,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E});case`BUD`:return(0,$.jsx)(tp,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E,form:S,softCode:s});case`BUI_activite`:return(0,$.jsx)(rp,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E});case`AJU`:return(0,$.jsx)(Pf,{tableParams:e,record:b,handleUpdateRecord:O,handleValuesChange:E,form:S});case`chapter`:return(0,$.jsx)(Qp,{tableParams:e,record:b});case`sejours`:return(0,$.jsx)(tm,{tableParams:e,form:S});case`constantes`:return(0,$.jsx)(ip,{tableParams:e,record:b,form:S,handleUpdateRecord:O,handleValuesChange:E});case`keyword`:return(0,$.jsx)(Dp,{form:S});case`evenement`:return(0,$.jsx)(wp,{tableParams:e,record:b,form:S,handleUpdateRecord:O,handleValuesChange:E});case`indicateur_qualite`:return(0,$.jsx)(Ep,{tableParams:e,record:b,form:S,handleUpdateRecord:O,handleValuesChange:E});case`MEDA`:return(0,$.jsx)(Np,{record:b,form:S,handleUpdateRecord:O,handleValuesChange:E});default:return(0,$.jsx)(St,{icon:(0,$.jsx)(Yt,{}),title:`Désolé cet editeur n'est pas comme les autres... Il est encore en construction (${_}) !`})}})()})})]})};rm.propTypes={tableParams:Q.default.object,record:Q.default.object,handleShowEditor:Q.default.func,swf:Q.default.string,softCode:Q.default.string,choice:Q.default.string};var im=({data:e,handleUpdateDescription:t})=>{let[n,r]=(0,Y.useState)(``);return(0,Y.useEffect)(()=>{r(e)},[e]),(0,$.jsx)(N.TextArea,{placeholder:``,size:`middle`,value:n,onChange:e=>{r(e),t(e)}})};im.propTypes={data:Q.default.string,handleUpdateDescription:Q.default.func};var am=[{title:`Code`,dataKey:`code`,key:`code`,width:200},{title:`Texte`,dataKey:`texte`,key:`texte`,width:400,resizable:!0},{title:`Abrégé`,dataKey:`texte_abrege`,key:`texte_abrege`,width:400,resizable:!0},{title:`Complément`,dataKey:`complement`,key:`complement`,width:200,resizable:!0},{title:`Gravité`,dataKey:`gravite_texte`,key:`gravite_texte`,width:200,resizable:!0}],om=({tableParams:e,record:t,handleShowEditor:n,swf:r,showRefs:i})=>{let a=Et(),{swf:s,softCode:c,tableName:l,choice:u,tableParams:d}=jf(),f=gf(s,c,l,u,d),p=yf(),m=bf(),h=xf(),g=Sf(),_=Cf(),v=wf(),y=a.data?.session,b=f.data?.records??[],x=f.data?.refRecords??[],[S]=V.useForm(),[C,w]=(0,Y.useState)(!1),[T,E]=(0,Y.useState)({}),[D,ee]=(0,Y.useState)([]);(0,Y.useEffect)(()=>{if(t){w(!1);let n=nf(t,e);S.setFieldsValue(n),E({...n})}},[t,e]);let O=p.isPending||m.isPending||h.isPending||g.isPending||_.isPending||v.isPending,te=t?.nbref&&t?.nbref!==`+0`&&t?.nbref!==`0`||t?.oid===`-1`,k=e=>{let n={...t,description:e,...S.getFieldsValue()};n=ef(n),E(n),w(!0)},ne=()=>{w(!0)},re=()=>{let e=b.find(e=>e.key===t.key);E({...e}),S.setFieldsValue(e),w(!1)},ie=()=>{w(!1),n()},A=()=>{let t={...T,...S.getFieldsValue()};t=ef(t,e);let n=$d(t,`save`);p.mutate({swf:r,softCode:c,tableName:e.tableName,recordXml:n},{onSuccess:()=>w(!1)})},ae=()=>{let t={...T,...S.getFieldsValue()};t=ef(t,e);let n=$d(t,`copy`);m.mutate({swf:r,softCode:c,tableName:e.tableName,recordXml:n},{onSuccess:()=>w(!1)})},oe=()=>{_.mutate({swf:r,tableName:e.tableName,softCode:c,oids:t.oid})},j=()=>{bn(e.tableName,t.oid,c)},se=()=>{let t=Kt({RECORD:{XMLType:`RECORD`,oid:T.oid}},!0);h.mutate({swf:r,softCode:c,tableName:e.tableName,recordXml:t})};return i?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-editor-header`,children:(0,$.jsx)(R,{disabled:!D.length||v.isPending,loading:v.isPending,onClick:()=>{v.mutate({swf:r,tableName:e.tableName,refs:D},{onSuccess:()=>ee([])})},icon:(0,$.jsx)(lt,{}),children:`Importer`})}),(0,$.jsx)(`div`,{className:`tables-editor-content`,children:(0,$.jsx)(Gt,{columns:am,data:x,shiftMulti:!0,onRowSelect:e=>{let t=[...D];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),ee([...new Set(t)])},selectedRows:D})})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`tables-editor-header`,children:[e.sqlButton&&y.ISROLECTI&&(0,$.jsx)(R,{icon:(0,$.jsx)(ct,{}),onClick:j,children:`SQL`}),(0,$.jsx)(rt,{title:`Voulez-vous vraiment effacer l'historique ?`,okText:`Effacer l'historique`,cancelText:`Annuler`,onConfirm:()=>{let t=Kt({RECORD:{XMLType:`RECORD`,oid:T.oid}},!0);g.mutate({swf:r,softCode:c,tableName:e.tableName,recordXml:t})},children:(0,$.jsx)(R,{icon:(0,$.jsx)(o,{}),disabled:O,loading:g.isPending,children:`Effacer historique`})}),(0,$.jsx)(rt,{title:`Voulez-vous vraiment exécuter cette règle ?`,okText:`Exécuter la règle`,cancelText:`Annuler`,onConfirm:oe,children:(0,$.jsx)(R,{icon:(0,$.jsx)(qd,{}),disabled:O||t&&t.oid===`-1`,loading:_.isPending,children:`Exécuter`})}),e.addButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment supprimer cette entrée ?`,okText:`Supprimer`,cancelText:`Annuler`,onConfirm:se,children:(0,$.jsx)(R,{icon:(0,$.jsx)(Pt,{}),disabled:te||O,loading:h.isPending,children:`Supprimer`})}),e.deleteButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment supprimer cette entrée ?`,okText:`Supprimer`,cancelText:`Annuler`,onConfirm:se,children:(0,$.jsx)(R,{icon:(0,$.jsx)(Pt,{}),loading:h.isPending,disabled:O||(e?.tableName===`t_ghm_dms`?!(t&&t.dms.trim()===``&&t.key===0):te),children:`Supprimer`})}),e.copyButton&&(0,$.jsx)(rt,{title:`Voulez-vous vraiment copier cette entrée ?`,okText:`Copier`,cancelText:`Annuler`,onConfirm:ae,children:(0,$.jsx)(R,{icon:(0,$.jsx)(it,{}),loading:m.isPending,disabled:O||t&&t.oid===`-1`,children:`Copier`})}),(0,$.jsx)(wn,{onConfirm:re,modified:C,disabled:!C||O}),(0,$.jsx)(R,{icon:(0,$.jsx)(dt,{}),type:`primary`,disabled:!C||O,loading:p.isPending,onClick:A,children:`Enregistrer`}),(0,$.jsx)(Dn,{onConfirm:ie,modified:C})]}),(0,$.jsx)(`div`,{className:`tables-editor-content`,children:(0,$.jsxs)(V,{form:S,onValuesChange:ne,style:{minWidth:`0px`,paddingTop:`20px`},children:[(0,$.jsx)(`div`,{className:`tables-common-fields`,children:Yf(e.fields.filter(e=>!e.tab),``)}),(0,$.jsx)(`div`,{className:`tables-tab-fields`,children:(0,$.jsx)(zt,{items:(n=>{let r={};return e.tabs.forEach(e=>{r[e.key]={...e,children:[]}}),n.forEach(e=>{r[e.tab].children.push(e)}),Object.values(r).map((n,r)=>{let i=null,a=[];return n.children.forEach(e=>e.type===`text-editor`?i=e:a.push(e)),{label:(0,$.jsx)(`span`,{children:n.label}),key:r,className:`tables-tab-panes`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Jf,{tableParams:e,record:T,fields:a}),i&&t?(0,$.jsx)(im,{data:t.description,handleUpdateDescription:k}):null]})}})})(e.fields.filter(e=>e.tab))})})]})})]})};om.propTypes={tableParams:Q.default.object,record:Q.default.object,handleShowEditor:Q.default.func,swf:Q.default.string};var sm=({showModalPreferences:e,handleShowModalPreferences:t,swf:n,softCode:r,tableParams:i})=>{let[a,o]=(0,Y.useState)(null),[s,c]=(0,Y.useState)(null),{swf:l,softCode:u,tableName:d,choice:f,tableParams:p}=jf(),m=gf(l,u,d,f,p),h=yf(),g=m.data?.divers??{},_=`DD/MM/YYYY`;(0,Y.useEffect)(()=>{g.expert&&(o((0,Qd.default)(g.expert.EXPERT_DATE_DEBUT,_)),c(g.expert.EXPERT_ACTIVE===`1`))},[g]);let v=()=>{let e=$d({mode:`2`,EXPERT_ACTIVE:s?`1`:`0`,EXPERT_DATE_DEBUT:(0,Qd.default)(a).format(`YYYY/MM/DD`)},`save`);h.mutate({swf:n,softCode:r,tableName:i.tableName,recordXml:e},{onSuccess:()=>t(!1)})},y=e=>{o(e)};return g.expert?(0,$.jsx)($.Fragment,{children:(0,$.jsx)(Lt,{title:`Préférences`,open:e,okText:`Enregistrer`,cancelText:`Retour`,confirmLoading:h.isPending,maskClosable:!0,onCancel:()=>t(!1),onOk:()=>{v()},children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{className:`spanStr`,children:`Expert`}),(0,$.jsx)(Ot,{checked:s,onClick:()=>{c(e=>!e)}})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{className:`spanStr`,children:`Date de démarrage :`}),(0,$.jsx)(Ud,{format:_,onChange:e=>{y(e)},dateRender:e=>(0,$.jsx)(`div`,{className:`ant-picker-cell-inner`,style:{fontSize:`12px`},children:e.date()})})]}),(0,$.jsx)(`div`,{children:(0,$.jsx)(`span`,{children:`À partir de cette date, tous les séjours seront controlés, sortis ou non.`})})]})})}):null},cm=[{title:`Code`,dataKey:`code`,type:`input`},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`}],lm={SIT:{tableName:`t_sites`,title:`Gestion Sites`,component:`common`,fields:[...cm,{title:`C/H`,dataKey:`clinique_honoraire`,type:`select`,selectOptionsKey:`COMPTA_CH`},{title:`Etablissement`,dataKey:`finess_id`,type:`select`,selectOptionsKey:`FINESS`,hidden:!0},{title:`Etablissement`,dataKey:`finess_texte`,editVisible:!1},{title:`Nombres références`,dataKey:`nbref`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},JRN:{tableName:`t_journaux`,title:`Gestion Journaux`,component:`common`,fields:[...cm,{title:`C/H`,dataKey:`clinique_honoraire`,type:`input`,editable:!1},{title:`A nouveaux`,dataKey:`a_nouveaux`,type:`checkbox`},{title:`Nombre de Références (écritures)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},TCO:{tableName:`t_types_compta`,title:`Gestion Types de Comptabilité`,component:`common`,fields:[...cm,{title:`C/H`,dataKey:`clinique_honoraire`,type:`select`,editVisible:!1,selectOptionsKey:`COMPTA_CH`},{title:`Nombre de Références (comptes)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},CLS:{tableName:`t_classes_comptes`,title:`Gestion classes de comptes`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Nombre de Références (comptes)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},CPT:{tableName:`t_comptes`,title:`Gestion comptes`,component:`onglet`,addSearchFields:[`numero`],tabs:[{key:`general`,label:`Général`},{key:`sage`,label:`Collectif (SAGEX3)`}],fields:[{title:`Compte`,dataKey:`numero`,type:`input`,editable:!1},{tab:`general`,title:`Texte`,dataKey:`texte`,type:`input`},{tab:`general`,title:`C/H`,dataKey:`clinique_honoraire`,type:`select`,editable:!1,selectOptionsKey:`COMPTA_CH`},{title:`Commentaire`,dataKey:`comment`,type:`input`,editVisible:!1},{tab:`general`,title:`Compte banque`,dataKey:`banque`,type:`checkbox`,hidden:!0},{tab:`general`,title:`Compte collectif`,dataKey:`collectif`,type:`checkbox`,hidden:!0},{tab:`general`,title:`Solde Initial`,dataKey:`solde_initial`,type:`input`,hidden:!0},{title:`Nombre de Références (écritures)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``},{tab:`sage`,title:`Journal`,dataKey:`type_compta_extra_id`,type:`select`,selectOptionsKey:`TYPECOMPTA`,hidden:!0},{tab:`sage`,title:`Numéro auxiliaire`,dataKey:`numero_extra`,type:`input`,hidden:!0},{tab:`sage`,title:`Texte auxiliaire`,dataKey:`texte_extra`,type:`input`,hidden:!0}]},CPX:{tableName:`t_comptes_extra`,title:`Gestion Comptes auxiliaires`,component:`common`,fields:[{title:`Compte`,dataKey:`numero`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`C/H`,dataKey:`clinique_honoraire`,type:`select`,editable:!1,selectOptionsKey:`COMPTA_CH`},{title:`Type comptabilité`,dataKey:`type_compta`,editable:!1,type:`select`,selectOptionsKey:`TYPECOMPTA`},{title:`Commentaire`,dataKey:`comment`,editVisible:!1,type:`input`},{title:`Nombre de Références (écritures)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},PAR:{tableName:`t_partenaires`,title:`Gestion Partenaires`,component:`common`,fields:[...cm,{title:`Texte abrégé`,dataKey:`texte_court`,type:`input`},{title:`Comptes`,dataKey:`comptes`,type:`input`,editable:!1},{title:`Commentaire`,dataKey:`comment`,type:`input`,editVisible:!1},{title:`Partenaire du groupe`,dataKey:`intra_groupe`,type:`checkbox`},{title:`Nombre de Références (écritures)`,dataKey:`nbref`,type:`input`,editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``}]},AJU:{tableName:`t_ecritures_ajustement`,title:`Ecritures d'ajustement`,component:`AJU`,addButton:!0,copyButton:!0,fields:[{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Date saisie`,dataKey:`date_ecriture`,type:`input`},{title:`Mois comptable`,dataKey:`mois_comptable`,type:`input`},{title:`C/H`,dataKey:`clinique_honoraire`,type:`select`,selectOptionsKey:`COMPTA_CH`},{title:`Journal`,dataKey:`journal_code`,type:`input`},{title:`Compte`,dataKey:`compte_numero`,type:`input`},{title:`Débit`,dataKey:`montant_debit`,type:`input`},{title:`Crédit`,dataKey:`montant_credit`,type:`input`}]},BUD:{tableName:`t_budget`,title:`Gestion Budget`,addButton:!0,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`},{title:`Site`,dataKey:`site_id`,type:`select`,selectOptionsKey:`SITE`,hidden:!0},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Actif`,dataKey:`is_actif`,type:`checkbox`},{title:`Exercice`,dataKey:`exercice_comptable`,type:`select`,selectOptionsKey:`YEARS`},{title:`Données à importer`,dataKey:`import_data`,type:`textArea`,hidden:!0}]},DIV:{tableName:`t_divers`,title:`Éléments divers`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Valeur Date`,dataKey:`valeur_date`,type:`input`,detail:`YYYY-MM-DD`},{title:`Description`,dataKey:`description`,type:`input`,editable:!1},{title:`Info Module`,dataKey:`show_info_module`,type:`checkbox`}]}},um=[{title:`Code`,dataKey:`code`,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Nb Ref`,dataKey:`nbref`,type:`text`}],dm={BIL:{tableName:`t_bilan`,title:`Bilans`,component:`common`,fields:[...um]},CST:{tableName:`t_constante`,title:`Constantes`,component:`constantes`,fields:[...um,{title:`Propriétés`,dataKey:`property`,type:`text`}]},DOC:{tableName:`t_document`,title:`Documents`,component:`common`,fields:[...um,{title:`Complément`,dataKey:`cmp`,type:`text`},{title:`Toujours document sortie ?`,dataKey:`est_document_sortie`,hidden:!0,type:`checkbox`},{title:`Règle document sortie`,dataKey:`document_sortie_rule_1`,type:`input`,detail:`DD=DS:Date document = date sortie, DD=DS-x: Date document - date sortie <= x`,hidden:!0}]},DOCPRE:{tableName:`t_document_precision`,title:`Précision Documents`,refUniquement:!1,addButton:!0,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Priorité`,dataKey:`priorite`,type:`input`,default:`5000`},{title:`Règle SQL`,dataKey:`precision_rule_01`,type:`input`,hidden:!0},{title:`ou`,dataKey:`precision_rule_02`,type:`input`,hidden:!0},{title:`ou`,dataKey:`precision_rule_03`,type:`input`,hidden:!0},{title:`ou`,dataKey:`precision_rule_04`,type:`input`,hidden:!0},{title:`ou`,dataKey:`precision_rule_05`,type:`input`,hidden:!0}]},FRM:{tableName:`t_formulaire`,title:`Formulaires`,component:`common`,fields:[...um]},FRQ:{tableName:`t_formulaire_question`,title:`Questions Formulaires`,component:`onglet`,selectFilterLabel:`Formulaire`,selectFilterField:`formulaire_texte`,tabs:[{key:`frq-definition`,label:`Définition`},{key:`calcul`,label:`Calcul`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,tab:`frq-definition`},{title:`Texte`,dataKey:`texte`,type:`input`,tab:`frq-definition`},{title:`Texte Court`,dataKey:`texte_court`,type:`input`},{title:`Propriété`,dataKey:`property`,type:`input`,editVisible:!1},{title:`Formulaire`,dataKey:`formulaire_texte`,type:`input`,editable:!1},{title:`Nb Ref`,dataKey:`nbref`,type:`text`},{title:`Type`,dataKey:`question_type`,type:`input`,disabled:!0,hidden:!0,editable:!1},{title:`Transformer en constante`,dataKey:`constante_id`,type:`select`,tab:`frq-definition`,hidden:!0,selectOptionsKey:`CST`},{title:`Type réponse`,dataKey:`auto_reponse_code_type`,type:`cti-constantes`,hidden:!0,tab:`frq-definition`},{title:`Formule`,dataKey:`calc_formula`,type:`textArea`,hidden:!0,editable:!1,tab:`calcul`}]},FRR:{tableName:`t_formulaire_question_reponse`,title:`Réponses Formulaires`,component:`common`,selectFilterLabel:`Formulaire`,selectFilterField:`formulaire_texte`,fields:[{title:`Formulaire`,dataKey:`formulaire_texte`,type:`input`,editable:!1},{title:`Question`,dataKey:`formulaire_question_texte`,type:`input`,editable:!1},{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,hidden:!0},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Significatif`,dataKey:`est_significatif`,type:`checkbox`},{title:`Nb Ref`,dataKey:`nbref`,type:`input`,editable:!1}]},INT:{tableName:`t_intervenant`,title:`Intervenants`,component:`common`,refUniquement:!1,fields:[...um,{title:`Spécialité`,dataKey:`specialite_texte`,type:`text`,editVisible:!1},{title:`Spécialité`,dataKey:`specialite_id`,type:`select`,hidden:!0,selectOptionsKey:`SPI`}],excludeFields:[`nbref`]},IQU:{tableName:`t_indicateur_qualite`,title:`Indicateurs qualité`,component:`indicateur_qualite`,fields:[...um,{title:`Propriétés`,dataKey:`properties`,editVisible:!1},{title:`Note`,dataKey:`note_with`,type:`checkbox`,hidden:!0}]},OBS:{tableName:`t_observation`,title:`Observations`,component:`common`,fields:[...um,{title:`Masquer le texte`,dataKey:`masquer_texte`,type:`checkbox`},{title:`Type éclatement`,dataKey:`mode_eclatement`,type:`select`,selectOptionsKey:`DPI_SPE`}]},PRC:{tableName:`t_prescription`,title:`Prescriptions`,component:`common`,fields:[...um]},REL:{tableName:`t_releve`,title:`Relevés`,component:`common`,fields:[...um]},SPI:{tableName:`t_intervenant_specialite`,title:`Specialités intervenant`,component:`common`,fields:[...um]},KWO:{tableName:`t_mot_cle`,title:`Mots clé`,addButton:!0,execute:{label:`Executer les règles`,action:`execute_rules`},refUniquement:!1,component:`keyword`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Règle`,dataKey:`rule`,type:`text`}]},DIV:{tableName:`t_divers`,title:`Configuration`,refUniquement:!1,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Description`,dataKey:`description`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Valeur(2)`,dataKey:`valeur2`,type:`input`}]},EVT:{tableName:`t_evenement`,title:`Evènements`,refUniquement:!1,component:`onglet`,tabs:[{key:`event-regle-cti`,label:`Règle CTI`},{key:`event-regle-spe`,label:`Règles Spécifiques`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,width:150},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`CTI`,dataKey:`is_cti`,type:`checkbox`,width:75},{title:`Indicateur`,dataKey:`indicateur_texte`,editVisible:!1},{title:`Règles CTI`,tab:`event-regle-cti`,type:`event-regle-cti`,hidden:!0},{title:`Règles Spécifiques`,tab:`event-regle-spe`,type:`event-regle-spe`,hidden:!0}]},CXP:{tableName:`t_expert_controle`,title:`Controles expert`,refUniquement:!1,addButton:!0,module:`dpi`,execute:{label:`Executer les règles`,action:`execute_rules`},component:`onglet`,tabs:[{key:`cxp-regle-cti`,label:`Règle CTI`},{key:`cxp-autre-cti`,label:`Autres règles CTI`},{key:`cxp-ets`,label:`Règles établissement`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`CTI`,dataKey:`is_cti`,type:`checkbox`},{title:`Description`,dataKey:`description`,type:`textArea`,hidden:!0},{title:`Gravité`,dataKey:`gravite_id`,type:`select`,selectOptionsKey:`EXC_gravite_provider`,hidden:!0},{title:`Alerte`,dataKey:`alerte_id`,type:`checkbox`,hidden:!0},{title:`Actif`,dataKey:`is_active`,type:`checkbox`,hidden:!0},{title:`A partir de`,dataKey:`start_periode`,type:`select`,selectOptionsKey:`CXP_start`,hidden:!0},{title:`Indicateur`,dataKey:`indicateur_texte`,type:`text`,editVisible:!1},{title:`Complément`,dataKey:`complement`,type:`text`,editVisible:!1},{title:`Date Exécution`,dataKey:`last_date`,type:`text`,editVisible:!1},{title:`Statut`,dataKey:`last_status`,type:`text`,editVisible:!1},{title:`Signalements`,dataKey:`last_count`,type:`text`,editVisible:!1},{title:`cxp-regle-cti`,tab:`cxp-regle-cti`,type:`cxp-regle-cti`,hidden:!0},{title:`cxp-autre-cti`,tab:`cxp-autre-cti`,type:`cxp-autre-cti`,hidden:!0},{title:`cxp-ets`,tab:`cxp-ets`,type:`cxp-ets`,hidden:!0}]}},fm=[{title:`Code`,dataKey:`code`,width:75,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,width:75,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Complément`,dataKey:`complement`,type:`textArea`,editable:!1},{title:`Références`,dataKey:`nbref`,type:`input`,editable:!1}],pm={ART:{tableName:`t_articles`,title:`Gestion des articles`,component:`common`,fields:[...fm,{title:`Géré en stock`,dataKey:`gere_en_stock`,hidden:!0,type:`checkbox`},{title:`Référence CACIC`,dataKey:`cacic_id`,hidden:!0,type:`select`,selectOptionsKey:`RA1`},{title:`Référence CTI`,dataKey:`rfcti_id`,hidden:!0,type:`select`,selectOptionsKey:`RA9`}]},TYA:{tableName:`t_types_articles`,title:`Gestion des types articles`,component:`common`,fields:[...fm,{title:`Valeur par défaut selon`,dataKey:`defaut_selon`,hidden:!0,type:`select`,selectOptionsKey:`TYA`},{title:`codes`,dataKey:`defaut_selon_codes`,hidden:!0,type:`input`,dependsOn:`defaut_selon`,disabledWhen:``}]},FAA:{tableName:`t_familles_articles`,title:`Gestion des familles d'articles`,component:`common`,fields:[...fm]},SFA:{tableName:`t_sous_familles_articles`,title:`Gestion sous famille d'articles`,component:`common`,fields:[...fm]},CAA:{tableName:`t_categories_articles`,title:`Gestion des catégories d'articles`,component:`common`,fields:[...fm]},SCA:{tableName:`t_sous_categories_articles`,title:`Gestion des sous catégories articles`,component:`common`,fields:[...fm]},UNI:{tableName:`t_unites`,title:`Gestion des unités`,component:`common`,refUniquement:!1,fields:[...fm],excludeFields:[`nbref`]},FOU:{tableName:`t_fournisseurs`,title:`Gestion des fournisseurs`,component:`common`,fields:[...fm,{title:`Fusionner avec`,dataKey:`fusionner_vers_fournisseur_id`,hidden:!0,type:`select`,selectOptionsKey:`FOU`},{title:`Référence CACIC`,dataKey:`cacic_id`,hidden:!0,type:`input`},{title:`Référence CTI`,dataKey:`rfcti_id`,hidden:!0,type:`input`}]},TYF:{tableName:`t_types_fournisseurs`,title:`Gestion des types de fournisseurs`,component:`common`,fields:[...fm]},GES:{tableName:`t_gestionnaires`,title:`Gestion des gestionnaires`,refUniquement:!1,component:`common`,fields:[...fm],excludeFields:[`nbref`]},LIE:{tableName:`t_lieux`,title:`Gestion des lieux`,component:`common`,refUniquement:!1,fields:[...fm],excludeFields:[`nbref`]},UFO:{tableName:`t_unites_fonctionnelles`,title:`Gestion des unités fonctionnelles`,component:`common`,refUniquement:!1,fields:[...fm],excludeFields:[`nbref`]},TYM:{tableName:`t_types_mouvements`,title:`Gestion des types de mouvements`,component:`common`,refUniquement:!1,fields:[...fm,{title:`Inverser signe`,dataKey:`particularite_inverser_signe`,hidden:!0,type:`select`,selectOptionsKey:`TYM_SIGNE`},{title:`Forcer sens`,dataKey:`sens_force`,hidden:!0,type:`select`,selectOptionsKey:`TYM_SENS`}],excludeFields:[`nbref`]},RIN:{tableName:`t_reference_input`,title:`Import référentiel`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:75,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Complément`,dataKey:`complement`,type:`textArea`,editable:!1}]},RA1:{tableName:`t_article_reference_cacic`,title:`Gestion référential article CACIC`,component:`common`,fields:[...fm],excludeFields:[`texte_court`,`code_original`]},RF1:{tableName:`t_fournisseur_reference_cacic`,title:`Gestion référentiel fournisseur CACIC`,component:`common`,fields:[...fm],excludeFields:[`complement`,`texte_court`,`code_original`]},RA9:{tableName:`t_article_reference_cti`,title:`Gestion référentiel article CTI`,component:`transfert`,fields:[...fm],transfertFields:[{title:`Nom`,dataKey:`texte`,width:400},{title:`LPP/UCD`,dataKey:`lppucd`,width:150},{title:`Code`,dataKey:`code`,width:150}],excludeFields:[`complement`,`texte_court`,`code_original`],listName:`ART`,listPath:`rfoids`},RF9:{tableName:`t_fournisseur_reference_cti`,title:`Gestion du référentiel fournisseur CTI`,component:`transfert`,fields:[...fm],transfertFields:[{title:`Nom`,dataKey:`texte`,width:400},{title:`Code`,dataKey:`code`,width:150}],listName:`LFOU`,listPath:`rfoids`,excludeFields:[`complement`,`texte_court`,`code_original`]},DIV:{tableName:`t_divers`,title:`Eléments divers`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:75,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Complément`,dataKey:`complement`,type:`textArea`},{title:`Valeur`,dataKey:`valeur`,type:`input`}]},SIT:{tableName:`t_sites`,title:`Gestion sites`,refUniquement:!1,component:`common`,fields:[...fm],excludeFields:[`complement`,`nbref`]},TAR:{tableName:`t_type_article_cti_rule`,title:`Gestion des règles types articles CTI`,refUniquement:!1,addButton:!0,component:`rules`,execute:{label:`Executer les règles`,action:`execute_rules`},fields:[{title:`Priorite`,dataKey:`priorite`,type:`input`,default:`5000`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Type CTI`,dataKey:`type_article_cti_id`,type:`select`,selectOptionsKey:`TAA`,hidden:!0},{title:`Type CTI`,dataKey:`type_article_cti_texte`,editVisible:!1},{title:`Règles`,dataKey:`rule_texte`,type:`input`,editVisible:!1},{title:`Types article source`,dataKey:`liste_type_article`,type:`textArea`,hidden:!0,tab:!0},{title:`Comptes`,dataKey:`liste_compte`,type:`textArea`,hidden:!0,tab:!0},{title:`Familles`,dataKey:`liste_famille`,type:`textArea`,hidden:!0,tab:!0},{title:`Sous-familles`,dataKey:`liste_sous_famille`,type:`textArea`,hidden:!0,tab:!0},{title:`Catégories`,dataKey:`liste_categorie`,type:`textArea`,hidden:!0,tab:!0},{title:`Sous-catégories`,dataKey:`liste_sous_categorie`,type:`textArea`,hidden:!0,tab:!0},{title:`Articles`,dataKey:`liste_article`,type:`textArea`,hidden:!0,tab:!0}],excludeFields:[`complement`,`nbref`]}},mm={CCR:{tableName:`t_ccam_regroupements`,title:`Interrogation`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Texte court`,dataKey:`texte_court`,type:`input`,width:100,editable:!1}],excludeFields:[`code_original`]},GMA:{tableName:`t_gestes_marqueurs`,title:`Gestion gestes marqueurs`,component:`common`,selectButton:!0,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Actes associés`,dataKey:`actes_codes`,type:`input`,hidden:!0,editable:!1}],sqlChoices:`select oid, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Sélectionnez une valeur...' order by oid`},ACT:{tableName:`t_actes`,title:`Interrogation Actes`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Classant`,dataKey:`classant`,type:`input`,width:100,editable:!1},{title:`Regroupement`,dataKey:`regroupement_1`,type:`input`,width:100,editable:!1},{title:`Regroupement`,dataKey:`regroupement_4`,type:`input`,width:100,editable:!1,hidden:!0},{title:`Geste marqueur MSAP 2015`,dataKey:`geste_marqueur`,type:`input`,width:120,editable:!1},{title:`ICR`,dataKey:`icr_1`,type:`input`,width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):``},{title:`ICR A`,dataKey:`icr_4`,type:`input`,width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):``},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,width:100,editable:!1,editVisible:!1}]},DIA:{tableName:`t_diagnostics`,title:`Interrogation Diagnostics`,component:`common`,fields:[...[{title:`Code`,dataKey:`code`,width:100,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`,width:500},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Code original`,dataKey:`code_original`,type:`input`,width:150}],{title:`CMA 2012`,dataKey:`sev1311d`,type:`input`,width:75,editVisible:!1},{title:`CMA 2013`,dataKey:`sev1311e`,type:`input`,width:75,editVisible:!1},{title:`CMA 2014`,dataKey:`sev1311f`,type:`input`,width:75,editVisible:!1},{title:`CMA 2015`,dataKey:`sev1311g`,type:`input`,width:75,editVisible:!1},{title:`CMA 2016`,dataKey:`sev2016`,type:`input`,width:75,editVisible:!1},{title:`CMA 2017`,dataKey:`sev2017`,type:`input`,width:75,editVisible:!1},{title:`CMA 2018`,dataKey:`sev2018`,type:`input`,width:75,editVisible:!1},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,width:100,editVisible:!1}],excludeFields:[`texte_court`,`code_original`]},ED6:{tableName:`t_etude_6`,title:`Cancérologie (activité soumise à seuil). Cahier des charges `,component:`common`,selectButton:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Cahier des charges`,dataKey:`année`,type:`input`,editable:!1,hidden:!0,width:100},{title:`Seuil etablissement`,dataKey:`seuil_ets`,type:`input`,editable:!0,width:100},{title:`Seuil ARS`,dataKey:`seuil_ars`,type:`input`,editable:!0,width:100},{title:`Moyenne régionale`,dataKey:`moy_region`,type:`input`,editable:!1,width:100},{title:`Moyenne nationale`,dataKey:`moy_nat`,type:`input`,editable:!1,width:100}],sqlChoices:`select min(oid), annee::text, 'Cahier des charges ' || annee from pmsi.t_etude_6 group by annee union select -1, 'code', 'Pas de sélection' order by 1`},ED5:{tableName:`t_etude_5`,title:`Gestes marqueurs`,component:`common`,selectButton:!0,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Liste`,dataKey:`liste`,type:`input`,editable:!1,hidden:!0,width:100},{title:`Taux cible etablissement`,dataKey:`taux_cible_ets`,type:`input`,editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ets&&`${e.taux_cible_ets}%`,width:100},{title:`Taux cible ARS`,dataKey:`taux_cible_ars`,type:`input`,editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ars&&`${e.taux_cible_ars}%`,width:100},{title:`Taux moyen régional`,dataKey:`taux_moyen_regional`,type:`input`,editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_regional&&`${e.taux_moyen_regional}%`,width:100},{title:`Taux moyen national`,dataKey:`taux_moyen_national`,type:`input`,editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_national&&`${e.taux_moyen_national}%`,width:100}],sqlChoices:`select sequence, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Pas de sélection' order by sequence`},EXC:{tableName:`t_expert_controle`,title:`Gestion Controles Expert`,component:`common`,addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:`Éxécuter les règles`,action:`execute_rules`},preferences:{label:`Préférences`},tabs:[{key:`definition`,label:`Définition`},{key:`description`,label:`Description`},{key:`regle-1`,label:`Règle 1`},{key:`regle-2`,label:`Règle 2`},{key:`regle-3`,label:`Règle 3`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!0},{title:`Contrôle CTI`,dataKey:`is_cti`,type:`checkbox`,width:80,hidden:!0},{tab:`definition`,title:`Texte`,dataKey:`texte`,type:`input`},{tab:`definition`,title:`Texte affiché`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Gravité`,dataKey:`gravite_texte`,editVisible:!1,width:80},{tab:`definition`,title:`Gravité`,dataKey:`gravite_id`,type:`select`,selectOptionsKey:`EXC_gravite_provider`,hidden:!0},{title:`Complément`,dataKey:`complement`,editVisible:!1,width:120},{tab:`definition`,title:`DATIM`,dataKey:`is_datim`,type:`checkbox`,hidden:!0},{tab:`definition`,title:`Contrôle en masse`,dataKey:`is_global`,type:`checkbox`,hidden:!0,editable:!1},{tab:`definition`,title:`Alerte`,dataKey:`is_alert`,type:`checkbox`,hidden:!0},{tab:`definition`,title:`Masqué`,dataKey:`is_hide`,type:`checkbox`,hidden:!0},{tab:`regle-1`,title:`Sélection`,dataKey:`sqlcmd_where1`,type:`textArea`,hidden:!0},{tab:`regle-1`,title:`Justificatif`,dataKey:`sqlcmd_justificatif1`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Sélection`,dataKey:`sqlcmd_where2`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Justificatif`,dataKey:`sqlcmd_justificatif2`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Sélection`,dataKey:`sqlcmd_where3`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Justificatif`,dataKey:`sqlcmd_justificatif3`,type:`textArea`,hidden:!0},{tab:`description`,title:`Description`,dataKey:`description`,type:`text-editor`,hidden:!0},{title:`Dernière exécution`,dataKey:`last_execution_date`,type:`input`,editVisible:!1},{title:`Nombre références`,dataKey:`nbref`,type:`input`,editVisible:!1},{title:`Dont actives`,dataKey:`nbref0`,type:`input`,editVisible:!1}]},XDC:{tableName:`t_datim_ccaminfo`,title:`Datim : CCAMINFO`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:400},{title:`Datim`,dataKey:`datim`,type:`input`,editable:!1,width:300},{title:`Début`,dataKey:`date_debut`,editVisible:!1},{title:`Fin`,dataKey:`date_fin`,editVisible:!1},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},XDD:{tableName:`t_datim_diaginfo`,title:`Datim : DIAGINFO`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:400},{title:`Datim`,dataKey:`datim`,type:`input`,editable:!1,width:300},{title:`Début`,dataKey:`date_debut`,editVisible:!1},{title:`Fin`,dataKey:`date_fin`,editVisible:!1},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},XDG:{tableName:`t_datim_ghminfo`,title:`Datim : GHMINFO`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:400},{title:`Datim`,dataKey:`datim`,type:`input`,editable:!1,width:300},{title:`Début`,dataKey:`date_debut`,editVisible:!1},{title:`Fin`,dataKey:`date_fin`,editVisible:!1},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},ASO:{tableName:`t_mco`,title:`Interrogation Codes ASO`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},GHV:{tableName:`t_severites_ghm`,title:`Interrogation Codes sévérité GHM`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},GHM:{tableName:`t_ghm`,title:`InterrogationGHM`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Aso`,dataKey:`aso`,type:`input`,editable:!1,width:70},{title:`C.A.S`,dataKey:`cas`,type:`input`,editable:!1,width:70},{title:`Pole OAP`,dataKey:`pole_oap`,type:`input`,editable:!1},{title:`Ligne OAP`,dataKey:`ligne_oap`,type:`input`,editable:!1,hidden:!0},{title:`Groupe d'activité`,dataKey:`groupe_activite`,type:`input`,editable:!1,hidden:!0},{title:`Nombre réféfences`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1,width:120}]},DMS:{tableName:`t_ghm_dms`,title:`Gestion DMS`,component:`DMS`,deleteButton:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:200,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500}]},CMD:{tableName:`t_cmd`,title:`Interrogation CMD`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},POA:{tableName:`t_poles_oap`,title:`Interrogation Poles OAP`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},LOA:{tableName:`t_lignes_oap`,title:`Interrogation Lignes OAP`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Pole OAP`,dataKey:`pole_oap`,type:`input`,editable:!1,width:400},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},GAC:{tableName:`t_groupes_activite`,title:`Interrogation Groupes d'activité`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}]},GHS:{tableName:`t_ghs`,title:`Interrogation GHS`,component:`onglet`,datePicker:!0,selectTarif:!0,tabs:[{key:`tarifs_prive`,label:`Tarifs Privé`},{key:`tarifs_public`,label:`Tarifs Public`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,width:500},{title:`Borne basse`,dataKey:`borne_basse`,editable:!1,width:100},{title:`Borne haute`,dataKey:`borne_haute`,editable:!1,width:100},{title:`Dms nationale`,dataKey:`dms_nationale`,editable:!1,width:100},{title:`Tarif GHS`,dataKey:`tarif_ghs`,editable:!1,width:100},{title:`Forfait EXB`,dataKey:`forfait_exb`,editable:!1,width:100},{title:`Tarif EXB`,dataKey:`tarif_exb`,editable:!1,width:100},{title:`Tarif EXH`,dataKey:`tarif_exh`,editable:!1,width:100},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1,width:200},{type:`tarifs_public_ghs`,tab:`tarifs_public`,hidden:!0},{type:`tarifs_prive_ghs`,tab:`tarifs_prive`,hidden:!0}]},SGE:{tableName:`t_secteurs_geographiques`,title:`Gestion secteurs géographiques`,component:`transfert`,copyButton:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100},{title:`Texte`,dataKey:`texte`,type:`input`,width:500},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Nombre réféfences (Codes postaux)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1},{title:`Codes`,dataKey:`codes`,type:`transfert`,hidden:!0}],transfertFields:[{title:`Codes postaux du secteur`,dataKey:`texte`}],listName:`CPO`,listPath:`codes`},DEP:{tableName:`t_departements`,title:`Gestion départements`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100},{title:`Texte`,dataKey:`texte`,type:`input`,width:500},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},CGP:{tableName:`t_codes_geographiques_pmsi`,title:`Affichage Codes géographiques PMSI`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,width:500,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0,editable:!1},{title:`Population`,dataKey:`population`,type:`input`,hidden:!0,editable:!1},{title:`Codes postaux`,dataKey:`codes`,type:`input`,editable:!1},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},CPO:{tableName:`t_codes_postaux`,title:`Gestion Codes postaux`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Département`,dataKey:`departement`,editVisible:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Département`,dataKey:`departement_id`,type:`select`,selectOptionsKey:`CPO`,hidden:!0},{title:`Codes géo PMSI`,dataKey:`code_geo_pmsi`,type:`input`,editable:!1},{title:`Population`,dataKey:`population`,type:`input`,editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):``},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},SPI:{tableName:`t_specialites_internes_medecin`,title:`Gestion Spécialités internes des médecins`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},MED:{tableName:`t_medecins`,title:`Gestion Médecins`,component:`common`,addButton:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,width:100},{title:`Nom`,dataKey:`nom`,type:`input`},{title:`Prénom`,dataKey:`prenom`,type:`input`},{title:`Numéro ADELI`,dataKey:`no_adeli`,type:`input`,editVisible:!1},{title:`Identifiant annuaire`,dataKey:`identifiant_annuaire`,type:`input`,hidden:!0},{title:`Medecin référence`,dataKey:`medecin_reference`,type:`input`,editable:!1},{title:`Spécialité`,dataKey:`specialite_id`,type:`select`,selectOptionsKey:`SPI`},{title:`Nombre référence RSS`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editVisible:!1},{title:`Nombre référence actes`,dataKey:`nbref2`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editVisible:!1}],visible:!0},CMM:{tableName:`t_comites_medicaux`,title:`Gestion comités médicaux`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,width:100},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},PRE:{tableName:`t_prestations`,title:`Gestion prestations`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,width:100},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Nombre réféfences (RSS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},LPP:{tableName:`t_lpp`,title:`Gestion LPP`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`En sus FG11 ?`,dataKey:`code_fg11`,type:`checkbox`},{title:`Nombre réféfences (LPP)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},UCD:{tableName:`t_ucd`,title:`Gestion UCD`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Laboratoire`,dataKey:`laboratoire_texte`,type:`input`},{title:`Nombre réféfences`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},TAU:{tableName:`t_types_autorisations`,title:`Interrogation types autorisations`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,editable:!1,hidden:!0}]},UMD:{tableName:`t_unites_medicales`,title:`Gestion unités médicales`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Autorisation`,dataKey:`type_autorisation`,type:`select`,selectOptionsKey:`TAU`},{title:`Date d'effet`,dataKey:`date_effet_autorisation`,type:`input`},{title:`Nombre de lit`,dataKey:`nb_lits`,type:`input`,dependsOn:`type_autorisation_code`,disabledWhen:``},{title:`Mode d'hospitalisation`,dataKey:`mode_hospitalisation`,type:`select`,selectOptionsKey:`UMD_mode_hospitalisation`},{title:`Type éclatement`,dataKey:`type_eclatement`,type:`select`,selectOptionsKey:`UMD_type_eclatement`,hidden:!0},{title:`Type séjour`,dataKey:`type_sejour`,type:`select`,selectOptionsKey:`UMD_type_sejour`,hidden:!0},{title:`Type Ventilation C.A.`,dataKey:`type_ventilation_ca`,type:`select`,selectOptionsKey:`UMD_type_ventilation_ca`,hidden:!0},{title:`UM expédition`,dataKey:`um_expedition_id`,type:`select`,selectOptionsKey:`UM`,detail:`Unité médicale sur laquelle est regroupé cette UM avant envoi ePM`,hidden:!0},{title:`UM expédition`,dataKey:`um_expedition_codetexte`,type:`select`,selectOptionsKey:`UM`,editVisible:!1},{title:`Medecin par default`,dataKey:`medecin_par_defaut_id`,type:`select`,selectOptionsKey:`UM_MED`,hidden:!0}]},UFC:{tableName:`t_unites_fonctionnelles`,title:`Gestion Unités fonctionnelles`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Nombre réféfences (actes)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editVisible:!1}]},MEN:{tableName:`t_modes_entree`,title:`Interrogation Modes entrée`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`}]},MEP:{tableName:`t_provenances_entree`,title:`Interrogation Provenances entrée`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`}]},MSO:{tableName:`t_modes_sortie`,title:`Interrogation Modes sortie`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`}]},MSD:{tableName:`t_destinations_sortie`,title:`Interrogation Destinations sortie`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`}]},ETS:{tableName:`t_finess`,title:`Gestion Finess`,component:`finess`,refUniquement:!1,lineBlocks:[{dateFieldKey:`date_debut_coefficient_mco`,lines:[{key:`date_debut_coefficient_mco_`,label:`Historique coefficients MCO`,type:`date`},{key:`coefficient_mco_`,label:`Coefficient MCO`,type:`input`},{key:`coefficient_transition_`,label:`- Transition`,type:`input`},{key:`coefficient_ht_`,label:`- Haute technicité`,type:`input`},{key:`coefficient_geo_`,label:`- Géographique`,type:`input`},{key:`date_debut_coefficient_pacte_resp_`,label:`Historique coefficients pacte responsabilité`,type:`date`},{key:`coefficient_pacte_resp_`,label:`Coefficients pacte responsabilité`,type:`input`}],lengthFields:7}],fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Territoire de santé`,dataKey:`tersante_id`,type:`select`,selectOptionsKey:`territoire_de_sante`,hidden:!0},{dataKey:`date_debut_coefficient_mco_1`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_2`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_3`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_4`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_5`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_6`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_mco_7`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_1`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_2`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_3`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_4`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_5`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_6`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0},{dataKey:`date_debut_coefficient_pacte_resp_7`,title:`Historique coefficients pacte responsabilité`,type:`date`,hidden:!0}]},DIV:{tableName:`t_divers`,title:`Paramètres divers`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Description`,dataKey:`description`,type:`input`,editable:!1},{title:`Info module`,dataKey:`show_info_module`,type:`checkbox`,width:80}]}},hm=[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,editable:!1,hidden:!0}],gm={SPI:{tableName:`t_specialites_internes_medecin`,title:`Gestion Spécialités internes des médecins`,component:`common`,deleteButton:!0,copyButton:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Spécialités (défaut)`,dataKey:`specialite_defaut_codes`,type:`input`,editable:!1,editVisible:!1},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1},{title:`Spécialité officielles par défault`,dataKey:`code`,type:`multi-input`,hidden:!0,children:[{title:`Code 1`,dataKey:`specialite_defaut_code_1`,type:`input`},{title:`Code 2`,dataKey:`specialite_defaut_code_2`,type:`input`},{title:`Code 3`,dataKey:`specialite_defaut_code_3`,type:`input`},{title:`Code 4`,dataKey:`specialite_defaut_code_4`,type:`input`}]}],excludeFields:[`texte_court`]},SPE:{tableName:`t_specialites_medecin`,title:`Interrogation Spécialités des médecins`,component:`common`,fields:[...hm,{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},MED:{tableName:`t_medecins`,title:`Gestion Médecins`,component:`MEDA`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,width:100},{title:`Nom`,dataKey:`nom`,type:`input`},{title:`Prénom`,dataKey:`prenom`,type:`input`},{title:`Numéro ADELI`,dataKey:`no_adeli`,type:`input`,editVisible:!1},{title:`Spécialité officielle`,dataKey:`specialite`,type:`input`,editable:!1},{title:`Spécialité interne`,dataKey:`specialite_interne`,editVisible:!1},{title:`Medecin référence`,dataKey:`medecin_reference`,type:`input`,editable:!1},{title:`Spécialité interne`,dataKey:`specialite_id`,type:`select`,selectOptionsKey:`SPI`,hidden:!0},{title:`Nombre référence RSS`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editVisible:!1},{title:`Nombre référence actes`,dataKey:`nbref2`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editVisible:!1}],visible:!0},TAU:{tableName:`t_type_autorisation_unite_medicale`,title:`Interrogation types autorisations`,component:`common`,fields:[...hm]},UMD:{tableName:`t_unites_medicales`,title:`Gestion Unites médicales`,module:`iCTI_pmsissr`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Autorisation`,dataKey:`type_autorisation`,editVisible:!1},{title:`Autorisation`,editTitle:`Type autorisation`,dataKey:`type_autorisation_code`,type:`select`,selectOptionsKey:`TAU`,hidden:!0},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},MEN:{tableName:`t_modes_entree`,title:`Interrogation Modes entrée`,component:`common`,fields:[...hm],refUniquement:!1},MEP:{tableName:`t_provenances_entree`,title:`Interrogation Provenances entrée`,component:`common`,fields:[...hm],refUniquement:!1},MSO:{tableName:`t_modes_sortie`,title:`Interrogation Modes sortie`,component:`common`,fields:[...hm],excludeFields:[],refUniquement:!1},MSD:{tableName:`t_destinations_sortie`,title:`Interrogation Destinations sortie`,component:`common`,fields:[...hm],refUniquement:!1},GME:{tableName:`t_gme`,title:`Interrogation GME`,component:`common`,fields:[...hm,{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},CMC:{tableName:`t_cmc`,title:`Interrogation CMC`,component:`common`,fields:[...hm,{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},GMD:{tableName:`t_gmd`,title:`Interrogation GMD`,component:`common`,fields:[...hm,{title:`CMC`,dataKey:`cmc_code`,type:`input`,editable:!1},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},CCR:{tableName:`t_ccam_regroupements`,title:`Interrogation Regroupements CCAM`,component:`common`,fields:[...hm],refUniquement:!1},ACT:{tableName:`t_actes`,title:`Interrogation Actes`,component:`common`,fields:[...hm,{title:`Classant`,dataKey:`classant`,type:`input`,editable:!1,width:200},{title:`Geste marqueur`,dataKey:`geste_marqueur`,type:`input`,editable:!1},{title:`Regroupement`,dataKey:`regroupement_1`,type:`multi-input`,width:200,children:[{dataKey:`regroupement_1`,type:`input`,editable:!1},{dataKey:`regroupement_4`,type:`input`,editable:!1}]},{title:`Regroupement`,dataKey:`regroupement_4`,editVisible:!1,width:200},{title:`ICR`,dataKey:`icr_1`,width:100,type:`multi-input`,children:[{dataKey:`icr_1`,type:`input`,editable:!1},{dataKey:`icr_4`,type:`input`,editable:!1}],dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):``},{title:`ICR A`,dataKey:`icr_4`,width:100,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):``,type:`input`,editVisible:!1},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},IAR:{tableName:`t_activite_cdarr`,title:`Interrogation Activités CdARR`,component:`common`,fields:[...hm,{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}],refUniquement:!1},AAR:{tableName:`t_acte_cdarr`,title:`Interrogation Actes CdARR`,component:`common`,fields:[...hm,{title:`Activité CdARR`,dataKey:`activite_cdarr_texte`,type:`input`,editVisible:!1},{title:`CMC`,dataKey:`activite_cdarr_texte`,type:`input`,hidden:!0,editable:!1},{title:`Nombre référence`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,type:`input`,editable:!1,editVisible:!1}],excludeFields:[`texte_court`],refUniquement:!1},ASR:{tableName:`t_acte_csarr`,title:`Interrogation Actes CSARR`,component:`common`,fields:[...hm,{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}],refUniquement:!0,excludeFields:[`texte_court`]},DIA:{tableName:`t_diagnostics`,title:`Interrogation Diagnostics`,component:`common`,fields:[...hm,{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}],excludeFields:[`texte_court`]},PRE:{tableName:`t_prestations`,title:`Gestion Prestations`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}]},REG:{tableName:`t_regions`,title:`Gestion Régions administratives`,component:`common`,fields:[...hm,{title:`Départements`,dataKey:`departements_texte`,type:`input`,editable:!1},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}]},DEP:{tableName:`t_departements`,title:`Gestion Départements`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}],refUniquement:!1},CGP:{tableName:`t_codes_geographiques_pmsi`,title:`Affichage Codes géographiques PMSI`,component:`common`,fields:[...hm,{title:`Codes postaux`,dataKey:`codes`,type:`input`,editable:!1},{title:`Population`,dataKey:`population`,type:`input`,editable:!1,hidden:!0},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}]},CPO:{tableName:`t_codes_postaux`,title:`Gestion Codes postaux`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Département`,dataKey:`departement`,editVisible:!1},{title:`Département`,dataKey:`departement_id`,type:`select`,selectOptionsKey:`DEP`,hidden:!0},{title:`Codes géo PMSI`,dataKey:`code_geo_pmsi`,type:`input`,editable:!1},{title:`Population`,dataKey:`population`,type:`input`,editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):``},{title:`Nombre référence (RHS)`,dataKey:`nbref`,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):``,editable:!1,editVisible:!1}]},EXC:{tableName:`t_expert_controle`,title:`Gestion Controles Expert`,addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:`Éxécuter les règles`,action:`execute_rules`},component:`onglet`,preferences:{label:`Préférences`},tabs:[{key:`definition`,label:`Définition`},{key:`description`,label:`Description`},{key:`regle-1`,label:`Règle 1`},{key:`regle-2`,label:`Règle 2`},{key:`regle-3`,label:`Règle 3`}],fields:[{title:`Code`,dataKey:`code`,type:`input`},{tab:`definition`,title:`Texte`,dataKey:`texte`,type:`input`},{title:`Contrôle CTI`,dataKey:`is_cti`,type:`checkbox`,width:80,hidden:!0},{title:`État`,dataKey:`is_active_texte`,editVisible:!1,width:80},{title:`Complément`,dataKey:`complement`,editVisible:!1,width:120},{title:`Gravité`,dataKey:`gravite_texte`,editVisible:!1,width:80},{title:`Contrôle activé`,dataKey:`is_active`,type:`checkbox`,tab:`definition`,hidden:!0},{tab:`definition`,title:`Texte affiché`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Dossier ciblés`,dataKey:`etat_cible_texte`,editVisible:!1,width:120},{title:`Date dernière exécution`,dataKey:`last_execution_timestamp`,editVisible:!1,width:120},{title:`Etat dernière exécution`,dataKey:`last_execution_ok`,editVisible:!1,width:120},{title:`Nombre références`,dataKey:`nbref`,editVisible:!1},{tab:`definition`,title:`Dossier ciblés`,dataKey:`etat_cible`,type:`select`,selectOptionsKey:`EXC_cible_provider`,hidden:!0},{tab:`definition`,title:`Gravité`,dataKey:`gravite`,type:`select`,selectOptionsKey:`EXC_gravite_provider`,hidden:!0},{tab:`definition`,title:`Alerte`,dataKey:`is_alert`,type:`checkbox`,hidden:!0},{tab:`regle-1`,title:`Données`,dataKey:`table1`,type:`select`,selectOptionsKey:`EXC_table_provider_SSR`,hidden:!0},{tab:`regle-1`,title:`Sélection`,dataKey:`sqlcmd_where1`,type:`textArea`,hidden:!0},{tab:`regle-1`,title:`Justificatif`,dataKey:`sqlcmd_justificatif1`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Données`,dataKey:`table2`,type:`select`,selectOptionsKey:`EXC_table_provider`,hidden:!0},{tab:`regle-2`,title:`Sélection`,dataKey:`sqlcmd_where2`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Justificatif`,dataKey:`sqlcmd_justificatif2`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Données`,dataKey:`table3`,type:`select`,selectOptionsKey:`EXC_table_provider`,hidden:!0},{tab:`regle-3`,title:`Sélection`,dataKey:`sqlcmd_where3`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Justificatif`,dataKey:`sqlcmd_justificatif3`,type:`textArea`,hidden:!0},{tab:`description`,title:`Description`,dataKey:`description`,type:`text-editor`,hidden:!0}]},FIN:{tableName:`t_finess`,title:`Gestion Finess`,component:`finess`,lineBlocks:[{dateFieldKey:`FIN_date_debut_coefficient_ssr`,lines:[{key:`FIN_date_debut_coefficient_ssr_`,label:`Historique coefficients SSR`,type:`date`},{key:`FIN_fraction_dma_`,label:`Fraction DMA`,type:`input`},{key:`FIN_coefficient_transition_`,label:`- Transition`,type:`input`},{key:`FIN_coefficient_spe_`,label:`- Spécialité`,type:`input`},{key:`FIN_coefficient_geo_`,label:`- Géographique`,type:`input`},{key:`FIN_coefficient_hono_`,label:`- Honoraire`,type:`input`},{key:`FIN_coefficient_prud_`,label:`- Prudentiel`,type:`input`}],lengthFields:7}],fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1,editVisible:!1},{title:`Valeur point IVA`,dataKey:`iva`,type:`input`,editable:!1,editVisible:!1},{title:`Valeur taux régional IVA`,dataKey:`iva_reg`,type:`input`,editable:!1},{dataKey:`FIN_date_debut_coefficient_ssr_1`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_2`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_3`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_4`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_5`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_6`,title:`Historique coefficients MCO`,type:`date`,hidden:!0},{dataKey:`FIN_date_debut_coefficient_ssr_7`,title:`Historique coefficients MCO`,type:`date`,hidden:!0}]},DIV:{tableName:`t_divers`,title:`Paramètres divers`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,width:100,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`DIV1`,type:`input`},{title:`Valeur date (format YYYY-MM-DD)`,dataKey:`DIV2`,type:`input`},{title:`Description`,dataKey:`DIV3`,type:`input`,hidden:!0},{title:`Infomodule`,dataKey:`DIV4`,type:`input`,hidden:!0}],refUniquement:!1}},_m=[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`}],vm={DIV:{tableName:`t_divers`,title:`Éléments divers`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Valeur date`,dataKey:`valeur_date`,type:`input`},{title:`Description`,dataKey:`description`,type:`input`,editVisible:!1},{title:`Info module`,dataKey:`show_info_module`,type:`checkbox`,width:80}]},ENT:{tableName:`t_entreprises`,title:`Gestion entreprises`,component:`common`,refUniquement:!1,fields:[..._m,{title:`Code planning`,dataKey:`code_ent_planning`,type:`input`}]},ETA:{tableName:`t_etablissements`,title:`Gestion Etablissements`,component:`common`,refUniquement:!1,fields:[..._m,{title:`Base calcul ETP`,dataKey:`base_calcul_etp`,type:`input`},{title:`Code planning`,dataKey:`code_ets_planning`,type:`input`},{title:`Etablissement`,dataKey:`finess_id`,type:`select`,selectOptionsKey:`FINESS`,hidden:!0}]},NAT:{tableName:`t_nationalites`,title:`Gestion nationalités`,refUniquement:!1,component:`common`,fields:[..._m]},SIT:{tableName:`t_situations_famille`,title:`Gestion situations de famille`,refUniquement:!1,component:`common`,fields:[..._m]},CSP:{tableName:`t_categories_socio_professionnelle`,title:`Gestion catégories socio-profesionnelle`,component:`common`,refUniquement:!1,fields:[..._m]},CAE:{tableName:`t_cadre_emploi`,title:`Gestion codes emploi`,component:`common`,refUniquement:!1,fields:[..._m]},CEM:{tableName:`t_codes_emploi`,title:`Gestion codes emploi`,refUniquement:!1,component:`common`,fields:[..._m]},GRI:{tableName:`t_grilles`,title:`Gestion grilles`,component:`common`,refUniquement:!1,fields:[..._m]},GGR:{tableName:`t_grilles_groupes`,title:`Gestion groupes de grilles`,refUniquement:!1,component:`common`,fields:[..._m]},MDC:{tableName:`t_motifs_debut_contrat`,title:`Gestion motifs début de contrat`,refUniquement:!1,component:`common`,fields:[..._m]},MFC:{tableName:`t_motifs_fin_contrat`,title:`Gestion motifs fin de contrat`,refUniquement:!1,component:`common`,fields:[..._m]},QUA:{tableName:`t_qualifications`,title:`Gestion qualifications`,refUniquement:!1,component:`common`,fields:[..._m]},SAN:{tableName:`t_sections_analytiques`,title:`Gestion sections analytiques`,refUniquement:!1,component:`common`,fields:[..._m]},SAP:{tableName:`t_sections_analytiques_paie`,title:`Gestion sections analytiques paie`,refUniquement:!1,component:`common`,fields:[..._m]},SER:{tableName:`t_services`,title:`Gestion services`,refUniquement:!1,component:`common`,fields:[..._m]},SOC:{tableName:`t_societes_interim`,title:`Gestion sociétés intérimaires`,refUniquement:!1,component:`common`,fields:[..._m]},SPE:{tableName:`t_specialites`,title:`Gestion spécialités`,refUniquement:!1,component:`common`,fields:[..._m]},STA:{tableName:`t_statuts`,title:`Gestion statuts`,refUniquement:!1,component:`common`,fields:[..._m]},TCO:{tableName:`t_types_contrat`,title:`Gestion types contrat`,component:`common`,refUniquement:!1,fields:[..._m]},THO:{tableName:`t_types_horaire`,title:`Gestion Types d'horaire`,component:`common`,refUniquement:!1,fields:[..._m]},TTT:{tableName:`t_types_temps_travail`,title:`Gestion types temps de travail`,component:`common`,refUniquement:!1,fields:[..._m]},MAR:{tableName:`t_motifs_arret`,title:`Gestion motifs d'arrêts de travail`,component:`common`,refUniquement:!1,fields:[..._m]},DPR:{tableName:`t_data_profile`,title:`Gestion profils de données`,component:`onglet`,refUniquement:!1,addButton:!0,tabs:[{key:`etablissements`,label:`Etablissements`},{key:`service`,label:`Service`},{key:`statuts`,label:`Status`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Règles`,dataKey:`regles`,type:`input`,width:400,editVisible:!1},{title:`Inclus`,tab:`etablissements`,dataKey:`etablissement_inclus`,type:`input`,hidden:!0},{title:`Exclus`,tab:`etablissements`,dataKey:`etablissement_exclus`,type:`input`,hidden:!0},{title:`Inclus`,tab:`service`,dataKey:`service_inclus`,type:`input`,hidden:!0},{title:`Exclus`,tab:`service`,dataKey:`service_exclus`,type:`input`,hidden:!0},{title:`Inclus`,tab:`statuts`,dataKey:`statut_inclus`,type:`input`,hidden:!0},{title:`Exclus`,tab:`statuts`,dataKey:`statut_exclus`,type:`input`,hidden:!0}]},RUB:{tableName:`t_rubriques`,title:`Gestion rubriques`,component:`rubrique`,refUniquement:!1,fields:{0:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Proratiser la conversion j->h selon le temps de travail`,dataKey:`proratiser_conversion`,type:`checkbox`,hidden:!0},{title:`Cumul`,dataKey:`p_cumul`,type:`checkbox`,hidden:!0},{title:`Détail`,dataKey:`p_detail`,type:`checkbox`,hidden:!0},{title:`Modifié par l'utilisateur`,dataKey:`user_modified`,type:`checkbox`,hidden:!0},{title:`Code calcul`,dataKey:`code_calcul`,type:`select`,selectOptionsKey:`calculCodeList`,width:80},{title:`Coefficient`,dataKey:`coefficient`,type:`input`,width:100},{title:`Coefficient base`,dataKey:`coefficient_base`,type:`input`,width:100},{title:`Coefficient nombre`,dataKey:`coefficient_nombre`,type:`input`,width:10},{title:`Coefficient taux salarial`,dataKey:`coefficient_txs`,type:`input`,hidden:!0},{title:`Coefficient taux patronal`,dataKey:`coefficient_txp`,type:`input`,hidden:!0}],1:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1,resizable:!1,parentKey:`placeHolder`,width:80},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1,hidden:!0},{title:`Texte`,dataKey:`texte`,type:`input`,resizable:!1,parentKey:`placeHolder`,width:200,dataGetter:({rowData:e})=>(0,$.jsx)(Be,{placement:`topLeft`,title:e.texte,children:e.texte})},{title:`Texte court`,dataKey:`texte_court`,type:`input`,hidden:!0},{title:`Proratiser la conversion j->h selon le temps de travail`,dataKey:`proratiser_conversion`,type:`checkbox`,hidden:!0},{title:`Cumul`,dataKey:`p_cumul`,type:`checkbox`,hidden:!0},{title:`Détail`,dataKey:`p_detail`,type:`checkbox`,hidden:!0},{title:`Modifié par l'utilisateur`,dataKey:`user_modified`,type:`checkbox`,hidden:!0},{title:`Global`,dataKey:`global`,resizable:!1,width:0,children:[{title:`M`,titleEdit:`Modifié par l'utilisateur`,dataKey:`user_modified`,key:`user_modified`,type:`checkbox`,resizable:!1,parentKey:`global`,width:50,align:`center`},{title:`C`,titleEdit:`Cumul`,dataKey:`p_cumul`,key:`p_cumul`,type:`checkbox`,resizable:!1,parentKey:`global`,width:50,align:`center`},{title:`D`,titleEdit:`Détail`,dataKey:`p_detail`,key:`p_detail`,type:`checkbox`,resizable:!1,parentKey:`global`,width:50,align:`center`}]},{title:`Nombre`,dataKey:`p_nombre`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Base`,dataKey:`p_base`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Heure Contrat.`,dataKey:`p_heures_contrat`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Heure Payées.`,dataKey:`p_heures_payees`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Heure travaillées`,dataKey:`p_heures_travaillees`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Masse salariale`,dataKey:`p_masse_salariale`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Brut`,dataKey:`p_brut`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Avantages Nature`,dataKey:`p_avantage_nature`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Frais impossables`,dataKey:`p_frais_imposables`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Cotisations salariés`,dataKey:`p_cotisation_salarie`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Cotisations patronales`,dataKey:`p_cotisation_patronale`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`OD/Net salarié`,dataKey:`p_od_net_salarie`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`OD/Net patronale`,dataKey:`p_od_net_patronale`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Net imposable`,dataKey:`p_net_imposable`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Net à payer`,dataKey:`p_net_a_payer`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Nombre provisions`,dataKey:`p_nombre_provisions`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Montant provisions`,dataKey:`p_montant_provisions`,resizable:!1,width:0,isSC:!0,align:`center`},{title:`Masse salariale avec provisions`,dataKey:`p_masse_salariale_provisionnee`,resizable:!1,width:0,isSC:!0,align:`center`}]}},ORG:{tableName:`t_organismes_cotisation`,title:`Gestion organisme de cotisation`,component:`common`,refUniquement:!1,fields:[..._m]},PSE:{tableName:`t_planning_service`,title:`Gestion services planning`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Service (code paie) associé`,dataKey:`service_paie_associe_texte`},{title:`Service (code paie) associé`,dataKey:`service_id`,type:`select`,selectOptionsKey:`SER`,hidden:!0}]},PQU:{tableName:`t_planning_qualification`,title:`Gestion qualifications planning`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Qualification (code paie) associé`,dataKey:`qualification_paie_associe_texte`,editVisible:!1},{title:`Qualification (code paie) associé`,dataKey:`qualification_id`,type:`select`,selectOptionsKey:`QUA`,hidden:!0}]},PAB:{tableName:`t_planning_type_absence`,title:`Gestion type absence planning`,component:`common`,refUniquement:!1,fields:[..._m],excludeFields:[`texte_court`]},CXP:{tableName:`t_expert_controle`,title:`Controles expert`,refUniquement:!1,addButton:!0,module:`rh`,execute:{label:`Executer les règles`,action:`execute_rules`},component:`onglet`,tabs:[{key:`cxp-regle-cti`,label:`Règle CTI`},{key:`cxp-autre-cti`,label:`Autres règles CTI`},{key:`cxp-ets`,label:`Règles établissement`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`CTI`,dataKey:`is_cti`,type:`checkbox`},{title:`Description`,dataKey:`description`,type:`textArea`,hidden:!0},{title:`Gravité`,dataKey:`gravite_id`,type:`select`,selectOptionsKey:`EXC_gravite_provider`,hidden:!0},{title:`Alerte`,dataKey:`alerte_id`,type:`checkbox`,hidden:!0},{title:`Actif`,dataKey:`is_active`,type:`checkbox`,hidden:!0},{title:`A partir de`,dataKey:`start_periode`,type:`select`,selectOptionsKey:`CXP_start`,hidden:!0},{title:`Indicateur`,dataKey:`indicateur_texte`,type:`text`,editVisible:!1},{title:`Complément`,dataKey:`complement`,type:`text`,editVisible:!1},{title:`Date Exécution`,dataKey:`last_date`,type:`text`,editVisible:!1},{title:`Statut`,dataKey:`last_status`,type:`text`,editVisible:!1},{title:`Signalements`,dataKey:`last_count`,type:`text`,editVisible:!1},{title:`cxp-regle-cti`,tab:`cxp-regle-cti`,type:`cxp-regle-cti`,hidden:!0},{title:`cxp-autre-cti`,tab:`cxp-autre-cti`,type:`cxp-autre-cti`,hidden:!0},{title:`cxp-ets`,tab:`cxp-ets`,type:`cxp-ets`,hidden:!0}]}},ym=[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`}],bm={BOR:{tableName:`t_sae_bordereau`,title:`Bordereaux`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Masqué`,dataKey:`est_masque`,type:`checkbox`,dataGetter:({rowData:e})=>e.est_masque?`Oui`:`Non`}]},CHP:{tableName:`t_sae_chapitre`,title:`Chapitres (lignes)`,refUniquement:!1,component:`chapter`,fields:[...ym,{title:`Bordereau`,dataKey:`bordereau_texte`,type:`input`,editable:!1}]},IND:{tableName:`t_sae_indicateur`,title:`Indicateurs`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Source`,dataKey:`source_texte`,type:`input`,editable:!1},{title:`Bordereau`,dataKey:`bordereau_texte`,type:`input`,editable:!1},{title:`Chapitre (ligne)`,dataKey:`chapitre_texte`,type:`input`,editable:!1},{title:`Format`,dataKey:`format`,type:`input`}]},NPR:{tableName:`t_sae_classification_personnel`,title:`Classification personnel`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Arborescence`,dataKey:`arborescence`,type:`input`,editable:!1}]},MDX:{tableName:`t_sae_medecin_liberal`,title:`Médecins (activité)`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Genre`,dataKey:`sexe`,type:`input`},{title:`Spécialité`,dataKey:`specialite_texte`,type:`input`},{title:`Discipline`,dataKey:`discipline`,type:`input`},{title:`Service`,dataKey:`service`,type:`input`},{title:`Filière`,dataKey:`filiere_texte`,type:`input`},{title:`Classification`,dataKey:`classification`,type:`input`},{title:`Présent 31/12`,dataKey:`present_3112`,type:`input`},{title:`Jours année`,dataKey:`jours_travailles_annee`,type:`input`},{title:`Jours Décembre`,dataKey:`jours_travailles_decembre`,type:`input`},{title:`Temps travail`,dataKey:`type_temps_travail_texte`,type:`input`}]},CNT:{tableName:`t_sae_contrat`,title:`Salariés / Contrats`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Matricule`,dataKey:`salarie_code`,type:`input`},{title:`Contrat`,dataKey:`contrat_code`,type:`input`},{title:`Genre`,dataKey:`sexe`,type:`input`},{title:`Type`,dataKey:`type_contrat_code`,type:`input`},{title:`Qualification`,dataKey:`qualification_texte`,type:`input`},{title:`Discipline`,dataKey:`discipline`,type:`input`},{title:`Service`,dataKey:`service`,type:`input`},{title:`Filière`,dataKey:`filiere_texte`,type:`input`},{title:`Classification`,dataKey:`classification`,type:`input`},{title:`Temps travail`,dataKey:`type_temps_travail_texte`,type:`input`},{title:`Présent 31/12`,dataKey:`effectif`,type:`input`},{title:`ETP`,dataKey:`etp_paye_prorate`,type:`etp_paye_prorate`}]},DIV:{tableName:`t_divers`,title:`Options`,refUniquement:!1,component:`common`,fields:[...ym,{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Description`,dataKey:`description`,type:`input`,editable:!1}]}},xm=[{title:`Code`,dataKey:`code`,width:100,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1,width:150}],Sm={"CTI_BASE_TablesManager.swf":Ef,"CTI_ECO_TablesManager.swf":pm,"CTI_ACTI_TablesManager.swf":{SER:{tableName:`t_services_facturation`,title:`Gestion Services facturation`,component:`onglet`,refUniquement:!1,saveWithoutCalc:!0,addSearchFields:[`mtdmt`],tabs:[{key:`definition`,label:`Définition`},{key:`places`,label:`Places`},{key:`options-1`,label:`Options de génération`},{key:`options-2`,label:`Options de génération (suite)`}],fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,editable:!1},{title:`Code original`,dataKey:`code_original`,type:`input`,editable:!1,width:150},{title:`Lits`,dataKey:`nb_lits`,type:`input`,width:80,tab:`definition`},{title:`C.P.`,dataKey:`nb_cp`,type:`input`,width:80,tab:`definition`},{title:`Finess`,dataKey:`finess`,type:`input`,tab:`definition`,editVisible:!1},{title:`Mode de traitement`,dataKey:`mode_traitement_id`,type:`select`,selectOptionsKey:`MTR`,tab:`options-1`,hidden:!0},{title:`DMT`,dataKey:`dmt_id`,type:`select`,selectOptionsKey:`DMT`,tab:`options-1`,width:80,hidden:!0},{title:`DMT`,dataKey:`mtdmt`,editVisible:!1},{title:`Particularités`,dataKey:`comment`,type:`input`,editVisible:!1},{title:`Type PMSI`,dataKey:`type_t2a`,type:`select`,selectOptionsKey:`SER_type_t2a_provider`,tab:`definition`,hidden:!0},{title:`FINESS`,dataKey:`finess_id`,type:`select`,selectOptionsKey:`FINESS`,tab:`definition`,hidden:!0},{title:`Budget global`,dataKey:`est_budget_global`,type:`checkbox`,tab:`definition`,hidden:!0},{title:`Histos`,type:`histos`,tab:`places`,hidden:!0},{title:`Type séjour`,dataKey:`type_sejour`,type:`select`,selectOptionsKey:`SER_TYPE_SEJOUR_PROVIDER`,tab:`options-1`,hidden:!0},{title:`Sans mouvement`,dataKey:`est_sans_mouvement`,type:`checkbox`,tab:`options-1`,hidden:!0},{title:`Calcul journées`,dataKey:`mode_calcul_journees`,type:`select`,selectOptionsKey:`OPTADM_DAYOUT_PROVIDER`,tab:`options-1`,hidden:!0},{title:`Étage par défault`,dataKey:`etage_par_defaut_id`,type:`select`,selectOptionsKey:`ETAGE`,tab:`options-1`,hidden:!0},{title:`Étage forcé`,dataKey:`etage_force_id`,type:`select`,selectOptionsKey:`ETAGE`,tab:`options-1`,hidden:!0},{title:`Médecins par défault`,dataKey:`medecin_par_defaut_id`,type:`select`,selectOptionsKey:`MDA`,tab:`options-1`,hidden:!0},{title:`Médecin forcé`,dataKey:`medecin_force_id`,type:`select`,selectOptionsKey:`MDA`,tab:`options-1`,hidden:!0},{title:`Facturation`,dataKey:`est_sans_facturation`,type:`select`,selectOptionsKey:`SER_est_sans_facturation_provider`,tab:`options-1`,hidden:!0},{title:`Facturation intermédiaire`,dataKey:`avec_facturation_intermediaire`,type:`checkbox`,tab:`options-1`,hidden:!0},{title:`Mouvement / jours fermés`,dataKey:`option_jour_ferme`,type:`checkbox`,detail:`Si coché : suppression des mouvements les jours de fermeture du service.`,tab:`options-2`,hidden:!0},{title:`Prestations présence`,dataKey:`prestations_presence`,type:`input`,detail:`Codes prestations identifiant présence en HDJ`,tab:`options-2`,hidden:!0},{title:`Particularité en cours`,dataKey:`particularites_encours`,type:`input`,detail:`IVG, MAT`,tab:`options-2`,hidden:!0},{title:`Séjours sans actes fictifs`,dataKey:`sej_sans_acte_fictif`,type:`checkbox`,tab:`options-2`,hidden:!0},{title:`Activité par défaut`,dataKey:`activite_par_defaut_id`,type:`select`,selectOptionsKey:`ACTIVITE`,tab:`options-2`,hidden:!0},{title:`Activité forcée`,dataKey:`activite_force_id`,type:`select`,selectOptionsKey:`ACTIVITE`,tab:`options-2`,hidden:!0}]},ACF:{tableName:`t_activites`,title:`Gestion activtés facturation`,component:`common`,refUniquement:!1,fields:[...xm,{title:`Étage par défault`,dataKey:`etage_par_defaut_id`,type:`select`,selectOptionsKey:`ETAGE`,hidden:!0},{title:`Étage par forcé`,dataKey:`etage_force_id`,type:`select`,selectOptionsKey:`ETAGE`,hidden:!0}]},ETA:{tableName:`t_etages`,title:`Gestion étages`,component:`onglet`,refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:`definition`,label:`Définition`},{key:`places`,label:`Places`},{key:`lits`,label:`Lits`}],fields:[...xm.filter(e=>e.dataKey!==`texte_court`),{title:`Texte court`,dataKey:`texte_court`,type:`input`,width:80,hidden:!0,tab:`definition`},{title:`Lits`,dataKey:`nb_lits`,type:`input`,width:80,tab:`definition`},{title:`C.P.`,dataKey:`nb_cp`,type:`input`,width:80,tab:`definition`},{title:`Unité d'urgences`,dataKey:`est_urgence`,type:`checkbox`,tab:`definition`,hidden:!0},{title:`Service forcé`,dataKey:`service_force_id`,type:`select`,selectOptionsKey:`SERVICE`,tab:`definition`,hidden:!0},{title:`Ignorer`,dataKey:`remplacer_par_valeur_par_defaut`,type:`checkbox`,tab:`definition`,detail:`Si coché, la valeur sera remplacé par l'étape par défault du service.`,hidden:!0},{title:`Histos`,type:`histos`,tab:`places`,hidden:!0},{title:`Lits`,type:`lits`,tab:`lits`,hidden:!0}]},ETAPLC:{tableName:`t_etages`,title:`Capacité étages`,component:`onglet`,refUniquement:!1,tabs:[{key:`places`,label:`Places`}],fields:[...xm,{title:`Histos`,type:`histos`,tab:`places`,hidden:!0},{title:`Lits`,dataKey:`nb_lits`,type:`input`,width:80},{title:`C.P.`,dataKey:`nb_cp`,type:`input`,width:80}],excludeFields:[`texte_court`]},LIT:{tableName:`t_lits`,title:`Gestion lits`,component:`onglet`,refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:`definition`,label:`Définition`},{key:`etages`,label:`Étage`}],fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,width:80,tab:`definition`,hidden:!0},{title:`Code original`,dataKey:`code_original`,type:`input`},{title:`Etage code`,dataKey:`etage_code`,type:`input`,tab:`definition`},{title:`Etage texte`,dataKey:`etage_texte`,type:`input`,tab:`definition`},{title:`Chambre particulière`,dataKey:`est_chambre_particuliere`,type:`checkbox`,tab:`definition`,hidden:!0},{type:`etages`,tab:`etages`,hidden:!0}]},UFT:{tableName:`t_unites_fonctionnelles`,title:`Gestion unités fonctionnelles`,component:`onglet`,refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:`definition`,label:`Définition`},{key:`places`,label:`Places`},{key:`options`,label:`Options de génération`}],fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,tab:`definition`},{title:`Texte`,dataKey:`texte`,type:`input`,tab:`definition`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,tab:`definition`},{title:`Code original`,dataKey:`code_original`,type:`input`,tab:`definition`,editable:!1,width:150},{title:`Facturation`,dataKey:`est_sans_facturation`,type:`select`,selectOptionsKey:`SER_est_sans_facturation_provider`,tab:`options`,hidden:!0},{title:`Histos`,type:`histos`,tab:`places`,hidden:!0}]},UMD:{tableName:`t_unites_medicales`,title:`Gestion unités médicales`,component:`onglet`,refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:`definition`,label:`Définition`},{key:`places`,label:`Places`}],fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,tab:`definition`},{title:`Texte`,dataKey:`texte`,type:`input`,tab:`definition`},{title:`Texte court`,dataKey:`texte_court`,type:`input`,tab:`definition`},{title:`Code original`,dataKey:`code_original`,type:`input`,tab:`definition`,editable:!1,width:150},{title:`Étage par défault`,dataKey:`etage_par_defaut_id`,type:`select`,selectOptionsKey:`ETAGE`,tab:`definition`,hidden:!0},{title:`Étage par forcé`,dataKey:`etage_force_id`,type:`select`,selectOptionsKey:`ETAGE`,tab:`definition`,hidden:!0},{title:`Histos`,type:`histos`,tab:`places`,hidden:!0}]},FAC:{tableName:`t_forme_activite`,title:`Gestion formes d'activité`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Texte court`,dataKey:`texte_court`,type:`input`,editable:!1}]},FAR:{tableName:`t_forme_activite_rule`,title:`Gestion règles formes d'activité`,component:`rules`,addButton:!0,execute:{label:`Executer les règles`,action:`execute_rules`},refUniquement:!1,fields:[{title:`Priorité`,dataKey:`priorite`,type:`input`,width:100,default:`5000`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Code règle`,dataKey:`code`,type:`input`},{title:`Forme activité`,dataKey:`forme_activite_texte`,type:`text`,editVisible:!1},{title:`Forme activité`,dataKey:`forme_activite_id`,type:`select`,selectOptionsKey:`FAC`,hidden:!0},{title:`Règle`,dataKey:`rule_resume`,editVisible:!1,type:`input`}],extraFields:!0},FSO:{tableName:`t_filiere_soin`,title:`Gestion Filières de soin`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`}]},FSR:{tableName:`t_filiere_soin_rule`,title:`Gestion règles Filières de soin`,component:`rules`,addButton:!0,execute:{label:`Executer les règles`,action:`execute_rules`},refUniquement:!1,fields:[{title:`Priorité`,dataKey:`priorite`,type:`input`,width:100,default:`5000`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Code règle`,dataKey:`code`,type:`input`},{title:`Filière de soin`,dataKey:`filiere_soin_texte`,type:`select`,editVisible:!1},{title:`Filière de soin`,dataKey:`filiere_soin_id`,type:`select`,selectOptionsKey:`FSO`,hidden:!0},{title:`Règle`,dataKey:`rule_resume`,type:`input`,editVisible:!1}],extraFields:!0},FSJ:{tableName:`t_sejour`,title:`Forçages Séjours`,component:`sejours`,refUniquement:!1,addButton:!0,fields:[{title:`Numéro`,dataKey:`code`,type:`input`,width:100},{title:`Nom`,dataKey:`texte`,type:`input`},{title:`Séjour à ignorer`,dataKey:`est_ignore`,type:`checkbox`,width:100,hidden:!0},{title:`Ignoré`,dataKey:`est_ignore_texte`,type:`input`,editVisible:!1,width:100},{title:`Médecin forcé`,dataKey:`medecin_sejour_id`,type:`select`,selectOptionsKey:`MDA`,hidden:!0},{title:`Médecin forcé`,dataKey:`medecin_sejour_texte`,editVisible:!1},{title:`Service forcé`,dataKey:`service_facturation_texte`,editVisible:!1},{title:`Etage forcé`,dataKey:`etage_texte`,editVisible:!1,width:150},{title:`Type`,dataKey:`type_sejour`,type:`select`,selectOptionsKey:`FSJ_type`,hidden:!0},{title:`Type séjour forcé`,dataKey:`type_sejour_texte`,editVisible:!1,width:150},{title:`Service`,dataKey:`service_facturation_id`,type:`select`,selectOptionsKey:`SERVICE`,hidden:!0},{title:`Etage`,dataKey:`etage_id`,type:`select`,selectOptionsKey:`ETAGE`,hidden:!0},{title:`Encours`,dataKey:`encours_1_from_date`,type:`select`,selectOptionsKey:`MOIS`,hidden:!0,detail:`à partir de`,default:`2099-12-31`},{title:`Forçage en cours`,dataKey:`encours_texte`,editVisible:!1,width:150},{title:`Ignorer (Encours)`,dataKey:`encours_1_est_ignore`,type:`checkbox`,hidden:!0}]},WFU:{tableName:`t_web100t_forcage_uf_soin`,title:`Gestion Forcage UF Soins WEB100T`,component:`common`,refUniquement:!1,fields:[{title:`Texte`,dataKey:`texte`,type:`input`},{title:`UF Soins forcée`,dataKey:`mvt_uf_soin_lib`,editVisible:!1},{title:`UF Soins forcée`,dataKey:`mvt_uf_soin`,type:`select`,selectOptionsKey:`MVT_UF_SOIN`,hidden:!0},{title:`UF Soins héritée (spécialité séjour)`,dataKey:`mvt_uf_soin_lib_hs`,editVisible:!1},{title:`UF Soins héritée (type séjour)`,dataKey:`mvt_uf_soin_lib_hc`,editVisible:!1}]},MDA:{tableName:`t_medecins_administratifs`,title:`Gestion Référentiel Médecins`,component:`common`,refUniquement:!1,fields:[...xm,{title:`Nom`,dataKey:`nom`,type:`input`},{title:`Prénom`,dataKey:`prenom`,type:`input`},{title:`Nº ADELI`,dataKey:`no_adeli`,type:`input`,editVisible:!1},{title:`Spécialité`,dataKey:`specialite`,type:`input`,editVisible:!1},{title:`Médecin référence`,dataKey:`medecin_reference`,type:`input`,editVisible:!1},{title:`Médecin salarié`,dataKey:`est_medecin_salarie`,type:`checkbox`,hidden:!0},{title:`Comptabiliser honoraires (patient)`,dataKey:`kiwee_sigems_honpatcpt`,type:`checkbox`},{title:`Comptabiliser dépassements honoraires (patient)`,dataKey:`kiwee_sigems_honpatcptdep`,type:`checkbox`}],excludeFields:[`texte_court`,`texte`]},PRC:{tableName:`t_prestations_c`,title:`Gestion Prestations Clinique`,component:`common`,refUniquement:!1,fields:[...xm,{title:`Complement`,dataKey:`complement`,type:`input`,editVisible:!1},{title:`Ventilation des lignes facturés par jour`,dataKey:`type_ventilation_jour`,type:`select`,selectOptionsKey:`PRC_type_valorisation_facture`,hidden:!0},{title:`Type valorisation`,dataKey:`type_valorisation_non_facture`,type:`select`,selectOptionsKey:`PRC_type_valorisation_non_facture`,hidden:!0}]},RUB:{tableName:`t_rubriques_facturation`,title:`Gestion Rubriques Facturation`,refUniquement:!1,component:`common`,fields:[...xm,{title:`Forcé établissement`,detail:`Acte facturé en honoraire à remonter en partie établissement`,dataKey:`est_force_etablissement`,type:`checkbox`,hidden:!0},{title:`Acte inclus (public)`,dataKey:`actes_inclus_public`,type:`checkbox`,hidden:!0}]},CPT:{tableName:`t_compte`,title:`Gestion Comptes produits`,refUniquement:!1,component:`common`,fields:[...xm,{title:`TVA`,dataKey:`tva_texte`,type:`input`,editVisible:!1},{title:`Compte TVA`,dataKey:`compte_tva_id`,type:`select`,selectOptionsKey:`CPT`,hidden:!0},{title:`Taux TVA`,dataKey:`taux_tva`,type:`input`,dependsOn:`compte_tva_id`,disabledWhen:`0`,width:80,hidden:!0}]},SRU:{tableName:`t_service_rubrique`,title:`Gestion Comptes produits par rubrique`,refUniquement:!1,component:`common`,fields:[{title:`Service`,dataKey:`service`,type:`input`,editable:!1},{title:`Rubriques`,dataKey:`rubrique`,type:`input`,editable:!1},{title:`Compte`,dataKey:`compte`,editVisible:!1},{title:`Prestation forcée`,dataKey:`prestation_forcee`,type:`input`,editVisible:!1},{title:`Nombre référence`,dataKey:`nbref`,editVisible:!1},{title:`Compte`,dataKey:`compte_id`,type:`select`,selectOptionsKey:`CPT`,hidden:!0},{title:`Compte forcé ?`,dataKey:`est_compte_force`,type:`checkbox`,hidden:!0},{title:`Prestation forcée`,dataKey:`prestation_forcee_id`,type:`select`,selectOptionsKey:`PRESTATION`,hidden:!0}]},CAR:{tableName:`t_compte_produit_analytique_rule`,title:`Gestion règles comptes analytiques`,component:`rules`,addButton:!0,execute:{label:`Executer les règles`,action:`execute_rules`},refUniquement:!1,fields:[{title:`Priorité`,dataKey:`priorite`,type:`input`,width:100,default:`5000`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Code règle`,dataKey:`code`,type:`input`,hidden:!0},{title:`Compte`,dataKey:`compte_produit_analytique_texte`,type:`input`,editVisible:!1},{title:`Compte`,dataKey:`$compte_produit_analytique_id`,type:`select`,selectOptionsKey:`CPT`,hidden:!0},{title:`Règles`,dataKey:`rule_resume`,editVisible:!1},{title:`Type séjour`,dataKey:`liste_type_sejour`,type:`input`,hidden:!0,tab:!0},{title:`Spécialité`,dataKey:`liste_specialite`,type:`input`,hidden:!0,tab:!0},{title:`Médecins`,dataKey:`liste_medecin`,type:`input`,hidden:!0,tab:!0},{title:`Services`,dataKey:`liste_service`,type:`input`,hidden:!0,tab:!0},{title:`Etages`,dataKey:`liste_etage`,type:`input`,hidden:!0,tab:!0},{title:`Unité fonctionnelle`,dataKey:`liste_unite_fonctionnelle`,type:`input`,hidden:!0,tab:!0},{title:`Actes`,dataKey:`liste_acte`,type:`input`,hidden:!0,tab:!0},{title:`Rubriques`,dataKey:`liste_rubrique`,type:`input`,hidden:!0,tab:!0},{title:`Prestations`,dataKey:`liste_prestation`,type:`input`,hidden:!0,tab:!0},{title:`Sauf Prestation`,dataKey:`liste_sauf_prestation`,type:`input`,hidden:!0,tab:!0},{title:`Compte Produit`,dataKey:`liste_compte_produit`,type:`input`,hidden:!0,tab:!0},{title:`Sauf Compte Produit`,dataKey:`liste_sauf_compte_produit`,type:`input`,hidden:!0,tab:!0},{title:`GHM`,dataKey:`liste_ghm`,type:`input`,hidden:!0,tab:!0},{title:`Sauf GHM`,dataKey:`liste_sauf_ghm`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostic principal`,dataKey:`liste_diagnostic_principal`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostique relié`,dataKey:`liste_diagnostic_relie`,type:`input`,hidden:!0,tab:!0},{title:`Diagnostique associé`,dataKey:`liste_diagnostic_associe`,type:`input`,hidden:!0,tab:!0},{title:`FINESS`,dataKey:`liste_finess`,type:`input`,hidden:!0,tab:!0}]},GHS:{tableName:`t_ghs`,title:`Interrogation GHS`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1}]},ENC:{tableName:`t_calcul_encours`,title:`Paramètres de calculs d'encours`,ongletTable:!0,refUniquement:!1,execute:{label:`Relancer la valorisation`,action:`execute`},fields:[...xm,{title:`Complément`,dataKey:`complement`,type:`input`,editVisible:!1}],addSearchFields:[`prestation`,`service`,`service`,`nom`,`séjour`],infoSup:{label:`Prochain en-cours`},onglets:{1:{label:`Paramètres généraux`,component:`common`,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`input`},{title:`Description`,dataKey:`description`,type:`input`,editable:!1}]},2:{label:`Paramètres prestations`,component:`common`,fields:[{title:`Prestation`,dataKey:`prestation`,type:`input`,editable:!1},{title:`Type valorisation`,dataKey:`description`,type:`input`,editVisible:!1},{title:`Type valorisation`,dataKey:`type_valorisation`,type:`select`,allowClear:!0,selectOptionsKey:`PRC_type_valorisation_non_facture_provider`,hidden:!0}]},3:{label:`Moyenne et PU calculés`,component:`common`,fields:[{title:`Service`,dataKey:`service`,type:`input`,editable:!1},{title:`Prestation`,dataKey:`prestation`,type:`input`,editable:!1},{title:`Rubrique`,dataKey:`rubrique`,type:`input`,editable:!1},{title:`Coefficient calculé`,dataKey:`coefficient_calcule`,type:`input`,editable:!1},{title:`Coefficient forcé`,dataKey:`coefficient_force`,type:`input`,editVisible:!1},{title:`Coefficient forcé`,dataKey:`coefficient_is_force`,type:`checkbox`,hidden:!0},{title:`Valeur`,dataKey:`coefficient_force`,type:`input`,dependsOn:`coefficient_is_force`,disabledWhen:!1,hidden:!0},{title:`Prix unitaire calculé`,dataKey:`prix_unitaire_calcule`,type:`input`,editable:!1},{title:`Prix unitaire forcé`,dataKey:`prix_unitaire_force`,type:`input`,editVisible:!1},{title:`Prix unitaire forcé`,dataKey:`prix_unitaire_is_force`,type:`checkbox`,hidden:!0},{title:`Valeur`,dataKey:`prix_unitaire_force`,type:`input`,dependsOn:`prix_unitaire_is_force`,disabledWhen:!1,hidden:!0}]},4:{label:`Valorisation GHS (non groupés)`,component:`common`,fields:[{title:`Séjour`,dataKey:`sejour`,type:`input`,editable:!1},{title:`Nom`,dataKey:`nom`,type:`input`,editable:!1},{title:`Facture`,dataKey:`facture`,type:`input`,editable:!1},{title:`Service`,dataKey:`service`,type:`input`,editable:!1},{title:`Prestation`,dataKey:`prestation`,type:`input`,editable:!1},{title:`Rubrique`,dataKey:`rubrique`,type:`input`,editable:!1},{title:`Tarif calculé`,dataKey:`prix_unitaire_calcule`,type:`input`,editable:!1},{title:`Tarif forcé`,dataKey:`prix_unitaire_force`,type:`input`,editVisible:!1},{title:`Tarif forcé`,dataKey:`prix_unitaire_is_force`,type:`checkbox`,hidden:!0},{title:`Valeur`,dataKey:`prix_unitaire_force`,type:`input`,dependsOn:`prix_unitaire_is_force`,disabledWhen:!1,hidden:!0}]},5:{label:`Valorisations prestations`,component:`common`,fields:[{title:`Séjour`,dataKey:`sejour`,type:`input`,editable:!1},{title:`Nom`,dataKey:`nom`,type:`input`,editable:!1},{title:`Facture`,dataKey:`facture`,type:`input`,editable:!1},{title:`Service`,dataKey:`service`,type:`input`,editable:!1},{title:`Prestation`,dataKey:`prestation`,type:`input`,editable:!1},{title:`Rubrique`,dataKey:`rubrique`,type:`input`,editable:!1},{title:`Coefficient calculé`,dataKey:`coefficient_calcule`,type:`input`,editable:!1},{title:`Tarif calculé`,dataKey:`prix_unitaire_calcule`,type:`input`,editable:!1},{title:`Tarif forcé`,dataKey:`prix_unitaire_force`,type:`input`,editVisible:!1},{title:`Tarif forcé`,dataKey:`prix_unitaire_is_force`,type:`checkbox`,hidden:!0},{title:`Valeur`,dataKey:`prix_unitaire_force`,type:`input`,dependsOn:`prix_unitaire_is_force`,disabledWhen:!1,hidden:!0},{title:`Ignoré`,dataKey:`ignorer`,type:`checkbox`}]},8:{label:`Factures ignorées`,component:`common`,fields:[{title:`Séjour`,dataKey:`sejour`,type:`input`,editable:!1},{title:`Nom`,dataKey:`nom`,type:`input`,editable:!1},{title:`Facture`,dataKey:`facture`,type:`input`,editable:!1},{title:`Tarif calculé`,dataKey:`prix_unitaire_calcule`,type:`input`,editable:!1},{title:`Ignoré`,dataKey:`ignorer`,type:`checkbox`}]}}},PRH:{tableName:`t_prestations_h`,title:`Gestion Prestations Honoraire`,component:`common`,refUniquement:!1,fields:[...xm,{title:`Complément`,dataKey:`complement`,type:`input`,editVisible:!1}]},CCR:{tableName:`t_ccam_regroupements`,title:`Interrogation Regroupements CCAM`,component:`common`,refUniquement:!1,fields:[...xm.map(e=>({...e,editable:!1}))],excludeFields:[`code_original`]},DTG:{tableName:`t_service_rubrique_dotation`,title:`Gestion Dotation globale`,component:`common`,refUniquement:!1,fields:[{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Année`,dataKey:`annee`,type:`input`,editable:!1},{title:`Dotation`,dataKey:`dotation`,type:`input`,editable:!1},{title:`Service`,dataKey:`service`,type:`input`,editable:!1},{title:`Rubrique`,dataKey:`rubrique`,type:`input`,editable:!1},{title:`Vers rubrique`,dataKey:`versrubrique`,type:`input`,editable:!1}]},ACT:{tableName:`t_actes`,title:`Interrogation Actes`,component:`common`,fields:[{title:`Code`,dataKey:`code`,width:100,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Regroupement`,dataKey:`regroupement_1`,width:100,type:`input`,editable:!1},{title:`Regroupement`,dataKey:`regroupement_4`,width:100,type:`input`,editable:!1}],excludeFields:[`texte_court`,`code_original`]},TTP:{tableName:`t_types_tiers_payant`,title:`Gestion Types Tiers Payant`,component:`common`,refUniquement:!1,fields:[{title:`Code`,dataKey:`code`,width:100,editable:!1,type:`input`},{title:`Texte`,dataKey:`texte`,type:`input`},{title:`Texte court`,dataKey:`texte_court`,type:`input`}]},TPY:{tableName:`t_tiers_payant`,title:`Gestion Tiers Payant`,component:`common`,refUniquement:!1,saveWithoutCalc:!0,fields:[...xm,{title:`Régime`,dataKey:`grand_regime`,type:`input`,editVisible:!1},{title:`Régime`,dataKey:`grand_regime_id`,type:`select`,selectOptionsKey:`TPY`,hidden:!0},{title:`Type`,dataKey:`type_tiers_payant`,type:`input`,editable:!1}]},EXC:{tableName:`t_expert_controle`,title:`Gestion Controles Expert`,component:`onglet`,addButton:!0,copyButton:!0,sqlButton:!0,editable:!1,execute:{label:`Éxécuter les règles`,action:`execute_rules`},preferences:{label:`Préférences`},tabs:[{key:`definition`,label:`Définition`},{key:`description`,label:`Description`},{key:`regle-1`,label:`Règle 1`},{key:`regle-2`,label:`Règle 2`},{key:`regle-3`,label:`Règle 3`}],fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!0},{title:`Contrôle CTI`,dataKey:`is_cti`,type:`checkbox`,width:80,hidden:!0},{tab:`definition`,title:`Texte`,dataKey:`texte`,type:`input`},{title:`État`,dataKey:`is_active_texte`,editVisible:!1,width:80},{title:`Complément`,dataKey:`complement`,editVisible:!1,width:120},{title:`Gravité`,dataKey:`gravite_texte`,editVisible:!1,width:80},{title:`Contrôle activé`,dataKey:`is_active`,type:`checkbox`,tab:`definition`,hidden:!0},{title:`Dernière exécution`,dataKey:`last_execution_timestamp`,editVisible:!1},{title:`Nombre références`,dataKey:`nbref`,editVisible:!1},{tab:`definition`,title:`Texte affiché`,dataKey:`texte_court`,type:`input`,hidden:!0},{tab:`definition`,title:`Dossier ciblés`,dataKey:`etat_cible`,type:`select`,selectOptionsKey:`EXC_cible_provider`,hidden:!0},{tab:`definition`,title:`Prestataires`,dataKey:`prestataire_id`,type:`select`,selectOptionsKey:`PRESTATAIRE`,hidden:!0},{tab:`definition`,title:`Gravité`,dataKey:`gravite`,type:`select`,selectOptionsKey:`EXC_gravite_provider`,detail:`Contrôle spécifique à un prestataire`,hidden:!0},{tab:`definition`,title:`Alerte`,dataKey:`is_alert`,type:`checkbox`,hidden:!0},{tab:`definition`,title:`Masqué`,dataKey:`is_hide`,type:`checkbox`,hidden:!0},{tab:`regle-1`,title:`Données`,dataKey:`table1`,type:`select`,selectOptionsKey:`EXC_table_provider`,hidden:!0},{tab:`regle-1`,title:`Sélection`,dataKey:`sqlcmd_where1`,type:`textArea`,hidden:!0},{tab:`regle-1`,title:`Justificatif`,dataKey:`sqlcmd_justificatif1`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Données`,dataKey:`table2`,type:`select`,selectOptionsKey:`EXC_table_provider`,hidden:!0},{tab:`regle-2`,title:`Sélection`,dataKey:`sqlcmd_where2`,type:`textArea`,hidden:!0},{tab:`regle-2`,title:`Justificatif`,dataKey:`sqlcmd_justificatif2`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Données`,dataKey:`table3`,type:`select`,selectOptionsKey:`EXC_table_provider`,hidden:!0},{tab:`regle-3`,title:`Sélection`,dataKey:`sqlcmd_where3`,type:`textArea`,hidden:!0},{tab:`regle-3`,title:`Justificatif`,dataKey:`sqlcmd_justificatif3`,type:`textArea`,hidden:!0},{tab:`description`,title:`Description`,dataKey:`description`,type:`text-editor`,hidden:!0}]},DIV:{tableName:`t_divers`,title:`Gestion Paramètres divers`,component:`common`,refUniquement:!1,saveWithoutCalc:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`input`,width:80},{title:`Description`,dataKey:`description`,type:`input`,editable:!1},{title:`Info Module`,dataKey:`show_info_module`,type:`checkbox`,width:80}]},KIW:{tableName:`t_kiwee_params`,title:`Gestion Paramètres Kiwee`,component:`common`,refUniquement:!1,saveWithoutCalc:!0,fields:[{title:`Code`,dataKey:`code`,type:`input`,editable:!1},{title:`Texte`,dataKey:`texte`,type:`input`,editable:!1},{title:`Valeur`,dataKey:`valeur`,type:`checkbox`,width:80},{title:`Description`,dataKey:`description`,type:`input`,editable:!1}]}},"CTI_PMSI_TablesManager.swf":mm,"CTI_RH_TablesManager.swf":vm,"CTI_PMSISSR_TablesManager.swf":gm,"CTI_COMPTA_TablesManager.swf":lm,"CTI_SSAE_TablesManager.swf":bm,"CTI_DPI_TablesManager.swf":dm},Cm=`Privé`,wm=`Public`,Tm=({softCode:e,item:t})=>{let n=Cf(),[r,i]=(0,Y.useState)(void 0),[a,o]=(0,Y.useState)(``),[s,c]=(0,Y.useState)(null),l=gf(t?.swf,e,r?.tableName,a,r??{}),u=vf(s),d=l.data?.records??[],f=l.data?.divers??{},p=l.data?.addRecord??{},m=l.data?.refRecords??[],h=u.data??[],[g,_]=(0,Y.useState)(null),[v,y]=(0,Y.useState)(!1),[b,x]=(0,Y.useState)(!1),[S,C]=(0,Y.useState)(null),[w,T]=(0,Y.useState)(!1),[E,D]=(0,Y.useState)(null),[ee,O]=(0,Y.useState)(``),[te,k]=(0,Y.useState)(null),[ne,re]=(0,Y.useState)(!1),[ie,A]=(0,Y.useState)(!1),[ae,oe]=(0,Y.useState)(!1),[j,se]=(0,Y.useState)(Cm),[ce,le]=(0,Y.useState)((0,Qd.default)()),[ue,de]=(0,Y.useState)(!1),[fe,pe]=(0,Y.useState)(`100%`),me=(0,Y.useRef)(),he=(0,Y.useMemo)(()=>({swf:t?.swf,softCode:e,tableName:r?.tableName,choice:a,tableParams:r??{}}),[t?.swf,e,r,a]),ge=(0,Y.useMemo)(()=>{if(!r)return[];let e;if(r.tableName===`t_rubriques`)if(f&&Object.values(f).length)e=r.fields[f.rubriques.valeur];else return[];else e=r.fields;return e?.length?e[0].title===`oid`?e:[{title:`oid`,dataKey:`oid`,type:`input`,hidden:!0,editVisible:!1},...e]:e??[]},[r,f]),M=(0,Y.useMemo)(()=>{if(!ge?.length||!r)return[];switch(r.tableName){case`t_rubriques`:return I(ge).map(e=>{let t;return[`Code`,`Texte`].includes(e.title)&&(t=xt.FrozenDirection.LEFT),e.title===`Texte`?{...e,frozen:t,justifyContent:`center`,width:200}:{...e,frozen:t,width:100,justifyContent:`center`}});default:return I(ge)}},[ge,r]),_e=(0,Y.useMemo)(()=>{if(!d.length||!r?.ongletTable||!ge?.length)return null;let e={};return d.forEach(t=>{e[t.type_parametre]={type_ligne:t.type_ligne,type_parametre:t.type_parametre}}),e},[d,r,ge]),ve=(0,Y.useMemo)(()=>!d.length||!r||!ge?.length||r.selectButton&&(!a.length||a===`-1`)?[]:Pe(d,ge,te),[d,r,ge,a,w,ee,ne,ie,te,j,ce]);(0,Y.useEffect)(()=>{if(t){pe(`100%`),y(!1),oe(!1),C(t.swf),o(``),de(!1);let n=t.swfData;e===`iCTI_ssae`&&(n=n.split(`-`)[0]),[`BUC_activite`,`BUI_activite`,`BUR_activite`].includes(n)&&(n=n.split(`_`)[0]),D(n),i(void 0)}},[t,e]),(0,Y.useEffect)(()=>{r&&(_(null),O(``),re(!1),A(!1),de(r.selectButton))},[r,a]),(0,Y.useEffect)(()=>{if(E&&S){let t=F(S);if(t){let n={...t[E]};n&&(n.extraFields===!0&&(n.fields=n.fields.concat(Df(E,e))),n.excludeFields&&n.excludeFields.forEach(e=>{n.fields=n.fields.filter(t=>t.dataKey!==e)}),n.sqlChoices&&c(n.sqlChoices),i(n))}else i(null)}},[e,E,S]),(0,Y.useEffect)(()=>{me.current&&typeof fe==`string`&&pe(me.current.offsetHeight)},[me,fe]);let ye=()=>{pe(`100%`),y(e=>!e),_(null)},be=e=>{_(d.find(t=>t.key===e)),y(!0),pe(`40%`),oe(!1)},xe=e=>{re(e)},Ce=e=>{A(e)},we=()=>{l.refetch()},Te=()=>{let e={};Object.keys(p).length?e={...p}:(ge.forEach(t=>{let n;switch(t.type){case`input`:n=t.default??``;break;case`select`:n=t.default??`0`;break;case`checkbox`:n=!1;break;default:break}e[t.dataKey]=n}),e.oid=`-1`),_(e),y(!0),pe(`40%`)},Ee=e=>{T(e)},De=e=>{O(e.target.value)},Oe=e=>{let t=h.find(t=>t.oid===e);o(t.code===`code`?``:t.code),r.tableName===`t_etude_5`&&o(t.oid)},ke=()=>{Ht(d,r)},Ae=()=>{n.mutate({swf:t.swf,tableName:r.tableName,softCode:t.softCode,oids:null,execute:r?.execute?.action??`execute`})},je=e=>{x(e)},P=e=>{pe(fe+e.height)},Me=(e,t)=>{le(e)},Ne=e=>{se(e===Cm?Cm:wm)};function F(e){return Sm[e.substring(2)]}function I(e){let t=e.map(e=>{if(e.isSC&&(!e.children||e.children.length!==2)){let t=e.dataKey?e.dataKey:e.key;e.children||=[],e.children.push({title:`S`,dataKey:t.replace(`p_`,`s_`),key:t.replace(`p_`,`s_`),dataIndex:t.replace(`p_`,`s_`),type:`input`,resizable:!1,parentKey:t,width:60,align:`center`,sorter:(e,n)=>e[t.replace(`p_`,`s_`)]-n[t.replace(`p_`,`s_`)]}),e.children.push({title:`C`,dataKey:t.replace(`p_`,`c_`),key:t.replace(`p_`,`c_`),dataIndex:t.replace(`p_`,`c_`),type:`input`,resizable:!1,parentKey:t,width:60,align:`center`,sorter:(e,n)=>e[t.replace(`p_`,`c_`)]-n[t.replace(`p_`,`c_`)]})}return e});return t=t.map(e=>({width:250,resizable:!0,key:e.dataKey?e.dataKey:e.key,dataIndex:e.dataKey,dataGetter:({columns:t,column:n,columnIndex:r,rowData:i,rowIndex:a})=>n.type===`checkbox`?(0,$.jsx)(kf.default,{disabled:!0,checked:typeof i[e.dataKey]==`boolean`?i[e.dataKey]:i[e.dataKey]===`1`}):n.type===`date`&&(0,Qd.default)(i[e.dataKey]).isValid()?(0,Qd.default)(i[e.dataKey]).format(`DD/MM/YYYY`):i[e.dataKey],...e})),t.filter(e=>e.hidden!==!0)}function Pe(e,t,n=null){let i=[...e];(w||ne||ie||te)&&(i=i.filter(e=>!(w&&(e.nbref===`+0`||e.nbref===`0`)||ne&&e.doublon!==`1`||ie&&e.nbsej===`0`&&e.nbact===`0`||te&&e[r.selectFilterField]!==n)));let a=[`code`,`texte`];if(r.addSearchFields&&(a=[...a,...r.addSearchFields]),i=wt(i,ee,a),r.selectTarif&&r.datePicker&&i.length>0){let e=ce.hour(0).minute(0).second(0).millisecond(0),t=j===`Public`?`pp`:`pr`;i.forEach(n=>{let r=Ie(e,n,t);n.borne_basse=n[`bb${t}${r}`],n.borne_haute=n[`bh${t}${r}`],n.dms_nationale=n[`dm${t}${r}`],n.tarif_ghs=n[`tg${t}${r}`],n.forfait_exb=n[`fb${t}${r}`],n.tarif_exb=n[`tb${t}${r}`],n.tarif_exh=n[`tx${t}${r}`]})}return i}let Fe=M,L=({cells:e,columns:t,headerIndex:n})=>{if(n===1)return e;let r=[],i=0;return t.forEach((n,a)=>{i+=n.width;let o=t[a+1];if(a===t.length-1||o.parentKey!==n.parentKey){let t=Fe.find(e=>e.key===n.parentKey);r.push((0,$.jsx)(`div`,{className:`group-cell`,style:{...e[a].props.style,width:i},children:(0,$.jsx)(`div`,{style:{padding:`12px`,textAlign:`center`},children:t?t.title:``})},`header-group-cell-${n.key}-${a}`)),i=0}}),r};function Ie(e,t,n){let r=`9`;for(let i=1;i<=9;i++)Date.parse(e.toString())>=Date.parse(t[`dd${n}${i}`])&&Date.parse(e.toString())<=Date.parse(t[`df${n}${i}`])&&(r=i.toString());return r}let Le=()=>{switch(r.tableName){case`t_rubriques`:let e=[];return M.forEach((t,n)=>{t.children?e=e=[...e,...t.children.map(e=>({...e,parentKey:t.key}))]:e.push(t)}),(0,$.jsx)(Gt,{fixed:!1,columns:e,data:ve,rowHeight:25,className:`rub-table`,loading:l.isFetching,selectedRow:g,onRowSelect:be,headerClassName:`rub-header`,headerHeight:[50,40],headerRenderer:L});default:return(0,$.jsx)(Gt,{columns:M,data:ve,loading:l.isFetching,selectedRow:g,onRowSelect:be,choice:a,selectButtonBool:ue})}};function Re(){return _e?Object.values(_e).length?(0,$.jsx)(`div`,{className:`content-tabs`,children:(0,$.jsx)(zt,{items:Object.values(_e).map((e,t)=>ze(e,t))})}):(0,$.jsx)(mt,{}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Bt,{className:`tables-table`,axis:`x`,handleComponent:{bottom:(0,$.jsx)(`div`,{className:`resize-handle`,style:{marginBottom:8},children:(0,$.jsx)(`span`,{children:`…`})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:`100%`,height:fe},onResizeStop:P,children:(0,$.jsx)(`div`,{ref:me,style:{height:`100%`},children:Le()})}),(0,$.jsx)(`div`,{className:`tables-editor`,style:{display:v||ae?`flex`:`none`},children:r.tableName===`t_expert_controle`&&!r.module?(0,$.jsx)(om,{tableParams:r,record:g,handleShowEditor:ye,swf:t.swf,showRefs:ae,fields:ge}):(0,$.jsx)(rm,{tableParams:r,record:g,handleShowEditor:ye,swf:t.swf,fields:ge,choice:a})})]})}let ze=(e,n)=>{let i=r.onglets[parseInt(e.type_parametre)];if(i){let a=ve.filter(t=>t.type_parametre===e.type_parametre),o=I(i.fields),s={...r,...i};return{label:(0,$.jsx)(`span`,{children:r.onglets[parseInt(e.type_parametre)].label}),key:n,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`tables-table`,children:(0,$.jsx)(Gt,{columns:o,data:a,loading:l.isFetching,selectedRow:g,onRowSelect:be})}),(0,$.jsx)(`div`,{className:`tables-editor`,style:{display:v?`flex`:`none`},children:(0,$.jsx)(rm,{tableParams:s,record:g,handleShowEditor:ye,swf:t.swf,fields:ge})})]})}}},Be=d.find(e=>e.code===`ENCOURSNEXT`);return r===void 0?(0,$.jsx)(mt,{}):r===null?(0,$.jsx)(St,{icon:(0,$.jsx)(Yt,{}),title:`Désolé ces tables ne sont pas encore disponibles (${S}) !`}):M.length&&r?(0,$.jsxs)(Af.Provider,{value:he,children:[(0,$.jsx)(Se,{children:(0,$.jsx)(`title`,{children:`iCTI | Gestion des tables`})}),(0,$.jsxs)(`div`,{className:`component-header`,children:[(0,$.jsx)(`div`,{className:`header-title`,children:r.title}),(0,$.jsxs)(`div`,{className:`header-actions`,children:[r.preferences&&(0,$.jsx)(R,{icon:(0,$.jsx)(Yd,{}),onClick:()=>je(!0),children:r.preferences.label}),m.length>0&&(0,$.jsx)(R,{icon:(0,$.jsx)(Yd,{}),onClick:()=>oe(!ae),children:`Importer depuis l'environnement de référence`}),r.execute&&(0,$.jsx)(R,{icon:(0,$.jsx)(Ct,{}),onClick:Ae,disabled:!!g||n.isPending,loading:n.isPending,children:r.execute.label}),r.infoSup&&Be&&(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(Rt,{icon:(0,$.jsx)(kd,{}),style:{marginLeft:8},children:[r.infoSup.label,` : `,Be.valeur]})}),(0,$.jsx)(Tt,{title:`Actualiser`,children:(0,$.jsx)(R,{type:`link`,onClick:we,children:(0,$.jsx)(ft,{})})}),(0,$.jsx)(Tt,{title:`Export excel`,children:(0,$.jsx)(R,{type:`link`,onClick:ke,children:(0,$.jsx)(At,{})})}),r.addButton&&(0,$.jsx)(R,{type:`primary`,icon:(0,$.jsx)(ut,{}),onClick:Te,children:`Ajouter`})]})]}),(0,$.jsx)(`div`,{className:`tables-search`,children:(0,$.jsxs)(`div`,{className:`form-row`,children:[r.selectButton&&(0,$.jsx)(`div`,{className:`form-item`,children:(0,$.jsx)(z,{placeholder:`Pas de sélections`,loading:!h.length,options:h,onChange:e=>Oe(e)})}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Recherche`}),(0,$.jsx)(N,{value:ee,onChange:De})]}),r.refUniquement!==!1&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Référencés uniquement`}),(0,$.jsx)(Ot,{checked:w,onChange:Ee})]}),r.selectFilterField&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:r.selectFilterLabel}),(0,$.jsx)(z,{allowClear:!0,value:te,options:d.map((e,t)=>({key:t,label:e[r.selectFilterField],value:e[r.selectFilterField]})),onChange:e=>k(e)})]}),r.doubleFilter===!0&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Doublons potentiels`}),(0,$.jsx)(Ot,{checked:ne,onChange:xe})]}),r.sejoursActFilter===!0&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Avec séjour ou acte (12 derniers mois)`}),(0,$.jsx)(Ot,{checked:ie,onChange:Ce})]}),r.selectTarif&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Tarif`}),(0,$.jsxs)(z,{defaultValue:`prive`,onChange:Ne,style:{width:`80px`},children:[(0,$.jsx)(z.Option,{value:Cm,children:Cm}),(0,$.jsx)(z.Option,{value:wm,children:wm})]})]}),r.datePicker&&(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`au`}),(0,$.jsx)(Ud,{style:{width:`150px`},value:ce,onChange:Me,format:`DD/MM/YYYY`,picker:`day`,dateRender:e=>(0,$.jsx)(`div`,{className:`ant-picker-cell-inner`,style:{fontSize:`12px`},children:e.date()})})]})]})}),(0,$.jsx)(`div`,{className:`component-content`,children:Re()}),(0,$.jsx)(sm,{showModalPreferences:b,handleShowModalPreferences:je,swf:t.swf,softCode:t.softCode,tableParams:r})]}):(0,$.jsx)(mt,{})};Tm.propTypes={softCode:Q.default.string,item:Q.default.object};export{Tm as default}; \ No newline at end of file diff --git a/assets/UndoOutlined-DAvTbx0c.js b/assets/UndoOutlined-DAvTbx0c.js new file mode 100644 index 0000000..812a773 --- /dev/null +++ b/assets/UndoOutlined-DAvTbx0c.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z`}}]},name:`undo`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/UserManager-DcvxKXrX.css b/assets/UserManager-DcvxKXrX.css new file mode 100644 index 0000000..489c084 --- /dev/null +++ b/assets/UserManager-DcvxKXrX.css @@ -0,0 +1 @@ +.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.annuaire-editor{flex-flow:row;height:100%;display:flex}.annuaire-editor .user-editor-section-title{width:150px}.annuaire-options-30{width:30%}.annuaire-options-100{width:100%}.annuaire-list{flex-flow:row;flex:3;display:flex}.annuaire-list .transfer-table{width:100%}.annuaire-list .transfer-search{flex-flow:row;margin-bottom:8px;display:flex}.inline-chkbox{background-color:#f0f2f5;border-radius:10px;margin:3px}.user-editor-field.favoris-editor{align-items:center;display:flex}.user-editor-field.favoris-editor button{margin-left:8px}.inline-chkbox .ant-form-item{margin-bottom:0}.inline-chkbox ant-form-item-label>label{height:-webkit-fill-available}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.user-editor-container{flex-flow:column;height:100%;display:flex}.user-editor-form{flex:3;min-height:0}.user-editor-form form.ant-form.ant-form-horizontal{flex-flow:column;display:flex}.user-editor-tab{width:100%;height:100%;overflow-y:scroll}.user-editor-section{width:100%;display:flex}.user-editor-section-title{width:20%;height:100%;padding-top:10px}.user-editor-row-container{flex-flow:wrap;flex-basis:100%;display:flex}.user-editor-field{width:auto;padding-left:10px;padding-right:10px}.user-editor-field .ant-row.ant-form-item{margin:2px}.user-editor-form .ant-tabs.ant-tabs-top{flex:auto;height:100%}.user-editor-inline{flex-direction:row;display:flex}.user-editor-inline .subtitle{flex-flow:row;justify-content:center;align-items:center;margin-bottom:.5em;margin-left:8px;display:flex}.scrollable-tab{overflow-y:scroll}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.users-table{flex:3}.users-editor{background-color:#fff;border-radius:5px;flex-direction:column;min-height:0;margin-top:10px;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.user-editor-header{flex-flow:row;justify-content:flex-end;align-items:center;width:100%;height:50px;display:flex}.user-editor-header button{margin-left:10px}.user-editor-form{width:100%;height:calc(100% - 50px);display:flex}.user-editor-form .form-row,.user-editor-form .ant-form.ant-form-horizontal{width:100%}.user-editor-form .ant-tabs-tabpane.ant-tabs-tabpane-active.user-editor-tab{flex-flow:column;display:flex}.user-editor-form .ant-tabs-content.ant-tabs-content-top{height:100%}.user-editor-form .ant-transfer-list{height:100%;overflow-y:scroll}.user-editor-form .ant-transfer{flex:3;min-height:0;display:flex}.user-editor-form .tab-transfer-list,.user-editor-form .tab-transfer-list .ant-form-item-control-input{height:100%}.user-editor-form .ant-transfer.ant-transfer-customize-list{width:100%;min-width:0;height:100%;min-height:0}.user-editor-form .ant-tabs.ant-tabs-top{width:100%} diff --git a/assets/UserManager-DpuJwxM4.js b/assets/UserManager-DpuJwxM4.js new file mode 100644 index 0000000..ee443b6 --- /dev/null +++ b/assets/UserManager-DpuJwxM4.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{$ as r,$n as i,A as a,Gn as o,In as s,J as c,Kn as l,Ln as u,Qn as d,Wn as f,Xn as p,Yn as m,Zn as h,an as g,ar as _,bn as v,cn as y,cr as b,er as x,ir as S,jt as C,n as w,or as T,r as E,rr as D,sr as O,yn as k,z as A}from"./axios-BDcMaxoP.js";import{t as j}from"./index.esm-D4i6w2dF.js";import{t as M}from"./input-C55Uc3oN.js";import{n as N,t as P}from"./typeof-C6uZ2mkP.js";import{i as F,r as I}from"./asyncToGenerator-BFc9W-7V.js";import{l as L,t as R,u as z}from"./button-xukQsL9n.js";import{a as ee,i as te,r as ne,t as B}from"./select-dQ-XiIfN.js";import{a as V,n as re,r as ie,t as H}from"./SearchOutlined-ouHQf-Hv.js";import{t as ae}from"./pagination-Bbd-H34x.js";import{t as oe}from"./RightOutlined-C8iXxAwf.js";import{n as se,t as ce}from"./row-CaO7bYqu.js";import{t as le}from"./transButton-D8TVp4Ts.js";import{t as ue}from"./CopyOutlined-DYcCtig4.js";import{t as de}from"./queryOptions-Cg9orY1Y.js";import{t as fe}from"./LeftSquareOutlined-DRQwPml3.js";import{t as pe}from"./RightSquareOutlined-C-Af7NvS.js";import{t as me}from"./UndoOutlined-DAvTbx0c.js";import{F as he,I as ge,Q as _e,St as ve,Z as ye,ht as be,k as xe,mt as U,ot as W,s as G,st as Se}from"./index-C1mw6CgG.js";import{i as Ce,r as we,t as Te}from"./userUtils-Cx2i_4wQ.js";import{a as Ee,n as De,o as Oe,s as ke,t as Ae}from"./users.mutations-CKeA39Fu.js";b(),F();var K=e(f()),q=e(t()),je=q.memo(function(e){var t=e.renderedText,n=e.renderedEl,r=e.item,i=e.checked,a=e.disabled,o=e.prefixCls,s=e.onClick,c=e.onRemove,l=e.showRemove,u=(0,K.default)(I(I(I({},`${o}-content-item`,!0),`${o}-content-item-disabled`,a||r.disabled),`${o}-content-item-checked`,i)),d;return(typeof t==`string`||typeof t==`number`)&&(d=String(t)),q.createElement(g,{componentName:`Transfer`,defaultLocale:y.Transfer},function(e){var t={className:u,title:d},f=q.createElement(`span`,{className:`${o}-content-item-text`},n);return l?q.createElement(`li`,O({},t),f,q.createElement(le,{disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":e.remove,onClick:function(){c?.(r)}},q.createElement(ye,null))):(t.onClick=a||r.disabled?void 0:function(){return s(r)},q.createElement(`li`,O({},t),q.createElement(U,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),f))})});F(),T(),S(),x(),d(),p(),l(),b(),N();function Me(e,t,n){return t=m(t),i(e,h()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}var Ne=a(`handleFilter`,`handleClear`,`checkedKeys`);function J(e){if(!e)return null;var t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return P(e)===`object`?O(O({},t),e):t}var Pe=function(e){o(t,e);function t(){var e;return _(this,t),e=Me(this,t,arguments),e.state={current:1},e.onItemSelect=function(t){var n=e.props,r=n.onItemSelect,i=n.selectedKeys.includes(t.key);r(t.key,!i)},e.onItemRemove=function(t){var n=e.props.onItemRemove;n?.([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,n=e.props,r=n.pagination,i=n.filteredRenderItems,a=J(r),o=i;return a&&(o=i.slice((t-1)*a.pageSize,t*a.pageSize)),o},e}return D(t,[{key:`render`,value:function(){var e=this,t=this.state.current,n=this.props,r=n.prefixCls,i=n.onScroll,a=n.filteredRenderItems,o=n.selectedKeys,s=n.disabled,c=n.showRemove,l=n.pagination,u=J(l),d=null;return u&&(d=q.createElement(ae,{simple:u.simple,showSizeChanger:u.showSizeChanger,showLessItems:u.showLessItems,size:`small`,disabled:s,className:`${r}-pagination`,total:a.length,pageSize:u.pageSize,current:t,onChange:this.onPageChange})),q.createElement(q.Fragment,null,q.createElement(`ul`,{className:(0,K.default)(`${r}-content`,I({},`${r}-content-show-remove`,c)),onScroll:i},this.getItems().map(function(t){var n=t.renderedEl,i=t.renderedText,a=t.item,l=a.disabled,u=o.includes(a.key);return q.createElement(je,{disabled:s||l,key:a.key,item:a,renderedText:i,renderedEl:n,checked:u,prefixCls:r,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:c})})),d)}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.filteredRenderItems,r=e.pagination,i=t.current,a=J(r);if(a){var o=Math.ceil(n.length/a.pageSize);if(i>o)return{current:o}}return null}}]),t}(q.Component);function Fe(e){var t=e.placeholder,n=t===void 0?``:t,r=e.value,i=e.prefixCls,a=e.disabled,o=e.onChange,s=e.handleClear,c=q.useCallback(function(e){o?.(e),e.target.value===``&&s?.()},[o]);return q.createElement(M,{placeholder:n,className:i,value:r,onChange:c,disabled:a,allowClear:!0,prefix:q.createElement(H,null)})}F(),b(),T(),S(),x(),d(),p(),l(),L();function Ie(e,t,n){return t=m(t),i(e,h()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}var Le=function(){return null};function Re(e){return!!(e&&!A(e)&&Object.prototype.toString.call(e)===`[object Object]`)}function Y(e){return e.filter(function(e){return!e.disabled}).map(function(e){return e.key})}var ze=function(e){o(t,e);function t(e){var n;return _(this,t),n=Ie(this,t,[e]),n.defaultListBodyRef=q.createRef(),n.handleFilter=function(e){var t=n.props.handleFilter,r=e.target.value;n.setState({filterValue:r}),t(e)},n.handleClear=function(){var e=n.props.handleClear;n.setState({filterValue:``}),e()},n.matchFilter=function(e,t){var r=n.state.filterValue,i=n.props.filterOption;return i?i(r,t):e.includes(r)},n.renderListBody=function(e,t){var r=e?e(t):null,i=!!r;return i||(r=q.createElement(Pe,O({ref:n.defaultListBodyRef},t))),{customize:i,bodyContent:r}},n.renderItem=function(e){var t=n.props.render,r=(t===void 0?Le:t)(e),i=Re(r);return{renderedText:i?r.value:r,renderedEl:i?r.label:r,item:e}},n.getSelectAllLabel=function(e,t){var r=n.props,i=r.itemsUnit,a=r.itemUnit,o=r.selectAllLabel;if(o)return typeof o==`function`?o({selectedCount:e,totalCount:t}):o;var s=t>1?i:a;return q.createElement(q.Fragment,null,(e>0?`${e}/`:``)+t,` `,s)},n.state={filterValue:``},n}return D(t,[{key:`componentWillUnmount`,value:function(){clearTimeout(this.triggerScrollTimer)}},{key:`getCheckStatus`,value:function(e){var t=this.props.checkedKeys;return t.length===0?`none`:e.every(function(e){return t.includes(e.key)||!!e.disabled})?`all`:`part`}},{key:`getFilteredItems`,value:function(e,t){var n=this,r=[],i=[];return e.forEach(function(e){var a=n.renderItem(e),o=a.renderedText;if(t&&!n.matchFilter(o,e))return null;r.push(e),i.push(a)}),{filteredItems:r,filteredRenderItems:i}}},{key:`getListBody`,value:function(e,t,n,r,i,a,o,s,c,l){var u=this,d=c?q.createElement(`div`,{className:`${e}-body-search-wrapper`},q.createElement(Fe,{prefixCls:`${e}-search`,onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:n,disabled:l})):null,f=this.renderListBody(s,O(O({},z(this.props,Ne)),{filteredItems:r,filteredRenderItems:a,selectedKeys:o})),p=f.bodyContent,m=f.customize?q.createElement(`div`,{className:`${e}-body-customize-wrapper`},p):r.length?p:q.createElement(`div`,{className:`${e}-body-not-found`},function(){var e=u.props.direction===`left`?0:1;return Array.isArray(i)?i[e]:i}());return q.createElement(`div`,{className:(0,K.default)(c?`${e}-body ${e}-body-with-search`:`${e}-body`)},d,m)}},{key:`getCheckBox`,value:function(e){var t=e.filteredItems,n=e.onItemSelectAll,r=e.disabled,i=e.prefixCls,a=this.getCheckStatus(t),o=a===`all`;return q.createElement(U,{disabled:r,checked:o,indeterminate:a===`part`,className:`${i}-checkbox`,onChange:function(){n(t.filter(function(e){return!e.disabled}).map(function(e){return e.key}),!o)}})}},{key:`render`,value:function(){var e=this,t=this.state.filterValue,n=this.props,r=n.prefixCls,i=n.dataSource,a=i===void 0?[]:i,o=n.titleText,s=o===void 0?``:o,c=n.checkedKeys,l=n.disabled,u=n.footer,d=n.showSearch,f=d===void 0?!1:d,p=n.style,m=n.searchPlaceholder,h=n.notFoundContent,g=n.selectAll,_=n.selectCurrent,v=n.selectInvert,y=n.removeAll,b=n.removeCurrent,x=n.renderList,S=n.onItemSelectAll,C=n.onItemRemove,w=n.showSelectAll,T=w===void 0?!0:w,E=n.showRemove,D=n.pagination,O=n.direction,k=u&&(u.length<2?u(this.props):u(this.props,{direction:O})),A=(0,K.default)(r,I(I({},`${r}-with-pagination`,!!D),`${r}-with-footer`,!!k)),j=this.getFilteredItems(a,t),M=j.filteredItems,N=j.filteredRenderItems,P=this.getListBody(r,m,t,M,h,N,c,x,f,l),F=k?q.createElement(`div`,{className:`${r}-footer`},k):null,L=!E&&!D&&this.getCheckBox({filteredItems:M,onItemSelectAll:S,disabled:l,prefixCls:r}),R=E?[D?{key:`removeCurrent`,onClick:function(){var t=Y((e.defaultListBodyRef.current?.getItems()||[]).map(function(e){return e.item}));C?.(t)},label:b}:null,{key:`removeAll`,onClick:function(){C?.(Y(M))},label:y}].filter(function(e){return e}):[{key:`selectAll`,onClick:function(){var e=Y(M);S(e,e.length!==c.length)},label:g},D?{key:`selectCurrent`,onClick:function(){S(Y((e.defaultListBodyRef.current?.getItems()||[]).map(function(e){return e.item})),!0)},label:_}:null,{key:`selectInvert`,onClick:function(){var t=Y((e.defaultListBodyRef.current?.getItems()||[]).map(function(e){return e.item})),n=new Set(c),r=new Set(n);t.forEach(function(e){n.has(e)?r.delete(e):r.add(e)}),S?.(Array.from(r),`replace`)},label:v}],z=q.createElement(Se,{className:`${r}-header-dropdown`,menu:{items:R},disabled:l},q.createElement(ne,null));return q.createElement(`div`,{className:A,style:p},q.createElement(`div`,{className:`${r}-header`},T?q.createElement(q.Fragment,null,L,z):null,q.createElement(`span`,{className:`${r}-header-selected`},this.getSelectAllLabel(c.length,M.length)),q.createElement(`span`,{className:`${r}-header-title`},s)),P,F)}}]),t}(q.PureComponent),Be=function(e){var t=e.disabled,n=e.moveToLeft,r=e.moveToRight,i=e.leftArrowText,a=i===void 0?``:i,o=e.rightArrowText,s=o===void 0?``:o,c=e.leftActive,l=e.rightActive,u=e.className,d=e.style,f=e.direction,p=e.oneWay;return q.createElement(`div`,{className:u,style:d},q.createElement(R,{type:`primary`,size:`small`,disabled:t||!l,onClick:r,icon:f===`rtl`?q.createElement(ve,null):q.createElement(oe,null)},s),!p&&q.createElement(R,{type:`primary`,size:`small`,disabled:t||!c,onClick:n,icon:f===`rtl`?q.createElement(oe,null):q.createElement(ve,null)},a))};F(),v(),b(),T(),S(),x(),d(),p(),l();function Ve(e,t,n){return t=m(t),i(e,h()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}var X=function(e){o(t,e);function t(e){var n;_(this,t),n=Ve(this,t,[e]),n.separatedDataSource=null,n.setStateKeys=function(e,t){e===`left`?n.setState(function(e){var n=e.sourceSelectedKeys;return{sourceSelectedKeys:typeof t==`function`?t(n||[]):t}}):n.setState(function(e){var n=e.targetSelectedKeys;return{targetSelectedKeys:typeof t==`function`?t(n||[]):t}})},n.getLocale=function(e,t){var r=n.props.locale,i=r===void 0?{}:r;return O(O(O({},e),{notFoundContent:t(`Transfer`)}),i)},n.moveTo=function(e){var t=n.props,r=t.targetKeys,i=r===void 0?[]:r,a=t.dataSource,o=a===void 0?[]:a,s=t.onChange,c=n.state,l=c.sourceSelectedKeys,u=c.targetSelectedKeys,d=(e===`right`?l:u).filter(function(e){return!o.some(function(t){return!!(e===t.key&&t.disabled)})}),f=e===`right`?d.concat(i):i.filter(function(e){return!d.includes(e)}),p=e===`right`?`left`:`right`;n.setStateKeys(p,[]),n.handleSelectChange(p,[]),s?.(f,e,d)},n.moveToLeft=function(){return n.moveTo(`left`)},n.moveToRight=function(){return n.moveTo(`right`)},n.onItemSelectAll=function(e,t,r){n.setStateKeys(e,function(i){var a=[];return a=r===`replace`?t:r?Array.from(new Set([].concat(k(i),k(t)))):i.filter(function(e){return!t.includes(e)}),n.handleSelectChange(e,a),a})},n.onLeftItemSelectAll=function(e,t){return n.onItemSelectAll(`left`,e,t)},n.onRightItemSelectAll=function(e,t){return n.onItemSelectAll(`right`,e,t)},n.handleFilter=function(e,t){var r=n.props.onSearch,i=t.target.value;r?.(e,i)},n.handleLeftFilter=function(e){return n.handleFilter(`left`,e)},n.handleRightFilter=function(e){return n.handleFilter(`right`,e)},n.handleClear=function(e){var t=n.props.onSearch;t?.(e,``)},n.handleLeftClear=function(){return n.handleClear(`left`)},n.handleRightClear=function(){return n.handleClear(`right`)},n.onItemSelect=function(e,t,r){var i=n.state,a=i.sourceSelectedKeys,o=i.targetSelectedKeys,s=k(e===`left`?a:o),c=s.indexOf(t);c>-1&&s.splice(c,1),r&&s.push(t),n.handleSelectChange(e,s),n.props.selectedKeys||n.setStateKeys(e,s)},n.onLeftItemSelect=function(e,t){return n.onItemSelect(`left`,e,t)},n.onRightItemSelect=function(e,t){return n.onItemSelect(`right`,e,t)},n.onRightItemRemove=function(e){var t=n.props,r=t.targetKeys,i=r===void 0?[]:r,a=t.onChange;n.setStateKeys(`right`,[]),a?.(i.filter(function(t){return!e.includes(t)}),`left`,k(e))},n.handleScroll=function(e,t){var r=n.props.onScroll;r?.(e,t)},n.handleLeftScroll=function(e){return n.handleScroll(`left`,e)},n.handleRightScroll=function(e){return n.handleScroll(`right`,e)},n.handleListStyle=function(e,t){return typeof e==`function`?e({direction:t}):e};var r=e.selectedKeys,i=r===void 0?[]:r,a=e.targetKeys,o=a===void 0?[]:a;return n.state={sourceSelectedKeys:i.filter(function(e){return!o.includes(e)}),targetSelectedKeys:i.filter(function(e){return o.includes(e)})},n}return D(t,[{key:`getTitles`,value:function(e){return this.props.titles??e.titles??[]}},{key:`handleSelectChange`,value:function(e,t){var n=this.state,r=n.sourceSelectedKeys,i=n.targetSelectedKeys,a=this.props.onSelectChange;a&&(e===`left`?a(t,i):a(r,t))}},{key:`separateDataSource`,value:function(){var e=this.props,t=e.dataSource,n=t===void 0?[]:t,r=e.rowKey,i=e.targetKeys,a=i===void 0?[]:i,o=[],s=Array(a.length);return n.forEach(function(e){r&&(e=O(O({},e),{key:r(e)}));var t=a.indexOf(e.key);t===-1?o.push(e):s[t]=e}),{leftDataSource:o,rightDataSource:s}}},{key:`render`,value:function(){var e=this;return q.createElement(g,{componentName:`Transfer`,defaultLocale:y.Transfer},function(t){return q.createElement(c,null,function(n){var r=n.getPrefixCls,i=n.renderEmpty,a=n.direction;return q.createElement(V.Consumer,null,function(n){var o=n.hasFeedback,s=n.status,c=e.props,l=c.prefixCls,u=c.className,d=c.disabled,f=c.operations,p=f===void 0?[]:f,m=c.showSearch,h=m===void 0?!1:m,g=c.footer,_=c.style,v=c.listStyle,y=v===void 0?{}:v,b=c.operationStyle,x=c.filterOption,S=c.render,C=c.children,w=c.showSelectAll,T=c.oneWay,E=c.pagination,D=c.status,k=r(`transfer`,l),A=e.getLocale(t,i||ee),j=e.state,M=j.sourceSelectedKeys,N=j.targetSelectedKeys,P=re(s,D),F=!C&&E,L=e.separateDataSource(),R=L.leftDataSource,z=L.rightDataSource,te=N.length>0,ne=M.length>0,B=(0,K.default)(k,I(I(I({},`${k}-disabled`,d),`${k}-customize-list`,!!C),`${k}-rtl`,a===`rtl`),ie(k,P,o),u),V=e.getTitles(A),H=e.props.selectAllLabels||[];return q.createElement(`div`,{className:B,style:_},q.createElement(ze,O({prefixCls:`${k}-list`,titleText:V?.[0],dataSource:R,filterOption:x,style:e.handleListStyle(y,`left`),checkedKeys:M,handleFilter:e.handleLeftFilter,handleClear:e.handleLeftClear,onItemSelect:e.onLeftItemSelect,onItemSelectAll:e.onLeftItemSelectAll,render:S,showSearch:h,renderList:C,footer:g,onScroll:e.handleLeftScroll,disabled:d,direction:a===`rtl`?`right`:`left`,showSelectAll:w,selectAllLabel:H[0],pagination:F},A)),q.createElement(Be,{className:`${k}-operation`,rightActive:ne,rightArrowText:p[0],moveToRight:e.moveToRight,leftActive:te,leftArrowText:p[1],moveToLeft:e.moveToLeft,style:b,disabled:d,direction:a,oneWay:T}),q.createElement(ze,O({prefixCls:`${k}-list`,titleText:V?.[1],dataSource:z,filterOption:x,style:e.handleListStyle(y,`right`),checkedKeys:N,handleFilter:e.handleRightFilter,handleClear:e.handleRightClear,onItemSelect:e.onRightItemSelect,onItemSelectAll:e.onRightItemSelectAll,onItemRemove:e.onRightItemRemove,render:S,showSearch:h,renderList:C,footer:g,onScroll:e.handleRightScroll,disabled:d,direction:a===`rtl`?`left`:`right`,showSelectAll:w,selectAllLabel:H[1],showRemove:T,pagination:F},A)))})})})}}],[{key:`getDerivedStateFromProps`,value:function(e){var t=e.selectedKeys,n=e.targetKeys;if(e.pagination,e.children,t){var r=n||[];return{sourceSelectedKeys:t.filter(function(e){return!r.includes(e)}),targetSelectedKeys:t.filter(function(e){return r.includes(e)})}}return null}}]),t}(q.Component);X.List=ze,X.Operation=Be,X.Search=Fe;var He={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z`}}]},name:`user-add`,theme:`outlined`};u();var Ue=q.forwardRef(function(e,t){return q.createElement(C,s(s({},e),{},{ref:t,icon:He}))}),Z=e(w()),We=()=>de({queryKey:Ee.list(),queryFn:ke}),Ge=()=>de({queryKey:Ee.modules(),queryFn:Oe}),Ke=()=>E(We()),Q=()=>E(Ge()),$=n(),qe=({modUser:e,handleUpdateAuths:t})=>{let[n,r]=(0,q.useState)([]),[i,a]=(0,q.useState)([]),[o,s]=(0,q.useState)([]),[c,l]=(0,q.useState)([]),[u,d]=(0,q.useState)(``),f=Q().data?.envs??[];(0,q.useEffect)(()=>{d(``),e.auths&&a(e.auths.filter(e=>e.type===`ictidir`))},[e]),(0,q.useEffect)(()=>{e.auths&&r(v(f))},[u,f,e]);let p=r=>{r===`right`?t(``,e.auths.filter(e=>c.includes(e.key)),`left`):(t(``,[...new Set(o)].map((t,r)=>{let i=n.find(e=>e.key===t),a=e.auths.length+r;return{type:`ictidir`,name:i.ICTIDIR,granted:`full`,key:a}}),`add`),s([]),l([]))},m=e=>{d(e.target.value)},h=e=>{let t=[...o];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),s(t.map(e=>Number(e)))},g=e=>{let t=[...c];Array.isArray(e)?t=t.concat(e):t.includes(e)?t=t.filter(t=>t!==e):t.push(e),l([...new Set(t.map(e=>Number(e)))])},_=()=>{o.length?s([]):s(n.map(e=>e.key))};function v(t){let n=e.auths.filter(e=>e.type===`ictidir`).map(e=>e.name);return t.filter(e=>!n.includes(e.ICTIDIR)&&e.ICTIDIR.toLowerCase().includes(u.toLowerCase()))}return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{className:`annuaire-editor`,children:[(0,$.jsxs)(`div`,{className:f.length>0?`annuaire-options-30`:`annuaire-options-100`,children:[(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Tout synchroniser`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container`,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`default_ctiusrdir_synchronize_all`,valuePropName:`checked`,children:(0,$.jsx)(U,{})})},`default_ctiusrdir_synchronize_all`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Nom et définition`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`default_ctiusrdir_synchronize_name`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:e.default_ctiusrdir_synchronize_all})})},`default_ctiusrdir_synchronize_name`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Role et spécialité`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`default_ctiusrdir_synchronize_role`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:e.default_ctiusrdir_synchronize_all})})},`default_ctiusrdir_synchronize_role`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Mot de passe`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`default_ctiusrdir_synchronize_password`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:e.default_ctiusrdir_synchronize_all})})},`ctiusrdir_synchronize_password`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Autorisations`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`default_ctiusrdir_synchronize_aut`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:e.default_ctiusrdir_synchronize_all})})},`ctiusrdir_synchronize_aut`)})]})]}),f.length>0&&(0,$.jsxs)(`div`,{className:`annuaire-list`,children:[(0,$.jsx)(`div`,{className:`transfer-table`,children:(0,$.jsx)(G,{columns:[{title:`Environnements CTI autorisés`,dataKey:`name`,key:`name`,width:200}],data:i,selectedRows:c,onRowSelect:g,shiftMulti:!0})}),(0,$.jsxs)(`div`,{className:`transfer-actions`,children:[(0,$.jsx)(R,{type:`link`,onClick:()=>p(`left`),children:(0,$.jsx)(fe,{})}),(0,$.jsx)(R,{type:`link`,onClick:()=>p(`right`),children:(0,$.jsx)(pe,{})})]}),(0,$.jsxs)(`div`,{className:`transfer-table`,children:[(0,$.jsxs)(`div`,{className:`transfer-search`,children:[(0,$.jsx)(R,{type:`primary`,onClick:_,children:`Tout (De)Selectionner`}),(0,$.jsx)(M,{value:u,placeholder:`Rechercher`,onChange:m,style:{marginLeft:`8px`}})]}),(0,$.jsx)(G,{columns:[{title:`Environnements CTI disponibles`,dataKey:`ICTIDIR`,key:`ICTIDIR`,width:200}],data:n,selectedRows:o,shiftMulti:!0,onRowSelect:h})]})]})]})})};qe.propTypes={modUser:Z.default.object,handleUpdateAuths:Z.default.func};var Je=[],Ye=({modUser:e})=>{let t=ge(),n=Q(),r=n.data?.modules??Je,i=n.data?.ctiusrdir??{},a=t.data?.session,o=Ke().data??[],[s,c]=(0,q.useState)(!1),l=r.reduce((e,t)=>[...e,...t.views],[]).filter(e=>e.essential===`true`).map((e,t)=>({label:e.label,value:e.name,key:`${e.name}-${t}`}));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Mot de passe`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`password`,children:(0,$.jsx)(M.Password,{onChange:()=>c(!0),visibilityToggle:s?!0:(0,$.jsx)(`span`,{}),disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_password)})})},`password`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Rôles`})}),(0,$.jsxs)(`div`,{className:`user-editor-row-container `,children:[a.ISROLECTI&&(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`CTI`,name:`isCTI`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},`isCTI`),(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`Administrateur`,name:`isadmin`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},`isadmin`),(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`Médecin`,name:`ismedecin`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},`ismedecin`)]})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Vue d'accueil`})}),(0,$.jsx)(`div`,{className:`user-editor-row-container `,children:(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`homeview`,children:(0,$.jsx)(B,{disabled:e.ismedecin!==!0,style:{width:300},options:l,showSearch:!0})})},`homeview`)})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Utilisateur référent`})}),(0,$.jsxs)(`div`,{className:`user-editor-row-container `,children:[(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`referentUser`,children:(0,$.jsx)(B,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:(e=>[{key:`-1`,label:`Aucun`,value:``},...e.filter(e=>!e.disabled&&e.referentUser===``).map(({key:e,name:t,profil:n})=>({key:e,label:t,value:n}))])(o),showSearch:!0})})},`referentUser`),(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`Avec tableaux de bord et essentiels`,name:`referentUser_withDashboard`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},`referentUser_withDashboard`),(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`Avec favoris`,name:`referentUser_withFavorite`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},`referentUser_withFavorite`)]})]}),(0,$.jsxs)(`div`,{className:`user-editor-section`,children:[(0,$.jsx)(`div`,{className:`user-editor-section-title`,children:(0,$.jsx)(`strong`,{children:`Niveau de sécurité`})}),(0,$.jsxs)(`div`,{className:`user-editor-row-container `,children:[(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{name:`security_level_id`,children:(0,$.jsx)(B,{disabled:i?.URL!==``&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:[{label:`Niveau de sécurité établissement`,value:`-1`},{label:`Pas de sécurité d'accès aux données`,value:`0`}],showSearch:!0})})},`security_level_id`),(0,$.jsx)(`div`,{className:`user-editor-field`,children:(0,$.jsx)(W.Item,{label:`Masquer les noms`,name:`hidenames`,valuePropName:`checked`,children:(0,$.jsx)(U,{})})},`hidenames`)]})]})]})};Ye.propTypes={modUser:Z.default.object};var Xe=({modUser:e,moduleIndex:t,moduleKey:n,moduleLabel:r,handleUserHasChanged:i,handleUpdateAuths:a,handleChangeAllData:o})=>{let s=Q().data?.modules??[],[c,l]=(0,q.useState)(!1),[u,d]=(0,q.useState)([]),[f,p]=(0,q.useState)([]),[m,h]=(0,q.useState)(),[g,_]=(0,q.useState)([]),[v,y]=(0,q.useState)(!1),[b,x]=(0,q.useState)(!1),[S,C]=(0,q.useState)(``);(0,q.useEffect)(()=>{if(s&&s[t]&&Object.keys(e)&&e.auths){d(s[t].views);let r=!1,i=n;n===`Outils`&&(i=`tools`);let a=e.auths.find(e=>e.module===`iCTI_${i.toLowerCase()}`);if(a&&a.granted===`full`&&(r=!0),l(r),n===`RH`){let t=e.auths.find(e=>e.name===`iCTI_${n.toLowerCase()}`);t&&(x(t.dataProfileGranted===`full`),C(t.dataProfile===`NONE`?``:t.dataProfile))}if(n===`ECO`){let t=e.auths.find(e=>e.name===`iCTI_${n.toLowerCase()}`);t&&(x(t.dataGranted===`full`),C(t.dataRule1??``))}}},[s,e]),(0,q.useEffect)(()=>{p(v?u.filter(e=>e.label.toLowerCase().includes(`favori`)):u)},[u,v]),(0,q.useEffect)(()=>{if(e&&e.auths){let t=e.auths.filter(e=>e.type===`view`&&e.module&&e.module.toLowerCase()===n.toLowerCase()).map(e=>e.name);h(f.filter(e=>t.includes(e.name)).map(e=>e.key))}},[e,f]);let w=(e,t)=>{_([...e,...t])},T=(e,t,r)=>{a(`iCTI_`+n.toLowerCase(),k(r),t),i(!0)},E=(e,t)=>t.label.toLowerCase().indexOf(e.toLowerCase())!==-1||t.file.toLowerCase().indexOf(e.toLowerCase())!==-1,D=()=>{y(!v)},O=e=>{l(e.target.checked),i(!0,{[e.target.id]:e.target.checked??e.target.value})};function k(e){let t=[];return e.forEach(e=>{if(e!==void 0){let r=f.find(t=>t.key===e);t.push({type:`view`,name:r.name,module:n,granted:`full`})}}),t}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`user-editor-section`,children:(0,$.jsxs)(`div`,{className:`user-editor-row-container`,children:[(0,$.jsx)(`div`,{className:`user-editor-field inline-chkbox`,children:(0,$.jsx)(W.Item,{valuePropName:`checked`,label:`Autoriser à TOUTES les vues ?`,children:(0,$.jsx)(U,{id:`${n}_full`,onChange:O,checked:c,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})}),(n===`RH`||n===`ECO`)&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`user-editor-field inline-chkbox favoris-editor`,children:[(0,$.jsx)(`span`,{children:`Autoriser à TOUTES les données:`}),(0,$.jsx)(U,{onChange:e=>o(e.target.checked,``,n),checked:b,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})]}),(0,$.jsxs)(`div`,{className:`user-editor-field inline-chkbox favoris-editor`,style:{display:b?`none`:`flex`},children:[(0,$.jsx)(`div`,{style:{width:`180px`},children:`Profil de données:`}),(0,$.jsx)(M,{onChange:e=>o(!1,e.target.value,n),value:S})]})]}),(0,$.jsx)(`div`,{className:`user-editor-field inline-chkbox`,children:(0,$.jsx)(W.Item,{label:`Autoriser aux favoris diffusés ?`,name:`FAVORIS_PARTAGES_${n.toUpperCase()}`,valuePropName:`checked`,children:(0,$.jsx)(U,{disabled:c||e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})},`FAVORIS_PARTAGES_${n.toUpperCase()}`),(0,$.jsxs)(`div`,{className:`user-editor-field inline-chkbox favoris-editor`,children:[(0,$.jsx)(`span`,{children:`Favoris`}),(0,$.jsx)(_e,{disabled:c,onChange:D,checked:v})]},`${n}_show_favorites`)]})}),(0,$.jsx)(`br`,{}),(0,$.jsx)(X,{showSearch:!0,dataSource:f,titles:[`Vues disponibles ${r}`,`Vues autorisées ${r}`],targetKeys:m,selectedKeys:g,onChange:T,onSelectChange:w,render:e=>({label:(0,$.jsxs)(`span`,{className:`custom-item`,children:[e.label,` - `,(0,$.jsx)(`small`,{children:e.name})]})}),disabled:c,filterOption:E,listStyle:{width:`50%`},style:{width:`100%, height:'100%`}})]})};Xe.propTypes={modUser:Z.default.object,moduleIndex:Z.default.number,moduleKey:Z.default.string,moduleLabel:Z.default.string,handleUserHasChanged:Z.default.func,handleUpdateAuths:Z.default.func,handleChangeAllData:Z.default.func};var Ze=[],Qe=({user:e,setUser:t,setAddUser:n,addUser:i,handleCloseEditor:a,handleUnsetUser:o})=>{let s=Q(),c=De(),l=Ae(),u=s.data?.modules??Ze,d=c.isPending||l.isPending,[f,p]=(0,q.useState)(!1),[m,h]=(0,q.useState)({}),[g]=W.useForm();(0,q.useEffect)(()=>{let t=w(e);g.setFieldsValue(t),h({...t})},[e,u,i]);let _=()=>{let t=g.getFieldsValue(),n=Ce({...w(e),...t}),r=i?`*NEW`:e.profil;l.mutate({userXml:n,file:r},{onSuccess:()=>{p(!1),o()}})},v=(e,t)=>{let n=Object.keys(e)[0],r=Object.values(e)[0];if(n.slice(-4)===`full`){let e=n.split(`_`)[0],t={...m,auths:m.auths.map(e=>({...e}))};e===`Outils`&&(e=`tools`);let i=t.auths.find(t=>t.type===`module`&&(t.module===`iCTI_${e.toLowerCase()}`||t.name===`iCTI_${e.toLowerCase()}`));i?i.granted=r===!0?`full`:`none`:(i={type:`module`,module:`iCTI_${e.toLowerCase()}`,name:`iCTI_${e.toLowerCase()}`,granted:r===!0?`full`:`none`},t.auths=[...m.auths,i]),h(t)}else h({...m,[n]:r});p(!0)},y=()=>{p(!1),g.setFieldsValue(w(e))},b=(e,t)=>{p(e),t&&v(t)},x=(e,t,n)=>{p(!0);let r={...m},i=m.auths.map(e=>({...e}));t.forEach(e=>{if(n===`add`)i.push(e);else if(n===`left`){let t=i.findIndex(t=>{let n={...t};return delete n.key,e.type===t.type&&e.name===t.name&&e.module===t.module});t!==-1&&i.splice(t,1)}else m?.referentUser&&(e.refProfile=`*user`),i.push(e)});let a=i.find(t=>t.type===`module`&&t.module===e);a&&(a.granted=i.filter(t=>t.type===`view`&&t.module.toLowerCase()===e.replace(`iCTI_`,``).toLowerCase()).length?`partial`:`none`),r.auths=i,h(r)},S=()=>{let t=g.getFieldsValue(),n=Ce({...m,...t}),r=i?`*NEW`:e.profil;c.mutate({userXml:n,file:r},{onSuccess:()=>p(!1)})},C=(e,t,n)=>{p(!0);let r=m.auths.map(e=>({...e})),i=r.find(e=>e.name===`iCTI_${n.toLowerCase()}`);i&&(n===`RH`?(i.dataProfileGranted=e?`full`:`partial`,i.dataProfile=t):n===`ECO`&&(i.dataGranted=e?`full`:`partial`,i.dataRule1=t)),h({...m,auths:r})};function w(t){let n={...e};for(let e in n)n[e]===`true`&&(n[e]=!0),n[e]===`false`&&(n[e]=!1);return n}let T=()=>{let e=[{label:`Définition`,key:`0`,className:`user-editor-tab scrollable-tab`,children:(0,$.jsx)(Ye,{addUser:i,modUser:m})},{label:`Annuaire`,key:`1`,className:`user-editor-tab scrollable-tab`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`h2`,{children:`Options de synchronisation`}),(0,$.jsx)(qe,{modUser:m,handleUpdateAuths:x})]})}];return u.length&&u.forEach(t=>{t.code!==`presentation`&&e.push({label:t.label,key:String(t.key+3),className:`user-editor-tab scrollable-tab`,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`user-editor-inline`,children:[(0,$.jsx)(`h2`,{children:(0,$.jsx)(`strong`,{children:`Droits spécifiques à l'utilisateur`})}),(0,$.jsx)(`div`,{className:`subtitle`,children:`(En plus des droits de utilisateur référent)`})]}),(0,$.jsx)(Xe,{modUser:m,moduleIndex:t.key,moduleKey:t.name,moduleLabel:t.label,handleUpdateAuths:x,handleUserHasChanged:b,handleChangeAllData:C})]})})}),e},E=e=>{t(Te(e)),n(!0)};return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{className:`user-editor-container`,children:[(0,$.jsxs)(`div`,{className:`user-editor-header`,children:[(0,$.jsx)(R,{icon:(0,$.jsx)(ye,{}),disabled:i||d,loading:l.isPending,onClick:_,children:`Supprimer`}),(0,$.jsx)(R,{onClick:()=>E(e),icon:(0,$.jsx)(ue,{}),disabled:i||d,children:`Copier`}),(0,$.jsx)(R,{disabled:!f||d,icon:(0,$.jsx)(me,{}),onClick:y,children:`Annuler`}),(0,$.jsx)(R,{disabled:!f||d,loading:c.isPending,icon:(0,$.jsx)(te,{}),onClick:S,children:`Valider`}),(0,$.jsx)(he,{title:`Fermer`,children:(0,$.jsx)(R,{type:`link`,onClick:a,children:(0,$.jsx)(r,{})})})]}),(0,$.jsx)(`div`,{className:`user-editor-form`,children:(0,$.jsxs)(W,{form:g,onValuesChange:v,children:[(0,$.jsxs)(`div`,{className:`form-row`,style:{display:`flex`,flexDirection:`row`},children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Code: `}),(0,$.jsx)(W.Item,{name:`profil`,children:(0,$.jsx)(M,{disabled:!i})})]}),(0,$.jsxs)(`div`,{className:`form-item`,children:[(0,$.jsx)(`span`,{children:`Nom: `}),(0,$.jsx)(W.Item,{name:`name`,children:(0,$.jsx)(M,{})})]})]}),(0,$.jsxs)(`div`,{style:{display:`contents`},children:[(0,$.jsx)(`strong`,{children:`Désactivé`}),(0,$.jsx)(W.Item,{name:`disabled`,valuePropName:`checked`,children:(0,$.jsx)(U,{})})]})]}),u&&(0,$.jsx)(`div`,{className:`form-row`,style:{display:`flex`,flex:`3`,minHeight:`1px`},children:(0,$.jsx)(be,{items:T()})})]})})]})})};Qe.propTypes={user:Z.default.object,handleCloseEditor:Z.default.func};var $e=[{title:`Code`,dataKey:`profil`},{title:`Nom`,dataKey:`name`},{title:`Roles`,dataKey:`role`},{title:`Désactivé`,dataKey:`disabled`,dataGetter:({rowData:e})=>e.disabled===!0?`oui`:`non`},{title:`Référent`,dataKey:`referentUser`},{title:`Modules`,dataKey:`granted_modules`},{title:`Dernière connexion`,dataKey:`lastConnexion_datetime`}],et=()=>{let[e,t]=(0,q.useState)(null),[n,r]=(0,q.useState)(!1),[i,a]=(0,q.useState)(!1),[o,s]=(0,q.useState)(``),c=Ke(),l=c.data??[],[u,d]=(0,q.useState)(`100%`);(0,q.useEffect)(()=>{e?t(l.find(t=>t.key===e.key)):(t(null),r(!1))},[l]);let f=()=>{c.refetch()},p=()=>{t(we()),a(!0),r(!0),d(`40%`)},m=()=>{t(null),d(`100%`)},h=e=>{a(!1),t(l.find(t=>t.key===e)),r(!0),d(`40%`)},g=()=>{t(null),r(!1),d(`100%`)},_=e=>{d(u+e.height)},v=$e.map(e=>({...e,width:200,resizable:!0,key:e.dataKey}));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(j,{children:(0,$.jsx)(`title`,{children:`iCTI | Gestion des utilisateurs`})}),(0,$.jsxs)(`div`,{className:`component-header`,children:[(0,$.jsx)(`div`,{className:`header-title`,children:`Gestion des utilisateurs`}),(0,$.jsxs)(`div`,{className:`header-actions`,children:[(0,$.jsx)(he,{title:`Actualiser`,children:(0,$.jsx)(R,{type:`link`,onClick:f,children:(0,$.jsx)(me,{})})}),(0,$.jsx)(R,{type:`primary`,icon:(0,$.jsx)(Ue,{}),onClick:p,children:`Ajouter un utilisateur`})]})]}),(0,$.jsx)(`div`,{className:`settings-filters`,children:(0,$.jsx)(ce,{children:(0,$.jsx)(se,{span:24,children:(0,$.jsx)(`div`,{className:`settings-search`,children:(0,$.jsx)(M,{placeholder:`Recherche`,value:o,onChange:e=>s(e.target.value),style:{width:300,marginLeft:20}})})})})}),(0,$.jsxs)(`div`,{className:`component-content`,children:[(0,$.jsx)(xe,{className:`tables-table`,axis:`x`,handleComponent:{bottom:(0,$.jsx)(`div`,{className:`resize-handle`,style:{marginBottom:8},children:(0,$.jsx)(`span`,{children:`…`})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:`100%`,height:u},onResizeStop:_,children:(0,$.jsx)(G,{columns:v,data:l.filter(e=>e.file&&e.file.toLowerCase().includes(o.toLowerCase())),selectedRow:e,onRowSelect:h,loading:c.isFetching})}),(0,$.jsx)(`div`,{className:`users-editor`,style:{display:n?`flex`:`none`},children:(0,$.jsx)(Qe,{user:e,setUser:t,setAddUser:a,addUser:i,handleCloseEditor:g,handleUnsetUser:m})})]})]})};et.propTypes={};export{et as default}; \ No newline at end of file diff --git a/assets/ValoImports-9nK6dK5V.css b/assets/ValoImports-9nK6dK5V.css new file mode 100644 index 0000000..c8c5275 --- /dev/null +++ b/assets/ValoImports-9nK6dK5V.css @@ -0,0 +1 @@ +.valo-imports{height:100%} diff --git a/assets/ValoImports-DehVfKO5.js b/assets/ValoImports-DehVfKO5.js new file mode 100644 index 0000000..26121d3 --- /dev/null +++ b/assets/ValoImports-DehVfKO5.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{fr as r,o as i,r as a}from"./axios-BDcMaxoP.js";import{t as o}from"./index.esm-D4i6w2dF.js";import{t as s}from"./ctiAxios-HKh7HuhO.js";import{t as c}from"./button-xukQsL9n.js";import{t as l}from"./useMutation-BtpRmKbj.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{t as d}from"./UndoOutlined-DAvTbx0c.js";import{F as f,L as p,s as m}from"./index-C1mw6CgG.js";var h=`modules/pmsissr/php/PMSI_getImportsValo.php`;async function g(){let e=new FormData;return e.append(`action`,`get`),(await s({method:`post`,url:r()+h,data:e,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function _({file:e}){let t=new FormData;return t.append(`action`,`post`),t.append(`fileName`,e.name),t.append(`fileData`,e),(await s({method:`post`,url:r()+h,data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}var v={all:[`valoSsrImports`],list:()=>[...v.all,`list`]},y=()=>u({queryKey:v.list(),queryFn:g}),b=()=>a(y());function x(){let e=i();return l({mutationFn:_,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async()=>{await e.invalidateQueries({queryKey:v.list()})}})}var S=e(t()),C=n(),w=()=>{let e=b(),t=x(),n=e.data?.imports??[],r=(0,S.useRef)(),i=()=>{e.refetch()},a=()=>{r.current.click()},s=e=>{let n=e.target.files[0];n&&t.mutate({file:n})},l=[{title:`Import dans CTI`,dataKey:`date`},{title:`Nombre séjour`,dataKey:`nb_sejours`},{title:`Nombre séjour HC`,dataKey:`nb_sejours_hc`},{title:`Nombre séjour HP`,dataKey:`nb_sejours_hp`},{title:`Nombre séjour non valorisé`,dataKey:`nb_sejours_non_valorises`},{title:`Nombre séjour pédiatrique`,dataKey:`nb_sejours_pediatrique_valorises`},{title:`Année de valorisation`,dataKey:`vclass`},{title:`Coefficient Géographique`,dataKey:`coeffgeo`},{title:`Coefficient Spécialisation`,dataKey:`coeffspe`},{title:`Coefficient prudentiel`,dataKey:`coeffprud`},{title:`Coefficient honoraire`,dataKey:`coeffhono`},{title:`Coefficient transition`,dataKey:`coefftrans`},{title:`Fraction DMA`,dataKey:`fracdma`}].map(e=>({width:100,resizable:!0,key:e.dataKey,...e}));return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(o,{children:(0,C.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,C.jsxs)(`div`,{className:`component-header`,children:[(0,C.jsx)(`div`,{className:`header-title`,children:`Imports VALO SSR`}),(0,C.jsxs)(`div`,{className:`header-actions`,children:[(0,C.jsx)(f,{title:`Actualiser`,children:(0,C.jsx)(c,{type:`link`,onClick:i,children:(0,C.jsx)(d,{})})}),(0,C.jsx)(c,{size:`default`,type:`primary`,icon:(0,C.jsx)(p,{}),onClick:a,loading:t.isPending,children:`Importer un fichier`}),(0,C.jsx)(`input`,{type:`file`,ref:r,onChange:s,style:{display:`none`}})]})]}),(0,C.jsx)(`div`,{className:`component-content`,children:(0,C.jsx)(`div`,{className:`valo-imports`,children:(0,C.jsx)(m,{rowKey:`oid`,columns:l,loading:e.isFetching,data:n})})})]})};export{w as default}; \ No newline at end of file diff --git a/assets/WarningFilled-UnKqlBYo.js b/assets/WarningFilled-UnKqlBYo.js new file mode 100644 index 0000000..56495b0 --- /dev/null +++ b/assets/WarningFilled-UnKqlBYo.js @@ -0,0 +1 @@ +import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`},s=a.forwardRef(function(e,t){return a.createElement(i,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; \ No newline at end of file diff --git a/assets/_assignValue-BF_ln0J3.js b/assets/_assignValue-BF_ln0J3.js new file mode 100644 index 0000000..4e1c4d8 --- /dev/null +++ b/assets/_assignValue-BF_ln0J3.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-jRWAZmH_.js";import{C as t,T as n}from"./_getTag-Hpw31fpV.js";var r=e(((e,n)=>{var r=t();n.exports=function(){try{var e=r(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),i=e(((e,t)=>{var n=r();function i(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=i})),a=e(((e,t)=>{var r=i(),a=n(),o=Object.prototype.hasOwnProperty;function s(e,t,n){var i=e[t];(!(o.call(e,t)&&a(i,n))||n===void 0&&!(t in e))&&r(e,t,n)}t.exports=s}));export{i as n,r,a as t}; \ No newline at end of file diff --git a/assets/_baseIsEqual-udCdU_aU.js b/assets/_baseIsEqual-udCdU_aU.js new file mode 100644 index 0000000..39ba3f3 --- /dev/null +++ b/assets/_baseIsEqual-udCdU_aU.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-jRWAZmH_.js";import{Bt as t,It as n,Rt as r}from"./axios-BDcMaxoP.js";import{S as i,T as a,b as o,l as s,m as c,n as l,t as u,x as d}from"./_getTag-Hpw31fpV.js";var f=e(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),p=e(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),m=e(((e,t)=>{var n=i(),r=f(),a=p();function o(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n{function n(e,t){return e.has(t)}t.exports=n})),_=e(((e,t)=>{var n=m(),r=h(),i=g(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),y=e(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),b=e(((e,n)=>{var r=t(),i=o(),s=a(),c=_(),l=v(),u=y(),d=1,f=2,p=`[object Boolean]`,m=`[object Date]`,h=`[object Error]`,g=`[object Map]`,b=`[object Number]`,x=`[object RegExp]`,S=`[object Set]`,C=`[object String]`,w=`[object Symbol]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=r?r.prototype:void 0,O=D?D.valueOf:void 0;function k(e,t,n,r,a,o,_){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new i(e),new i(t)));case p:case m:case b:return s(+e,+t);case h:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+``;case g:var v=l;case S:var y=r&d;if(v||=u,e.size!=t.size&&!y)return!1;var D=_.get(e);if(D)return D==t;r|=f,_.set(e,t);var k=c(v(e),v(t),r,a,o,_);return _.delete(e),k;case w:if(O)return O.call(e)==O.call(t)}return!1}n.exports=k})),x=e(((e,t)=>{var n=l(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f{var n=d(),i=_(),a=b(),o=x(),l=u(),f=r(),p=c(),m=s(),h=1,g=`[object Arguments]`,v=`[object Array]`,y=`[object Object]`,S=Object.prototype.hasOwnProperty;function C(e,t,r,s,c,u){var d=f(e),_=f(t),b=d?v:l(e),x=_?v:l(t);b=b==g?y:b,x=x==g?y:x;var C=b==y,w=x==y,T=b==x;if(T&&p(e)){if(!p(t))return!1;d=!0,C=!1}if(T&&!C)return u||=new n,d||m(e)?i(e,t,r,s,c,u):a(e,t,b,r,s,c,u);if(!(r&h)){var E=C&&S.call(e,`__wrapped__`),D=w&&S.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return u||=new n,c(O,k,r,s,u)}}return T?(u||=new n,o(e,t,r,s,c,u)):!1}t.exports=C})),C=e(((e,t)=>{var r=S(),i=n();function a(e,t,n,o,s){return e===t?!0:e==null||t==null||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s)}t.exports=a}));export{C as t}; \ No newline at end of file diff --git a/assets/_baseMap-DDCPwLOI.js b/assets/_baseMap-DDCPwLOI.js new file mode 100644 index 0000000..3540f82 --- /dev/null +++ b/assets/_baseMap-DDCPwLOI.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-jRWAZmH_.js";import{x as t}from"./sanitizeDataUtils-DBUp8Fd9.js";import{i as n}from"./_getTag-Hpw31fpV.js";var r=e(((e,r)=>{var i=t(),a=n();function o(e,t){var n=-1,r=a(e)?Array(e.length):[];return i(e,function(e,i,a){r[++n]=t(e,i,a)}),r}r.exports=o}));export{r as t}; \ No newline at end of file diff --git a/assets/_getTag-Hpw31fpV.js b/assets/_getTag-Hpw31fpV.js new file mode 100644 index 0000000..9b36fe7 --- /dev/null +++ b/assets/_getTag-Hpw31fpV.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-jRWAZmH_.js";import{Ht as t,It as n,Lt as r,Rt as i,Vt as a}from"./axios-BDcMaxoP.js";var o=e(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),s=e(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),c=e(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),l=e(((e,t)=>{var n=c();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),u=e(((e,t)=>{var n=l(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),d=e(((e,t)=>{var n=l();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),f=e(((e,t)=>{var n=l();function r(e){return n(this.__data__,e)>-1}t.exports=r})),p=e(((e,t)=>{var n=l();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),m=e(((e,t)=>{var n=s(),r=u(),i=d(),a=f(),o=p();function c(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=m();function r(){this.__data__=new n,this.size=0}t.exports=r})),g=e(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),_=e(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),v=e(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),y=e(((e,t)=>{var n=r(),i=o(),a=`[object AsyncFunction]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Proxy]`;function u(e){if(!i(e))return!1;var t=n(e);return t==s||t==c||t==a||t==l}t.exports=u})),b=e(((e,t)=>{t.exports=a()[`__core-js_shared__`]})),x=e(((e,t)=>{var n=b(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),S=e(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),C=e(((e,t)=>{var n=y(),r=x(),i=o(),a=S(),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,f=u.hasOwnProperty,p=RegExp(`^`+d.call(f).replace(s,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function m(e){return!i(e)||r(e)?!1:(n(e)?p:c).test(a(e))}t.exports=m})),w=e(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),T=e(((e,t)=>{var n=C(),r=w();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),E=e(((e,t)=>{t.exports=T()(a(),`Map`)})),D=e(((e,t)=>{t.exports=T()(Object,`create`)})),O=e(((e,t)=>{var n=D();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),k=e(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),A=e(((e,t)=>{var n=D(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),j=e(((e,t)=>{var n=D(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),M=e(((e,t)=>{var n=D(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),ee=e(((e,t)=>{var n=O(),r=k(),i=A(),a=j(),o=M();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=ee(),r=m(),i=E();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ne=e(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),N=e(((e,t)=>{var n=ne();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),re=e(((e,t)=>{var n=N();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),ie=e(((e,t)=>{var n=N();function r(e){return n(this,e).get(e)}t.exports=r})),P=e(((e,t)=>{var n=N();function r(e){return n(this,e).has(e)}t.exports=r})),ae=e(((e,t)=>{var n=N();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),F=e(((e,t)=>{var n=te(),r=re(),i=ie(),a=P(),o=ae();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=m(),r=E(),i=F(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length{var n=m(),r=h(),i=g(),a=_(),o=v(),s=oe();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),ce=e(((e,t)=>{t.exports=a().Uint8Array})),I=e(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n{var n=I(),r=i();function a(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=a})),le=e(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{function n(){return[]}t.exports=n})),z=e(((e,t)=>{var n=le(),r=R(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),ue=e(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n{var i=r(),a=n(),o=`[object Arguments]`;function s(e){return a(e)&&i(e)==o}t.exports=s})),B=e(((e,t)=>{var r=de(),i=n(),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable;t.exports=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,`callee`)&&!s.call(e,`callee`)}})),V=e(((e,t)=>{function n(){return!1}t.exports=n})),H=e(((e,t)=>{var n=a(),r=V(),i=typeof e==`object`&&e&&!e.nodeType&&e,o=i&&typeof t==`object`&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||r})),U=e(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),fe=e(((e,t)=>{var i=r(),a=W(),o=n(),s=`[object Arguments]`,c=`[object Array]`,l=`[object Boolean]`,u=`[object Date]`,d=`[object Error]`,f=`[object Function]`,p=`[object Map]`,m=`[object Number]`,h=`[object Object]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object WeakMap]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=`[object Float32Array]`,C=`[object Float64Array]`,w=`[object Int8Array]`,T=`[object Int16Array]`,E=`[object Int32Array]`,D=`[object Uint8Array]`,O=`[object Uint8ClampedArray]`,k=`[object Uint16Array]`,A=`[object Uint32Array]`,j={};j[S]=j[C]=j[w]=j[T]=j[E]=j[D]=j[O]=j[k]=j[A]=!0,j[s]=j[c]=j[b]=j[l]=j[x]=j[u]=j[d]=j[f]=j[p]=j[m]=j[h]=j[g]=j[_]=j[v]=j[y]=!1;function M(e){return o(e)&&a(e.length)&&!!j[i(e)]}t.exports=M})),G=e(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),K=e(((e,n)=>{var r=t(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof n==`object`&&n&&!n.nodeType&&n,o=a&&a.exports===i&&r.process;n.exports=function(){try{return a&&a.require&&a.require(`util`).types||o&&o.binding&&o.binding(`util`)}catch{}}()})),q=e(((e,t)=>{var n=fe(),r=G(),i=K(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),J=e(((e,t)=>{var n=ue(),r=B(),a=i(),o=H(),s=U(),c=q(),l=Object.prototype.hasOwnProperty;function u(e,t){var i=a(e),u=!i&&r(e),d=!i&&!u&&o(e),f=!i&&!u&&!d&&c(e),p=i||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||l.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||s(g,h)))&&m.push(g);return m}t.exports=u})),Y=e(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),X=e(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),pe=e(((e,t)=>{t.exports=X()(Object.keys,Object)})),Z=e(((e,t)=>{var n=Y(),r=pe(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Q=e(((e,t)=>{var n=y(),r=W();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),$=e(((e,t)=>{var n=J(),r=Z(),i=Q();function a(e){return i(e)?n(e):r(e)}t.exports=a})),me=e(((e,t)=>{var n=L(),r=z(),i=$();function a(e){return n(e,i,r)}t.exports=a})),he=e(((e,t)=>{t.exports=T()(a(),`DataView`)})),ge=e(((e,t)=>{t.exports=T()(a(),`Promise`)})),_e=e(((e,t)=>{t.exports=T()(a(),`Set`)})),ve=e(((e,t)=>{t.exports=T()(a(),`WeakMap`)})),ye=e(((e,t)=>{var n=he(),i=E(),a=ge(),o=_e(),s=ve(),c=r(),l=S(),u=`[object Map]`,d=`[object Object]`,f=`[object Promise]`,p=`[object Set]`,m=`[object WeakMap]`,h=`[object DataView]`,g=l(n),_=l(i),v=l(a),y=l(o),b=l(s),x=c;(n&&x(new n(new ArrayBuffer(1)))!=h||i&&x(new i)!=u||a&&x(a.resolve())!=f||o&&x(new o)!=p||s&&x(new s)!=m)&&(x=function(e){var t=c(e),n=t==d?e.constructor:void 0,r=n?l(n):``;if(r)switch(r){case g:return h;case _:return u;case v:return f;case y:return p;case b:return m}return t}),t.exports=x}));export{T as C,o as E,F as S,c as T,R as _,Z as a,ce as b,J as c,G as d,W as f,z as g,B as h,Q as i,q as l,H as m,me as n,X as o,U as p,$ as r,Y as s,ye as t,K as u,L as v,y as w,se as x,I as y}; \ No newline at end of file diff --git a/assets/asyncToGenerator-BFc9W-7V.js b/assets/asyncToGenerator-BFc9W-7V.js new file mode 100644 index 0000000..e95c1ae --- /dev/null +++ b/assets/asyncToGenerator-BFc9W-7V.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./typeof-C6uZ2mkP.js";function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var i=e((()=>{t()}));function a(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}var o=e((()=>{t(),i()}));function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=e((()=>{o()}));function l(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,`next`,e)}function s(e){l(a,r,i,o,s,`throw`,e)}o(void 0)})}}var d=e((()=>{}));export{o as a,c as i,d as n,a as o,s as r,u as t}; \ No newline at end of file diff --git a/assets/axios-BDcMaxoP.js b/assets/axios-BDcMaxoP.js new file mode 100644 index 0000000..d6e6b04 --- /dev/null +++ b/assets/axios-BDcMaxoP.js @@ -0,0 +1,77 @@ +import{n as e,o as t,r as n,t as r}from"./chunk-jRWAZmH_.js";import{n as i,t as a}from"./jsx-runtime-CEixWuwE.js";import{a as o,c as s,i as c,l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./slicedToArray-BjCmY1mt.js";import{n as _,t as v}from"./typeof-C6uZ2mkP.js";import{a as y,i as b,n as x,o as S,r as C,t as w}from"./asyncToGenerator-BFc9W-7V.js";var T=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,O(x);else{var t=n(l);t!==null&&ie(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ie(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,ee=-1;function E(){return!(e.unstable_now()-eee||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ie(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,O(x))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ee=r(((e,t)=>{t.exports=T()})),E=r((e=>{var t=i(),n=ee();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n`u`||window.document===void 0||window.document.createElement===void 0),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,f={},p={};function m(e){return u.call(p,e)?!0:u.call(f,e)?!1:d.test(e)?p[e]=!0:(f[e]=!0,!1)}function h(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function g(e,t,n,r){if(t==null||h(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){v[e]=new _(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];v[t]=new _(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){v[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){v[e]=new _(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){v[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){v[e]=new _(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){v[e]=new _(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){v[e]=new _(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){v[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new _(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(i===null?r||!(2s||i[o]!==a[s]){var c=` +`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(``)&&(c=c.replace(``,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?de(e):``}function me(e){switch(e.tag){case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return``}}function he(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case T:return`Fragment`;case w:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case O:return`Suspense`;case ie:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ne:return(e.displayName||`Context`)+`.Consumer`;case te:return(e._context.displayName||`Context`)+`.Provider`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?he(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}function ge(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return he(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function _e(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function A(e){var t=ve(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function j(e){e._valueTracker||=A(e)}function ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ve(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function be(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function xe(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=_e(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Ce(e,t){t=t.checked,t!=null&&x(e,`checked`,t,!1)}function M(e,t){Ce(e,t);var n=_e(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Te(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Te(e,t.type,_e(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function we(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Te(e,t,n){(t!==`number`||be(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ee=Array.isArray;function De(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i`+t.valueOf().toString()+``,t=Pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ie(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Le={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Le).forEach(function(e){Re.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Le[t]=Le[e]})});function ze(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Le.hasOwnProperty(e)&&Le[e]?(``+t).trim():t+`px`}function Be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=ze(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ve=k({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function He(e,t){if(t){if(Ve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ue(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var We=null;function Ge(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ke=null,qe=null,Je=null;function Ye(e){if(e=Wi(e)){if(typeof Ke!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ki(t),Ke(e.stateNode,e.type,t))}}function Xe(e){qe?Je?Je.push(e):Je=[e]:qe=e}function Ze(){if(qe){var e=qe,t=Je;if(Je=qe=null,Ye(e),t)for(e=0;e>>=0,e===0?32:31-(jt(e)/Mt|0)|0}var Pt=64,Ft=4194304;function It(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=It(a))):r=It(s)}else o=n&~i,o===0?a!==0&&(r=It(a)):r=It(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function Wt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ir),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return nr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!rr&&lr(e,t)?(e=Dn(),En=Tn=wn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fr(n)}}function Lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rr(){for(var e=window,t=be();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=be(e.document)}return t}function zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Br(e){var t=Rr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lr(n.ownerDocument.documentElement,n)){if(r!==null&&zr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ir(n,a);var o=Ir(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==be(r)||(r=Hr,`selectionStart`in r&&zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Pr(Wr,r)||(Wr=r,r=_i(Ur,`onSelect`),0Ji||(e.current=qi[Ji],qi[Ji]=null,Ji--)}function B(e,t){Ji++,qi[Ji]=e.current,e.current=t}var Xi={},Zi=Yi(Xi),Qi=Yi(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ta(e){return e=e.childContextTypes,e!=null}function na(){z(Qi),z(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));B(Zi,t),B(Qi,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ge(e)||`Unknown`,a));return k({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,B(Zi,e),B(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,z(Qi),z(Zi),B(Zi,e)):z(Qi),B(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=I;try{var n=sa;for(I=1;e>=o,i-=o,ba=1<<32-At(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),V&&Sa(r,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),V&&Sa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Sa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Sa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===T&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===T){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===oe&&Va(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=za(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===T?(r=eu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=$l(i.type,i.key,i.props,null,e.mode,o),o.ref=za(e,r,i),o.return=e,e=o)}return s(e);case w:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=ru(i,e.mode,o),r.return=e,e=r}return s(e);case oe:return l=i._init,_(e,r,l(i._payload),o)}if(Ee(i))return h(e,r,i,o);if(le(i))return g(e,r,i,o);Ba(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=nu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ua=Ha(!0),Wa=Ha(!1),Ga=Yi(null),Ka=null,qa=null,Ja=null;function Ya(){Ja=qa=Ka=null}function Xa(e){var t=Ga.current;z(Ga),e._currentValue=t}function Za(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qa(e,t){Ka=e,Ja=qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(zs=!0),e.firstContext=null)}function $a(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(Ka===null)throw Error(r(308));qa=e,Ka.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var eo=null;function to(e){eo===null?eo=[e]:eo.push(e)}function no(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,to(t)):(n.next=i.next,i.next=n),t.interleaved=n,ro(e,r)}function ro(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var io=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ro(e,n)}return i=r.interleaved,i===null?(t.next=t,to(r)):(t.next=i.next,i.next=t),r.interleaved=t,ro(e,n)}function lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}function uo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fo(e,t,n,r){var i=e.updateQueue;io=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=k({},d,f);break a;case 2:io=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Qc|=o,e.lanes=o,e.memoizedState=d}}function po(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{I=n,Do.transition=r}}function fs(){return zo().memoizedState}function ps(e,t,n){var r=_l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e))gs(t,n);else if(n=no(e,t,n,r),n!==null){var i=gl();vl(n,e,r,i),_s(n,t,r)}}function ms(e,t,n){var r=_l(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Nr(s,o)){var c=t.interleaved;c===null?(i.next=i,to(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=no(e,t,i,r),n!==null&&(i=gl(),vl(n,e,r,i),_s(n,t,r))}}function hs(e){var t=e.alternate;return e===U||t!==null&&t===U}function gs(e,t){jo=Ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _s(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}var vs={readContext:$a,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useInsertionEffect:Po,useLayoutEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useMutableSource:Po,useSyncExternalStore:Po,useId:Po,unstable_isNewReconciler:!1},ys={readContext:$a,useCallback:function(e,t){return Ro().memoizedState=[e,t===void 0?null:t],e},useContext:$a,useEffect:ts,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),$o(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){return $o(4,2,e,t)},useMemo:function(e,t){var n=Ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ro();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ps.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Ro();return e={current:e},t.memoizedState=e},useState:Xo,useDebugValue:ss,useDeferredValue:function(e){return Ro().memoizedState=e},useTransition:function(){var e=Xo(!1),t=e[0];return e=ds.bind(null,e[1]),Ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=U,a=Ro();if(V){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Kc===null)throw Error(r(349));Oo&30||Go(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ts(qo.bind(null,i,o,e),[e]),i.flags|=2048,Zo(9,Ko.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Ro(),t=Kc.identifierPrefix;if(V){var n=xa,r=ba;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Mo++,0<\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Li]=t,e[Ri]=i,cc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ue(n,i),n){case`dialog`:R(`cancel`,e),R(`close`,e),a=i;break;case`iframe`:case`object`:case`embed`:R(`load`,e),a=i;break;case`video`:case`audio`:for(a=0;ail&&(t.flags|=128,i=!0,dc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!V)return fc(t),null}else 2*F()-s.renderingStartTime>il&&n!==1073741824&&(t.flags|=128,i=!0,dc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(fc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=F(),t.sibling=null,n=H.current,B(H,i?n&1|2:n&1),t);case 22:case 23:return Ol(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Jc&1073741824&&(fc(t),t.subtreeFlags&6&&(t.flags|=8192)):fc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function mc(e,t){switch(Ta(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),z(Qi),z(Zi),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return So(t),null;case 13:if(z(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(H),null;case 4:return bo(),null;case 10:return Xa(t.type._context),null;case 22:case 23:return Ol(),null;case 24:return null;default:return null}}var hc=!1,gc=!1,_c=typeof WeakSet==`function`?WeakSet:Set,K=null;function vc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}function yc(e,t,n){try{n()}catch(n){X(e,t,n)}}var bc=!1;function xc(e,t){if(Ti=_n,e=Rr(),zr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ei={focusedElem:e,selectionRange:n},_n=!1,K=t;K!==null;)if(t=K,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ss(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){X(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return h=bc,bc=!1,h}function Sc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&yc(t,n,a)}i=i.next}while(i!==r)}}function Cc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Tc(e){var t=e.alternate;t!==null&&(e.alternate=null,Tc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Li],delete t[Ri],delete t[Bi],delete t[Vi],delete t[Hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ec(e){return e.tag===5||e.tag===3||e.tag===4}function Dc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ec(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wi));else if(r!==4&&(e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(e,t,n),e=e.sibling}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}var Ac=null,q=!1;function jc(e,t,n){for(n=n.child;n!==null;)Mc(e,t,n),n=n.sibling}function Mc(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount==`function`)try{Ot.onCommitFiberUnmount(Dt,n)}catch{}switch(n.tag){case 5:gc||vc(n,t);case 6:var r=Ac,i=q;Ac=null,jc(e,t,n),Ac=r,q=i,Ac!==null&&(q?(e=Ac,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ac.removeChild(n.stateNode));break;case 18:Ac!==null&&(q?(e=Ac,n=n.stateNode,e.nodeType===8?Ni(e.parentNode,n):e.nodeType===1&&Ni(e,n),hn(e)):Ni(Ac,n.stateNode));break;case 4:r=Ac,i=q,Ac=n.stateNode.containerInfo,q=!0,jc(e,t,n),Ac=r,q=i;break;case 0:case 11:case 14:case 15:if(!gc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&yc(n,t,o),i=i.next}while(i!==r)}jc(e,t,n);break;case 1:if(!gc&&(vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){X(n,t,e)}jc(e,t,n);break;case 21:jc(e,t,n);break;case 22:n.mode&1?(gc=(r=gc)||n.memoizedState!==null,jc(e,t,n),gc=r):jc(e,t,n);break;default:jc(e,t,n)}}function Nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _c),t.forEach(function(t){var r=Gl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Pc(e,t){var n=t.deletions;if(n!==null)for(var i=0;ia&&(a=s),i&=~o}if(i=a,i=F()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Hc(i/1960))-i,10e?16:e,ul===null)var i=!1;else{if(e=ul,ul=null,dl=0,J&6)throw Error(r(331));var a=J;for(J|=4,K=e.current;K!==null;){var o=K,s=o.child;if(K.flags&16){var c=o.deletions;if(c!==null){for(var l=0;lF()-rl?kl(e,0):el|=n),yl(e,t)}function Ul(e,t){t===0&&(e.mode&1?(t=Ft,Ft<<=1,!(Ft&130023424)&&(Ft=4194304)):t=1);var n=gl();e=ro(e,t),e!==null&&(Ut(e,t,n),yl(e,n))}function Wl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ul(e,n)}function Gl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Ul(e,n)}var Kl=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)zs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return zs=!1,sc(e,t,n);zs=!!(e.flags&131072)}else zs=!1,V&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ac(e,t),e=t.pendingProps;var a=ea(t,Zi.current);Qa(t,n),a=Io(null,t,i,e,a,n);var o=Lo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ao(t),a.updater=ws,t.stateNode=a,a._reactInternals=t,Os(t,i,e,n),t=qs(null,t,i,!0,o,n)):(t.tag=0,V&&o&&wa(t),G(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(ac(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Zl(i),e=Ss(i,e),a){case 0:t=Gs(null,t,i,e,n);break a;case 1:t=Ks(null,t,i,e,n);break a;case 11:t=Bs(null,t,i,e,n);break a;case 14:t=Vs(null,t,i,Ss(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),Gs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),Ks(e,t,i,a,n);case 3:a:{if(Js(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,oo(e,t),fo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=ks(Error(r(423)),t),t=Ys(e,t,i,n,a);break a}else if(i!==a){a=ks(Error(r(424)),t),t=Ys(e,t,i,n,a);break a}else for(Da=Pi(t.stateNode.containerInfo.firstChild),Ea=t,V=!0,Oa=null,n=Wa(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ia(),i===a){t=oc(e,t,n);break a}G(e,t,i,n)}t=t.child}return t;case 5:return xo(t),e===null&&Ma(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Di(i,a)?s=null:o!==null&&Di(i,o)&&(t.flags|=32),Ws(e,t),G(e,t,s,n),t.child;case 6:return e===null&&Ma(t),null;case 13:return Qs(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ua(t,null,i,n):G(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),Bs(e,t,i,a,n);case 7:return G(e,t,t.pendingProps,n),t.child;case 8:return G(e,t,t.pendingProps.children,n),t.child;case 12:return G(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,B(Ga,i._currentValue),i._currentValue=s,o!==null)if(Nr(o.value,s)){if(o.children===a.children&&!Qi.current){t=oc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=so(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Za(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Za(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}G(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Qa(t,n),a=$a(a),i=i(a),t.flags|=1,G(e,t,i,n),t.child;case 14:return i=t.type,a=Ss(i,t.pendingProps),a=Ss(i.type,a),Vs(e,t,i,a,n);case 15:return Hs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ss(i,a),ac(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,Qa(t,n),Es(t,i,a),Os(t,i,a,n),qs(null,t,i,!0,e,n);case 19:return ic(e,t,n);case 22:return Us(e,t,n)}throw Error(r(156,t.tag))};function ql(e,t){return _t(e,t)}function Jl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yl(e,t,n,r){return new Jl(e,t,n,r)}function Xl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zl(e){if(typeof e==`function`)return+!!Xl(e);if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===ae)return 14}return 2}function Ql(e,t){var n=e.alternate;return n===null?(n=Yl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)Xl(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case T:return eu(n.children,a,o,t);case E:s=8,a|=8;break;case D:return e=Yl(12,n,t,a|2),e.elementType=D,e.lanes=o,e;case O:return e=Yl(13,n,t,a),e.elementType=O,e.lanes=o,e;case ie:return e=Yl(19,n,t,a),e.elementType=ie,e.lanes=o,e;case se:return tu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break a;case ne:s=9;break a;case re:s=11;break a;case ae:s=14;break a;case oe:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Yl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function eu(e,t,n,r){return e=Yl(7,e,r,t),e.lanes=n,e}function tu(e,t,n,r){return e=Yl(22,e,r,t),e.elementType=se,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=Yl(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=Yl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function au(e,t,n,r,i,a,o,s,c){return e=new iu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Yl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ao(a),e}function ou(e,t,n){var r=3{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=E()})),te=t(r(((e,t)=>{var n=Array.prototype.reverse;function r(e){return e==null?e:n.call(e)}t.exports=r}))()),ne=e=>{var t=e.replace(/^.*(.*)<\/CTICONTENT>.*$/gs,`$1`);return t.substring(0,3)===`_t_`&&(t=t.substring(10)),t.substring(0,3)===`_c_`&&(t=re(t.substring(3))),t.replace(/\n<\?xml version="1\.0" encoding="ISO-8859-1"\?>/gm,``).replace(/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,``)};function re(e){var t=new Uint8Array(atob(e).split(``).map(e=>e.charCodeAt(0)));try{var n=f.inflate(t)}catch(e){console.log(e)}return new TextDecoder(`iso-8859-1`).decode(new Uint8Array(n))}var O={};O.latin_map={Á:`A`,Ă:`A`,Ắ:`A`,Ặ:`A`,Ằ:`A`,Ẳ:`A`,Ẵ:`A`,Ǎ:`A`,Â:`A`,Ấ:`A`,Ậ:`A`,Ầ:`A`,Ẩ:`A`,Ẫ:`A`,Ä:`A`,Ǟ:`A`,Ȧ:`A`,Ǡ:`A`,Ạ:`A`,Ȁ:`A`,À:`A`,Ả:`A`,Ȃ:`A`,Ā:`A`,Ą:`A`,Å:`A`,Ǻ:`A`,Ḁ:`A`,Ⱥ:`A`,Ã:`A`,Ꜳ:`AA`,Æ:`AE`,Ǽ:`AE`,Ǣ:`AE`,Ꜵ:`AO`,Ꜷ:`AU`,Ꜹ:`AV`,Ꜻ:`AV`,Ꜽ:`AY`,Ḃ:`B`,Ḅ:`B`,Ɓ:`B`,Ḇ:`B`,Ƀ:`B`,Ƃ:`B`,Ć:`C`,Č:`C`,Ç:`C`,Ḉ:`C`,Ĉ:`C`,Ċ:`C`,Ƈ:`C`,Ȼ:`C`,Ď:`D`,Ḑ:`D`,Ḓ:`D`,Ḋ:`D`,Ḍ:`D`,Ɗ:`D`,Ḏ:`D`,Dz:`D`,Dž:`D`,Đ:`D`,Ƌ:`D`,DZ:`DZ`,DŽ:`DZ`,É:`E`,Ĕ:`E`,Ě:`E`,Ȩ:`E`,Ḝ:`E`,Ê:`E`,Ế:`E`,Ệ:`E`,Ề:`E`,Ể:`E`,Ễ:`E`,Ḙ:`E`,Ë:`E`,Ė:`E`,Ẹ:`E`,Ȅ:`E`,È:`E`,Ẻ:`E`,Ȇ:`E`,Ē:`E`,Ḗ:`E`,Ḕ:`E`,Ę:`E`,Ɇ:`E`,Ẽ:`E`,Ḛ:`E`,Ꝫ:`ET`,Ḟ:`F`,Ƒ:`F`,Ǵ:`G`,Ğ:`G`,Ǧ:`G`,Ģ:`G`,Ĝ:`G`,Ġ:`G`,Ɠ:`G`,Ḡ:`G`,Ǥ:`G`,Ḫ:`H`,Ȟ:`H`,Ḩ:`H`,Ĥ:`H`,Ⱨ:`H`,Ḧ:`H`,Ḣ:`H`,Ḥ:`H`,Ħ:`H`,Í:`I`,Ĭ:`I`,Ǐ:`I`,Î:`I`,Ï:`I`,Ḯ:`I`,İ:`I`,Ị:`I`,Ȉ:`I`,Ì:`I`,Ỉ:`I`,Ȋ:`I`,Ī:`I`,Į:`I`,Ɨ:`I`,Ĩ:`I`,Ḭ:`I`,Ꝺ:`D`,Ꝼ:`F`,Ᵹ:`G`,Ꞃ:`R`,Ꞅ:`S`,Ꞇ:`T`,Ꝭ:`IS`,Ĵ:`J`,Ɉ:`J`,Ḱ:`K`,Ǩ:`K`,Ķ:`K`,Ⱪ:`K`,Ꝃ:`K`,Ḳ:`K`,Ƙ:`K`,Ḵ:`K`,Ꝁ:`K`,Ꝅ:`K`,Ĺ:`L`,Ƚ:`L`,Ľ:`L`,Ļ:`L`,Ḽ:`L`,Ḷ:`L`,Ḹ:`L`,Ⱡ:`L`,Ꝉ:`L`,Ḻ:`L`,Ŀ:`L`,Ɫ:`L`,Lj:`L`,Ł:`L`,LJ:`LJ`,Ḿ:`M`,Ṁ:`M`,Ṃ:`M`,Ɱ:`M`,Ń:`N`,Ň:`N`,Ņ:`N`,Ṋ:`N`,Ṅ:`N`,Ṇ:`N`,Ǹ:`N`,Ɲ:`N`,Ṉ:`N`,Ƞ:`N`,Nj:`N`,Ñ:`N`,NJ:`NJ`,Ó:`O`,Ŏ:`O`,Ǒ:`O`,Ô:`O`,Ố:`O`,Ộ:`O`,Ồ:`O`,Ổ:`O`,Ỗ:`O`,Ö:`O`,Ȫ:`O`,Ȯ:`O`,Ȱ:`O`,Ọ:`O`,Ő:`O`,Ȍ:`O`,Ò:`O`,Ỏ:`O`,Ơ:`O`,Ớ:`O`,Ợ:`O`,Ờ:`O`,Ở:`O`,Ỡ:`O`,Ȏ:`O`,Ꝋ:`O`,Ꝍ:`O`,Ō:`O`,Ṓ:`O`,Ṑ:`O`,Ɵ:`O`,Ǫ:`O`,Ǭ:`O`,Ø:`O`,Ǿ:`O`,Õ:`O`,Ṍ:`O`,Ṏ:`O`,Ȭ:`O`,Ƣ:`OI`,Ꝏ:`OO`,Ɛ:`E`,Ɔ:`O`,Ȣ:`OU`,Ṕ:`P`,Ṗ:`P`,Ꝓ:`P`,Ƥ:`P`,Ꝕ:`P`,Ᵽ:`P`,Ꝑ:`P`,Ꝙ:`Q`,Ꝗ:`Q`,Ŕ:`R`,Ř:`R`,Ŗ:`R`,Ṙ:`R`,Ṛ:`R`,Ṝ:`R`,Ȑ:`R`,Ȓ:`R`,Ṟ:`R`,Ɍ:`R`,Ɽ:`R`,Ꜿ:`C`,Ǝ:`E`,Ś:`S`,Ṥ:`S`,Š:`S`,Ṧ:`S`,Ş:`S`,Ŝ:`S`,Ș:`S`,Ṡ:`S`,Ṣ:`S`,Ṩ:`S`,Ť:`T`,Ţ:`T`,Ṱ:`T`,Ț:`T`,Ⱦ:`T`,Ṫ:`T`,Ṭ:`T`,Ƭ:`T`,Ṯ:`T`,Ʈ:`T`,Ŧ:`T`,Ɐ:`A`,Ꞁ:`L`,Ɯ:`M`,Ʌ:`V`,Ꜩ:`TZ`,Ú:`U`,Ŭ:`U`,Ǔ:`U`,Û:`U`,Ṷ:`U`,Ü:`U`,Ǘ:`U`,Ǚ:`U`,Ǜ:`U`,Ǖ:`U`,Ṳ:`U`,Ụ:`U`,Ű:`U`,Ȕ:`U`,Ù:`U`,Ủ:`U`,Ư:`U`,Ứ:`U`,Ự:`U`,Ừ:`U`,Ử:`U`,Ữ:`U`,Ȗ:`U`,Ū:`U`,Ṻ:`U`,Ų:`U`,Ů:`U`,Ũ:`U`,Ṹ:`U`,Ṵ:`U`,Ꝟ:`V`,Ṿ:`V`,Ʋ:`V`,Ṽ:`V`,Ꝡ:`VY`,Ẃ:`W`,Ŵ:`W`,Ẅ:`W`,Ẇ:`W`,Ẉ:`W`,Ẁ:`W`,Ⱳ:`W`,Ẍ:`X`,Ẋ:`X`,Ý:`Y`,Ŷ:`Y`,Ÿ:`Y`,Ẏ:`Y`,Ỵ:`Y`,Ỳ:`Y`,Ƴ:`Y`,Ỷ:`Y`,Ỿ:`Y`,Ȳ:`Y`,Ɏ:`Y`,Ỹ:`Y`,Ź:`Z`,Ž:`Z`,Ẑ:`Z`,Ⱬ:`Z`,Ż:`Z`,Ẓ:`Z`,Ȥ:`Z`,Ẕ:`Z`,Ƶ:`Z`,IJ:`IJ`,Œ:`OE`,ᴀ:`A`,ᴁ:`AE`,ʙ:`B`,ᴃ:`B`,ᴄ:`C`,ᴅ:`D`,ᴇ:`E`,ꜰ:`F`,ɢ:`G`,ʛ:`G`,ʜ:`H`,ɪ:`I`,ʁ:`R`,ᴊ:`J`,ᴋ:`K`,ʟ:`L`,ᴌ:`L`,ᴍ:`M`,ɴ:`N`,ᴏ:`O`,ɶ:`OE`,ᴐ:`O`,ᴕ:`OU`,ᴘ:`P`,ʀ:`R`,ᴎ:`N`,ᴙ:`R`,ꜱ:`S`,ᴛ:`T`,ⱻ:`E`,ᴚ:`R`,ᴜ:`U`,ᴠ:`V`,ᴡ:`W`,ʏ:`Y`,ᴢ:`Z`,á:`a`,ă:`a`,ắ:`a`,ặ:`a`,ằ:`a`,ẳ:`a`,ẵ:`a`,ǎ:`a`,â:`a`,ấ:`a`,ậ:`a`,ầ:`a`,ẩ:`a`,ẫ:`a`,ä:`a`,ǟ:`a`,ȧ:`a`,ǡ:`a`,ạ:`a`,ȁ:`a`,à:`a`,ả:`a`,ȃ:`a`,ā:`a`,ą:`a`,ᶏ:`a`,ẚ:`a`,å:`a`,ǻ:`a`,ḁ:`a`,ⱥ:`a`,ã:`a`,ꜳ:`aa`,æ:`ae`,ǽ:`ae`,ǣ:`ae`,ꜵ:`ao`,ꜷ:`au`,ꜹ:`av`,ꜻ:`av`,ꜽ:`ay`,ḃ:`b`,ḅ:`b`,ɓ:`b`,ḇ:`b`,ᵬ:`b`,ᶀ:`b`,ƀ:`b`,ƃ:`b`,ɵ:`o`,ć:`c`,č:`c`,ç:`c`,ḉ:`c`,ĉ:`c`,ɕ:`c`,ċ:`c`,ƈ:`c`,ȼ:`c`,ď:`d`,ḑ:`d`,ḓ:`d`,ȡ:`d`,ḋ:`d`,ḍ:`d`,ɗ:`d`,ᶑ:`d`,ḏ:`d`,ᵭ:`d`,ᶁ:`d`,đ:`d`,ɖ:`d`,ƌ:`d`,ı:`i`,ȷ:`j`,ɟ:`j`,ʄ:`j`,dz:`dz`,dž:`dz`,é:`e`,ĕ:`e`,ě:`e`,ȩ:`e`,ḝ:`e`,ê:`e`,ế:`e`,ệ:`e`,ề:`e`,ể:`e`,ễ:`e`,ḙ:`e`,ë:`e`,ė:`e`,ẹ:`e`,ȅ:`e`,è:`e`,ẻ:`e`,ȇ:`e`,ē:`e`,ḗ:`e`,ḕ:`e`,ⱸ:`e`,ę:`e`,ᶒ:`e`,ɇ:`e`,ẽ:`e`,ḛ:`e`,ꝫ:`et`,ḟ:`f`,ƒ:`f`,ᵮ:`f`,ᶂ:`f`,ǵ:`g`,ğ:`g`,ǧ:`g`,ģ:`g`,ĝ:`g`,ġ:`g`,ɠ:`g`,ḡ:`g`,ᶃ:`g`,ǥ:`g`,ḫ:`h`,ȟ:`h`,ḩ:`h`,ĥ:`h`,ⱨ:`h`,ḧ:`h`,ḣ:`h`,ḥ:`h`,ɦ:`h`,ẖ:`h`,ħ:`h`,ƕ:`hv`,í:`i`,ĭ:`i`,ǐ:`i`,î:`i`,ï:`i`,ḯ:`i`,ị:`i`,ȉ:`i`,ì:`i`,ỉ:`i`,ȋ:`i`,ī:`i`,į:`i`,ᶖ:`i`,ɨ:`i`,ĩ:`i`,ḭ:`i`,ꝺ:`d`,ꝼ:`f`,ᵹ:`g`,ꞃ:`r`,ꞅ:`s`,ꞇ:`t`,ꝭ:`is`,ǰ:`j`,ĵ:`j`,ʝ:`j`,ɉ:`j`,ḱ:`k`,ǩ:`k`,ķ:`k`,ⱪ:`k`,ꝃ:`k`,ḳ:`k`,ƙ:`k`,ḵ:`k`,ᶄ:`k`,ꝁ:`k`,ꝅ:`k`,ĺ:`l`,ƚ:`l`,ɬ:`l`,ľ:`l`,ļ:`l`,ḽ:`l`,ȴ:`l`,ḷ:`l`,ḹ:`l`,ⱡ:`l`,ꝉ:`l`,ḻ:`l`,ŀ:`l`,ɫ:`l`,ᶅ:`l`,ɭ:`l`,ł:`l`,lj:`lj`,ſ:`s`,ẜ:`s`,ẛ:`s`,ẝ:`s`,ḿ:`m`,ṁ:`m`,ṃ:`m`,ɱ:`m`,ᵯ:`m`,ᶆ:`m`,ń:`n`,ň:`n`,ņ:`n`,ṋ:`n`,ȵ:`n`,ṅ:`n`,ṇ:`n`,ǹ:`n`,ɲ:`n`,ṉ:`n`,ƞ:`n`,ᵰ:`n`,ᶇ:`n`,ɳ:`n`,ñ:`n`,nj:`nj`,ó:`o`,ŏ:`o`,ǒ:`o`,ô:`o`,ố:`o`,ộ:`o`,ồ:`o`,ổ:`o`,ỗ:`o`,ö:`o`,ȫ:`o`,ȯ:`o`,ȱ:`o`,ọ:`o`,ő:`o`,ȍ:`o`,ò:`o`,ỏ:`o`,ơ:`o`,ớ:`o`,ợ:`o`,ờ:`o`,ở:`o`,ỡ:`o`,ȏ:`o`,ꝋ:`o`,ꝍ:`o`,ⱺ:`o`,ō:`o`,ṓ:`o`,ṑ:`o`,ǫ:`o`,ǭ:`o`,ø:`o`,ǿ:`o`,õ:`o`,ṍ:`o`,ṏ:`o`,ȭ:`o`,ƣ:`oi`,ꝏ:`oo`,ɛ:`e`,ᶓ:`e`,ɔ:`o`,ᶗ:`o`,ȣ:`ou`,ṕ:`p`,ṗ:`p`,ꝓ:`p`,ƥ:`p`,ᵱ:`p`,ᶈ:`p`,ꝕ:`p`,ᵽ:`p`,ꝑ:`p`,ꝙ:`q`,ʠ:`q`,ɋ:`q`,ꝗ:`q`,ŕ:`r`,ř:`r`,ŗ:`r`,ṙ:`r`,ṛ:`r`,ṝ:`r`,ȑ:`r`,ɾ:`r`,ᵳ:`r`,ȓ:`r`,ṟ:`r`,ɼ:`r`,ᵲ:`r`,ᶉ:`r`,ɍ:`r`,ɽ:`r`,ↄ:`c`,ꜿ:`c`,ɘ:`e`,ɿ:`r`,ś:`s`,ṥ:`s`,š:`s`,ṧ:`s`,ş:`s`,ŝ:`s`,ș:`s`,ṡ:`s`,ṣ:`s`,ṩ:`s`,ʂ:`s`,ᵴ:`s`,ᶊ:`s`,ȿ:`s`,ɡ:`g`,ᴑ:`o`,ᴓ:`o`,ᴝ:`u`,ť:`t`,ţ:`t`,ṱ:`t`,ț:`t`,ȶ:`t`,ẗ:`t`,ⱦ:`t`,ṫ:`t`,ṭ:`t`,ƭ:`t`,ṯ:`t`,ᵵ:`t`,ƫ:`t`,ʈ:`t`,ŧ:`t`,ᵺ:`th`,ɐ:`a`,ᴂ:`ae`,ǝ:`e`,ᵷ:`g`,ɥ:`h`,ʮ:`h`,ʯ:`h`,ᴉ:`i`,ʞ:`k`,ꞁ:`l`,ɯ:`m`,ɰ:`m`,ᴔ:`oe`,ɹ:`r`,ɻ:`r`,ɺ:`r`,ⱹ:`r`,ʇ:`t`,ʌ:`v`,ʍ:`w`,ʎ:`y`,ꜩ:`tz`,ú:`u`,ŭ:`u`,ǔ:`u`,û:`u`,ṷ:`u`,ü:`u`,ǘ:`u`,ǚ:`u`,ǜ:`u`,ǖ:`u`,ṳ:`u`,ụ:`u`,ű:`u`,ȕ:`u`,ù:`u`,ủ:`u`,ư:`u`,ứ:`u`,ự:`u`,ừ:`u`,ử:`u`,ữ:`u`,ȗ:`u`,ū:`u`,ṻ:`u`,ų:`u`,ᶙ:`u`,ů:`u`,ũ:`u`,ṹ:`u`,ṵ:`u`,ᵫ:`ue`,ꝸ:`um`,ⱴ:`v`,ꝟ:`v`,ṿ:`v`,ʋ:`v`,ᶌ:`v`,ⱱ:`v`,ṽ:`v`,ꝡ:`vy`,ẃ:`w`,ŵ:`w`,ẅ:`w`,ẇ:`w`,ẉ:`w`,ẁ:`w`,ⱳ:`w`,ẘ:`w`,ẍ:`x`,ẋ:`x`,ᶍ:`x`,ý:`y`,ŷ:`y`,ÿ:`y`,ẏ:`y`,ỵ:`y`,ỳ:`y`,ƴ:`y`,ỷ:`y`,ỿ:`y`,ȳ:`y`,ẙ:`y`,ɏ:`y`,ỹ:`y`,ź:`z`,ž:`z`,ẑ:`z`,ʑ:`z`,ⱬ:`z`,ż:`z`,ẓ:`z`,ȥ:`z`,ẕ:`z`,ᵶ:`z`,ᶎ:`z`,ʐ:`z`,ƶ:`z`,ɀ:`z`,ff:`ff`,ffi:`ffi`,ffl:`ffl`,fi:`fi`,fl:`fl`,ij:`ij`,œ:`oe`,st:`st`,ₐ:`a`,ₑ:`e`,ᵢ:`i`,ⱼ:`j`,ₒ:`o`,ᵣ:`r`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`},String.prototype.latinise=function(){return this.replace(/[^A-Za-z0-9\[\] ]/g,function(e){return O.latin_map[e]||e})};var ie={"0x":`#`,"0X":`#`,"é":`é`,"É":`É`,"è":`è`,ê:`ê`,ÃÐ:`é`,"â":`â`,"ç":`ç`,ÃŽ:`ô`,"ô":`ô`,"û":`û`,Ú:`è`,"Ã\xA0":`à`,Â:``,"€":`€`,"€":`€`,"∑":`Σ`,"∑":`Σ`},ae=(e,t=!0)=>{let n=new TextDecoder(`iso-8859-15`).decode(e);return t?ue(n):n};function oe(){let e=window.location.pathname;return e.substring(0,e.indexOf(`jis`))}function se(e,t){let n=new RegExp(Object.keys(t).join(`|`),`gm`);return e.replace(n,function(e){return t[e]})}function ce(e){let t={},n=e?.attributes;if(n)for(let e=0;e{let r=ce(e);r.key=n,t.push(r)}),t}function ue(e){if(window.DOMParser){let t=new window.DOMParser,n=se(ne(e.substring(e.indexOf(``))),ie);return t.parseFromString(n,`text/xml`)}}function de(e){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}function fe(e,t=!1){if(!e)return null;let n={"ACTI_globals.XML":`globals_activite`,"PMSI_globals.XML":`globals_pmsi`,"PMSISSR_globals.XML":`globals_pmsissr`,"PMSIHAD_globals.XML":`globals_pmsihad`,"PMSIPSY_globals.XML":`globals_pmsipsy`,"RH_globals.XML":`globals_rh`,"ECO_globals.XML":`globals_eco`,"COMPTA_globals.XML":`globals_compta`,"DPI_globals.XML":`globals_dpi`,"QUAL_globals.XML":`globals_qual`};if(t===!0)for(let t in n)return n[t]===e?t:`${e.split(`_`)[1].toUpperCase()}_GLOBALS.XML`;else return n[e]?n[e]:`globals_${e.split(`_`)[0].toLowerCase()}`;return null}function pe(e,t=[]){return Object.values(e).forEach(e=>{e.group&&e.group.forEach(e=>{e.field&&e.field.forEach(e=>{t.push({...e,options:e.options?[...e.options]:null})}),e.group&&e.group.forEach(e=>{e.field.forEach(e=>{t.push({...e,options:e.options?[...e.options]:null})})})})}),t}function me(e,t,n){e=e.map(e=>(e.children&&=me(e.children,t,n),e));let r;return r=e.every(e=>e[t]?.text&&!isNaN(e[t].text))?e.sort((e,n)=>Number(e[t].text)-Number(n[t].text)):e.sort((e,n)=>e[t]===void 0||n[t]===void 0?!0:typeof e[t]?.text==`string`&&typeof n[t]?.text==`string`?e[t].text.toLowerCase().localeCompare(n[t].text.toLowerCase(),void 0,{numeric:!0,sensitivity:`base`}):!isNaN(e[t])&&!isNaN(n[t])?e[t]-n[t]:typeof e[t]==`string`&&typeof n[t]==`string`?e[t].localeCompare(n[t],void 0,{numeric:!0,sensitivity:`base`}):!0),n===`desc`?(0,te.default)(r):r}function he(e,t=`_`){if(e!==void 0){let n=[],r=e.split(t),i=``;return r.forEach(e=>{i===``?i+=e:i+=`_`+e,n.push(i)}),n}else return[]}var ge={ACTI:`activite`,COMPTA:`compta`,DPI:`dpi`,ECO:`eco`,EIS:`eis`,PMSI:`pmsi`,PMSIHAD:`pmsihad`,PMSIPSY:`pmsipsy`,PMSISSR:`pmsissr`,QUAL:`qualite`,RH:`rh`};function _e(e){let t=[];return e.forEach(e=>{if(e.oid!==`0`){let n={XMLType:`SECTION`};for(let t in e)t!==`elements`&&(n[t]=e[t]);n.children=ve(e.elements),t.push(n)}}),t}function ve(e){let t=[],n=e.map(e=>e.oid);return n=[...new Set(n)],n.forEach(e=>{let n={XMLType:`ELEMENT`};n.oid=e,t.push(n)}),t}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t{}));function ye(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var be=e((()=>{}));function xe(e,t){for(var n=0;n{y()}));function M(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var we=e((()=>{}));function Te(e,t){if(t&&(v(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return M(e)}var Ee=e((()=>{_(),we()}));function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(De=function(){return!!e})()}var Oe=e((()=>{}));function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}var Ae=e((()=>{}));function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}var Me=e((()=>{}));function Ne(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&je(e,t)}var Pe=e((()=>{Me()})),Fe=r(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t{_(),Le=Symbol.for(`react.element`),Re=Symbol.for(`react.transitional.element`),ze=Symbol.for(`react.fragment`)}));function Ve(e,t){}function He(e,t){}function Ue(){qe={}}function We(e,t,n){!t&&!qe[n]&&(e(!1,n),qe[n]=!0)}function Ge(e,t){We(Ve,e,t)}function Ke(e,t){We(He,e,t)}var qe,Je,Ye,Xe=e((()=>{qe={},Je=[],Ye=function(e){Je.push(e)},Ge.preMessage=Ye,Ge.resetWarned=Ue,Ge.noteOnce=Ke}));function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t{b()}));function Qe(e){return e instanceof HTMLElement||e instanceof SVGElement}function $e(e){return e&&v(e)===`object`&&Qe(e.nativeElement)?e.nativeElement:Qe(e)?e:null}function et(e){return $e(e)||(e instanceof tt.Component?nt.findDOMNode?.call(nt.default,e):null)}var tt,nt,rt=e((()=>{_(),tt=t(i()),nt=t(D())})),it=r((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.for(`react.module.reference`);function g(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=s,e.ContextProvider=o,e.Element=t,e.ForwardRef=l,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return g(e)===s},e.isContextProvider=function(e){return g(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return g(e)===l},e.isFragment=function(e){return g(e)===r},e.isLazy=function(e){return g(e)===p},e.isMemo=function(e){return g(e)===f},e.isPortal=function(e){return g(e)===n},e.isProfiler=function(e){return g(e)===a},e.isStrictMode=function(e){return g(e)===i},e.isSuspense=function(e){return g(e)===u},e.isSuspenseList=function(e){return g(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===u||e===d||e===m||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=g})),at=r(((e,t)=>{t.exports=it()}));function ot(e,t,n){var r=st.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var st,ct=e((()=>{st=t(i())}));function lt(e){return(0,ut.isValidElement)(e)&&!Ie(e)}var ut,dt,ft,pt,mt,ht,gt,_t,vt=e((()=>{_(),ut=t(i()),dt=at(),ct(),Be(),ft=Number(ut.version.split(`.`)[0]),pt=function(e,t){typeof e==`function`?e(t):v(e)===`object`&&e&&`current`in e&&(e.current=t)},mt=function(){var e=[...arguments],t=e.filter(Boolean);return t.length<=1?t[0]:function(t){e.forEach(function(e){pt(e,t)})}},ht=function(){var e=[...arguments];return ot(function(){return mt.apply(void 0,e)},e,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},gt=function(e){var t,n;if(!e)return!1;if(lt(e)&&ft>=19)return!0;var r=(0,dt.isMemo)(e)?e.type.type:e.type;return!(typeof r==`function`&&!((t=r.prototype)!=null&&t.render)&&r.$$typeof!==dt.ForwardRef||typeof e==`function`&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==dt.ForwardRef)},_t=function(e){if(e&<(e)){var t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null}}));function yt(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){jt(a)}function s(){var e=Date.now();if(n){if(e-i{Ot=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,`size`,{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){!kt||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),Ft?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!kt||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;Pt.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),Lt=(function(e,t){for(var n=0,r=Object.keys(t);n`u`||!(Element instanceof Object))){if(!(e instanceof Rt(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new Vt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof Rt(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Ht(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Wt=typeof WeakMap<`u`?new WeakMap:new Ot,Gt=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new Ut(t,It.getInstance(),this);Wt.set(this,n)}return e}(),[`observe`,`unobserve`,`disconnect`].forEach(function(e){Gt.prototype[e]=function(){var t;return(t=Wt.get(this))[e].apply(t,arguments)}}),I=(function(){return At.ResizeObserver===void 0?Gt:At.ResizeObserver})()}));function qt(e){var t=De();return function(){var n,r=ke(e);if(t){var i=ke(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Te(this,n)}}var Jt=e((()=>{Ae(),Oe(),Ee()})),L=t(i()),Yt=(0,L.createContext)({});function Xt(e){if(Array.isArray(e))return l(e)}var Zt=e((()=>{g()}));function Qt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}var $t=e((()=>{}));function en(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tn=e((()=>{}));function nn(e){return Xt(e)||Qt(e)||m(e)||en()}var rn=e((()=>{Zt(),$t(),s(),tn()}));function an(e){return o(e)||Qt(e)||m(e)||p()}var on=e((()=>{d(),$t(),s(),c()}));function sn(e,t){for(var n=e,r=0;r{}));function ln(e,t,n,r){if(!t.length)return n;var i=an(t),a=i[0],o=i.slice(1),s=!e&&typeof a==`number`?[]:Array.isArray(e)?nn(e):N({},e);return r&&n===void 0&&o.length===1?delete s[a][o[0]]:s[a]=ln(s[a],o,n,r),s}function un(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!sn(e,t.slice(0,-1))?e:ln(e,t,n,r)}function dn(e){return v(e)===`object`&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function fn(e){return Array.isArray(e)?[]:{}}function pn(){var e=[...arguments],t=fn(e[0]);return e.forEach(function(e){function n(r,i){var a=new Set(i),o=sn(e,r),s=Array.isArray(o);if(s||dn(o)){if(!a.has(o)){a.add(o);var c=sn(t,r);s?t=un(t,r,[]):(!c||v(c)!==`object`)&&(t=un(t,r,fn(o))),mn(o).forEach(function(e){n([].concat(nn(r),[e]),a)})}}else t=un(t,r,o)}n([])}),t}var mn,hn=e((()=>{_(),P(),rn(),on(),cn(),mn=typeof Reflect>`u`?Object.keys:Reflect.ownKeys})),gn=(0,L.createContext)(void 0),_n={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},vn={locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,yearFormat:`YYYY`,dateFormat:`M/D/YYYY`,dayFormat:`D`,dateTimeFormat:`M/D/YYYY HH:mm:ss`,monthBeforeYear:!0,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`},yn={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]};j();var bn={lang:A({placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`]},vn),timePickerLocale:A({},yn)},xn=bn,Sn="${label} is not a valid ${type}",Cn={locale:`en`,Pagination:_n,DatePicker:bn,TimePicker:yn,Calendar:xn,global:{placeholder:`Please select`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckall:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`},PageHeader:{back:`Back`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Sn,method:Sn,array:Sn,object:Sn,number:Sn,date:Sn,boolean:Sn,integer:Sn,float:Sn,regexp:Sn,email:Sn,url:Sn,hex:Sn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:`Preview`}};j();var wn=A({},Cn.Modal);function Tn(e){wn=e?A(A({},wn),e):A({},Cn.Modal)}function En(){return wn}var Dn=(0,L.createContext)(void 0);j();var On=`internalMark`,kn=function(e){var t=e.locale,n=t===void 0?{}:t,r=e.children;e._ANT_MARK__,L.useEffect(function(){return Tn(n&&n.Modal),function(){Tn()}},[n]);var i=L.useMemo(function(){return A(A({},n),{exist:!0})},[n]);return L.createElement(Dn.Provider,{value:i},r)},An=Cn;j();var jn=function(e){var t=e.componentName,n=t===void 0?`global`:t,r=e.defaultLocale,i=e.children,a=L.useContext(Dn);return i(L.useMemo(function(){var e=r||An[n],t=a?.[n]??{};return A(A({},e instanceof Function?e():e),t||{})},[n,r,a]),L.useMemo(function(){var e=a&&a.locale;return a&&a.exist&&!e?An.locale:e},[a]),a)},Mn=function(e,t){var n=L.useContext(Dn);return[L.useMemo(function(){var r=t||An[e],i=n?.[e]??{};return A(A({},typeof r==`function`?r():r),i||{})},[e,t,n])]},Nn={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z`}}]},name:`check-circle`,theme:`filled`};function Pn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fn=e((()=>{}));function In(e,t){if(e==null)return{};var n,r,i=Pn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{Fn()}));function Rn(e,t){Bn(e)&&(e=`100%`);var n=Vn(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=t===360?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function zn(e){return Math.min(1,Math.max(0,e))}function Bn(e){return typeof e==`string`&&e.indexOf(`.`)!==-1&&parseFloat(e)===1}function Vn(e){return typeof e==`string`&&e.indexOf(`%`)!==-1}function Hn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Un(e){return e<=1?`${Number(e)*100}%`:e}function Wn(e){return e.length===1?`0`+e:String(e)}var Gn=e((()=>{}));function Kn(e,t,n){return{r:Rn(e,255)*255,g:Rn(t,255)*255,b:Rn(n,255)*255}}function qn(e,t,n){e=Rn(e,255),t=Rn(t,255),n=Rn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t1&&--n,n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yn(e,t,n){var r,i,a;if(e=Rn(e,360),t=Rn(t,100),n=Rn(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Jn(s,o,e+1/3),i=Jn(s,o,e),a=Jn(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Xn(e,t,n){e=Rn(e,255),t=Rn(t,255),n=Rn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,c=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var ar=e((()=>{Gn()})),or,sr=e((()=>{or={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,goldenrod:`#daa520`,gold:`#ffd700`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavenderblush:`#fff0f5`,lavender:`#e6e6fa`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`}}));function cr(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=lr(e)),typeof e==`object`&&(ur(e.r)&&ur(e.g)&&ur(e.b)?(t=Kn(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):ur(e.h)&&ur(e.s)&&ur(e.v)?(r=Un(e.s),i=Un(e.v),t=Zn(e.h,r,i),o=!0,s=`hsv`):ur(e.h)&&ur(e.s)&&ur(e.l)&&(r=Un(e.s),a=Un(e.l),t=Yn(e.h,r,a),o=!0,s=`hsl`),Object.prototype.hasOwnProperty.call(e,`a`)&&(n=e.a)),n=Hn(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function lr(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(or[e])e=or[e],t=!0;else if(e===`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n=mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=mr.hex8.exec(e),n?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),a:nr(n[4]),format:t?`name`:`hex8`}:(n=mr.hex6.exec(e),n?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),format:t?`name`:`hex`}:(n=mr.hex4.exec(e),n?{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),a:nr(n[4]+n[4]),format:t?`name`:`hex8`}:(n=mr.hex3.exec(e),n?{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),format:t?`name`:`hex`}:!1)))))))))}function ur(e){return!!mr.CSS_UNIT.exec(String(e))}var dr,fr,pr,mr,hr=e((()=>{ar(),sr(),Gn(),dr=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,fr=`[\\s|\\(]+(${dr})[,|\\s]+(${dr})[,|\\s]+(${dr})\\s*\\)?`,pr=`[\\s|\\(]+(${dr})[,|\\s]+(${dr})[,|\\s]+(${dr})[,|\\s]+(${dr})\\s*\\)?`,mr={CSS_UNIT:new RegExp(dr),rgb:RegExp(`rgb`+fr),rgba:RegExp(`rgba`+pr),hsl:RegExp(`hsl`+fr),hsla:RegExp(`hsla`+pr),hsv:RegExp(`hsv`+fr),hsva:RegExp(`hsva`+pr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}));function gr(e,t){return e===void 0&&(e=``),t===void 0&&(t={}),new _r(e,t)}var _r,vr=e((()=>{ar(),sr(),hr(),Gn(),_r=function(){function e(t,n){if(t===void 0&&(t=``),n===void 0&&(n={}),t instanceof e)return t;typeof t==`number`&&(t=ir(t)),this.originalInput=t;var r=cr(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t,n,r,i=e.r/255,a=e.g/255,o=e.b/255;return t=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,n=a<=.03928?a/12.92:((a+.055)/1.055)**2.4,r=o<=.03928?o/12.92:((o+.055)/1.055)**2.4,.2126*t+.7152*n+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Hn(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return this.toHsl().s===0},e.prototype.toHsv=function(){var e=Xn(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Xn(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${n}%, ${r}%)`:`hsva(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHsl=function(){var e=qn(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=qn(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${n}%, ${r}%)`:`hsla(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHex=function(e){return e===void 0&&(e=!1),Qn(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return e===void 0&&(e=!1),`#`+this.toHex(e)},e.prototype.toHex8=function(e){return e===void 0&&(e=!1),$n(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return e===void 0&&(e=!1),`#`+this.toHex8(e)},e.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`},e.prototype.toPercentageRgb=function(){var e=function(e){return`${Math.round(Rn(e,255)*100)}%`};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(Rn(e,255)*100)};return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`},e.prototype.toName=function(){if(this.a===0)return`transparent`;if(this.a<1)return!1;for(var e=`#`+Qn(this.r,this.g,this.b,!1),t=0,n=Object.entries(or);t=0;return!t&&r&&(e.startsWith(`hex`)||e===`name`)?e===`name`&&this.a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=zn(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=zn(n.l),new e(n)},e.prototype.tint=function(e){return e===void 0&&(e=10),this.mix(`white`,e)},e.prototype.shade=function(e){return e===void 0&&(e=10),this.mix(`black`,e)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=zn(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=zn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100;return new e({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o=4.5;case`AAlarge`:return r>=3;case`AAAsmall`:return r>=7;default:return!1}}function xr(e,t,n){n===void 0&&(n={includeFallbackColors:!1,level:`AA`,size:`small`});for(var r=null,i=0,a=n.includeFallbackColors,o=n.level,s=n.size,c=0,l=t;ci&&(i=d,r=new _r(u))}return br(e,r,{level:o,size:s})||!a?r:(n.includeFallbackColors=!1,xr(e,[`#fff`,`#000`],n))}var Sr=e((()=>{vr()}));function Cr(e,t){var n=new _r(e),r=`#`+er(n.r,n.g,n.b,n.a),i=r,a=n.gradientType?`GradientType = 1, `:``;if(t){var o=new _r(t);i=`#`+er(o.r,o.g,o.b,o.a)}return`progid:DXImageTransform.Microsoft.gradient(${a}startColorstr=${r},endColorstr=${i})`}var wr=e((()=>{ar(),vr()}));function Tr(e,t){var n={r:Un(e.r),g:Un(e.g),b:Un(e.b)};return e.a!==void 0&&(n.a=Number(e.a)),new _r(n,t)}function Er(){return new _r({r:Math.random(),g:Math.random(),b:Math.random()})}var Dr=e((()=>{vr(),Gn()}));function Or(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(Or(e));return e.count=t,n}var r=kr(e.hue,e.seed),i=Ar(r,e),a={h:r,s:i,v:jr(r,i,e)};return e.alpha!==void 0&&(a.a=e.alpha),new _r(a)}function kr(e,t){var n=Fr(Nr(e),t);return n<0&&(n=360+n),n}function Ar(e,t){if(t.hue===`monochrome`)return 0;if(t.luminosity===`random`)return Fr([0,100],t.seed);var n=Pr(e).saturationRange,r=n[0],i=n[1];switch(t.luminosity){case`bright`:r=55;break;case`dark`:r=i-10;break;case`light`:i=55;break;default:break}return Fr([r,i],t.seed)}function jr(e,t,n){var r=Mr(e,t),i=100;switch(n.luminosity){case`dark`:i=r+20;break;case`light`:r=(i+r)/2;break;case`random`:r=0,i=100;break;default:break}return Fr([r,i],n.seed)}function Mr(e,t){for(var n=Pr(e).lowerBounds,r=0;r=i&&t<=o){var c=(s-a)/(o-i),l=a-c*i;return c*t+l}}return 0}function Nr(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e==`string`){var n=Lr.find(function(t){return t.name===e});if(n){var r=Ir(n);if(r.hueRange)return r.hueRange}var i=new _r(e);if(i.isValid){var a=i.toHsv().h;return[a,a]}}return[0,360]}function Pr(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=Lr;t=i.hueRange[0]&&e<=i.hueRange[1])return i}throw Error(`Color not found`)}function Fr(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var i=t/233280;return Math.floor(r+i*(n-r))}function Ir(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],i=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,i]}}var Lr,Rr=e((()=>{vr(),Lr=[{name:`monochrome`,hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:`red`,hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:`orange`,hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:`yellow`,hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:`green`,hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:`blue`,hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:`purple`,hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:`pink`,hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}]})),zr=e((()=>{})),Br=n({TinyColor:()=>_r,bounds:()=>Lr,convertDecimalToHex:()=>tr,convertHexToDecimal:()=>nr,default:()=>Vr,fromRatio:()=>Tr,hslToRgb:()=>Yn,hsvToRgb:()=>Zn,inputToRGB:()=>cr,isReadable:()=>br,isValidCSSUnit:()=>ur,legacyRandom:()=>Er,mostReadable:()=>xr,names:()=>or,numberInputToObject:()=>ir,parseIntFromHex:()=>rr,random:()=>Or,readability:()=>yr,rgbToHex:()=>Qn,rgbToHsl:()=>qn,rgbToHsv:()=>Xn,rgbToRgb:()=>Kn,rgbaToArgbHex:()=>er,rgbaToHex:()=>$n,stringInputToObject:()=>lr,tinycolor:()=>gr,toMsFilter:()=>Cr}),Vr,Hr=e((()=>{vr(),vr(),sr(),Sr(),wr(),Dr(),hr(),Rr(),zr(),ar(),Vr=gr})),Ur=n({blue:()=>hi,cyan:()=>mi,geekblue:()=>gi,generate:()=>Xr,gold:()=>ui,green:()=>pi,grey:()=>yi,lime:()=>fi,magenta:()=>vi,orange:()=>R,presetDarkPalettes:()=>si,presetPalettes:()=>oi,presetPrimaryColors:()=>ai,purple:()=>_i,red:()=>ci,volcano:()=>li,yellow:()=>di});function Wr(e){var t=e.r,n=e.g,r=e.b,i=Xn(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function Gr(e){var t=e.r,n=e.g,r=e.b;return`#${Qn(t,n,r,!1)}`}function Kr(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function qr(e,t,n){var r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Zr*t:Math.round(e.h)+Zr*t:n?Math.round(e.h)+Zr*t:Math.round(e.h)-Zr*t;return r<0?r+=360:r>=360&&(r-=360),r}function Jr(e,t,n){if(e.h===0&&e.s===0)return e.s;var r=n?e.s-Qr*t:t===ri?e.s+Qr:e.s+$r*t;return r>1&&(r=1),n&&t===ni&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Yr(e,t,n){var r=n?e.v+ei*t:e.v-ti*t;return r>1&&(r=1),Number(r.toFixed(2))}function Xr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=cr(e),i=ni;i>0;--i){var a=Wr(r),o=Gr(cr({h:qr(a,i,!0),s:Jr(a,i,!0),v:Yr(a,i,!0)}));n.push(o)}n.push(Gr(r));for(var s=1;s<=ri;s+=1){var c=Wr(r),l=Gr(cr({h:qr(c,s),s:Jr(c,s),v:Yr(c,s)}));n.push(l)}return t.theme===`dark`?ii.map(function(e){var r=e.index,i=e.opacity;return Gr(Kr(cr(t.backgroundColor||`#141414`),cr(n[r]),i*100))}):n}var Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,R,di,fi,pi,mi,hi,gi,_i,vi,yi,bi=e((()=>{Hr(),Zr=2,Qr=.16,$r=.05,ei=.05,ti=.15,ni=5,ri=4,ii=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}],ai={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1890FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},oi={},si={},Object.keys(ai).forEach(function(e){oi[e]=Xr(ai[e]),oi[e].primary=oi[e][5],si[e]=Xr(ai[e],{theme:`dark`,backgroundColor:`#141414`}),si[e].primary=si[e][5]}),ci=oi.red,li=oi.volcano,ui=oi.gold,R=oi.orange,di=oi.yellow,fi=oi.lime,pi=oi.green,mi=oi.cyan,hi=oi.blue,gi=oi.geekblue,_i=oi.purple,vi=oi.magenta,yi=oi.grey}));function xi(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var Si=e((()=>{}));function Ci(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var wi=e((()=>{}));function Ti(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mark;return e?e.startsWith(`data-`)?e:`data-${e}`:Ii}function Ei(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Di(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function Oi(e){return Array.from((Li.get(e)||e).children).filter(function(e){return e.tagName===`STYLE`})}function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xi())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=Di(r),s=o===`prependQueue`,c=document.createElement(`style`);c.setAttribute(Pi,o),s&&a&&c.setAttribute(Fi,`${a}`),n!=null&&n.nonce&&(c.nonce=n?.nonce),c.innerHTML=e;var l=Ei(t),u=l.firstChild;if(r){if(s){var d=(t.styles||Oi(l)).filter(function(e){return[`prepend`,`prependQueue`].includes(e.getAttribute(Pi))?a>=Number(e.getAttribute(Fi)||0):!1});if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function Ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ei(t);return(t.styles||Oi(n)).find(function(n){return n.getAttribute(Ti(t))===e})}function ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ai(e,t);n&&Ei(t).removeChild(n)}function Mi(e,t){var n=Li.get(e);if(!n||!Ci(document,n)){var r=ki(``,t),i=r.parentNode;Li.set(e,i),e.removeChild(r)}}function Ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ei(n),i=Oi(r),a=N(N({},n),{},{styles:i});Mi(r,a);var o=Ai(t,a);if(o){var s;return(s=a.csp)!=null&&s.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o}var c=ki(e,a);return c.setAttribute(Ti(a),t),c}var Pi,Fi,Ii,Li,Ri=e((()=>{P(),Si(),wi(),Pi=`data-rc-order`,Fi=`data-rc-priority`,Ii=`rc-util-key`,Li=new Map})),zi=r(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Bi=r(((e,t)=>{var n=zi(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Vi=r(((e,t)=>{t.exports=Bi().Symbol})),Hi=r(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{t.exports=Array.isArray})),Wi=r(((e,t)=>{var n=Vi(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Gi=r(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Ki=r(((e,t)=>{var n=Vi(),r=Wi(),i=Gi(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),qi=r(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Ji=r(((e,t)=>{var n=Ki(),r=qi(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Yi=r(((e,t)=>{var n=Vi(),r=Hi(),i=Ui(),a=Ji(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),z=r(((e,t)=>{var n=Yi();function r(e){return e==null?``:n(e)}t.exports=r})),B=r(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r{var n=B();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Zi=r(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Qi=r(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),$i=r(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),ea=r(((e,t)=>{var n=Qi(),r=Zi(),i=$i();function a(e){return r(e)?i(e):n(e)}t.exports=a})),ta=r(((e,t)=>{var n=Xi(),r=Zi(),i=ea(),a=z();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),na=r(((e,t)=>{t.exports=ta()(`toUpperCase`)})),ra=r(((e,t)=>{var n=z(),r=na();function i(e){return r(n(e).toLowerCase())}t.exports=i})),ia=r(((e,t)=>{function n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i{function n(e){return function(t){return e?.[t]}}t.exports=n})),oa=r(((e,t)=>{t.exports=aa()({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`})})),sa=r(((e,t)=>{var n=oa(),r=z(),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function o(e){return e=r(e),e&&e.replace(i,n).replace(a,``)}t.exports=o})),ca=r(((e,t)=>{var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r(e){return e.match(n)||[]}t.exports=r})),la=r(((e,t)=>{var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function r(e){return n.test(e)}t.exports=r})),ua=r(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\u2700-\\u27bf`,a=`a-z\\xdf-\\xf6\\xf8-\\xff`,o=`\\xac\\xb1\\xd7\\xf7`,s=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,c=`\\u2000-\\u206f`,l=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,u=`A-Z\\xc0-\\xd6\\xd8-\\xde`,d=`\\ufe0e\\ufe0f`,f=o+s+c+l,p=`['’]`,m=`[`+f+`]`,h=`[`+r+`]`,g=`\\d+`,_=`[`+i+`]`,v=`[`+a+`]`,y=`[^`+n+f+g+i+a+u+`]`,b=`(?:`+h+`|\\ud83c[\\udffb-\\udfff])`,x=`[^`+n+`]`,S=`(?:\\ud83c[\\udde6-\\uddff]){2}`,C=`[\\ud800-\\udbff][\\udc00-\\udfff]`,w=`[`+u+`]`,T=`\\u200d`,ee=`(?:`+v+`|`+y+`)`,E=`(?:`+w+`|`+y+`)`,D=`(?:`+p+`(?:d|ll|m|re|s|t|ve))?`,te=`(?:`+p+`(?:D|LL|M|RE|S|T|VE))?`,ne=b+`?`,re=`[`+d+`]?`,O=`(?:`+T+`(?:`+[x,S,C].join(`|`)+`)`+re+ne+`)*`,ie=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,ae=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,oe=re+ne+O,se=`(?:`+[_,S,C].join(`|`)+`)`+oe,ce=RegExp([w+`?`+v+`+`+D+`(?=`+[m,w,`$`].join(`|`)+`)`,E+`+`+te+`(?=`+[m,w+ee,`$`].join(`|`)+`)`,w+`?`+ee+`+`+D,w+`+`+te,ae,ie,g,se].join(`|`),`g`);function le(e){return e.match(ce)||[]}t.exports=le})),da=r(((e,t)=>{var n=ca(),r=la(),i=z(),a=ua();function o(e,t,o){return e=i(e),t=o?void 0:t,t===void 0?r(e)?a(e):n(e):e.match(t)||[]}t.exports=o})),fa=r(((e,t)=>{var n=ia(),r=sa(),i=da(),a=RegExp(`['’]`,`g`);function o(e){return function(t){return n(i(r(t).replace(a,``)),e,``)}}t.exports=o})),pa=r(((e,t)=>{var n=ra();t.exports=fa()(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)})}));P(),_(),bi(),Xe(),Ri();var ma=t(pa());function ha(e,t){Ge(e,`[@ant-design/icons] ${t}`)}function ga(e){return v(e)===`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(v(e.icon)===`object`||typeof e.icon==`function`)}function _a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[(0,ma.default)(n)]=r}return t},{})}function va(e,t,n){return n?L.createElement(e.tag,N(N({key:t},_a(e.attrs)),n),(e.children||[]).map(function(n,r){return va(n,`${t}-${e.tag}-${r}`)})):L.createElement(e.tag,N({key:t},_a(e.attrs)),(e.children||[]).map(function(n,r){return va(n,`${t}-${e.tag}-${r}`)}))}function ya(e){return Xr(e)[0]}function ba(e){return e?Array.isArray(e)?e:[e]:[]}var xa=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Sa=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xa,t=(0,L.useContext)(Yt).csp;(0,L.useEffect)(function(){Ni(e,`@ant-design-icons`,{prepend:!0,csp:t})},[])};Ln(),P();var Ca=[`icon`,`className`,`onClick`,`style`,`primaryColor`,`secondaryColor`],wa={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function Ta(e){var t=e.primaryColor,n=e.secondaryColor;wa.primaryColor=t,wa.secondaryColor=n||ya(t),wa.calculated=!!n}function Ea(){return N({},wa)}var Da=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,a=e.primaryColor,o=e.secondaryColor,s=In(e,Ca),c=wa;if(a&&(c={primaryColor:a,secondaryColor:o||ya(a)}),Sa(),ha(ga(t),`icon should be icon definiton, but got ${t}`),!ga(t))return null;var l=t;return l&&typeof l.icon==`function`&&(l=N(N({},l),{},{icon:l.icon(c.primaryColor,c.secondaryColor)})),va(l.icon,`svg-${l.name}`,N({className:n,onClick:r,style:i,"data-icon":l.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`},s))};Da.displayName=`IconReact`,Da.getTwoToneColors=Ea,Da.setTwoToneColors=Ta,u();function V(e){var t=h(ba(e),2),n=t[0],r=t[1];return Da.setTwoToneColors({primaryColor:n,secondaryColor:r})}function Oa(){var e=Da.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}P(),u(),b(),Ln();var ka=t(Fe()),Aa=[`className`,`icon`,`spin`,`rotate`,`tabIndex`,`onClick`,`twoToneColor`];V(`#1890ff`);var ja=L.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,c=e.twoToneColor,l=In(e,Aa),u=L.useContext(Yt),d=u.prefixCls,f=d===void 0?`anticon`:d,p=u.rootClassName,m=(0,ka.default)(p,f,C(C({},`${f}-${r.name}`,!!r.name),`${f}-spin`,!!i||r.name===`loading`),n),g=o;g===void 0&&s&&(g=-1);var _=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,v=h(ba(c),2),y=v[0],b=v[1];return L.createElement(`span`,N(N({role:`img`,"aria-label":r.name},l),{},{ref:t,tabIndex:g,onClick:s,className:m}),L.createElement(Da,{icon:r,primaryColor:y,secondaryColor:b,style:_}))});ja.displayName=`AntdIcon`,ja.getTwoToneColor=Oa,ja.setTwoToneColor=V,P();var Ma=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Nn}))}),Na={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`};P();var Pa=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Na}))}),Fa={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`};P();var Ia=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Fa}))}),La={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`info-circle`,theme:`filled`};P();var Ra=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:La}))}),za={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`};P();var Ba=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:za}))});function Va(e,t){this.v=e,this.k=t}var Ha=e((()=>{}));function Ua(e,t,n,r){var i=Object.defineProperty;try{i({},``,{})}catch{i=0}Ua=function(e,t,n,r){function a(t,n){Ua(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a(`next`,0),a(`throw`,1),a(`return`,2))},Ua(e,t,n,r)}var Wa=e((()=>{}));function Ga(){var e,t,n=typeof Symbol==`function`?Symbol:{},r=n.iterator||`@@iterator`,i=n.toStringTag||`@@toStringTag`;function a(n,r,i,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Ua(l,`_invoke`,function(n,r,i){var a,s,c,l=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!i&&t3?(i=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&pr||r>m)&&(a[4]=n,a[5]=r,f.n=m,s=0))}if(i||n>1)return o;throw d=!0,r}return function(i,u,m){if(l>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),s=u,c=m;(t=s<2?e:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(i=`next`),t=a[i]){if(!(t=t.call(a,c)))throw TypeError(`iterator result is not an object`);if(!t.done)return t;c=t.value,s<2&&(s=0)}else s===1&&(t=a.return)&&t.call(a),s<2&&(c=TypeError(`The iterator does not provide a '`+i+`' method`),s=1);a=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,i,a),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ua(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ua(e,i,`GeneratorFunction`)),e.prototype=Object.create(d),e}return c.prototype=l,Ua(d,`constructor`,l),Ua(l,`constructor`,c),c.displayName=`GeneratorFunction`,Ua(l,i,`GeneratorFunction`),Ua(d),Ua(d,i,`Generator`),Ua(d,r,function(){return this}),Ua(d,`toString`,function(){return`[object Generator]`}),(Ga=function(){return{w:a,m:f}})()}var Ka=e((()=>{Wa()}));function qa(e,t){function n(r,i,a,o){try{var s=e[r](i),c=s.value;return c instanceof Va?t.resolve(c.v).then(function(e){n(`next`,e,a,o)},function(e){n(`throw`,e,a,o)}):t.resolve(c).then(function(e){s.value=e,a(s)},function(e){return n(`throw`,e,a,o)})}catch(e){o(e)}}var r;this.next||(Ua(qa.prototype),Ua(qa.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),Ua(this,`_invoke`,function(e,i,a){function o(){return new t(function(t,r){n(e,a,t,r)})}return r=r?r.then(o,o):o()},!0)}var Ja=e((()=>{Ha(),Wa()}));function Ya(e,t,n,r,i){return new qa(Ga().w(e,t,n,r),i||Promise)}var Xa=e((()=>{Ka(),Ja()}));function Za(e,t,n,r,i){var a=Ya(e,t,n,r,i);return a.next().then(function(e){return e.done?e.value:a.next()})}var Qa=e((()=>{Xa()}));function $a(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}var eo=e((()=>{}));function to(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],n=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(v(e)+` is not iterable`)}var no=e((()=>{_()}));function ro(){var e=Ga(),t=e.m(ro),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===n||(t.displayName||t.name)===`GeneratorFunction`)}var i={throw:1,return:2,break:3,continue:3};function a(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,to(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(ro=function(){return{wrap:function(t,n,r,i){return e.w(a(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new Va(e,t)},AsyncIterator:qa,async:function(e,t,n,i,o){return(r(t)?Ya:Za)(a(e),t,n,i,o)},keys:$a,values:to}})()}var io=e((()=>{Ha(),Ka(),Qa(),Xa(),Ja(),eo(),no()}));function ao(e){var t=go.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&v(t)===`object`&&(t.usingClientEntryPoint=e)}function oo(e,t){ao(!0);var n=t[xo]||bo(t);ao(!1),n.render(e),t[xo]=n}function so(e,t){vo?.(e,t)}function co(e,t){if(bo){oo(e,t);return}so(e,t)}function lo(e){return uo.apply(this,arguments)}function uo(){return uo=w(ro().mark(function e(t){return ro().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,Promise.resolve().then(function(){var e;(e=t[xo])==null||e.unmount(),delete t[xo]}));case 1:case`end`:return e.stop()}},e)})),uo.apply(this,arguments)}function fo(e){yo(e)}function po(e){return mo.apply(this,arguments)}function mo(){return mo=w(ro().mark(function e(t){return ro().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(bo===void 0){e.next=2;break}return e.abrupt(`return`,lo(t));case 2:fo(t);case 3:case`end`:return e.stop()}},e)})),mo.apply(this,arguments)}var ho,go,_o,vo,yo,bo,xo,So=e((()=>{io(),x(),_(),P(),ho=t(D()),go=N({},ho),_o=go.version,vo=go.render,yo=go.unmountComponentAtNode;try{Number((_o||``).split(`.`)[0])>=18&&(bo=go.createRoot)}catch{}xo=`__rc_react_root__`}));function H(e){var t=e.children,n=In(e,wo);return Co.createElement(To.Provider,{value:n},t)}var Co,wo,To,Eo=e((()=>{Ln(),Co=t(i()),wo=[`children`],To=Co.createContext({})})),Do,Oo,U=e((()=>{be(),Ce(),Pe(),Jt(),Do=t(i()),Oo=function(e){Ne(n,e);var t=qt(n);function n(){return ye(this,n),t.apply(this,arguments)}return Se(n,[{key:`render`,value:function(){return this.props.children}}]),n}(Do.Component)}));function W(e){var t=ko.useRef();return t.current=e,ko.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}var ko,Ao=e((()=>{ko=t(i())})),jo,Mo,No,Po,Fo=e((()=>{jo=t(i()),Si(),Mo=xi()?jo.useLayoutEffect:jo.useEffect,No=function(e,t){var n=jo.useRef(!0);Mo(function(){return e(n.current)},t),Mo(function(){return n.current=!1,function(){n.current=!0}},[])},Po=function(e,t){No(function(t){if(!t)return e()},t)}}));function Io(e){var t=Lo.useRef(!1),n=h(Lo.useState(e),2),r=n[0],i=n[1];Lo.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(e,n){n&&t.current||i(e)}return[r,a]}var Lo,Ro=e((()=>{u(),Lo=t(i())}));function zo(e){return e!==void 0}function Bo(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=h(Io(function(){return zo(i)?i:zo(r)?typeof r==`function`?r():r:typeof e==`function`?e():e}),2),c=s[0],l=s[1],u=i===void 0?c:i,d=o?o(u):u,f=W(a),p=h(Io([u]),2),m=p[0],g=p[1];return Po(function(){var e=m[0];c!==e&&f(c,e)},[m]),Po(function(){zo(i)||l(i)},[i]),[d,W(function(e,t){l(e,t),g([u],t)})]}var Vo=e((()=>{u(),Ao(),Fo(),Ro()})),Ho=e((()=>{Ao(),Vo(),vt(),cn(),hn(),Xe()}));function Uo(e){var t=h(Wo.useReducer(function(e){return e+1},0),2)[1],n=Wo.useRef(e);return[W(function(){return n.current}),W(function(e){n.current=typeof e==`function`?e(n.current):e,t()})]}var Wo,Go=e((()=>{u(),Wo=t(i()),Ao()})),Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts=e((()=>{Ko=`none`,qo=`appear`,Jo=`enter`,Yo=`leave`,Xo=`none`,Zo=`prepare`,Qo=`start`,$o=`active`,es=`prepared`}));function ns(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function rs(e,t){var n={animationend:ns(`Animation`,`AnimationEnd`),transitionend:ns(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}function is(e){if(cs[e])return cs[e];var t=os[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i{_(),Si(),os=rs(xi(),typeof window<`u`?window:{}),ss={},xi()&&(ss=document.createElement(`div`).style),cs={},ls=is(`animationend`),us=is(`transitionend`),ds=!!(ls&&us),fs=ls||`animationend`,ps=us||`transitionend`})),hs,gs,_s,vs=e((()=>{hs=t(i()),gs=t(i()),ms(),_s=(function(e){var t=(0,gs.useRef)();function n(t){t&&(t.removeEventListener(ps,e),t.removeEventListener(fs,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(ps,e),r.addEventListener(fs,e),t.current=r)}return hs.useEffect(function(){return function(){n(t.current)}},[]),[r,n]})})),ys,bs,xs=e((()=>{Si(),ys=t(i()),bs=xi()?ys.useLayoutEffect:ys.useEffect}));function Ss(e){Es.delete(e)}var Cs,ws,Ts,Es,Ds,Os=e((()=>{Cs=function(e){return+setTimeout(e,16)},ws=function(e){return clearTimeout(e)},typeof window<`u`&&`requestAnimationFrame`in window&&(Cs=function(e){return window.requestAnimationFrame(e)},ws=function(e){return window.cancelAnimationFrame(e)}),Ts=0,Es=new Map,Ds=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ts+=1;var n=Ts;function r(t){if(t===0)Ss(n),e();else{var i=Cs(function(){r(t-1)});Es.set(n,i)}}return r(t),n},Ds.cancel=function(e){var t=Es.get(e);return Ss(e),ws(t)}})),ks,As,js=e((()=>{Os(),ks=t(i()),As=(function(){var e=ks.useRef(null);function t(){Ds.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Ds(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return ks.useEffect(function(){return function(){t()}},[]),[n,t]})}));function Ms(e){return e===`active`||e===`end`}var Ns,Ps,Fs,Is,Ls=e((()=>{u(),Ro(),Ns=t(i()),ts(),xs(),js(),Ps=[Zo,Qo,$o,`end`],Fs=[Zo,es],Is=(function(e,t,n){var r=h(Io(Xo),2),i=r[0],a=r[1],o=h(As(),2),s=o[0],c=o[1];function l(){a(Zo,!0)}var u=t?Fs:Ps;return bs(function(){if(i!==`none`&&i!==`end`){var e=u[u.indexOf(i)+1],t=n(i);t===!1?a(e,!0):e&&s(function(n){function r(){n.isCanceled()||a(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,i]),Ns.useEffect(function(){return function(){c()}},[]),[l,i]})}));function Rs(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,c=r.motionLeave,l=c===void 0?!0:c,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,_=r.onEnterStart,v=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,w=r.onEnterEnd,T=r.onLeaveEnd,ee=r.onVisibleChanged,E=h(Io(),2),D=E[0],te=E[1],ne=h(Uo(Ko),2),re=ne[0],O=ne[1],ie=h(Io(null),2),ae=ie[0],oe=ie[1],se=re(),ce=(0,G.useRef)(!1),le=(0,G.useRef)(null);function k(){return n()}var ue=(0,G.useRef)(!1);function de(){O(Ko),oe(null,!0)}var fe=W(function(e){var t=re();if(t!==`none`){var n=k();if(!(e&&!e.deadline&&e.target!==n)){var r=ue.current,i;t===`appear`&&r?i=S?.(n,e):t===`enter`&&r?i=w?.(n,e):t===`leave`&&r&&(i=T?.(n,e)),r&&i!==!1&&de()}}}),pe=h(_s(fe),1)[0],me=function(e){switch(e){case qo:return C(C(C({},Zo,f),Qo,g),$o,y);case Jo:return C(C(C({},Zo,p),Qo,_),$o,b);case Yo:return C(C(C({},Zo,m),Qo,v),$o,x);default:return{}}},he=zs.useMemo(function(){return me(se)},[se]),ge=h(Is(se,!e,function(e){if(e===`prepare`){var t=he[Zo];return t?t(k()):!1}return ve in he&&oe(he[ve]?.call(he,k(),null)||null),ve===`active`&&se!==`none`&&(pe(k()),u>0&&(clearTimeout(le.current),le.current=setTimeout(function(){fe({deadline:!0})},u))),ve===`prepared`&&de(),!0}),2),_e=ge[0],ve=ge[1];ue.current=Ms(ve);var A=(0,G.useRef)(null);bs(function(){if(!(ce.current&&A.current===t)){te(t);var n=ce.current;ce.current=!0;var r;!n&&t&&s&&(r=qo),n&&t&&a&&(r=Jo),(n&&!t&&l||!n&&d&&!t&&l)&&(r=Yo);var i=me(r);r&&(e||i.prepare)?(O(r),_e()):O(Ko),A.current=t}},[t]),(0,G.useEffect)(function(){(se===`appear`&&!s||se===`enter`&&!a||se===`leave`&&!l)&&O(Ko)},[s,a,l]),(0,G.useEffect)(function(){return function(){ce.current=!1,clearTimeout(le.current)}},[]);var j=zs.useRef(!1);(0,G.useEffect)(function(){D&&(j.current=!0),D!==void 0&&se===`none`&&((j.current||D)&&ee?.(D),j.current=!0)},[D,se]);var ye=ae;return he.prepare&&ve===`start`&&(ye=N({transition:`none`},ye)),[se,ve,ye,D??t]}var zs,G,Bs=e((()=>{P(),b(),u(),Ho(),Ro(),Go(),zs=t(i()),G=t(i()),ts(),vs(),xs(),Ls()}));function Vs(e){var t=e;v(e)===`object`&&(t=e.transitionSupport);function n(e,n){return!!(e.motionName&&t&&n!==!1)}var r=Us.forwardRef(function(e,t){var r=e.visible,i=r===void 0?!0:r,a=e.removeOnLeave,o=a===void 0?!0:a,s=e.forceRender,c=e.children,l=e.motionName,u=e.leavedClassName,d=e.eventProps,f=Us.useContext(To).motion,p=n(e,f),m=(0,Ws.useRef)(),g=(0,Ws.useRef)();function _(){try{return m.current instanceof HTMLElement?m.current:et(g.current)}catch{return null}}var v=h(Rs(p,i,_,e),4),y=v[0],b=v[1],x=v[2],S=v[3],w=Us.useRef(S);S&&(w.current=!0);var T=Us.useCallback(function(e){m.current=e,pt(t,e)},[t]),ee,E=N(N({},d),{},{visible:i});if(!c)ee=null;else if(y===`none`)ee=S?c(N({},E),T):!o&&w.current&&u?c(N(N({},E),{},{className:u}),T):s||!o&&!u?c(N(N({},E),{},{style:{display:`none`}}),T):null;else{var D;b===`prepare`?D=`prepare`:Ms(b)?D=`active`:b===`start`&&(D=`start`);var te=as(l,`${y}-${D}`);ee=c(N(N({},E),{},{className:(0,Hs.default)(as(l,y),C(C({},te,te&&D),l,typeof l==`string`)),style:x}),T)}return Us.isValidElement(ee)&>(ee)&&(_t(ee)||(ee=Us.cloneElement(ee,{ref:T}))),Us.createElement(Oo,{ref:g},ee)});return r.displayName=`CSSMotion`,r}var Hs,Us,Ws,Gs,Ks=e((()=>{b(),P(),u(),_(),Hs=t(Fe()),rt(),vt(),Us=t(i()),Ws=t(i()),Eo(),U(),Bs(),Ls(),ts(),ms(),Gs=Vs(ds)}));function qs(e){var t=e&&v(e)===`object`&&`key`in e?e:{key:e};return N(N({},t),{},{key:String(t.key)})}function Js(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(qs)}function Ys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=Js(e),o=Js(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==`remove`}),n.forEach(function(t){t.key===e&&(t.status=Xs)})}),n}var Xs,Zs,Qs,$s=e((()=>{P(),_(),Xs=`keep`,Zs=`remove`,Qs=`removed`}));function ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gs,n=function(e){Ne(r,e);var n=qt(r);function r(){var e;ye(this,r);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),C(M(e),`state`,{keyEntities:[]}),C(M(e),`removeKey`,function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key===t?N(N({},e),{},{status:Qs}):e})}},function(){e.state.keyEntities.filter(function(e){return e.status!==`removed`}).length===0&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Se(r,[{key:`render`,value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,o=r.onVisibleChanged;r.onAllRemoved;var s=In(r,nc),c=i||tc.Fragment,l={};return ic.forEach(function(e){l[e]=s[e],delete s[e]}),delete s.keys,tc.createElement(c,s,n.map(function(n,r){var i=n.status,s=In(n,rc),c=i===`add`||i===`keep`;return tc.createElement(t,A({},l,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(t){o?.(t,{key:s.key}),t||e.removeKey(s.key)}}),function(e,t){return a(N(N({},e),{},{index:r}),t)})}))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.keys,r=t.keyEntities;return{keyEntities:Ys(r,Js(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!(t&&t.status===`removed`&&e.status===`remove`)})}}}]),r}(tc.Component);return C(n,`defaultProps`,{component:`div`}),n}var tc,nc,rc,ic,ac,oc=e((()=>{j(),Ln(),P(),be(),Ce(),we(),Pe(),Jt(),b(),tc=t(i()),Ks(),$s(),ms(),nc=[`component`,`children`,`onVisibleChanged`,`onAllRemoved`],rc=[`status`],ic=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`],ac=ec(ds)})),sc=n({CSSMotionList:()=>ac,Provider:()=>H,default:()=>cc}),cc,lc=e((()=>{Ks(),oc(),Eo(),cc=Gs})),uc,dc,fc,pc,mc,hc=e((()=>{j(),b(),be(),Ce(),Pe(),Jt(),uc=t(i()),dc=t(i()),fc=t(D()),pc=t(Fe()),mc=function(e){Ne(n,e);var t=qt(n);function n(){var e;ye(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),e.closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,i=n.noticeKey;r&&r(i)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout(function(){e.close()},e.props.duration*1e3))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return Se(n,[{key:`componentDidMount`,value:function(){this.startCloseTimer()}},{key:`componentDidUpdate`,value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:`componentWillUnmount`,value:function(){this.clearCloseTimer()}},{key:`restartCloseTimer`,value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:`render`,value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,i=t.closable,a=t.closeIcon,o=t.style,s=t.onClick,c=t.children,l=t.holder,u=`${n}-notice`,d=Object.keys(this.props).reduce(function(t,n){return(n.substr(0,5)===`data-`||n.substr(0,5)===`aria-`||n===`role`)&&(t[n]=e.props[n]),t},{}),f=uc.createElement(`div`,A({className:(0,pc.default)(u,r,C({},`${u}-closable`,i)),style:o,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},d),uc.createElement(`div`,{className:`${u}-content`},c),i?uc.createElement(`a`,{tabIndex:0,onClick:this.close,className:`${u}-close`},a||uc.createElement(`span`,{className:`${u}-close-x`})):null);return l?fc.createPortal(f,l):f}}]),n}(dc.Component),mc.defaultProps={onClose:function(){},duration:1.5}}));function gc(e){var t=_c.useRef({}),n=h(_c.useState([]),2),r=n[0],i=n[1];function a(n){var r=!0;e.add(n,function(e,n){var a=n.key;if(e&&(!t.current[a]||r)){var o=_c.createElement(mc,A({},n,{holder:e}));t.current[a]=o,i(function(e){var t=e.findIndex(function(e){return e.key===n.key});if(t===-1)return[].concat(nn(e),[o]);var r=nn(e);return r[t]=o,r})}r=!1})}return[a,_c.createElement(_c.Fragment,null,r)]}var _c,K=e((()=>{rn(),j(),u(),_c=t(i()),hc()}));function vc(){var e=Cc;return Cc+=1,`rcNotification_${wc}_${e}`}var yc,bc,xc,Sc,Cc,wc,Tc,Ec=e((()=>{Ln(),j(),P(),be(),Ce(),Pe(),Jt(),yc=t(i()),bc=t(i()),So(),xc=t(Fe()),lc(),hc(),K(),Sc=[`getContainer`],Cc=0,wc=Date.now(),Tc=function(e){Ne(n,e);var t=qt(n);function n(){var e;ye(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),e.state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key??vc(),i=N(N({},t),{},{key:r}),a=e.props.maxCount;e.setState(function(e){var t=e.notices,o=t.map(function(e){return e.notice.key}).indexOf(r),s=t.concat();return o===-1?(a&&t.length>=a&&(i.key=s[0].notice.key,i.updateMark=vc(),i.userPassKey=r,s.shift()),s.push({notice:i,holderCallback:n})):s.splice(o,1,{notice:i,holderCallback:n}),{notices:s}})},e.remove=function(t){e.setState(function(e){return{notices:e.notices.filter(function(e){var n=e.notice,r=n.key;return(n.userPassKey??r)!==t})}})},e.noticePropsMap={},e}return Se(n,[{key:`getTransitionName`,value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r=`${t}-${n}`),r}},{key:`render`,value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,i=n.className,a=n.closeIcon,o=n.style,s=[];return t.forEach(function(n,i){var o=n.notice,c=n.holderCallback,l=i===t.length-1?o.updateMark:void 0,u=o.key,d=o.userPassKey,f=N(N(N({prefixCls:r,closeIcon:a},o),o.props),{},{key:u,noticeKey:d||u,updateMark:l,onClose:function(t){var n;e.remove(t),(n=o.onClose)==null||n.call(o)},onClick:o.onClick,children:o.content});s.push(u),e.noticePropsMap[u]={props:f,holderCallback:c}}),yc.createElement(`div`,{className:(0,xc.default)(r,i),style:o},yc.createElement(ac,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},function(t){var n=t.key,i=t.className,a=t.style,o=t.visible,s=e.noticePropsMap[n],c=s.props,l=s.holderCallback;return l?yc.createElement(`div`,{key:n,className:(0,xc.default)(i,`${r}-hook-holder`),style:N({},a),ref:function(t){n!==void 0&&(t?(e.hookRefs.set(n,t),l(t,c)):e.hookRefs.delete(n))}}):yc.createElement(mc,A({},c,{className:(0,xc.default)(i,c?.className),style:N(N({},a),c?.style),visible:o}))}))}}]),n}(bc.Component),Tc.newInstance=void 0,Tc.defaultProps={prefixCls:`rc-notification`,animation:`fade`,style:{top:65,left:`50%`}},Tc.newInstance=function(e,t){var n=e||{},r=n.getContainer,i=In(n,Sc),a=document.createElement(`div`);r?r().appendChild(a):document.body.appendChild(a);var o=!1;function s(e){o||(o=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){po(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return gc(e)}}))}co(yc.createElement(Tc,A({},i,{ref:s})),a)}})),Dc=n({default:()=>Oc}),Oc,kc=e((()=>{Ec(),Oc=Tc}));j(),u(),K();function Ac(e,t){return function(){var n,r,i=null,a=h(gc({add:function(e,t){i?.component.add(e,t)}}),2),o=a[0],s=a[1];function c(a){var s=a.prefixCls,c=n(`message`,s),l=n(),u=a.key||Bc(),d=new Promise(function(n){var s=function(){return typeof a.onClose==`function`&&a.onClose(),n(!0)};e(A(A({},a),{prefixCls:c,rootPrefixCls:l,getPopupContainer:r}),function(e){var n=e.prefixCls;i=e.instance,o(t(A(A({},a),{key:u,onClose:s}),n))})}),f=function(){i&&i.removeNotice(u)};return f.then=function(e,t){return d.then(e,t)},f.promise=d,f}var l=L.useRef({});return l.current.open=c,Wc.forEach(function(e){return qc(l.current,e)}),[l.current,L.createElement(Cl,{key:`holder`},function(e){return n=e.getPrefixCls,r=e.getPopupContainer,s})]}}j(),b(),kc();var q,jc=3,Mc,Nc=1,Pc=``,Fc=`move-up`,Ic=!1,Lc,Rc,zc=!1;function Bc(){return Nc++}function Vc(e){e.top!==void 0&&(Mc=e.top,q=null),e.duration!==void 0&&(jc=e.duration),e.prefixCls!==void 0&&(Pc=e.prefixCls),e.getContainer!==void 0&&(Lc=e.getContainer,q=null),e.transitionName!==void 0&&(Fc=e.transitionName,q=null,Ic=!0),e.maxCount!==void 0&&(Rc=e.maxCount,q=null),e.rtl!==void 0&&(zc=e.rtl)}function Hc(e,t){var n=e.prefixCls,r=e.getPopupContainer,i=Ll(),a=i.getPrefixCls,o=i.getRootPrefixCls,s=i.getIconPrefixCls,c=a(`message`,n||Pc),l=o(e.rootPrefixCls,c),u=s();if(q){t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:q});return}var d={prefixCls:c,transitionName:Ic?Fc:`${l}-${Fc}`,style:{top:Mc},getContainer:Lc||r,maxCount:Rc};Oc.newInstance(d,function(e){if(q){t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:q});return}q=e,t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:e})})}var Uc={info:Ra,success:Ma,error:Pa,warning:Ia,loading:Ba},Wc=Object.keys(Uc);function Gc(e,t,n){var r=e.duration===void 0?jc:e.duration,i=Uc[e.type],a=(0,ka.default)(`${t}-custom-content`,C(C({},`${t}-${e.type}`,e.type),`${t}-rtl`,zc===!0));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:L.createElement(zl,{iconPrefixCls:n},L.createElement(`div`,{className:a},e.icon||i&&L.createElement(i,null),L.createElement(`span`,null,e.content))),onClose:e.onClose,onClick:e.onClick}}function J(e){var t=e.key||Bc(),n=new Promise(function(n){var r=function(){return typeof e.onClose==`function`&&e.onClose(),n(!0)};Hc(e,function(n){var i=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(Gc(A(A({},e),{key:t,onClose:r}),i,a))})}),r=function(){var n;q&&(q.removeNotice(t),(n=e.onClose)==null||n.call(e))};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r}function Kc(e){return Object.prototype.toString.call(e)===`[object Object]`&&!!e.content}var Y={open:J,config:Vc,destroy:function(e){if(q)if(e){var t=q.removeNotice;t(e)}else{var n=q.destroy;n(),q=null}}};function qc(e,t){e[t]=function(n,r,i){return Kc(n)?e.open(A(A({},n),{type:t})):(typeof r==`function`&&(i=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:i}))}}Wc.forEach(function(e){return qc(Y,e)}),Y.warn=Y.warning,Y.useMessage=Ac(Hc,Gc);var Jc={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`};P();var Yc=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Jc}))}),Xc={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z`}}]},name:`close-circle`,theme:`outlined`};P();var Zc=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Xc}))}),Qc={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`};P();var $c=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:Qc}))}),el={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z`}}]},name:`exclamation-circle`,theme:`outlined`};P();var tl=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:el}))}),nl={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z`}}]},name:`info-circle`,theme:`outlined`};P();var rl=L.forwardRef(function(e,t){return L.createElement(ja,N(N({},e),{},{ref:t,icon:nl}))});j(),u(),K();function il(e,t){return function(){var n,r=null,i=h(gc({add:function(e,t){r?.component.add(e,t)}}),2),a=i[0],o=i[1];function s(i){var o=i.prefixCls,s=n(`notification`,o);e(A(A({},i),{prefixCls:s}),function(e){var n=e.prefixCls;r=e.instance,a(t(i,n))})}var c=L.useRef({});return c.current.open=s,[`success`,`info`,`warning`,`error`].forEach(function(e){c.current[e]=function(t){return c.current.open(A(A({},t),{type:e}))}}),[c.current,L.createElement(Cl,{key:`holder`},function(e){return n=e.getPrefixCls,o})]}}j(),b(),kc();var al={},ol=4.5,sl=24,cl=24,ll=``,ul=`topRight`,dl,fl,pl=!1,ml;function hl(e){var t=e.duration,n=e.placement,r=e.bottom,i=e.top,a=e.getContainer,o=e.closeIcon,s=e.prefixCls;s!==void 0&&(ll=s),t!==void 0&&(ol=t),n===void 0?e.rtl&&(ul=`topLeft`):ul=n,r!==void 0&&(cl=r),i!==void 0&&(sl=i),a!==void 0&&(dl=a),o!==void 0&&(fl=o),e.rtl!==void 0&&(pl=e.rtl),e.maxCount!==void 0&&(ml=e.maxCount)}function gl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sl,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cl,r;switch(e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n};break}return r}function _l(e,t){var n=e.placement,r=n===void 0?ul:n,i=e.top,a=e.bottom,o=e.getContainer,s=o===void 0?dl:o,c=e.prefixCls,l=Ll(),u=l.getPrefixCls,d=l.getIconPrefixCls,f=u(`notification`,c||ll),p=d(),m=`${f}-${r}`,h=al[m];if(h){Promise.resolve(h).then(function(e){t({prefixCls:`${f}-notice`,iconPrefixCls:p,instance:e})});return}var g=(0,ka.default)(`${f}-${r}`,C({},`${f}-rtl`,pl===!0));al[m]=new Promise(function(e){Oc.newInstance({prefixCls:f,className:g,style:gl(r,i,a),getContainer:s,maxCount:ml},function(n){e(n),t({prefixCls:`${f}-notice`,iconPrefixCls:p,instance:n})})})}var vl={success:Yc,info:rl,error:Zc,warning:tl};function yl(e,t,n){var r=e.duration,i=e.icon,a=e.type,o=e.description,s=e.message,c=e.btn,l=e.onClose,u=e.onClick,d=e.key,f=e.style,p=e.className,m=e.closeIcon,h=m===void 0?fl:m,g=e.props,_=r===void 0?ol:r,v=null;i?v=L.createElement(`span`,{className:`${t}-icon`},e.icon):a&&(v=L.createElement(vl[a]||null,{className:`${t}-icon ${t}-icon-${a}`}));var y=h===void 0?L.createElement(`span`,{className:`${t}-close-x`},L.createElement($c,{className:`${t}-close-icon`})):h,b=!o&&v?L.createElement(`span`,{className:`${t}-message-single-line-auto-margin`}):null;return{content:L.createElement(zl,{iconPrefixCls:n},L.createElement(`div`,{className:v?`${t}-with-icon`:``,role:`alert`},v,L.createElement(`div`,{className:`${t}-message`},b,s),L.createElement(`div`,{className:`${t}-description`},o),c?L.createElement(`span`,{className:`${t}-btn`},c):null)),duration:_,closable:!0,closeIcon:y,onClose:l,onClick:u,key:d,style:f||{},className:(0,ka.default)(p,C({},`${t}-${a}`,!!a)),props:g}}function bl(e){_l(e,function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(yl(e,n,r))})}var xl={open:bl,close:function(e){Object.keys(al).forEach(function(t){return Promise.resolve(al[t]).then(function(t){t.removeNotice(e)})})},config:hl,destroy:function(){Object.keys(al).forEach(function(e){Promise.resolve(al[e]).then(function(e){e.destroy()}),delete al[e]})}};[`success`,`info`,`warning`,`error`].forEach(function(e){xl[e]=function(t){return xl.open(A(A({},t),{type:e}))}}),xl.warn=xl.warning,xl.useNotification=il(_l,yl);var Sl=L.createContext({getPrefixCls:function(e,t){return t||(e?`ant-${e}`:`ant`)}}),Cl=Sl.Consumer;bi(),Hr(),Si(),Ri();var wl=`-ant-${Date.now()}-${Math.random()}`;function Tl(e,t){var n={},r=function(e,t){var n=e.clone();return n=t?.(n)||n,n.toRgbString()},i=function(e,t){var i=new _r(e),a=Xr(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){i(t.primaryColor,`primary`);var a=new _r(t.primaryColor),o=Xr(a.toRgbString());o.forEach(function(e,t){n[`primary-${t+1}`]=e}),n[`primary-color-deprecated-l-35`]=r(a,function(e){return e.lighten(35)}),n[`primary-color-deprecated-l-20`]=r(a,function(e){return e.lighten(20)}),n[`primary-color-deprecated-t-20`]=r(a,function(e){return e.tint(20)}),n[`primary-color-deprecated-t-50`]=r(a,function(e){return e.tint(50)}),n[`primary-color-deprecated-f-12`]=r(a,function(e){return e.setAlpha(e.getAlpha()*.12)});var s=new _r(o[0]);n[`primary-color-active-deprecated-f-30`]=r(s,function(e){return e.setAlpha(e.getAlpha()*.3)}),n[`primary-color-active-deprecated-d-02`]=r(s,function(e){return e.darken(2)})}return t.successColor&&i(t.successColor,`success`),t.warningColor&&i(t.warningColor,`warning`),t.errorColor&&i(t.errorColor,`error`),t.infoColor&&i(t.infoColor,`info`),` + :root { + ${Object.keys(n).map(function(t){return`--${e}-${t}: ${n[t]};`}).join(` +`)} + } + `.trim()}function El(e,t){var n=Tl(e,t);xi()&&Ni(n,`${wl}-dynamic-theme`)}var Dl=L.createContext(!1),Ol=function(e){var t=e.children,n=e.disabled,r=L.useContext(Dl);return L.createElement(Dl.Provider,{value:n??r},t)},kl=L.createContext(void 0),Al=function(e){var t=e.children,n=e.size;return L.createElement(kl.Consumer,null,function(e){return L.createElement(kl.Provider,{value:n||e},t)})};j(),ct(),hn();var jl=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`pageHeader`,`input`,`pagination`,`form`],Ml,Nl;function Pl(){return Ml||`ant`}function Fl(){return Nl||`anticon`}var Il=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;t!==void 0&&(Ml=t),n!==void 0&&(Nl=n),r&&El(Pl(),r)},Ll=function(){return{getPrefixCls:function(e,t){return t||(e?`${Pl()}-${e}`:Pl())},getIconPrefixCls:Fl,getRootPrefixCls:function(e,t){return e||Ml||(t&&t.includes(`-`)?t.replace(/^(.*)-[^-]*$/,`$1`):Pl())}}},Rl=function(e){var t=e.children,n=e.csp,r=e.autoInsertSpaceInButton,i=e.form,a=e.locale,o=e.componentSize,s=e.direction,c=e.space,l=e.virtual,u=e.dropdownMatchSelectWidth,d=e.legacyLocale,f=e.parentContext,p=e.iconPrefixCls,m=e.componentDisabled,h=L.useCallback(function(t,n){var r=e.prefixCls;if(n)return n;var i=r||f.getPrefixCls(``);return t?`${i}-${t}`:i},[f.getPrefixCls,e.prefixCls]),g=A(A({},f),{csp:n,autoInsertSpaceInButton:r,locale:a||d,direction:s,space:c,virtual:l,dropdownMatchSelectWidth:u,getPrefixCls:h});jl.forEach(function(t){var n=e[t];n&&(g[t]=n)});var _=ot(function(){return g},g,function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(function(n){return e[n]!==t[n]})}),v=L.useMemo(function(){return{prefixCls:p,csp:n}},[p,n]),y=t,b=L.useMemo(function(){return pn(Cn.Form?.defaultValidateMessages||{},_.locale?.Form?.defaultValidateMessages||{},_.form?.validateMessages||{},i?.validateMessages||{})},[_,i?.validateMessages]);return Object.keys(b).length>0&&(y=L.createElement(gn.Provider,{value:b},t)),a&&(y=L.createElement(kn,{locale:a,_ANT_MARK__:On},y)),(p||n)&&(y=L.createElement(Yt.Provider,{value:v},y)),o&&(y=L.createElement(Al,{size:o},y)),m!==void 0&&(y=L.createElement(Ol,{disabled:m},y)),L.createElement(Sl.Provider,{value:_},y)},zl=function(e){return L.useEffect(function(){e.direction&&(Y.config({rtl:e.direction===`rtl`}),xl.config({rtl:e.direction===`rtl`}))},[e.direction]),L.createElement(jn,null,function(t,n,r){return L.createElement(Cl,null,function(t){return L.createElement(Rl,A({parentContext:t,legacyLocale:r},e))})})};zl.ConfigContext=Sl,zl.SizeContext=kl,zl.config=Il;var Bl=t(D());function Vl(e,t,n,r){var i=Bl.unstable_batchedUpdates?function(e){Bl.unstable_batchedUpdates(n,e)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var X=L.isValidElement;function Hl(e){return e&&X(e)&&e.type===L.Fragment}function Ul(e,t,n){return X(e)?L.cloneElement(e,typeof n==`function`?n(e.props||{}):n):t}function Wl(e,t){return Ul(e,e,t)}var Gl=(function(){if(typeof navigator>`u`||typeof window>`u`)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});Si();var Kl=(0,L.forwardRef)(function(e,t){var n=e.didUpdate,r=e.getContainer,i=e.children,a=(0,L.useRef)(),o=(0,L.useRef)();(0,L.useImperativeHandle)(t,function(){return{}});var s=(0,L.useRef)(!1);return!s.current&&xi()&&(o.current=r(),a.current=o.current.parentNode,s.current=!0),(0,L.useEffect)(function(){n?.(e)}),(0,L.useEffect)(function(){return o.current.parentNode===null&&a.current!==null&&a.current.appendChild(o.current),function(){var e;(e=o.current)==null||(e=e.parentNode)==null||e.removeChild(o.current)}},[]),o.current?Bl.createPortal(i,o.current):null});P();function ql(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Jl(e,t,n){return N(N({},e[t]||{}),n)}function Yl(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function rd(e,t,n,r){var i=Z.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),Z.mix(i,a)}function id(e){var t,n,r;if(!Z.isWindow(e)&&e.nodeType!==9)t=Z.offset(e),n=Z.outerWidth(e),r=Z.outerHeight(e);else{var i=Z.getWindow(e);t={left:Z.getWindowScrollLeft(i),top:Z.getWindowScrollTop(i)},n=Z.viewportWidth(i),r=Z.viewportHeight(i)}return t.width=n,t.height=r,t}function ad(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return n===`c`?s+=a/2:n===`b`&&(s+=a),r===`c`?o+=i/2:r===`r`&&(o+=i),{left:o,top:s}}function od(e,t,n,r,i){var a=ad(t,n[1]),o=ad(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function sd(e,t,n){return e.leftn.right}function cd(e,t,n){return e.topn.bottom}function ld(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function _d(e,t,n){var r=n.target||t;return hd(e,id(r),n,!gd(r,n.overflow&&n.overflow.alwaysByViewport))}_d.__getOffsetParent=$u,_d.__getVisibleRectForElement=nd;function vd(e,t,n){var r,i,a=Z.getDocument(e),o=a.defaultView||a.parentWindow,s=Z.getWindowScrollLeft(o),c=Z.getWindowScrollTop(o),l=Z.viewportWidth(o),u=Z.viewportHeight(o);r=`pageX`in t?t.pageX:s+t.clientX,i=`pageY`in t?t.pageY:c+t.clientY;var d={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+l&&i>=0&&i<=c+u,p=[n.points[0],`cc`];return hd(e,d,$l($l({},n),{},{points:p}),f)}function yd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=r.has(e);if(Ge(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);var s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var c=0;c{_(),Xe()}));bd();var xd=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1}),Sd=(function(e,t){var n=L.useRef(!1),r=L.useRef(null);function i(){window.clearTimeout(r.current)}function a(o){if(i(),!n.current||o===!0){if(e(o)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,a()},t)}return[a,function(){n.current=!1,i()}]});u(),Kt(),wi();function Cd(e,t){return e===t?!0:!e||!t?!1:`pageX`in t&&`pageY`in t?e.pageX===t.pageX&&e.pageY===t.pageY:`clientX`in t&&`clientY`in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function wd(e,t){e!==document.activeElement&&Ci(t,e)&&typeof e.focus==`function`&&e.focus()}function Td(e,t){var n=null,r=null;function i(e){var i=h(e,1)[0].target;if(document.documentElement.contains(i)){var a=i.getBoundingClientRect(),o=a.width,s=a.height,c=Math.floor(o),l=Math.floor(s);(n!==c||r!==l)&&Promise.resolve().then(function(){t({width:c,height:l})}),n=c,r=l}}var a=new I(i);return e&&a.observe(e),function(){a.disconnect()}}u(),_(),Fo(),vt();function Ed(e){return typeof e==`function`?e():null}function Dd(e){return v(e)!==`object`||!e?null:e}var Od=L.forwardRef(function(e,t){var n=e.children,r=e.disabled,i=e.target,a=e.align,o=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=c===void 0?0:c,u=L.useRef({}),d=L.useRef(),f=L.Children.only(n),p=L.useRef({});p.current.disabled=r,p.current.target=i,p.current.align=a,p.current.onAlign=o;var m=h(Sd(function(){var e=p.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign,a=d.current;if(!t&&n&&a){var o,s=Ed(n),c=Dd(n);u.current.element=s,u.current.point=c,u.current.align=r;var l=document.activeElement;return s&&xd(s)?o=_d(a,s,r):c&&(o=vd(a,c,r)),wd(l,a),i&&o&&i(a,o),!0}return!1},l),2),g=m[0],_=m[1],v=h(L.useState(),2),y=v[0],b=v[1],x=h(L.useState(),2),S=x[0],C=x[1];return No(function(){b(Ed(i)),C(Dd(i))}),L.useEffect(function(){(u.current.element!==y||!Cd(u.current.point,S)||!yd(u.current.align,a))&&g()}),L.useEffect(function(){return Td(d.current,g)},[d.current]),L.useEffect(function(){return Td(y,g)},[y]),L.useEffect(function(){r?_():g()},[r]),L.useEffect(function(){if(s)return Vl(window,`resize`,g).remove},[s]),L.useEffect(function(){return function(){_()}},[]),L.useImperativeHandle(t,function(){return{forceAlign:function(){return g(!0)}}}),L.isValidElement(f)&&(f=L.cloneElement(f,{ref:mt(f.ref,d)})),f});Od.displayName=`Align`;var kd=Od;io(),x(),u(),Os(),Ro();var Ad=[`measure`,`alignPre`,`align`,null,`motion`],jd=(function(e,t){var n=h(Io(null),2),r=n[0],i=n[1],a=(0,L.useRef)();function o(e){i(e,!0)}function s(){Ds.cancel(a.current)}function c(e){s(),a.current=Ds(function(){o(function(e){switch(r){case`align`:return`motion`;case`motion`:return`stable`;default:}return e}),e?.()})}return(0,L.useEffect)(function(){o(`measure`)},[e]),(0,L.useEffect)(function(){switch(r){case`measure`:t();break;default:}r&&(a.current=Ds(w(ro().mark(function e(){var t,n;return ro().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=Ad.indexOf(r),n=Ad[t+1],n&&t!==-1&&o(n);case 3:case`end`:return e.stop()}},e)}))))},[r]),(0,L.useEffect)(function(){return function(){s()}},[]),[r,c]});u();var Md=(function(e){var t=h(L.useState({width:0,height:0}),2),n=t[0],r=t[1];function i(e){var t=e.offsetWidth,n=e.offsetHeight,i=e.getBoundingClientRect(),a=i.width,o=i.height;Math.abs(t-a)<1&&Math.abs(n-o)<1&&(t=a,n=o),r({width:t,height:n})}return[L.useMemo(function(){var t={};if(e){var r=n.width,i=n.height;e.indexOf(`height`)!==-1&&i?t.height=i:e.indexOf(`minHeight`)!==-1&&i&&(t.minHeight=i),e.indexOf(`width`)!==-1&&r?t.width=r:e.indexOf(`minWidth`)!==-1&&r&&(t.minWidth=r)}return t},[e,n]),i]});j(),P(),u(),Fo(),lc();var Nd=L.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,a=e.style,o=e.children,s=e.zIndex,c=e.stretch,l=e.destroyPopupOnHide,u=e.forceRender,d=e.align,f=e.point,p=e.getRootDomNode,m=e.getClassNameFromAlign,g=e.onAlign,_=e.onMouseEnter,v=e.onMouseLeave,y=e.onMouseDown,b=e.onTouchStart,x=e.onClick,S=(0,L.useRef)(),C=(0,L.useRef)(),w=h((0,L.useState)(),2),T=w[0],ee=w[1],E=h(Md(c),2),D=E[0],te=E[1];function ne(){c&&te(p())}var re=h(jd(n,ne),2),O=re[0],ie=re[1],ae=h((0,L.useState)(0),2),oe=ae[0],se=ae[1],ce=(0,L.useRef)();No(function(){O===`alignPre`&&se(0)},[O]);function le(){return f||p}function k(){var e;(e=S.current)==null||e.forceAlign()}function ue(e,t){var n=m(t);T!==n&&ee(n),se(function(e){return e+1}),O===`align`&&g?.(e,t)}No(function(){O===`align`&&(oe<3?k():ie(function(){var e;(e=ce.current)==null||e.call(ce)}))},[oe]);var de=N({},Xl(e));[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`].forEach(function(e){var t=de[e];de[e]=function(e,n){return ie(),t?.(e,n)}});function fe(){return new Promise(function(e){ce.current=e})}L.useEffect(function(){!de.motionName&&O===`motion`&&ie()},[de.motionName,O]),L.useImperativeHandle(t,function(){return{forceAlign:k,getElement:function(){return C.current}}});var pe=N(N({},D),{},{zIndex:s,opacity:O===`motion`||O===`stable`||!n?void 0:0,pointerEvents:!n&&O!==`stable`?`none`:void 0},a),me=!0;d!=null&&d.points&&(O===`align`||O===`stable`)&&(me=!1);var he=o;return L.Children.count(o)>1&&(he=L.createElement(`div`,{className:`${r}-content`},o)),L.createElement(cc,A({visible:n,ref:C,leavedClassName:`${r}-hidden`},de,{onAppearPrepare:fe,onEnterPrepare:fe,removeOnLeave:l,forceRender:u}),function(e,t){var n=e.className,a=e.style,o=(0,ka.default)(r,i,T,n);return L.createElement(kd,{target:le(),key:`popup`,ref:S,monitorWindowResize:!0,disabled:me,align:d,onAlign:ue},L.createElement(`div`,{ref:t,className:o,onMouseEnter:_,onMouseLeave:v,onMouseDownCapture:y,onTouchStartCapture:b,onClick:x,style:N(N({},a),pe)},he))})});Nd.displayName=`PopupInner`,j(),P(),lc();var Pd=L.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,a=e.children,o=e.mobile;o=o===void 0?{}:o;var s=o.popupClassName,c=o.popupStyle,l=o.popupMotion,u=l===void 0?{}:l,d=o.popupRender,f=e.onClick,p=L.useRef();L.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return p.current}}});var m=N({zIndex:i},c),h=a;return L.Children.count(a)>1&&(h=L.createElement(`div`,{className:`${n}-content`},a)),d&&(h=d(h)),L.createElement(cc,A({visible:r,ref:p,removeOnLeave:!0},u),function(e,t){var r=e.className,i=e.style,a=(0,ka.default)(n,s,r);return L.createElement(`div`,{ref:t,className:a,onClick:f,style:N(N({},i),m)},h)})});Pd.displayName=`MobilePopupInner`,j(),P(),u(),Ln();var Fd=[`visible`,`mobile`],Id=L.forwardRef(function(e,t){var n=e.visible,r=e.mobile,i=In(e,Fd),a=h((0,L.useState)(n),2),o=a[0],s=a[1],c=h((0,L.useState)(!1),2),l=c[0],u=c[1],d=N(N({},i),{},{visible:o});(0,L.useEffect)(function(){s(n),n&&r&&u(Gl())},[n,r]);var f=l?L.createElement(Pd,A({},d,{mobile:r,ref:t})):L.createElement(Nd,A({},d,{ref:t}));return L.createElement(`div`,null,L.createElement(Zl,d),f)});Id.displayName=`Popup`;var Ld=L.createContext(null);P(),j(),be(),Ce(),we(),Pe(),Jt(),b(),Os(),wi(),rt(),vt();function Rd(){}function zd(){return``}function Bd(e){return e?e.ownerDocument:window.document}var Vd=[`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`,`onContextMenu`];function Hd(e){var t=function(t){Ne(r,t);var n=qt(r);function r(e){var t;ye(this,r),t=n.call(this,e),C(M(t),`popupRef`,L.createRef()),C(M(t),`triggerRef`,L.createRef()),C(M(t),`portalContainer`,void 0),C(M(t),`attachId`,void 0),C(M(t),`clickOutsideHandler`,void 0),C(M(t),`touchOutsideHandler`,void 0),C(M(t),`contextMenuOutsideHandler1`,void 0),C(M(t),`contextMenuOutsideHandler2`,void 0),C(M(t),`mouseDownTimeout`,void 0),C(M(t),`focusTime`,void 0),C(M(t),`preClickTime`,void 0),C(M(t),`preTouchTime`,void 0),C(M(t),`delayTimer`,void 0),C(M(t),`hasPopupMouseDown`,void 0),C(M(t),`onMouseEnter`,function(e){var n=t.props.mouseEnterDelay;t.fireEvents(`onMouseEnter`,e),t.delaySetPopupVisible(!0,n,n?null:e)}),C(M(t),`onMouseMove`,function(e){t.fireEvents(`onMouseMove`,e),t.setPoint(e)}),C(M(t),`onMouseLeave`,function(e){t.fireEvents(`onMouseLeave`,e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)}),C(M(t),`onPopupMouseEnter`,function(){t.clearDelayTimer()}),C(M(t),`onPopupMouseLeave`,function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&Ci(t.popupRef.current?.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)}),C(M(t),`onFocus`,function(e){t.fireEvents(`onFocus`,e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))}),C(M(t),`onMouseDown`,function(e){t.fireEvents(`onMouseDown`,e),t.preClickTime=Date.now()}),C(M(t),`onTouchStart`,function(e){t.fireEvents(`onTouchStart`,e),t.preTouchTime=Date.now()}),C(M(t),`onBlur`,function(e){t.fireEvents(`onBlur`,e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)}),C(M(t),`onContextMenu`,function(e){e.preventDefault(),t.fireEvents(`onContextMenu`,e),t.setPopupVisible(!0,e)}),C(M(t),`onContextMenuClose`,function(){t.isContextMenuToShow()&&t.close()}),C(M(t),`onClick`,function(e){if(t.fireEvents(`onClick`,e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)}),C(M(t),`onPopupMouseDown`,function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var e;(e=t.context).onPopupMouseDown.apply(e,arguments)}}),C(M(t),`onDocumentClick`,function(e){if(!(t.props.mask&&!t.props.maskClosable)){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();(!Ci(r,n)||t.isContextMenuOnly())&&!Ci(i,n)&&!t.hasPopupMouseDown&&t.close()}}),C(M(t),`getRootDomNode`,function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=et(t.triggerRef.current);if(n)return n}catch{}return Bl.findDOMNode(M(t))}),C(M(t),`getPopupClassNameFromAlign`,function(e){var n=[],r=t.props,i=r.popupPlacement,a=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,c=r.getPopupClassNameFromAlign;return i&&a&&n.push(Yl(a,o,e,s)),c&&n.push(c(e)),n.join(` `)}),C(M(t),`getComponent`,function(){var e=t.props,n=e.prefixCls,r=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,o=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,l=e.popupStyle,u=e.mask,d=e.maskAnimation,f=e.maskTransitionName,p=e.maskMotion,m=e.zIndex,h=e.popup,g=e.stretch,_=e.alignPoint,v=e.mobile,y=e.forceRender,b=e.onPopupClick,x=t.state,S=x.popupVisible,C=x.point,w=t.getPopupAlign(),T={};return t.isMouseEnterToShow()&&(T.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(T.onMouseLeave=t.onPopupMouseLeave),T.onMouseDown=t.onPopupMouseDown,T.onTouchStart=t.onPopupMouseDown,L.createElement(Id,A({prefixCls:n,destroyPopupOnHide:r,visible:S,point:_&&C,className:i,align:w,onAlign:a,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},T,{stretch:g,getRootDomNode:t.getRootDomNode,style:l,mask:u,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:f,maskMotion:p,ref:t.popupRef,motion:o,mobile:v,forceRender:y,onClick:b}),typeof h==`function`?h():h)}),C(M(t),`attachParent`,function(e){Ds.cancel(t.attachId);var n=t.props,r=n.getPopupContainer,i=n.getDocument,a=t.getRootDomNode(),o;r?(a||r.length===0)&&(o=r(a)):o=i(t.getRootDomNode()).body,o?o.appendChild(e):t.attachId=Ds(function(){t.attachParent(e)})}),C(M(t),`getContainer`,function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement(`div`);n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`100%`,t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer}),C(M(t),`setPoint`,function(e){!t.props.alignPoint||!e||t.setState({point:{pageX:e.pageX,pageY:e.pageY}})}),C(M(t),`handlePortalUpdate`,function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)}),C(M(t),`triggerContextValue`,{onPopupMouseDown:t.onPopupMouseDown});var i=`popupVisible`in e?!!e.popupVisible:!!e.defaultPopupVisible;return t.state={prevPopupVisible:i,popupVisible:i},Vd.forEach(function(e){t[`fire${e}`]=function(n){t.fireEvents(e,n)}}),t}return Se(r,[{key:`componentDidMount`,value:function(){this.componentDidUpdate()}},{key:`componentDidUpdate`,value:function(){var e=this.props;if(this.state.popupVisible){var t;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Vl(t,`mousedown`,this.onDocumentClick)),this.touchOutsideHandler||=(t||=e.getDocument(this.getRootDomNode()),Vl(t,`touchstart`,this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t||=e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Vl(t,`scroll`,this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Vl(window,`blur`,this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:`componentWillUnmount`,value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ds.cancel(this.attachId)}},{key:`getPopupDomNode`,value:function(){return this.popupRef.current?.getElement()||null}},{key:`getPopupAlign`,value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?Jl(r,t,n):n}},{key:`setPopupVisible`,value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&(`popupVisible`in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:`delaySetPopupVisible`,value:function(e,t,n){var r=this,i=t*1e3;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout(function(){r.setPopupVisible(e,a),r.clearDelayTimer()},i)}else this.setPopupVisible(e,n)}},{key:`clearDelayTimer`,value:function(){this.delayTimer&&=(clearTimeout(this.delayTimer),null)}},{key:`clearOutsideHandler`,value:function(){this.clickOutsideHandler&&=(this.clickOutsideHandler.remove(),null),this.contextMenuOutsideHandler1&&=(this.contextMenuOutsideHandler1.remove(),null),this.contextMenuOutsideHandler2&&=(this.contextMenuOutsideHandler2.remove(),null),this.touchOutsideHandler&&=(this.touchOutsideHandler.remove(),null)}},{key:`createTwoChains`,value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this[`fire${e}`]:t[e]||n[e]}},{key:`isClickToShow`,value:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf(`click`)!==-1||n.indexOf(`click`)!==-1}},{key:`isContextMenuOnly`,value:function(){var e=this.props.action;return e===`contextMenu`||e.length===1&&e[0]===`contextMenu`}},{key:`isContextMenuToShow`,value:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf(`contextMenu`)!==-1||n.indexOf(`contextMenu`)!==-1}},{key:`isClickToHide`,value:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf(`click`)!==-1||n.indexOf(`click`)!==-1}},{key:`isMouseEnterToShow`,value:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf(`hover`)!==-1||n.indexOf(`mouseEnter`)!==-1}},{key:`isMouseLeaveToHide`,value:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf(`hover`)!==-1||n.indexOf(`mouseLeave`)!==-1}},{key:`isFocusToShow`,value:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf(`focus`)!==-1||n.indexOf(`focus`)!==-1}},{key:`isBlurToHide`,value:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf(`focus`)!==-1||n.indexOf(`blur`)!==-1}},{key:`forcePopupAlign`,value:function(){if(this.state.popupVisible){var e;(e=this.popupRef.current)==null||e.forceAlign()}}},{key:`fireEvents`,value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:`close`,value:function(){this.setPopupVisible(!1)}},{key:`render`,value:function(){var t=this.state.popupVisible,n=this.props,r=n.children,i=n.forceRender,a=n.alignPoint,o=n.className,s=n.autoDestroy,c=L.Children.only(r),l={key:`trigger`};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains(`onContextMenu`),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains(`onClick`),l.onMouseDown=this.createTwoChains(`onMouseDown`),l.onTouchStart=this.createTwoChains(`onTouchStart`)),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains(`onMouseEnter`),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains(`onMouseLeave`),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains(`onFocus`),l.onBlur=this.createTwoChains(`onBlur`));var u=(0,ka.default)(c&&c.props&&c.props.className,o);u&&(l.className=u);var d=N({},l);gt(c)&&(d.ref=mt(this.triggerRef,c.ref));var f=L.cloneElement(c,d),p;return(t||this.popupRef.current||i)&&(p=L.createElement(e,{key:`portal`,getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(p=null),L.createElement(Ld.Provider,{value:this.triggerContextValue},f,p)}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.popupVisible,r={};return n!==void 0&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),r}(L.Component);return C(t,`contextType`,Ld),C(t,`defaultProps`,{prefixCls:`rc-trigger-popup`,getPopupClassNameFromAlign:zd,getDocument:Bd,onPopupVisibleChange:Rd,afterPopupVisibleChange:Rd,onPopupAlign:Rd,popupClassName:``,mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}var Ud=Hd(Kl),Wd=function(){return[...arguments]},Gd=function(){return[...arguments]},Kd=function(){return{height:0,opacity:0}},qd=function(e){return{height:e.scrollHeight,opacity:1}},Jd=function(e){return{height:e?e.offsetHeight:0}},Yd=function(e,t){return t?.deadline===!0||t.propertyName===`height`},Xd={motionName:`ant-motion-collapse`,onAppearStart:Kd,onEnterStart:Kd,onAppearActive:qd,onEnterActive:qd,onLeaveStart:Jd,onLeaveActive:Kd,onAppearEnd:Yd,onEnterEnd:Yd,onLeaveEnd:Yd,motionDeadline:500},Zd=function(e){return e!==void 0&&(e===`topLeft`||e===`topRight`)?`slide-down`:`slide-up`},Qd=function(e,t,n){return n===void 0?`${e}-${t}`:n},$d=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ef=new class extends $d{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},tf={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nf=new class{#e=tf;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function rf(e){setTimeout(e,0)}var af=typeof window>`u`||`Deno`in globalThis;function of(){}function sf(e,t){return typeof e==`function`?e(t):e}function cf(e){return typeof e==`number`&&e>=0&&e!==1/0}function lf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uf(e,t){return typeof e==`function`?e(t):e}function df(e,t){return typeof e==`function`?e(t):e}function ff(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==mf(o,t.options))return!1}else if(!gf(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function pf(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(hf(t.options.mutationKey)!==hf(a))return!1}else if(!gf(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function mf(e,t){return(t?.queryKeyHashFn||hf)(e)}function hf(e){return JSON.stringify(e,(e,t)=>xf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function gf(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>gf(e[n],t[n])):!1}var _f=Object.prototype.hasOwnProperty;function vf(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=bf(e)&&bf(t);if(!r&&!(xf(e)&&xf(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{nf.setTimeout(t,e)})}function wf(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:vf(e,t)}function Tf(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ef(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Df=Symbol();function Of(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Df?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kf(e,t){return typeof e==`function`?e(...t):!!e}function Af(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var jf=(()=>{let e=()=>af;return{isServer(){return e()},setIsServer(t){e=t}}})();function Mf(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function Nf(e){let t;if(e.then(e=>(t=e,e),of)?.catch(of),t!==void 0)return{data:t}}var Pf=rf;function Ff(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Pf,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var If=Ff(),Lf=new class extends $d{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Rf(e){return Math.min(1e3*2**e,3e4)}function zf(e){return(e??`online`)===`online`?Lf.isOnline():!0}var Bf=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Vf(e){let t=!1,n=0,r,i=Mf(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Bf(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>ef.isFocused()&&(e.networkMode===`always`||Lf.isOnline())&&e.canRun(),u=()=>zf(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(jf.isServer()?0:3),o=e.retryDelay??Rf,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Hf=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cf(this.gcTime)&&(this.#e=nf.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jf.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(nf.clearTimeout(this.#e),this.#e=void 0)}};function Uf(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Af(e,()=>t.signal,()=>n=!0)},u=Of(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ef:Tf;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Gf:Wf,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Wf(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Wf(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gf(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Kf=class extends Hf{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Yf(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Yf(this.options);e.data!==void 0&&(this.setState(Jf(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=wf(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(of).catch(of):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>df(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Df||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>uf(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!lf(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Of(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Uf(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Vf({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Bf&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Bf){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...qf(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Jf(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),If.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function qf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zf(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Jf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Yf(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Xf=class extends $d{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Mf(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qf(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $f(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $f(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof df(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!yf(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ep(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||df(this.options.enabled,this.#t)!==df(t.enabled,this.#t)||uf(this.options.staleTime,this.#t)!==uf(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||df(this.options.enabled,this.#t)!==df(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return np(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(of)),t}#g(){this.#b();let e=uf(this.options.staleTime,this.#t);if(jf.isServer()||this.#r.isStale||!cf(e))return;let t=lf(this.#r.dataUpdatedAt,e)+1;this.#d=nf.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(jf.isServer()||df(this.options.enabled,this.#t)===!1||!cf(this.#p)||this.#p===0)&&(this.#f=nf.setInterval(()=>{(this.options.refetchIntervalInBackground||ef.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(nf.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(nf.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Qf(e,t),o=i&&ep(e,n,t,r);(a||o)&&(l={...l,...qf(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=wf(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=wf(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:tp(e,t),refetch:this.refetch,promise:this.#o,isEnabled:df(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Mf())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!yf(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){If.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Zf(e,t){return df(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&df(t.retryOnMount,e)===!1)}function Qf(e,t){return Zf(e,t)||e.state.data!==void 0&&$f(e,t,t.refetchOnMount)}function $f(e,t,n){if(df(t.enabled,e)!==!1&&uf(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&tp(e,t)}return!1}function ep(e,t,n,r){return(e!==t||df(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&tp(e,n)}function tp(e,t){return df(t.enabled,e)!==!1&&e.isStaleByTime(uf(t.staleTime,e))}function np(e,t){return!yf(e.getCurrentResult(),t)}var rp=a(),ip=L.createContext(void 0),ap=e=>{let t=L.useContext(ip);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},op=({client:e,children:t})=>(L.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,rp.jsx)(ip.Provider,{value:e,children:t})),sp=L.createContext(!1),cp=()=>L.useContext(sp),lp=sp.Provider;function up(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dp=L.createContext(up()),fp=()=>L.useContext(dp),pp=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?kf(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},mp=e=>{L.useEffect(()=>{e.clearReset()},[e])},hp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||kf(n,[e.error,r])),gp=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},_p=(e,t)=>e.isLoading&&e.isFetching&&!t,vp=(e,t)=>e?.suspense&&t.isPending,yp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bp(e,t,n){let r=cp(),i=fp(),a=ap(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,gp(o),pp(o,i,s),mp(i);let l=!a.getQueryCache().get(o.queryHash),[u]=L.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(L.useSyncExternalStore(L.useCallback(e=>{let t=f?u.subscribe(If.batchCalls(e)):of;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),L.useEffect(()=>{u.setOptions(o)},[o,u]),vp(o,d))throw yp(o,u,i);if(hp({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!jf.isServer()&&_p(d,r)&&(l?yp(o,u,i):s?.promise)?.catch(of).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function xp(e,t){return bp(e,Xf,t)}var Sp=r(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Cp=r(((e,t)=>{var n=Sp();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),wp=r(((e,t)=>{t.exports=Cp()()}));function Tp(e,t){return function(){return e.apply(t,arguments)}}var{toString:Ep}=Object.prototype,{getPrototypeOf:Dp}=Object,{iterator:Op,toStringTag:kp}=Symbol,Ap=(e=>t=>{let n=Ep.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jp=e=>(e=e.toLowerCase(),t=>Ap(t)===e),Mp=e=>t=>typeof t===e,{isArray:Np}=Array,Pp=Mp(`undefined`);function Fp(e){return e!==null&&!Pp(e)&&e.constructor!==null&&!Pp(e.constructor)&&zp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Ip=jp(`ArrayBuffer`);function Lp(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ip(e.buffer),t}var Rp=Mp(`string`),zp=Mp(`function`),Bp=Mp(`number`),Vp=e=>typeof e==`object`&&!!e,Hp=e=>e===!0||e===!1,Up=e=>{if(Ap(e)!==`object`)return!1;let t=Dp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(kp in e)&&!(Op in e)},Wp=e=>{if(!Vp(e)||Fp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gp=jp(`Date`),Kp=jp(`File`),qp=e=>!!(e&&e.uri!==void 0),Jp=e=>e&&e.getParts!==void 0,Yp=jp(`Blob`),Xp=jp(`FileList`),Zp=e=>Vp(e)&&zp(e.pipe);function Qp(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var $p=Qp(),em=$p.FormData===void 0?void 0:$p.FormData,tm=e=>{if(!e)return!1;if(em&&e instanceof em)return!0;let t=Dp(e);if(!t||t===Object.prototype||!zp(e.append))return!1;let n=Ap(e);return n===`formdata`||n===`object`&&zp(e.toString)&&e.toString()===`[object FormData]`},nm=jp(`URLSearchParams`),[rm,im,am,om]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(jp),sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function cm(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Np(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var um=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,dm=e=>!Pp(e)&&e!==um;function fm(...e){let{caseless:t,skipUndefined:n}=dm(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&lm(r,i)||i,o=wm(r,a)?r[a]:void 0;Up(o)&&Up(e)?r[a]=fm(o,e):Up(e)?r[a]=fm({},e):Np(e)?r[a]=e.slice():(!n||!Pp(e))&&(r[a]=e)};for(let t=0,n=e.length;t(cm(t,(t,r)=>{n&&zp(t)?Object.defineProperty(e,r,{__proto__:null,value:Tp(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),mm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hm=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},gm=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Dp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_m=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},vm=e=>{if(!e)return null;if(Np(e))return e;let t=e.length;if(!Bp(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},ym=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Dp(Uint8Array)),bm=(e,t)=>{let n=(e&&e[Op]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},xm=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sm=jp(`HTMLFormElement`),Cm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),wm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tm=jp(`RegExp`),Em=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};cm(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Dm=e=>{Em(e,(t,n)=>{if(zp(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(zp(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Om=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Np(e)?r(e):r(String(e).split(t)),n},km=()=>{},Am=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jm(e){return!!(e&&zp(e.append)&&e[kp]===`FormData`&&e[Op])}var Mm=e=>{let t=new WeakSet,n=e=>{if(Vp(e)){if(t.has(e))return;if(Fp(e))return e;if(!(`toJSON`in e)){t.add(e);let r=Np(e)?[]:{};return cm(e,(e,t)=>{let i=n(e);!Pp(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Nm=jp(`AsyncFunction`),Pm=e=>e&&(Vp(e)||zp(e))&&zp(e.then)&&zp(e.catch),Fm=((e,t)=>e?setImmediate:t?((e,t)=>(um.addEventListener(`message`,({source:n,data:r})=>{n===um&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),um.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,zp(um.postMessage)),Q={isArray:Np,isArrayBuffer:Ip,isBuffer:Fp,isFormData:tm,isArrayBufferView:Lp,isString:Rp,isNumber:Bp,isBoolean:Hp,isObject:Vp,isPlainObject:Up,isEmptyObject:Wp,isReadableStream:rm,isRequest:im,isResponse:am,isHeaders:om,isUndefined:Pp,isDate:Gp,isFile:Kp,isReactNativeBlob:qp,isReactNative:Jp,isBlob:Yp,isRegExp:Tm,isFunction:zp,isStream:Zp,isURLSearchParams:nm,isTypedArray:ym,isFileList:Xp,forEach:cm,merge:fm,extend:pm,trim:sm,stripBOM:mm,inherits:hm,toFlatObject:gm,kindOf:Ap,kindOfTest:jp,endsWith:_m,toArray:vm,forEachEntry:bm,matchAll:xm,isHTMLForm:Sm,hasOwnProperty:wm,hasOwnProp:wm,reduceDescriptors:Em,freezeMethods:Dm,toObjectSet:Om,toCamelCase:Cm,noop:km,toFiniteNumber:Am,findKey:lm,global:um,isContextDefined:dm,isSpecCompliantForm:jm,toJSONObject:Mm,isAsyncFn:Nm,isThenable:Pm,setImmediate:Fm,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(um):typeof process<`u`&&process.nextTick||Fm,isIterable:e=>e!=null&&zp(e[Op])},Im=Q.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Lm=e=>{let t={},n,r,i;return e&&e.split(` +`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Im[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function Rm(e){let t=0,n=e.length;for(;tt;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var zm=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Bm=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Vm(e,t){return Q.isArray(e)?e.map(e=>Vm(e,t)):Rm(String(e).replace(t,``))}var Hm=e=>Vm(e,zm),Um=e=>Vm(e,Bm);function Wm(e){let t=Object.create(null);return Q.forEach(e.toJSON(),(e,n)=>{t[n]=Um(e)}),t}var Gm=Symbol(`internals`);function Km(e){return e&&String(e).trim().toLowerCase()}function qm(e){return e===!1||e==null?e:Q.isArray(e)?e.map(qm):Hm(String(e))}function Jm(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Ym=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xm(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function Zm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Qm(e,t){let n=Q.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var $m=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Km(t);if(!i)throw Error(`header name must be a non-empty string`);let a=Q.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=qm(e))}let a=(e,t)=>Q.forEach(e,(e,n)=>i(e,n,t));if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!Ym(e))a(Lm(e),t);else if(Q.isObject(e)&&Q.isIterable(e)){let n={},r,i;for(let t of e){if(!Q.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?Q.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Km(e),e){let n=Q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Jm(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Km(e),e){let n=Q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Xm(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Km(e),e){let i=Q.findKey(n,e);i&&(!t||Xm(n,n[i],i,t))&&(delete n[i],r=!0)}}return Q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Xm(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Q.forEach(this,(r,i)=>{let a=Q.findKey(n,i);if(a){t[a]=qm(r),delete t[i];return}let o=e?Zm(i):String(i).trim();o!==i&&delete t[i],t[o]=qm(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Q.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` +`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Gm]=this[Gm]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Km(e);t[r]||(Qm(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}};$m.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Q.reduceDescriptors($m.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods($m);var eh=`[REDACTED ****]`;function th(e){if(Q.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Q.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function nh(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||Q.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof $m&&(e=e.toJSON()),r.push(e);let t;if(Q.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);Q.isUndefined(r)||(t[n]=r)});else{if(!Q.isPlainObject(e)&&th(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?eh:i(a);Q.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var $=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&Q.hasOwnProp(e,`redact`)?e.redact:void 0,n=Q.isArray(t)&&t.length>0?nh(e,t):Q.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,$.ERR_BAD_OPTION=`ERR_BAD_OPTION`,$.ECONNABORTED=`ECONNABORTED`,$.ETIMEDOUT=`ETIMEDOUT`,$.ECONNREFUSED=`ECONNREFUSED`,$.ERR_NETWORK=`ERR_NETWORK`,$.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,$.ERR_DEPRECATED=`ERR_DEPRECATED`,$.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,$.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,$.ERR_CANCELED=`ERR_CANCELED`,$.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,$.ERR_INVALID_URL=`ERR_INVALID_URL`,$.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function rh(e){return Q.isPlainObject(e)||Q.isArray(e)}function ih(e){return Q.endsWith(e,`[]`)?e.slice(0,-2):e}function ah(e,t,n){return e?e.concat(t).map(function(e,t){return e=ih(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function oh(e){return Q.isArray(e)&&!e.some(rh)}var sh=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function ch(e,t,n){if(!Q.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!l&&Q.isBlob(e))throw new $(`Blob is not supported. Use a Buffer instead.`);return Q.isArrayBuffer(e)||Q.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(Q.isReactNative(t)&&Q.isReactNativeBlob(e))return t.append(ah(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(Q.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&oh(e)||(Q.isFileList(e)||Q.endsWith(n,`[]`))&&(s=Q.toArray(e)))return n=ih(n),s.forEach(function(e,r){!(Q.isUndefined(e)||e===null)&&t.append(o===!0?ah([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return rh(e)?!0:(t.append(ah(i,n,a),u(e)),!1)}let f=[],p=Object.assign(sh,{defaultVisitor:d,convertValue:u,isVisitable:rh});function m(e,n,r=0){if(!Q.isUndefined(e)){if(r>c)throw new $(`Object is too deeply nested (`+r+` levels). Max depth: `+c,$.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),Q.forEach(e,function(e,a){(!(Q.isUndefined(e)||e===null)&&i.call(t,e,Q.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!Q.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function lh(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function uh(e,t){this._pairs=[],e&&ch(e,this,t)}var dh=uh.prototype;dh.append=function(e,t){this._pairs.push([e,t])},dh.toString=function(e){let t=e?function(t){return e.call(this,t,lh)}:lh;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function fh(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function ph(e,t,n){if(!t)return e;let r=n&&n.encode||fh,i=Q.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):Q.isURLSearchParams(t)?t.toString():new uh(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var mh=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Q.forEach(this.handlers,function(t){t!==null&&e(t)})}},hh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},gh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:uh,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},_h=n({hasBrowserEnv:()=>vh,hasStandardBrowserEnv:()=>bh,hasStandardBrowserWebWorkerEnv:()=>xh,navigator:()=>yh,origin:()=>Sh}),vh=typeof window<`u`&&typeof document<`u`,yh=typeof navigator==`object`&&navigator||void 0,bh=vh&&(!yh||[`ReactNative`,`NativeScript`,`NS`].indexOf(yh.product)<0),xh=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Sh=vh&&window.location.href||`http://localhost`,Ch={..._h,...gh};function wh(e,t){return ch(e,new Ch.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ch.isNode&&Q.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Th(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Eh(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r=e.length;return a=!a&&Q.isArray(r)?r.length:a,s?(Q.hasOwnProp(r,a)?r[a]=Q.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!Q.hasOwnProp(r,a)||!Q.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Q.isArray(r[a])&&(r[a]=Eh(r[a])),!o)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){let n={};return Q.forEachEntry(e,(e,r)=>{t(Th(e),r,n,0)}),n}return null}var Oh=(e,t)=>e!=null&&Q.hasOwnProp(e,t)?e[t]:void 0;function kh(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Ah={transitional:hh,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Q.isObject(e);if(i&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(Dh(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Oh(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return wh(e,t).toString();if((a=Q.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Oh(this,`env`),r=n&&n.FormData;return ch(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),kh(e)):e}],transformResponse:[function(e){let t=Oh(this,`transitional`)||Ah.transitional,n=t&&t.forcedJSONParsing,r=Oh(this,`responseType`),i=r===`json`;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Oh(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?$.from(e,$.ERR_BAD_RESPONSE,this,null,Oh(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ch.classes.FormData,Blob:Ch.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Ah.headers[e]={}});function jh(e,t){let n=this||Ah,r=t||n,i=$m.from(r.headers),a=r.data;return Q.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Mh(e){return!!(e&&e.__CANCEL__)}var Nh=class extends ${constructor(e,t,n){super(e??`canceled`,$.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Ph(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $(`Request failed with status code `+n.status,n.status>=400&&n.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,n.config,n.request,n))}function Fh(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Ih(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Rh=(e,t,n=3)=>{let r=0,i=Ih(50,250);return Lh(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},zh=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Bh=e=>(...t)=>Q.asap(()=>e(...t)),Vh=Ch.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ch.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ch.origin),Ch.navigator&&/(msie|trident)/i.test(Ch.navigator.userAgent)):()=>!0,Hh=Ch.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&s.push(`path=${r}`),Q.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Q.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;ne instanceof $m?{...e}:e;function qh(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,`hasOwnProperty`,{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Q.isUndefined(t))return r(e,t,n,i);if(!Q.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Q.isUndefined(t))return r(void 0,t);if(!Q.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(Q.hasOwnProp(t,a))return r(n,i);if(Q.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Kh(e),Kh(t),n,!0)};return Q.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Q.hasOwnProp(c,r)?c[r]:i,o=a(Q.hasOwnProp(e,r)?e[r]:void 0,Q.hasOwnProp(t,r)?t[r]:void 0,r);Q.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Jh=[`content-type`,`content-length`];function Yh(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{Jh.includes(t.toLowerCase())&&e.set(t,n)})}var Xh=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Zh=e=>{let t=qh({},e),n=e=>Q.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=$m.from(s),t.url=ph(Gh(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?Xh(c.password):``))),Q.isFormData(r)&&(Ch.hasStandardBrowserEnv||Ch.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):Q.isFunction(r.getHeaders)&&Yh(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Ch.hasStandardBrowserEnv&&(Q.isFunction(i)&&(i=i(t)),i===!0||i==null&&Vh(t.url))){let e=a&&o&&Hh.read(o);e&&s.set(a,e)}return t},Qh=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Zh(e),i=r.data,a=$m.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=$m.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Ph(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new $(`Request aborted`,$.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new $(t&&t.message?t.message:`Network Error`,$.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||hh;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,i.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Q.forEach(Wm(a),function(e,t){h.setRequestHeader(t,e)}),Q.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Rh(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Rh(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Nh(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Fh(r.url);if(_&&!Ch.protocols.includes(_)){n(new $(`Unsupported protocol `+_+`:`,$.ERR_BAD_REQUEST,e));return}h.send(i||null)})},$h=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new Nh(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>Q.asap(o),s},eg=function*(e,t){let n=e.byteLength;if(!t||n{let i=tg(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})};function ig(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e=55296&&n<=56319&&e+1=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var ag=`1.16.1`,og=64*1024,{isFunction:sg}=Q,cg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lg=e=>{let t=Q.global!==void 0&&Q.global!==null?Q.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Q.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?sg(i):typeof fetch==`function`,c=sg(a),l=sg(o);if(!s)return!1;let u=s&&sg(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&cg(()=>{let e=!1,t=new a(Ch.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&cg(()=>Q.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new a(Ch.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e+=``),Q.isString(e))return(await d(e)).byteLength},g=async(e,t)=>Q.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=Zh(e),w=Q.isNumber(S)&&S>-1,T=Q.isNumber(C)&&C>-1,ee=i||fetch;v=v?(v+``).toLowerCase():`text`;let E=$h([l,u&&u.toAbortSignal()],d),D=null,te=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),ne;try{if(w&&typeof t==`string`&&t.startsWith(`data:`)&&ig(t)>S)throw new $(`maxContentLength size of `+S+` exceeded`,$.ERR_BAD_RESPONSE,e,D);if(T&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new $(`Request body larger than maxBodyLength limit`,$.ERR_BAD_REQUEST,e,D)}if(_&&f&&n!==`get`&&n!==`head`&&(ne=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(Q.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=zh(ne,Rh(Bh(_)));s=rg(e.body,og,t,n)}}Q.isString(b)||(b=b?`include`:`omit`);let i=c&&`credentials`in a.prototype;if(Q.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+ag,!1);let l={...x,signal:E,method:n.toUpperCase(),headers:Wm(y.normalize()),body:s,duplex:`half`,credentials:i?b:void 0};D=c&&new a(t,l);let u=await(c?ee(D,x):ee(t,l));if(w){let t=Q.toFiniteNumber(u.headers.get(`content-length`));if(t!=null&&t>S)throw new $(`maxContentLength size of `+S+` exceeded`,$.ERR_BAD_RESPONSE,e,D)}let d=p&&(v===`stream`||v===`response`);if(p&&u.body&&(h||w||d&&te)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=u[e]});let n=Q.toFiniteNumber(u.headers.get(`content-length`)),[r,i]=h&&zh(n,Rh(Bh(h),!0))||[],a=0;u=new o(rg(u.body,og,t=>{if(w&&(a=t,a>S))throw new $(`maxContentLength size of `+S+` exceeded`,$.ERR_BAD_RESPONSE,e,D);r&&r(t)},()=>{i&&i(),te&&te()}),t)}v||=`text`;let re=await m[Q.findKey(m,v)||`text`](u,e);if(w&&!p&&!d){let t;if(re!=null&&(typeof re.byteLength==`number`?t=re.byteLength:typeof re.size==`number`?t=re.size:typeof re==`string`&&(t=typeof r==`function`?new r().encode(re).byteLength:re.length)),typeof t==`number`&&t>S)throw new $(`maxContentLength size of `+S+` exceeded`,$.ERR_BAD_RESPONSE,e,D)}return!d&&te&&te(),await new Promise((t,n)=>{Ph(t,n,{data:re,headers:$m.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:D})})}catch(t){if(te&&te(),E&&E.aborted&&E.reason instanceof $){let n=E.reason;throw n.config=e,D&&(n.request=D),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new $(`Network Error`,$.ERR_NETWORK,e,D,t&&t.response),{cause:t.cause||t}):$.from(t,t&&t.code,e,D,t&&t.response)}}},ug=new Map,dg=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=ug;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:lg(t)),l=c;return c};dg();var fg={http:null,xhr:Qh,fetch:{get:dg}};Q.forEach(fg,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{__proto__:null,value:t})}catch{}Object.defineProperty(e,`adapterName`,{__proto__:null,value:t})}});var pg=e=>`- ${e}`,mg=e=>Q.isFunction(e)||e===null||e===!1;function hg(e,t){e=Q.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new $(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : +`+e.map(pg).join(` +`):` `+pg(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var gg={getAdapter:hg,adapters:fg};function _g(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nh(null,e)}function vg(e){return _g(e),e.headers=$m.from(e.headers),e.data=jh.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),gg.getAdapter(e.adapter||Ah.adapter,e)(e).then(function(t){_g(e),e.response=t;try{t.data=jh.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=$m.from(t.headers),t},function(t){if(!Mh(t)&&(_g(e),t&&t.response)){e.response=t.response;try{t.response.data=jh.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=$m.from(t.response.headers)}return Promise.reject(t)})}var yg={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{yg[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var bg={};yg.transitional=function(e,t,n){function r(e,t){return`[Axios v`+ag+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new $(r(i,` has been removed`+(t?` in `+t:``)),$.ERR_DEPRECATED);return t&&!bg[i]&&(bg[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},yg.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function xg(e,t,n){if(typeof e!=`object`)throw new $(`options must be an object`,$.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new $(`option `+a+` must be `+n,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $(`Unknown option `+a,$.ERR_BAD_OPTION)}}var Sg={assertOptions:xg,validators:yg},Cg=Sg.validators,wg=class{constructor(e){this.defaults=e||{},this.interceptors={request:new mh,response:new mh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(` +`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(` +`),r=t===-1?-1:n.indexOf(` +`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=` +`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=qh(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Sg.assertOptions(n,{silentJSONParsing:Cg.transitional(Cg.boolean),forcedJSONParsing:Cg.transitional(Cg.boolean),clarifyTimeoutError:Cg.transitional(Cg.boolean),legacyInterceptorReqResOrdering:Cg.transitional(Cg.boolean)},!1),r!=null&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:Sg.assertOptions(r,{encode:Cg.function,serialize:Cg.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Sg.assertOptions(t,{baseUrl:Cg.spelling(`baseURL`),withXsrfToken:Cg.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Q.merge(i.common,i[t.method]);i&&Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=$m.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||hh;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[vg.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Nh(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Eg(e){return function(t){return e.apply(null,t)}}function Dg(e){return Q.isObject(e)&&e.isAxiosError===!0}var Og={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Og).forEach(([e,t])=>{Og[t]=e});function kg(e){let t=new wg(e),n=Tp(wg.prototype.request,t);return Q.extend(n,wg.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return kg(qh(e,t))},n}var Ag=kg(Ah);Ag.Axios=wg,Ag.CanceledError=Nh,Ag.CancelToken=Tg,Ag.isCancel=Mh,Ag.VERSION=ag,Ag.toFormData=ch,Ag.AxiosError=$,Ag.Cancel=Ag.CanceledError,Ag.all=function(e){return Promise.all(e)},Ag.spread=Eg,Ag.isAxiosError=Dg,Ag.mergeConfig=qh,Ag.AxiosHeaders=$m,Ag.formToJSON=e=>Dh(Q.isHTMLForm(e)?new FormData(e):e),Ag.getAdapter=gg.getAdapter,Ag.HttpStatusCode=Og,Ag.default=Ag;export{$c as $,Te as $n,Hr as $t,Wd as A,ht as An,Ma as At,Ul as B,Ve as Bn,Vi as Bt,Df as C,I as Cn,k as Cr,po as Ct,Xd as D,_t as Dn,Ra as Dt,$d as E,pt as En,Ba as Et,yd as F,rt as Fn,Ji as Ft,Al as G,Ne as Gn,Ni as Gt,zl as H,Be as Hn,zi as Ht,Gl as I,N as In,qi as It,Cl as J,Me as Jn,xi as Jt,Dl as K,Pe as Kn,Ci as Kt,Wl as L,P as Ln,Ki as Lt,Ud as M,ot as Mn,pa as Mt,xd as N,at as Nn,fa as Nt,Zd as O,vt as On,Ia as Ot,bd as P,et as Pn,z as Pt,tl as Q,Oe as Qn,ai as Qt,Hl as R,Xe as Rn,Ui as Rt,kf as S,Jt as Sn,ue as Sr,co as St,ef as T,mt as Tn,io as Tt,Ll as U,Ie as Un,Ri as Ut,Vl as V,Ge as Vn,Bi as Vt,kl as W,Fe as Wn,ji as Wt,xl as X,Ae as Xn,Ur as Xt,Sl as Y,ke as Yn,Si as Yt,rl as Z,De as Zn,bi as Zt,ff as _,an as _n,_e as _r,No as _t,op as a,jn as an,ye as ar,cc as at,uf as b,rn as bn,de as br,W as bt,Hf as c,Cn as cn,j as cr,ac as ct,If as d,gn as dn,pe as dr,Ho as dt,Br as en,Ee as er,Zc as et,Nf as f,hn as fn,oe as fr,Vo as ft,pf as g,cn as gn,ce as gr,Fo as gt,mf as h,sn as hn,le as hr,Io as ht,lp as i,Fn as in,Ce as ir,kc as it,Gd as j,ct as jn,ja as jt,Qd as k,gt as kn,Pa as kt,Vf as l,bn as ln,ae as lr,Os as lt,hf as m,un as mn,he as mr,Ro as mt,wp as n,Ln as nn,we as nr,Y as nt,ap as o,Mn as on,be as or,sc as ot,sf as p,pn,fe as pr,Bo as pt,Ol as q,je as qn,wi as qt,xp as r,Pn as rn,Se as rr,Dc as rt,Kf as s,En as sn,A as sr,lc as st,Ag as t,In as tn,M as tr,Yc as tt,Lf as u,_n as un,me as ur,Ds as ut,of as v,on as vn,ie as vr,Po as vt,nf as w,Kt as wn,D as wr,ro as wt,yf as x,qt as xn,se as xr,So as xt,gf as y,nn as yn,ge as yr,Ao as yt,X as z,Ke as zn,Hi as zt}; \ No newline at end of file diff --git a/assets/button-xukQsL9n.js b/assets/button-xukQsL9n.js new file mode 100644 index 0000000..9063607 --- /dev/null +++ b/assets/button-xukQsL9n.js @@ -0,0 +1,4 @@ +import{n as e,o as t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";import{$n as r,A as i,An as a,Cn as o,Dn as s,Et as c,Fn as l,Gn as u,Gt as d,Hn as f,In as p,J as m,K as h,Kn as g,L as _,Ln as v,On as y,Pn as b,Qn as ee,R as te,Rn as ne,Sn as re,Tn as ie,Un as x,Ut as ae,W as oe,Wn as se,Xn as S,Y as C,Yn as w,Zn as ce,ar as T,at as le,cr as E,er as ue,ir as D,kn as O,lt as k,nr as A,or as j,rr as M,sr as N,st as de,tr as P,ut as F,wn as fe,xn as pe}from"./axios-BDcMaxoP.js";import{n as me,t as he}from"./slicedToArray-BjCmY1mt.js";import{n as I,t as L}from"./typeof-C6uZ2mkP.js";import{i as R,r as z}from"./asyncToGenerator-BFc9W-7V.js";function B(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return V.Children.forEach(e,function(e){e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(B(e)):x(e)&&e.props?n=n.concat(B(e.props.children,t)):n.push(e))}),n}var V,H=e((()=>{f(),V=t(n())}));function ge(e){var t=e.children,n=e.onBatchResize,r=U.useRef(0),i=U.useRef([]),a=U.useContext(W),o=U.useCallback(function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){s===r.current&&(n?.(i.current),i.current=[])}),a?.(e,t,o)},[n,a]);return U.createElement(W.Provider,{value:o},t)}var U,W,_e=e((()=>{U=t(n()),W=U.createContext(null)}));function ve(e){e.forEach(function(e){var t,n=e.target;(t=G.get(n))==null||t.forEach(function(e){return e(n)})})}function ye(e,t){G.has(e)||(G.set(e,new Set),xe.observe(e)),G.get(e).add(t)}function be(e,t){G.has(e)&&(G.get(e).delete(t),G.get(e).size||(xe.unobserve(e),G.delete(e)))}var G,xe,Se=e((()=>{fe(),G=new Map,xe=new o(ve)})),Ce,we,Te=e((()=>{j(),D(),g(),re(),Ce=t(n()),we=function(e){u(n,e);var t=pe(n);function n(){return T(this,n),t.apply(this,arguments)}return M(n,[{key:`render`,value:function(){return this.props.children}}]),n}(Ce.Component)}));function Ee(e,t){var n=e.children,r=e.disabled,i=K.useRef(null),o=K.useRef(null),c=K.useContext(W),l=typeof n==`function`,u=l?n(i):n,d=K.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&K.isValidElement(u)&&O(u),m=a(f?s(u):null,i),h=function(){return b(i.current)||(i.current&&L(i.current)===`object`?b(i.current?.nativeElement):null)||b(o.current)};K.useImperativeHandle(t,function(){return h()});var g=K.useRef(e);g.current=e;var _=K.useCallback(function(e){var t=g.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,o=i.height,s=e.offsetWidth,l=e.offsetHeight,u=Math.floor(a),f=Math.floor(o);if(d.current.width!==u||d.current.height!==f||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var m={width:u,height:f,offsetWidth:s,offsetHeight:l};d.current=m;var h=s===Math.round(a)?a:s,_=l===Math.round(o)?o:l,v=p(p({},m),{},{offsetWidth:h,offsetHeight:_});c?.(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return K.useEffect(function(){var e=h();return e&&!r&&ye(e,_),function(){return be(e,_)}},[i.current,r]),K.createElement(we,{ref:o},f?K.cloneElement(u,{ref:m}):u)}var K,De,Oe=e((()=>{v(),I(),l(),y(),K=t(n()),_e(),Se(),Te(),De=K.forwardRef(Ee)}));function ke(e,t){var n=e.children;return(typeof n==`function`?[n]:B(n)).map(function(n,r){var i=n?.key||`${Ae}-${r}`;return q.createElement(De,N({},e,{key:i,ref:r===0?t:void 0}),n)})}var q,Ae,je,Me=e((()=>{E(),q=t(n()),H(),ne(),Oe(),_e(),Se(),Ae=`rc-observer-key`,je=q.forwardRef(ke),je.Collection=ge}));function Ne(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var Pe=e((()=>{})),J,Fe=e((()=>{J={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=J.F1&&t<=J.F12)return!1;switch(t){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=J.ZERO&&e<=J.NINE||e>=J.NUM_ZERO&&e<=J.NUM_MULTIPLY||e>=J.A&&e<=J.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}}}));A(),ue(),ee(),S(),Pe(),me(),E(),R();var Y=t(se());H();var X=t(n()),Ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0?arguments[1]:1,n=Ve++,r=t;function i(){--r,r<=0?(e(),delete Q[n]):Q[n]=F(i)}return Q[n]=F(i),n}$.cancel=function(e){e!==void 0&&(F.cancel(Q[e]),delete Q[e])},$.ids=Q,j(),D(),g(),y();function He(e,t,n){return t=w(t),r(e,ce()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}var Ue;function We(e){return!e||e.offsetParent===null||e.hidden}function Ge(e){return e instanceof Document?e.body:Array.from(e.childNodes).find(function(e){return e?.nodeType===Node.ELEMENT_NODE})}function Ke(e){var t=(e||``).match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var qe=function(e){u(t,e);function t(){var e;return T(this,t),e=He(this,t,arguments),e.containerRef=X.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r=e.props,i=r.insertExtraNode;if(!(r.disabled||!t||We(t)||t.className.includes(`-leave`))){e.extraNode=document.createElement(`div`);var a=P(e).extraNode,o=e.context.getPrefixCls;a.className=`${o(``)}-click-animating-node`;var s=e.getAttributeName();if(t.setAttribute(s,`true`),n&&n!==`#fff`&&n!==`#ffffff`&&n!==`rgb(255, 255, 255)`&&n!==`rgba(255, 255, 255, 1)`&&Ke(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&n!==`transparent`){a.style.borderColor=n;var c=t.getRootNode?.call(t)||t.ownerDocument,l=Ge(c)??c;Ue=d(` + [${o(``)}-click-animating-without-extra-node='true']::after, .${o(``)}-click-animating-node { + --antd-wave-shadow-color: ${n}; + }`,`antd-wave`,{csp:e.csp,attachTo:l})}i&&t.appendChild(a),[`transition`,`animation`].forEach(function(n){t.addEventListener(`${n}start`,e.onTransitionStart),t.addEventListener(`${n}end`,e.onTransitionEnd)})}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;!t||t.target!==n||e.animationStart||e.resetEffect(n)}},e.onTransitionEnd=function(t){!t||t.animationName!==`fadeEffect`||e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(!(!t||!t.getAttribute||t.getAttribute(`disabled`)||t.className.includes(`disabled`))){var n=function(n){if(!(n.target.tagName===`INPUT`||We(n.target))){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue(`border-top-color`)||getComputedStyle(t).getPropertyValue(`border-color`)||getComputedStyle(t).getPropertyValue(`background-color`);e.clickWaveTimeoutId=window.setTimeout(function(){return e.onClick(t,r)},0),$.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=$(function(){e.animationStart=!1},10)}};return t.addEventListener(`click`,n,!0),{cancel:function(){t.removeEventListener(`click`,n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!X.isValidElement(r))return r;var i=e.containerRef;return O(r)&&(i=ie(r.ref,e.containerRef)),_(r,{ref:i})},e}return M(t,[{key:`componentDidMount`,value:function(){this.destroyed=!1;var e=this.containerRef.current;!e||e.nodeType!==1||(this.instance=this.bindAnimationEvent(e))}},{key:`componentWillUnmount`,value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:`getAttributeName`,value:function(){var e=this.context.getPrefixCls;return this.props.insertExtraNode?`${e(``)}-click-animating`:`${e(``)}-click-animating-without-extra-node`}},{key:`resetEffect`,value:function(e){var t=this;if(!(!e||e===this.extraNode||!(e instanceof Element))){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,`false`),Ue&&(Ue.innerHTML=``),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),[`transition`,`animation`].forEach(function(n){e.removeEventListener(`${n}start`,t.onTransitionStart),e.removeEventListener(`${n}end`,t.onTransitionEnd)})}}},{key:`render`,value:function(){return X.createElement(m,null,this.renderWave)}}]),t}(X.Component);qe.contextType=C,E(),R();var Je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{throw TypeError(e)},a=(e,t,n)=>t.has(e)||i(`Cannot `+n),o=(e,t,n)=>(a(e,t,`read from private field`),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?i(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),c=(e,t,n,r)=>(a(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),l=`popstate`;function u(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function d(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return g(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:_(t)}return y(t,n,null,e)}function f(e,t){if(e===!1||e==null)throw Error(t)}function p(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function m(){return Math.random().toString(36).substring(2,10)}function h(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function g(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?v(t):t,state:n,key:t&&t.key||r||m(),mask:i}}function _({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function v(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,d=f();d??(d=0,o.replaceState({...o.state,idx:d},``));function f(){return(o.state||{idx:null}).idx}function p(){s=`POP`;let e=f(),t=e==null?null:e-d;d=e,c&&c({action:s,location:y.location,delta:t})}function m(e,t){s=`PUSH`;let r=u(e)?e:g(y.location,e,t);n&&n(r,e),d=f()+1;let l=h(r,d),p=y.createHref(r.mask||r);try{o.pushState(l,``,p)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(p)}a&&c&&c({action:s,location:y.location,delta:1})}function _(e,t){s=`REPLACE`;let r=u(e)?e:g(y.location,e,t);n&&n(r,e),d=f();let i=h(r,d),l=y.createHref(r.mask||r);o.replaceState(i,``,l),a&&c&&c({action:s,location:y.location,delta:0})}function v(e){return b(e)}let y={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(l,p),c=e,()=>{i.removeEventListener(l,p),c=null}},createHref(e){return t(i,e)},createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:m,replace:_,go(e){return o.go(e)}};return y}function b(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),f(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:_(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}var x,S=class{constructor(e){if(s(this,x,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(o(this,x).has(e))return o(this,x).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){o(this,x).set(e,t)}};x=new WeakMap;var C=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function w(e){return C.has(e)}var T=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function E(e){return T.has(e)}function D(e){return e.index===!0}function O(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(f(e.index!==!0||!e.children,`Cannot specify children on an index route`),f(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),D(e)){let n={...e,id:s};return r[s]=k(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=k(n,t(n)),e.children&&(n.children=O(e.children,t,o,r,i)),n}})}function k(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function A(e,t,n=`/`){return j(e,t,n,!1)}function j(e,t,n,r,i){let a=R((typeof t==`string`?v(t):t).pathname||`/`,n);if(a==null)return null;let o=i??M(e),s=null,c=de(a);for(let e=0;s==null&&e{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;f(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=U([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(f(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),N(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:I(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of P(e.path))a(e,t,!0,n)}),t}function P(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=P(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function te(e){e.sort((e,t)=>e.score===t.score?ce(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var F=/^:[\w-]+$/,ne=3,re=2,ie=1,ae=10,oe=-2,se=e=>e===`*`;function I(e,t){let n=e.split(`/`),r=n.length;return n.some(se)&&(r+=oe),t&&(r+=re),n.filter(e=>!se(e)).reduce((e,t)=>e+(F.test(t)?ne:t===``?ie:ae),r)}function ce(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function le(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function L(e,t=!1,n=!0){p(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function de(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return p(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function R(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function z({basename:e,pathname:t}){return t===`/`?e:U([e,t])}var B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=e=>B.test(e);function V(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?v(e):e,a;return n?(n=H(n),a=n.startsWith(`/`)?pe(n.substring(1),`/`):pe(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function pe(e,t){let n=ve(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function me(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=v(e):(i={...e},f(!i.pathname||!i.pathname.includes(`?`),me(`?`,`pathname`,`search`,i)),f(!i.pathname||!i.pathname.includes(`#`),me(`#`,`pathname`,`hash`,i)),f(!i.search||!i.search.includes(`#`),me(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=V(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var H=e=>e.replace(/\/\/+/g,`/`),U=e=>H(e.join(`/`)),ve=e=>e.replace(/\/+$/,``),ye=e=>ve(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ce(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function we(e){return U(e.map(e=>e.route.path).filter(Boolean))||`/`}var Te=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ee(e,t){let n=e;if(typeof n!=`string`||!B.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Te)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=R(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{p(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var De=Symbol(`Uninstrumented`);function Oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Ae(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Ae(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[De]??i,a=Ae(n[e],t,(...e)=>Me(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[De]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[De]??e,r=Ae(n.middleware,t,(...e)=>Me(e[0]));return r?(r[De]=t,r):e})),r}function ke(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[De]??e.navigate,r=Ae(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?_(n):`.`,...Ne(e,r??{})}});r&&(r[De]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[De]??e.fetch,r=Ae(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Ne(e,i??{})}});r&&(r[De]=t,e.fetch=r)}return e}function Ae(e,t,n){return e.length===0?null:async(...r)=>{let i=await je(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function je(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=je(e,t,n,r-1),a=await o,f(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Me(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Pe(t),params:{...r},pattern:i,context:W(n)}}function Ne(e,t){return{currentUrl:_(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Pe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function W(e){if(Fe(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var G=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Fe(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===G}var Ie=[`POST`,`PUT`,`PATCH`,`DELETE`],Le=new Set(Ie),Re=[`GET`,...Ie],K=new Set(Re),ze=new Set([301,302,303,307,308]),Be=new Set([307,308]),Ve={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},He={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ue={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},We=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ge=`remix-router-transitions`,Ke=Symbol(`ResetLoaderData`),qe,Je,q,Ye,Xe=class{constructor(e){s(this,qe),s(this,Je),s(this,q),s(this,Ye),c(this,qe,e),c(this,Je,M(e))}get stableRoutes(){return o(this,qe)}get activeRoutes(){return o(this,q)??o(this,qe)}get branches(){return o(this,Ye)??o(this,Je)}get hasHMRRoutes(){return o(this,q)!=null}setRoutes(e){c(this,qe,e),c(this,Je,M(e))}setHmrRoutes(e){c(this,q,e),c(this,Ye,M(e))}commitHmrRoutes(){o(this,q)&&(c(this,qe,o(this,q)),c(this,Je,o(this,Ye)),c(this,q,void 0),c(this,Ye,void 0))}};qe=new WeakMap,Je=new WeakMap,q=new WeakMap,Ye=new WeakMap;function Ze(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;f(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||We,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Oe(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Xe(O(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||mt,u={...e.future},d=null,m=new Set,h=null,_=null,y=null,x=null,C=e.hydrationData!=null,w=j(s.activeRoutes,e.history.location,c,!1,s.branches),T=!1,E=null,D,k;if(w==null&&!e.patchRoutesOnNavigation){let t=J(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Lt(s.activeRoutes);D=!0,k=!D,w=n,E={[r.id]:t}}else if(w&&!e.hydrationData&&ct(w,s.activeRoutes,e.history.location.pathname).active&&(w=null),!w){D=!1,k=!D,w=[];let t=ct(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(T=!0,w=t.matches)}else if(w.some(e=>e.route.lazy))D=!1,k=!D;else if(!w.some(e=>nt(e.route)))D=!0,k=!D;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=w;if(n){let e=w.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}k=!1,D=!0,r.forEach(e=>{let r=rt(e.route,t,n);k||=r.renderFallback,D&&=!r.shouldLoad})}let A,M={historyAction:e.history.action,location:e.history.location,matches:w,initialized:D,renderFallback:k,navigation:Ve,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},N=`POP`,P=null,te=!1,F,ne=!1,re=new Map,ie=null,ae=!1,oe=!1,se=new Set,I=new Map,ce=0,le=-1,ue=new Map,L=new Set,de=new Map,z=new Map,B=new Set,V=new Map,pe,me=null;function he(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(pe){pe(),pe=void 0;return}p(V.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ye({currentLocation:M.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{pe=e});e.history.go(r*-1),q(i,{state:`blocked`,location:n,proceed(){q(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(M.blockers);e.set(i,Ue),H({blockers:e})}}),P?.resolve(),P=null;return}return be(t,n)}),n){on(t,re);let e=()=>sn(t,re);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return M.initialized||be(`POP`,M.location,{initialHydration:!0}),A}function ge(){d&&d(),ie&&ie(),m.clear(),F&&F.abort(),M.fetchers.forEach((e,t)=>Le(M.fetchers,t)),M.blockers.forEach((e,t)=>Je(t))}function _e(e){if(m.add(e),h){let{newErrors:t}=h;h=null,e(M,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>m.delete(e)}function H(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),M={...M,...e};let n=[],r=[];M.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?n.push(t):r.push(t))}),B.forEach(e=>{!M.fetchers.has(e)&&!I.has(e)&&n.push(e)}),m.size===0&&(h={newErrors:e.errors??null}),[...m].forEach(r=>r(M,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(M.fetchers,e)),r.forEach(e=>M.fetchers.delete(e))}function U(t,n,{flushSync:r}={}){let i=M.actionData!=null&&M.navigation.formMethod!=null&&X(M.navigation.formMethod)&&M.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?M.actionData:null;let o=n.loaderData?Pt(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,c=M.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,Ue)));let l=ae?!1:ot(t,n.matches||M.matches),u=te===!0||M.navigation.formMethod!=null&&X(M.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ae||N===`POP`||(N===`PUSH`?e.history.push(t,t.state):N===`REPLACE`&&e.history.replace(t,t.state));let d;if(N===`POP`){let e=re.get(M.location.pathname);e&&e.has(t.pathname)?d={currentLocation:M.location,nextLocation:t}:re.has(t.pathname)&&(d={currentLocation:t,nextLocation:M.location})}else if(ne){let e=re.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),re.set(M.location.pathname,e)),d={currentLocation:M.location,nextLocation:t}}H({...n,actionData:a,loaderData:o,historyAction:N,location:t,initialized:!0,renderFallback:!1,navigation:Ve,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),N=`POP`,te=!1,ne=!1,ae=!1,oe=!1,P?.resolve(),P=null,me?.resolve(),me=null}async function ve(t,n){if(P?.resolve(),P=null,typeof t==`number`){P||=cn();let n=P.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=et(!1,$e(M.location,M.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?v(n.mask):{...M.location.mask,...n.mask}});let s=M.location,l=g(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&X(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ye({currentLocation:s,nextLocation:l,historyAction:d});if(m){q(m,{state:`blocked`,location:l,proceed(){q(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),ve(t,n)},reset(){let e=new Map(M.blockers);e.set(m,Ue),H({blockers:e})}});return}await be(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function ye(){me||=cn(),Pe(),H({revalidation:`loading`});let e=me.promise;return M.navigation.state===`submitting`?e:M.navigation.state===`idle`?(be(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(be(N||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:ne===!0}),e)}async function be(t,n,r){F&&F.abort(),F=null,N=t,ae=(r&&r.startUninterruptedRevalidation)===!0,at(M.location,M.matches),te=(r&&r.preventScrollReset)===!0,ne=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&M.matches&&M.matches.length>0&&!T?M.matches:j(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&M.initialized&&!oe&&Bt(M.location,n)&&!(r&&r.submission&&X(r.submission.formMethod))){U(n,{matches:a},{flushSync:o});return}let l=ct(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);U(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;F=new AbortController;let d=Ot(e.history,n,F.signal,r&&r.submission),f=e.getContext?await e.getContext():new S,p;if(r&&r.pendingError)p=[It(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&X(r.submission.formMethod)){let i=await xe(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Y(t)&&Ce(t.error)&&t.error.status===404){F=null,U(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=en(n,a,t,r.submission),o=!1,l.active=!1,d=Ot(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await Se(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(F=null,U(n,{matches:h||a,...Ft(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function xe(t,n,i,l,u,d,f,p,m={}){if(Pe(),H({navigation:tn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await lt(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Lt(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=It(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Ze(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Qt(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:J(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Me(t,n,bt(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Gt(h)){let n;return n=m&&m.replace!=null?m.replace:Dt(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===M.location.pathname+M.location.search,await je(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Y(h)){let e=It(l,g.route.id);return(m&&m.replace)!==!0&&(N=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function Se(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||en(n,i,l,p),x=p||m||$t(b),S=!ae&&!g;if(d){if(S){let e=we(v);H({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await lt(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Lt(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=It(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=tt(t,u,a,o,e.history,M,i,x,n,g?[]:r,g===!0,oe,se,B,de,L,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(le=++ce,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(M.fetchers),t=Ge(e);return U(n,{matches:i,loaderData:{},errors:v&&Y(v[1])?{[v[0]]:v[1].error}:null,...Ft(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=we(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Te(T)),H(e,{flushSync:_})}T.forEach(e=>{K(e.key),e.controller&&I.set(e.key,e.controller)});let E=()=>T.forEach(e=>K(e.key));F&&F.signal.addEventListener(`abort`,E);let{loaderResults:D,fetcherResults:O}=await Ne(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener(`abort`,E),T.forEach(e=>I.delete(e.key));let k=Rt(D);if(k)return await je(t,k.result,!0,{replace:h}),{shortCircuited:!0};if(k=Rt(O),k)return L.add(k.key),await je(t,k.result,!0,{replace:h}),{shortCircuited:!0};let A=new Map(M.fetchers),{loaderData:j,errors:ee}=Nt(M,i,D,v,T,O,A);g&&M.errors&&(ee={...M.errors,...ee});let N=Ge(A),P=Ke(le,A),te=N||P||T.length>0;return{matches:i,loaderData:j,errors:ee,...te?{workingFetchers:A}:{}}}function we(e){if(e&&!Y(e[1]))return{[e[0]]:e[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function Te(e){let t=new Map(M.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=nn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Ee(t,n,r,i){K(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=$e(M.location,M.matches,c,r,n,i?.relative),u=j(o,l,c,!1,s.branches),d=ct(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){G(t,n,J(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=et(!0,l,i);if(m){G(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new S,g=(i&&i.preventScrollReset)===!0;if(p&&X(p.formMethod)){await De(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}de.set(t,{routeId:n,path:f}),await Ae(t,n,f,u,h,d.active,a,g,p)}async function De(t,n,i,l,u,d,p,m,h,g){Pe(),de.delete(t),W(t,rn(h,M.fetchers.get(t)),{flushSync:p});let _=new AbortController,v=Ot(e.history,i,_.signal,h);if(d){let e=await lt(l,new URL(v.url).pathname,v.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){G(t,n,e.error,{flushSync:p});return}else if(e.matches)l=e.matches;else{G(t,n,J(404,{pathname:i}),{flushSync:p});return}}let y=Qt(l,i);if(!y.route.action&&!y.route.lazy){G(t,n,J(405,{method:h.formMethod,pathname:i,routeId:n}),{flushSync:p});return}I.set(t,_);let b=ce,x=bt(a,o,v,i,l,y,r,u),S=await Me(v,i,x,u,t),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){I.get(t)===_&&I.delete(t);return}if(B.has(t)){if(Gt(C)||Y(C)){W(t,an(void 0));return}}else{if(Gt(C))if(I.delete(t),le>b){W(t,an(void 0));return}else return L.add(t),W(t,nn(h)),je(v,C,!1,{fetcherSubmission:h,preventScrollReset:m});if(Y(C)){G(t,n,C.error);return}}let w=M.navigation.location||M.location,T=Ot(e.history,w,_.signal),E=s.activeRoutes,D=M.navigation.state===`idle`?M.matches:j(E,M.navigation.location,c,!1,s.branches);f(D,`Didn't find any matches after fetcher action`);let O=++ce;ue.set(t,O);let{dsMatches:k,revalidatingFetchers:A}=tt(T,u,a,o,e.history,M,D,h,w,r,!1,oe,se,B,de,L,E,c,e.patchRoutesOnNavigation!=null,s.branches,[y.route.id,C],g),ee=nn(h,C.data),P=new Map(M.fetchers);P.set(t,ee),A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=nn(void 0,n?n.data:void 0);P.set(t,r),K(t),e.controller&&I.set(t,e.controller)}),H({fetchers:P});let te=()=>A.forEach(e=>K(e.key));_.signal.addEventListener(`abort`,te);let{loaderResults:ne,fetcherResults:re}=await Ne(k,A,T,w,u);if(_.signal.aborted)return;_.signal.removeEventListener(`abort`,te),ue.delete(t),I.delete(t),A.forEach(e=>I.delete(e.key));let ie=M.fetchers.has(t),ae=e=>{if(!ie)return e;let n=new Map(e.fetchers);return n.set(t,an(C.data)),{...e,fetchers:n}},R=Rt(ne);if(R)return M=ae(M),je(T,R.result,!1,{preventScrollReset:m});if(R=Rt(re),R)return L.add(R.key),M=ae(M),je(T,R.result,!1,{preventScrollReset:m});let z=new Map(M.fetchers);ie&&z.set(t,an(C.data));let{loaderData:fe,errors:V}=Nt(M,D,ne,void 0,A,re,z);Ke(O,z),M.navigation.state===`loading`&&O>le?(f(N,`Expected pending action`),F&&F.abort(),U(M.navigation.location,{matches:D,loaderData:fe,errors:V,fetchers:z})):(H({errors:V,loaderData:Pt(M.loaderData,fe,D,V),fetchers:z}),oe=!1)}async function Ae(t,n,i,s,c,l,u,d,f){let p=M.fetchers.get(t);W(t,nn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Ot(e.history,i,m.signal);if(l){let e=await lt(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){G(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{G(t,n,J(404,{pathname:i}),{flushSync:u});return}}let g=Qt(s,i);I.set(t,m);let _=ce,v=await Me(h,i,bt(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(I.get(t)===m&&I.delete(t),!h.signal.aborted){if(B.has(t)){W(t,an(void 0));return}if(Gt(y))if(le>_){W(t,an(void 0));return}else{L.add(t),await je(h,y,!1,{preventScrollReset:d});return}if(Y(y)){G(t,n,y.error);return}W(t,an(y.data))}}async function je(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(P?.resolve(),P=null),i.response.headers.has(`X-Remix-Revalidate`)&&(oe=!0);let d=i.response.headers.get(`Location`);f(d,`Expected a Location header on the redirect Response`),d=Dt(d,new URL(r.url),c,e.history);let p=g(M.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(fe(d)){let n=b(d,!0);e=n.origin!==t.location.origin||R(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}F=null;let m=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:h,formAction:_,formEncType:v}=M.navigation;!o&&!s&&h&&_&&v&&(o=$t(M.navigation));let y=o||s;Be.has(i.response.status)&&y&&X(y.formMethod)?await be(m,p,{submission:{...y,formAction:d},preventScrollReset:l||te,enableViewTransition:a?ne:void 0}):await be(m,p,{overrideNavigation:en(p,[],m,o),fetcherSubmission:s,preventScrollReset:l||te,enableViewTransition:a?ne:void 0})}async function Me(e,t,n,r,i){let a,o={};try{a=await xt(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!X(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!M.loaderData.hasOwnProperty(e.route.id)&&(!M.errors||!M.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Wt(r)){let i=r.result;o[t]={type:`redirect`,response:Tt(i,e,t,n,c)}}else o[t]=await wt(r);return o}async function Ne(e,t,n,r,i){let a=Me(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Me(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:J(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Pe(){oe=!0,de.forEach((e,t)=>{I.has(t)&&se.add(t),K(t)})}function W(e,t,n={}){let r=new Map(M.fetchers);r.set(e,t),H({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function G(e,t,n,r={}){let i=It(M.matches,t),a=new Map(M.fetchers);Le(a,e),H({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return z.set(e,(z.get(e)||0)+1),B.has(e)&&B.delete(e),M.fetchers.get(e)||He}function Ie(e,t){K(e,t?.reason),W(e,an(null))}function Le(e,t){let n=M.fetchers.get(t);I.has(t)&&!(n&&n.state===`loading`&&ue.has(t))&&K(t),de.delete(t),ue.delete(t),L.delete(t),B.delete(t),se.delete(t),e.delete(t)}function Re(e){let t=(z.get(e)||0)-1;t<=0?(z.delete(e),B.add(e)):z.set(e,t),H({fetchers:new Map(M.fetchers)})}function K(e,t){let n=I.get(e);n&&(n.abort(t),I.delete(e))}function ze(e,t){for(let n of e){let e=t.get(n);f(e,`Expected fetcher: ${n}`);let r=an(e.data);t.set(n,r)}}function Ge(e){let t=[],n=!1;for(let r of L){let i=e.get(r);f(i,`Expected fetcher: ${r}`),i.state===`loading`&&(L.delete(r),t.push(r),n=!0)}return ze(t,e),n}function Ke(e,t){let n=[];for(let[r,i]of ue)if(i0}function qe(e,t){let n=M.blockers.get(e)||Ue;return V.get(e)!==t&&V.set(e,t),n}function Je(e){M.blockers.delete(e),V.delete(e)}function q(e,t){let n=M.blockers.get(e)||Ue;f(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),H({blockers:r})}function Ye({currentLocation:e,nextLocation:t,historyAction:n}){if(V.size===0)return;V.size>1&&p(!1,`A router only supports one blocker at a time`);let r=Array.from(V.entries()),[i,a]=r[r.length-1],o=M.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Ze(e){let t=J(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=Lt(n);return{notFoundMatches:r,route:i,error:t}}function Qe(e,t,n){if(_=e,x=t,y=n||null,!C&&M.navigation===Ve){C=!0;let e=ot(M.location,M.matches);e!=null&&H({restoreScrollPosition:e})}return()=>{_=null,x=null,y=null}}function it(e,t){return y&&y(e,t.map(e=>ee(e,M.loaderData)))||e.key}function at(e,t){if(_&&x){let n=it(e,t);_[n]=x()}}function ot(e,t){if(_){let n=it(e,t),r=_[n];if(typeof r==`number`)return r}return null}function ct(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:j(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:j(n,r,c,!0,e)}}return{active:!1,matches:null}}async function lt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||st(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=j(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=j(s.activeRoutes,n,c,!0,u),!(f&&l.lengthe.route.id===t[n].route.id)}function dt(e){o={},s.setHmrRoutes(O(e,a,void 0,o))}function ft(e,t,n=!1){st(e,t,s,o,a,n),s.hasHMRRoutes||H({})}return A={get basename(){return c},get future(){return u},get state(){return M},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:he,subscribe:_e,enableScrollRestoration:Qe,navigate:ve,fetch:Ee,revalidate:ye,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,resetFetcher:Ie,deleteFetcher:Re,dispose:ge,getBlocker:qe,deleteBlocker:Je,patchRoutes:ft,_internalFetchControllers:I,_internalSetRoutes:dt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){H(e)}},e.instrumentations&&(A=ke(A,e.instrumentations.map(e=>e.router).filter(Boolean))),A}function Qe(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function $e(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=_e(r||`.`,ge(o),R(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Zt(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=z({basename:n,pathname:c.pathname})),_(c)}function et(e,t,n){if(!n||!Qe(n))return{path:t};if(n.formMethod&&!Xt(n.formMethod))return{path:t,error:J(405,{method:n.formMethod})};let r=()=>({path:t,error:J(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=zt(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!X(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n} +`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!X(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}f(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=At(n.formData),s=n.formData;else if(n.body instanceof FormData)o=At(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=jt(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=jt(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(X(c.formMethod))return{path:t,submission:c};let l=v(t);return e&&l.search&&Zt(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:_(l),submission:c}}function tt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Y(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Y(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=we(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!nt(s))f=!1;else if(u){let{shouldLoad:e}=rt(s,a.loaderData,a.errors);f=e}else it(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return yt(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?at(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p};return yt(n,r,e,c,k,i,l,t,ot(i,m),m,x)}),ee=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=j(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;ee.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Qt(b,e.path),C=new AbortController,w=Ot(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=bt(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=bt(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:D?!1:d;let a={...O,defaultShouldRevalidate:i};ot(S,a)&&(T=bt(n,r,w,e.path,b,S,l,t,a))}T&&ee.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:ee}}function nt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function rt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!nt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function it(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function at(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function ot(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function st(e,t,n,r,i,a){let o;if(e){let t=r[e];f(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>ct(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=O(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;et.children?.some(t=>ct(e,t)))??!1:!1}var lt=new WeakMap,ut=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(f(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=lt.get(i);o||(o={},lt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=w(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)p(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)p(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},dt=new WeakMap;function ft(e,t,n,r,i){let a=n[e.id];if(f(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=dt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{f(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=E(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?p(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?p(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return dt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=ut({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function pt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function mt(e){return e.matches.some(e=>e.route.middleware)?ht(e,()=>pt(e)):pt(e)}function ht(e,t){return gt(e,t,e=>{if(Yt(e))throw e;return e},Ht,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=It(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function gt(e,t,n,r,i){let{matches:a,...o}=e;return await _t(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function _t(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await _t(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function vt(e,t,n,r,i){let a=ut({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ft(r.route,X(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function yt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=vt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?ot(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?ot(a,{...l,defaultShouldRevalidate:e}):ot(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!X(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(X(n.method)||!p)?St({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function bt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?yt(e,t,n,r,we(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:vt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function xt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:kt(t,n),pattern:we(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return ht(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function St({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=X(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:kt(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw J(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw J(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Ct(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function wt(e){let{result:t,type:n}=e;if(qt(t)){let e;try{e=await Ct(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Se(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Kt(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Vt(t),statusCode:Ce(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ce(t)?t.status:void 0}:Kt(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Tt(e,t,n,r,i){let a=e.headers.get(`Location`);if(f(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!fe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=$e(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Et=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Dt(e,t,n,r){if(fe(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(Et.includes(i.protocol))throw Error(`Invalid redirect location`);let a=R(i.pathname,n)!=null;if(i.origin===t.origin&&a)return H(i.pathname)+i.search+i.hash}try{let t=r.createURL(e);if(Et.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Ot(e,t,n,r){let i=e.createURL(zt(t)).toString(),a={signal:n};if(r&&X(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=At(r.formData):a.body=r.formData}return new Request(i,a)}function kt(e,t){let n=new URL(e.url),r=typeof t==`string`?v(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function At(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function jt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mt(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Y(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,p=t[d];if(f(!Gt(p),`Cannot handle redirect results in processLoaderData`),Y(p)){let t=p.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=It(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Ke),c||(c=!0,s=Ce(p.error)?p.error.status:500),p.headers&&(l[d]=p.headers)}else a[d]=p.data,p.statusCode&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(l[d]=p.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Nt(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Mt(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(f(s,`Did not find corresponding fetcher result`),Y(s)){let t=It(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Gt(s))f(!1,`Unhandled fetcher revalidation redirect`);else{let e=an(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Pt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Ke).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Ft(e){return e?Y(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function It(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Lt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function J(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Se(e||500,o,Error(s),!0)}function Rt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Gt(r))return{key:n,result:r}}}function zt(e){return _({...typeof e==`string`?v(e):e,hash:``})}function Bt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Vt(e){return new Se(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Ht(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Ut(t))}function Ut(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Wt(e){return qt(e.result)&&ze.has(e.result.status)}function Y(e){return e.type===`error`}function Gt(e){return(e&&e.type)===`redirect`}function Kt(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function qt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Jt(e){return ze.has(e)}function Yt(e){return qt(e)&&Jt(e.status)&&e.headers.has(`Location`)}function Xt(e){return K.has(e.toUpperCase())}function X(e){return Le.has(e.toUpperCase())}function Zt(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Qt(e,t){let n=typeof t==`string`?v(t).search:t.search;if(e[e.length-1].route.index&&Zt(n||``))return e[e.length-1];let r=he(e);return r[r.length-1]}function $t(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function en(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function nn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function rn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function an(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function on(e,t){try{let n=e.sessionStorage.getItem(Ge);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function sn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ge,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function cn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var ln=r.createContext(null);ln.displayName=`DataRouter`;var un=r.createContext(null);un.displayName=`DataRouterState`;var dn=r.createContext(!1);function fn(){return r.useContext(dn)}var pn=r.createContext({isTransitioning:!1});pn.displayName=`ViewTransition`;var mn=r.createContext(new Map);mn.displayName=`Fetchers`;var hn=r.createContext(null);hn.displayName=`Await`;var Z=r.createContext(null);Z.displayName=`Navigation`;var gn=r.createContext(null);gn.displayName=`Location`;var Q=r.createContext({outlet:null,matches:[],isDataRoute:!1});Q.displayName=`Route`;var _n=r.createContext(null);_n.displayName=`RouteError`;var vn=`REACT_ROUTER_ERROR`,yn=`REDIRECT`,bn=`ROUTE_ERROR_RESPONSE`;function xn(e){if(e.startsWith(`${vn}:${yn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Sn(e){if(e.startsWith(`${vn}:${bn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Se(t.status,t.statusText,t.data)}catch{}}function Cn(e,{relative:t}={}){f(wn(),`useHref() may be used only in the context of a component.`);let{basename:n,navigator:i}=r.useContext(Z),{hash:a,pathname:o,search:s}=jn(e,{relative:t}),c=o;return n!==`/`&&(c=o===`/`?n:U([n,o])),i.createHref({pathname:c,search:s,hash:a})}function wn(){return r.useContext(gn)!=null}function $(){return f(wn(),`useLocation() may be used only in the context of a component.`),r.useContext(gn).location}function Tn(){return r.useContext(gn).navigationType}var En=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Dn(e){r.useContext(Z).static||r.useLayoutEffect(e)}function On(){let{isDataRoute:e}=r.useContext(Q);return e?Xn():kn()}function kn(){f(wn(),`useNavigate() may be used only in the context of a component.`);let e=r.useContext(ln),{basename:t,navigator:n}=r.useContext(Z),{matches:i}=r.useContext(Q),{pathname:a}=$(),o=JSON.stringify(ge(i)),s=r.useRef(!1);return Dn(()=>{s.current=!0}),r.useCallback((r,i={})=>{if(p(s.current,En),!s.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:U([t,c.pathname])),(i.replace?n.replace:n.push)(c,i.state,i)},[t,n,o,a,e])}r.createContext(null);function An(){let{matches:e}=r.useContext(Q);return e[e.length-1]?.params??{}}function jn(e,{relative:t}={}){let{matches:n}=r.useContext(Q),{pathname:i}=$(),a=JSON.stringify(ge(n));return r.useMemo(()=>_e(e,JSON.parse(a),i,t===`path`),[e,a,i,t])}function Mn(e,t){return Nn(e,t)}function Nn(e,t,n){f(wn(),`useRoutes() may be used only in the context of a component.`);let{navigator:i}=r.useContext(Z),{matches:a}=r.useContext(Q),o=a[a.length-1],s=o?o.params:{},c=o?o.pathname:`/`,l=o?o.pathnameBase:`/`,u=o&&o.route;{let e=u&&u.path||``;Qn(c,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let d=$(),m;if(t){let e=typeof t==`string`?v(t):t;f(l===`/`||e.pathname?.startsWith(l),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=d;let h=m.pathname||`/`,g=h;if(l!==`/`){let e=l.replace(/^\//,``).split(`/`);g=`/`+h.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):A(e,{pathname:g});p(u||_!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),p(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let y=Bn(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:U([l,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?l:U([l,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),a,n);return t&&y?r.createElement(gn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...m},navigationType:`POP`}},y):y}function Pn(){let e=Yn(),t=Ce(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i=`rgba(200,200,200, 0.5)`,a={padding:`0.5rem`,backgroundColor:i},o={padding:`2px 4px`,backgroundColor:i},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=r.createElement(r.Fragment,null,r.createElement(`p`,null,`💿 Hey developer 👋`),r.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,r.createElement(`code`,{style:o},`ErrorBoundary`),` or`,` `,r.createElement(`code`,{style:o},`errorElement`),` prop on your route.`)),r.createElement(r.Fragment,null,r.createElement(`h2`,null,`Unexpected Application Error!`),r.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?r.createElement(`pre`,{style:a},n):null,s)}var Fn=r.createElement(Pn,null),In=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Sn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:r.createElement(Q.Provider,{value:this.props.routeContext},r.createElement(_n.Provider,{value:e,children:this.props.component}));return this.context?r.createElement(Rn,{error:e},t):t}};In.contextType=dn;var Ln=new WeakMap;function Rn({children:e,error:t}){let{basename:n}=r.useContext(Z);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=xn(t.digest);if(e){let i=Ln.get(t);if(i)throw i;let a=Ee(e.location,n);if(Te&&!Ln.get(t))if(a.isExternal||e.reloadDocument)window.location.href=a.absoluteURL||a.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Ln.set(t,n),n}return r.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a.absoluteURL||a.to}`})}}return e}function zn({routeContext:e,match:t,children:n}){let i=r.useContext(ln);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(Q.Provider,{value:e},n)}function Bn(e,t=[],n){let i=n?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let a=e,o=i?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&i){s=i.renderFallback;for(let e=0;e=0?a.slice(0,c+1):[a[0]];break}}}}let l=n?.onError,u=i&&l?(e,t)=>{l(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:we(i.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,l)=>{let d,f=!1,p=null,m=null;i&&(d=o&&n.route.id?o[n.route.id]:void 0,p=n.route.errorElement||Fn,s&&(c<0&&l===0?(Qn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?r.createElement(n.route.Component,null):n.route.element?n.route.element:e,r.createElement(zn,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:i!=null},children:t})};return i&&(n.route.ErrorBoundary||n.route.errorElement||l===0)?r.createElement(In,{location:i.location,revalidation:i.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function Vn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hn(e){let t=r.useContext(ln);return f(t,Vn(e)),t}function Un(e){let t=r.useContext(un);return f(t,Vn(e)),t}function Wn(e){let t=r.useContext(Q);return f(t,Vn(e)),t}function Gn(e){let t=Wn(e),n=t.matches[t.matches.length-1];return f(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Kn(){return Gn(`useRouteId`)}function qn(){let e=Un(`useNavigation`);return r.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Jn(){let{matches:e,loaderData:t}=Un(`useMatches`);return r.useMemo(()=>e.map(e=>ee(e,t)),[e,t])}function Yn(){let e=r.useContext(_n),t=Un(`useRouteError`),n=Gn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Xn(){let{router:e}=Hn(`useNavigate`),t=Gn(`useNavigate`),n=r.useRef(!1);return Dn(()=>{n.current=!0}),r.useCallback(async(r,i={})=>{p(n.current,En),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Zn={};function Qn(e,t,n){!t&&!Zn[e]&&(Zn[e]=!0,p(!1,n))}var $n={};function er(e,t){!e&&!$n[t]&&($n[t]=!0,console.warn(t))}var tr=r.useOptimistic,nr=()=>void 0;function rr(e){return tr?tr(e):[e,nr]}function ir(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:r.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:r.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:r.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ar=[`HydrateFallback`,`hydrateFallbackElement`],or=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function sr({router:e,flushSync:t,onError:n,useTransitions:i}){i=fn()||i;let[a,o]=r.useState(e.state),[s,c]=rr(a),[l,u]=r.useState(),[d,f]=r.useState({isTransitioning:!1}),[p,m]=r.useState(),[h,g]=r.useState(),[_,v]=r.useState(),y=r.useRef(new Map),b=r.useCallback((a,{deletedFetchers:s,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{l&&n&&Object.values(l).forEach(e=>n(e,{location:a.location,params:a.matches[0]?.params??{},pattern:we(a.matches)})),a.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),s.forEach(e=>y.current.delete(e)),er(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(er(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b){t&&d?t(()=>o(a)):i===!1?o(a):r.startTransition(()=>{i===!0&&c(e=>cr(e,a)),o(a)});return}if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>o(a))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n));return}h?(p?.resolve(),h.skipTransition(),v({state:a,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(a),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,i,c,n]);r.useLayoutEffect(()=>e.subscribe(b),[e,b]),r.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new or)},[d]),r.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,a=e.window.document.startViewTransition(async()=>{i===!1?o(t):r.startTransition(()=>{i===!0&&c(e=>cr(e,t)),o(t)}),await n});a.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(a)}},[l,p,e.window,i,c]),r.useEffect(()=>{p&&l&&s.location.key===l.location.key&&p.resolve()},[p,h,s.location,l]),r.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let x=r.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=r.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return r.createElement(r.Fragment,null,r.createElement(ln.Provider,{value:C},r.createElement(un.Provider,{value:s},r.createElement(mn.Provider,{value:y.current},r.createElement(pn.Provider,{value:d},r.createElement(pr,{basename:S,location:s.location,navigationType:s.historyAction,navigator:x,useTransitions:i},r.createElement(lr,{routes:e.routes,manifest:e.manifest,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function cr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var lr=r.memo(ur);function ur({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Nn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function dr({to:e,replace:t,state:n,relative:i}){f(wn(),` may be used only in the context of a component.`);let{static:a}=r.useContext(Z);p(!a,` must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.`);let{matches:o}=r.useContext(Q),{pathname:s}=$(),c=On(),l=_e(e,ge(o),s,i===`path`),u=JSON.stringify(l);return r.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:i})},[c,u,i,t,n]),null}function fr(e){f(!1,`A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .`)}function pr({basename:e=`/`,children:t=null,location:n,navigationType:i=`POP`,navigator:a,static:o=!1,useTransitions:s}){f(!wn(),`You cannot render a inside another . You should never have more than one in your app.`);let c=e.replace(/^\/*/,`/`),l=r.useMemo(()=>({basename:c,navigator:a,static:o,useTransitions:s,future:{}}),[c,a,o,s]);typeof n==`string`&&(n=v(n));let{pathname:u=`/`,search:d=``,hash:m=``,state:h=null,key:g=`default`,mask:_}=n,y=r.useMemo(()=>{let e=R(u,c);return e==null?null:{location:{pathname:e,search:d,hash:m,state:h,key:g,mask:_},navigationType:i}},[c,u,d,m,h,g,i,_]);return p(y!=null,` is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the won't render anything.`),y==null?null:r.createElement(Z.Provider,{value:l},r.createElement(gn.Provider,{children:t,value:y}))}function mr({children:e,location:t}){return Mn(hr(e),t)}r.Component;function hr(e,t=[]){let n=[];return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment){n.push.apply(n,hr(e.props.children,a));return}f(e.type===fr,`[${typeof e.type==`string`?e.type:e.type.name}] is not a component. All component children of must be a or `),f(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let o={id:e.props.id||a.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=hr(e.props.children,a)),n.push(o)}),n}var gr=`get`,_r=`application/x-www-form-urlencoded`;function vr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function yr(e){return vr(e)&&e.tagName.toLowerCase()===`button`}function br(e){return vr(e)&&e.tagName.toLowerCase()===`form`}function xr(e){return vr(e)&&e.tagName.toLowerCase()===`input`}function Sr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Cr(e,t){return e.button===0&&(!t||t===`_self`)&&!Sr(e)}var wr=null;function Tr(){if(wr===null)try{new FormData(document.createElement(`form`),0),wr=!1}catch{wr=!0}return wr}var Er=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Dr(e){return e!=null&&!Er.has(e)?(p(!1,`"${e}" is not a valid \`encType\` for \`
    \`/\`\` and will default to "${_r}"`),null):e}function Or(e,t){let n,r,i,a,o;if(br(e)){let o=e.getAttribute(`action`);r=o?R(o,t):null,n=e.getAttribute(`method`)||gr,i=Dr(e.getAttribute(`enctype`))||_r,a=new FormData(e)}else if(yr(e)||xr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a