@ncino/web-components 6.0.0 → 6.1.0-preview.10

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.
Files changed (84) hide show
  1. package/dist/_virtual/index3.js +1 -1
  2. package/dist/_virtual/index4.js +1 -1
  3. package/dist/components/boolean/boolean.gator.js +5 -4
  4. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +3 -3
  5. package/dist/components/input/base/input-base.gator.js +1 -0
  6. package/dist/components/input/base/input-base.js +1 -1
  7. package/dist/components/input/gator/input-date/input-date.gator.js +8 -8
  8. package/dist/components/input/gator/input-label/input-label.gator.js +5 -5
  9. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  10. package/dist/components/input/gator/input-text/input-text.gator.js +8 -7
  11. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +13 -5
  12. package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
  13. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  14. package/dist/components/radio/radio.gator.js +31 -26
  15. package/dist/components/radio-group/radio-group.gator.js +6 -6
  16. package/dist/components/skip-link/gator/base/skip-link.gator.js +22 -0
  17. package/dist/components/skip-link/gator/list-item/skip-link-list-item.gator.js +7 -0
  18. package/dist/components/skip-link/index.js +1 -0
  19. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +2 -2
  20. package/dist/components/table/gator/table.gator.js +29 -38
  21. package/dist/components/text-link/gator/text-link.gator.js +20 -10
  22. package/dist/index.gator.js +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/index.utils.js +1 -0
  25. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1 -1
  26. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +2 -2
  27. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -0
  28. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.js +1 -0
  29. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.js +1 -0
  30. package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +1 -0
  31. package/dist/node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js +1 -1
  32. package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +1 -0
  33. package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.js +1 -0
  34. package/dist/node_modules/.pnpm/{magic-string@0.30.17 → magic-string@0.30.18}/node_modules/magic-string/dist/magic-string.es.js +2 -2
  35. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +1 -1
  36. package/dist/packages/web-components/src/components/boolean/boolean.gator.scss.js +1 -1
  37. package/dist/packages/web-components/src/components/boolean/boolean.gator.tokens.scss.js +1 -1
  38. package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -1
  39. package/dist/packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js +1 -1
  40. package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -1
  41. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
  42. package/dist/packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js +1 -0
  43. package/dist/packages/web-components/src/components/skip-link/gator/list-item/skip-link-list-item.gator.scss.js +1 -0
  44. package/dist/packages/web-components/src/styles/_gator-utils.scss.js +1 -1
  45. package/dist/types/components/boolean/boolean.gator.d.ts +7 -1
  46. package/dist/types/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.d.ts +6 -0
  47. package/dist/types/components/input/base/input-base.d.ts +10 -0
  48. package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +11 -1
  49. package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +2 -4
  50. package/dist/types/components/input/gator/input-masked/input-masked.gator.d.ts +7 -1
  51. package/dist/types/components/input/gator/input-text/input-text.gator.d.ts +1 -0
  52. package/dist/types/components/input/gator/input-textarea/input-textarea.gator.d.ts +21 -0
  53. package/dist/types/components/radio/radio.gator.d.ts +1 -0
  54. package/dist/types/components/skip-link/gator/base/skip-link.gator.d.ts +36 -0
  55. package/dist/types/components/skip-link/gator/base/skip-link.gator.test.d.ts +0 -0
  56. package/dist/types/components/skip-link/gator/list-item/skip-link-list-item.gator.d.ts +13 -0
  57. package/dist/types/components/skip-link/gator/list-item/skip-link-list-item.gator.test.d.ts +0 -0
  58. package/dist/types/components/skip-link/index.d.ts +2 -0
  59. package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +6 -1
  60. package/dist/types/components/table/gator/table.gator.d.ts +3 -6
  61. package/dist/types/components/text-link/gator/text-link.gator.d.ts +11 -0
  62. package/dist/types/index.d.ts +1 -0
  63. package/dist/types/index.gator.d.ts +1 -0
  64. package/dist/types/index.utils.d.ts +1 -0
  65. package/dist/types/utils/brand-color-utils.d.ts +2 -0
  66. package/dist/types/utils/components/ngc-component.d.ts +5 -0
  67. package/dist/types/utils/storybook-args.d.ts +23 -0
  68. package/dist/utils/brand-color-utils.js +1 -0
  69. package/dist/utils/components/ngc-component.js +1 -1
  70. package/dist/utils/storybook-args.js +1 -1
  71. package/dist/utils/vitest-a11y-utils.js +1 -1
  72. package/package.json +14 -6
  73. package/web-types.json +420 -12
  74. package/dist/node_modules/.pnpm/chai@5.2.1/node_modules/chai/chai.js +0 -218
  75. /package/dist/node_modules/.pnpm/{@jridgewell_sourcemap-codec@1.5.4 → @jridgewell_sourcemap-codec@1.5.5}/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +0 -0
  76. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.2.1_typescript@5.8.3__playwright@1.54.1__6e6aa2c9b4102560da2d8ed1e4176ee9 → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.0_typescript@5.8.3__playwright@1.55.0__558558d730596f7c5e09b21ff26a3e74}/node_modules/@vitest/browser/context.js +0 -0
  77. /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/client-logger/index.js +0 -0
  78. /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/core-events/index.js +0 -0
  79. /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  80. /package/dist/node_modules/.pnpm/{storybook@9.1.1_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.2.1_typescript@5.8_ee1bb5025e4d34f67b4152c2110a5ec2 → storybook@9.1.2_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.0_typescript@5.8_573854de366b5ba3e2ab3da4bce0caa8}/node_modules/storybook/dist/test/index.js +0 -0
  81. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  82. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
  83. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
  84. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.2.1_@vitest_browser@3.2.4_@vitest_ui@3._7f1cfb627fdb82ddd833112aba9e7b0b → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.0_@vitest_browser@3.2.4_@vitest_ui@3._f0774390203a57f267156838cb4cb2c5}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
