@purpurds/tooltip 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/chunked-rush-logs/tooltip.test_unit.chunks.jsonl +4 -4
- package/.rush/temp/ci_build/@purpurds/tooltip/{f7cd05a01b9c166112cdce318a349df8b9343ca0.untar.log → 4f501c3db404d1eb4573885f6a9d50f21209d422.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +4 -4
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +4 -4
- package/.rush/temp/operation/test_unit/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +10 -10
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +6 -6
|
@@ -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.1.3 \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
|
|
6
|
-
{"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m
|
|
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 623\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 487\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
|
|
11
|
-
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.
|
|
10
|
+
{"kind":"O","text":"\u001b[2m Start at \u001b[22m 13:19:00\n"}
|
|
11
|
+
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.52s\u001b[2m (transform 254ms, setup 0ms, collect 402ms, tests 623ms, environment 242ms, prepare 84ms)\u001b[22m\n"}
|
|
12
12
|
{"kind":"O","text":"\n"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time: Fri May
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/tooltip/
|
|
1
|
+
Start time: Fri May 23 2025 13:18:40 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/4f501c3db404d1eb4573885f6a9d50f21209d422"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
|
|
@@ -11,10 +11,10 @@ rendering chunks...
|
|
|
11
11
|
|
|
12
12
|
[vite:dts] Start generate declaration files...
|
|
13
13
|
computing gzip size...
|
|
14
|
-
|
|
15
|
-
dist/tooltip.cjs.js 56.91 kB │ gzip: 19.61 kB │ map: 261.26 kB
|
|
16
|
-
[vite:dts] Declaration files built in 2673ms.
|
|
14
|
+
[vite:dts] Declaration files built in 2542ms.
|
|
17
15
|
|
|
16
|
+
dist/styles.css 1.78 kB │ gzip: 0.49 kB
|
|
17
|
+
dist/tooltip.cjs.js 56.91 kB │ gzip: 19.61 kB │ map: 261.32 kB
|
|
18
18
|
dist/styles.css 1.78 kB │ gzip: 0.49 kB
|
|
19
|
-
dist/tooltip.es.js 82.82 kB │ gzip: 23.55 kB │ map:
|
|
19
|
+
dist/tooltip.es.js 82.82 kB │ gzip: 23.55 kB │ map: 270.04 kB
|
|
20
20
|
✓ built in 4.26s
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
{"kind":"O","text":"\u001b[32m\n"}
|
|
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
|
-
{"kind":"O","text":"\u001b[
|
|
15
|
-
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.cjs.js \u001b[39m\u001b[1m\u001b[2m56.91 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 19.61 kB\u001b[22m\u001b[2m │ map: 261.26 kB\u001b[22m\n"}
|
|
16
|
-
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 2673ms.\n"}
|
|
14
|
+
{"kind":"O","text":"\u001b[32m\u001b[36m[vite:dts]\u001b[32m Declaration files built in 2542ms.\n"}
|
|
17
15
|
{"kind":"O","text":"\u001b[39m\n"}
|
|
16
|
+
{"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"}
|
|
17
|
+
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.cjs.js \u001b[39m\u001b[1m\u001b[2m56.91 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 19.61 kB\u001b[22m\u001b[2m │ map: 261.32 kB\u001b[22m\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[2m82.82 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 23.55 kB\u001b[22m\u001b[2m │ map:
|
|
19
|
+
{"kind":"O","text":"\u001b[2mdist/\u001b[22m\u001b[36mtooltip.es.js \u001b[39m\u001b[1m\u001b[2m82.82 kB\u001b[22m\u001b[1m\u001b[22m\u001b[2m │ gzip: 23.55 kB\u001b[22m\u001b[2m │ map: 270.04 kB\u001b[22m\n"}
|
|
20
20
|
{"kind":"O","text":"\u001b[32m✓ built in 4.26s\u001b[39m\n"}
|
|
@@ -2,11 +2,11 @@ Invoking: vitest run --passWithNoTests
|
|
|
2
2
|
|
|
3
3
|
RUN v3.1.3 /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/components/tooltip
|
|
4
4
|
|
|
5
|
-
✓ src/tooltip.test.tsx (9 tests)
|
|
6
|
-
✓ Tooltip > should open on hover
|
|
5
|
+
✓ src/tooltip.test.tsx (9 tests) 623ms
|
|
6
|
+
✓ Tooltip > should open on hover 487ms
|
|
7
7
|
|
|
8
8
|
Test Files 1 passed (1)
|
|
9
9
|
Tests 9 passed (9)
|
|
10
|
-
Start at
|
|
11
|
-
Duration 1.
|
|
10
|
+
Start at 13:19:00
|
|
11
|
+
Duration 1.52s (transform 254ms, setup 0ms, collect 402ms, tests 623ms, environment 242ms, prepare 84ms)
|
|
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.1.3 \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
|
|
6
|
-
{"kind":"O","text":" \u001b[33m\u001b[2m✓\u001b[22m\u001b[39m Tooltip\u001b[2m > \u001b[22mshould open on hover \u001b[33m
|
|
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 623\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 487\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
|
|
11
|
-
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.
|
|
10
|
+
{"kind":"O","text":"\u001b[2m Start at \u001b[22m 13:19:00\n"}
|
|
11
|
+
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 1.52s\u001b[2m (transform 254ms, setup 0ms, collect 402ms, tests 623ms, environment 242ms, prepare 84ms)\u001b[22m\n"}
|
|
12
12
|
{"kind":"O","text":"\n"}
|
package/dist/LICENSE.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
Name: @purpurds/button
|
|
2
|
-
Version:
|
|
2
|
+
Version: 7.0.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:
|
|
9
|
+
Version: 7.0.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:
|
|
16
|
+
Version: 7.0.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:
|
|
23
|
+
Version: 7.0.0
|
|
24
24
|
License: AGPL-3.0-only
|
|
25
25
|
Private: false
|
|
26
26
|
|
package/dist/tooltip.cjs.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),Q=require("react"),Nt=require("react-dom");function Dt(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=Dt(Q),Lt=Dt(Nt)
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),Q=require("react"),Nt=require("react-dom");function Dt(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=Dt(Q),Lt=Dt(Nt),jn={LG:"lg"};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={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 lt;function In(){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(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,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,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})()}(ct)),ct.exports}var Fn=In();const ut=kn(Fn),Bn="
|
|
5
|
+
*/var lt;function In(){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(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,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,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})()}(ct)),ct.exports}var Fn=In();const ut=kn(Fn),Bn="_rotate_12t9p_1",Wn="_dash_12t9p_1",fe={"purpur-spinner":"_purpur-spinner_12t9p_2",rotate:Bn,"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:Wn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_12t9p_41","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_12t9p_44"},pe="purpur-spinner",Hn={SM:"sm"},qn=({["data-testid"]:e,disabled:t=!1,negative:n=!1,size:o=Hn.SM,...i})=>w.jsx("div",{className:ut([fe[pe],fe[`${pe}--${o}`]]),"data-testid":e,...i,children:w.jsx("svg",{viewBox:"0 0 50 50",children:w.jsx("circle",{className:ut(fe[`${pe}__circle`],{[fe[`${pe}__circle--disabled`]]:t,[fe[`${pe}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ft={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 pt;function Vn(){return pt||(pt=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})()}(ft)),ft.exports}var Un=Vn();const Yn=
|
|
9
|
+
*/var pt;function Vn(){return pt||(pt=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})()}(ft)),ft.exports}var Un=Vn();const Yn=zn(Un),Gn={"purpur-button":"_purpur-button_w455q_1","purpur-button--xs":"_purpur-button--xs_w455q_33","purpur-button--icon-only":"_purpur-button--icon-only_w455q_36","purpur-button--sm":"_purpur-button--sm_w455q_39","purpur-button--md":"_purpur-button--md_w455q_45","purpur-button--lg":"_purpur-button--lg_w455q_51","purpur-button--full-width":"_purpur-button--full-width_w455q_57","purpur-button--primary":"_purpur-button--primary_w455q_60","purpur-button--disabled":"_purpur-button--disabled_w455q_64","purpur-button--primary-negative":"_purpur-button--primary-negative_w455q_70","purpur-button--secondary":"_purpur-button--secondary_w455q_82","purpur-button--secondary-negative":"_purpur-button--secondary-negative_w455q_93","purpur-button--expressive":"_purpur-button--expressive_w455q_104","purpur-button--expressive-negative":"_purpur-button--expressive-negative_w455q_114","purpur-button--negative":"_purpur-button--negative_w455q_126","purpur-button--destructive":"_purpur-button--destructive_w455q_133","purpur-button--destructive-negative":"_purpur-button--destructive-negative_w455q_143","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_w455q_153","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_w455q_166","purpur-button--text-negative":"_purpur-button--text-negative_w455q_181","purpur-button--text":"_purpur-button--text_w455q_181"},Xn={TERTIARY_PURPLE:"tertiary-purple"},Zn=Yn.bind(Gn),J="purpur-button",Kn=({children:e,className:t,["data-testid"]:n,disabled:o=!1,fullWidth:i=!1,iconOnly:r,loading:s=!1,negative:a=!1,onClick:c,size:l="md",variant:u,type:d="button",...h},p)=>{if(r&&u==="destructive")return null;const m=Zn([J,`${J}--${a?`${u}-negative`:u}`,`${J}--${l}`],{[`${J}--icon-only`]:r,[`${J}--negative`]:a,[`${J}--full-width`]:i,[`${J}--disabled`]:o||s},t),g=y=>{o||s?y.preventDefault():c&&c(y)},v=!!h["aria-disabled"]||o||s;return w.jsxs("button",{className:m,"data-testid":n,type:d,ref:p,"aria-disabled":v,onClick:g,...h,children:[s&&w.jsx(qn,{size:l===jn.LG?"xs":"xxs",negative:a,disabled:v})," ",e]})},Mt=Q.forwardRef(Kn);Mt.displayName="Button";function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dt={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 ht;function Qn(){return ht||(ht=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})()}(dt)),dt.exports}var er=Qn();const tr=Jn(er),nr={"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"},rr=tr.bind(nr),mt="purpur-icon",or="md",ir=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),sr=({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 ${ir(n)}>${o}${e}</svg>`},ar=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim()
|
|
13
|
+
*/var ht;function Qn(){return ht||(ht=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})()}(dt)),dt.exports}var er=Qn();const tr=Jn(er),nr={"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"},rr=tr.bind(nr),mt="purpur-icon",or="md",ir=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),sr=({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 ${ir(n)}>${o}${e}</svg>`},ar=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),$t=({["data-testid"]:e,svg:t,allyTitle:n,className:o,size:i=or,...r})=>{const s=sr({content:ar(t.svg),title:n}),a=rr(o,mt,`${mt}--${i}`);return w.jsx("span",{className:a,"data-testid":e,dangerouslySetInnerHTML:{__html:s},...r})};$t.displayName="Icon";const cr={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"},jt=e=>w.jsx($t,{...e,svg:cr});jt.displayName="IconInfo";function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gt={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 vt;function ur(){return vt||(vt=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(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,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,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})()}(gt)),gt.exports}var fr=ur();const pr=lr(fr),de={"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"},kt={PARAGRAPH100:"paragraph-100"},he="purpur-paragraph",It=({["data-testid"]:e,children:t,className:n,disabled:o,enableHyphenation:i=!1,negative:r=!1,variant:s=kt.PARAGRAPH100,...a})=>{const c=pr([n,de[he],de[`${he}--${s}`],{[de[`${he}--hyphens`]]:i,[de[`${he}--disabled`]]:o,[de[`${he}--negative`]]:r}]);return w.jsx("p",{...a,className:c,"data-testid":e,children:t})};It.displayName="Paragraph";const dr="400ms";function q(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 yt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ft(...e){return t=>{let n=!1;const o=e.map(i=>{const r=yt(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():yt(e[i],null)}}}}function ne(...e){return f.useCallback(Ft(...e),e)}function Bt(e,t=[]){let n=[];function o(r,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{var y;const{scope:h,children:p,...m}=d,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||a,v=f.useMemo(()=>m,Object.values(m));return w.jsx(g.Provider,{value:v,children:p})};l.displayName=r+"Provider";function u(d,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||a,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,u]}const i=()=>{const r=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||r;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,hr(i,...t)]}function hr(...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:c,scopeName:l})=>{const d=c(r)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Wt=f.forwardRef((e,t)=>{const{children:n,...o}=e,i=f.Children.toArray(n),r=i.find(mr);if(r){const s=r.props.children,a=i.map(c=>c===r?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return w.jsx(ke,{...o,ref:t,children:f.isValidElement(s)?f.cloneElement(s,void 0,a):null})}return w.jsx(ke,{...o,ref:t,children:n})});Wt.displayName="Slot";var ke=f.forwardRef((e,t)=>{const{children:n,...o}=e;if(f.isValidElement(n)){const i=vr(n),r=gr(o,n.props);return n.type!==f.Fragment&&(r.ref=t?Ft(t,i):i),f.cloneElement(n,r)}return f.Children.count(n)>1?f.Children.only(null):null});ke.displayName="SlotClone";var Ht=({children:e})=>w.jsx(w.Fragment,{children:e});function mr(e){return f.isValidElement(e)&&e.type===Ht}function gr(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 vr(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 yr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=yr.reduce((e,t)=>{const n=f.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Wt: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 xr(e,t){e&&Lt.flushSync(()=>e.dispatchEvent(t))}function ae(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 wr(e,t=globalThis==null?void 0:globalThis.document){const n=ae(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 br="DismissableLayer",Ie="dismissableLayer.update",_r="dismissableLayer.pointerDownOutside",Pr="dismissableLayer.focusOutside",xt,zt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:r,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(zt),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),m=ne(t,A=>d(A)),g=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=u?g.indexOf(u):-1,P=l.layersWithOutsidePointerEventsDisabled.size>0,b=x>=y,_=Or(A=>{const E=A.target,D=[...l.branches].some(R=>R.contains(E));!b||D||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),C=Er(A=>{const E=A.target;[...l.branches].some(R=>R.contains(E))||(r==null||r(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return wr(A=>{x===l.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xt)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wt())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(Ie,A),()=>document.removeEventListener(Ie,A)},[]),w.jsx(K.div,{...c,ref:m,style:{pointerEvents:P?b?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,C.onFocusCapture),onBlurCapture:q(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,_.onPointerDownCapture)})});qt.displayName=br;var Ar="DismissableLayerBranch",Cr=f.forwardRef((e,t)=>{const n=f.useContext(zt),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(K.div,{...e,ref:i})});Cr.displayName=Ar;function Or(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let c=function(){Vt(_r,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}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 Er(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=f.useRef(!1);return f.useEffect(()=>{const i=r=>{r.target&&!o.current&&Vt(Pr,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 wt(){const e=new CustomEvent(Ie);document.dispatchEvent(e)}function Vt(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?xr(i,r):i.dispatchEvent(r)}var ee=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Rr=f.useId||(()=>{}),Tr=0;function Sr(e){const[t,n]=f.useState(Rr());return ee(()=>{n(o=>o??String(Tr++))},[e]),t?`radix-${t}`:""}const Nr=["top","right","bottom","left"],H=Math.min,I=Math.max,Ae=Math.round,be=Math.floor,G=e=>({x:e,y:e}),Dr={left:"right",right:"left",bottom:"top",top:"bottom"},Lr={start:"end",end:"start"};function Fe(e,t,n){return I(e,H(t,n))}function V(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function qe(e){return e==="x"?"y":"x"}function Ve(e){return e==="y"?"height":"width"}function X(e){return["top","bottom"].includes(U(e))?"y":"x"}function Ue(e){return qe(X(e))}function Mr(e,t,n){n===void 0&&(n=!1);const o=ce(e),i=Ue(e),r=Ve(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Ce(s)),[s,Ce(s)]}function jr(e){const t=Ce(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>Lr[t])}function $r(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function kr(e,t,n,o){const i=ce(e);let r=$r(U(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Be)))),r}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>Dr[t])}function Ir(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ut(e){return typeof e!="number"?Ir(e):{top:e,right:e,bottom:e,left:e}}function Oe(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 bt(e,t,n){let{reference:o,floating:i}=e;const r=X(t),s=Ue(t),a=Ve(s),c=U(t),l=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ce(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1);break}return p}const Fr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bt(l,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x,y:P,data:b,reset:_}=await y({x:u,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=x??u,d=P??d,p={...p,[v]:{...p[v],...b}},_&&m<=50&&(m++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(l=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:d}=bt(l,h,c)),g=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function me(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=V(t,e),m=Ut(p),v=a[h?d==="floating"?"reference":"floating":d],y=Oe(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:l,rootBoundary:u,strategy:c})),x=d==="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},_=Oe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:c}):x);return{top:(y.top-_.top+m.top)/b.y,bottom:(_.bottom-y.bottom+m.bottom)/b.y,left:(y.left-_.left+m.left)/b.x,right:(_.right-y.right+m.right)/b.x}}const Br=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};const d=Ut(u),h={x:n,y:o},p=Ue(i),m=Ve(p),g=await s.getDimensions(l),v=p==="y",y=v?"top":"left",x=v?"bottom":"right",P=v?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[p]-h[p]-r.floating[m],_=h[p]-r.reference[p],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=C?C[P]:0;(!A||!await(s.isElement==null?void 0:s.isElement(C)))&&(A=a.floating[P]||r.floating[m]);const E=b/2-_/2,D=A/2-g[m]/2-1,R=H(d[y],D),M=H(d[x],D),j=R,$=A-g[m]-M,T=A/2-g[m]/2+E,L=Fe(j,T,$),k=!c.arrow&&ce(i)!=null&&T!==L&&r.reference[m]/2-(T<j?R:M)-g[m]/2<0,O=k?T<j?T-j:T-$:0;return{[p]:h[p]+O,data:{[p]:L,centerOffset:T-L-O,...k&&{alignmentOffset:O}},reset:k}}}),Wr=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:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=V(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=U(i),x=X(a),P=U(a)===a,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=h||(P||!g?[Ce(a)]:jr(a)),C=m!=="none";!h&&C&&_.push(...kr(a,g,m,b));const A=[a,..._],E=await me(t,v),D=[];let R=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&D.push(E[y]),d){const T=Mr(i,s,b);D.push(E[T[0]],E[T[1]])}if(R=[...R,{placement:i,overflows:D}],!D.every(T=>T<=0)){var M,j;const T=(((M=r.flip)==null?void 0:M.index)||0)+1,L=A[T];if(L)return{data:{index:T,overflows:R},reset:{placement:L}};let k=(j=R.filter(O=>O.overflows[0]<=0).sort((O,S)=>O.overflows[1]-S.overflows[1])[0])==null?void 0:j.placement;if(!k)switch(p){case"bestFit":{var $;const O=($=R.filter(S=>{if(C){const N=X(S.placement);return N===x||N==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(N=>N>0).reduce((N,Le)=>N+Le,0)]).sort((S,N)=>S[1]-N[1])[0])==null?void 0:$[0];O&&(k=O);break}case"initialPlacement":k=a;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function _t(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pt(e){return Nr.some(t=>e[t]>=0)}const Hr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=V(e,t);switch(o){case"referenceHidden":{const r=await me(t,{...i,elementContext:"reference"}),s=_t(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pt(s)}}}case"escaped":{const r=await me(t,{...i,altBoundary:!0}),s=_t(r,n.floating);return{data:{escapedOffsets:s,escaped:Pt(s)}}}default:return{}}}}};async function zr(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=U(n),a=ce(n),c=X(n)==="y",l=["left","top"].includes(s)?-1:1,u=r&&c?-1:1,d=V(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}const qr=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,c=await zr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},Vr=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}}},...c}=V(e,t),l={x:n,y:o},u=await me(t,c),d=X(U(i)),h=qe(d);let p=l[h],m=l[d];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=p+u[v],P=p-u[y];p=Fe(x,p,P)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=m+u[v],P=m-u[y];m=Fe(x,m,P)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},Ur=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:c=!0,crossAxis:l=!0}=V(e,t),u={x:n,y:o},d=X(i),h=qe(d);let p=u[h],m=u[d];const g=V(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const P=h==="y"?"height":"width",b=r.reference[h]-r.floating[P]+v.mainAxis,_=r.reference[h]+r.reference[P]-v.mainAxis;p<b?p=b:p>_&&(p=_)}if(l){var y,x;const P=h==="y"?"width":"height",b=["top","left"].includes(U(i)),_=r.reference[d]-r.floating[P]+(b&&((y=s.offset)==null?void 0:y[d])||0)+(b?0:v.crossAxis),C=r.reference[d]+r.reference[P]+(b?0:((x=s.offset)==null?void 0:x[d])||0)-(b?v.crossAxis:0);m<_?m=_:m>C&&(m=C)}return{[h]:p,[d]:m}}}},Yr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=V(e,t),c=await me(t,a),l=U(n),u=ce(n),d=X(n)==="y",{width:h,height:p}=o.floating;let m,g;l==="top"||l==="bottom"?(m=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,m=u==="end"?"top":"bottom");const v=p-c.top-c.bottom,y=h-c.left-c.right,x=H(p-c[m],v),P=H(h-c[g],y),b=!t.middlewareData.shift;let _=x,C=P;if(d?C=u||b?H(P,y):y:_=u||b?H(x,v):v,b&&!u){const E=I(c.left,0),D=I(c.right,0),R=I(c.top,0),M=I(c.bottom,0);d?C=h-2*(E!==0||D!==0?E+D:I(c.left,c.right)):_=p-2*(R!==0||M!==0?R+M:I(c.top,c.bottom))}await s({...t,availableWidth:C,availableHeight:_});const A=await i.getDimensions(r.floating);return h!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function le(e){return Yt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(Yt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yt(e){return e instanceof Node||e instanceof F(e).Node}function B(e){return e instanceof Element||e instanceof F(e).Element}function z(e){return e instanceof HTMLElement||e instanceof F(e).HTMLElement}function At(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Gr(e){return["table","td","th"].includes(le(e))}function Re(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ye(e){const t=Ge(),n=B(e)?W(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Xr(e){let t=Z(e);for(;z(t)&&!ie(t);){if(Ye(t))return t;if(Re(t))return null;t=Z(t)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ie(e){return["html","body","#document"].includes(le(e))}function W(e){return F(e).getComputedStyle(e)}function Te(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||At(e)&&e.host||Y(e);return At(t)?t.host:t}function Gt(e){const t=Z(e);return ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&ve(t)?t:Gt(t)}function ge(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Gt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const a=We(s);return t.concat(s,s.visualViewport||[],ve(i)?i:[],a&&n?ge(a):[])}return t.concat(i,ge(i,[],n))}function We(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xt(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=z(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 Xe(e){return B(e)?e:e.contextElement}function oe(e){const t=Xe(e);if(!z(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Xt(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 Zr=G(0);function Zt(e){const t=F(e);return!Ge()||!t.visualViewport?Zr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function te(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Xe(e);let s=G(1);t&&(o?B(o)&&(s=oe(o)):s=oe(e));const a=Kr(r,n,o)?Zt(r):G(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const h=F(r),p=o&&B(o)?F(o):o;let m=h,g=We(m);for(;g&&o&&p!==m;){const v=oe(g),y=g.getBoundingClientRect(),x=W(g),P=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,b=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=P,l+=b,m=F(g),g=We(m)}}return Oe({width:u,height:d,x:c,y:l})}function Jr(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=Y(o),a=t?Re(t.floating):!1;if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=G(1);const u=G(0),d=z(o);if((d||!d&&!r)&&((le(o)!=="body"||ve(s))&&(c=Te(o)),z(o))){const h=te(o);l=oe(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function Qr(e){return Array.from(e.getClientRects())}function Kt(e){return te(Y(e)).left+Te(e).scrollLeft}function eo(e){const t=Y(e),n=Te(e),o=e.ownerDocument.body,i=I(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=I(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Kt(e);const a=-n.scrollTop;return W(o).direction==="rtl"&&(s+=I(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function to(e,t){const n=F(e),o=Y(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const l=Ge();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function no(e,t){const n=te(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=z(e)?oe(e):G(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,c=i*r.x,l=o*r.y;return{width:s,height:a,x:c,y:l}}function Ct(e,t,n){let o;if(t==="viewport")o=to(e,n);else if(t==="document")o=eo(Y(e));else if(B(t))o=no(t,n);else{const i=Zt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return Oe(o)}function Jt(e,t){const n=Z(e);return n===t||!B(n)||ie(n)?!1:W(n).position==="fixed"||Jt(n,t)}function ro(e,t){const n=t.get(e);if(n)return n;let o=ge(e,[],!1).filter(a=>B(a)&&le(a)!=="body"),i=null;const r=W(e).position==="fixed";let s=r?Z(e):e;for(;B(s)&&!ie(s);){const a=W(s),c=Ye(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ve(s)&&!c&&Jt(e,s))?o=o.filter(u=>u!==s):i=a,s=Z(s)}return t.set(e,o),o}function oo(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Re(t)?[]:ro(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,u)=>{const d=Ct(t,u,i);return l.top=I(d.top,l.top),l.right=H(d.right,l.right),l.bottom=H(d.bottom,l.bottom),l.left=I(d.left,l.left),l},Ct(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function io(e){const{width:t,height:n}=Xt(e);return{width:t,height:n}}function so(e,t,n){const o=z(t),i=Y(t),r=n==="fixed",s=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!r)if((le(t)!=="body"||ve(i))&&(a=Te(t)),o){const d=te(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&(c.x=Kt(i));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function Me(e){return W(e).position==="static"}function Ot(e,t){return!z(e)||W(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qt(e,t){const n=F(e);if(Re(e))return n;if(!z(e)){let i=Z(e);for(;i&&!ie(i);){if(B(i)&&!Me(i))return i;i=Z(i)}return n}let o=Ot(e,t);for(;o&&Gr(o)&&Me(o);)o=Ot(o,t);return o&&ie(o)&&Me(o)&&!Ye(o)?n:o||Xr(e)||n}const ao=async function(e){const t=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(e.floating);return{reference:so(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function co(e){return W(e).direction==="rtl"}const lo={convertOffsetParentRelativeRectToViewportRelativeRect:Jr,getDocumentElement:Y,getClippingRect:oo,getOffsetParent:Qt,getElementRects:ao,getClientRects:Qr,getDimensions:io,getScale:oe,isElement:B,isRTL:co};function uo(e,t){let n=null,o;const i=Y(e);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=be(u),m=be(i.clientWidth-(l+d)),g=be(i.clientHeight-(u+h)),v=be(l),x={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:I(0,H(1,c))||1};let P=!0;function b(_){const C=_[0].intersectionRatio;if(C!==c){if(!P)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P=!1}try{n=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return s(!0),r}function fo(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:c=!1}=o,l=Xe(e),u=i||r?[...l?ge(l):[],...ge(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const d=l&&a?uo(l,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,g=c?te(e):null;c&&v();function v(){const y=te(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const po=qr,ho=Vr,mo=Wr,go=Yr,vo=Hr,Et=Br,yo=Ur,xo=(e,t,n)=>{const o=new Map,i={platform:lo,...n},r={...i.platform,_c:o};return Fr(e,t,{...i,platform:r})};var Pe=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Ee(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(!Ee(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)&&!Ee(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function en(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rt(e,t){const n=en(e);return Math.round(t*n)/n}function Tt(e){const t=f.useRef(e);return Pe(()=>{t.current=e}),t}function wo(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:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=f.useState(o);Ee(h,o)||p(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!==A.current&&(A.current=O,y(O))},[]),b=r||m,_=s||v,C=f.useRef(null),A=f.useRef(null),E=f.useRef(u),D=c!=null,R=Tt(c),M=Tt(i),j=f.useCallback(()=>{if(!C.current||!A.current)return;const O={placement:t,strategy:n,middleware:h};M.current&&(O.platform=M.current),xo(C.current,A.current,O).then(S=>{const N={...S,isPositioned:!0};$.current&&!Ee(E.current,N)&&(E.current=N,Lt.flushSync(()=>{d(N)}))})},[h,t,n,M]);Pe(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[l]);const $=f.useRef(!1);Pe(()=>($.current=!0,()=>{$.current=!1}),[]),Pe(()=>{if(b&&(C.current=b),_&&(A.current=_),b&&_){if(R.current)return R.current(b,_,j);j()}},[b,_,j,R,D]);const T=f.useMemo(()=>({reference:C,floating:A,setReference:x,setFloating:P}),[x,P]),L=f.useMemo(()=>({reference:b,floating:_}),[b,_]),k=f.useMemo(()=>{const O={position:n,left:0,top:0};if(!L.floating)return O;const S=Rt(L.floating,u.x),N=Rt(L.floating,u.y);return a?{...O,transform:"translate("+S+"px, "+N+"px)",...en(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:N}},[n,a,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:j,refs:T,elements:L,floatingStyles:k}),[u,j,T,L,k])}const bo=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?Et({element:o.current,padding:i}).fn(n):{}:o?Et({element:o,padding:i}).fn(n):{}}}},_o=(e,t)=>({...po(e),options:[e,t]}),Po=(e,t)=>({...ho(e),options:[e,t]}),Ao=(e,t)=>({...yo(e),options:[e,t]}),Co=(e,t)=>({...mo(e),options:[e,t]}),Oo=(e,t)=>({...go(e),options:[e,t]}),Eo=(e,t)=>({...vo(e),options:[e,t]}),Ro=(e,t)=>({...bo(e),options:[e,t]});var To="Arrow",tn=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return w.jsx(K.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"})})});tn.displayName=To;var So=tn;function No(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 c=r.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 Ze="Popper",[nn,rn]=Bt(Ze),[Do,on]=nn(Ze),sn=e=>{const{__scopePopper:t,children:n}=e,[o,i]=f.useState(null);return w.jsx(Do,{scope:t,anchor:o,onAnchorChange:i,children:n})};sn.displayName=Ze;var an="PopperAnchor",cn=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=on(an,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(K.div,{...i,ref:a})});cn.displayName=an;var Ke="PopperContent",[Lo,Mo]=nn(Ke),ln=f.forwardRef((e,t)=>{var tt,nt,rt,ot,it,st;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=e,v=on(Ke,n),[y,x]=f.useState(null),P=ne(t,ue=>x(ue)),[b,_]=f.useState(null),C=No(b),A=(C==null?void 0:C.width)??0,E=(C==null?void 0:C.height)??0,D=o+(r!=="center"?"-"+r:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(l)?l:[l],j=M.length>0,$={padding:R,boundary:M.filter($o),altBoundary:j},{refs:T,floatingStyles:L,placement:k,isPositioned:O,middlewareData:S}=wo({strategy:"fixed",placement:D,whileElementsMounted:(...ue)=>fo(...ue,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[_o({mainAxis:i+E,alignmentAxis:s}),c&&Po({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ao():void 0,...$}),c&&Co({...$}),Oo({...$,apply:({elements:ue,rects:at,availableWidth:Dn,availableHeight:Ln})=>{const{width:Mn,height:jn}=at.reference,we=ue.floating.style;we.setProperty("--radix-popper-available-width",`${Dn}px`),we.setProperty("--radix-popper-available-height",`${Ln}px`),we.setProperty("--radix-popper-anchor-width",`${Mn}px`),we.setProperty("--radix-popper-anchor-height",`${jn}px`)}}),b&&Ro({element:b,padding:a}),ko({arrowWidth:A,arrowHeight:E}),h&&Eo({strategy:"referenceHidden",...$})]}),[N,Le]=pn(k),xe=ae(m);ee(()=>{O&&(xe==null||xe())},[O,xe]);const En=(tt=S.arrow)==null?void 0:tt.x,Rn=(nt=S.arrow)==null?void 0:nt.y,Tn=((rt=S.arrow)==null?void 0:rt.centerOffset)!==0,[Sn,Nn]=f.useState();return ee(()=>{y&&Nn(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:O?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Sn,"--radix-popper-transform-origin":[(ot=S.transformOrigin)==null?void 0:ot.x,(it=S.transformOrigin)==null?void 0:it.y].join(" "),...((st=S.hide)==null?void 0:st.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(Lo,{scope:n,placedSide:N,onArrowChange:_,arrowX:En,arrowY:Rn,shouldHideArrow:Tn,children:w.jsx(K.div,{"data-side":N,"data-align":Le,...g,ref:P,style:{...g.style,animation:O?void 0:"none"}})})})});ln.displayName=Ke;var un="PopperArrow",jo={top:"bottom",right:"left",bottom:"top",left:"right"},fn=f.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=Mo(un,o),s=jo[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(So,{...i,ref:n,style:{...i.style,display:"block"}})})});fn.displayName=un;function $o(e){return e!==null}var ko=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,c=s?0:e.arrowHeight,[l,u]=pn(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+c/2;let m="",g="";return l==="bottom"?(m=s?d:`${h}px`,g=`${-c}px`):l==="top"?(m=s?d:`${h}px`,g=`${o.floating.height+c}px`):l==="right"?(m=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(m=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:m,y:g}}}});function pn(e){const[t,n="center"]=e.split("-");return[t,n]}var Io=sn,Fo=cn,Bo=ln,Wo=fn,Ho="Portal",dn=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?Nt.createPortal(w.jsx(K.div,{...o,ref:t}),s):null});dn.displayName=Ho;function zo(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var Je=e=>{const{present:t,children:n}=e,o=qo(t),i=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),r=ne(o.ref,Vo(i));return typeof n=="function"||o.isPresent?f.cloneElement(i,{ref:r}):null};Je.displayName="Presence";function qo(e){const[t,n]=f.useState(),o=f.useRef({}),i=f.useRef(e),r=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=zo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=_e(o.current);r.current=a==="mounted"?l:"none"},[a]),ee(()=>{const l=o.current,u=i.current;if(u!==e){const h=r.current,p=_e(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),ee(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=_e(o.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=p=>{p.target===t&&(r.current=_e(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function _e(e){return(e==null?void 0:e.animationName)||"none"}function Vo(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 Uo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=Yo({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ae(n),c=f.useCallback(l=>{if(r){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else i(l)},[r,e,i,a]);return[s,c]}function Yo({defaultProp:e,onChange:t}){const n=f.useState(e),[o]=n,i=f.useRef(o),r=ae(t);return f.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}var Go="VisuallyHidden",hn=f.forwardRef((e,t)=>w.jsx(K.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}}));hn.displayName=Go;var Xo=hn,[Se,Ci]=Bt("Tooltip",[rn]),Ne=rn(),mn="TooltipProvider",Zo=700,He="tooltip.open",[Ko,Qe]=Se(mn),gn=e=>{const{__scopeTooltip:t,delayDuration:n=Zo,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=f.useState(!0),c=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),w.jsx(Ko,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:i,children:r})};gn.displayName=mn;var De="Tooltip",[Jo,ye]=Se(De),vn=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,c=Qe(De,e.__scopeTooltip),l=Ne(t),[u,d]=f.useState(null),h=Sr(),p=f.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,v=f.useRef(!1),[y=!1,x]=Uo({prop:o,defaultProp:i,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(He))):c.onClose(),r==null||r(A)}}),P=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),b=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0),p.current=0},g)},[g,x]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(Io,{...l,children:w.jsx(Jo,{scope:t,contentId:h,open:y,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?C():b()},[c.isOpenDelayed,C,b]),onTriggerLeave:f.useCallback(()=>{m?_():(window.clearTimeout(p.current),p.current=0)},[_,m]),onOpen:b,onClose:_,disableHoverableContent:m,children:n})})};vn.displayName=De;var ze="TooltipTrigger",yn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ye(ze,n),r=Qe(ze,n),s=Ne(n),a=f.useRef(null),c=ne(t,a,i.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(Fo,{asChild:!0,...s,children:w.jsx(K.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:c,onPointerMove:q(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:q(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:q(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:q(e.onBlur,i.onClose),onClick:q(e.onClick,i.onClose)})})});yn.displayName=ze;var et="TooltipPortal",[Qo,ei]=Se(et,{forceMount:void 0}),xn=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ye(et,t);return w.jsx(Qo,{scope:t,forceMount:n,children:w.jsx(Je,{present:n||r.open,children:w.jsx(dn,{asChild:!0,container:i,children:o})})})};xn.displayName=et;var se="TooltipContent",wn=f.forwardRef((e,t)=>{const n=ei(se,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ye(se,e.__scopeTooltip);return w.jsx(Je,{present:o||s.open,children:s.disableHoverableContent?w.jsx(bn,{side:i,...r,ref:t}):w.jsx(ti,{side:i,...r,ref:t})})}),ti=f.forwardRef((e,t)=>{const n=ye(se,e.__scopeTooltip),o=Qe(se,e.__scopeTooltip),i=f.useRef(null),r=ne(t,i),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=o,h=f.useCallback(()=>{a(null),d(!1)},[d]),p=f.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},x=oi(y,v.getBoundingClientRect()),P=ii(y,x),b=si(g.getBoundingClientRect()),_=ci([...P,...b]);a(_),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&u){const m=v=>p(v,u),g=v=>p(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[c,u,p,h]),f.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),P=!ai(y,s);x?h():P&&(h(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,h]),w.jsx(bn,{...e,ref:r})}),[ni,ri]=Se(De,{isInside:!1}),bn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,c=ye(se,n),l=Ne(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(He,u),()=>document.removeEventListener(He,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),w.jsx(qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(Bo,{"data-state":c.stateAttribute,...l,...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(Ht,{children:o}),w.jsx(ni,{scope:n,isInside:!0,children:w.jsx(Xo,{id:c.contentId,role:"tooltip",children:i||o})})]})})});wn.displayName=se;var _n="TooltipArrow",Pn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Ne(n);return ri(_n,n).isInside?null:w.jsx(Wo,{...i,...o,ref:t})});Pn.displayName=_n;function oi(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 ii(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 si(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 ai(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,c=t[r].y,l=t[s].x,u=t[s].y;c>o!=u>o&&n<(l-a)*(o-c)/(u-c)+a&&(i=!i)}return i}function ci(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),li(t)}function li(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 ui=gn,fi=vn,pi=yn,di=xn,hi=wn,mi=Pn;function gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var je={exports:{}};/*!
|
|
17
|
+
*/var vt;function ur(){return vt||(vt=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(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,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,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})()}(gt)),gt.exports}var fr=ur();const pr=lr(fr),de={"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"},kt={PARAGRAPH100:"paragraph-100"},he="purpur-paragraph",It=({["data-testid"]:e,children:t,className:n,disabled:o,enableHyphenation:i=!1,negative:r=!1,variant:s=kt.PARAGRAPH100,...a})=>{const c=pr([n,de[he],de[`${he}--${s}`],{[de[`${he}--hyphens`]]:i,[de[`${he}--disabled`]]:o,[de[`${he}--negative`]]:r}]);return w.jsx("p",{...a,className:c,"data-testid":e,children:t})};It.displayName="Paragraph";const dr="400ms";function z(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 yt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ft(...e){return t=>{let n=!1;const o=e.map(i=>{const r=yt(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():yt(e[i],null)}}}}function ne(...e){return f.useCallback(Ft(...e),e)}function Bt(e,t=[]){let n=[];function o(r,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{var y;const{scope:h,children:p,...m}=d,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||a,v=f.useMemo(()=>m,Object.values(m));return w.jsx(g.Provider,{value:v,children:p})};l.displayName=r+"Provider";function u(d,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||a,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,u]}const i=()=>{const r=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||r;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,hr(i,...t)]}function hr(...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:c,scopeName:l})=>{const d=c(r)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Wt=f.forwardRef((e,t)=>{const{children:n,...o}=e,i=f.Children.toArray(n),r=i.find(mr);if(r){const s=r.props.children,a=i.map(c=>c===r?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return w.jsx(ke,{...o,ref:t,children:f.isValidElement(s)?f.cloneElement(s,void 0,a):null})}return w.jsx(ke,{...o,ref:t,children:n})});Wt.displayName="Slot";var ke=f.forwardRef((e,t)=>{const{children:n,...o}=e;if(f.isValidElement(n)){const i=vr(n),r=gr(o,n.props);return n.type!==f.Fragment&&(r.ref=t?Ft(t,i):i),f.cloneElement(n,r)}return f.Children.count(n)>1?f.Children.only(null):null});ke.displayName="SlotClone";var Ht=({children:e})=>w.jsx(w.Fragment,{children:e});function mr(e){return f.isValidElement(e)&&e.type===Ht}function gr(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 vr(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 yr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=yr.reduce((e,t)=>{const n=f.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Wt: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 xr(e,t){e&&Lt.flushSync(()=>e.dispatchEvent(t))}function ae(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 wr(e,t=globalThis==null?void 0:globalThis.document){const n=ae(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 br="DismissableLayer",Ie="dismissableLayer.update",_r="dismissableLayer.pointerDownOutside",Pr="dismissableLayer.focusOutside",xt,qt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:r,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(qt),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),m=ne(t,A=>d(A)),g=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=u?g.indexOf(u):-1,P=l.layersWithOutsidePointerEventsDisabled.size>0,b=x>=y,_=Or(A=>{const E=A.target,D=[...l.branches].some(R=>R.contains(E));!b||D||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),C=Er(A=>{const E=A.target;[...l.branches].some(R=>R.contains(E))||(r==null||r(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return wr(A=>{x===l.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xt)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wt())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(Ie,A),()=>document.removeEventListener(Ie,A)},[]),w.jsx(K.div,{...c,ref:m,style:{pointerEvents:P?b?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,C.onFocusCapture),onBlurCapture:z(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,_.onPointerDownCapture)})});zt.displayName=br;var Ar="DismissableLayerBranch",Cr=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(K.div,{...e,ref:i})});Cr.displayName=Ar;function Or(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let c=function(){Vt(_r,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}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 Er(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=f.useRef(!1);return f.useEffect(()=>{const i=r=>{r.target&&!o.current&&Vt(Pr,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 wt(){const e=new CustomEvent(Ie);document.dispatchEvent(e)}function Vt(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?xr(i,r):i.dispatchEvent(r)}var ee=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Rr=f.useId||(()=>{}),Tr=0;function Sr(e){const[t,n]=f.useState(Rr());return ee(()=>{n(o=>o??String(Tr++))},[e]),t?`radix-${t}`:""}const Nr=["top","right","bottom","left"],H=Math.min,I=Math.max,Ae=Math.round,be=Math.floor,G=e=>({x:e,y:e}),Dr={left:"right",right:"left",bottom:"top",top:"bottom"},Lr={start:"end",end:"start"};function Fe(e,t,n){return I(e,H(t,n))}function V(e,t){return typeof e=="function"?e(t):e}function U(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function ze(e){return e==="x"?"y":"x"}function Ve(e){return e==="y"?"height":"width"}function X(e){return["top","bottom"].includes(U(e))?"y":"x"}function Ue(e){return ze(X(e))}function Mr(e,t,n){n===void 0&&(n=!1);const o=ce(e),i=Ue(e),r=Ve(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Ce(s)),[s,Ce(s)]}function $r(e){const t=Ce(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>Lr[t])}function jr(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function kr(e,t,n,o){const i=ce(e);let r=jr(U(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Be)))),r}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>Dr[t])}function Ir(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ut(e){return typeof e!="number"?Ir(e):{top:e,right:e,bottom:e,left:e}}function Oe(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 bt(e,t,n){let{reference:o,floating:i}=e;const r=X(t),s=Ue(t),a=Ve(s),c=U(t),l=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ce(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1);break}return p}const Fr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bt(l,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x,y:P,data:b,reset:_}=await y({x:u,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=x??u,d=P??d,p={...p,[v]:{...p[v],...b}},_&&m<=50&&(m++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(l=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:d}=bt(l,h,c)),g=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function me(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=V(t,e),m=Ut(p),v=a[h?d==="floating"?"reference":"floating":d],y=Oe(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:l,rootBoundary:u,strategy:c})),x=d==="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},_=Oe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:c}):x);return{top:(y.top-_.top+m.top)/b.y,bottom:(_.bottom-y.bottom+m.bottom)/b.y,left:(y.left-_.left+m.left)/b.x,right:(_.right-y.right+m.right)/b.x}}const Br=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=V(e,t)||{};if(l==null)return{};const d=Ut(u),h={x:n,y:o},p=Ue(i),m=Ve(p),g=await s.getDimensions(l),v=p==="y",y=v?"top":"left",x=v?"bottom":"right",P=v?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[p]-h[p]-r.floating[m],_=h[p]-r.reference[p],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=C?C[P]:0;(!A||!await(s.isElement==null?void 0:s.isElement(C)))&&(A=a.floating[P]||r.floating[m]);const E=b/2-_/2,D=A/2-g[m]/2-1,R=H(d[y],D),M=H(d[x],D),$=R,j=A-g[m]-M,T=A/2-g[m]/2+E,L=Fe($,T,j),k=!c.arrow&&ce(i)!=null&&T!==L&&r.reference[m]/2-(T<$?R:M)-g[m]/2<0,O=k?T<$?T-$:T-j:0;return{[p]:h[p]+O,data:{[p]:L,centerOffset:T-L-O,...k&&{alignmentOffset:O}},reset:k}}}),Wr=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:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=V(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=U(i),x=X(a),P=U(a)===a,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=h||(P||!g?[Ce(a)]:$r(a)),C=m!=="none";!h&&C&&_.push(...kr(a,g,m,b));const A=[a,..._],E=await me(t,v),D=[];let R=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&D.push(E[y]),d){const T=Mr(i,s,b);D.push(E[T[0]],E[T[1]])}if(R=[...R,{placement:i,overflows:D}],!D.every(T=>T<=0)){var M,$;const T=(((M=r.flip)==null?void 0:M.index)||0)+1,L=A[T];if(L)return{data:{index:T,overflows:R},reset:{placement:L}};let k=($=R.filter(O=>O.overflows[0]<=0).sort((O,S)=>O.overflows[1]-S.overflows[1])[0])==null?void 0:$.placement;if(!k)switch(p){case"bestFit":{var j;const O=(j=R.filter(S=>{if(C){const N=X(S.placement);return N===x||N==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(N=>N>0).reduce((N,Le)=>N+Le,0)]).sort((S,N)=>S[1]-N[1])[0])==null?void 0:j[0];O&&(k=O);break}case"initialPlacement":k=a;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function _t(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pt(e){return Nr.some(t=>e[t]>=0)}const Hr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=V(e,t);switch(o){case"referenceHidden":{const r=await me(t,{...i,elementContext:"reference"}),s=_t(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pt(s)}}}case"escaped":{const r=await me(t,{...i,altBoundary:!0}),s=_t(r,n.floating);return{data:{escapedOffsets:s,escaped:Pt(s)}}}default:return{}}}}};async function qr(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=U(n),a=ce(n),c=X(n)==="y",l=["left","top"].includes(s)?-1:1,u=r&&c?-1:1,d=V(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}const zr=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,c=await qr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},Vr=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}}},...c}=V(e,t),l={x:n,y:o},u=await me(t,c),d=X(U(i)),h=ze(d);let p=l[h],m=l[d];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=p+u[v],P=p-u[y];p=Fe(x,p,P)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=m+u[v],P=m-u[y];m=Fe(x,m,P)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},Ur=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:c=!0,crossAxis:l=!0}=V(e,t),u={x:n,y:o},d=X(i),h=ze(d);let p=u[h],m=u[d];const g=V(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const P=h==="y"?"height":"width",b=r.reference[h]-r.floating[P]+v.mainAxis,_=r.reference[h]+r.reference[P]-v.mainAxis;p<b?p=b:p>_&&(p=_)}if(l){var y,x;const P=h==="y"?"width":"height",b=["top","left"].includes(U(i)),_=r.reference[d]-r.floating[P]+(b&&((y=s.offset)==null?void 0:y[d])||0)+(b?0:v.crossAxis),C=r.reference[d]+r.reference[P]+(b?0:((x=s.offset)==null?void 0:x[d])||0)-(b?v.crossAxis:0);m<_?m=_:m>C&&(m=C)}return{[h]:p,[d]:m}}}},Yr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=V(e,t),c=await me(t,a),l=U(n),u=ce(n),d=X(n)==="y",{width:h,height:p}=o.floating;let m,g;l==="top"||l==="bottom"?(m=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,m=u==="end"?"top":"bottom");const v=p-c.top-c.bottom,y=h-c.left-c.right,x=H(p-c[m],v),P=H(h-c[g],y),b=!t.middlewareData.shift;let _=x,C=P;if(d?C=u||b?H(P,y):y:_=u||b?H(x,v):v,b&&!u){const E=I(c.left,0),D=I(c.right,0),R=I(c.top,0),M=I(c.bottom,0);d?C=h-2*(E!==0||D!==0?E+D:I(c.left,c.right)):_=p-2*(R!==0||M!==0?R+M:I(c.top,c.bottom))}await s({...t,availableWidth:C,availableHeight:_});const A=await i.getDimensions(r.floating);return h!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function le(e){return Yt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(Yt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yt(e){return e instanceof Node||e instanceof F(e).Node}function B(e){return e instanceof Element||e instanceof F(e).Element}function q(e){return e instanceof HTMLElement||e instanceof F(e).HTMLElement}function At(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Gr(e){return["table","td","th"].includes(le(e))}function Re(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ye(e){const t=Ge(),n=B(e)?W(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Xr(e){let t=Z(e);for(;q(t)&&!ie(t);){if(Ye(t))return t;if(Re(t))return null;t=Z(t)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ie(e){return["html","body","#document"].includes(le(e))}function W(e){return F(e).getComputedStyle(e)}function Te(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||At(e)&&e.host||Y(e);return At(t)?t.host:t}function Gt(e){const t=Z(e);return ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&ve(t)?t:Gt(t)}function ge(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Gt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const a=We(s);return t.concat(s,s.visualViewport||[],ve(i)?i:[],a&&n?ge(a):[])}return t.concat(i,ge(i,[],n))}function We(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xt(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=q(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 Xe(e){return B(e)?e:e.contextElement}function oe(e){const t=Xe(e);if(!q(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Xt(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 Zr=G(0);function Zt(e){const t=F(e);return!Ge()||!t.visualViewport?Zr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function te(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Xe(e);let s=G(1);t&&(o?B(o)&&(s=oe(o)):s=oe(e));const a=Kr(r,n,o)?Zt(r):G(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const h=F(r),p=o&&B(o)?F(o):o;let m=h,g=We(m);for(;g&&o&&p!==m;){const v=oe(g),y=g.getBoundingClientRect(),x=W(g),P=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,b=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=P,l+=b,m=F(g),g=We(m)}}return Oe({width:u,height:d,x:c,y:l})}function Jr(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=Y(o),a=t?Re(t.floating):!1;if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=G(1);const u=G(0),d=q(o);if((d||!d&&!r)&&((le(o)!=="body"||ve(s))&&(c=Te(o)),q(o))){const h=te(o);l=oe(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function Qr(e){return Array.from(e.getClientRects())}function Kt(e){return te(Y(e)).left+Te(e).scrollLeft}function eo(e){const t=Y(e),n=Te(e),o=e.ownerDocument.body,i=I(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=I(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Kt(e);const a=-n.scrollTop;return W(o).direction==="rtl"&&(s+=I(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function to(e,t){const n=F(e),o=Y(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const l=Ge();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function no(e,t){const n=te(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=q(e)?oe(e):G(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,c=i*r.x,l=o*r.y;return{width:s,height:a,x:c,y:l}}function Ct(e,t,n){let o;if(t==="viewport")o=to(e,n);else if(t==="document")o=eo(Y(e));else if(B(t))o=no(t,n);else{const i=Zt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return Oe(o)}function Jt(e,t){const n=Z(e);return n===t||!B(n)||ie(n)?!1:W(n).position==="fixed"||Jt(n,t)}function ro(e,t){const n=t.get(e);if(n)return n;let o=ge(e,[],!1).filter(a=>B(a)&&le(a)!=="body"),i=null;const r=W(e).position==="fixed";let s=r?Z(e):e;for(;B(s)&&!ie(s);){const a=W(s),c=Ye(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ve(s)&&!c&&Jt(e,s))?o=o.filter(u=>u!==s):i=a,s=Z(s)}return t.set(e,o),o}function oo(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Re(t)?[]:ro(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,u)=>{const d=Ct(t,u,i);return l.top=I(d.top,l.top),l.right=H(d.right,l.right),l.bottom=H(d.bottom,l.bottom),l.left=I(d.left,l.left),l},Ct(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function io(e){const{width:t,height:n}=Xt(e);return{width:t,height:n}}function so(e,t,n){const o=q(t),i=Y(t),r=n==="fixed",s=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!r)if((le(t)!=="body"||ve(i))&&(a=Te(t)),o){const d=te(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&(c.x=Kt(i));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function Me(e){return W(e).position==="static"}function Ot(e,t){return!q(e)||W(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qt(e,t){const n=F(e);if(Re(e))return n;if(!q(e)){let i=Z(e);for(;i&&!ie(i);){if(B(i)&&!Me(i))return i;i=Z(i)}return n}let o=Ot(e,t);for(;o&&Gr(o)&&Me(o);)o=Ot(o,t);return o&&ie(o)&&Me(o)&&!Ye(o)?n:o||Xr(e)||n}const ao=async function(e){const t=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(e.floating);return{reference:so(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function co(e){return W(e).direction==="rtl"}const lo={convertOffsetParentRelativeRectToViewportRelativeRect:Jr,getDocumentElement:Y,getClippingRect:oo,getOffsetParent:Qt,getElementRects:ao,getClientRects:Qr,getDimensions:io,getScale:oe,isElement:B,isRTL:co};function uo(e,t){let n=null,o;const i=Y(e);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=be(u),m=be(i.clientWidth-(l+d)),g=be(i.clientHeight-(u+h)),v=be(l),x={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:I(0,H(1,c))||1};let P=!0;function b(_){const C=_[0].intersectionRatio;if(C!==c){if(!P)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P=!1}try{n=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return s(!0),r}function fo(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:c=!1}=o,l=Xe(e),u=i||r?[...l?ge(l):[],...ge(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const d=l&&a?uo(l,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,g=c?te(e):null;c&&v();function v(){const y=te(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const po=zr,ho=Vr,mo=Wr,go=Yr,vo=Hr,Et=Br,yo=Ur,xo=(e,t,n)=>{const o=new Map,i={platform:lo,...n},r={...i.platform,_c:o};return Fr(e,t,{...i,platform:r})};var Pe=typeof document<"u"?Q.useLayoutEffect:Q.useEffect;function Ee(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(!Ee(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)&&!Ee(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function en(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rt(e,t){const n=en(e);return Math.round(t*n)/n}function Tt(e){const t=f.useRef(e);return Pe(()=>{t.current=e}),t}function wo(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:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=f.useState(o);Ee(h,o)||p(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!==A.current&&(A.current=O,y(O))},[]),b=r||m,_=s||v,C=f.useRef(null),A=f.useRef(null),E=f.useRef(u),D=c!=null,R=Tt(c),M=Tt(i),$=f.useCallback(()=>{if(!C.current||!A.current)return;const O={placement:t,strategy:n,middleware:h};M.current&&(O.platform=M.current),xo(C.current,A.current,O).then(S=>{const N={...S,isPositioned:!0};j.current&&!Ee(E.current,N)&&(E.current=N,Lt.flushSync(()=>{d(N)}))})},[h,t,n,M]);Pe(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[l]);const j=f.useRef(!1);Pe(()=>(j.current=!0,()=>{j.current=!1}),[]),Pe(()=>{if(b&&(C.current=b),_&&(A.current=_),b&&_){if(R.current)return R.current(b,_,$);$()}},[b,_,$,R,D]);const T=f.useMemo(()=>({reference:C,floating:A,setReference:x,setFloating:P}),[x,P]),L=f.useMemo(()=>({reference:b,floating:_}),[b,_]),k=f.useMemo(()=>{const O={position:n,left:0,top:0};if(!L.floating)return O;const S=Rt(L.floating,u.x),N=Rt(L.floating,u.y);return a?{...O,transform:"translate("+S+"px, "+N+"px)",...en(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:N}},[n,a,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:$,refs:T,elements:L,floatingStyles:k}),[u,$,T,L,k])}const bo=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?Et({element:o.current,padding:i}).fn(n):{}:o?Et({element:o,padding:i}).fn(n):{}}}},_o=(e,t)=>({...po(e),options:[e,t]}),Po=(e,t)=>({...ho(e),options:[e,t]}),Ao=(e,t)=>({...yo(e),options:[e,t]}),Co=(e,t)=>({...mo(e),options:[e,t]}),Oo=(e,t)=>({...go(e),options:[e,t]}),Eo=(e,t)=>({...vo(e),options:[e,t]}),Ro=(e,t)=>({...bo(e),options:[e,t]});var To="Arrow",tn=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return w.jsx(K.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"})})});tn.displayName=To;var So=tn;function No(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 c=r.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 Ze="Popper",[nn,rn]=Bt(Ze),[Do,on]=nn(Ze),sn=e=>{const{__scopePopper:t,children:n}=e,[o,i]=f.useState(null);return w.jsx(Do,{scope:t,anchor:o,onAnchorChange:i,children:n})};sn.displayName=Ze;var an="PopperAnchor",cn=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=on(an,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(K.div,{...i,ref:a})});cn.displayName=an;var Ke="PopperContent",[Lo,Mo]=nn(Ke),ln=f.forwardRef((e,t)=>{var tt,nt,rt,ot,it,st;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=e,v=on(Ke,n),[y,x]=f.useState(null),P=ne(t,ue=>x(ue)),[b,_]=f.useState(null),C=No(b),A=(C==null?void 0:C.width)??0,E=(C==null?void 0:C.height)??0,D=o+(r!=="center"?"-"+r:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(l)?l:[l],$=M.length>0,j={padding:R,boundary:M.filter(jo),altBoundary:$},{refs:T,floatingStyles:L,placement:k,isPositioned:O,middlewareData:S}=wo({strategy:"fixed",placement:D,whileElementsMounted:(...ue)=>fo(...ue,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[_o({mainAxis:i+E,alignmentAxis:s}),c&&Po({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ao():void 0,...j}),c&&Co({...j}),Oo({...j,apply:({elements:ue,rects:at,availableWidth:Dn,availableHeight:Ln})=>{const{width:Mn,height:$n}=at.reference,we=ue.floating.style;we.setProperty("--radix-popper-available-width",`${Dn}px`),we.setProperty("--radix-popper-available-height",`${Ln}px`),we.setProperty("--radix-popper-anchor-width",`${Mn}px`),we.setProperty("--radix-popper-anchor-height",`${$n}px`)}}),b&&Ro({element:b,padding:a}),ko({arrowWidth:A,arrowHeight:E}),h&&Eo({strategy:"referenceHidden",...j})]}),[N,Le]=pn(k),xe=ae(m);ee(()=>{O&&(xe==null||xe())},[O,xe]);const En=(tt=S.arrow)==null?void 0:tt.x,Rn=(nt=S.arrow)==null?void 0:nt.y,Tn=((rt=S.arrow)==null?void 0:rt.centerOffset)!==0,[Sn,Nn]=f.useState();return ee(()=>{y&&Nn(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:O?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Sn,"--radix-popper-transform-origin":[(ot=S.transformOrigin)==null?void 0:ot.x,(it=S.transformOrigin)==null?void 0:it.y].join(" "),...((st=S.hide)==null?void 0:st.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(Lo,{scope:n,placedSide:N,onArrowChange:_,arrowX:En,arrowY:Rn,shouldHideArrow:Tn,children:w.jsx(K.div,{"data-side":N,"data-align":Le,...g,ref:P,style:{...g.style,animation:O?void 0:"none"}})})})});ln.displayName=Ke;var un="PopperArrow",$o={top:"bottom",right:"left",bottom:"top",left:"right"},fn=f.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=Mo(un,o),s=$o[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(So,{...i,ref:n,style:{...i.style,display:"block"}})})});fn.displayName=un;function jo(e){return e!==null}var ko=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,c=s?0:e.arrowHeight,[l,u]=pn(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+c/2;let m="",g="";return l==="bottom"?(m=s?d:`${h}px`,g=`${-c}px`):l==="top"?(m=s?d:`${h}px`,g=`${o.floating.height+c}px`):l==="right"?(m=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(m=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:m,y:g}}}});function pn(e){const[t,n="center"]=e.split("-");return[t,n]}var Io=sn,Fo=cn,Bo=ln,Wo=fn,Ho="Portal",dn=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?Nt.createPortal(w.jsx(K.div,{...o,ref:t}),s):null});dn.displayName=Ho;function qo(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var Je=e=>{const{present:t,children:n}=e,o=zo(t),i=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),r=ne(o.ref,Vo(i));return typeof n=="function"||o.isPresent?f.cloneElement(i,{ref:r}):null};Je.displayName="Presence";function zo(e){const[t,n]=f.useState(),o=f.useRef({}),i=f.useRef(e),r=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=qo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=_e(o.current);r.current=a==="mounted"?l:"none"},[a]),ee(()=>{const l=o.current,u=i.current;if(u!==e){const h=r.current,p=_e(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),ee(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=_e(o.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=p=>{p.target===t&&(r.current=_e(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function _e(e){return(e==null?void 0:e.animationName)||"none"}function Vo(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 Uo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=Yo({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ae(n),c=f.useCallback(l=>{if(r){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else i(l)},[r,e,i,a]);return[s,c]}function Yo({defaultProp:e,onChange:t}){const n=f.useState(e),[o]=n,i=f.useRef(o),r=ae(t);return f.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}var Go="VisuallyHidden",hn=f.forwardRef((e,t)=>w.jsx(K.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}}));hn.displayName=Go;var Xo=hn,[Se,Ci]=Bt("Tooltip",[rn]),Ne=rn(),mn="TooltipProvider",Zo=700,He="tooltip.open",[Ko,Qe]=Se(mn),gn=e=>{const{__scopeTooltip:t,delayDuration:n=Zo,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=f.useState(!0),c=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),w.jsx(Ko,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:i,children:r})};gn.displayName=mn;var De="Tooltip",[Jo,ye]=Se(De),vn=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,c=Qe(De,e.__scopeTooltip),l=Ne(t),[u,d]=f.useState(null),h=Sr(),p=f.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,v=f.useRef(!1),[y=!1,x]=Uo({prop:o,defaultProp:i,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(He))):c.onClose(),r==null||r(A)}}),P=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),b=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,x(!0)},[x]),_=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0),p.current=0},g)},[g,x]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(Io,{...l,children:w.jsx(Jo,{scope:t,contentId:h,open:y,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?C():b()},[c.isOpenDelayed,C,b]),onTriggerLeave:f.useCallback(()=>{m?_():(window.clearTimeout(p.current),p.current=0)},[_,m]),onOpen:b,onClose:_,disableHoverableContent:m,children:n})})};vn.displayName=De;var qe="TooltipTrigger",yn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ye(qe,n),r=Qe(qe,n),s=Ne(n),a=f.useRef(null),c=ne(t,a,i.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(Fo,{asChild:!0,...s,children:w.jsx(K.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:c,onPointerMove:z(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:z(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:z(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:z(e.onBlur,i.onClose),onClick:z(e.onClick,i.onClose)})})});yn.displayName=qe;var et="TooltipPortal",[Qo,ei]=Se(et,{forceMount:void 0}),xn=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ye(et,t);return w.jsx(Qo,{scope:t,forceMount:n,children:w.jsx(Je,{present:n||r.open,children:w.jsx(dn,{asChild:!0,container:i,children:o})})})};xn.displayName=et;var se="TooltipContent",wn=f.forwardRef((e,t)=>{const n=ei(se,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ye(se,e.__scopeTooltip);return w.jsx(Je,{present:o||s.open,children:s.disableHoverableContent?w.jsx(bn,{side:i,...r,ref:t}):w.jsx(ti,{side:i,...r,ref:t})})}),ti=f.forwardRef((e,t)=>{const n=ye(se,e.__scopeTooltip),o=Qe(se,e.__scopeTooltip),i=f.useRef(null),r=ne(t,i),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=o,h=f.useCallback(()=>{a(null),d(!1)},[d]),p=f.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},x=oi(y,v.getBoundingClientRect()),P=ii(y,x),b=si(g.getBoundingClientRect()),_=ci([...P,...b]);a(_),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&u){const m=v=>p(v,u),g=v=>p(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[c,u,p,h]),f.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),P=!ai(y,s);x?h():P&&(h(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,h]),w.jsx(bn,{...e,ref:r})}),[ni,ri]=Se(De,{isInside:!1}),bn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,c=ye(se,n),l=Ne(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(He,u),()=>document.removeEventListener(He,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),w.jsx(zt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(Bo,{"data-state":c.stateAttribute,...l,...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(Ht,{children:o}),w.jsx(ni,{scope:n,isInside:!0,children:w.jsx(Xo,{id:c.contentId,role:"tooltip",children:i||o})})]})})});wn.displayName=se;var _n="TooltipArrow",Pn=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Ne(n);return ri(_n,n).isInside?null:w.jsx(Wo,{...i,...o,ref:t})});Pn.displayName=_n;function oi(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 ii(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 si(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 ai(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,c=t[r].y,l=t[s].x,u=t[s].y;c>o!=u>o&&n<(l-a)*(o-c)/(u-c)+a&&(i=!i)}return i}function ci(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),li(t)}function li(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 ui=gn,fi=vn,pi=yn,di=xn,hi=wn,mi=Pn;function gi(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 St;function vi(){return St||(St=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})()}(
|
|
21
|
+
*/var St;function vi(){return St||(St=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 yi=vi();const xi=gi(yi),wi="_slideDownAndFade_fkagk_1",bi="_slideLeftAndFade_fkagk_1",_i="_slideUpAndFade_fkagk_1",Pi="_slideRightAndFade_fkagk_1",Ai={"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:wi,slideLeftAndFade:bi,slideUpAndFade:_i,slideRightAndFade:Pi,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_fkagk_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_fkagk_35"},je=xi.bind(Ai),An={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Cn={START:"start",CENTER:"center",END:"end"},re="purpur-tooltip",On=Q.forwardRef(({["data-testid"]:e,buttonSize:t="md",children:n,className:o,contentClassName:i,negative:r=!1,position:s=An.TOP,align:a=Cn.CENTER,triggerAriaLabel:c,triggerElement:l,...u},d)=>{const[h,p]=Q.useState(!1),m=je([o,re,`${re}--primary${r?"-negative":""}`]),g=w.jsx(Mt,{ref:d,"aria-label":c,variant:Xn.TERTIARY_PURPLE,negative:r,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:w.jsx(jt,{size:"md"})});return w.jsx("div",{"data-testid":e,className:m,children:w.jsx(ui,{delayDuration:parseInt(dr),children:w.jsxs(fi,{open:h,onOpenChange:p,...u,children:[w.jsx(pi,{asChild:!0,onClick:v=>{v.preventDefault(),p(!0)},children:Q.Children.count(l)===0?g:l}),w.jsx(di,{children:w.jsxs(hi,{side:s,align:a,className:je([i,`${re}__content`,`${re}__content--primary${r?"-negative":""}`]),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof n=="string"?w.jsx(It,{variant:kt.PARAGRAPH100,negative:!r,"data-testid":`${e}-paragraph`,children:n}):n,w.jsx(mi,{className:je([`${re}__arrow`,`${re}__arrow--primary${r?"-negative":""}`])})]})})]})})})});On.displayName="Tooltip";exports.TOOLTIP_ALIGN=Cn;exports.TOOLTIP_POSITION=An;exports.Tooltip=On;
|
|
22
22
|
//# sourceMappingURL=tooltip.cjs.js.map
|