@purpurds/tooltip 8.4.0 → 8.5.1

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.
@@ -2,11 +2,11 @@
2
2
  {"kind":"O","text":"\n"}
3
3
  {"kind":"O","text":"\u001b[1m\u001b[46m RUN \u001b[49m\u001b[22m \u001b[36mv3.2.4 \u001b[39m\u001b[90m/opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/tooltip\u001b[39m\n"}
4
4
  {"kind":"O","text":"\n"}
5
- {"kind":"O","text":" \u001b[32m✓\u001b[39m src/tooltip.test.tsx \u001b[2m(\u001b[22m\u001b[2m9 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[33m 660\u001b[2mms\u001b[22m\u001b[39m\n"}
6
- {"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m 490\u001b[2mms\u001b[22m\u001b[39m\n"}
5
+ {"kind":"O","text":" \u001b[32m✓\u001b[39m src/tooltip.test.tsx \u001b[2m(\u001b[22m\u001b[2m9 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[33m 713\u001b[2mms\u001b[22m\u001b[39m\n"}
6
+ {"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m 519\u001b[2mms\u001b[22m\u001b[39m\n"}
7
7
  {"kind":"O","text":"\n"}
8
8
  {"kind":"O","text":"\u001b[2m Test Files \u001b[22m \u001b[1m\u001b[32m1 passed\u001b[39m\u001b[22m\u001b[90m (1)\u001b[39m\n"}
9
9
  {"kind":"O","text":"\u001b[2m Tests \u001b[22m \u001b[1m\u001b[32m9 passed\u001b[39m\u001b[22m\u001b[90m (9)\u001b[39m\n"}
10
- {"kind":"O","text":"\u001b[2m Start at \u001b[22m 19:09:00\n"}
11
- {"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.78s\u001b[2m (transform 273ms, setup 0ms, collect 496ms, tests 660ms, environment 265ms, prepare 86ms)\u001b[22m\n"}
10
+ {"kind":"O","text":"\u001b[2m Start at \u001b[22m 12:02:24\n"}
11
+ {"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.98s\u001b[2m (transform 312ms, setup 0ms, collect 541ms, tests 713ms, environment 302ms, prepare 100ms)\u001b[22m\n"}
12
12
  {"kind":"O","text":"\n"}
@@ -1,5 +1,5 @@
1
- Start time: Thu Oct 16 2025 19:08:36 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/tooltip/89c6154691d3a5ae298caeaa47dc130420d4e282"
1
+ Start time: Wed Oct 22 2025 12:02:00 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/tooltip/fe3d66a66caff60bec768486d5c2e66777891960"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
 
@@ -12,9 +12,9 @@ rendering chunks...
12
12
  [vite:dts] Start generate declaration files...
13
13
  computing gzip size...
14
14
  dist/styles.css 1.78 kB │ gzip: 0.49 kB
15
- dist/tooltip.cjs.js 58.03 kB │ gzip: 20.02 kB │ map: 269.35 kB
16
- [vite:dts] Declaration files built in 2246ms.
15
+ dist/tooltip.cjs.js 58.16 kB │ gzip: 20.06 kB │ map: 269.58 kB
16
+ [vite:dts] Declaration files built in 2272ms.
17
17
 
18
18
  dist/styles.css 1.78 kB │ gzip: 0.49 kB
19
- dist/tooltip.es.js 84.88 kB │ gzip: 24.15 kB │ map: 278.04 kB
20
- ✓ built in 3.66s
19
+ dist/tooltip.es.js 85.04 kB │ gzip: 24.19 kB │ map: 278.29 kB
20
+ ✓ built in 3.72s
@@ -12,9 +12,9 @@
12
12
  {"kind":"O","text":"\u001b[36m[vite:dts]\u001b[32m Start generate declaration files...\u001b[39m\n"}
13
13
  {"kind":"O","text":"computing gzip size...\n"}