@@ -1,4 +1,4 @@
1
- import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p,nothing as b}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as d}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as c}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcComponent as m}from"../../../../utils/components/ngc-component.js";import v from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{msg as u}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../checkbox/checkbox.gator.js";import{unsafeCSS as g}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var h=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Reflect.get,r=(l,s,o,a)=>{for(var t=a>1?void 0:a?f(s,o):s,i=l.length-1,n;i>=0;i--)(n=l[i])&&(t=(a?n(s,o,t):n(t))||t);return a&&t&&h(s,o,t),t},w=(l,s,o)=>_(y(l),o,s);let e=class extends m{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0,this.allSelected=!1}handleSelectAllChange(l){this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selected:l.detail.selected}}))}render(){return p`
1
+ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p,nothing as b}from"../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as m}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{NgcComponent as d}from"../../../../utils/components/ngc-component.js";import h from"../../../../packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js";import{msg as u}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../../checkbox/checkbox.gator.js";import{unsafeCSS as v}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,y=Reflect.get,r=(l,s,o,a)=>{for(var t=a>1?void 0:a?f(s,o):s,c=l.length-1,n;c>=0;c--)(n=l[c])&&(t=(a?n(s,o,t):n(t))||t);return a&&t&&g(s,o,t),t},_=(l,s,o)=>y(w(l),o,s);let e=class extends d{constructor(){super(...arguments),this.visible=!1,this.selectedRows=0,this.totalRows=0,this.allSelected=!1}handleSelectAllChange(l){this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selected:l.detail.selected}}))}render(){return p`
2
2
  <div>
3
3
  <div class="gator-table-bulk-controls-aria-live-container" aria-live="polite" aria-atomic="true">
4
4
  ${this.selectedRowsMessage}
@@ -21,4 +21,4 @@ import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@
21
21
  <div class="gator-table-bulk-controls-actions">
22
22
  <slot></slot>
23
23
  </div>
24
- </div>`:b}get selectedRowsMessage(){return`${this.selectedRows} ${u("selected")}`}focus(){}};e.styles=[...w(e,e,"styles"),g(v)];r([c({type:Boolean,reflect:!0})],e.prototype,"visible",2);r([c({type:Number})],e.prototype,"selectedRows",2);r([c({type:Number})],e.prototype,"totalRows",2);r([c({type:Boolean,reflect:!0})],e.prototype,"allSelected",2);e=r([d("ngc-table-bulk-controls")],e);export{e as NgcTableBulkControls};
24
+ </div>`:b}get selectedRowsMessage(){return`${this.selectedRows} ${u("selected")}`}};e.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0};e.styles=[..._(e,e,"styles"),v(h)];r([i({type:Boolean,reflect:!0})],e.prototype,"visible",2);r([i({type:Number})],e.prototype,"selectedRows",2);r([i({type:Number})],e.prototype,"totalRows",2);r([i({type:Boolean,reflect:!0})],e.prototype,"allSelected",2);e=r([m("ngc-table-bulk-controls")],e);export{e as NgcTableBulkControls};
@@ -1,4 +1,4 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as w,html as o}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as g}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import R from"../../../packages/web-components/src/components/table/table.tokens.scss.js";import T from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import y from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import k from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{NjcTable as C}from"../table.js";import"../../checkbox/checkbox.gator.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import{unsafeHTML as P}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js";import{msg as b}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{KEY_CONSTANTS as S}from"../../../consts/key-constants.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,L=Object.getOwnPropertyDescriptor,c=(e,t,l,s)=>{for(var a=s>1?void 0:s?L(t,l):t,r=e.length-1,i;r>=0;r--)(i=e[r])&&(a=(s?i(t,l,a):i(a))||a);return s&&a&&v(t,l,a),a};let d=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.selectedRows=[],this._currentPage=1,this.justSelectedRow=null,this.showJumpLink=!1,this.handleKeyDown=e=>{e.key===S.TAB&&(e.shiftKey&&(this.showJumpLink=!0,this.requestUpdate()),document.removeEventListener("keydown",this.handleKeyDown,!0))}}updated(e){super.updated(e),e.has("data")&&(this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader))}render(){return this.columns?this.renderWrapper(this.getTableHeader(this.columns),this.getTableBody(this.columns,this.displayedRowData)):null}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return o`
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as $,html as r}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as w}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{state as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js";import T from"../../../packages/web-components/src/components/table/table.tokens.scss.js";import k from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import y from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import R from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{NjcTable as P}from"../table.js";import"../../checkbox/checkbox.gator.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import{unsafeHTML as C}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js";import{msg as b}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import"../../skip-link/gator/base/skip-link.gator.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var B=Object.defineProperty,S=Object.getOwnPropertyDescriptor,h=(e,t,l,s)=>{for(var a=s>1?void 0:s?S(t,l):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(a=(s?n(t,l,a):n(a))||a);return s&&a&&B(t,l,a),a};let c=class extends P{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.selectedRows=[],this._currentPage=1}updated(e){super.updated(e),e.has("data")&&(this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader))}render(){return this.columns?this.renderWrapper(this.getTableHeader(this.columns),this.getTableBody(this.columns,this.displayedRowData)):null}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return r`
2
2
  <ngc-table-bulk-controls
3
3
  ?visible="${this.showBulkControls}"
4
4
  .selectedRows="${this.selectedRows.length}"
@@ -12,7 +12,7 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
12
12
  aria-labelledby="${this.tableAriaLabelledBy}">
13
13
  ${e} ${t}
14
14
  </table>
15
- ${this.includePagination?o`
15
+ ${this.includePagination?r`
16
16
  <ngc-table-pagination
17
17
  items-per-page="${this.itemsPerPage}"
18
18
  total-items="${this.data.length}"
@@ -20,8 +20,8 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
20
20
  @pagechanged="${this.handlePageChanged}"
21
21
  @itemsperpagechanged="${this.handleItemsPerPageChanged}"
22
22
  ></ngc-table-pagination>
23
- `:w}
24
- `}handlePageChanged(e){this._currentPage=e.detail.page}handleItemsPerPageChanged(e){this.itemsPerPage=e.detail.itemsPerPage}handleJumpLinkClick(e){const t=this.shadowRoot?.querySelector("ngc-table-bulk-controls");t&&t.focus()}handleJumpLinkBlur(){this.showJumpLink=!1,this.requestUpdate()}handleRowSelectCheckboxBlur(){setTimeout(()=>{const e=this.shadowRoot?.activeElement;(!e||!e.classList.contains("gator-table-jump-link"))&&(this.showJumpLink=!1,document.removeEventListener("keydown",this.handleKeyDown,!0),this.requestUpdate())},0)}getTableHeader(e){const t=e.map(this.getTableHeaderColumn);return this.selectable&&t.unshift(o`
23
+ `:$}
24
+ `}handlePageChanged(e){this._currentPage=e.detail.page}handleItemsPerPageChanged(e){this.itemsPerPage=e.detail.itemsPerPage}getTableHeader(e){const t=e.map(this.getTableHeaderColumn);return this.selectable&&t.unshift(r`
25
25
  <th id="col-select" scope="col">
26
26
  <ngc-checkbox
27
27
  title-text="${b("Select All")}"
@@ -29,22 +29,22 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
29
29
  ?selected="${this.selectedRows.length===this.data.length}"
30
30
  @change="${l=>this.handleSelectAll(l)}"
31
31
  ></ngc-checkbox>
32
- </th>`),o`
32
+ </th>`),r`
33
33
  <thead role="rowgroup">
34
34
  <tr role="row">
35
35
  ${t}
36
36
  </tr>
37
37
  </thead>
38
- `}handleSelectAll(e){const t=e.detail.selected;t?(this.data.forEach(l=>{l.isTableHeader||(l.selected=!0)}),this.selectedRows=this.data.filter(l=>!l.isTableHeader)):(this.data.forEach(l=>{l.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selectedRows:this.selectedRows,selected:t}})),this.requestUpdate()}getTableHeaderColumn(e){const t=`col-${e.field}`;return o`
39
- <th id="${t}" scope="col">${e.name}</th>`}getTableBody(e,t){const l=[];let s={rows:[]};return t.forEach(a=>{a.isTableHeader?((s.rows.length>0||s.header)&&l.push(s),s={header:a,rows:[]}):s.rows.push(a)}),(s.rows.length>0||s.header)&&l.push(s),l.length===0&&t.length>0&&l.push({rows:t}),o`
38
+ `}handleSelectAll(e){const t=e.detail.selected;t?(this.data.forEach(l=>{l.isTableHeader||(l.selected=!0)}),this.selectedRows=this.data.filter(l=>!l.isTableHeader)):(this.data.forEach(l=>{l.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,detail:{selectedRows:this.selectedRows,selected:t}})),this.requestUpdate()}getTableHeaderColumn(e){const t=`col-${e.field}`;return r`
39
+ <th id="${t}" scope="col">${e.name}</th>`}getTableBody(e,t){const l=[];let s={rows:[]};return t.forEach(a=>{a.isTableHeader?((s.rows.length>0||s.header)&&l.push(s),s={header:a,rows:[]}):s.rows.push(a)}),(s.rows.length>0||s.header)&&l.push(s),l.length===0&&t.length>0&&l.push({rows:t}),r`
40
40
  ${l.map(a=>this.getCategoryBody(a,e))}
41
- `}getCategoryBody(e,t){let l="",s="",a="";e.header&&(l=e.header.headerText||e.header.categoryText||e.header.name||"Category",a=`category-${l.toLowerCase().replace(/\s+/g,"-")}`,s=a);const r=e.header?this.getTableHeaderRow(t,e.header):"",i=e.rows.map(h=>this.getTableBodyRow(h,t,a)),m=t.some(h=>h.includedInTotals===!0),n=e.rows.length>0&&m?this.getTotalRow(e.rows,t,a):"";return o`
42
- <tbody role="rowgroup" ${s?o`aria-labelledby="${s}"`:""}>
43
- ${r}
41
+ `}getCategoryBody(e,t){let l="",s="",a="";e.header&&(l=e.header.headerText||e.header.categoryText||e.header.name||"Category",a=`category-${l.toLowerCase().replace(/\s+/g,"-")}`,s=a);const i=e.header?this.getTableHeaderRow(t,e.header):"",n=e.rows.map(d=>this.getTableBodyRow(d,t,a)),u=t.some(d=>d.includedInTotals===!0),o=e.rows.length>0&&u?this.getTotalRow(e.rows,t,a):"";return r`
42
+ <tbody role="rowgroup" ${s?r`aria-labelledby="${s}"`:""}>
44
43
  ${i}
45
44
  ${n}
45
+ ${o}
46
46
  </tbody>
47
- `}getTotalRow(e,t,l){const s={};t.forEach(n=>{s[n.field]=0,n.includedInTotals&&e.forEach(h=>{const u=this.parseNumericValue(h[n.field]);u!==null&&(s[n.field]+=u)})});const a=l?`${l}-total`:"total-row",r=o`
47
+ `}getTotalRow(e,t,l){const s={};t.forEach(o=>{s[o.field]=0,o.includedInTotals&&e.forEach(d=>{const g=this.parseNumericValue(d[o.field]);g!==null&&(s[o.field]+=g)})});const a=l?`${l}-total`:"total-row",i=r`
48
48
  <th
49
49
  id="${a}"
50
50
  scope="row"
@@ -52,55 +52,46 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
52
52
  >
53
53
  Total
54
54
  </th>
55
- `,i=t.map(n=>{const h=`col-${n.field}`,u=[a,l,h].filter(Boolean).join(" ");return n.includedInTotals?o`
55
+ `,n=t.map(o=>{const d=`col-${o.field}`,g=[a,l,d].filter(Boolean).join(" ");return o.includedInTotals?r`
56
56
  <td
57
57
  role="gridcell"
58
- headers="${u}"
58
+ headers="${g}"
59
59
  class="gator-table-total-cell"
60
60
  >
61
- ${this.formatTotal(s[n.field],n)}
61
+ ${this.formatTotal(s[o.field],o)}
62
62
  </td>
63
- `:o`
63
+ `:r`
64
64
  <td
65
65
  role="gridcell"
66
66
  class="gator-table-total-cell"
67
67
  >
68
68
  &nbsp;
69
69
  </td>
70
- `}),m=this.selectable?[r,...i]:[r,...i.slice(1)];return o`
70
+ `}),u=this.selectable?[i,...n]:[i,...n.slice(1)];return r`
71
71
  <tr role="row" class="gator-table-total-row">
72
- ${m}
72
+ ${u}
73
73
  </tr>
74
- `}parseNumericValue(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.replace(/[^0-9.-]/g,""),l=parseFloat(t);if(!isNaN(l))return l}return null}formatTotal(e,t){const l=typeof t.decimalPlaces=="number"?t.decimalPlaces:2,s=e.toFixed(l);return typeof t.cellRenderer=="function"?t.cellRenderer({[t.field]:s}):s}getTableBodyRow(e,t,l){const s=t.map(a=>this.getTableBodyCell(e,a,l));if(this.selectable){const a=l?`col-select ${l}`:"col-select",r=this.showJumpLink&&this.justSelectedRow===e;s.unshift(o`
74
+ `}parseNumericValue(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.replace(/[^0-9.-]/g,""),l=parseFloat(t);if(!isNaN(l))return l}return null}formatTotal(e,t){const l=typeof t.decimalPlaces=="number"?t.decimalPlaces:2,s=e.toFixed(l);return typeof t.cellRenderer=="function"?t.cellRenderer({[t.field]:s}):s}getTableBodyRow(e,t,l){const s=t.map(a=>this.getTableBodyCell(e,a,l));if(this.selectable){const a=l?`col-select ${l}`:"col-select";s.unshift(r`
75
75
  <td role="gridcell" class="gator-table-checkbox-column" headers="${a}">
76
- ${r?o`
77
- <ngc-button
78
- variant="base"
79
- class="gator-table-jump-link"
80
- @click="${this.handleJumpLinkClick}"
81
- @blur="${this.handleJumpLinkBlur}"
82
- >
83
- ${b("Jump to bulk actions")}
84
- </ngc-button>`:o`<ngc-checkbox
85
- label="test"
86
- ?selected="${e.selected}"
87
- @change="${i=>this.handleTableBodyRowSelected(i,e)}"
88
- id="checkbox-${e.id||Math.random().toString(36).substring(2,11)}"
89
- @blur="${this.handleRowSelectCheckboxBlur}"
90
- ></ngc-checkbox>`}
91
- </td>`),r&&setTimeout(()=>{this.shadowRoot?.querySelector(".gator-table-jump-link")?.focus()},0)}return o`
76
+ <ngc-checkbox
77
+ label="test"
78
+ ?selected="${e.selected}"
79
+ @change="${i=>this.handleTableBodyRowSelected(i,e)}"
80
+ id="checkbox-${e.id||Math.random().toString(36).substring(2,11)}"
81
+ ></ngc-checkbox>
82
+ </td>`)}return r`
92
83
  <tr role="row" class="${this.selectable&&e.selected?"gator-table-row-selected":""}">
93
84
  ${s}
94
85
  </tr>
95
- `}getTableHeaderRow(e,t){const l=this.selectable?e.length+1:e.length,s=t.headerText||t.categoryText||t.name||"Category";return o`
86
+ `}getTableHeaderRow(e,t){const l=this.selectable?e.length+1:e.length,s=t.headerText||t.categoryText||t.name||"Category";return r`
96
87
  <tr role="row" class="gator-table-category-header">
97
88
  <th role="rowheader" colspan="${l}" scope="rowgroup" class="gator-table-header-cell"
98
89
  id="${`category-${s.toLowerCase().replace(/\s+/g,"-")}`}">
99
90
  ${s}
100
91
  </th>
101
92
  </tr>
102
- `}handleTableBodyRowSelected(e,t){e.detail.selected?(t.selected=!0,this.selectedRows.push(t),this.justSelectedRow=t,this.showJumpLink=!1,document.addEventListener("keydown",this.handleKeyDown,!0)):(t.selected=!1,this.selectedRows=this.selectedRows.filter(l=>l!==t),this.justSelectedRow===t&&(this.justSelectedRow=null,this.showJumpLink=!1)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,detail:{data:t,selectedRows:this.selectedRows}})),this.requestUpdate()}get displayedRowData(){if(!this.includePagination)return this.data;const e=(this._currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.data.slice(e,t)}getTableBodyCell(e,t,l){const s=`col-${t.field}`,a=l?`${s} ${l}`:s;return o`
93
+ `}handleTableBodyRowSelected(e,t){e.detail.selected?(t.selected=!0,this.selectedRows.push(t),this.addSkipLinkToBulkActions(e.target)):(t.selected=!1,this.selectedRows=this.selectedRows.filter(l=>l!==t),this.removeSkipLinkToBulkActions(e.target)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,detail:{data:t,selectedRows:this.selectedRows}})),this.requestUpdate()}addSkipLinkToBulkActions(e){e.parentNode?.querySelector("ngc-skip-link")||e.parentNode?.insertBefore(this.getSkipToBulkActionsMarkup(e),e)}getSkipToBulkActionsMarkup(e){const t=document.createElement("ngc-skip-link");return t.target=this.shadowRoot?.querySelector("ngc-table-bulk-controls")||"",t.text=b("Jump to table actions"),t.referenceElement=e,t.placement="top-start",t.xOffset=4,t.yOffset=-12,t.onblur=this.removeSkipLinkToBulkActions.bind(this,e),t}removeSkipLinkToBulkActions(e){e.parentNode?.querySelector("ngc-skip-link")?.remove()}get displayedRowData(){if(!this.includePagination)return this.data;const e=(this._currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.data.slice(e,t)}getTableBodyCell(e,t,l){const s=`col-${t.field}`,a=l?`${s} ${l}`:s;return r`
103
94
  <td role="gridcell" headers="${a}">
104
- ${P(this.getValueForCell(e,t))}
95
+ ${C(this.getValueForCell(e,t))}
105
96
  </td>
106
- `}getValueForCell(e,t){return typeof t.cellRenderer=="function"?t.cellRenderer(e):e[t.field]}};d.styles=[p(k),p(y),p(R),p(T)];c([f({type:Boolean})],d.prototype,"elevated",2);c([f({type:Boolean,attribute:"include-pagination"})],d.prototype,"includePagination",2);c([g()],d.prototype,"selectedRows",2);c([g()],d.prototype,"_currentPage",2);c([g()],d.prototype,"justSelectedRow",2);c([g()],d.prototype,"showJumpLink",2);d=c([$("ngc-table")],d);export{d as NgcTable};
97
+ `}getValueForCell(e,t){return typeof t.cellRenderer=="function"?t.cellRenderer(e):e[t.field]}};c.styles=[p(R),p(y),p(T),p(k)];h([m({type:Boolean})],c.prototype,"elevated",2);h([m({type:Boolean,attribute:"include-pagination"})],c.prototype,"includePagination",2);h([f()],c.prototype,"selectedRows",2);h([f()],c.prototype,"_currentPage",2);c=h([w("ngc-table")],c);export{c as NgcTable};
@@ -1,16 +1,26 @@
1
- import{NjcTextLink as p}from"../text-link.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as f}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import c from"../../../packages/web-components/src/components/text-link/gator/text-link.gator.scss.js";import d from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import g from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{ifDefined as i}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import"../../icon/slds/icon.slds.js";import"../../icon/gator/icon.gator.js";import{unsafeCSS as e}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,u=(s,a,l,n)=>{for(var t=n>1?void 0:n?v(a,l):a,r=s.length-1,m;r>=0;r--)(m=s[r])&&(t=m(t)||t);return t};let o=class extends p{render(){return f`
1
+ import{NjcTextLink as u}from"../text-link.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as a}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import c from"../../../packages/web-components/src/components/text-link/gator/text-link.gator.scss.js";import m from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import k from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{ifDefined as i}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js";import"../../icon/slds/icon.slds.js";import"../../icon/gator/icon.gator.js";import{unsafeCSS as n}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,f=(t,o,d,l)=>{for(var e=l>1?void 0:l?v(o,d):o,s=t.length-1,h;s>=0;s--)(h=t[s])&&(e=h(e)||e);return e};let r=class extends u{render(){return this.href?this.anchorMarkup:this.customLinkMarkup}get anchorMarkup(){return a`
2
2
  <a
3
- role="link"
4
3
  target="${i(this.target||void 0)}"
5
4
  class="gator-text-link ${this.variantClass}"
6
5
  href="${i(this.href||void 0)}"
7
6
  data-testid="${i(this.dataTestid?`${this.dataTestid}-text-link`:void 0)}"
8
7
  >
9
- <slot></slot>
10
- <ngc-icon
11
- name="${this.endIcon}"
12
- width="18"
13
- height="18"
14
- ></ngc-icon>
15
- </a>
16
- `}get variantClass(){return this.variant!=="default"?`gator-text-link-${this.variant}`:null}};o.styles=[e(c),e(d),e(g)];o=u([h("ngc-text-link")],o);export{o as NgcTextLink};
8
+ ${this.textLinkInnerMarkup}
9
+ </a>`}get customLinkMarkup(){return a`
10
+ <div
11
+ role="link"
12
+ @keyup="${this.handleKeyup}"
13
+ @click="${this.handleClick}"
14
+ tabindex="0"
15
+ class="gator-text-link ${this.variantClass}"
16
+ data-testid="${i(this.dataTestid?`${this.dataTestid}-text-link`:void 0)}"
17
+ >
18
+ ${this.textLinkInnerMarkup}
19
+ </div>
20
+ `}get textLinkInnerMarkup(){return a`
21
+ <slot></slot>
22
+ <ngc-icon
23
+ name="${this.endIcon}"
24
+ width="18"
25
+ height="18"
26
+ ></ngc-icon>`}get variantClass(){return this.variant!=="default"?`gator-text-link-${this.variant}`:null}handleKeyup(t){t.key==="Enter"&&(t.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0})))}handleClick(t){t.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))}};r.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};r.styles=[n(c),n(m),n(k)];r=f([p("ngc-text-link")],r);export{r as NgcTextLink};
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as g from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as h from"./components/display-card/gator/display-card.gator.js";import*as I from"./components/divider/gator/divider.gator.js";import*as B from"./components/fab/gator/fab.gator.js";import*as P from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as k from"./components/headline-card/gator/headline-card.gator.js";import*as v from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as L from"./components/input/gator/input-label/input-label.gator.js";import*as S from"./components/input/gator/help-text/help-text.gator.js";import*as D from"./components/input/gator/input-text/input-text.gator.js";import*as w from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as F from"./components/input/gator/input-masked/input-masked.gator.js";import*as H from"./components/input/gator/input-percent/input-percent.gator.js";import*as y from"./components/input/gator/input-phone/input-phone.gator.js";import*as A from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as M from"./components/input/gator/input-file/input-file.gator.js";import*as U from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as R from"./components/input/gator/input-search/input-search.gator.js";import*as j from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as z from"./components/icon/gator/icon.gator.js";import*as E from"./components/icon-button/gator/icon-button.gator.js";import*as J from"./components/list/gator/list/list.gator.js";import*as K from"./components/list/gator/list-item/list-item.gator.js";import*as O from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as V from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as Y from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as $ from"./components/modal/gator/modal.gator.js";import*as oo from"./components/page-header/gator/page-header.gator.js";import*as to from"./components/panel/gator/panel.gator.js";import*as ro from"./components/popover/gator/popover.gator.js";import*as ao from"./components/progress-bar/gator/progress-bar.gator.js";import*as eo from"./components/radio/radio.gator.js";import*as po from"./components/radio-group/radio-group.gator.js";import*as _o from"./components/selection-box/selection-box.gator.js";import*as no from"./components/selection-box-group/selection-box-group.gator.js";import*as so from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as mo from"./components/switch/gator/switch.gator.js";import*as go from"./components/tabs/gator/tabset/tabset.gator.js";import*as io from"./components/tabs/gator/tab/tab.gator.js";import*as co from"./components/text-detail/gator/text-detail.gator.js";import*as uo from"./components/text-link/gator/text-link.gator.js";import*as xo from"./components/time-picker/gator/time-picker.gator.js";import*as lo from"./components/toast/gator/base/toast.gator.js";import*as fo from"./components/toast-container/gator/toast-container.gator.js";import*as No from"./components/toaster/gator/toaster.gator.js";import*as bo from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as To from"./components/table/gator/table.gator.js";import*as ho from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as Io from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,g as NgcBreadcrumbs,c as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,h as NgcDisplayCard,I as NgcDivider,B as NgcFab,P as NgcGuidedNav,k as NgcHeadlineCard,S as NgcHelpText,z as NgcIcon,E as NgcIconButton,v as NgcInputCurrency,G as NgcInputDate,A as NgcInputDropdown,M as NgcInputFile,U as NgcInputFileUploadedPreview,L as NgcInputLabel,F as NgcInputMasked,H as NgcInputPercent,y as NgcInputPhone,R as NgcInputSearch,D as NgcInputText,w as NgcInputTextarea,j as NgcInputTime,J as NgcList,K as NgcListItem,O as NgcLoadingSpinner,V as NgcMenu,Y as NgcMenuItem,$ as NgcModal,oo as NgcPageHeader,to as NgcPanel,ro as NgcPopover,ao as NgcProgressBar,eo as NgcRadio,po as NgcRadioGroup,_o as NgcSelectionBox,no as NgcSelectionBoxGroup,so as NgcSkeletonLoader,mo as NgcSwitch,io as NgcTab,To as NgcTable,Io as NgcTableControls,ho as NgcTablePagination,go as NgcTabs,co as NgcTextDetail,uo as NgcTextLink,xo as NgcTimePicker,lo as NgcToast,fo as NgcToastContainer,No as NgcToaster,bo as NgcTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as k from"./components/display-card/gator/display-card.gator.js";import*as h from"./components/divider/gator/divider.gator.js";import*as I from"./components/fab/gator/fab.gator.js";import*as B from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as P from"./components/headline-card/gator/headline-card.gator.js";import*as v from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as L from"./components/input/gator/input-label/input-label.gator.js";import*as S from"./components/input/gator/help-text/help-text.gator.js";import*as D from"./components/input/gator/input-text/input-text.gator.js";import*as w from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as F from"./components/input/gator/input-masked/input-masked.gator.js";import*as H from"./components/input/gator/input-percent/input-percent.gator.js";import*as y from"./components/input/gator/input-phone/input-phone.gator.js";import*as A from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as M from"./components/input/gator/input-file/input-file.gator.js";import*as U from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as R from"./components/input/gator/input-search/input-search.gator.js";import*as j from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as z from"./components/icon/gator/icon.gator.js";import*as E from"./components/icon-button/gator/icon-button.gator.js";import*as J from"./components/list/gator/list/list.gator.js";import*as K from"./components/list/gator/list-item/list-item.gator.js";import*as O from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as V from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as Y from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as $ from"./components/modal/gator/modal.gator.js";import*as oo from"./components/page-header/gator/page-header.gator.js";import*as to from"./components/panel/gator/panel.gator.js";import*as ro from"./components/popover/gator/popover.gator.js";import*as ao from"./components/progress-bar/gator/progress-bar.gator.js";import*as eo from"./components/radio/radio.gator.js";import*as po from"./components/radio-group/radio-group.gator.js";import*as _o from"./components/selection-box/selection-box.gator.js";import*as no from"./components/selection-box-group/selection-box-group.gator.js";import*as so from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as mo from"./components/skip-link/gator/base/skip-link.gator.js";import"./components/skip-link/gator/list-item/skip-link-list-item.gator.js";import*as go from"./components/switch/gator/switch.gator.js";import*as co from"./components/tabs/gator/tabset/tabset.gator.js";import*as uo from"./components/tabs/gator/tab/tab.gator.js";import*as xo from"./components/text-detail/gator/text-detail.gator.js";import*as lo from"./components/text-link/gator/text-link.gator.js";import*as fo from"./components/time-picker/gator/time-picker.gator.js";import*as No from"./components/toast/gator/base/toast.gator.js";import*as bo from"./components/toast-container/gator/toast-container.gator.js";import*as Co from"./components/toaster/gator/toaster.gator.js";import*as To from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as ho from"./components/table/gator/table.gator.js";import*as Io from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as Bo from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,c as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,k as NgcDisplayCard,h as NgcDivider,I as NgcFab,B as NgcGuidedNav,P as NgcHeadlineCard,S as NgcHelpText,z as NgcIcon,E as NgcIconButton,v as NgcInputCurrency,G as NgcInputDate,A as NgcInputDropdown,M as NgcInputFile,U as NgcInputFileUploadedPreview,L as NgcInputLabel,F as NgcInputMasked,H as NgcInputPercent,y as NgcInputPhone,R as NgcInputSearch,D as NgcInputText,w as NgcInputTextarea,j as NgcInputTime,J as NgcList,K as NgcListItem,O as NgcLoadingSpinner,V as NgcMenu,Y as NgcMenuItem,$ as NgcModal,oo as NgcPageHeader,to as NgcPanel,ro as NgcPopover,ao as NgcProgressBar,eo as NgcRadio,po as NgcRadioGroup,_o as NgcSelectionBox,no as NgcSelectionBoxGroup,so as NgcSkeletonLoader,mo as NgcSkipLink,go as NgcSwitch,uo as NgcTab,ho as NgcTable,Bo as NgcTableControls,Io as NgcTablePagination,co as NgcTabs,xo as NgcTextDetail,lo as NgcTextLink,fo as NgcTimePicker,No as NgcToast,bo as NgcToastContainer,Co as NgcToaster,To as NgcTooltip};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import*as s from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as I from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as h from"./components/combobox/base/index.js";import*as C from"./components/combobox/combobox-item/index.js";import*as B from"./components/display-card/gator/display-card.gator.js";import*as v from"./components/divider/gator/divider.gator.js";import*as k from"./components/fab/gator/fab.gator.js";import*as G from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as L from"./components/headline-card/gator/headline-card.gator.js";import*as D from"./components/icon/slds/icon.slds.js";import*as P from"./components/icon/gator/icon.gator.js";import*as S from"./components/icon-button/gator/icon-button.gator.js";import*as M from"./components/input/gator/input-currency/input-currency.gator.js";import*as w from"./components/input/gator/input-date/input-date.gator.js";import*as F from"./components/input/gator/input-label/input-label.gator.js";import*as H from"./components/input/gator/help-text/help-text.gator.js";import*as y from"./components/input/gator/input-text/input-text.gator.js";import*as A from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as R from"./components/input/gator/input-masked/input-masked.gator.js";import*as E from"./components/input/gator/input-percent/input-percent.gator.js";import*as U from"./components/input/gator/input-phone/input-phone.gator.js";import*as j from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as q from"./components/input/gator/input-file/input-file.gator.js";import*as z from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as J from"./components/input/gator/input-search/input-search.gator.js";import*as K from"./components/input/gator/input-time/input-time.gator.js";import*as O from"./components/input/slds/input-text/input-text.slds.js";import*as Q from"./components/input/slds/input-error/input-error.slds.js";import*as V from"./components/input/slds/input-label/input-label.slds.js";import*as W from"./components/input-rich-text/input-rich-text.slds.js";import*as X from"./components/list/gator/list/list.gator.js";import*as Y from"./components/list/gator/list-item/list-item.gator.js";import*as Z from"./components/menu/base/slds/menu.slds.js";import*as $ from"./components/menu/base/gator/menu.gator.js";import*as oo from"./components/menu/menu-divider/menu-divider.slds.js";import*as to from"./components/menu/menu-item/slds/menu-item.slds.js";import*as ro from"./components/menu/menu-item/gator/menu-item.gator.js";import*as ao from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as eo from"./components/modal/gator/modal.gator.js";import*as po from"./components/page-header/gator/page-header.gator.js";import*as so from"./components/pill/pill.js";import*as _o from"./components/popover/gator/popover.gator.js";import*as no from"./components/progress-bar/gator/progress-bar.gator.js";import*as mo from"./components/radio/radio.gator.js";import*as io from"./components/radio-group/radio-group.gator.js";import*as co from"./components/scoped-notification/scoped-notification.slds.js";import*as go from"./components/selection-box/selection-box.gator.js";import*as uo from"./components/selection-box-group/selection-box-group.gator.js";import*as xo from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as lo from"./components/switch/gator/switch.gator.js";import*as fo from"./components/tabs/gator/tabset/tabset.gator.js";import*as No from"./components/tabs/gator/tab/tab.gator.js";import*as bo from"./components/text-detail/gator/text-detail.gator.js";import*as Io from"./components/text-link/gator/text-link.gator.js";import*as To from"./components/toast/gator/base/toast.gator.js";import*as ho from"./components/toast-container/gator/toast-container.gator.js";import*as Co from"./components/toaster/gator/toaster.gator.js";import*as Bo from"./components/tooltip/gator/tooltip.gator.js";import*as vo from"./components/tooltip/slds/tooltip.slds.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,I as NgcCheckboxGroup,T as NgcChip,B as NgcDisplayCard,v as NgcDivider,k as NgcFab,G as NgcGuidedNav,L as NgcHeadlineCard,H as NgcHelpText,P as NgcIcon,S as NgcIconButton,M as NgcInputCurrency,w as NgcInputDate,j as NgcInputDropdown,q as NgcInputFile,z as NgcInputFileUploadedPreview,F as NgcInputLabel,R as NgcInputMasked,E as NgcInputPercent,U as NgcInputPhone,J as NgcInputSearch,y as NgcInputText,A as NgcInputTextarea,K as NgcInputTime,X as NgcList,Y as NgcListItem,$ as NgcMenu,ro as NgcMenuItem,eo as NgcModal,po as NgcPageHeader,_o as NgcPopover,no as NgcProgressBar,mo as NgcRadio,io as NgcRadioGroup,go as NgcSelectionBox,uo as NgcSelectionBoxGroup,xo as NgcSkeletonLoader,lo as NgcSwitch,No as NgcTab,fo as NgcTabs,bo as NgcTextDetail,Io as NgcTextLink,To as NgcToast,ho as NgcToastContainer,Co as NgcToaster,Bo as NgcTooltip,s as NscBadge,c as NscButton,h as NscCombobox,C as NscComboboxItem,D as NscIcon,Q as NscInputError,V as NscInputLabel,W as NscInputRichText,O as NscInputText,Z as NscMenu,oo as NscMenuDivider,to as NscMenuItem,ao as NscMenuSubmenu,so as NscPill,co as NscScopedNotification,vo as NscTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as s from"./components/avatar/gator/avatar.gator.js";import*as p from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as I from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as k from"./components/combobox/base/index.js";import*as h from"./components/combobox/combobox-item/index.js";import*as C from"./components/display-card/gator/display-card.gator.js";import*as L from"./components/divider/gator/divider.gator.js";import*as B from"./components/fab/gator/fab.gator.js";import*as v from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as G from"./components/headline-card/gator/headline-card.gator.js";import*as S from"./components/icon/slds/icon.slds.js";import*as D from"./components/icon/gator/icon.gator.js";import*as P from"./components/icon-button/gator/icon-button.gator.js";import*as M from"./components/input/gator/input-currency/input-currency.gator.js";import*as w from"./components/input/gator/input-date/input-date.gator.js";import*as F from"./components/input/gator/input-label/input-label.gator.js";import*as H from"./components/input/gator/help-text/help-text.gator.js";import*as y from"./components/input/gator/input-text/input-text.gator.js";import*as A from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as R from"./components/input/gator/input-masked/input-masked.gator.js";import*as E from"./components/input/gator/input-percent/input-percent.gator.js";import*as U from"./components/input/gator/input-phone/input-phone.gator.js";import*as j from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as q from"./components/input/gator/input-file/input-file.gator.js";import*as z from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as J from"./components/input/gator/input-search/input-search.gator.js";import*as K from"./components/input/gator/input-time/input-time.gator.js";import*as O from"./components/input/slds/input-text/input-text.slds.js";import*as Q from"./components/input/slds/input-error/input-error.slds.js";import*as V from"./components/input/slds/input-label/input-label.slds.js";import*as W from"./components/input-rich-text/input-rich-text.slds.js";import*as X from"./components/list/gator/list/list.gator.js";import*as Y from"./components/list/gator/list-item/list-item.gator.js";import*as Z from"./components/menu/base/slds/menu.slds.js";import*as $ from"./components/menu/base/gator/menu.gator.js";import*as oo from"./components/menu/menu-divider/menu-divider.slds.js";import*as to from"./components/menu/menu-item/slds/menu-item.slds.js";import*as ro from"./components/menu/menu-item/gator/menu-item.gator.js";import*as ao from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as eo from"./components/modal/gator/modal.gator.js";import*as so from"./components/page-header/gator/page-header.gator.js";import*as po from"./components/pill/pill.js";import*as _o from"./components/popover/gator/popover.gator.js";import*as no from"./components/progress-bar/gator/progress-bar.gator.js";import*as mo from"./components/radio/radio.gator.js";import*as io from"./components/radio-group/radio-group.gator.js";import*as co from"./components/scoped-notification/scoped-notification.slds.js";import*as go from"./components/selection-box/selection-box.gator.js";import*as uo from"./components/selection-box-group/selection-box-group.gator.js";import*as xo from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as lo from"./components/switch/gator/switch.gator.js";import*as fo from"./components/tabs/gator/tabset/tabset.gator.js";import*as No from"./components/tabs/gator/tab/tab.gator.js";import*as bo from"./components/text-detail/gator/text-detail.gator.js";import*as Io from"./components/text-link/gator/text-link.gator.js";import*as To from"./components/toast/gator/base/toast.gator.js";import*as ko from"./components/toast-container/gator/toast-container.gator.js";import*as ho from"./components/toaster/gator/toaster.gator.js";import*as Co from"./components/tooltip/gator/tooltip.gator.js";import*as Lo from"./components/tooltip/slds/tooltip.slds.js";import*as Bo from"./components/skip-link/gator/base/skip-link.gator.js";import*as vo from"./components/skip-link/gator/list-item/skip-link-list-item.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,s as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,I as NgcCheckboxGroup,T as NgcChip,C as NgcDisplayCard,L as NgcDivider,B as NgcFab,v as NgcGuidedNav,G as NgcHeadlineCard,H as NgcHelpText,D as NgcIcon,P as NgcIconButton,M as NgcInputCurrency,w as NgcInputDate,j as NgcInputDropdown,q as NgcInputFile,z as NgcInputFileUploadedPreview,F as NgcInputLabel,R as NgcInputMasked,E as NgcInputPercent,U as NgcInputPhone,J as NgcInputSearch,y as NgcInputText,A as NgcInputTextarea,K as NgcInputTime,X as NgcList,Y as NgcListItem,$ as NgcMenu,ro as NgcMenuItem,eo as NgcModal,so as NgcPageHeader,_o as NgcPopover,no as NgcProgressBar,mo as NgcRadio,io as NgcRadioGroup,go as NgcSelectionBox,uo as NgcSelectionBoxGroup,xo as NgcSkeletonLoader,Bo as NgcSkipLink,vo as NgcSkipLinkListItem,lo as NgcSwitch,No as NgcTab,fo as NgcTabs,bo as NgcTextDetail,Io as NgcTextLink,To as NgcToast,ko as NgcToastContainer,ho as NgcToaster,Co as NgcTooltip,p as NscBadge,c as NscButton,k as NscCombobox,h as NscComboboxItem,S as NscIcon,Q as NscInputError,V as NscInputLabel,W as NscInputRichText,O as NscInputText,Z as NscMenu,oo as NscMenuDivider,to as NscMenuItem,ao as NscMenuSubmenu,po as NscPill,co as NscScopedNotification,Lo as NscTooltip};
@@ -0,0 +1 @@
1
+ import{getBrandColor as e,setBrandColor as t}from"./utils/brand-color-utils.js";export{e as getBrandColor,t as setBrandColor};
@@ -1,4 +1,4 @@
1
- import{diff as S,printDiffOrStringify as vt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as H}from"../../../../../@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js";import{processError as Tt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js";import{use as Nt,util as R}from"../../../../../chai@5.2.1/node_modules/chai/chai.js";import{getType as ut,noop as Ot,isObject as q,assertTypes as T}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js";import{s as j}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";const k=Symbol.for("matchers-object"),B=Symbol.for("$$jest-matchers-object"),ft=Symbol.for("expect-global"),ht=Symbol.for("asymmetric-matchers-object"),ae={toSatisfy(e,t,r){const{printReceived:c,printExpected:a,matcherHint:h}=this.utils,u=t(e);return{pass:u,message:()=>u?`${h(".not.toSatisfy","received","")}
1
+ import{diff as S,printDiffOrStringify as vt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as H}from"../../../../../@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js";import{processError as Tt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js";import{use as Nt,util as R}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{getType as ut,noop as Ot,isObject as q,assertTypes as T}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js";import{s as j}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";const k=Symbol.for("matchers-object"),B=Symbol.for("$$jest-matchers-object"),ft=Symbol.for("expect-global"),ht=Symbol.for("asymmetric-matchers-object"),ae={toSatisfy(e,t,r){const{printReceived:c,printExpected:a,matcherHint:h}=this.utils,u=t(e);return{pass:u,message:()=>u?`${h(".not.toSatisfy","received","")}
2
2
 
3
3
  Expected value to not satisfy:
4
4
  ${r||a(t)}
@@ -1,7 +1,7 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.18/node_modules/magic-string/dist/magic-string.es.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js"])))=>i.map(i=>d[i]);
2
2
  import{__vitePreload as be}from"../../../../../../../_virtual/preload-helper.js";import{format as $e,plugins as ke}from"../../../../../@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js";import{r as Ne}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Pe=44,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Re=new Uint8Array(64),me=new Uint8Array(128);for(let t=0;t<Y.length;t++){const e=Y.charCodeAt(t);Re[t]=e,me[e]=t}function M(t,e){let n=0,s=0,i=0;do{const a=t.next();i=me[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function ee(t,e){return t.pos>=e?!1:t.peek()!==Pe}class Ce{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Te(t){const{length:e}=t,n=new Ce(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=M(n,i),i<u&&(p=!1),u=i,ee(n,c)?(r=M(n,r),a=M(n,a),l=M(n,l),ee(n,c)?(o=M(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Oe(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Oe(t){t.sort(Ae)}function Ae(t,e){return t[0]-e[0]}const Me=/^[\w+.-]+:\/\//,Fe=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Le=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var y;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(y||(y={}));function Be(t){return Me.test(t)}function De(t){return t.startsWith("//")}function ge(t){return t.startsWith("/")}function Je(t){return t.startsWith("file:")}function te(t){return/^[.?#]/.test(t)}function L(t){const e=Fe.exec(t);return Se(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Xe(t){const e=Le.exec(t),n=e[2];return Se("file:","",e[1]||"","",ge(n)?n:"/"+n,e[3]||"",e[4]||"")}function Se(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:y.Absolute}}function ne(t){if(De(t)){const n=L("http:"+t);return n.scheme="",n.type=y.SchemeRelative,n}if(ge(t)){const n=L("http://foo.com"+t);return n.scheme="",n.host="",n.type=y.AbsolutePath,n}if(Je(t))return Xe(t);if(Be(t))return L(t);const e=L("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?y.Query:t.startsWith("#")?y.Hash:y.RelativePath:y.Empty,e}function je(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function We(t,e){_e(e,e.type),t.path==="/"?t.path=e.path:t.path=je(e.path)+t.path}function _e(t,e){const n=e<=y.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function Ke(t,e){if(!t&&!e)return"";const n=ne(t);let s=n.type;if(e&&s!==y.Absolute){const r=ne(e),a=r.type;switch(s){case y.Empty:n.hash=r.hash;case y.Hash:n.query=r.query;case y.Query:case y.RelativePath:We(n,r);case y.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case y.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}_e(n,s);const i=n.query+n.hash;switch(s){case y.Hash:case y.Query:return i;case y.RelativePath:{const r=n.path.slice(1);return r?te(e||t)&&!te(r)?"./"+r+i:r+i:i||"."}case y.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function se(t,e){return e&&!e.endsWith("/")&&(e+="/"),Ke(t,e)}function Ue(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const R=0,qe=1,ze=2,He=3,Ge=4;function Ve(t,e){const n=ie(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=ie(t,s+1))t[s]=Ze(t[s],e);return t}function ie(t,e){for(let n=e;n<t.length;n++)if(!Qe(t[n]))return n;return t.length}function Qe(t){for(let e=1;e<t.length;e++)if(t[e][R]<t[e-1][R])return!1;return!0}function Ze(t,e){return e||(t=t.slice()),t.sort(Ye)}function Ye(t,e){return t[R]-e[R]}let J=!1;function et(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][R]-e;if(r===0)return J=!0,i;r<0?n=i+1:s=i-1}return J=!1,n-1}function tt(t,e,n){for(let s=n+1;s<t.length&&t[s][R]===e;n=s++);return n}function nt(t,e,n){for(let s=n-1;s>=0&&t[s][R]===e;n=s--);return n}function st(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function it(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return J=a!==-1&&t[a][R]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=et(t,e,l,o)}const rt="`line` must be greater than 0 (lines start at line 1)",at="`column` must be greater than or equal to 0 (columns start at column 0)",re=-1,ot=1;class lt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=se(o||"",Ue(n));this.resolvedSources=c.map(S=>se(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=Ve(u,s)),this._decodedMemo=st(),this._bySources=void 0,this._bySourceMemos=void 0}}function ct(t){var e;return(e=t)._decoded||(e._decoded=Te(t._encoded))}function ut(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(rt);if(s<0)throw new Error(at);const r=ct(t);if(n>=r.length)return B(null,null,null,null);const a=r[n],l=ht(a,t._decodedMemo,n,s,i||ot);if(l===-1)return B(null,null,null,null);const o=a[l];if(o.length===1)return B(null,null,null,null);const{names:c,resolvedSources:d}=t;return B(d[o[qe]],o[ze]+1,o[He],o.length===5?c[o[Ge]]:null)}function B(t,e,n,s){return{source:t,line:e,column:n,name:s}}function ht(t,e,n,s,i){let r=it(t,s,e,n);return J?r=(i===re?tt:nt)(t,s,r):i===re&&r++,r===-1||r===t.length?-1:r}function ye(t){return t!=null}function dt(t){return t===null||typeof t!="function"&&typeof t!="object"}function D(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function ft(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const ve=/^\s*at .*(?:\S:\d+|\(native\))/m,pt=/^(?:eval@)?(?:\[native code\])?$/,mt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function xe(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function gt(t){let e=t.trim();if(pt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=xe(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function St(t){let e=t.trim();if(!ve.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=xe(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Ne(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function X(t,e={}){const{ignoreStackEntries:n=mt}=e;return(ve.test(t)?yt(t):_t(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return ae(n,i.file)?null:i;const l=new lt(a),{line:o,column:c,source:d,name:p}=ut(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,w=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,w).pathname,u.match(/\/\w:\//)&&(u=u.slice(1))}return ae(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function ae(t,e){return t.some(n=>e.match(n))}function _t(t){return t.split(`
3
3
  `).map(e=>gt(e)).filter(ye)}function yt(t){return t.split(`
4
- `).map(e=>St(e)).filter(ye)}function vt(t,e={}){if(!t||dt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?X(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=X(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=X(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let xt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(xt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}function wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j,oe;function It(){if(oe)return j;oe=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,w,E,b,I,$;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,$=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,I=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),j=function*(_,{jsx:C=!1}={}){var x,N,T,f,m,Q,h,P,Z,k,O,g,A,v;for({length:Q}=_,f=0,m="",v=[{tag:"JS"}],x=[],O=0,g=!1;f<Q;){switch(P=v[v.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(I.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(A=h[0],Z=p.lastIndex,k=A,A){case"(":m==="?NonExpressionParenKeyword"&&v.push({tag:"JSNonExpressionParen",nesting:O}),O++,g=!1;break;case")":O--,g=!0,P.tag==="JSNonExpressionParen"&&O===P.nesting&&(v.pop(),k="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,T=!b.test(m)&&(I.test(m)||r.test(m)),x.push(T),g=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(x.length===P.nesting){E.lastIndex=f,h=E.exec(_),f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(v.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(x.length===P.nesting){v.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=x.pop(),k=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":k=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(C&&(I.test(m)||r.test(m))){v.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:A};continue}g=!1;break;default:g=!1}f=Z,m=k,yield{type:"Punctuator",value:A};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,k=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(k="?NonExpressionParenKeyword")}m=k,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(w.lastIndex=f,h=w.exec(_)){f=w.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(E.lastIndex=f,h=E.exec(_)){f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",v.push({tag:"InterpolationInTemplate",nesting:x.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,k=h[0],h[0]){case"<":v.push({tag:"JSXTag"});break;case">":v.pop(),m==="/"||P.tag==="JSXTagEnd"?(k="?JSX",g=!0):v.push({tag:"JSXChildren"});break;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),k="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(v.pop(),v[v.length-1].tag==="JSXChildren"&&v.pop(),v.push({tag:"JSXTagEnd"}))}m=k,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":v.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if($.lastIndex=f,h=$.exec(_)){f=$.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}N=String.fromCodePoint(_.codePointAt(f)),f+=N.length,m=N,g=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:N}}},j}It();var we={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(we.keyword);new Set(we.strict);var Et={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},bt=Object.entries(Et);function q(t){return String(t)}q.open="";q.close="";function $t(t=!1){let e=typeof process<"u"?process:void 0,n=e?.env||{},s=e?.argv||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||e?.platform==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function kt(t=!1){let e=$t(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of bt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):q;return i}kt();const z=/\r?\n/;function Nt(t,e,n){const s=t.split(z),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Pt(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(z),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function Rt(t,e){const n=(await be(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Nt(a,c.line,c.column);Ft(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Ct=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Tt(t,e,n,s){let i=t.slice(n);const r=Ct.exec(i);if(!r)return!1;i=i.slice(r.index);let a=ft(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Ot(t,l),c=`, ${Ie(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Ot(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function Ie(t,e,n){const s=Pt(e,n),r=e.split(z)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
4
+ `).map(e=>St(e)).filter(ye)}function vt(t,e={}){if(!t||dt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?X(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=X(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=X(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let xt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(xt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}function wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j,oe;function It(){if(oe)return j;oe=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,w,E,b,I,$;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,w=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,$=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,I=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),j=function*(_,{jsx:C=!1}={}){var x,N,T,f,m,Q,h,P,Z,k,O,g,A,v;for({length:Q}=_,f=0,m="",v=[{tag:"JS"}],x=[],O=0,g=!1;f<Q;){switch(P=v[v.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(I.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(A=h[0],Z=p.lastIndex,k=A,A){case"(":m==="?NonExpressionParenKeyword"&&v.push({tag:"JSNonExpressionParen",nesting:O}),O++,g=!1;break;case")":O--,g=!0,P.tag==="JSNonExpressionParen"&&O===P.nesting&&(v.pop(),k="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,T=!b.test(m)&&(I.test(m)||r.test(m)),x.push(T),g=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(x.length===P.nesting){E.lastIndex=f,h=E.exec(_),f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(v.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(x.length===P.nesting){v.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=x.pop(),k=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":k=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(C&&(I.test(m)||r.test(m))){v.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:A};continue}g=!1;break;default:g=!1}f=Z,m=k,yield{type:"Punctuator",value:A};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,k=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(k="?NonExpressionParenKeyword")}m=k,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(w.lastIndex=f,h=w.exec(_)){f=w.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(E.lastIndex=f,h=E.exec(_)){f=E.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",v.push({tag:"InterpolationInTemplate",nesting:x.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,k=h[0],h[0]){case"<":v.push({tag:"JSXTag"});break;case">":v.pop(),m==="/"||P.tag==="JSXTagEnd"?(k="?JSX",g=!0):v.push({tag:"JSXChildren"});break;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),k="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(v.pop(),v[v.length-1].tag==="JSXChildren"&&v.pop(),v.push({tag:"JSXTagEnd"}))}m=k,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":v.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":v.push({tag:"InterpolationInJSX",nesting:x.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if($.lastIndex=f,h=$.exec(_)){f=$.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}N=String.fromCodePoint(_.codePointAt(f)),f+=N.length,m=N,g=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:N}}},j}It();var we={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(we.keyword);new Set(we.strict);var Et={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},bt=Object.entries(Et);function q(t){return String(t)}q.open="";q.close="";function $t(t=!1){let e=typeof process<"u"?process:void 0,n=e?.env||{},s=e?.argv||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||e?.platform==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function kt(t=!1){let e=$t(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of bt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):q;return i}kt();const z=/\r?\n/;function Nt(t,e,n){const s=t.split(z),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Pt(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(z),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function Rt(t,e){const n=(await be(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.18/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Nt(a,c.line,c.column);Ft(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Ct=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Tt(t,e,n,s){let i=t.slice(n);const r=Ct.exec(i);if(!r)return!1;i=i.slice(r.index);let a=ft(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Ot(t,l),c=`, ${Ie(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Ot(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function Ie(t,e,n){const s=Pt(e,n),r=e.split(z)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
5
5
  `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
6
6
  ${l.map(d=>d?a+d:"").join(`
7
7
  `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
@@ -0,0 +1 @@
1
+ import g from"../../../color-name@2.0.0/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return g[n]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
@@ -0,0 +1 @@
1
+ import s from"./conversions.js";import f from"./route.js";const c={},l=Object.keys(s);function d(n){const t=function(...o){const e=o[0];return e==null?e:(e.length>1&&(o=e),n(o))};return"conversion"in n&&(t.conversion=n.conversion),t}function a(n){const t=function(...o){const e=o[0];if(e==null)return e;e.length>1&&(o=e);const r=n(o);if(typeof r=="object")for(let{length:u}=r,i=0;i<u;i++)r[i]=Math.round(r[i]);return r};return"conversion"in n&&(t.conversion=n.conversion),t}for(const n of l){c[n]={},Object.defineProperty(c[n],"channels",{value:s[n].channels}),Object.defineProperty(c[n],"labels",{value:s[n].labels});const t=f(n),o=Object.keys(t);for(const e of o){const r=t[e];c[n][e]=a(r),c[n][e].raw=d(r)}}export{c as default};
@@ -0,0 +1 @@
1
+ import i from"./conversions.js";function l(){const t={},n=Object.keys(i);for(let{length:c}=n,e=0;e<c;e++)t[n[e]]={distance:-1,parent:null};return t}function f(t){const n=l(),c=[t];for(n[t].distance=0;c.length>0;){const e=c.pop(),r=Object.keys(i[e]);for(let{length:s}=r,o=0;o<s;o++){const u=r[o],a=n[u];a.distance===-1&&(a.distance=n[e].distance+1,a.parent=e,c.unshift(u))}}return n}function p(t,n){return function(c){return n(t(c))}}function d(t,n){const c=[n[t].parent,t];let e=i[n[t].parent][t],r=n[t].parent;for(;n[r].parent;)c.unshift(n[r].parent),e=p(i[n[r].parent][r],e),r=n[r].parent;return e.conversion=c,e}function j(t){const n=f(t),c={},e=Object.keys(n);for(let{length:r}=e,s=0;s<r;s++){const o=e[s];n[o].parent!==null&&(c[o]=d(o,n))}return c}export{j as default};
@@ -0,0 +1 @@
1
+ const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};export{e as default};
@@ -1 +1 @@
1
- import o from"../../../../../_virtual/index3.js";var h={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function t(e){var u,l=[],i=1,n;if(typeof e=="string")if(o[e])l=o[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),p=a.length,v=p<=4;i=1,v?(l=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],p===4&&(i=parseInt(a[3]+a[3],16)/255)):(l=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],p===8&&(i=parseInt(a[6]+a[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),n="rgb"}else if(u=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var r=u[1],y=r==="rgb",a=r.replace(/a$/,"");n=a;var p=a==="cmyk"?4:a==="gray"?1:3;l=u[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(f,g){if(/%$/.test(f))return g===p?parseFloat(f)/100:a==="rgb"?parseFloat(f)*255/100:parseFloat(f);if(a[g]==="h"){if(/deg$/.test(f))return parseFloat(f);if(h[f]!==void 0)return h[f]}return parseFloat(f)}),r===a&&l.push(1),i=y||l[p]===void 0?1:l[p],l=l.slice(0,p)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(l=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(l=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",l=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",l=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",l=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:l,alpha:i}}export{t as default};
1
+ import o from"../../../../../_virtual/index4.js";var h={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function t(e){var u,l=[],i=1,n;if(typeof e=="string")if(o[e])l=o[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),p=a.length,v=p<=4;i=1,v?(l=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],p===4&&(i=parseInt(a[3]+a[3],16)/255)):(l=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],p===8&&(i=parseInt(a[6]+a[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),n="rgb"}else if(u=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var r=u[1],y=r==="rgb",a=r.replace(/a$/,"");n=a;var p=a==="cmyk"?4:a==="gray"?1:3;l=u[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(f,g){if(/%$/.test(f))return g===p?parseFloat(f)/100:a==="rgb"?parseFloat(f)*255/100:parseFloat(f);if(a[g]==="h"){if(/deg$/.test(f))return parseFloat(f);if(h[f]!==void 0)return h[f]}return parseFloat(f)}),r===a&&l.push(1),i=y||l[p]===void 0?1:l[p],l=l.slice(0,p)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(l=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(l=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",l=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",l=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",l=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:l,alpha:i}}export{t as default};
@@ -0,0 +1 @@
1
+ import f from"../../../color-name@2.0.0/node_modules/color-name/index.js";const b=Object.create(null);for(const t in f)Object.hasOwn(f,t)&&(b[f[t]]=t);const a={to:{},get:{}};a.get=function(t){const o=t.slice(0,3).toLowerCase();let n,u;switch(o){case"hsl":{n=a.get.hsl(t),u="hsl";break}case"hwb":{n=a.get.hwb(t),u="hwb";break}default:{n=a.get.rgb(t),u="rgb";break}}return n?{model:u,value:n}:null};a.get.rgb=function(t){if(!t)return null;const o=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,h=/^(\w+)$/;let s=[0,0,0,1],e,r,l;if(e=t.match(n)){for(l=e[2],e=e[1],r=0;r<3;r++){const i=r*2;s[r]=Number.parseInt(e.slice(i,i+2),16)}l&&(s[3]=Number.parseInt(l,16)/255)}else if(e=t.match(o)){for(e=e[1],l=e[3],r=0;r<3;r++)s[r]=Number.parseInt(e[r]+e[r],16);l&&(s[3]=Number.parseInt(l+l,16)/255)}else if(e=t.match(u)){for(r=0;r<3;r++)s[r]=Number.parseInt(e[r+1],10);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else if(e=t.match(d)){for(r=0;r<3;r++)s[r]=Math.round(Number.parseFloat(e[r+1])*2.55);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else return(e=t.match(h))?e[1]==="transparent"?[0,0,0,0]:Object.hasOwn(f,e[1])?(s=f[e[1]],s[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=c(s[r],0,255);return s[3]=c(s[3],0,1),s};a.get.hsl=function(t){if(!t)return null;const o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.get.hwb=function(t){if(!t)return null;const o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.to.hex=function(...t){return"#"+m(t[0])+m(t[1])+m(t[2])+(t[3]<1?m(Math.round(t[3]*255)):"")};a.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};a.to.rgb.percent=function(...t){const o=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),u=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+o+"%, "+n+"%, "+u+"%)":"rgba("+o+"%, "+n+"%, "+u+"%, "+t[3]+")"};a.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};a.to.hwb=function(...t){let o="";return t.length>=4&&t[3]!==1&&(o=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+o+")"};a.to.keyword=function(...t){return b[t.slice(0,3)]};function c(t,o,n){return Math.min(Math.max(o,t),n)}function m(t){const o=Math.round(t).toString(16).toUpperCase();return o.length<2?"0"+o:o}export{a as default};
@@ -0,0 +1 @@
1
+ import f from"../../../color-string@2.0.1/node_modules/color-string/index.js";import l from"../../../color-convert@3.1.0/node_modules/color-convert/index.js";const m=["keyword","gray","hex"],g={};for(const t of Object.keys(l))g[[...l[t].labels].sort().join("")]=t;const b={};function i(t,r){if(!(this instanceof i))return new i(t,r);if(r&&r in m&&(r=null),r&&!(r in l))throw new Error("Unknown model: "+r);let o,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof i)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const s=f.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,n=l[this.model].channels,this.color=s.value.slice(0,n),this.valpha=typeof s.value[n]=="number"?s.value[n]:1}else if(t.length>0){this.model=r||"rgb",n=l[this.model].channels;const s=Array.prototype.slice.call(t,0,n);this.color=y(s,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const a=s.sort().join("");if(!(a in g))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=g[a];const{labels:u}=l[this.model],c=[];for(o=0;o<u.length;o++)c.push(t[u[o]]);this.color=y(c)}if(b[this.model])for(n=l[this.model].channels,o=0;o<n;o++){const s=b[this.model][o];s&&(this.color[o]=s(this.color[o]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}i.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let r=this.model in f.to?this:this.rgb();r=r.round(typeof t=="number"?t:1);const o=r.valpha===1?r.color:[...r.color,this.valpha];return f.to[r.model](...o)},percentString(t){const r=this.rgb().round(typeof t=="number"?t:1),o=r.valpha===1?r.color:[...r.color,this.valpha];return f.to.rgb.percent(...o)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:r}=l[this.model],{labels:o}=l[this.model];for(let n=0;n<r;n++)t[o[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new i([...this.color.map(w(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new i([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:e("rgb",0,h(255)),green:e("rgb",1,h(255)),blue:e("rgb",2,h(255)),hue:e(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:e("hsl",1,h(100)),lightness:e("hsl",2,h(100)),saturationv:e("hsv",1,h(100)),value:e("hsv",2,h(100)),chroma:e("hcg",1,h(100)),gray:e("hcg",2,h(100)),white:e("hwb",1,h(100)),wblack:e("hwb",2,h(100)),cyan:e("cmyk",0,h(100)),magenta:e("cmyk",1,h(100)),yellow:e("cmyk",2,h(100)),black:e("cmyk",3,h(100)),x:e("xyz",0,h(95.047)),y:e("xyz",1,h(100)),z:e("xyz",2,h(108.833)),l:e("lab",0,h(100)),a:e("lab",1),b:e("lab",2),keyword(t){return t!==void 0?new i(t):l[this.model].keyword(this.color)},hex(t){return t!==void 0?new i(t):f.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new i(t);const r=this.rgb().round().color;let o=Math.round(this.valpha*255).toString(16).toUpperCase();return o.length===1&&(o="0"+o),f.to.hex(...r)+o},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,r=[];for(const[o,n]of t.entries()){const s=n/255;r[o]=s<=.04045?s/12.92:((s+.055)/1.055)**2.4}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),o=t.luminosity();return r>o?(r+.05)/(o+.05):(o+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=t[0]*.3+t[1]*.59+t[2]*.11;return i.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let o=r.color[0];return o=(o+t)%360,o=o<0?360+o:o,r.color[0]=o,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const o=t.rgb(),n=this.rgb(),s=r===void 0?.5:r,a=2*s-1,u=o.alpha()-n.alpha(),c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2,p=1-c;return i.rgb(c*o.red()+p*n.red(),c*o.green()+p*n.green(),c*o.blue()+p*n.blue(),o.alpha()*s+n.alpha()*(1-s))}};for(const t of Object.keys(l)){if(m.includes(t))continue;const{channels:r}=l[t];i.prototype[t]=function(...o){return this.model===t?new i(this):o.length>0?new i(o,t):new i([...v(l[this.model][t].raw(this.color)),this.valpha],t)},i[t]=function(...o){let n=o[0];return typeof n=="number"&&(n=y(o,r)),new i(n,t)}}function d(t,r){return Number(t.toFixed(r))}function w(t){return function(r){return d(r,t)}}function e(t,r,o){t=Array.isArray(t)?t:[t];for(const n of t)(b[n]||=[])[r]=o;return t=t[0],function(n){let s;return n!==void 0?(o&&(n=o(n)),s=this[t](),s.color[r]=n,s):(s=this[t]().color[r],o&&(s=o(s)),s)}}function h(t){return function(r){return Math.max(0,Math.min(t,r))}}function v(t){return Array.isArray(t)?t:[t]}function y(t,r){for(let o=0;o<r;o++)typeof t[o]!="number"&&(t[o]=0);return t}export{i as default};