@snk-libs/sankhya-ds 1.0.0-dev.42 → 1.0.0-dev.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -30
- package/dist/angular/fesm2022/sankhya-ds-angular.mjs +1 -1
- package/dist/angular/types/sankhya-ds-angular.d.ts +54 -4
- package/dist/chart/catalog.json +1 -1
- package/dist/chart/docs/guides/security.md +18 -1
- package/dist/chart/docs/llms-full.txt +21 -4
- package/dist/chart/docs/llms.txt +3 -3
- package/dist/chart/web-types.json +1 -1
- package/dist/cli/agent-instructions.js +1 -1
- package/dist/code-editor/catalog.json +1 -1
- package/dist/{rich-text/cdn/chunks/define-UuThGqGP.js → code-editor/cdn/chunks/define-BLiuGGFn.js} +1 -1
- package/dist/code-editor/cdn/chunks/{define-CvwUlmWH.js → define-gkA4p1VF.js} +2 -2
- package/dist/code-editor/cdn/sankhya-ds-code-editor.js +1 -1
- package/dist/code-editor/docs/guides/security.md +18 -1
- package/dist/code-editor/docs/llms-full.txt +21 -4
- package/dist/code-editor/docs/llms.txt +3 -3
- package/dist/code-editor/web-types.json +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/data-grid/catalog.json +1 -1
- package/dist/data-grid/cdn/chunks/button-BarPi0Lv.js +1 -0
- package/dist/data-grid/cdn/chunks/columns-CA2Vcvfs.js +12 -0
- package/dist/data-grid/cdn/chunks/{data-grid-Cjo21_Zs.js → data-grid-B0UVXUTP.js} +2 -2
- package/dist/data-grid/cdn/chunks/define-1ZbgI2KR.js +1 -0
- package/dist/data-grid/cdn/chunks/define-BJJ3hntp.js +1 -0
- package/dist/data-grid/cdn/chunks/{define-CXIpnI39.js → define-BbbuW84a.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-U60yoO9z.js → define-CItz3647.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-D2aTiHM3.js → define-DeYvxyfZ.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-CV5XCesQ.js → define-DpfATHS9.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-C2AJ5P18.js → define-DxKvOfmM.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-BPbMyn_4.js → define-Qj9VajoI.js} +1 -1
- package/dist/data-grid/cdn/chunks/{define-CoR-yqdq.js → define-fVFFcoCE.js} +1 -1
- package/dist/data-grid/cdn/chunks/{editor-fields.define-BK82_GUi.js → editor-fields.define-CaVFhHpy.js} +1 -1
- package/dist/data-grid/cdn/chunks/virtual-list-DHYvMdlP.js +1 -0
- package/dist/data-grid/cdn/sankhya-ds-data-grid.js +1 -1
- package/dist/data-grid/docs/guides/security.md +18 -1
- package/dist/data-grid/docs/llms-full.txt +21 -4
- package/dist/data-grid/docs/llms.txt +3 -3
- package/dist/data-grid/web-types.json +1 -1
- package/dist/eslint-plugin/rules/no-html-sinks.js +1 -1
- package/dist/icons/catalog.json +1 -1
- package/dist/icons/docs/guides/security.md +18 -1
- package/dist/icons/docs/llms-full.txt +21 -4
- package/dist/icons/docs/llms.txt +3 -3
- package/dist/icons/groups/g00.d.ts +3 -0
- package/dist/icons/groups/g00.js +1 -0
- package/dist/icons/groups/g01.d.ts +3 -0
- package/dist/icons/groups/g01.js +1 -0
- package/dist/icons/groups/g02.d.ts +3 -0
- package/dist/icons/groups/g02.js +1 -0
- package/dist/icons/groups/g03.d.ts +3 -0
- package/dist/icons/groups/g03.js +1 -0
- package/dist/icons/groups/g04.d.ts +3 -0
- package/dist/icons/groups/g04.js +1 -0
- package/dist/icons/groups/g05.d.ts +3 -0
- package/dist/icons/groups/g05.js +1 -0
- package/dist/icons/groups/g06.d.ts +3 -0
- package/dist/icons/groups/g06.js +1 -0
- package/dist/icons/groups/g07.d.ts +3 -0
- package/dist/icons/groups/g07.js +1 -0
- package/dist/icons/groups/g08.d.ts +3 -0
- package/dist/icons/groups/g08.js +1 -0
- package/dist/icons/groups/g09.d.ts +3 -0
- package/dist/icons/groups/g09.js +1 -0
- package/dist/icons/groups/g10.d.ts +3 -0
- package/dist/icons/groups/g10.js +1 -0
- package/dist/icons/groups/g11.d.ts +3 -0
- package/dist/icons/groups/g11.js +1 -0
- package/dist/icons/groups/g12.d.ts +3 -0
- package/dist/icons/groups/g12.js +1 -0
- package/dist/icons/groups/g13.d.ts +3 -0
- package/dist/icons/groups/g13.js +1 -0
- package/dist/icons/groups/g14.d.ts +3 -0
- package/dist/icons/groups/g14.js +1 -0
- package/dist/icons/groups/g15.d.ts +3 -0
- package/dist/icons/groups/g15.js +1 -0
- package/dist/icons/groups/g16.d.ts +3 -0
- package/dist/icons/groups/g16.js +1 -0
- package/dist/icons/groups/g17.d.ts +3 -0
- package/dist/icons/groups/g17.js +1 -0
- package/dist/icons/groups/g18.d.ts +3 -0
- package/dist/icons/groups/g18.js +1 -0
- package/dist/icons/groups/g19.d.ts +3 -0
- package/dist/icons/groups/g19.js +1 -0
- package/dist/icons/groups/g20.d.ts +3 -0
- package/dist/icons/groups/g20.js +1 -0
- package/dist/icons/groups/g21.d.ts +3 -0
- package/dist/icons/groups/g21.js +1 -0
- package/dist/icons/groups/g22.d.ts +3 -0
- package/dist/icons/groups/g22.js +1 -0
- package/dist/icons/groups/g23.d.ts +3 -0
- package/dist/icons/groups/g23.js +1 -0
- package/dist/icons/groups/g24.d.ts +3 -0
- package/dist/icons/groups/g24.js +1 -0
- package/dist/icons/groups/g25.d.ts +3 -0
- package/dist/icons/groups/g25.js +1 -0
- package/dist/icons/groups/g26.d.ts +3 -0
- package/dist/icons/groups/g26.js +1 -0
- package/dist/icons/groups/g27.d.ts +3 -0
- package/dist/icons/groups/g27.js +1 -0
- package/dist/icons/groups/g28.d.ts +3 -0
- package/dist/icons/groups/g28.js +1 -0
- package/dist/icons/groups/g29.d.ts +3 -0
- package/dist/icons/groups/g29.js +1 -0
- package/dist/icons/groups/g30.d.ts +3 -0
- package/dist/icons/groups/g30.js +1 -0
- package/dist/icons/groups/g31.d.ts +3 -0
- package/dist/icons/groups/g31.js +1 -0
- package/dist/icons/groups/g32.d.ts +3 -0
- package/dist/icons/groups/g32.js +1 -0
- package/dist/icons/groups/g33.d.ts +3 -0
- package/dist/icons/groups/g33.js +1 -0
- package/dist/icons/groups/g34.d.ts +3 -0
- package/dist/icons/groups/g34.js +1 -0
- package/dist/icons/loader-groups.d.ts +7 -0
- package/dist/icons/loader-groups.js +1 -0
- package/dist/icons/loader.d.ts +26 -0
- package/dist/icons/loader.js +1 -0
- package/dist/icons/web-types.json +1 -1
- package/dist/react/generated/module-navigator.d.ts +3 -1
- package/dist/react/generated/module-navigator.js +1 -1
- package/dist/rich-text/catalog.json +1 -1
- package/dist/{code-editor/cdn/chunks/define-yb6MpOgI.js → rich-text/cdn/chunks/define-B5EOhkcg.js} +1 -1
- package/dist/rich-text/cdn/chunks/{define-5Q3aM-MB.js → define-DZOhxnGv.js} +2 -2
- package/dist/rich-text/cdn/sankhya-ds-rich-text.js +1 -1
- package/dist/rich-text/docs/guides/security.md +18 -1
- package/dist/rich-text/docs/llms-full.txt +21 -4
- package/dist/rich-text/docs/llms.txt +3 -3
- package/dist/rich-text/web-types.json +1 -1
- package/dist/tokens/README.md +6 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.d.ts +3 -1
- package/dist/tokens/tokens.js +1 -1
- package/dist/tokens/tokens.json +1 -1
- package/dist/ui/catalog.json +1 -1
- package/dist/ui/cdn/chunks/advanced-fields.define-DQoTpvkU.js +1 -0
- package/dist/ui/cdn/chunks/{button-Dc3dptM2.js → button-C0nZyNW4.js} +1 -1
- package/dist/ui/cdn/chunks/{button-tone.styles-C7xrYy7N.js → button-tone.styles-C330HpuP.js} +1 -1
- package/dist/ui/cdn/chunks/{define-BY_EBAu8.js → define-1HwywiEE.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DwpFFPnr.js → define-5oulb36C.js} +1 -1
- package/dist/ui/cdn/chunks/define-6bTMFxmo.js +1 -0
- package/dist/ui/cdn/chunks/{define-Cog7ILt7.js → define-B4p1Nw6W.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DgXvJMhv.js → define-B5-jTqil.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DQcnbCUU.js → define-BFpQQ7if.js} +1 -1
- package/dist/ui/cdn/chunks/{define-BAv9BZHk.js → define-BIOXI8d_.js} +1 -1
- package/dist/ui/cdn/chunks/define-BJCUF0gp.js +1 -0
- package/dist/ui/cdn/chunks/{define-CcUku4-h.js → define-BLPxJkb2.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Dv-2E7eJ.js → define-BMjDe9Mo.js} +1 -1
- package/dist/ui/cdn/chunks/{define-oibalMLN.js → define-BOb_fe5E.js} +1 -1
- package/dist/ui/cdn/chunks/{define-xSeFQNwJ.js → define-BS68BVIc.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DLYC2B2g.js → define-BTqgdC8c.js} +1 -1
- package/dist/ui/cdn/chunks/{define-BpeTAFwK.js → define-BX4Huoie.js} +1 -1
- package/dist/ui/cdn/chunks/{define-HONm4aD8.js → define-BcWB8k8D.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Daryksqt.js → define-BdMwk0I0.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Dxqf1fTv.js → define-Ben2zMCB.js} +1 -1
- package/dist/ui/cdn/chunks/{define-QEgOUAKi.js → define-BgdsgGQ5.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Bx4m2d_7.js → define-BjayA5TU.js} +1 -1
- package/dist/ui/cdn/chunks/define-BlEODXiI.js +1 -0
- package/dist/ui/cdn/chunks/{define-BGOxwMHD.js → define-BohlB-jN.js} +1 -1
- package/dist/ui/cdn/chunks/{define-CDv3Abur.js → define-BrEuP8Re.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Bpp-4z5f.js → define-BwOenRDE.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DvZpHe-e.js → define-C6MKfs3d.js} +1 -1
- package/dist/ui/cdn/chunks/{define-qt8n-Tjs.js → define-C7JO2QV8.js} +1 -1
- package/dist/ui/cdn/chunks/{define-C3RghF-A.js → define-CA8whH1g.js} +1 -1
- package/dist/ui/cdn/chunks/{define-C6rOLGg9.js → define-CAjCvD0y.js} +1 -1
- package/dist/ui/cdn/chunks/define-CD8H3I4z.js +1 -0
- package/dist/ui/cdn/chunks/{define-BHaizcXD.js → define-CmDrXDTH.js} +1 -1
- package/dist/ui/cdn/chunks/define-CqUit1Ts.js +1 -0
- package/dist/ui/cdn/chunks/{define-utJ_G_oH.js → define-D4MAN6nI.js} +1 -1
- package/dist/ui/cdn/chunks/define-DN_o_LRy.js +1 -0
- package/dist/ui/cdn/chunks/{define-CCYJg32U.js → define-DRfoLzJA.js} +1 -1
- package/dist/ui/cdn/chunks/{define-BeySEe-2.js → define-DU0WKCaA.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Be0lpe15.js → define-DavDjZCx.js} +1 -1
- package/dist/ui/cdn/chunks/{define-CwNYY4ZV.js → define-DjKjqyYf.js} +1 -1
- package/dist/ui/cdn/chunks/{define-fo-1jpRJ.js → define-DlcC-QjR.js} +1 -1
- package/dist/ui/cdn/chunks/{define-fz9tV4S_.js → define-DvzXjDE9.js} +1 -1
- package/dist/ui/cdn/chunks/{define-3nvKNp16.js → define-Dwv98VJ4.js} +1 -1
- package/dist/ui/cdn/chunks/{define-CJ9Cwz4X.js → define-M9lo1Lzk.js} +1 -1
- package/dist/ui/cdn/chunks/define-MICI2c8M.js +1 -0
- package/dist/ui/cdn/chunks/{define-ChwSNIfX.js → define-McdVZziC.js} +1 -1
- package/dist/ui/cdn/chunks/{define-MwzIVrmG.js → define-OJKuaYVb.js} +1 -1
- package/dist/ui/cdn/chunks/{define-C6XouXEk.js → define-Q0H5m97b.js} +1 -1
- package/dist/ui/cdn/chunks/{define-C6lhGzAJ.js → define-TM9Gvk4r.js} +1 -1
- package/dist/ui/cdn/chunks/{define-Dz4TDXNI.js → define-b1d4ktN6.js} +1 -1
- package/dist/ui/cdn/chunks/define-e6AwpBic.js +1 -0
- package/dist/ui/cdn/chunks/{define-BA7gsh2L.js → define-fhp_BJyc.js} +1 -1
- package/dist/ui/cdn/chunks/{define-DzQX13IW.js → define-ljzwSzhu.js} +1 -1
- package/dist/ui/cdn/chunks/{define-EqWuoczz.js → define-pTI_gjIo.js} +1 -1
- package/dist/ui/cdn/chunks/{define-aMSyJdtc.js → define-xEnRteDq.js} +1 -1
- package/dist/ui/cdn/chunks/{define-CPh1mqyT.js → define-xbgvJU3M.js} +1 -1
- package/dist/ui/cdn/chunks/dirty-CymwdDiz.js +1 -0
- package/dist/ui/cdn/chunks/header-search-panel-BZcXQ012.js +1 -0
- package/dist/ui/cdn/chunks/list-page-D1l1Sr1z.js +1 -0
- package/dist/ui/cdn/chunks/{parts.define-B8_AHkdW.js → parts.define-De_YsI71.js} +1 -1
- package/dist/ui/cdn/chunks/virtual-list-CgDCcevM.js +1 -0
- package/dist/ui/cdn/sankhya-ds-ui.js +1 -1
- package/dist/ui/cdn/styles.css +1 -1
- package/dist/ui/components/alert/alert.d.ts +1 -1
- package/dist/ui/components/button/button-tone.styles.js +1 -1
- package/dist/ui/components/drawer/drawer.d.ts +8 -0
- package/dist/ui/components/drawer/drawer.js +1 -1
- package/dist/ui/components/header/header-search-panel.d.ts +43 -0
- package/dist/ui/components/header/header-search-panel.js +1 -0
- package/dist/ui/components/header/header-search-panel.styles.d.ts +1 -0
- package/dist/ui/components/header/header-search-panel.styles.js +1 -0
- package/dist/ui/components/header/header.d.ts +2 -7
- package/dist/ui/components/header/header.js +1 -1
- package/dist/ui/components/header/header.styles.js +1 -1
- package/dist/ui/components/modal/modal.d.ts +7 -0
- package/dist/ui/components/modal/modal.js +1 -1
- package/dist/ui/components/module-navigator/module-navigator.d.ts +75 -4
- package/dist/ui/components/module-navigator/module-navigator.js +1 -1
- package/dist/ui/components/module-navigator/module-navigator.styles.js +1 -1
- package/dist/ui/components/select/select.d.ts +5 -0
- package/dist/ui/components/select/select.js +1 -1
- package/dist/ui/components/select/select.styles.js +1 -1
- package/dist/ui/components/transfer-list/transfer-list.d.ts +2 -0
- package/dist/ui/components/transfer-list/transfer-list.js +1 -1
- package/dist/ui/components/transfer-list/transfer-list.styles.js +1 -1
- package/dist/ui/components/widget/define.d.ts +0 -1
- package/dist/ui/components/widget/define.js +1 -1
- package/dist/ui/components/widget/widget.js +1 -1
- package/dist/ui/components/widget/widget.styles.js +1 -1
- package/dist/ui/components/widget-area/widget-area.js +1 -1
- package/dist/ui/custom-elements.json +1 -1
- package/dist/ui/docs/components/alert.md +11 -11
- package/dist/ui/docs/components/button.md +1 -1
- package/dist/ui/docs/components/drawer.md +72 -1
- package/dist/ui/docs/components/header.md +6 -0
- package/dist/ui/docs/components/modal.md +64 -1
- package/dist/ui/docs/components/module-navigator.md +111 -4
- package/dist/ui/docs/components/select.md +20 -1
- package/dist/ui/docs/components/transfer-list.md +10 -1
- package/dist/ui/docs/components/widget-area.md +7 -2
- package/dist/ui/docs/guides/security.md +18 -1
- package/dist/ui/docs/llms-full.txt +323 -26
- package/dist/ui/docs/llms.txt +3 -3
- package/dist/ui/document-styles-text.d.ts +2 -0
- package/dist/ui/document-styles-text.js +1 -0
- package/dist/ui/document-styles.d.ts +12 -0
- package/dist/ui/document-styles.js +1 -0
- package/dist/ui/internal/dirty.d.ts +16 -0
- package/dist/ui/internal/dirty.js +1 -0
- package/dist/ui/internal/header-search-panel-loader.d.ts +12 -0
- package/dist/ui/internal/header-search-panel-loader.js +1 -0
- package/dist/ui/internal/list-page.d.ts +10 -0
- package/dist/ui/internal/list-page.js +1 -0
- package/dist/ui/internal/virtual-list-loader.d.ts +48 -0
- package/dist/ui/internal/virtual-list-loader.js +1 -0
- package/dist/ui/internal/virtual-list.d.ts +75 -0
- package/dist/ui/internal/virtual-list.js +1 -0
- package/dist/ui/internal/widget-menu-loader.d.ts +9 -0
- package/dist/ui/internal/widget-menu-loader.js +1 -0
- package/dist/ui/schemas/alert.schema.json +1 -1
- package/dist/ui/schemas/drawer.schema.json +1 -1
- package/dist/ui/schemas/modal.schema.json +1 -1
- package/dist/ui/schemas/module-navigator.schema.json +1 -1
- package/dist/ui/vscode.html-custom-data.json +1 -1
- package/dist/ui/web-types.json +1 -1
- package/dist/vue/generated/header.d.ts +2 -2
- package/dist/vue/generated/index.d.ts +14 -3
- package/dist/vue/generated/module-navigator.d.ts +16 -1
- package/dist/vue/generated/module-navigator.js +1 -1
- package/package.json +9 -1
- package/dist/data-grid/cdn/chunks/button-CZutBprr.js +0 -1
- package/dist/data-grid/cdn/chunks/columns-DyUtMWSK.js +0 -12
- package/dist/data-grid/cdn/chunks/define-BZ-ScMRW.js +0 -1
- package/dist/data-grid/cdn/chunks/define-DMOjaYaF.js +0 -1
- package/dist/ui/cdn/chunks/advanced-fields.define-vmlJEyKY.js +0 -1
- package/dist/ui/cdn/chunks/define-2dCBM6gx.js +0 -1
- package/dist/ui/cdn/chunks/define-8R0LBd8U.js +0 -1
- package/dist/ui/cdn/chunks/define-B1czwkB7.js +0 -1
- package/dist/ui/cdn/chunks/define-BSgUw2jq.js +0 -1
- package/dist/ui/cdn/chunks/define-CTIELAjY.js +0 -1
- package/dist/ui/cdn/chunks/define-D1L7PT7M.js +0 -1
- package/dist/ui/cdn/chunks/define-DQgt0gzY.js +0 -1
- package/dist/ui/cdn/chunks/define-DsSgkRm9.js +0 -1
package/dist/{code-editor/cdn/chunks/define-yb6MpOgI.js → rich-text/cdn/chunks/define-B5EOhkcg.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,u as c}from"./define-CvwUlmWH.js";var l=c`:host{display:inline-flex;justify-self:start;vertical-align:middle;color:inherit}.base{display:inline-flex;align-items:center;gap:var(--sankhya-ds-space-2);font:var(--sankhya-ds-type-caption);font-weight:var(--sankhya-ds-weight-medium);white-space:nowrap}.key{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-inline-size:var(--sankhya-ds-space-20);min-block-size:var(--sankhya-ds-space-20);padding-inline:var(--sankhya-ds-space-4);border:var(--sankhya-ds-border-width) solid color-mix(in srgb,currentColor 40%,transparent);border-block-end-width:var(--sankhya-ds-border-width-strong);border-radius:var(--sankhya-ds-radius-xs);font:inherit;line-height:var(--sankhya-ds-leading-tight)}.separator{color:inherit}@media (forced-colors:active){.key{border-color:CanvasText}}`,u=function(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},d=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};function f(e){let t=e.trim();if(!t)return[];if(t===`+`)return[`+`];let n=/\+\s*\+$/.test(t),r=(n?t.replace(/\+\s*\+$/,``):t).split(/\s*\+\s*|\s+/).filter(Boolean);return n?[...r,`+`]:r}var p=(()=>{let e=n,i,a=[],o=[];return class extends e{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;i=[s()],u(this,null,i,{kind:`accessor`,name:`keys`,static:!1,private:!1,access:m(`keys`),metadata:t},a,o),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static css=l;#e=d(this,a,``);get keys(){return this.#e}set keys(e){this.#e=e}render(){let e=f(this.keys);return r`<kbd part="base" class="base" >${e.length?e.map((e,n)=>r`${n?r`<span part="separator" class="separator">+</span>`:t}<kbd part="key" class="key" >${e}</kbd >`):r`<kbd part="key" class="key"><slot></slot></kbd>`}</kbd >`}constructor(){super(...arguments),d(this,o)}}})();function m(e){return{has:t=>e in t,get:t=>t[e],set:(t,n)=>{t[e]=n}}}e(`sankhya-ds-kbd`,p);var h=Math.min,g=Math.max,_=Math.round,v=Math.floor,y=e=>({x:e,y:e}),b={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function x(e,t,n){return g(e,h(t,n))}function S(e,t){return typeof e==`function`?e(t):e}function C(e){return e.split(`-`)[0]}function w(e){return e.split(`-`)[1]}function T(e){return e===`x`?`y`:`x`}function E(e){return e===`y`?`height`:`width`}function D(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function O(e){return T(D(e))}function k(e,t,n){n===void 0&&(n=!1);let r=w(e),i=O(e),a=E(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function A(e){let t=F(e);return[j(e),t,j(t)]}function j(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var M=[`left`,`right`],N=[`right`,`left`],ee=[`top`,`bottom`],P=[`bottom`,`top`];function te(e,t,n){switch(e){case`top`:case`bottom`:return n?t?N:M:t?M:N;case`left`:case`right`:return t?ee:P;default:return[]}}function ne(e,t,n,r){let i=w(e),a=te(C(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(j)))),a}function F(e){let t=C(e);return b[t]+e.slice(t.length)}function re(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ie(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:re(e)}function I(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ae(e,t,n){let{reference:r,floating:i}=e,a=D(t),o=O(t),s=E(o),c=C(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=w(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function oe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=S(t,e),p=ie(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=I(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var se=50,ce=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:oe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ae(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<se&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ae(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},le=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=S(e,t)||{};if(l==null)return{};let d=ie(u),f={x:n,y:r},p=O(i),m=E(p),g=await o.getDimensions(l),_=p===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,C=a.reference[m]+a.reference[p]-f[p]-a.floating[m],T=f[p]-a.reference[p],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=D?D[b]:0;k&&await(o.isElement==null?void 0:o.isElement(D))||(k=s.floating[b]||a.floating[m]);let A=C/2-T/2,j=k/2-g[m]/2-1,M=h(d[v],j),N=h(d[y],j),ee=k-g[m]-N,P=k/2-g[m]/2+A,te=x(M,P,ee),ne=!c.arrow&&w(i)!=null&&P!==te&&a.reference[m]/2-(P<M?M:N)-g[m]/2<0,F=ne?P<M?P-M:P-ee:0;return{[p]:f[p]+F,data:{[p]:te,centerOffset:P-te-F,...ne&&{alignmentOffset:F}},reset:ne}}}),ue=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=S(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=C(r),_=D(o),v=C(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[F(o)]:A(o)),x=p!==`none`;!d&&x&&b.push(...ne(o,m,p,y));let w=[o,...b],T=await s.detectOverflow(t,h),E=[],O=i.flip?.overflows||[];if(l&&E.push(T[g]),u){let e=k(r,a,y);E.push(T[e[0]],T[e[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=w[e];if(t&&(u!==`alignment`||_===D(t)||O.every(e=>D(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=O.filter(e=>{if(x){let t=D(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},de=new Set([`left`,`top`]);async function fe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=C(n),s=w(n),c=D(n)===`y`,l=de.has(o)?-1:1,u=a&&c?-1:1,d=S(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var pe=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await fe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},me=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=S(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=D(i),p=T(f),m=u[p],h=u[f],g=(e,t)=>x(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},he=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=S(e,t),c=await i.detectOverflow(t,s),l=C(n),u=w(n),d=D(n)===`y`,{width:f,height:p}=r.floating,m,_;l===`top`||l===`bottom`?(m=l,_=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(_=l,m=u===`end`?`top`:`bottom`);let v=p-c.top-c.bottom,y=f-c.left-c.right,b=h(p-c[m],v),x=h(f-c[_],y),T=t.middlewareData.shift,E=!T,O=b,k=x;T!=null&&T.enabled.x&&(k=y),T!=null&&T.enabled.y&&(O=v),E&&!u&&(d?k=f-2*g(c.left,c.right):O=p-2*g(c.top,c.bottom)),await o({...t,availableWidth:k,availableHeight:O});let A=await i.getDimensions(a.floating);return f!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function ge(){return typeof window<`u`}function L(e){return _e(e)?(e.nodeName||``).toLowerCase():`#document`}function R(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){return((_e(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _e(e){return ge()?e instanceof Node||e instanceof R(e).Node:!1}function B(e){return ge()?e instanceof Element||e instanceof R(e).Element:!1}function V(e){return ge()?e instanceof HTMLElement||e instanceof R(e).HTMLElement:!1}function ve(e){return!ge()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof R(e).ShadowRoot}function ye(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function be(e){return/^(table|td|th)$/.test(L(e))}function xe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Se=/transform|translate|scale|rotate|perspective|filter/,Ce=/paint|layout|strict|content/,H=e=>!!e&&e!==`none`,we;function Te(e){let t=B(e)?W(e):e;return H(t.transform)||H(t.translate)||H(t.scale)||H(t.rotate)||H(t.perspective)||!De()&&(H(t.backdropFilter)||H(t.filter))||Se.test(t.willChange||``)||Ce.test(t.contain||``)}function Ee(e){let t=K(e);for(;V(t)&&!U(t);){if(Te(t))return t;if(xe(t))return null;t=K(t)}return null}function De(){return we??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),we}function U(e){return/^(html|body|#document)$/.test(L(e))}function W(e){return R(e).getComputedStyle(e)}function G(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(L(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ve(e)&&e.host||z(e);return ve(t)?t.host:t}function Oe(e){let t=K(e);return U(t)?(e.ownerDocument||e).body:V(t)&&ye(t)?t:Oe(t)}function q(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Oe(e),i=r===e.ownerDocument?.body,a=R(r);if(i){let e=ke(a);return t.concat(a,a.visualViewport||[],ye(r)?r:[],e&&n?q(e):[])}return t.concat(r,q(r,[],n))}function ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ae(e){let t=W(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=V(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_(n)!==a||_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function je(e){return B(e)?e:e.contextElement}function J(e){let t=je(e);if(!V(t))return y(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ae(t),o=(a?_(n.width):n.width)/r,s=(a?_(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Me=y(0);function Ne(e){let t=R(e);return!De()||!t.visualViewport?Me:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pe(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===R(e)}function Y(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=je(e),o=y(1);t&&(r?B(r)&&(o=J(r)):o=J(e));let s=Pe(a,n,r)?Ne(a):y(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=R(a),t=B(r)?R(r):r,n=e,i=ke(n);for(;i&&t!==n;){let e=J(i),t=i.getBoundingClientRect(),r=W(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=R(i),i=ke(n)}}return I({width:u,height:d,x:c,y:l})}function Fe(e,t){let n=G(e).scrollLeft;return t?t.left+n:Y(z(e)).left+n}function Ie(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Fe(e,n),y:n.top+t.scrollTop}}function Le(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=z(r),s=t?xe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=y(1),u=y(0),d=V(r);if((d||!a)&&((L(r)!==`body`||ye(o))&&(c=G(r)),d)){let e=Y(r);l=J(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ie(o,c):y(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Re(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ze(e){let t=G(e),n=e.ownerDocument.body,r=g(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=g(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Fe(e),o=-t.scrollTop;return W(n).direction===`rtl`&&(a+=g(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Be=25;function Ve(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=R(e),a=z(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!De()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Fe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Be&&(s-=o)}return{width:s,height:c,x:l,y:u}}function He(e,t){let n=Y(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=J(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ue(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ve(e,n,t);else if(t===`document`)r=ze(z(e));else if(B(t))r=He(t,n);else{let n=Ne(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return I(r)}function We(e,t){let n=t.get(e);if(n)return n;let r=q(e,[],!1).filter(e=>B(e)&&L(e)!==`body`),i=null,a=W(e).position===`fixed`,o=a?K(e):e;for(;B(o)&&!U(o);){let e=W(o),t=Te(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=K(o)}return t.set(e,r),r}function Ge(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?xe(t)?[]:We(t,this._c):[].concat(n),r],o=Ue(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ue(t,a[e],i);s=g(n.top,s),c=h(n.right,c),l=h(n.bottom,l),u=g(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ke(e){let{width:t,height:n}=Ae(e);return{width:t,height:n}}function qe(e,t,n){let r=V(t),i=z(t),a=n===`fixed`,o=Y(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=y(0);if((r||!a)&&((L(t)!==`body`||ye(i))&&(s=G(t)),r)){let e=Y(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Fe(i));let l=i&&!r&&!a?Ie(i,s):y(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Je(e){return W(e).position===`static`}function Ye(e,t){if(!V(e)||W(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function Xe(e,t){let n=R(e);if(xe(e))return n;if(!V(e)){let t=K(e);for(;t&&!U(t);){if(B(t)&&!Je(t))return t;t=K(t)}return n}let r=Ye(e,t);for(;r&&be(r)&&Je(r);)r=Ye(r,t);return r&&U(r)&&Je(r)&&!Te(r)?n:r||Ee(e)||n}var Ze=async function(e){let t=this.getOffsetParent||Xe,n=this.getDimensions,r=await n(e.floating);return{reference:qe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qe(e){return W(e).direction===`rtl`}var $e={convertOffsetParentRelativeRectToViewportRelativeRect:Le,getDocumentElement:z,getClippingRect:Ge,getOffsetParent:Xe,getElementRects:Ze,getClientRects:Re,getDimensions:Ke,getScale:J,isElement:B,isRTL:Qe};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tt(e,t,n){let r=null,i,a=z(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=v(d),_=v(a.clientWidth-(u+f)),y=v(a.clientHeight-(d+p)),b=v(u),x={rootMargin:-m+`px `+-_+`px `+-y+`px `+-b+`px`,threshold:g(0,h(1,c))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(!et(l,e.getBoundingClientRect()))return s();if(n!==c){if(!S)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(C,{...x,root:a.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}let c=R(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function nt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=je(e),u=i||a?[...l?q(l):[],...t?q(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?tt(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Y(e):null;c&&g();function g(){let t=Y(e);h&&!et(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var rt=pe,it=me,at=ue,ot=he,st=le,ct=(e,t,n)=>{let r=new Map,i=n??{},a={...$e,...i.platform,_c:r};return ce(e,t,{...i,platform:a})},lt=new WeakMap,ut=new WeakSet;function dt(e,t,n,r){let a=t.getBoundingClientRect(),s=lt.get(e),c=e.matches(`:popover-open`);if(lt.set(e,{rx:a.left,ry:a.top,x:n,y:r}),!s||!c||o())return;let l=Math.abs(s.rx-a.left)<1&&Math.abs(s.ry-a.top)<1,u=s.x-n,d=s.y-r;!l||Math.abs(u)<2&&Math.abs(d)<2||e.animate([{translate:`${u}px ${d}px`},{translate:`0 0`}],i(e))}function ft(e,t,n={}){let{placement:r=`bottom-start`,distance:i=4,matchWidth:a=!1,arrowElement:o}=n;return t.style.position=`fixed`,t.style.margin=`0`,ut.has(t)||(ut.add(t),t.addEventListener(`toggle`,e=>{e.newState===`closed`&<.delete(t)})),nt(e,t,async()=>{let n=[rt(i),at({padding:8}),it({padding:8}),ot({padding:8,apply({availableHeight:e,rects:n}){t.style.maxHeight=`min(${Math.max(120,e)}px, var(--sankhya-ds-floating-max-height, 100vh))`,a&&(t.style.minWidth=`${n.reference.width}px`),a===`exact`&&(t.style.width=`${n.reference.width}px`)}})];o&&n.push(st({element:o}));let{x:s,y:c,placement:l,middlewareData:u}=await ct(e,t,{strategy:`fixed`,placement:r,middleware:n});if(dt(t,e,Math.round(s),Math.round(c)),t.style.left=`${Math.round(s)}px`,t.style.top=`${Math.round(c)}px`,t.dataset.placement=l,o&&u.arrow){let{x:e,y:t}=u.arrow;o.style.left=e==null?``:`${e}px`,o.style.top=t==null?``:`${t}px`}})}function pt(e){e.matches(`:popover-open`)||e.showPopover()}function mt(e){e.matches(`:popover-open`)&&e.hidePopover()}function ht(e,t){return t?e.getRootNode().getElementById(t):null}function gt(e){return(e.localName.startsWith(`sankhya-ds-`)?e.shadowRoot?.querySelector(`[part="base"]`):null)??e}var X=[],_t={push(e){_t.remove(e),X.push(e)},remove(e){let t=X.indexOf(e);t>=0&&X.splice(t,1)},isTop(e){return X[X.length-1]===e}};c`.rhythm{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:var(--_rhythm-gap,var(--sankhya-ds-gap-field));overflow-wrap:break-word}.rhythm.loose{display:block}.rhythm ::slotted(*){margin-block:0}`;var vt=c`.panel{--_x:0;--_y:calc(var(--sankhya-ds-motion-shift) * -1);opacity:0;visibility:hidden;transform:translate(var(--_x),var(--_y)) scale(var(--sankhya-ds-motion-scale-panel));transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),transform var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),visibility var(--sankhya-ds-duration-base) step-end,display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}.panel:not(:popover-open){pointer-events:none}.panel[data-placement^='top']{--_y:var(--sankhya-ds-motion-shift)}.panel[data-placement^='left']{--_x:var(--sankhya-ds-motion-shift);--_y:0}.panel[data-placement^='right']{--_x:calc(var(--sankhya-ds-motion-shift) * -1);--_y:0}.panel:popover-open{opacity:1;visibility:visible;transform:none;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),transform var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),visibility var(--sankhya-ds-duration-base) step-start,display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}@starting-style{.panel:popover-open{opacity:0;transform:translate(var(--_x),var(--_y)) scale(var(--sankhya-ds-motion-scale-panel))}}`;c`:host{display:contents}.panel{inset:auto;margin:0;padding:var(--sankhya-ds-popover-padding,var(--sankhya-ds-inset-overlay));box-sizing:border-box;max-inline-size:calc(100vw - var(--sankhya-ds-space-16));overflow:auto;overscroll-behavior:contain;background:var(--sankhya-ds-color-surface-raised);color:var(--sankhya-ds-color-text);border:var(--sankhya-ds-border-width) solid var(--sankhya-ds-color-border-subtle);border-radius:var(--sankhya-ds-radius-md);box-shadow:var(--sankhya-ds-shadow-pop);font-family:var(--sankhya-ds-font-family-sans);font-size:var(--sankhya-ds-text-md);line-height:var(--sankhya-ds-leading-normal)}.veil{inset:0;inline-size:100vw;block-size:100dvh;max-inline-size:none;max-block-size:none;margin:0;padding:0;border:none;background:var(--sankhya-ds-backdrop-veil);backdrop-filter:blur(calc(var(--sankhya-ds-backdrop-veil-blur) / 5));opacity:0;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}.veil:not(:popover-open){pointer-events:none}:host([backdrop='blur']) .veil{backdrop-filter:var(--sankhya-ds-backdrop-filter)}.veil:popover-open{opacity:1;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}@starting-style{.veil:popover-open{opacity:0}}.panel:focus{outline:none}@media (forced-colors:active){.panel{border-color:CanvasText}}`;var yt=[vt,c`:host{display:contents}.panel{--_arrow:calc(var(--sankhya-ds-space-4) + var(--sankhya-ds-space-2) / 2);inset:auto;margin:0;overflow:visible;box-sizing:border-box;inline-size:max-content;min-inline-size:var(--sankhya-ds-overlay-width-tooltip-min);min-block-size:var(--sankhya-ds-overlay-width-tooltip-min);max-inline-size:min( var(--sankhya-ds-tooltip-max-width,var(--sankhya-ds-overlay-width-tooltip)),calc(100vw - var(--sankhya-ds-space-16)) );padding:var(--sankhya-ds-space-8) var(--sankhya-ds-space-12);background:var(--sankhya-ds-color-tooltip-surface);color:var(--sankhya-ds-color-tooltip-text);border:none;border-radius:var(--sankhya-ds-radius-sm);box-shadow:var(--sankhya-ds-shadow-pop);font:var(--sankhya-ds-type-body);text-align:start;overflow-wrap:anywhere;pointer-events:auto}.panel:popover-open{display:flex;align-items:center;justify-content:center}.shortcut{margin-inline-start:var(--sankhya-ds-space-8)}.arrow{position:absolute;inline-size:0;block-size:0;border:var(--_arrow) solid transparent;pointer-events:none}.panel[data-placement^='top'] .arrow{top:100%;border-block-end-width:0;border-block-start-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='bottom'] .arrow{bottom:100%;border-block-start-width:0;border-block-end-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='left'] .arrow{left:100%;border-inline-end-width:0;border-inline-start-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='right'] .arrow{right:100%;border-inline-start-width:0;border-inline-end-color:var(--sankhya-ds-color-tooltip-surface)}@media (forced-colors:active){.panel{border:var(--sankhya-ds-border-width) solid CanvasText}.arrow{display:none}}`],Z=function(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},Q=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},bt=[`top`,`bottom`,`left`,`right`],xt=300,St=150,Ct=100,wt=0,Tt=(()=>{let e=n,i,o=[],c=[],l,u=[],d=[],f,p=[],m=[],h,g=[],_=[],v,y=[],b=[],x,S=[],C=[],w,T=[],E=[],D,O=[],k=[],A,j=[],M=[];return class extends e{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;i=[s()],l=[s()],f=[s()],h=[s({reflect:!0})],v=[s({type:Boolean,reflect:!0})],x=[s({type:Boolean,reflect:!0})],w=[s({type:Number})],D=[s({type:Number})],A=[s({attribute:`match-anchor-width`,type:Boolean,reflect:!0})],Z(this,null,i,{kind:`accessor`,name:`for`,static:!1,private:!1,access:$(`for`),metadata:t},o,c),Z(this,null,l,{kind:`accessor`,name:`label`,static:!1,private:!1,access:$(`label`),metadata:t},u,d),Z(this,null,f,{kind:`accessor`,name:`shortcut`,static:!1,private:!1,access:$(`shortcut`),metadata:t},p,m),Z(this,null,h,{kind:`accessor`,name:`placement`,static:!1,private:!1,access:$(`placement`),metadata:t},g,_),Z(this,null,v,{kind:`accessor`,name:`open`,static:!1,private:!1,access:$(`open`),metadata:t},y,b),Z(this,null,x,{kind:`accessor`,name:`disabled`,static:!1,private:!1,access:$(`disabled`),metadata:t},S,C),Z(this,null,w,{kind:`accessor`,name:`distance`,static:!1,private:!1,access:$(`distance`),metadata:t},T,E),Z(this,null,D,{kind:`accessor`,name:`delay`,static:!1,private:!1,access:$(`delay`),metadata:t},O,k),Z(this,null,A,{kind:`accessor`,name:`matchAnchorWidth`,static:!1,private:!1,access:$(`matchAnchorWidth`),metadata:t},j,M),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static css=yt;static enums={placement:bt};#e=Q(this,o,``);get for(){return this.#e}set for(e){this.#e=e}#t=(Q(this,c),Q(this,u,``));get label(){return this.#t}set label(e){this.#t=e}#n=(Q(this,d),Q(this,p,``));get shortcut(){return this.#n}set shortcut(e){this.#n=e}#r=(Q(this,m),Q(this,g,`top`));get placement(){return this.#r}set placement(e){this.#r=e}#i=(Q(this,_),Q(this,y,!1));get open(){return this.#i}set open(e){this.#i=e}#a=(Q(this,b),Q(this,S,!1));get disabled(){return this.#a}set disabled(e){this.#a=e}#o=(Q(this,C),Q(this,T,8));get distance(){return this.#o}set distance(e){this.#o=e}#s=(Q(this,E),Q(this,O,void 0));get delay(){return this.#s}set delay(e){this.#s=e}#c=(Q(this,k),Q(this,j,!1));get matchAnchorWidth(){return this.#c}set matchAnchorWidth(e){this.#c=e}#l=(Q(this,M),null);#u;#d;#f=!1;#p=new MutationObserver(()=>this.#g());#m=new MutationObserver(()=>this.#g());get anchor(){return this.#l}show(){clearTimeout(this.#d),this.open=!0}hide(){clearTimeout(this.#d),this.open=!1}connectedCallback(){super.connectedCallback(),this.id||=`sankhya-ds-tooltip-${++wt}`,this.#p.observe(this,{childList:!0,characterData:!0,subtree:!0}),this.hasUpdated&&this.#h(ht(this,this.for))}disconnectedCallback(){super.disconnectedCallback(),this.#p.disconnect(),this.#m.disconnect(),this.#h(null),this.#O(),this.#f=!1,this.open=!1}updated(e){super.updated(e),e.has(`for`)&&(this.#h(ht(this,this.for)),this.#l||a(this,`for:${this.for}`,`âncora não encontrada (for="${this.for}"). Correção: aponte for para o id do elemento descrito.`)),e.has(`label`)&&this.#g();let t=this.open&&!this.disabled;t!==this.#f&&(this.#f=t,t?this.#E():this.#D())}#h(e){if(e!==this.#l&&(this.#l&&(this.#l.removeEventListener(`pointerenter`,this.#y),this.#l.removeEventListener(`pointerleave`,this.#b),this.#l.removeEventListener(`focusin`,this.#S),this.#l.removeEventListener(`focusout`,this.#w),this.#_(this.#l),this.#m.disconnect()),this.#l=e,e)){e.addEventListener(`pointerenter`,this.#y),e.addEventListener(`pointerleave`,this.#b),e.addEventListener(`focusin`,this.#S),e.addEventListener(`focusout`,this.#w);let t={attributes:!0,attributeFilter:[`aria-label`]};this.#m.observe(e,t),e.updateComplete?.then(()=>{let n=gt(e);n!==e&&this.#l===e&&this.#m.observe(n,t),this.#g()}),this.#g()}}#g(){if(!this.#l)return;let e=gt(this.#l),t=e=>e.replace(/\s+/g,` `).trim().toLocaleLowerCase(),n=t(e.getAttribute(`aria-label`)??this.#l.getAttribute(`aria-label`)??``),r=t(this.text);if(r&&n.includes(r))this.#_(this.#l);else if(e===this.#l){let t=new Set((e.getAttribute(`aria-describedby`)??``).split(/\s+/));t.delete(``),t.add(this.id),e.setAttribute(`aria-describedby`,[...t].join(` `))}else e.setAttribute(`aria-description`,this.text)}#_(e){let t=gt(e);if(t!==e){t.removeAttribute(`aria-description`);return}let n=(t.getAttribute(`aria-describedby`)??``).split(/\s+/).filter(e=>e&&e!==this.id);n.length?t.setAttribute(`aria-describedby`,n.join(` `)):t.removeAttribute(`aria-describedby`)}get text(){return this.textContent.trim()||this.label}#v(e){clearTimeout(this.#d);let t=e?this.delay!==void 0&&this.delay>=0?this.delay:xt:St;this.#d=setTimeout(()=>this.open=e,t)}#y=()=>this.#v(!0);#b=()=>this.#v(!1);#x=()=>clearTimeout(this.#d);#S=e=>{let t=e.composedPath()[0];t instanceof Element&&!t.matches(`:focus-visible`)||(clearTimeout(this.#d),this.open=!0)};#C=()=>{clearTimeout(this.#d),this.open=!1};#w=()=>{clearTimeout(this.#d),this.open=!1};#T=e=>{e.key===`Escape`&&_t.isTop(this)&&(e.preventDefault(),this.open=!1)};#E(){this.setAttribute(`role`,`tooltip`);let e=this.renderRoot.querySelector(`.panel`);this.matchAnchorWidth&&this.#l?(e.style.inlineSize=`${this.#l.getBoundingClientRect().width}px`,e.style.maxInlineSize=`none`):(e.style.removeProperty(`inline-size`),e.style.removeProperty(`max-inline-size`)),this.text.length>Ct&&a(this,`long`,`dica com ${this.text.length} caracteres. O ACORDE limita o Tooltip a 100 caracteres (2 linhas): resuma ou use texto de apoio visível.`),pt(e),this.#u?.(),this.#u=ft(this.#l??this,e,{placement:this.placement,distance:this.distance,arrowElement:this.renderRoot.querySelector(`.arrow`)}),_t.push(this),document.addEventListener(`keydown`,this.#T),document.addEventListener(`pointerdown`,this.#C,!0),this.emit(`sankhya-ds-open`)}#D(){this.removeAttribute(`role`),this.#O(),this.emit(`sankhya-ds-close`)}#O(){clearTimeout(this.#d),this.#u?.(),this.#u=void 0;let e=this.renderRoot.querySelector(`.panel`);e&&mt(e),_t.remove(this),document.removeEventListener(`keydown`,this.#T),document.removeEventListener(`pointerdown`,this.#C,!0)}render(){return r`<div part="panel" class="panel" popover="manual" @pointerenter=${this.#x} @pointerleave=${this.#b} > <slot>${this.label}</slot>${this.shortcut?r`<sankhya-ds-kbd part="shortcut" class="shortcut" keys=${this.shortcut} aria-hidden="true" ></sankhya-ds-kbd>`:t} <span part="arrow" class="arrow"></span> </div>`}}})();function $(e){return{has:t=>e in t,get:t=>t[e],set:(t,n)=>{t[e]=n}}}e(`sankhya-ds-tooltip`,Tt);export{Tt as SankhyaDsTooltip};
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,u as c}from"./define-DZOhxnGv.js";var l=c`:host{display:inline-flex;justify-self:start;vertical-align:middle;color:inherit}.base{display:inline-flex;align-items:center;gap:var(--sankhya-ds-space-2);font:var(--sankhya-ds-type-caption);font-weight:var(--sankhya-ds-weight-medium);white-space:nowrap}.key{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-inline-size:var(--sankhya-ds-space-20);min-block-size:var(--sankhya-ds-space-20);padding-inline:var(--sankhya-ds-space-4);border:var(--sankhya-ds-border-width) solid color-mix(in srgb,currentColor 40%,transparent);border-block-end-width:var(--sankhya-ds-border-width-strong);border-radius:var(--sankhya-ds-radius-xs);font:inherit;line-height:var(--sankhya-ds-leading-tight)}.separator{color:inherit}@media (forced-colors:active){.key{border-color:CanvasText}}`,u=function(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},d=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};function f(e){let t=e.trim();if(!t)return[];if(t===`+`)return[`+`];let n=/\+\s*\+$/.test(t),r=(n?t.replace(/\+\s*\+$/,``):t).split(/\s*\+\s*|\s+/).filter(Boolean);return n?[...r,`+`]:r}var p=(()=>{let e=n,i,a=[],o=[];return class extends e{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;i=[s()],u(this,null,i,{kind:`accessor`,name:`keys`,static:!1,private:!1,access:m(`keys`),metadata:t},a,o),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static css=l;#e=d(this,a,``);get keys(){return this.#e}set keys(e){this.#e=e}render(){let e=f(this.keys);return r`<kbd part="base" class="base" >${e.length?e.map((e,n)=>r`${n?r`<span part="separator" class="separator">+</span>`:t}<kbd part="key" class="key" >${e}</kbd >`):r`<kbd part="key" class="key"><slot></slot></kbd>`}</kbd >`}constructor(){super(...arguments),d(this,o)}}})();function m(e){return{has:t=>e in t,get:t=>t[e],set:(t,n)=>{t[e]=n}}}e(`sankhya-ds-kbd`,p);var h=Math.min,g=Math.max,_=Math.round,v=Math.floor,y=e=>({x:e,y:e}),b={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function x(e,t,n){return g(e,h(t,n))}function S(e,t){return typeof e==`function`?e(t):e}function C(e){return e.split(`-`)[0]}function w(e){return e.split(`-`)[1]}function T(e){return e===`x`?`y`:`x`}function E(e){return e===`y`?`height`:`width`}function D(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function O(e){return T(D(e))}function k(e,t,n){n===void 0&&(n=!1);let r=w(e),i=O(e),a=E(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function A(e){let t=F(e);return[j(e),t,j(t)]}function j(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var M=[`left`,`right`],N=[`right`,`left`],ee=[`top`,`bottom`],P=[`bottom`,`top`];function te(e,t,n){switch(e){case`top`:case`bottom`:return n?t?N:M:t?M:N;case`left`:case`right`:return t?ee:P;default:return[]}}function ne(e,t,n,r){let i=w(e),a=te(C(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(j)))),a}function F(e){let t=C(e);return b[t]+e.slice(t.length)}function re(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ie(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:re(e)}function I(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ae(e,t,n){let{reference:r,floating:i}=e,a=D(t),o=O(t),s=E(o),c=C(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=w(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function oe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=S(t,e),p=ie(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=I(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var se=50,ce=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:oe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ae(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<se&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ae(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},le=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=S(e,t)||{};if(l==null)return{};let d=ie(u),f={x:n,y:r},p=O(i),m=E(p),g=await o.getDimensions(l),_=p===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,C=a.reference[m]+a.reference[p]-f[p]-a.floating[m],T=f[p]-a.reference[p],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=D?D[b]:0;k&&await(o.isElement==null?void 0:o.isElement(D))||(k=s.floating[b]||a.floating[m]);let A=C/2-T/2,j=k/2-g[m]/2-1,M=h(d[v],j),N=h(d[y],j),ee=k-g[m]-N,P=k/2-g[m]/2+A,te=x(M,P,ee),ne=!c.arrow&&w(i)!=null&&P!==te&&a.reference[m]/2-(P<M?M:N)-g[m]/2<0,F=ne?P<M?P-M:P-ee:0;return{[p]:f[p]+F,data:{[p]:te,centerOffset:P-te-F,...ne&&{alignmentOffset:F}},reset:ne}}}),ue=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=S(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=C(r),_=D(o),v=C(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[F(o)]:A(o)),x=p!==`none`;!d&&x&&b.push(...ne(o,m,p,y));let w=[o,...b],T=await s.detectOverflow(t,h),E=[],O=i.flip?.overflows||[];if(l&&E.push(T[g]),u){let e=k(r,a,y);E.push(T[e[0]],T[e[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=w[e];if(t&&(u!==`alignment`||_===D(t)||O.every(e=>D(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=O.filter(e=>{if(x){let t=D(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},de=new Set([`left`,`top`]);async function fe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=C(n),s=w(n),c=D(n)===`y`,l=de.has(o)?-1:1,u=a&&c?-1:1,d=S(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var pe=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await fe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},me=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=S(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=D(i),p=T(f),m=u[p],h=u[f],g=(e,t)=>x(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},he=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=S(e,t),c=await i.detectOverflow(t,s),l=C(n),u=w(n),d=D(n)===`y`,{width:f,height:p}=r.floating,m,_;l===`top`||l===`bottom`?(m=l,_=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(_=l,m=u===`end`?`top`:`bottom`);let v=p-c.top-c.bottom,y=f-c.left-c.right,b=h(p-c[m],v),x=h(f-c[_],y),T=t.middlewareData.shift,E=!T,O=b,k=x;T!=null&&T.enabled.x&&(k=y),T!=null&&T.enabled.y&&(O=v),E&&!u&&(d?k=f-2*g(c.left,c.right):O=p-2*g(c.top,c.bottom)),await o({...t,availableWidth:k,availableHeight:O});let A=await i.getDimensions(a.floating);return f!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function ge(){return typeof window<`u`}function L(e){return _e(e)?(e.nodeName||``).toLowerCase():`#document`}function R(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){return((_e(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _e(e){return ge()?e instanceof Node||e instanceof R(e).Node:!1}function B(e){return ge()?e instanceof Element||e instanceof R(e).Element:!1}function V(e){return ge()?e instanceof HTMLElement||e instanceof R(e).HTMLElement:!1}function ve(e){return!ge()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof R(e).ShadowRoot}function ye(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function be(e){return/^(table|td|th)$/.test(L(e))}function xe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Se=/transform|translate|scale|rotate|perspective|filter/,Ce=/paint|layout|strict|content/,H=e=>!!e&&e!==`none`,we;function Te(e){let t=B(e)?W(e):e;return H(t.transform)||H(t.translate)||H(t.scale)||H(t.rotate)||H(t.perspective)||!De()&&(H(t.backdropFilter)||H(t.filter))||Se.test(t.willChange||``)||Ce.test(t.contain||``)}function Ee(e){let t=K(e);for(;V(t)&&!U(t);){if(Te(t))return t;if(xe(t))return null;t=K(t)}return null}function De(){return we??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),we}function U(e){return/^(html|body|#document)$/.test(L(e))}function W(e){return R(e).getComputedStyle(e)}function G(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(L(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ve(e)&&e.host||z(e);return ve(t)?t.host:t}function Oe(e){let t=K(e);return U(t)?(e.ownerDocument||e).body:V(t)&&ye(t)?t:Oe(t)}function q(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Oe(e),i=r===e.ownerDocument?.body,a=R(r);if(i){let e=ke(a);return t.concat(a,a.visualViewport||[],ye(r)?r:[],e&&n?q(e):[])}return t.concat(r,q(r,[],n))}function ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ae(e){let t=W(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=V(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_(n)!==a||_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function je(e){return B(e)?e:e.contextElement}function J(e){let t=je(e);if(!V(t))return y(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ae(t),o=(a?_(n.width):n.width)/r,s=(a?_(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Me=y(0);function Ne(e){let t=R(e);return!De()||!t.visualViewport?Me:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pe(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===R(e)}function Y(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=je(e),o=y(1);t&&(r?B(r)&&(o=J(r)):o=J(e));let s=Pe(a,n,r)?Ne(a):y(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=R(a),t=B(r)?R(r):r,n=e,i=ke(n);for(;i&&t!==n;){let e=J(i),t=i.getBoundingClientRect(),r=W(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=R(i),i=ke(n)}}return I({width:u,height:d,x:c,y:l})}function Fe(e,t){let n=G(e).scrollLeft;return t?t.left+n:Y(z(e)).left+n}function Ie(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Fe(e,n),y:n.top+t.scrollTop}}function Le(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=z(r),s=t?xe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=y(1),u=y(0),d=V(r);if((d||!a)&&((L(r)!==`body`||ye(o))&&(c=G(r)),d)){let e=Y(r);l=J(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ie(o,c):y(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Re(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ze(e){let t=G(e),n=e.ownerDocument.body,r=g(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=g(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Fe(e),o=-t.scrollTop;return W(n).direction===`rtl`&&(a+=g(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Be=25;function Ve(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=R(e),a=z(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!De()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Fe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Be&&(s-=o)}return{width:s,height:c,x:l,y:u}}function He(e,t){let n=Y(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=J(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ue(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ve(e,n,t);else if(t===`document`)r=ze(z(e));else if(B(t))r=He(t,n);else{let n=Ne(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return I(r)}function We(e,t){let n=t.get(e);if(n)return n;let r=q(e,[],!1).filter(e=>B(e)&&L(e)!==`body`),i=null,a=W(e).position===`fixed`,o=a?K(e):e;for(;B(o)&&!U(o);){let e=W(o),t=Te(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=K(o)}return t.set(e,r),r}function Ge(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?xe(t)?[]:We(t,this._c):[].concat(n),r],o=Ue(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ue(t,a[e],i);s=g(n.top,s),c=h(n.right,c),l=h(n.bottom,l),u=g(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ke(e){let{width:t,height:n}=Ae(e);return{width:t,height:n}}function qe(e,t,n){let r=V(t),i=z(t),a=n===`fixed`,o=Y(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=y(0);if((r||!a)&&((L(t)!==`body`||ye(i))&&(s=G(t)),r)){let e=Y(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Fe(i));let l=i&&!r&&!a?Ie(i,s):y(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Je(e){return W(e).position===`static`}function Ye(e,t){if(!V(e)||W(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function Xe(e,t){let n=R(e);if(xe(e))return n;if(!V(e)){let t=K(e);for(;t&&!U(t);){if(B(t)&&!Je(t))return t;t=K(t)}return n}let r=Ye(e,t);for(;r&&be(r)&&Je(r);)r=Ye(r,t);return r&&U(r)&&Je(r)&&!Te(r)?n:r||Ee(e)||n}var Ze=async function(e){let t=this.getOffsetParent||Xe,n=this.getDimensions,r=await n(e.floating);return{reference:qe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qe(e){return W(e).direction===`rtl`}var $e={convertOffsetParentRelativeRectToViewportRelativeRect:Le,getDocumentElement:z,getClippingRect:Ge,getOffsetParent:Xe,getElementRects:Ze,getClientRects:Re,getDimensions:Ke,getScale:J,isElement:B,isRTL:Qe};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tt(e,t,n){let r=null,i,a=z(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=v(d),_=v(a.clientWidth-(u+f)),y=v(a.clientHeight-(d+p)),b=v(u),x={rootMargin:-m+`px `+-_+`px `+-y+`px `+-b+`px`,threshold:g(0,h(1,c))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(!et(l,e.getBoundingClientRect()))return s();if(n!==c){if(!S)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(C,{...x,root:a.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}let c=R(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function nt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=je(e),u=i||a?[...l?q(l):[],...t?q(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?tt(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Y(e):null;c&&g();function g(){let t=Y(e);h&&!et(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var rt=pe,it=me,at=ue,ot=he,st=le,ct=(e,t,n)=>{let r=new Map,i=n??{},a={...$e,...i.platform,_c:r};return ce(e,t,{...i,platform:a})},lt=new WeakMap,ut=new WeakSet;function dt(e,t,n,r){let a=t.getBoundingClientRect(),s=lt.get(e),c=e.matches(`:popover-open`);if(lt.set(e,{rx:a.left,ry:a.top,x:n,y:r}),!s||!c||o())return;let l=Math.abs(s.rx-a.left)<1&&Math.abs(s.ry-a.top)<1,u=s.x-n,d=s.y-r;!l||Math.abs(u)<2&&Math.abs(d)<2||e.animate([{translate:`${u}px ${d}px`},{translate:`0 0`}],i(e))}function ft(e,t,n={}){let{placement:r=`bottom-start`,distance:i=4,matchWidth:a=!1,arrowElement:o}=n;return t.style.position=`fixed`,t.style.margin=`0`,ut.has(t)||(ut.add(t),t.addEventListener(`toggle`,e=>{e.newState===`closed`&<.delete(t)})),nt(e,t,async()=>{let n=[rt(i),at({padding:8}),it({padding:8}),ot({padding:8,apply({availableHeight:e,rects:n}){t.style.maxHeight=`min(${Math.max(120,e)}px, var(--sankhya-ds-floating-max-height, 100vh))`,a&&(t.style.minWidth=`${n.reference.width}px`),a===`exact`&&(t.style.width=`${n.reference.width}px`)}})];o&&n.push(st({element:o}));let{x:s,y:c,placement:l,middlewareData:u}=await ct(e,t,{strategy:`fixed`,placement:r,middleware:n});if(dt(t,e,Math.round(s),Math.round(c)),t.style.left=`${Math.round(s)}px`,t.style.top=`${Math.round(c)}px`,t.dataset.placement=l,o&&u.arrow){let{x:e,y:t}=u.arrow;o.style.left=e==null?``:`${e}px`,o.style.top=t==null?``:`${t}px`}})}function pt(e){e.matches(`:popover-open`)||e.showPopover()}function mt(e){e.matches(`:popover-open`)&&e.hidePopover()}function ht(e,t){return t?e.getRootNode().getElementById(t):null}function gt(e){return(e.localName.startsWith(`sankhya-ds-`)?e.shadowRoot?.querySelector(`[part="base"]`):null)??e}var X=[],_t={push(e){_t.remove(e),X.push(e)},remove(e){let t=X.indexOf(e);t>=0&&X.splice(t,1)},isTop(e){return X[X.length-1]===e}};c`.rhythm{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:var(--_rhythm-gap,var(--sankhya-ds-gap-field));overflow-wrap:break-word}.rhythm.loose{display:block}.rhythm ::slotted(*){margin-block:0}`;var vt=c`.panel{--_x:0;--_y:calc(var(--sankhya-ds-motion-shift) * -1);opacity:0;visibility:hidden;transform:translate(var(--_x),var(--_y)) scale(var(--sankhya-ds-motion-scale-panel));transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),transform var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),visibility var(--sankhya-ds-duration-base) step-end,display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}.panel:not(:popover-open){pointer-events:none}.panel[data-placement^='top']{--_y:var(--sankhya-ds-motion-shift)}.panel[data-placement^='left']{--_x:var(--sankhya-ds-motion-shift);--_y:0}.panel[data-placement^='right']{--_x:calc(var(--sankhya-ds-motion-shift) * -1);--_y:0}.panel:popover-open{opacity:1;visibility:visible;transform:none;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),transform var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),visibility var(--sankhya-ds-duration-base) step-start,display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}@starting-style{.panel:popover-open{opacity:0;transform:translate(var(--_x),var(--_y)) scale(var(--sankhya-ds-motion-scale-panel))}}`;c`:host{display:contents}.panel{inset:auto;margin:0;padding:var(--sankhya-ds-popover-padding,var(--sankhya-ds-inset-overlay));box-sizing:border-box;max-inline-size:calc(100vw - var(--sankhya-ds-space-16));overflow:auto;overscroll-behavior:contain;background:var(--sankhya-ds-color-surface-raised);color:var(--sankhya-ds-color-text);border:var(--sankhya-ds-border-width) solid var(--sankhya-ds-color-border-subtle);border-radius:var(--sankhya-ds-radius-md);box-shadow:var(--sankhya-ds-shadow-pop);font-family:var(--sankhya-ds-font-family-sans);font-size:var(--sankhya-ds-text-md);line-height:var(--sankhya-ds-leading-normal)}.veil{inset:0;inline-size:100vw;block-size:100dvh;max-inline-size:none;max-block-size:none;margin:0;padding:0;border:none;background:var(--sankhya-ds-backdrop-veil);backdrop-filter:blur(calc(var(--sankhya-ds-backdrop-veil-blur) / 5));opacity:0;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-standard),display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}.veil:not(:popover-open){pointer-events:none}:host([backdrop='blur']) .veil{backdrop-filter:var(--sankhya-ds-backdrop-filter)}.veil:popover-open{opacity:1;transition:opacity var(--sankhya-ds-duration-base) var(--sankhya-ds-ease-enter),display var(--sankhya-ds-duration-base) allow-discrete,overlay var(--sankhya-ds-duration-base) allow-discrete}@starting-style{.veil:popover-open{opacity:0}}.panel:focus{outline:none}@media (forced-colors:active){.panel{border-color:CanvasText}}`;var yt=[vt,c`:host{display:contents}.panel{--_arrow:calc(var(--sankhya-ds-space-4) + var(--sankhya-ds-space-2) / 2);inset:auto;margin:0;overflow:visible;box-sizing:border-box;inline-size:max-content;min-inline-size:var(--sankhya-ds-overlay-width-tooltip-min);min-block-size:var(--sankhya-ds-overlay-width-tooltip-min);max-inline-size:min( var(--sankhya-ds-tooltip-max-width,var(--sankhya-ds-overlay-width-tooltip)),calc(100vw - var(--sankhya-ds-space-16)) );padding:var(--sankhya-ds-space-8) var(--sankhya-ds-space-12);background:var(--sankhya-ds-color-tooltip-surface);color:var(--sankhya-ds-color-tooltip-text);border:none;border-radius:var(--sankhya-ds-radius-sm);box-shadow:var(--sankhya-ds-shadow-pop);font:var(--sankhya-ds-type-body);text-align:start;overflow-wrap:anywhere;pointer-events:auto}.panel:popover-open{display:flex;align-items:center;justify-content:center}.shortcut{margin-inline-start:var(--sankhya-ds-space-8)}.arrow{position:absolute;inline-size:0;block-size:0;border:var(--_arrow) solid transparent;pointer-events:none}.panel[data-placement^='top'] .arrow{top:100%;border-block-end-width:0;border-block-start-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='bottom'] .arrow{bottom:100%;border-block-start-width:0;border-block-end-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='left'] .arrow{left:100%;border-inline-end-width:0;border-inline-start-color:var(--sankhya-ds-color-tooltip-surface)}.panel[data-placement^='right'] .arrow{right:100%;border-inline-start-width:0;border-inline-end-color:var(--sankhya-ds-color-tooltip-surface)}@media (forced-colors:active){.panel{border:var(--sankhya-ds-border-width) solid CanvasText}.arrow{display:none}}`],Z=function(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},Q=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},bt=[`top`,`bottom`,`left`,`right`],xt=300,St=150,Ct=100,wt=0,Tt=(()=>{let e=n,i,o=[],c=[],l,u=[],d=[],f,p=[],m=[],h,g=[],_=[],v,y=[],b=[],x,S=[],C=[],w,T=[],E=[],D,O=[],k=[],A,j=[],M=[];return class extends e{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;i=[s()],l=[s()],f=[s()],h=[s({reflect:!0})],v=[s({type:Boolean,reflect:!0})],x=[s({type:Boolean,reflect:!0})],w=[s({type:Number})],D=[s({type:Number})],A=[s({attribute:`match-anchor-width`,type:Boolean,reflect:!0})],Z(this,null,i,{kind:`accessor`,name:`for`,static:!1,private:!1,access:$(`for`),metadata:t},o,c),Z(this,null,l,{kind:`accessor`,name:`label`,static:!1,private:!1,access:$(`label`),metadata:t},u,d),Z(this,null,f,{kind:`accessor`,name:`shortcut`,static:!1,private:!1,access:$(`shortcut`),metadata:t},p,m),Z(this,null,h,{kind:`accessor`,name:`placement`,static:!1,private:!1,access:$(`placement`),metadata:t},g,_),Z(this,null,v,{kind:`accessor`,name:`open`,static:!1,private:!1,access:$(`open`),metadata:t},y,b),Z(this,null,x,{kind:`accessor`,name:`disabled`,static:!1,private:!1,access:$(`disabled`),metadata:t},S,C),Z(this,null,w,{kind:`accessor`,name:`distance`,static:!1,private:!1,access:$(`distance`),metadata:t},T,E),Z(this,null,D,{kind:`accessor`,name:`delay`,static:!1,private:!1,access:$(`delay`),metadata:t},O,k),Z(this,null,A,{kind:`accessor`,name:`matchAnchorWidth`,static:!1,private:!1,access:$(`matchAnchorWidth`),metadata:t},j,M),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static css=yt;static enums={placement:bt};#e=Q(this,o,``);get for(){return this.#e}set for(e){this.#e=e}#t=(Q(this,c),Q(this,u,``));get label(){return this.#t}set label(e){this.#t=e}#n=(Q(this,d),Q(this,p,``));get shortcut(){return this.#n}set shortcut(e){this.#n=e}#r=(Q(this,m),Q(this,g,`top`));get placement(){return this.#r}set placement(e){this.#r=e}#i=(Q(this,_),Q(this,y,!1));get open(){return this.#i}set open(e){this.#i=e}#a=(Q(this,b),Q(this,S,!1));get disabled(){return this.#a}set disabled(e){this.#a=e}#o=(Q(this,C),Q(this,T,8));get distance(){return this.#o}set distance(e){this.#o=e}#s=(Q(this,E),Q(this,O,void 0));get delay(){return this.#s}set delay(e){this.#s=e}#c=(Q(this,k),Q(this,j,!1));get matchAnchorWidth(){return this.#c}set matchAnchorWidth(e){this.#c=e}#l=(Q(this,M),null);#u;#d;#f=!1;#p=new MutationObserver(()=>this.#g());#m=new MutationObserver(()=>this.#g());get anchor(){return this.#l}show(){clearTimeout(this.#d),this.open=!0}hide(){clearTimeout(this.#d),this.open=!1}connectedCallback(){super.connectedCallback(),this.id||=`sankhya-ds-tooltip-${++wt}`,this.#p.observe(this,{childList:!0,characterData:!0,subtree:!0}),this.hasUpdated&&this.#h(ht(this,this.for))}disconnectedCallback(){super.disconnectedCallback(),this.#p.disconnect(),this.#m.disconnect(),this.#h(null),this.#O(),this.#f=!1,this.open=!1}updated(e){super.updated(e),e.has(`for`)&&(this.#h(ht(this,this.for)),this.#l||a(this,`for:${this.for}`,`âncora não encontrada (for="${this.for}"). Correção: aponte for para o id do elemento descrito.`)),e.has(`label`)&&this.#g();let t=this.open&&!this.disabled;t!==this.#f&&(this.#f=t,t?this.#E():this.#D())}#h(e){if(e!==this.#l&&(this.#l&&(this.#l.removeEventListener(`pointerenter`,this.#y),this.#l.removeEventListener(`pointerleave`,this.#b),this.#l.removeEventListener(`focusin`,this.#S),this.#l.removeEventListener(`focusout`,this.#w),this.#_(this.#l),this.#m.disconnect()),this.#l=e,e)){e.addEventListener(`pointerenter`,this.#y),e.addEventListener(`pointerleave`,this.#b),e.addEventListener(`focusin`,this.#S),e.addEventListener(`focusout`,this.#w);let t={attributes:!0,attributeFilter:[`aria-label`]};this.#m.observe(e,t),e.updateComplete?.then(()=>{let n=gt(e);n!==e&&this.#l===e&&this.#m.observe(n,t),this.#g()}),this.#g()}}#g(){if(!this.#l)return;let e=gt(this.#l),t=e=>e.replace(/\s+/g,` `).trim().toLocaleLowerCase(),n=t(e.getAttribute(`aria-label`)??this.#l.getAttribute(`aria-label`)??``),r=t(this.text);if(r&&n.includes(r))this.#_(this.#l);else if(e===this.#l){let t=new Set((e.getAttribute(`aria-describedby`)??``).split(/\s+/));t.delete(``),t.add(this.id),e.setAttribute(`aria-describedby`,[...t].join(` `))}else e.setAttribute(`aria-description`,this.text)}#_(e){let t=gt(e);if(t!==e){t.removeAttribute(`aria-description`);return}let n=(t.getAttribute(`aria-describedby`)??``).split(/\s+/).filter(e=>e&&e!==this.id);n.length?t.setAttribute(`aria-describedby`,n.join(` `)):t.removeAttribute(`aria-describedby`)}get text(){return this.textContent.trim()||this.label}#v(e){clearTimeout(this.#d);let t=e?this.delay!==void 0&&this.delay>=0?this.delay:xt:St;this.#d=setTimeout(()=>this.open=e,t)}#y=()=>this.#v(!0);#b=()=>this.#v(!1);#x=()=>clearTimeout(this.#d);#S=e=>{let t=e.composedPath()[0];t instanceof Element&&!t.matches(`:focus-visible`)||(clearTimeout(this.#d),this.open=!0)};#C=()=>{clearTimeout(this.#d),this.open=!1};#w=()=>{clearTimeout(this.#d),this.open=!1};#T=e=>{e.key===`Escape`&&_t.isTop(this)&&(e.preventDefault(),this.open=!1)};#E(){this.setAttribute(`role`,`tooltip`);let e=this.renderRoot.querySelector(`.panel`);this.matchAnchorWidth&&this.#l?(e.style.inlineSize=`${this.#l.getBoundingClientRect().width}px`,e.style.maxInlineSize=`none`):(e.style.removeProperty(`inline-size`),e.style.removeProperty(`max-inline-size`)),this.text.length>Ct&&a(this,`long`,`dica com ${this.text.length} caracteres. O ACORDE limita o Tooltip a 100 caracteres (2 linhas): resuma ou use texto de apoio visível.`),pt(e),this.#u?.(),this.#u=ft(this.#l??this,e,{placement:this.placement,distance:this.distance,arrowElement:this.renderRoot.querySelector(`.arrow`)}),_t.push(this),document.addEventListener(`keydown`,this.#T),document.addEventListener(`pointerdown`,this.#C,!0),this.emit(`sankhya-ds-open`)}#D(){this.removeAttribute(`role`),this.#O(),this.emit(`sankhya-ds-close`)}#O(){clearTimeout(this.#d),this.#u?.(),this.#u=void 0;let e=this.renderRoot.querySelector(`.panel`);e&&mt(e),_t.remove(this),document.removeEventListener(`keydown`,this.#T),document.removeEventListener(`pointerdown`,this.#C,!0)}render(){return r`<div part="panel" class="panel" popover="manual" @pointerenter=${this.#x} @pointerleave=${this.#b} > <slot>${this.label}</slot>${this.shortcut?r`<sankhya-ds-kbd part="shortcut" class="shortcut" keys=${this.shortcut} aria-hidden="true" ></sankhya-ds-kbd>`:t} <span part="arrow" class="arrow"></span> </div>`}}})();function $(e){return{has:t=>e in t,get:t=>t[e],set:(t,n)=>{t[e]=n}}}e(`sankhya-ds-tooltip`,Tt);export{Tt as SankhyaDsTooltip};
|