14
14
  {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 1.78 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.49 kB\u001b[22m\n"}
15
- {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.cjs.js \u001b[39m\u001b[1m\u001b[2m58.03 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 20.02 kB\u001b[22m\u001b[2m │ map: 269.35 kB\u001b[22m\n"}
16
- {"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 2246ms.\n"}
15
+ {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.cjs.js \u001b[39m\u001b[1m\u001b[2m58.16 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 20.06 kB\u001b[22m\u001b[2m │ map: 269.58 kB\u001b[22m\n"}
16
+ {"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 2272ms.\n"}
17
17
  {"kind":"O","text":"\u001b[39m\n"}
18
18
  {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[35mstyles.css \u001b[39m\u001b[1m\u001b[2m 1.78 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 0.49 kB\u001b[22m\n"}
19
- {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.es.js \u001b[39m\u001b[1m\u001b[2m84.88 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 24.15 kB\u001b[22m\u001b[2m │ map: 278.04 kB\u001b[22m\n"}
20
- {"kind":"O","text":"\u001b[32m✓ built in 3.66s\u001b[39m\n"}
19
+ {"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.es.js \u001b[39m\u001b[1m\u001b[2m85.04 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 24.19 kB\u001b[22m\u001b[2m │ map: 278.29 kB\u001b[22m\n"}
20
+ {"kind":"O","text":"\u001b[32m✓ built in 3.72s\u001b[39m\n"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 5645.279676000002
2
+ "nonCachedDurationMs": 5584.290283000002
3
3
  }
@@ -2,11 +2,11 @@ Invoking: vitest run --passWithNoTests
2
2
 
3
3
  RUN v3.2.4 /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/tooltip
4
4
 
5
- ✓ src/tooltip.test.tsx (9 tests) 660ms
6
- ✓ Tooltip > should open on hover 490ms
5
+ ✓ src/tooltip.test.tsx (9 tests) 713ms
6
+ ✓ Tooltip > should open on hover 519ms
7
7
 
8
8
  Test Files 1 passed (1)
9
9
  Tests 9 passed (9)
10
- Start at 19:09:00
11
- Duration 1.78s (transform 273ms, setup 0ms, collect 496ms, tests 660ms, environment 265ms, prepare 86ms)
10
+ Start at 12:02:24
11
+ Duration 1.98s (transform 312ms, setup 0ms, collect 541ms, tests 713ms, environment 302ms, prepare 100ms)
12
12
 
@@ -2,11 +2,11 @@
2
2
  {"kind":"O","text":"\n"}
3
3
  {"kind":"O","text":"\u001b[1m\u001b[46m RUN \u001b[49m\u001b[22m \u001b[36mv3.2.4 \u001b[39m\u001b[90m/opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/tooltip\u001b[39m\n"}
4
4
  {"kind":"O","text":"\n"}
5
- {"kind":"O","text":" \u001b[32m✓\u001b[39m src/tooltip.test.tsx \u001b[2m(\u001b[22m\u001b[2m9 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[33m 660\u001b[2mms\u001b[22m\u001b[39m\n"}
6
- {"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m 490\u001b[2mms\u001b[22m\u001b[39m\n"}
5
+ {"kind":"O","text":" \u001b[32m✓\u001b[39m src/tooltip.test.tsx \u001b[2m(\u001b[22m\u001b[2m9 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[33m 713\u001b[2mms\u001b[22m\u001b[39m\n"}
6
+ {"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m 519\u001b[2mms\u001b[22m\u001b[39m\n"}
7
7
  {"kind":"O","text":"\n"}
8
8
  {"kind":"O","text":"\u001b[2m Test Files \u001b[22m \u001b[1m\u001b[32m1 passed\u001b[39m\u001b[22m\u001b[90m (1)\u001b[39m\n"}
9
9
  {"kind":"O","text":"\u001b[2m Tests \u001b[22m \u001b[1m\u001b[32m9 passed\u001b[39m\u001b[22m\u001b[90m (9)\u001b[39m\n"}
10
- {"kind":"O","text":"\u001b[2m Start at \u001b[22m 19:09:00\n"}
11
- {"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.78s\u001b[2m (transform 273ms, setup 0ms, collect 496ms, tests 660ms, environment 265ms, prepare 86ms)\u001b[22m\n"}
10
+ {"kind":"O","text":"\u001b[2m Start at \u001b[22m 12:02:24\n"}
11
+ {"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.98s\u001b[2m (transform 312ms, setup 0ms, collect 541ms, tests 713ms, environment 302ms, prepare 100ms)\u001b[22m\n"}
12
12
  {"kind":"O","text":"\n"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 2995.130253
2
+ "nonCachedDurationMs": 3260.7887060000003
3
3
  }
package/dist/LICENSE.txt CHANGED
@@ -1,26 +1,26 @@
1
1
  Name: @purpurds/button
2
- Version: 8.3.1
2
+ Version: 8.5.0
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/icon
9
- Version: 8.3.1
9
+ Version: 8.5.0
10
10
  License: AGPL-3.0-only
11
11
  Private: false
12
12
 
13
13
  ---
14
14
 
15
15
  Name: @purpurds/paragraph
16
- Version: 8.3.1
16
+ Version: 8.5.0
17
17
  License: AGPL-3.0-only
18
18
  Private: false
19
19
 
20
20
  ---
21
21
 
22
22
  Name: @purpurds/tokens
23
- Version: 8.3.1
23
+ Version: 8.5.0
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
@@ -1,22 +1,22 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),oe=require("react"),Dt=require("react-dom");function Mt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Mt(oe),$t=Mt(Dt),Bn={LG:"lg"};function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),oe=require("react"),Mt=require("react-dom");function $t(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=$t(oe),kt=$t(Mt),zn={LG:"lg"};function Vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var ut;function zn(){return ut||(ut=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lt)),lt.exports}var Vn=zn();const Un=Hn(Vn),qn="_rotate_12t9p_1",Yn="_dash_12t9p_1",Gn={"purpur-spinner":"_purpur-spinner_12t9p_2",rotate:qn,"purpur-spinner--xxs":"_purpur-spinner--xxs_12t9p_6","purpur-spinner--xs":"_purpur-spinner--xs_12t9p_10","purpur-spinner--sm":"_purpur-spinner--sm_12t9p_14","purpur-spinner--md":"_purpur-spinner--md_12t9p_18","purpur-spinner--lg":"_purpur-spinner--lg_12t9p_22","purpur-spinner__circle":"_purpur-spinner__circle_12t9p_26",dash:Yn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_12t9p_41","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_12t9p_44"},ft=Un.bind(Gn),pe="purpur-spinner",Xn={SM:"sm"},Zn=({disabled:e=!1,negative:t=!1,size:n=Xn.SM,...o})=>w.jsx("div",{className:ft(pe,`${pe}--${n}`),...o,children:w.jsx("svg",{viewBox:"0 0 50 50",children:w.jsx("circle",{className:ft(`${pe}__circle`,{[`${pe}__circle--disabled`]:e,[`${pe}__circle--negative`]:t}),cx:"25",cy:"25",r:"20"})})});function Kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}};/*!
5
+ */var ut;function Un(){return ut||(ut=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lt)),lt.exports}var qn=Un();const Yn=Vn(qn),Gn="_rotate_12t9p_1",Xn="_dash_12t9p_1",Zn={"purpur-spinner":"_purpur-spinner_12t9p_2",rotate:Gn,"purpur-spinner--xxs":"_purpur-spinner--xxs_12t9p_6","purpur-spinner--xs":"_purpur-spinner--xs_12t9p_10","purpur-spinner--sm":"_purpur-spinner--sm_12t9p_14","purpur-spinner--md":"_purpur-spinner--md_12t9p_18","purpur-spinner--lg":"_purpur-spinner--lg_12t9p_22","purpur-spinner__circle":"_purpur-spinner__circle_12t9p_26",dash:Xn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_12t9p_41","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_12t9p_44"},ft=Yn.bind(Zn),pe="purpur-spinner",Kn={SM:"sm"},Ft=({disabled:e=!1,negative:t=!1,size:n=Kn.SM,className:o,...i})=>w.jsx("div",{className:ft(pe,`${pe}--${n}`,o),...i,children:w.jsx("svg",{viewBox:"0 0 50 50",children:w.jsx("circle",{className:ft(`${pe}__circle`,{[`${pe}__circle--disabled`]:e,[`${pe}__circle--negative`]:t}),cx:"25",cy:"25",r:"20"})})});Ft.displayName="Spinner";function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}};/*!
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */var dt;function Jn(){return dt||(dt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pt)),pt.exports}var Qn=Jn();const er=Kn(Qn),tr={"purpur-button":"_purpur-button_cjx7j_1","purpur-button--xs":"_purpur-button--xs_cjx7j_22","purpur-button--icon-only":"_purpur-button--icon-only_cjx7j_25","purpur-button--sm":"_purpur-button--sm_cjx7j_28","purpur-button--md":"_purpur-button--md_cjx7j_34","purpur-button--lg":"_purpur-button--lg_cjx7j_40","purpur-button--full-width":"_purpur-button--full-width_cjx7j_46","purpur-button--primary":"_purpur-button--primary_cjx7j_64","purpur-button--disabled":"_purpur-button--disabled_cjx7j_68","purpur-button--primary-negative":"_purpur-button--primary-negative_cjx7j_74","purpur-button--secondary":"_purpur-button--secondary_cjx7j_86","purpur-button--secondary-negative":"_purpur-button--secondary-negative_cjx7j_97","purpur-button--expressive":"_purpur-button--expressive_cjx7j_108","purpur-button--expressive-negative":"_purpur-button--expressive-negative_cjx7j_118","purpur-button--negative":"_purpur-button--negative_cjx7j_130","purpur-button--destructive":"_purpur-button--destructive_cjx7j_137","purpur-button--destructive-negative":"_purpur-button--destructive-negative_cjx7j_147","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_cjx7j_157","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_cjx7j_170","purpur-button--text-negative":"_purpur-button--text-negative_cjx7j_185","purpur-button--text":"_purpur-button--text_cjx7j_185"},nr={TERTIARY_PURPLE:"tertiary-purple"},rr=er.bind(tr),Q="purpur-button",kt=oe.forwardRef(({children:e,className:t,disabled:n=!1,fullWidth:o=!1,iconOnly:i,loading:r=!1,negative:s=!1,onClick:a,size:l="md",variant:c,type:u="button",...p},h)=>{if(i&&c==="destructive")return null;const d=rr([Q,`${Q}--${s?`${c}-negative`:c}`,`${Q}--${l}`],{[`${Q}--icon-only`]:i,[`${Q}--negative`]:s,[`${Q}--full-width`]:o,[`${Q}--disabled`]:n||r},t),m=v=>{n||r?v.preventDefault():a&&a(v)},g=!!p["aria-disabled"]||n||r;return w.jsxs("button",{className:d,type:u,ref:h,"aria-disabled":g,onClick:m,...p,children:[r&&w.jsx(Zn,{size:l===Bn.LG?"xs":"xxs",negative:s,disabled:g})," ",e]})});kt.displayName="Button";function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ht={exports:{}};/*!
9
+ */var dt;function Qn(){return dt||(dt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pt)),pt.exports}var er=Qn();const tr=Jn(er),nr={"purpur-button":"_purpur-button_10jh0_1","purpur-button--xs":"_purpur-button--xs_10jh0_22","purpur-button--icon-only":"_purpur-button--icon-only_10jh0_25","purpur-button--sm":"_purpur-button--sm_10jh0_28","purpur-button--md":"_purpur-button--md_10jh0_34","purpur-button--lg":"_purpur-button--lg_10jh0_40","purpur-button--full-width":"_purpur-button--full-width_10jh0_46","purpur-button--primary":"_purpur-button--primary_10jh0_64","purpur-button--disabled":"_purpur-button--disabled_10jh0_68","purpur-button--primary-negative":"_purpur-button--primary-negative_10jh0_74","purpur-button--secondary":"_purpur-button--secondary_10jh0_86","purpur-button--secondary-negative":"_purpur-button--secondary-negative_10jh0_97","purpur-button--expressive":"_purpur-button--expressive_10jh0_108","purpur-button--expressive-negative":"_purpur-button--expressive-negative_10jh0_118","purpur-button--negative":"_purpur-button--negative_10jh0_130","purpur-button--destructive":"_purpur-button--destructive_10jh0_137","purpur-button--destructive-negative":"_purpur-button--destructive-negative_10jh0_147","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_10jh0_157","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_10jh0_170","purpur-button--text-negative":"_purpur-button--text-negative_10jh0_185","purpur-button--text":"_purpur-button--text_10jh0_185","purpur-button__spinner":"_purpur-button__spinner_10jh0_235"},rr={TERTIARY_PURPLE:"tertiary-purple"},ht=tr.bind(nr),Z="purpur-button",It=oe.forwardRef(({children:e,className:t,disabled:n=!1,fullWidth:o=!1,iconOnly:i,loading:r=!1,negative:s=!1,onClick:a,size:l="md",variant:c,type:u="button",...p},h)=>{if(i&&c==="destructive")return null;const d=ht([Z,`${Z}--${s?`${c}-negative`:c}`,`${Z}--${l}`],{[`${Z}--icon-only`]:i,[`${Z}--negative`]:s,[`${Z}--full-width`]:o,[`${Z}--disabled`]:n||r},t),m=v=>{n||r?v.preventDefault():a&&a(v)},g=!!p["aria-disabled"]||n||r;return w.jsxs("button",{className:d,type:u,ref:h,"aria-disabled":g,onClick:m,...p,children:[r&&w.jsx(Ft,{size:l===zn.LG?"xs":"xxs",negative:s,disabled:g,className:ht(`${Z}__spinner`)})," ",e]})});It.displayName="Button";function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mt={exports:{}};/*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */var mt;function ir(){return mt||(mt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ht)),ht.exports}var sr=ir();const ar=or(sr),cr={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},lr=ar.bind(cr),gt="purpur-icon",ur="md",fr=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),pr=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=t?`<title>${t}</title>`:"";return`<svg ${fr(n)}>${o}${e}</svg>`},dr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Ft=({svg:e,allyTitle:t,className:n,size:o=ur,...i})=>{const r=pr({content:dr(e.svg),title:t}),s=lr(n,gt,`${gt}--${o}`);return w.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:r},...i})};Ft.displayName="Icon";const hr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},It=e=>w.jsx(Ft,{...e,svg:hr});It.displayName="IconInfo";function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vt={exports:{}};/*!
13
+ */var gt;function ir(){return gt||(gt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mt)),mt.exports}var sr=ir();const ar=or(sr),cr={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},lr=ar.bind(cr),vt="purpur-icon",ur="md",fr=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),pr=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=t?`<title>${t}</title>`:"";return`<svg ${fr(n)}>${o}${e}</svg>`},dr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Wt=({svg:e,allyTitle:t,className:n,size:o=ur,...i})=>{const r=pr({content:dr(e.svg),title:t}),s=lr(vt,`${vt}--${o}`,n);return w.jsx("span",{className:s,dangerouslySetInnerHTML:{__html:r},...i})};Wt.displayName="Icon";const hr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},Bt=e=>w.jsx(Wt,{...e,svg:hr});Bt.displayName="IconInfo";function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yt={exports:{}};/*!
14
14
  Copyright (c) 2018 Jed Watson.
15
15
  Licensed under the MIT License (MIT), see
16
16
  http://jedwatson.github.io/classnames
17
- */var yt;function gr(){return yt||(yt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vt)),vt.exports}var vr=gr();const yr=mr(vr),xr={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},wr=yr.bind(xr),Wt={PARAGRAPH100:"paragraph-100"},de="purpur-paragraph",Bt=({children:e,className:t,disabled:n,enableHyphenation:o=!1,negative:i=!1,variant:r=Wt.PARAGRAPH100,...s})=>{const a=wr(t,de,`${de}--${r}`,{[`${de}--hyphens`]:o,[`${de}--disabled`]:n,[`${de}--negative`]:i});return w.jsx("p",{...s,className:a,children:e})};Bt.displayName="Paragraph";const br="400ms";function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function xt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ht(...e){return t=>{let n=!1;const o=e.map(i=>{const r=xt(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<o.length;i++){const r=o[i];typeof r=="function"?r():xt(e[i],null)}}}}function ne(...e){return f.useCallback(Ht(...e),e)}function zt(e,t=[]){let n=[];function o(r,s){const a=f.createContext(s),l=n.length;n=[...n,s];const c=p=>{var y;const{scope:h,children:d,...m}=p,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,v=f.useMemo(()=>m,Object.values(m));return w.jsx(g.Provider,{value:v,children:d})};c.displayName=r+"Provider";function u(p,h){var g;const d=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,m=f.useContext(d);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[c,u]}const i=()=>{const r=n.map(s=>f.createContext(s));return function(a){const l=(a==null?void 0:a[e])||r;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[o,_r(i,...t)]}function _r(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const s=o.reduce((a,{useScope:l,scopeName:c})=>{const p=l(r)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Vt=f.forwardRef((e,t)=>{const{children:n,...o}=e,i=f.Children.toArray(n),r=i.find(Ar);if(r){const s=r.props.children,a=i.map(l=>l===r?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return w.jsx(Fe,{...o,ref:t,children:f.isValidElement(s)?f.cloneElement(s,void 0,a):null})}return w.jsx(Fe,{...o,ref:t,children:n})});Vt.displayName="Slot";var Fe=f.forwardRef((e,t)=>{const{children:n,...o}=e;if(f.isValidElement(n)){const i=Cr(n),r=Pr(o,n.props);return n.type!==f.Fragment&&(r.ref=t?Ht(t,i):i),f.cloneElement(n,r)}return f.Children.count(n)>1?f.Children.only(null):null});Fe.displayName="SlotClone";var Ut=({children:e})=>w.jsx(w.Fragment,{children:e});function Ar(e){return f.isValidElement(e)&&e.type===Ut}function Pr(e,t){const n={...t};for(const o in t){const i=e[o],r=t[o];/^on[A-Z]/.test(o)?i&&r?n[o]=(...a)=>{r(...a),i(...a)}:i&&(n[o]=i):o==="style"?n[o]={...i,...r}:o==="className"&&(n[o]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}function Cr(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Or=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],J=Or.reduce((e,t)=>{const n=f.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Vt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rr(e,t){e&&$t.flushSync(()=>e.dispatchEvent(t))}function ce(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Er(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e);f.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Sr="DismissableLayer",Ie="dismissableLayer.update",Tr="dismissableLayer.pointerDownOutside",jr="dismissableLayer.focusOutside",wt,qt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:r,onInteractOutside:s,onDismiss:a,...l}=e,c=f.useContext(qt),[u,p]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=f.useState({}),m=ne(t,_=>p(_)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=u?g.indexOf(u):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,b=x>=y,A=Dr(_=>{const R=_.target,L=[...c.branches].some(E=>E.contains(R));!b||L||(i==null||i(_),s==null||s(_),_.defaultPrevented||a==null||a())},h),C=Mr(_=>{const R=_.target;[...c.branches].some(E=>E.contains(R))||(r==null||r(_),s==null||s(_),_.defaultPrevented||a==null||a())},h);return Er(_=>{x===c.layers.size-1&&(o==null||o(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(wt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bt(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=wt)}},[u,h,n,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bt())},[u,c]),f.useEffect(()=>{const _=()=>d({});return document.addEventListener(Ie,_),()=>document.removeEventListener(Ie,_)},[]),w.jsx(J.div,{...l,ref:m,style:{pointerEvents:P?b?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,A.onPointerDownCapture)})});Yt.displayName=Sr;var Nr="DismissableLayerBranch",Lr=f.forwardRef((e,t)=>{const n=f.useContext(qt),o=f.useRef(null),i=ne(t,o);return f.useEffect(()=>{const r=o.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),w.jsx(J.div,{...e,ref:i})});Lr.displayName=Nr;function Dr(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let l=function(){Gt(Tr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Mr(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=f.useRef(!1);return f.useEffect(()=>{const i=r=>{r.target&&!o.current&&Gt(jr,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function bt(){const e=new CustomEvent(Ie);document.dispatchEvent(e)}function Gt(e,t,n,{discrete:o}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?Rr(i,r):i.dispatchEvent(r)}var ee=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},$r=f.useId||(()=>{}),kr=0;function Fr(e){const[t,n]=f.useState($r());return ee(()=>{n(o=>o??String(kr++))},[e]),t?`radix-${t}`:""}const Ir=["top","right","bottom","left"],Z=Math.min,F=Math.max,Ae=Math.round,we=Math.floor,V=e=>({x:e,y:e}),Wr={left:"right",right:"left",bottom:"top",top:"bottom"},Br={start:"end",end:"start"};function We(e,t,n){return F(e,Z(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function X(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function qe(e){return e==="y"?"height":"width"}const Hr=new Set(["top","bottom"]);function z(e){return Hr.has(X(e))?"y":"x"}function Ye(e){return Ue(z(e))}function zr(e,t,n){n===void 0&&(n=!1);const o=le(e),i=Ye(e),r=qe(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Pe(s)),[s,Pe(s)]}function Vr(e){const t=Pe(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>Br[t])}const _t=["left","right"],At=["right","left"],Ur=["top","bottom"],qr=["bottom","top"];function Yr(e,t,n){switch(e){case"top":case"bottom":return n?t?At:_t:t?_t:At;case"left":case"right":return t?Ur:qr;default:return[]}}function Gr(e,t,n,o){const i=le(e);let r=Yr(X(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Be)))),r}function Pe(e){return e.replace(/left|right|bottom|top/g,t=>Wr[t])}function Xr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xt(e){return typeof e!="number"?Xr(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function Pt(e,t,n){let{reference:o,floating:i}=e;const r=z(t),s=Ye(t),a=qe(s),l=X(t),c=r==="y",u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let d;switch(l){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:p};break;case"left":d={x:o.x-i.width,y:p};break;default:d={x:o.x,y:o.y}}switch(le(t)){case"start":d[s]-=h*(n&&c?-1:1);break;case"end":d[s]+=h*(n&&c?-1:1);break}return d}const Zr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=Pt(c,o,l),h=o,d={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x,y:P,data:b,reset:A}=await y({x:u,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,p=P??p,d={...d,[v]:{...d[v],...b}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(c=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:u,y:p}=Pt(c,h,l)),g=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:d}};async function he(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=G(t,e),m=Xt(d),v=a[h?p==="floating"?"reference":"floating":p],y=Ce(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=p==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(P))?await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1}:{x:1,y:1},A=Ce(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:l}):x);return{top:(y.top-A.top+m.top)/b.y,bottom:(A.bottom-y.bottom+m.bottom)/b.y,left:(y.left-A.left+m.left)/b.x,right:(A.right-y.right+m.right)/b.x}}const Kr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=G(e,t)||{};if(c==null)return{};const p=Xt(u),h={x:n,y:o},d=Ye(i),m=qe(d),g=await s.getDimensions(c),v=d==="y",y=v?"top":"left",x=v?"bottom":"right",P=v?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[d]-h[d]-r.floating[m],A=h[d]-r.reference[d],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=C?C[P]:0;(!_||!await(s.isElement==null?void 0:s.isElement(C)))&&(_=a.floating[P]||r.floating[m]);const R=b/2-A/2,L=_/2-g[m]/2-1,E=Z(p[y],L),M=Z(p[x],L),$=E,T=_-g[m]-M,S=_/2-g[m]/2+R,k=We($,S,T),j=!l.arrow&&le(i)!=null&&S!==k&&r.reference[m]/2-(S<$?E:M)-g[m]/2<0,N=j?S<$?S-$:S-T:0;return{[d]:h[d]+N,data:{[d]:k,centerOffset:S-k-N,...j&&{alignmentOffset:N}},reset:j}}}),Jr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=G(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=X(i),x=z(a),P=X(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=h||(P||!g?[Pe(a)]:Vr(a)),C=m!=="none";!h&&C&&A.push(...Gr(a,g,m,b));const _=[a,...A],R=await he(t,v),L=[];let E=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&L.push(R[y]),p){const S=zr(i,s,b);L.push(R[S[0]],R[S[1]])}if(E=[...E,{placement:i,overflows:L}],!L.every(S=>S<=0)){var M,$;const S=(((M=r.flip)==null?void 0:M.index)||0)+1,k=_[S];if(k&&(!(p==="alignment"?x!==z(k):!1)||E.every(O=>z(O.placement)===x?O.overflows[0]>0:!0)))return{data:{index:S,overflows:E},reset:{placement:k}};let j=($=E.filter(N=>N.overflows[0]<=0).sort((N,O)=>N.overflows[1]-O.overflows[1])[0])==null?void 0:$.placement;if(!j)switch(d){case"bestFit":{var T;const N=(T=E.filter(O=>{if(C){const D=z(O.placement);return D===x||D==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(D=>D>0).reduce((D,H)=>D+H,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:T[0];N&&(j=N);break}case"initialPlacement":j=a;break}if(i!==j)return{reset:{placement:j}}}return{}}}};function Ct(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ot(e){return Ir.some(t=>e[t]>=0)}const Qr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=G(e,t);switch(o){case"referenceHidden":{const r=await he(t,{...i,elementContext:"reference"}),s=Ct(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ot(s)}}}case"escaped":{const r=await he(t,{...i,altBoundary:!0}),s=Ct(r,n.floating);return{data:{escapedOffsets:s,escaped:Ot(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function eo(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=X(n),a=le(n),l=z(n)==="y",c=Zt.has(s)?-1:1,u=r&&l?-1:1,p=G(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const to=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=t,l=await eo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},no=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=G(e,t),c={x:n,y:o},u=await he(t,l),p=z(X(i)),h=Ue(p);let d=c[h],m=c[p];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=d+u[v],P=d-u[y];d=We(x,d,P)}if(s){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=m+u[v],P=m-u[y];m=We(x,m,P)}const g=a.fn({...t,[h]:d,[p]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:r,[p]:s}}}}}},ro=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=G(e,t),u={x:n,y:o},p=z(i),h=Ue(p);let d=u[h],m=u[p];const g=G(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const P=h==="y"?"height":"width",b=r.reference[h]-r.floating[P]+v.mainAxis,A=r.reference[h]+r.reference[P]-v.mainAxis;d<b?d=b:d>A&&(d=A)}if(c){var y,x;const P=h==="y"?"width":"height",b=Zt.has(X(i)),A=r.reference[p]-r.floating[P]+(b&&((y=s.offset)==null?void 0:y[p])||0)+(b?0:v.crossAxis),C=r.reference[p]+r.reference[P]+(b?0:((x=s.offset)==null?void 0:x[p])||0)-(b?v.crossAxis:0);m<A?m=A:m>C&&(m=C)}return{[h]:d,[p]:m}}}},oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...c}=G(e,t),u=await he(t,c),p=X(i),h=le(i),d=z(i)==="y",{width:m,height:g}=r.floating;let v,y;p==="top"||p==="bottom"?(v=p,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,v=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,P=m-u.left-u.right,b=Z(g-u[v],x),A=Z(m-u[y],P),C=!t.middlewareData.shift;let _=b,R=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=x),C&&!h){const E=F(u.left,0),M=F(u.right,0),$=F(u.top,0),T=F(u.bottom,0);d?R=m-2*(E!==0||M!==0?E+M:F(u.left,u.right)):_=g-2*($!==0||T!==0?$+T:F(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:_});const L=await s.getDimensions(a.floating);return m!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function ue(e){return Kt(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Kt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kt(e){return Re()?e instanceof Node||e instanceof I(e).Node:!1}function W(e){return Re()?e instanceof Element||e instanceof I(e).Element:!1}function U(e){return Re()?e instanceof HTMLElement||e instanceof I(e).HTMLElement:!1}function Rt(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}const io=new Set(["inline","contents"]);function ge(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!io.has(i)}const so=new Set(["table","td","th"]);function ao(e){return so.has(ue(e))}const co=[":popover-open",":modal"];function Ee(e){return co.some(t=>{try{return e.matches(t)}catch{return!1}})}const lo=["transform","translate","scale","rotate","perspective"],uo=["transform","translate","scale","rotate","perspective","filter"],fo=["paint","layout","strict","content"];function Ge(e){const t=Xe(),n=W(e)?B(e):e;return lo.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uo.some(o=>(n.willChange||"").includes(o))||fo.some(o=>(n.contain||"").includes(o))}function po(e){let t=K(e);for(;U(t)&&!se(t);){if(Ge(t))return t;if(Ee(t))return null;t=K(t)}return null}function Xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ho=new Set(["html","body","#document"]);function se(e){return ho.has(ue(e))}function B(e){return I(e).getComputedStyle(e)}function Se(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rt(e)&&e.host||q(e);return Rt(t)?t.host:t}function Jt(e){const t=K(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&ge(t)?t:Jt(t)}function me(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Jt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=I(i);if(r){const a=He(s);return t.concat(s,s.visualViewport||[],ge(i)?i:[],a&&n?me(a):[])}return t.concat(i,me(i,[],n))}function He(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qt(e){const t=B(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=U(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=Ae(n)!==r||Ae(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Ze(e){return W(e)?e:e.contextElement}function ie(e){const t=Ze(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Qt(t);let s=(r?Ae(n.width):n.width)/o,a=(r?Ae(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const mo=V(0);function en(e){const t=I(e);return!Xe()||!t.visualViewport?mo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function go(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function te(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Ze(e);let s=V(1);t&&(o?W(o)&&(s=ie(o)):s=ie(e));const a=go(r,n,o)?en(r):V(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,p=i.height/s.y;if(r){const h=I(r),d=o&&W(o)?I(o):o;let m=h,g=He(m);for(;g&&o&&d!==m;){const v=ie(g),y=g.getBoundingClientRect(),x=B(g),P=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,b=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,p*=v.y,l+=P,c+=b,m=I(g),g=He(m)}}return Ce({width:u,height:p,x:l,y:c})}function Te(e,t){const n=Se(e).scrollLeft;return t?t.left+n:te(q(e)).left+n}function tn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Te(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function vo(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=q(o),a=t?Ee(t.floating):!1;if(o===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const u=V(0),p=U(o);if((p||!p&&!r)&&((ue(o)!=="body"||ge(s))&&(l=Se(o)),U(o))){const d=te(o);c=ie(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const h=s&&!p&&!r?tn(s,l):V(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function yo(e){return Array.from(e.getClientRects())}function xo(e){const t=q(e),n=Se(e),o=e.ownerDocument.body,i=F(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=F(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Te(e);const a=-n.scrollTop;return B(o).direction==="rtl"&&(s+=F(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}const Et=25;function wo(e,t){const n=I(e),o=q(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const u=Xe();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=Te(o);if(c<=0){const u=o.ownerDocument,p=u.body,h=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-p.clientWidth-d);m<=Et&&(r-=m)}else c<=Et&&(r+=c);return{width:r,height:s,x:a,y:l}}const bo=new Set(["absolute","fixed"]);function _o(e,t){const n=te(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=U(e)?ie(e):V(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:s,height:a,x:l,y:c}}function St(e,t,n){let o;if(t==="viewport")o=wo(e,n);else if(t==="document")o=xo(q(e));else if(W(t))o=_o(t,n);else{const i=en(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ce(o)}function nn(e,t){const n=K(e);return n===t||!W(n)||se(n)?!1:B(n).position==="fixed"||nn(n,t)}function Ao(e,t){const n=t.get(e);if(n)return n;let o=me(e,[],!1).filter(a=>W(a)&&ue(a)!=="body"),i=null;const r=B(e).position==="fixed";let s=r?K(e):e;for(;W(s)&&!se(s);){const a=B(s),l=Ge(s);!l&&a.position==="fixed"&&(i=null),(r?!l&&!i:!l&&a.position==="static"&&!!i&&bo.has(i.position)||ge(s)&&!l&&nn(e,s))?o=o.filter(u=>u!==s):i=a,s=K(s)}return t.set(e,o),o}function Po(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Ee(t)?[]:Ao(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,u)=>{const p=St(t,u,i);return c.top=F(p.top,c.top),c.right=Z(p.right,c.right),c.bottom=Z(p.bottom,c.bottom),c.left=F(p.left,c.left),c},St(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Co(e){const{width:t,height:n}=Qt(e);return{width:t,height:n}}function Oo(e,t,n){const o=U(t),i=q(t),r=n==="fixed",s=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=Te(i)}if(o||!o&&!r)if((ue(t)!=="body"||ge(i))&&(a=Se(t)),o){const d=te(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&c();r&&!o&&i&&c();const u=i&&!o&&!r?tn(i,a):V(0),p=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:p,y:h,width:s.width,height:s.height}}function De(e){return B(e).position==="static"}function Tt(e,t){if(!U(e)||B(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function rn(e,t){const n=I(e);if(Ee(e))return n;if(!U(e)){let i=K(e);for(;i&&!se(i);){if(W(i)&&!De(i))return i;i=K(i)}return n}let o=Tt(e,t);for(;o&&ao(o)&&De(o);)o=Tt(o,t);return o&&se(o)&&De(o)&&!Ge(o)?n:o||po(e)||n}const Ro=async function(e){const t=this.getOffsetParent||rn,n=this.getDimensions,o=await n(e.floating);return{reference:Oo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eo(e){return B(e).direction==="rtl"}const So={convertOffsetParentRelativeRectToViewportRelativeRect:vo,getDocumentElement:q,getClippingRect:Po,getOffsetParent:rn,getElementRects:Ro,getClientRects:yo,getDimensions:Co,getScale:ie,isElement:W,isRTL:Eo};function on(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function To(e,t){let n=null,o;const i=q(e);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const c=e.getBoundingClientRect(),{left:u,top:p,width:h,height:d}=c;if(a||t(),!h||!d)return;const m=we(p),g=we(i.clientWidth-(u+h)),v=we(i.clientHeight-(p+d)),y=we(u),P={rootMargin:-m+"px "+-g+"px "+-v+"px "+-y+"px",threshold:F(0,Z(1,l))||1};let b=!0;function A(C){const _=C[0].intersectionRatio;if(_!==l){if(!b)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!on(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return s(!0),r}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Ze(e),u=i||r?[...c?me(c):[],...me(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const p=c&&a?To(c,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=d)==null||P.observe(t)})),n()}),c&&!l&&d.observe(c),d.observe(t));let m,g=l?te(e):null;l&&v();function v(){const y=te(e);g&&!on(g,y)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),p==null||p(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const No=to,Lo=no,Do=Jr,Mo=oo,$o=Qr,jt=Kr,ko=ro,Fo=(e,t,n)=>{const o=new Map,i={platform:So,...n},r={...i.platform,_c:o};return Zr(e,t,{...i,platform:r})};var Io=typeof document<"u",Wo=function(){},_e=Io?oe.useLayoutEffect:Wo;function Oe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Oe(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&e.$$typeof)&&!Oe(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function sn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nt(e,t){const n=sn(e);return Math.round(t*n)/n}function Me(e){const t=f.useRef(e);return _e(()=>{t.current=e}),t}function Bo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,p]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=f.useState(o);Oe(h,o)||d(o);const[m,g]=f.useState(null),[v,y]=f.useState(null),x=f.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),P=f.useCallback(O=>{O!==_.current&&(_.current=O,y(O))},[]),b=r||m,A=s||v,C=f.useRef(null),_=f.useRef(null),R=f.useRef(u),L=l!=null,E=Me(l),M=Me(i),$=Me(c),T=f.useCallback(()=>{if(!C.current||!_.current)return;const O={placement:t,strategy:n,middleware:h};M.current&&(O.platform=M.current),Fo(C.current,_.current,O).then(D=>{const H={...D,isPositioned:$.current!==!1};S.current&&!Oe(R.current,H)&&(R.current=H,$t.flushSync(()=>{p(H)}))})},[h,t,n,M,$]);_e(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[c]);const S=f.useRef(!1);_e(()=>(S.current=!0,()=>{S.current=!1}),[]),_e(()=>{if(b&&(C.current=b),A&&(_.current=A),b&&A){if(E.current)return E.current(b,A,T);T()}},[b,A,T,E,L]);const k=f.useMemo(()=>({reference:C,floating:_,setReference:x,setFloating:P}),[x,P]),j=f.useMemo(()=>({reference:b,floating:A}),[b,A]),N=f.useMemo(()=>{const O={position:n,left:0,top:0};if(!j.floating)return O;const D=Nt(j.floating,u.x),H=Nt(j.floating,u.y);return a?{...O,transform:"translate("+D+"px, "+H+"px)",...sn(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:H}},[n,a,j.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:T,refs:k,elements:j,floatingStyles:N}),[u,T,k,j,N])}const Ho=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?jt({element:o.current,padding:i}).fn(n):{}:o?jt({element:o,padding:i}).fn(n):{}}}},zo=(e,t)=>({...No(e),options:[e,t]}),Vo=(e,t)=>({...Lo(e),options:[e,t]}),Uo=(e,t)=>({...ko(e),options:[e,t]}),qo=(e,t)=>({...Do(e),options:[e,t]}),Yo=(e,t)=>({...Mo(e),options:[e,t]}),Go=(e,t)=>({...$o(e),options:[e,t]}),Xo=(e,t)=>({...Ho(e),options:[e,t]});var Zo="Arrow",an=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return w.jsx(J.svg,{...r,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});an.displayName=Zo;var Ko=an;function Jo(e){const[t,n]=f.useState(void 0);return ee(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,a;if("borderBoxSize"in r){const l=r.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Ke="Popper",[cn,ln]=zt(Ke),[Qo,un]=cn(Ke),fn=e=>{const{__scopePopper:t,children:n}=e,[o,i]=f.useState(null);return w.jsx(Qo,{scope:t,anchor:o,onAnchorChange:i,children:n})};fn.displayName=Ke;var pn="PopperAnchor",dn=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=un(pn,n),s=f.useRef(null),a=ne(t,s);return f.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:w.jsx(J.div,{...i,ref:a})});dn.displayName=pn;var Je="PopperContent",[ei,ti]=cn(Je),hn=f.forwardRef((e,t)=>{var nt,rt,ot,it,st,at;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=e,v=un(Je,n),[y,x]=f.useState(null),P=ne(t,fe=>x(fe)),[b,A]=f.useState(null),C=Jo(b),_=(C==null?void 0:C.width)??0,R=(C==null?void 0:C.height)??0,L=o+(r!=="center"?"-"+r:""),E=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(c)?c:[c],$=M.length>0,T={padding:E,boundary:M.filter(ri),altBoundary:$},{refs:S,floatingStyles:k,placement:j,isPositioned:N,middlewareData:O}=Bo({strategy:"fixed",placement:L,whileElementsMounted:(...fe)=>jo(...fe,{animationFrame:d==="always"}),elements:{reference:v.anchor},middleware:[zo({mainAxis:i+R,alignmentAxis:s}),l&&Vo({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Uo():void 0,...T}),l&&qo({...T}),Yo({...T,apply:({elements:fe,rects:ct,availableWidth:kn,availableHeight:Fn})=>{const{width:In,height:Wn}=ct.reference,xe=fe.floating.style;xe.setProperty("--radix-popper-available-width",`${kn}px`),xe.setProperty("--radix-popper-available-height",`${Fn}px`),xe.setProperty("--radix-popper-anchor-width",`${In}px`),xe.setProperty("--radix-popper-anchor-height",`${Wn}px`)}}),b&&Xo({element:b,padding:a}),oi({arrowWidth:_,arrowHeight:R}),h&&Go({strategy:"referenceHidden",...T})]}),[D,H]=vn(j),ye=ce(m);ee(()=>{N&&(ye==null||ye())},[N,ye]);const Nn=(nt=O.arrow)==null?void 0:nt.x,Ln=(rt=O.arrow)==null?void 0:rt.y,Dn=((ot=O.arrow)==null?void 0:ot.centerOffset)!==0,[Mn,$n]=f.useState();return ee(()=>{y&&$n(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:N?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Mn,"--radix-popper-transform-origin":[(it=O.transformOrigin)==null?void 0:it.x,(st=O.transformOrigin)==null?void 0:st.y].join(" "),...((at=O.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ei,{scope:n,placedSide:D,onArrowChange:A,arrowX:Nn,arrowY:Ln,shouldHideArrow:Dn,children:w.jsx(J.div,{"data-side":D,"data-align":H,...g,ref:P,style:{...g.style,animation:N?void 0:"none"}})})})});hn.displayName=Je;var mn="PopperArrow",ni={top:"bottom",right:"left",bottom:"top",left:"right"},gn=f.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=ti(mn,o),s=ni[r.placedSide];return w.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:w.jsx(Ko,{...i,ref:n,style:{...i.style,display:"block"}})})});gn.displayName=mn;function ri(e){return e!==null}var oi=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:o,middlewareData:i}=t,s=((v=i.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=vn(n),p={start:"0%",center:"50%",end:"100%"}[u],h=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,d=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=s?p:`${h}px`,g=`${-l}px`):c==="top"?(m=s?p:`${h}px`,g=`${o.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=s?p:`${d}px`):c==="left"&&(m=`${o.floating.width+l}px`,g=s?p:`${d}px`),{data:{x:m,y:g}}}});function vn(e){const[t,n="center"]=e.split("-");return[t,n]}var ii=fn,si=dn,ai=hn,ci=gn,li="Portal",yn=f.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[i,r]=f.useState(!1);ee(()=>r(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Dt.createPortal(w.jsx(J.div,{...o,ref:t}),s):null});yn.displayName=li;function ui(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var Qe=e=>{const{present:t,children:n}=e,o=fi(t),i=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),r=ne(o.ref,pi(i));return typeof n=="function"||o.isPresent?f.cloneElement(i,{ref:r}):null};Qe.displayName="Presence";function fi(e){const[t,n]=f.useState(),o=f.useRef({}),i=f.useRef(e),r=f.useRef("none"),s=e?"mounted":"unmounted",[a,l]=ui(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=be(o.current);r.current=a==="mounted"?c:"none"},[a]),ee(()=>{const c=o.current,u=i.current;if(u!==e){const h=r.current,d=be(c);e?l("MOUNT"):d==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ee(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,p=d=>{const g=be(o.current).includes(d.animationName);if(d.target===t&&g&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=d=>{d.target===t&&(r.current=be(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(o.current=getComputedStyle(c)),n(c)},[])}}function be(e){return(e==null?void 0:e.animationName)||"none"}function pi(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function di({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=hi({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ce(n),l=f.useCallback(c=>{if(r){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else i(c)},[r,e,i,a]);return[s,l]}function hi({defaultProp:e,onChange:t}){const n=f.useState(e),[o]=n,i=f.useRef(o),r=ce(t);return f.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}var mi="VisuallyHidden",xn=f.forwardRef((e,t)=>w.jsx(J.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));xn.displayName=mi;var gi=xn,[je]=zt("Tooltip",[ln]),Ne=ln(),wn="TooltipProvider",vi=700,ze="tooltip.open",[yi,et]=je(wn),bn=e=>{const{__scopeTooltip:t,delayDuration:n=vi,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),w.jsx(yi,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:r})};bn.displayName=wn;var Le="Tooltip",[xi,ve]=je(Le),_n=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,l=et(Le,e.__scopeTooltip),c=Ne(t),[u,p]=f.useState(null),h=Fr(),d=f.useRef(0),m=s??l.disableHoverableContent,g=a??l.delayDuration,v=f.useRef(!1),[y=!1,x]=di({prop:o,defaultProp:i,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(ze))):l.onClose(),r==null||r(_)}}),P=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),b=f.useCallback(()=>{window.clearTimeout(d.current),d.current=0,v.current=!1,x(!0)},[x]),A=f.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),C=f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{v.current=!0,x(!0),d.current=0},g)},[g,x]);return f.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),w.jsx(ii,{...c,children:w.jsx(xi,{scope:t,contentId:h,open:y,stateAttribute:P,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?C():b()},[l.isOpenDelayed,C,b]),onTriggerLeave:f.useCallback(()=>{m?A():(window.clearTimeout(d.current),d.current=0)},[A,m]),onOpen:b,onClose:A,disableHoverableContent:m,children:n})})};_n.displayName=Le;var Ve="TooltipTrigger",An=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ve(Ve,n),r=et(Ve,n),s=Ne(n),a=f.useRef(null),l=ne(t,a,i.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),p=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),w.jsx(si,{asChild:!0,...s,children:w.jsx(J.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:Y(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Y(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Y(e.onBlur,i.onClose),onClick:Y(e.onClick,i.onClose)})})});An.displayName=Ve;var tt="TooltipPortal",[wi,bi]=je(tt,{forceMount:void 0}),Pn=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ve(tt,t);return w.jsx(wi,{scope:t,forceMount:n,children:w.jsx(Qe,{present:n||r.open,children:w.jsx(yn,{asChild:!0,container:i,children:o})})})};Pn.displayName=tt;var ae="TooltipContent",Cn=f.forwardRef((e,t)=>{const n=bi(ae,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ve(ae,e.__scopeTooltip);return w.jsx(Qe,{present:o||s.open,children:s.disableHoverableContent?w.jsx(On,{side:i,...r,ref:t}):w.jsx(_i,{side:i,...r,ref:t})})}),_i=f.forwardRef((e,t)=>{const n=ve(ae,e.__scopeTooltip),o=et(ae,e.__scopeTooltip),i=f.useRef(null),r=ne(t,i),[s,a]=f.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:p}=o,h=f.useCallback(()=>{a(null),p(!1)},[p]),d=f.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},x=Ci(y,v.getBoundingClientRect()),P=Oi(y,x),b=Ri(g.getBoundingClientRect()),A=Si([...P,...b]);a(A),p(!0)},[p]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=v=>d(v,u),g=v=>d(v,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,d,h]),f.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),P=!Ei(y,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),w.jsx(On,{...e,ref:r})}),[Ai,Pi]=je(Le,{isInside:!1}),On=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,l=ve(ae,n),c=Ne(n),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(ze,u),()=>document.removeEventListener(ze,u)),[u]),f.useEffect(()=>{if(l.trigger){const p=h=>{const d=h.target;d!=null&&d.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),w.jsx(Yt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:w.jsxs(ai,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(Ut,{children:o}),w.jsx(Ai,{scope:n,isInside:!0,children:w.jsx(gi,{id:l.contentId,role:"tooltip",children:i||o})})]})})});Cn.displayName=ae;var Rn="TooltipArrow",En=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Ne(n);return Pi(Rn,n).isInside?null:w.jsx(ci,{...i,...o,ref:t})});En.displayName=Rn;function Ci(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Oi(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ri(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function Ei(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const a=t[r].x,l=t[r].y,c=t[s].x,u=t[s].y;l>o!=u>o&&n<(c-a)*(o-l)/(u-l)+a&&(i=!i)}return i}function Si(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Ti(t)}function Ti(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ji=bn,Ni=_n,Li=An,Di=Pn,Mi=Cn,$i=En;function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={exports:{}};/*!
17
+ */var xt;function gr(){return xt||(xt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(yt)),yt.exports}var vr=gr();const yr=mr(vr),xr={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},wr=yr.bind(xr),Ht={PARAGRAPH100:"paragraph-100"},de="purpur-paragraph",zt=({children:e,className:t,disabled:n,enableHyphenation:o=!1,negative:i=!1,variant:r=Ht.PARAGRAPH100,...s})=>{const a=wr(t,de,`${de}--${r}`,{[`${de}--hyphens`]:o,[`${de}--disabled`]:n,[`${de}--negative`]:i});return w.jsx("p",{...s,className:a,children:e})};zt.displayName="Paragraph";const br="400ms";function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function wt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vt(...e){return t=>{let n=!1;const o=e.map(i=>{const r=wt(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<o.length;i++){const r=o[i];typeof r=="function"?r():wt(e[i],null)}}}}function ne(...e){return f.useCallback(Vt(...e),e)}function Ut(e,t=[]){let n=[];function o(r,s){const a=f.createContext(s),l=n.length;n=[...n,s];const c=p=>{var y;const{scope:h,children:d,...m}=p,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||a,v=f.useMemo(()=>m,Object.values(m));return w.jsx(g.Provider,{value:v,children:d})};c.displayName=r+"Provider";function u(p,h){var g;const d=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,m=f.useContext(d);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[c,u]}const i=()=>{const r=n.map(s=>f.createContext(s));return function(a){const l=(a==null?void 0:a[e])||r;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[o,_r(i,...t)]}function _r(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const s=o.reduce((a,{useScope:l,scopeName:c})=>{const p=l(r)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var qt=f.forwardRef((e,t)=>{const{children:n,...o}=e,i=f.Children.toArray(n),r=i.find(Ar);if(r){const s=r.props.children,a=i.map(l=>l===r?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:l);return w.jsx(Fe,{...o,ref:t,children:f.isValidElement(s)?f.cloneElement(s,void 0,a):null})}return w.jsx(Fe,{...o,ref:t,children:n})});qt.displayName="Slot";var Fe=f.forwardRef((e,t)=>{const{children:n,...o}=e;if(f.isValidElement(n)){const i=Cr(n),r=Pr(o,n.props);return n.type!==f.Fragment&&(r.ref=t?Vt(t,i):i),f.cloneElement(n,r)}return f.Children.count(n)>1?f.Children.only(null):null});Fe.displayName="SlotClone";var Yt=({children:e})=>w.jsx(w.Fragment,{children:e});function Ar(e){return f.isValidElement(e)&&e.type===Yt}function Pr(e,t){const n={...t};for(const o in t){const i=e[o],r=t[o];/^on[A-Z]/.test(o)?i&&r?n[o]=(...a)=>{r(...a),i(...a)}:i&&(n[o]=i):o==="style"?n[o]={...i,...r}:o==="className"&&(n[o]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}function Cr(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Or=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Q=Or.reduce((e,t)=>{const n=f.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?qt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rr(e,t){e&&kt.flushSync(()=>e.dispatchEvent(t))}function ce(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Er(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e);f.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Sr="DismissableLayer",Ie="dismissableLayer.update",Tr="dismissableLayer.pointerDownOutside",Nr="dismissableLayer.focusOutside",bt,Gt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:r,onInteractOutside:s,onDismiss:a,...l}=e,c=f.useContext(Gt),[u,p]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=f.useState({}),m=ne(t,_=>p(_)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=u?g.indexOf(u):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,b=x>=y,A=jr(_=>{const R=_.target,D=[...c.branches].some(E=>E.contains(R));!b||D||(i==null||i(_),s==null||s(_),_.defaultPrevented||a==null||a())},h),C=Mr(_=>{const R=_.target;[...c.branches].some(E=>E.contains(R))||(r==null||r(_),s==null||s(_),_.defaultPrevented||a==null||a())},h);return Er(_=>{x===c.layers.size-1&&(o==null||o(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(bt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),_t(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bt)}},[u,h,n,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),_t())},[u,c]),f.useEffect(()=>{const _=()=>d({});return document.addEventListener(Ie,_),()=>document.removeEventListener(Ie,_)},[]),w.jsx(Q.div,{...l,ref:m,style:{pointerEvents:P?b?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,A.onPointerDownCapture)})});Xt.displayName=Sr;var Lr="DismissableLayerBranch",Dr=f.forwardRef((e,t)=>{const n=f.useContext(Gt),o=f.useRef(null),i=ne(t,o);return f.useEffect(()=>{const r=o.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),w.jsx(Q.div,{...e,ref:i})});Dr.displayName=Lr;function jr(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let l=function(){Zt(Tr,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Mr(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=f.useRef(!1);return f.useEffect(()=>{const i=r=>{r.target&&!o.current&&Zt(Nr,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function _t(){const e=new CustomEvent(Ie);document.dispatchEvent(e)}function Zt(e,t,n,{discrete:o}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?Rr(i,r):i.dispatchEvent(r)}var ee=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},$r=f.useId||(()=>{}),kr=0;function Fr(e){const[t,n]=f.useState($r());return ee(()=>{n(o=>o??String(kr++))},[e]),t?`radix-${t}`:""}const Ir=["top","right","bottom","left"],K=Math.min,F=Math.max,Ae=Math.round,we=Math.floor,V=e=>({x:e,y:e}),Wr={left:"right",right:"left",bottom:"top",top:"bottom"},Br={start:"end",end:"start"};function We(e,t,n){return F(e,K(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function X(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function qe(e){return e==="y"?"height":"width"}const Hr=new Set(["top","bottom"]);function z(e){return Hr.has(X(e))?"y":"x"}function Ye(e){return Ue(z(e))}function zr(e,t,n){n===void 0&&(n=!1);const o=le(e),i=Ye(e),r=qe(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Pe(s)),[s,Pe(s)]}function Vr(e){const t=Pe(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>Br[t])}const At=["left","right"],Pt=["right","left"],Ur=["top","bottom"],qr=["bottom","top"];function Yr(e,t,n){switch(e){case"top":case"bottom":return n?t?Pt:At:t?At:Pt;case"left":case"right":return t?Ur:qr;default:return[]}}function Gr(e,t,n,o){const i=le(e);let r=Yr(X(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Be)))),r}function Pe(e){return e.replace(/left|right|bottom|top/g,t=>Wr[t])}function Xr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kt(e){return typeof e!="number"?Xr(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function Ct(e,t,n){let{reference:o,floating:i}=e;const r=z(t),s=Ye(t),a=qe(s),l=X(t),c=r==="y",u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let d;switch(l){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:p};break;case"left":d={x:o.x-i.width,y:p};break;default:d={x:o.x,y:o.y}}switch(le(t)){case"start":d[s]-=h*(n&&c?-1:1);break;case"end":d[s]+=h*(n&&c?-1:1);break}return d}const Zr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=Ct(c,o,l),h=o,d={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x,y:P,data:b,reset:A}=await y({x:u,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,p=P??p,d={...d,[v]:{...d[v],...b}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(c=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:u,y:p}=Ct(c,h,l)),g=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:d}};async function he(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=G(t,e),m=Kt(d),v=a[h?p==="floating"?"reference":"floating":p],y=Ce(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=p==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(P))?await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1}:{x:1,y:1},A=Ce(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:l}):x);return{top:(y.top-A.top+m.top)/b.y,bottom:(A.bottom-y.bottom+m.bottom)/b.y,left:(y.left-A.left+m.left)/b.x,right:(A.right-y.right+m.right)/b.x}}const Kr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=G(e,t)||{};if(c==null)return{};const p=Kt(u),h={x:n,y:o},d=Ye(i),m=qe(d),g=await s.getDimensions(c),v=d==="y",y=v?"top":"left",x=v?"bottom":"right",P=v?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[d]-h[d]-r.floating[m],A=h[d]-r.reference[d],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=C?C[P]:0;(!_||!await(s.isElement==null?void 0:s.isElement(C)))&&(_=a.floating[P]||r.floating[m]);const R=b/2-A/2,D=_/2-g[m]/2-1,E=K(p[y],D),M=K(p[x],D),$=E,T=_-g[m]-M,S=_/2-g[m]/2+R,k=We($,S,T),N=!l.arrow&&le(i)!=null&&S!==k&&r.reference[m]/2-(S<$?E:M)-g[m]/2<0,L=N?S<$?S-$:S-T:0;return{[d]:h[d]+L,data:{[d]:k,centerOffset:S-k-L,...N&&{alignmentOffset:L}},reset:N}}}),Jr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=G(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=X(i),x=z(a),P=X(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=h||(P||!g?[Pe(a)]:Vr(a)),C=m!=="none";!h&&C&&A.push(...Gr(a,g,m,b));const _=[a,...A],R=await he(t,v),D=[];let E=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&D.push(R[y]),p){const S=zr(i,s,b);D.push(R[S[0]],R[S[1]])}if(E=[...E,{placement:i,overflows:D}],!D.every(S=>S<=0)){var M,$;const S=(((M=r.flip)==null?void 0:M.index)||0)+1,k=_[S];if(k&&(!(p==="alignment"?x!==z(k):!1)||E.every(O=>z(O.placement)===x?O.overflows[0]>0:!0)))return{data:{index:S,overflows:E},reset:{placement:k}};let N=($=E.filter(L=>L.overflows[0]<=0).sort((L,O)=>L.overflows[1]-O.overflows[1])[0])==null?void 0:$.placement;if(!N)switch(d){case"bestFit":{var T;const L=(T=E.filter(O=>{if(C){const j=z(O.placement);return j===x||j==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((O,j)=>O[1]-j[1])[0])==null?void 0:T[0];L&&(N=L);break}case"initialPlacement":N=a;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function Ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rt(e){return Ir.some(t=>e[t]>=0)}const Qr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=G(e,t);switch(o){case"referenceHidden":{const r=await he(t,{...i,elementContext:"reference"}),s=Ot(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Rt(s)}}}case"escaped":{const r=await he(t,{...i,altBoundary:!0}),s=Ot(r,n.floating);return{data:{escapedOffsets:s,escaped:Rt(s)}}}default:return{}}}}},Jt=new Set(["left","top"]);async function eo(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=X(n),a=le(n),l=z(n)==="y",c=Jt.has(s)?-1:1,u=r&&l?-1:1,p=G(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const to=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=t,l=await eo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},no=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=G(e,t),c={x:n,y:o},u=await he(t,l),p=z(X(i)),h=Ue(p);let d=c[h],m=c[p];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=d+u[v],P=d-u[y];d=We(x,d,P)}if(s){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=m+u[v],P=m-u[y];m=We(x,m,P)}const g=a.fn({...t,[h]:d,[p]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:r,[p]:s}}}}}},ro=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=G(e,t),u={x:n,y:o},p=z(i),h=Ue(p);let d=u[h],m=u[p];const g=G(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const P=h==="y"?"height":"width",b=r.reference[h]-r.floating[P]+v.mainAxis,A=r.reference[h]+r.reference[P]-v.mainAxis;d<b?d=b:d>A&&(d=A)}if(c){var y,x;const P=h==="y"?"width":"height",b=Jt.has(X(i)),A=r.reference[p]-r.floating[P]+(b&&((y=s.offset)==null?void 0:y[p])||0)+(b?0:v.crossAxis),C=r.reference[p]+r.reference[P]+(b?0:((x=s.offset)==null?void 0:x[p])||0)-(b?v.crossAxis:0);m<A?m=A:m>C&&(m=C)}return{[h]:d,[p]:m}}}},oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...c}=G(e,t),u=await he(t,c),p=X(i),h=le(i),d=z(i)==="y",{width:m,height:g}=r.floating;let v,y;p==="top"||p==="bottom"?(v=p,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,v=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,P=m-u.left-u.right,b=K(g-u[v],x),A=K(m-u[y],P),C=!t.middlewareData.shift;let _=b,R=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=x),C&&!h){const E=F(u.left,0),M=F(u.right,0),$=F(u.top,0),T=F(u.bottom,0);d?R=m-2*(E!==0||M!==0?E+M:F(u.left,u.right)):_=g-2*($!==0||T!==0?$+T:F(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:_});const D=await s.getDimensions(a.floating);return m!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function ue(e){return Qt(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Qt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qt(e){return Re()?e instanceof Node||e instanceof I(e).Node:!1}function W(e){return Re()?e instanceof Element||e instanceof I(e).Element:!1}function U(e){return Re()?e instanceof HTMLElement||e instanceof I(e).HTMLElement:!1}function Et(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}const io=new Set(["inline","contents"]);function ge(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!io.has(i)}const so=new Set(["table","td","th"]);function ao(e){return so.has(ue(e))}const co=[":popover-open",":modal"];function Ee(e){return co.some(t=>{try{return e.matches(t)}catch{return!1}})}const lo=["transform","translate","scale","rotate","perspective"],uo=["transform","translate","scale","rotate","perspective","filter"],fo=["paint","layout","strict","content"];function Ge(e){const t=Xe(),n=W(e)?B(e):e;return lo.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uo.some(o=>(n.willChange||"").includes(o))||fo.some(o=>(n.contain||"").includes(o))}function po(e){let t=J(e);for(;U(t)&&!se(t);){if(Ge(t))return t;if(Ee(t))return null;t=J(t)}return null}function Xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ho=new Set(["html","body","#document"]);function se(e){return ho.has(ue(e))}function B(e){return I(e).getComputedStyle(e)}function Se(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Et(e)&&e.host||q(e);return Et(t)?t.host:t}function en(e){const t=J(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&ge(t)?t:en(t)}function me(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=en(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=I(i);if(r){const a=He(s);return t.concat(s,s.visualViewport||[],ge(i)?i:[],a&&n?me(a):[])}return t.concat(i,me(i,[],n))}function He(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=B(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=U(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=Ae(n)!==r||Ae(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Ze(e){return W(e)?e:e.contextElement}function ie(e){const t=Ze(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=tn(t);let s=(r?Ae(n.width):n.width)/o,a=(r?Ae(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const mo=V(0);function nn(e){const t=I(e);return!Xe()||!t.visualViewport?mo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function go(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function te(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Ze(e);let s=V(1);t&&(o?W(o)&&(s=ie(o)):s=ie(e));const a=go(r,n,o)?nn(r):V(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,p=i.height/s.y;if(r){const h=I(r),d=o&&W(o)?I(o):o;let m=h,g=He(m);for(;g&&o&&d!==m;){const v=ie(g),y=g.getBoundingClientRect(),x=B(g),P=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,b=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,p*=v.y,l+=P,c+=b,m=I(g),g=He(m)}}return Ce({width:u,height:p,x:l,y:c})}function Te(e,t){const n=Se(e).scrollLeft;return t?t.left+n:te(q(e)).left+n}function rn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Te(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function vo(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=q(o),a=t?Ee(t.floating):!1;if(o===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const u=V(0),p=U(o);if((p||!p&&!r)&&((ue(o)!=="body"||ge(s))&&(l=Se(o)),U(o))){const d=te(o);c=ie(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const h=s&&!p&&!r?rn(s,l):V(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function yo(e){return Array.from(e.getClientRects())}function xo(e){const t=q(e),n=Se(e),o=e.ownerDocument.body,i=F(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=F(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Te(e);const a=-n.scrollTop;return B(o).direction==="rtl"&&(s+=F(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}const St=25;function wo(e,t){const n=I(e),o=q(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const u=Xe();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=Te(o);if(c<=0){const u=o.ownerDocument,p=u.body,h=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-p.clientWidth-d);m<=St&&(r-=m)}else c<=St&&(r+=c);return{width:r,height:s,x:a,y:l}}const bo=new Set(["absolute","fixed"]);function _o(e,t){const n=te(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=U(e)?ie(e):V(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:s,height:a,x:l,y:c}}function Tt(e,t,n){let o;if(t==="viewport")o=wo(e,n);else if(t==="document")o=xo(q(e));else if(W(t))o=_o(t,n);else{const i=nn(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ce(o)}function on(e,t){const n=J(e);return n===t||!W(n)||se(n)?!1:B(n).position==="fixed"||on(n,t)}function Ao(e,t){const n=t.get(e);if(n)return n;let o=me(e,[],!1).filter(a=>W(a)&&ue(a)!=="body"),i=null;const r=B(e).position==="fixed";let s=r?J(e):e;for(;W(s)&&!se(s);){const a=B(s),l=Ge(s);!l&&a.position==="fixed"&&(i=null),(r?!l&&!i:!l&&a.position==="static"&&!!i&&bo.has(i.position)||ge(s)&&!l&&on(e,s))?o=o.filter(u=>u!==s):i=a,s=J(s)}return t.set(e,o),o}function Po(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Ee(t)?[]:Ao(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,u)=>{const p=Tt(t,u,i);return c.top=F(p.top,c.top),c.right=K(p.right,c.right),c.bottom=K(p.bottom,c.bottom),c.left=F(p.left,c.left),c},Tt(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Co(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Oo(e,t,n){const o=U(t),i=q(t),r=n==="fixed",s=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=Te(i)}if(o||!o&&!r)if((ue(t)!=="body"||ge(i))&&(a=Se(t)),o){const d=te(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&c();r&&!o&&i&&c();const u=i&&!o&&!r?rn(i,a):V(0),p=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:p,y:h,width:s.width,height:s.height}}function je(e){return B(e).position==="static"}function Nt(e,t){if(!U(e)||B(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function sn(e,t){const n=I(e);if(Ee(e))return n;if(!U(e)){let i=J(e);for(;i&&!se(i);){if(W(i)&&!je(i))return i;i=J(i)}return n}let o=Nt(e,t);for(;o&&ao(o)&&je(o);)o=Nt(o,t);return o&&se(o)&&je(o)&&!Ge(o)?n:o||po(e)||n}const Ro=async function(e){const t=this.getOffsetParent||sn,n=this.getDimensions,o=await n(e.floating);return{reference:Oo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eo(e){return B(e).direction==="rtl"}const So={convertOffsetParentRelativeRectToViewportRelativeRect:vo,getDocumentElement:q,getClippingRect:Po,getOffsetParent:sn,getElementRects:Ro,getClientRects:yo,getDimensions:Co,getScale:ie,isElement:W,isRTL:Eo};function an(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function To(e,t){let n=null,o;const i=q(e);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const c=e.getBoundingClientRect(),{left:u,top:p,width:h,height:d}=c;if(a||t(),!h||!d)return;const m=we(p),g=we(i.clientWidth-(u+h)),v=we(i.clientHeight-(p+d)),y=we(u),P={rootMargin:-m+"px "+-g+"px "+-v+"px "+-y+"px",threshold:F(0,K(1,l))||1};let b=!0;function A(C){const _=C[0].intersectionRatio;if(_!==l){if(!b)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!an(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return s(!0),r}function No(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Ze(e),u=i||r?[...c?me(c):[],...me(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const p=c&&a?To(c,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=d)==null||P.observe(t)})),n()}),c&&!l&&d.observe(c),d.observe(t));let m,g=l?te(e):null;l&&v();function v(){const y=te(e);g&&!an(g,y)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),p==null||p(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const Lo=to,Do=no,jo=Jr,Mo=oo,$o=Qr,Lt=Kr,ko=ro,Fo=(e,t,n)=>{const o=new Map,i={platform:So,...n},r={...i.platform,_c:o};return Zr(e,t,{...i,platform:r})};var Io=typeof document<"u",Wo=function(){},_e=Io?oe.useLayoutEffect:Wo;function Oe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Oe(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&e.$$typeof)&&!Oe(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function cn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dt(e,t){const n=cn(e);return Math.round(t*n)/n}function Me(e){const t=f.useRef(e);return _e(()=>{t.current=e}),t}function Bo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,p]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=f.useState(o);Oe(h,o)||d(o);const[m,g]=f.useState(null),[v,y]=f.useState(null),x=f.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),P=f.useCallback(O=>{O!==_.current&&(_.current=O,y(O))},[]),b=r||m,A=s||v,C=f.useRef(null),_=f.useRef(null),R=f.useRef(u),D=l!=null,E=Me(l),M=Me(i),$=Me(c),T=f.useCallback(()=>{if(!C.current||!_.current)return;const O={placement:t,strategy:n,middleware:h};M.current&&(O.platform=M.current),Fo(C.current,_.current,O).then(j=>{const H={...j,isPositioned:$.current!==!1};S.current&&!Oe(R.current,H)&&(R.current=H,kt.flushSync(()=>{p(H)}))})},[h,t,n,M,$]);_e(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[c]);const S=f.useRef(!1);_e(()=>(S.current=!0,()=>{S.current=!1}),[]),_e(()=>{if(b&&(C.current=b),A&&(_.current=A),b&&A){if(E.current)return E.current(b,A,T);T()}},[b,A,T,E,D]);const k=f.useMemo(()=>({reference:C,floating:_,setReference:x,setFloating:P}),[x,P]),N=f.useMemo(()=>({reference:b,floating:A}),[b,A]),L=f.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const j=Dt(N.floating,u.x),H=Dt(N.floating,u.y);return a?{...O,transform:"translate("+j+"px, "+H+"px)",...cn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:H}},[n,a,N.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:T,refs:k,elements:N,floatingStyles:L}),[u,T,k,N,L])}const Ho=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Lt({element:o.current,padding:i}).fn(n):{}:o?Lt({element:o,padding:i}).fn(n):{}}}},zo=(e,t)=>({...Lo(e),options:[e,t]}),Vo=(e,t)=>({...Do(e),options:[e,t]}),Uo=(e,t)=>({...ko(e),options:[e,t]}),qo=(e,t)=>({...jo(e),options:[e,t]}),Yo=(e,t)=>({...Mo(e),options:[e,t]}),Go=(e,t)=>({...$o(e),options:[e,t]}),Xo=(e,t)=>({...Ho(e),options:[e,t]});var Zo="Arrow",ln=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return w.jsx(Q.svg,{...r,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});ln.displayName=Zo;var Ko=ln;function Jo(e){const[t,n]=f.useState(void 0);return ee(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,a;if("borderBoxSize"in r){const l=r.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Ke="Popper",[un,fn]=Ut(Ke),[Qo,pn]=un(Ke),dn=e=>{const{__scopePopper:t,children:n}=e,[o,i]=f.useState(null);return w.jsx(Qo,{scope:t,anchor:o,onAnchorChange:i,children:n})};dn.displayName=Ke;var hn="PopperAnchor",mn=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=pn(hn,n),s=f.useRef(null),a=ne(t,s);return f.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:w.jsx(Q.div,{...i,ref:a})});mn.displayName=hn;var Je="PopperContent",[ei,ti]=un(Je),gn=f.forwardRef((e,t)=>{var nt,rt,ot,it,st,at;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=e,v=pn(Je,n),[y,x]=f.useState(null),P=ne(t,fe=>x(fe)),[b,A]=f.useState(null),C=Jo(b),_=(C==null?void 0:C.width)??0,R=(C==null?void 0:C.height)??0,D=o+(r!=="center"?"-"+r:""),E=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(c)?c:[c],$=M.length>0,T={padding:E,boundary:M.filter(ri),altBoundary:$},{refs:S,floatingStyles:k,placement:N,isPositioned:L,middlewareData:O}=Bo({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>No(...fe,{animationFrame:d==="always"}),elements:{reference:v.anchor},middleware:[zo({mainAxis:i+R,alignmentAxis:s}),l&&Vo({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Uo():void 0,...T}),l&&qo({...T}),Yo({...T,apply:({elements:fe,rects:ct,availableWidth:In,availableHeight:Wn})=>{const{width:Bn,height:Hn}=ct.reference,xe=fe.floating.style;xe.setProperty("--radix-popper-available-width",`${In}px`),xe.setProperty("--radix-popper-available-height",`${Wn}px`),xe.setProperty("--radix-popper-anchor-width",`${Bn}px`),xe.setProperty("--radix-popper-anchor-height",`${Hn}px`)}}),b&&Xo({element:b,padding:a}),oi({arrowWidth:_,arrowHeight:R}),h&&Go({strategy:"referenceHidden",...T})]}),[j,H]=xn(N),ye=ce(m);ee(()=>{L&&(ye==null||ye())},[L,ye]);const jn=(nt=O.arrow)==null?void 0:nt.x,Mn=(rt=O.arrow)==null?void 0:rt.y,$n=((ot=O.arrow)==null?void 0:ot.centerOffset)!==0,[kn,Fn]=f.useState();return ee(()=>{y&&Fn(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:L?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:kn,"--radix-popper-transform-origin":[(it=O.transformOrigin)==null?void 0:it.x,(st=O.transformOrigin)==null?void 0:st.y].join(" "),...((at=O.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ei,{scope:n,placedSide:j,onArrowChange:A,arrowX:jn,arrowY:Mn,shouldHideArrow:$n,children:w.jsx(Q.div,{"data-side":j,"data-align":H,...g,ref:P,style:{...g.style,animation:L?void 0:"none"}})})})});gn.displayName=Je;var vn="PopperArrow",ni={top:"bottom",right:"left",bottom:"top",left:"right"},yn=f.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=ti(vn,o),s=ni[r.placedSide];return w.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:w.jsx(Ko,{...i,ref:n,style:{...i.style,display:"block"}})})});yn.displayName=vn;function ri(e){return e!==null}var oi=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:o,middlewareData:i}=t,s=((v=i.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=xn(n),p={start:"0%",center:"50%",end:"100%"}[u],h=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,d=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=s?p:`${h}px`,g=`${-l}px`):c==="top"?(m=s?p:`${h}px`,g=`${o.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=s?p:`${d}px`):c==="left"&&(m=`${o.floating.width+l}px`,g=s?p:`${d}px`),{data:{x:m,y:g}}}});function xn(e){const[t,n="center"]=e.split("-");return[t,n]}var ii=dn,si=mn,ai=gn,ci=yn,li="Portal",wn=f.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[i,r]=f.useState(!1);ee(()=>r(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Mt.createPortal(w.jsx(Q.div,{...o,ref:t}),s):null});wn.displayName=li;function ui(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var Qe=e=>{const{present:t,children:n}=e,o=fi(t),i=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),r=ne(o.ref,pi(i));return typeof n=="function"||o.isPresent?f.cloneElement(i,{ref:r}):null};Qe.displayName="Presence";function fi(e){const[t,n]=f.useState(),o=f.useRef({}),i=f.useRef(e),r=f.useRef("none"),s=e?"mounted":"unmounted",[a,l]=ui(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=be(o.current);r.current=a==="mounted"?c:"none"},[a]),ee(()=>{const c=o.current,u=i.current;if(u!==e){const h=r.current,d=be(c);e?l("MOUNT"):d==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ee(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,p=d=>{const g=be(o.current).includes(d.animationName);if(d.target===t&&g&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=d=>{d.target===t&&(r.current=be(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(o.current=getComputedStyle(c)),n(c)},[])}}function be(e){return(e==null?void 0:e.animationName)||"none"}function pi(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function di({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=hi({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ce(n),l=f.useCallback(c=>{if(r){const p=typeof c=="function"?c(e):c;p!==e&&a(p)}else i(c)},[r,e,i,a]);return[s,l]}function hi({defaultProp:e,onChange:t}){const n=f.useState(e),[o]=n,i=f.useRef(o),r=ce(t);return f.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}var mi="VisuallyHidden",bn=f.forwardRef((e,t)=>w.jsx(Q.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));bn.displayName=mi;var gi=bn,[Ne]=Ut("Tooltip",[fn]),Le=fn(),_n="TooltipProvider",vi=700,ze="tooltip.open",[yi,et]=Ne(_n),An=e=>{const{__scopeTooltip:t,delayDuration:n=vi,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),w.jsx(yi,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:r})};An.displayName=_n;var De="Tooltip",[xi,ve]=Ne(De),Pn=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,l=et(De,e.__scopeTooltip),c=Le(t),[u,p]=f.useState(null),h=Fr(),d=f.useRef(0),m=s??l.disableHoverableContent,g=a??l.delayDuration,v=f.useRef(!1),[y=!1,x]=di({prop:o,defaultProp:i,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(ze))):l.onClose(),r==null||r(_)}}),P=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),b=f.useCallback(()=>{window.clearTimeout(d.current),d.current=0,v.current=!1,x(!0)},[x]),A=f.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),C=f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{v.current=!0,x(!0),d.current=0},g)},[g,x]);return f.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),w.jsx(ii,{...c,children:w.jsx(xi,{scope:t,contentId:h,open:y,stateAttribute:P,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?C():b()},[l.isOpenDelayed,C,b]),onTriggerLeave:f.useCallback(()=>{m?A():(window.clearTimeout(d.current),d.current=0)},[A,m]),onOpen:b,onClose:A,disableHoverableContent:m,children:n})})};Pn.displayName=De;var Ve="TooltipTrigger",Cn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ve(Ve,n),r=et(Ve,n),s=Le(n),a=f.useRef(null),l=ne(t,a,i.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),p=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),w.jsx(si,{asChild:!0,...s,children:w.jsx(Q.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:Y(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Y(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Y(e.onBlur,i.onClose),onClick:Y(e.onClick,i.onClose)})})});Cn.displayName=Ve;var tt="TooltipPortal",[wi,bi]=Ne(tt,{forceMount:void 0}),On=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ve(tt,t);return w.jsx(wi,{scope:t,forceMount:n,children:w.jsx(Qe,{present:n||r.open,children:w.jsx(wn,{asChild:!0,container:i,children:o})})})};On.displayName=tt;var ae="TooltipContent",Rn=f.forwardRef((e,t)=>{const n=bi(ae,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ve(ae,e.__scopeTooltip);return w.jsx(Qe,{present:o||s.open,children:s.disableHoverableContent?w.jsx(En,{side:i,...r,ref:t}):w.jsx(_i,{side:i,...r,ref:t})})}),_i=f.forwardRef((e,t)=>{const n=ve(ae,e.__scopeTooltip),o=et(ae,e.__scopeTooltip),i=f.useRef(null),r=ne(t,i),[s,a]=f.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:p}=o,h=f.useCallback(()=>{a(null),p(!1)},[p]),d=f.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},x=Ci(y,v.getBoundingClientRect()),P=Oi(y,x),b=Ri(g.getBoundingClientRect()),A=Si([...P,...b]);a(A),p(!0)},[p]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=v=>d(v,u),g=v=>d(v,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,d,h]),f.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),P=!Ei(y,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),w.jsx(En,{...e,ref:r})}),[Ai,Pi]=Ne(De,{isInside:!1}),En=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,l=ve(ae,n),c=Le(n),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(ze,u),()=>document.removeEventListener(ze,u)),[u]),f.useEffect(()=>{if(l.trigger){const p=h=>{const d=h.target;d!=null&&d.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),w.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:w.jsxs(ai,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(Yt,{children:o}),w.jsx(Ai,{scope:n,isInside:!0,children:w.jsx(gi,{id:l.contentId,role:"tooltip",children:i||o})})]})})});Rn.displayName=ae;var Sn="TooltipArrow",Tn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Le(n);return Pi(Sn,n).isInside?null:w.jsx(ci,{...i,...o,ref:t})});Tn.displayName=Sn;function Ci(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Oi(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ri(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function Ei(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const a=t[r].x,l=t[r].y,c=t[s].x,u=t[s].y;l>o!=u>o&&n<(c-a)*(o-l)/(u-l)+a&&(i=!i)}return i}function Si(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Ti(t)}function Ti(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ni=An,Li=Pn,Di=Cn,ji=On,Mi=Rn,$i=Tn;function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={exports:{}};/*!
18
18
  Copyright (c) 2018 Jed Watson.
19
19
  Licensed under the MIT License (MIT), see
20
20
  http://jedwatson.github.io/classnames
21
- */var Lt;function Fi(){return Lt||(Lt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})($e)),$e.exports}var Ii=Fi();const Wi=ki(Ii),Bi="_slideDownAndFade_fkagk_1",Hi="_slideLeftAndFade_fkagk_1",zi="_slideUpAndFade_fkagk_1",Vi="_slideRightAndFade_fkagk_1",Ui={"purpur-tooltip":"_purpur-tooltip_fkagk_1","purpur-tooltip__content":"_purpur-tooltip__content_fkagk_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_fkagk_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_fkagk_17",slideDownAndFade:Bi,slideLeftAndFade:Hi,slideUpAndFade:zi,slideRightAndFade:Vi,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_fkagk_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_fkagk_35"},ke=Wi.bind(Ui),Sn={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Tn={START:"start",CENTER:"center",END:"end"},re="purpur-tooltip",jn=oe.forwardRef(({["data-testid"]:e,buttonSize:t="md",children:n,className:o,contentClassName:i,negative:r=!1,position:s=Sn.TOP,align:a=Tn.CENTER,triggerAriaLabel:l,triggerElement:c,...u},p)=>{const[h,d]=oe.useState(!1),m=ke(o,re,`${re}--primary${r?"-negative":""}`),g=w.jsx(kt,{ref:p,"aria-label":l,"aria-expanded":h,variant:nr.TERTIARY_PURPLE,negative:r,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:w.jsx(It,{size:"md"})});return w.jsx("div",{"data-testid":e,className:m,children:w.jsx(ji,{delayDuration:parseInt(br),children:w.jsxs(Ni,{open:h,onOpenChange:d,...u,children:[w.jsx(Li,{asChild:!0,onClick:v=>{v.preventDefault(),d(!0)},children:oe.Children.count(c)===0?g:c}),w.jsx(Di,{children:w.jsxs(Mi,{side:s,align:a,className:ke(i,`${re}__content`,`${re}__content--primary${r?"-negative":""}`),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof n=="string"?w.jsx(Bt,{variant:Wt.PARAGRAPH100,negative:!r,"data-testid":`${e}-paragraph`,children:n}):n,w.jsx($i,{className:ke(`${re}__arrow`,`${re}__arrow--primary${r?"-negative":""}`)})]})})]})})})});jn.displayName="Tooltip";exports.TOOLTIP_ALIGN=Tn;exports.TOOLTIP_POSITION=Sn;exports.Tooltip=jn;
21
+ */var jt;function Fi(){return jt||(jt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})($e)),$e.exports}var Ii=Fi();const Wi=ki(Ii),Bi="_slideDownAndFade_fkagk_1",Hi="_slideLeftAndFade_fkagk_1",zi="_slideUpAndFade_fkagk_1",Vi="_slideRightAndFade_fkagk_1",Ui={"purpur-tooltip":"_purpur-tooltip_fkagk_1","purpur-tooltip__content":"_purpur-tooltip__content_fkagk_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_fkagk_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_fkagk_17",slideDownAndFade:Bi,slideLeftAndFade:Hi,slideUpAndFade:zi,slideRightAndFade:Vi,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_fkagk_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_fkagk_35"},ke=Wi.bind(Ui),Nn={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Ln={START:"start",CENTER:"center",END:"end"},re="purpur-tooltip",Dn=oe.forwardRef(({["data-testid"]:e,buttonSize:t="md",children:n,className:o,contentClassName:i,negative:r=!1,position:s=Nn.TOP,align:a=Ln.CENTER,triggerAriaLabel:l,triggerElement:c,...u},p)=>{const[h,d]=oe.useState(!1),m=ke(o,re,`${re}--primary${r?"-negative":""}`),g=w.jsx(It,{ref:p,"aria-label":l,"aria-expanded":h,variant:rr.TERTIARY_PURPLE,negative:r,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:w.jsx(Bt,{size:"md"})});return w.jsx("div",{"data-testid":e,className:m,children:w.jsx(Ni,{delayDuration:parseInt(br),children:w.jsxs(Li,{open:h,onOpenChange:d,...u,children:[w.jsx(Di,{asChild:!0,onClick:v=>{v.preventDefault(),d(!0)},children:oe.Children.count(c)===0?g:c}),w.jsx(ji,{children:w.jsxs(Mi,{side:s,align:a,className:ke(i,`${re}__content`,`${re}__content--primary${r?"-negative":""}`),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof n=="string"?w.jsx(zt,{variant:Ht.PARAGRAPH100,negative:!r,"data-testid":`${e}-paragraph`,children:n}):n,w.jsx($i,{className:ke(`${re}__arrow`,`${re}__arrow--primary${r?"-negative":""}`)})]})})]})})})});Dn.displayName="Tooltip";exports.TOOLTIP_ALIGN=Ln;exports.TOOLTIP_POSITION=Nn;exports.Tooltip=Dn;
22
22
  //# sourceMappingURL=tooltip.cjs.js.map