@indxsearch/systm 1.2.3 → 1.2.5
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/dist/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/components/FilterPanelBase/FilterPanelBase.d.ts +2 -1
- package/dist/components/InputField/InputField.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.d.ts +1 -0
- package/dist/components/SearchField/SearchField.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/TableCell.d.ts +3 -1
- package/dist/components/Table/TableIcon.d.ts +2 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -0
- package/dist/index.es.js +2084 -1972
- package/dist/index.umd.js +9 -9
- package/dist/systm.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(G,
|
|
1
|
+
(function(G,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],z):(G=typeof globalThis<"u"?globalThis:G||self,z(G.IndxSystem={},G.React,G.ReactDOM))})(this,(function(G,z,Sn){"use strict";function _n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=_n(z),st=_n(Sn);var at={exports:{}},Ke={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var En;function Eo(){if(En)return
|
|
9
|
+
*/var En;function Eo(){if(En)return Ke;En=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ke.Fragment=t,Ke.jsx=n,Ke.jsxs=n,Ke}var Xe={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Cn;function Co(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof
|
|
17
|
+
*/var Cn;function Co(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===$?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case m:return"Fragment";case b:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList";case F:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case c:return"Portal";case _:return S.displayName||"Context";case x:return(S._context.displayName||"Context")+".Consumer";case E:var B=S.render;return S=S.displayName,S||(S=B.displayName||B.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case j:return B=S.displayName||null,B!==null?B:e(S.type)||"Memo";case N:B=S._payload,S=S._init;try{return e(S(B))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var B=!1}catch{B=!0}if(B){B=console;var V=B.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),t(S)}}function r(S){if(S===m)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===N)return"<...>";try{var B=e(S);return B?"<"+B+">":"<...>"}catch{return"<...>"}}function o(){var S=C.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function i(S){if(R.call(S,"key")){var B=Object.getOwnPropertyDescriptor(S,"key").get;if(B&&B.isReactWarning)return!1}return S.key!==void 0}function a(S,B){function V(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B))}V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function u(){var S=e(this.type);return k[S]||(k[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function d(S,B,V,W,K,Q){var D=V.ref;return S={$$typeof:l,type:S,key:B,props:V,_owner:W},(D!==void 0?D:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:u}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function v(S,B,V,W,K,Q){var D=B.children;if(D!==void 0)if(W)if(P(D)){for(W=0;W<D.length;W++)p(D[W]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(D);if(R.call(B,"key")){D=e(S);var U=Object.keys(B).filter(function(q){return q!=="key"});W=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",H[D+W]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,V,D,U,D),H[D+V]=!0)}if(D=null,$!==void 0&&(n($),D=""+$),i(F)&&(n(F.key),D=""+F.key),"key"in F){$={};for(var ee in F)ee!=="key"&&($[ee]=F[ee])}else $=F;return D&&a($,typeof S=="function"?S.displayName||S.name||"Unknown":S),f(S,D,$,o(),q,Q)}function m(S){v(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===I&&(S._payload.status==="fulfilled"?v(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function v(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}var p=X,l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),E=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,P=Array.isArray,N=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(S){return S()}};var M,k={},A=p.react_stack_bottom_frame.bind(p,s)(),j=N(r(s)),H={};qe.Fragment=h,qe.jsx=function(S,F,$){var V=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,$,!1,V?Error("react-stack-top-frame"):A,V?N(r(S)):j)},qe.jsxs=function(S,F,$){var V=1e4>E.recentlyCreatedOwnerStacks++;return g(S,F,$,!0,V?Error("react-stack-top-frame"):A,V?N(r(S)):j)}})()),qe}var Rn;function Ro(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?at.exports=Eo():at.exports=Co()),at.exports}var b=Ro();const Lt={button:"_button_1sns4_1",micro:"_micro_1sns4_22",default:"_default_1sns4_30",large:"_large_1sns4_38",primary:"_primary_1sns4_47",secondary:"_secondary_1sns4_57",ghost:"_ghost_1sns4_67"};function To(e){const{size:t="default",variant:n="primary",iconLeft:r,iconRight:o,className:s,children:i,...a}=e,d=t==="micro"?"14px":t==="large"?"21px":"14px",f=[Lt.button,Lt[t],Lt[n],a.disabled?"cursor-not-allowed":"cursor-pointer",s].filter(Boolean).join(" ");return b.jsxs("button",{className:f,...a,children:[r&&X.cloneElement(r,{size:d,color:"currentColor"}),i,o&&X.cloneElement(o,{size:d,color:"currentColor"})]})}const Ke={checkboxWrapper:"_checkboxWrapper_1wbyq_1",checkbox:"_checkbox_1wbyq_1",label:"_label_1wbyq_44",score:"_score_1wbyq_48",disabled:"_disabled_1wbyq_55"},Po=({label:e,score:t,className:n="",...r})=>{const o=X.useId(),s=r.disabled;return b.jsxs("label",{htmlFor:o,className:`${Ke.checkboxWrapper} ${n} ${s?Ke.disabled:""} ${s?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:o,type:"checkbox",className:Ke.checkbox,...r}),e&&b.jsx("span",{className:Ke.label,children:e}),t&&b.jsx("span",{className:Ke.score,children:t})]})},Tn={container:"_container_dlzj1_1",default:"_default_dlzj1_5"};function Oo({children:e,className:t}){return b.jsx("div",{className:`${Tn.container} ${Tn.default} ${t||""}`,children:e})}const Ie={container:"_container_10bfq_1",header:"_header_10bfq_11",title:"_title_10bfq_31",body:"_body_10bfq_49"},Ao=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H2V2H1V1ZM3 3H2V2H3V3ZM4 3V4H3V3H4ZM5 2H4V3H5V2ZM5 2V1H6V2H5Z",fill:e})})},ko=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M6 2V3L1 3L1 2L6 2Z",fill:e})})},Mo=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M4 5H3V3L1 3L1 2L3 2L3 0L4 0V2L6 2V3H4V5Z",fill:e})})},No=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return b.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 0H2V1H1V3H2V4H4V3H5V1H4V0ZM4 1V3H2V1H4ZM6 4H5V5H6V4Z",fill:e})})};function Io({title:e,children:t,className:n="",collapsible:r=!0,collapsed:o=!1}){const[s,i]=X.useState(()=>!o);X.useEffect(()=>{r&&i(!o)},[o,r]);const a=()=>{r&&i(d=>!d)};return b.jsxs("div",{className:`${Ie.container} ${n}`,children:[e&&(r?b.jsxs("button",{type:"button",className:Ie.header,onClick:a,"aria-label":s?"Collapse panel":"Expand panel","aria-expanded":s,children:[b.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e}),s?b.jsx(ko,{color:"var(--lv5)",size:14}):b.jsx(Mo,{color:"var(--lv5)",size:14})]}):b.jsx("div",{className:Ie.header,children:b.jsx("div",{className:Ie.title,role:"heading","aria-level":3,children:e})})),(!r||s)&&b.jsx("div",{className:Ie.body,children:t})]})}const ue={wrapper:"_wrapper_tf1yl_1",label:"_label_tf1yl_7",inputContainer:"_inputContainer_tf1yl_12",input:"_input_tf1yl_12",focus:"_focus_tf1yl_35",searchIcon:"_searchIcon_tf1yl_52",rightContent:"_rightContent_tf1yl_67",sizeMicro:"_sizeMicro_tf1yl_78",sizeDefault:"_sizeDefault_tf1yl_87",error:"_error_tf1yl_110",errorText:"_errorText_tf1yl_114"},Do={micro:14,default:21};function jo({label:e,error:t,className:n="",showSearchIcon:r=!0,searchIcon:o,searchIconColor:s,inputSize:i="default",showFocusBorder:a=!1,children:d,...f}){const g=X.useRef(null),m=Do[i],v={};s&&(v["--search-icon-color"]=s);const p="var(--search-icon-color)",l=o??b.jsx(No,{}),c=i==="micro"?ue.sizeMicro:ue.sizeDefault;return b.jsxs("div",{className:`${ue.wrapper} ${n}`,children:[e&&b.jsx("label",{className:ue.label,children:e}),b.jsxs("div",{className:`${ue.inputContainer} ${c}`,children:[r&&b.jsx("span",{className:ue.searchIcon,children:X.cloneElement(l,{size:m,color:s??p})}),b.jsx("input",{ref:g,className:`${ue.input} ${a?ue.focus:""} ${t?ue.error:""}`,style:v,...f}),d&&b.jsx("div",{className:ue.rightContent,children:d})]}),t&&b.jsx("span",{className:ue.errorText,children:t})]})}const De={wrapper:"_wrapper_su5p5_1",label:"_label_su5p5_7",input:"_input_su5p5_12",error:"_error_su5p5_61",errorText:"_errorText_su5p5_69",borderBottom:"_borderBottom_su5p5_75"};function Lo({label:e,error:t,className:n="",isValid:r=!0,variant:o="default",...s}){const i=t||!r;return b.jsxs("div",{className:`${De.wrapper} ${n}`,children:[e&&b.jsx("label",{className:De.label,children:e}),b.jsx("input",{className:`${De.input} ${o==="borderBottom"?De.borderBottom:""} ${i?De.error:""}`,...s}),t&&b.jsx("span",{className:De.errorText,children:t})]})}const Xe={radioWrapper:"_radioWrapper_1faq0_1",radioInput:"_radioInput_1faq0_9",customRadio:"_customRadio_1faq0_23",labelText:"_labelText_1faq0_57",disabled:"_disabled_1faq0_63"},Fo=({id:e,name:t,value:n,label:r,checked:o=!1,onChange:s,disabled:i=!1})=>b.jsxs("label",{className:`${Xe.radioWrapper} ${i?Xe.disabled:""} ${i?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:e,type:"radio",name:t,value:n,checked:o,onChange:s,disabled:i,className:Xe.radioInput}),b.jsx("span",{className:Xe.customRadio}),b.jsx("span",{className:Xe.labelText,children:r})]}),ct={switch:"_switch_1xsea_1",slider:"_slider_1xsea_23",label:"_label_1xsea_28",disabled:"_disabled_1xsea_43"},Bo=({id:e,checked:t,onChange:n,disabled:r=!1,label:o})=>{const s=X.useId(),i=e||s;return b.jsxs("label",{htmlFor:i,className:`${ct.switch} ${r?ct.disabled:""} ${r?"cursor-not-allowed":"cursor-pointer"}`,children:[b.jsx("input",{id:i,type:"checkbox",checked:t,onChange:a=>n(a.target.checked),disabled:r}),b.jsx("span",{className:ct.slider}),o&&b.jsx("span",{className:ct.label,children:o})]})},oe={basetrack:"_basetrack_g50sm_1",selectedtrack:"_selectedtrack_g50sm_29",livetrack:"_livetrack_g50sm_36",livetrackFaceted:"_livetrackFaceted_g50sm_42",livetrackDefault:"_livetrackDefault_g50sm_45",thumbs:"_thumbs_g50sm_48",disabled:"_disabled_g50sm_82"};var Ze={},ie={},Ge={},Je={},Pn;function Ft(){if(Pn)return Je;Pn=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.Direction=void 0;var e;return(function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"})(e||(Je.Direction=e={})),Je}var On;function An(){return On||(On=1,(function(e){var t=Ge&&Ge.__spreadArray||function(E,R,P){if(P||arguments.length===2)for(var N=0,M=R.length,k;N<M;N++)(k||!(N in R))&&(k||(k=Array.prototype.slice.call(R,0,N)),k[N]=R[N]);return E.concat(k||Array.prototype.slice.call(R))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=X,r=Ft(),o=function(E){var R=E.toString().split(".")[1];return R?R.length:0};e.getStepDecimals=o;function s(E){return E.touches&&E.touches.length||E.changedTouches&&E.changedTouches.length}e.isTouchEvent=s;function i(E,R,P){var N=(R-E)/P,M=8,k=Number(N.toFixed(M));return parseInt(k.toString(),10)===k}e.isStepDivisible=i;function a(E,R,P,N,M,k,A){var j=1e11;if(E=Math.round(E*j)/j,!k){var H=A[R-1],S=A[R+1];if(H&&H>E)return H;if(S&&S<E)return S}if(E>N)return N;if(E<P)return P;var F=Math.floor(E*j-P*j)%Math.floor(M*j),$=Math.floor(E*j-Math.abs(F)),V=F===0?E:$/j,q=Math.abs(F/j)<M/2?V:V+M,Q=(0,e.getStepDecimals)(M);return parseFloat(q.toFixed(Q))}e.normalizeValue=a;function d(E,R,P){return(E-R)/(P-R)}e.relativeValue=d;function f(E){return E===r.Direction.Up||E===r.Direction.Down}e.isVertical=f;function g(E,R,P){if(R>=P)throw new RangeError("min (".concat(R,") is equal/bigger than max (").concat(P,")"));if(E<R)throw new RangeError("value (".concat(E,") is smaller than min (").concat(R,")"));if(E>P)throw new RangeError("value (".concat(E,") is bigger than max (").concat(P,")"))}e.checkBoundaries=g;function m(E,R,P){return E<R?R:E>P?P:E}e.checkValuesAgainstBoundaries=m;function v(E){if(!(E.length<2)&&!E.slice(1).every(function(R,P){return E[P]<=R}))throw new RangeError("values={[".concat(E,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=v;function p(E){var R=window.getComputedStyle(E);return{top:parseInt(R["margin-top"],10),bottom:parseInt(R["margin-bottom"],10),left:parseInt(R["margin-left"],10),right:parseInt(R["margin-right"],10)}}e.getMargin=p;function l(E){var R=window.getComputedStyle(E);return{top:parseInt(R["padding-top"],10)+parseInt(R["border-top-width"],10),bottom:parseInt(R["padding-bottom"],10)+parseInt(R["border-bottom-width"],10),left:parseInt(R["padding-left"],10)+parseInt(R["border-left-width"],10),right:parseInt(R["padding-right"],10)+parseInt(R["border-right-width"],10)}}e.getPaddingAndBorder=l;function c(E,R,P){var N=P?-1:1;E.forEach(function(M,k){return w(M,N*R[k].x,R[k].y)})}e.translateThumbs=c;function h(E,R,P,N){for(var M=0,k=B(E[0],R,P,N),A=1;A<E.length;A++){var j=B(E[A],R,P,N);j<k&&(k=j,M=A)}return M}e.getClosestThumbIndex=h;function w(E,R,P){E.style.transform="translate(".concat(R,"px, ").concat(P,"px)")}e.translate=w;var y=function(E){var R=[],P=null,N=function(){for(var M=[],k=0;k<arguments.length;k++)M[k]=arguments[k];R=M,!P&&(P=requestAnimationFrame(function(){P=null,E.apply(void 0,R)}))};return N};e.schd=y;function x(E,R,P){var N=E.slice(0);return N[R]=P,N}e.replaceAt=x;function C(E){var R=E.values,P=E.colors,N=E.min,M=E.max,k=E.direction,A=k===void 0?r.Direction.Right:k,j=E.rtl,H=j===void 0?!1:j;H&&A===r.Direction.Right?A=r.Direction.Left:H&&r.Direction.Left&&(A=r.Direction.Right);var S=R.slice(0).sort(function($,V){return $-V}).map(function($){return($-N)/(M-N)*100}),F=S.reduce(function($,V,q){return"".concat($,", ").concat(P[q]," ").concat(V,"%, ").concat(P[q+1]," ").concat(V,"%")},"");return"linear-gradient(".concat(A,", ").concat(P[0]," 0%").concat(F,", ").concat(P[P.length-1]," 100%)")}e.getTrackBackground=C;function _(){}e.voidFn=_;function O(E){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var T=function(E,R,P,N,M){M===void 0&&(M=function(A){return A});var k=Math.ceil(t([E],Array.from(E.children),!0).reduce(function(A,j){var H=Math.ceil(j.getBoundingClientRect().width);if(j.innerText&&j.innerText.includes(P)&&j.childElementCount===0){var S=j.cloneNode(!0);S.innerHTML=M(R.toFixed(N)),S.style.visibility="hidden",document.body.appendChild(S),H=Math.ceil(S.getBoundingClientRect().width),document.body.removeChild(S)}return H>A?H:A},E.getBoundingClientRect().width));return k},L=function(E,R,P,N,M,k,A){A===void 0&&(A=function(S){return S});var j=[],H=function(S){var F=T(P[S],N[S],M,k,A),$=R[S].x;R.forEach(function(V,q){var Q=V.x,D=T(P[q],N[q],M,k,A);S!==q&&($>=Q&&$<=Q+D||$+F>=Q&&$+F<=Q+D)&&(j.includes(q)||(j.push(S),j.push(q),j=t(t([],j,!0),[S,q],!1),H(q)))})};return H(E),Array.from(new Set(j.sort()))},I=function(E,R,P,N,M,k){N===void 0&&(N=.1),M===void 0&&(M=" - "),k===void 0&&(k=function(q){return q});var A=(0,e.getStepDecimals)(N),j=(0,n.useState)({}),H=j[0],S=j[1],F=(0,n.useState)(k(R[P].toFixed(A))),$=F[0],V=F[1];return(0,n.useEffect)(function(){if(E){var q=E.getThumbs();if(q.length<1)return;var Q={},D=E.getOffsets(),U=L(P,D,q,R,M,A,k),ee=k(R[P].toFixed(A));if(U.length){var z=U.reduce(function(le,Pe,Oe,Dt){return le.length?t(t([],le,!0),[D[Dt[Oe]].x],!1):[D[Dt[Oe]].x]},[]);if(Math.min.apply(Math,z)===D[P].x){var Y=[];U.forEach(function(le){Y.push(R[le].toFixed(A))}),ee=Array.from(new Set(Y.sort(function(le,Pe){return parseFloat(le)-parseFloat(Pe)}))).map(k).join(M);var K=Math.min.apply(Math,z),re=Math.max.apply(Math,z),ce=q[U[z.indexOf(re)]].getBoundingClientRect().width;Q.left="".concat(Math.abs(K-(re+ce))/2,"px"),Q.transform="translate(-50%, 0)"}else Q.visibility="hidden"}V(ee),S(Q)}},[E,R]),[$,H]};e.useThumbOverlap=I;function B(E,R,P,N){var M=E.getBoundingClientRect(),k=M.left,A=M.top,j=M.width,H=M.height;return f(N)?Math.abs(P-(A+H/2)):Math.abs(R-(k+j/2))}var W=function(){var E,R=((E=navigator.userAgentData)===null||E===void 0?void 0:E.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(R)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=W})(Ge)),Ge}var kn;function Wo(){if(kn)return ie;kn=1;var e=ie&&ie.__extends||(function(){var m=function(v,p){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(l[h]=c[h])},m(v,p)};return function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");m(v,p);function l(){this.constructor=v}v.prototype=p===null?Object.create(p):(l.prototype=p.prototype,new l)}})(),t=ie&&ie.__createBinding||(Object.create?(function(m,v,p,l){l===void 0&&(l=p);var c=Object.getOwnPropertyDescriptor(v,p);(!c||("get"in c?!v.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return v[p]}}),Object.defineProperty(m,l,c)}):(function(m,v,p,l){l===void 0&&(l=p),m[l]=v[p]})),n=ie&&ie.__setModuleDefault||(Object.create?(function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}):function(m,v){m.default=v}),r=ie&&ie.__importStar||function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var p in m)p!=="default"&&Object.prototype.hasOwnProperty.call(m,p)&&t(v,m,p);return n(v,m),v},o=ie&&ie.__spreadArray||function(m,v,p){if(p||arguments.length===2)for(var l=0,c=v.length,h;l<c;l++)(h||!(l in v))&&(h||(h=Array.prototype.slice.call(v,0,l)),h[l]=v[l]);return m.concat(h||Array.prototype.slice.call(v))};Object.defineProperty(ie,"__esModule",{value:!0});var s=r(X),i=An(),a=Ft(),d=["ArrowRight","ArrowUp","k","PageUp"],f=["ArrowLeft","ArrowDown","j","PageDown"],g=(function(m){e(v,m);function v(p){var l=m.call(this,p)||this;if(l.trackRef=s.createRef(),l.thumbRefs=[],l.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(l.props.values.length).fill(0).map(function(c,h){return h}),isChanged:!1,markOffsets:[]},l.getOffsets=function(){var c=l.props,h=c.direction,w=c.values,y=c.min,x=c.max,C=l.trackRef.current;if(!C)return console.warn("No track element found."),[];var _=C.getBoundingClientRect(),O=(0,i.getPaddingAndBorder)(C);return l.getThumbs().map(function(T,L){var I={x:0,y:0},B=T.getBoundingClientRect(),W=(0,i.getMargin)(T);switch(h){case a.Direction.Right:return I.x=(W.left+O.left)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width*(0,i.relativeValue)(w[L],y,x)-B.width/2,I;case a.Direction.Left:return I.x=(W.right+O.right)*-1,I.y=((B.height-_.height)/2+O.top)*-1,I.x+=_.width-_.width*(0,i.relativeValue)(w[L],y,x)-B.width/2,I;case a.Direction.Up:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height-_.height*(0,i.relativeValue)(w[L],y,x)-B.height/2,I;case a.Direction.Down:return I.x=((B.width-_.width)/2+W.left+O.left)*-1,I.y=-O.left,I.y+=_.height*(0,i.relativeValue)(w[L],y,x)-B.height/2,I;default:return(0,i.assertUnreachable)(h)}})},l.getThumbs=function(){return l.trackRef&&l.trackRef.current?Array.from(l.trackRef.current.children).filter(function(c){return c.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},l.getTargetIndex=function(c){return l.getThumbs().findIndex(function(h){return h===c.target||h.contains(c.target)})},l.addTouchEvents=function(c){document.addEventListener("touchmove",l.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",l.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",l.schdOnEnd,{passive:!1})},l.addMouseEvents=function(c){document.addEventListener("mousemove",l.schdOnMouseMove),document.addEventListener("mouseup",l.schdOnEnd)},l.onMouseDownTrack=function(c){var h;if(!(c.button!==0||(0,i.isIOS)()))if(c.persist(),c.preventDefault(),l.addMouseEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.clientX,c.clientY]},function(){return l.onMove(c.clientX,c.clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.clientX,c.clientY,l.props.direction);(h=l.thumbRefs[w].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.clientX,c.clientY)})}},l.onResize=function(){(0,i.translateThumbs)(l.getThumbs(),l.getOffsets(),l.props.rtl),l.calculateMarkOffsets()},l.onTouchStartTrack=function(c){var h;if(c.persist(),l.addTouchEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(y){var x;return(x=y.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.touches[0].clientX,c.touches[0].clientY]},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(y){return y.current}),c.touches[0].clientX,c.touches[0].clientY,l.props.direction);(h=l.thumbRefs[w].current)===null||h===void 0||h.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}},l.onMouseOrTouchStart=function(c){if(!l.props.disabled){var h=(0,i.isTouchEvent)(c);if(!(!h&&c.button!==0)){var w=l.getTargetIndex(c);w!==-1&&(h?l.addTouchEvents(c):l.addMouseEvents(c),l.setState({draggedThumbIndex:w,thumbZIndexes:l.state.thumbZIndexes.map(function(y,x){return x===w?Math.max.apply(Math,l.state.thumbZIndexes):y<=l.state.thumbZIndexes[w]?y:y-1})}))}}},l.onMouseMove=function(c){c.preventDefault(),l.onMove(c.clientX,c.clientY)},l.onTouchMove=function(c){c.preventDefault(),l.onMove(c.touches[0].clientX,c.touches[0].clientY)},l.onKeyDown=function(c){var h=l.props,w=h.values,y=h.onChange,x=h.step,C=h.rtl,_=h.direction,O=l.state.isChanged,T=l.getTargetIndex(c.nativeEvent),L=C||_===a.Direction.Left||_===a.Direction.Down?-1:1;T!==-1&&(d.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(w,T,l.normalizeValue(w[T]+L*(c.key==="PageUp"?x*10:x),T)))):f.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),y((0,i.replaceAt)(w,T,l.normalizeValue(w[T]-L*(c.key==="PageDown"?x*10:x),T)))):c.key==="Tab"?l.setState({draggedThumbIndex:-1},function(){O&&l.fireOnFinalChange()}):O&&l.fireOnFinalChange())},l.onKeyUp=function(c){var h=l.state.isChanged;l.setState({draggedThumbIndex:-1},function(){h&&l.fireOnFinalChange()})},l.onMove=function(c,h){var w=l.state,y=w.draggedThumbIndex,x=w.draggedTrackPos,C=l.props,_=C.direction,O=C.min,T=C.max,L=C.onChange,I=C.values,B=C.step,W=C.rtl;if(y===-1&&x[0]===-1&&x[1]===-1)return null;var E=l.trackRef.current;if(!E)return null;var R=E.getBoundingClientRect(),P=(0,i.isVertical)(_)?R.height:R.width;if(x[0]!==-1&&x[1]!==-1){var N=c-x[0],M=h-x[1],k=0;switch(_){case a.Direction.Right:case a.Direction.Left:k=N/P*(T-O);break;case a.Direction.Down:case a.Direction.Up:k=M/P*(T-O);break;default:(0,i.assertUnreachable)(_)}if(W&&(k*=-1),Math.abs(k)>=B/2){for(var A=0;A<l.thumbRefs.length;A++){if(I[A]===T&&Math.sign(k)===1||I[A]===O&&Math.sign(k)===-1)return;var j=I[A]+k;j>T?k=T-I[A]:j<O&&(k=O-I[A])}for(var H=I.slice(0),A=0;A<l.thumbRefs.length;A++)H=(0,i.replaceAt)(H,A,l.normalizeValue(I[A]+k,A));l.setState({draggedTrackPos:[c,h]}),L(H)}}else{var S=0;switch(_){case a.Direction.Right:S=(c-R.left)/P*(T-O)+O;break;case a.Direction.Left:S=(P-(c-R.left))/P*(T-O)+O;break;case a.Direction.Down:S=(h-R.top)/P*(T-O)+O;break;case a.Direction.Up:S=(P-(h-R.top))/P*(T-O)+O;break;default:(0,i.assertUnreachable)(_)}W&&(S=T+O-S),Math.abs(I[y]-S)>=B/2&&L((0,i.replaceAt)(I,y,l.normalizeValue(S,y)))}},l.normalizeValue=function(c,h){var w=l.props,y=w.min,x=w.max,C=w.step,_=w.allowOverlap,O=w.values;return(0,i.normalizeValue)(c,h,y,x,C,_,O)},l.onEnd=function(c){if(c.preventDefault(),document.removeEventListener("mousemove",l.schdOnMouseMove),document.removeEventListener("touchmove",l.schdOnTouchMove),document.removeEventListener("mouseup",l.schdOnEnd),document.removeEventListener("touchend",l.schdOnEnd),document.removeEventListener("touchcancel",l.schdOnEnd),l.state.draggedThumbIndex===-1&&l.state.draggedTrackPos[0]===-1&&l.state.draggedTrackPos[1]===-1)return null;l.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){l.fireOnFinalChange()})},l.fireOnFinalChange=function(){l.setState({isChanged:!1});var c=l.props,h=c.onFinalChange,w=c.values;h&&h(w)},l.updateMarkRefs=function(c){if(!c.renderMark){l.numOfMarks=void 0,l.markRefs=void 0;return}l.numOfMarks=(c.max-c.min)/l.props.step,l.markRefs=[];for(var h=0;h<l.numOfMarks+1;h++)l.markRefs[h]=s.createRef()},l.calculateMarkOffsets=function(){if(!(!l.props.renderMark||!l.trackRef||!l.numOfMarks||!l.markRefs||l.trackRef.current===null)){for(var c=window.getComputedStyle(l.trackRef.current),h=parseInt(c.width,10),w=parseInt(c.height,10),y=parseInt(c.paddingLeft,10),x=parseInt(c.paddingTop,10),C=[],_=0;_<l.numOfMarks+1;_++){var O=9999,T=9999;if(l.markRefs[_].current){var L=l.markRefs[_].current.getBoundingClientRect();O=L.height,T=L.width}l.props.direction===a.Direction.Left||l.props.direction===a.Direction.Right?C.push([Math.round(h/l.numOfMarks*_+y-T/2),-Math.round((O-w)/2)]):C.push([Math.round(w/l.numOfMarks*_+x-O/2),-Math.round((T-h)/2)])}l.setState({markOffsets:C})}},p.step===0)throw new Error('"step" property should be a positive number');return l.schdOnMouseMove=(0,i.schd)(l.onMouseMove),l.schdOnTouchMove=(0,i.schd)(l.onTouchMove),l.schdOnEnd=(0,i.schd)(l.onEnd),l.thumbRefs=p.values.map(function(){return s.createRef()}),l.updateMarkRefs(p),l}return v.prototype.componentDidMount=function(){var p=this,l=this.props,c=l.values,h=l.min,w=l.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",p.onResize)},unobserve:function(){return window.removeEventListener("resize",p.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,i.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(y){return(0,i.checkBoundaries)(y,p.props.min,p.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),c.forEach(function(y){(0,i.isStepDivisible)(h,y,w)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},v.prototype.componentDidUpdate=function(p,l){var c=this.props,h=c.max,w=c.min,y=c.step,x=c.values,C=c.rtl;(p.max!==h||p.min!==w||p.step!==y)&&this.updateMarkRefs(this.props),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),C),(p.max!==h||p.min!==w||p.step!==y||l.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(_){(0,i.isStepDivisible)(w,_,y)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},v.prototype.componentWillUnmount=function(){var p={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,p),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},v.prototype.render=function(){var p=this,l=this.props,c=l.label,h=l.labelledBy,w=l.renderTrack,y=l.renderThumb,x=l.renderMark,C=x===void 0?function(){return null}:x,_=l.values,O=l.min,T=l.max,L=l.allowOverlap,I=l.disabled,B=this.state,W=B.draggedThumbIndex,E=B.thumbZIndexes,R=B.markOffsets;return w({props:{style:{transform:"scale(1)",cursor:W>-1?"grabbing":this.props.draggableTrack?(0,i.isVertical)(this.props.direction)?"ns-resize":"ew-resize":_.length===1&&!I?"pointer":"inherit"},onMouseDown:I?i.voidFn:this.onMouseDownTrack,onTouchStart:I?i.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:o(o([],R.map(function(P,N,M){return C({props:{style:p.props.direction===a.Direction.Left||p.props.direction===a.Direction.Right?{position:"absolute",left:"".concat(P[0],"px"),marginTop:"".concat(P[1],"px")}:{position:"absolute",top:"".concat(P[0],"px"),marginLeft:"".concat(P[1],"px")},key:"mark".concat(N),ref:p.markRefs[N]},index:N})}),!0),_.map(function(P,N){var M=p.state.draggedThumbIndex===N;return y({index:N,value:P,isDragged:M,props:{style:{position:"absolute",zIndex:E[N],cursor:I?"inherit":M?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:N,tabIndex:I?void 0:0,"aria-valuemax":L?T:_[N+1]||T,"aria-valuemin":L?O:_[N-1]||O,"aria-valuenow":P,draggable:!1,ref:p.thumbRefs[N],"aria-label":c,"aria-labelledby":h,role:"slider",onKeyDown:I?i.voidFn:p.onKeyDown,onKeyUp:I?i.voidFn:p.onKeyUp}})}),!0)})},v.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:a.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},v})(s.Component);return ie.default=g,ie}var Mn;function $o(){return Mn||(Mn=1,(function(e){var t=Ze&&Ze.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=t(Wo());e.Range=n.default;var r=An();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var o=Ft();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return o.Direction}})})(Ze)),Ze}var Nn=$o();const Vo=e=>{const{min:t,max:n,step:r=1,disabled:o=!1,className:s,activeMin:i,activeMax:a,isFaceted:d=!1,highlightFaceted:f=!0,onChange:g,onFinalChange:m}=e;if("isRange"in e&&e.isRange){const v=e.value,[p,l]=v;return b.jsx("div",{className:s,children:b.jsx(Nn.Range,{step:r,min:t,max:n,values:v,onChange:c=>g(c),onFinalChange:c=>m==null?void 0:m(c),disabled:o,renderTrack:({props:c,children:h})=>{const{key:w,...y}=c,x=n-t,C=(p-t)/x*100,_=(l-p)/x*100;let O=0,T=0;const L=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return L&&(O=(i-t)/x*100,T=(a-i)/x*100),b.jsxs("div",{...y,className:oe.basetrack,style:{...y.style},children:[!L&&b.jsx("div",{className:oe.selectedtrack,style:{left:`${C}%`,width:`${_}%`,zIndex:"1"}}),L&&b.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${O}%`,width:`${T}%`,zIndex:"2"}}),h]},w)},renderThumb:({props:c})=>{const{key:h,...w}=c;return b.jsx("div",{...w,className:`${oe.thumbs} ${o?oe.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{...w.style,zIndex:"3"}},h)}})})}else{const v=e.value;return b.jsx("div",{className:s,children:b.jsx(Nn.Range,{step:r,min:t,max:n,values:[v],onChange:p=>g(p[0]),onFinalChange:p=>m==null?void 0:m(p[0]),disabled:o,renderTrack:({props:p,children:l})=>{const{key:c,...h}=p,w=n-t,y=(v-t)/w*100;let x=0,C=0;const _=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return _&&(x=(i-t)/w*100,C=(a-i)/w*100),b.jsxs("div",{...h,className:oe.basetrack,style:{...h.style},children:[!_&&b.jsx("div",{className:oe.selectedtrack,style:{left:"0%",width:`${y}%`,zIndex:"1"}}),_&&b.jsx("div",{className:`${oe.livetrack} ${d?oe.livetrackFaceted:oe.livetrackDefault}`,style:{left:`${x}%`,width:`${C}%`,zIndex:"2"}}),l]},c)},renderThumb:({props:p})=>{const{key:l,...c}=p;return b.jsx("div",{...c,className:`${oe.thumbs} ${o?oe.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{...c.style,zIndex:"3"}},l)}})})}};function In(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),d=n.length;n=[...n,i];const f=m=>{var w;const{scope:v,children:p,...l}=m,c=((w=v==null?void 0:v[e])==null?void 0:w[d])||a,h=u.useMemo(()=>l,Object.values(l));return b.jsx(c.Provider,{value:h,children:p})};f.displayName=s+"Provider";function g(m,v){var c;const p=((c=v==null?void 0:v[e])==null?void 0:c[d])||a,l=u.useContext(p);if(l)return l;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[f,g]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const d=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,Ho(o,...t)]}function Ho(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...a,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Dn(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Dn(e[o],null)}}}}function te(...e){return u.useCallback(jn(...e),e)}function Qe(e){const t=Uo(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),d=a.find(Yo);if(d){const f=d.props.children,g=a.map(m=>m===d?u.Children.count(f)>1?u.Children.only(null):u.isValidElement(f)?f.props.children:null:m);return b.jsx(t,{...i,ref:o,children:u.isValidElement(f)?u.cloneElement(f,void 0,g):null})}return b.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uo(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Ko(o),a=qo(s,o.props);return o.type!==u.Fragment&&(a.ref=r?jn(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zo=Symbol("radix.slottable");function Yo(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zo}function qo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const d=s(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ko(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xo(e){const t=e+"CollectionProvider",[n,r]=lt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=c=>{const{scope:h,children:w}=c,y=X.useRef(null),x=X.useRef(new Map).current;return b.jsx(o,{scope:h,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const a=e+"CollectionSlot",d=Qe(a),f=X.forwardRef((c,h)=>{const{scope:w,children:y}=c,x=s(a,w),C=te(h,x.collectionRef);return b.jsx(d,{ref:C,children:y})});f.displayName=a;const g=e+"CollectionItemSlot",m="data-radix-collection-item",v=Qe(g),p=X.forwardRef((c,h)=>{const{scope:w,children:y,...x}=c,C=X.useRef(null),_=te(h,C),O=s(g,w);return X.useEffect(()=>(O.itemMap.set(C,{ref:C,...x}),()=>void O.itemMap.delete(C))),b.jsx(v,{[m]:"",ref:_,children:y})});p.displayName=g;function l(c){const h=s(e+"CollectionConsumer",c);return X.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(h.itemMap.values()).sort((O,T)=>x.indexOf(O.ref.current)-x.indexOf(T.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:f,ItemSlot:p},l,r]}var Zo=u.createContext(void 0);function Go(e){const t=u.useContext(Zo);return e||t||"ltr"}var Jo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Jo.reduce((e,t)=>{const n=Qe(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qo(e,t){e&&st.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ei(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ti="DismissableLayer",Bt="dismissableLayer.update",ni="dismissableLayer.pointerDownOutside",ri="dismissableLayer.focusOutside",Ln,Fn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...d}=e,f=u.useContext(Fn),[g,m]=u.useState(null),v=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),l=te(t,T=>m(T)),c=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=c.indexOf(h),y=g?c.indexOf(g):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,_=si(T=>{const L=T.target,I=[...f.branches].some(B=>B.contains(L));!C||I||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},v),O=ai(T=>{const L=T.target;[...f.branches].some(B=>B.contains(L))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},v);return ei(T=>{y===f.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},v),u.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ln=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),Bn(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ln)}},[g,v,n,f]),u.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),Bn())},[g,f]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(Bt,T),()=>document.removeEventListener(Bt,T)},[]),b.jsx(J.div,{...d,ref:l,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,_.onPointerDownCapture)})});Wt.displayName=ti;var oi="DismissableLayerBranch",ii=u.forwardRef((e,t)=>{const n=u.useContext(Fn),r=u.useRef(null),o=te(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(J.div,{...e,ref:o})});ii.displayName=oi;function si(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let d=function(){Wn(ni,n,f,{discrete:!0})};const f={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wn(ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bn(){const e=new CustomEvent(Bt);document.dispatchEvent(e)}function Wn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qo(o,s):o.dispatchEvent(s)}var $t=0;function $n(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vn()),document.body.insertAdjacentElement("beforeend",e[1]??Vn()),$t++,()=>{$t===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$t--}},[])}function Vn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Vt="focusScope.autoFocusOnMount",Ht="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},ci="FocusScope",Ut=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,d]=u.useState(null),f=Ae(o),g=Ae(s),m=u.useRef(null),v=te(t,c=>d(c)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let c=function(x){if(p.paused||!a)return;const C=x.target;a.contains(C)?m.current=C:xe(m.current,{select:!0})},h=function(x){if(p.paused||!a)return;const C=x.relatedTarget;C!==null&&(a.contains(C)||xe(m.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&xe(a)};document.addEventListener("focusin",c),document.addEventListener("focusout",h);const y=new MutationObserver(w);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",h),y.disconnect()}}},[r,a,p.paused]),u.useEffect(()=>{if(a){Yn.add(p);const c=document.activeElement;if(!a.contains(c)){const w=new CustomEvent(Vt,Hn);a.addEventListener(Vt,f),a.dispatchEvent(w),w.defaultPrevented||(li(hi(Un(a)),{select:!0}),document.activeElement===c&&xe(a))}return()=>{a.removeEventListener(Vt,f),setTimeout(()=>{const w=new CustomEvent(Ht,Hn);a.addEventListener(Ht,g),a.dispatchEvent(w),w.defaultPrevented||xe(c??document.body,{select:!0}),a.removeEventListener(Ht,g),Yn.remove(p)},0)}}},[a,f,g,p]);const l=u.useCallback(c=>{if(!n&&!r||p.paused)return;const h=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,w=document.activeElement;if(h&&w){const y=c.currentTarget,[x,C]=ui(y);x&&C?!c.shiftKey&&w===C?(c.preventDefault(),n&&xe(x,{select:!0})):c.shiftKey&&w===x&&(c.preventDefault(),n&&xe(C,{select:!0})):w===y&&c.preventDefault()}},[n,r,p.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:v,onKeyDown:l})});Ut.displayName=ci;function li(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xe(r,{select:t}),document.activeElement!==n)return}function ui(e){const t=Un(e),n=zn(t,e),r=zn(t.reverse(),e);return[n,r]}function Un(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zn(e,t){for(const n of e)if(!di(n,{upTo:t}))return n}function di(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fi(e){return e instanceof HTMLInputElement&&"select"in e}function xe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fi(e)&&t&&e.select()}}var Yn=pi();function pi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qn(e,t),e.unshift(t)},remove(t){var n;e=qn(e,t),(n=e[0])==null||n.resume()}}}function qn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hi(e){return e.filter(t=>t.tagName!=="A")}var ne=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},mi=u[" useId ".trim().toString()]||(()=>{}),vi=0;function ut(e){const[t,n]=u.useState(mi());return ne(()=>{n(r=>r??String(vi++))},[e]),e||(t?`radix-${t}`:"")}const gi=["top","right","bottom","left"],Se=Math.min,se=Math.max,dt=Math.round,ft=Math.floor,he=e=>({x:e,y:e}),yi={left:"right",right:"left",bottom:"top",top:"bottom"},wi={start:"end",end:"start"};function zt(e,t,n){return se(e,Se(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function qt(e){return e==="y"?"height":"width"}const bi=new Set(["top","bottom"]);function me(e){return bi.has(be(e))?"y":"x"}function Kt(e){return Yt(me(e))}function xi(e,t,n){n===void 0&&(n=!1);const r=je(e),o=Kt(e),s=qt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pt(i)),[i,pt(i)]}function Si(e){const t=pt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>wi[t])}const Kn=["left","right"],Xn=["right","left"],_i=["top","bottom"],Ei=["bottom","top"];function Ci(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Kn:t?Kn:Xn;case"left":case"right":return t?_i:Ei;default:return[]}}function Ri(e,t,n,r){const o=je(e);let s=Ci(be(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xt)))),s}function pt(e){return e.replace(/left|right|bottom|top/g,t=>yi[t])}function Ti(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ti(e):{top:e,right:e,bottom:e,left:e}}function ht(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=me(t),i=Kt(t),a=qt(i),d=be(t),f=s==="y",g=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[a]/2-o[a]/2;let p;switch(d){case"top":p={x:g,y:r.y-o.height};break;case"bottom":p={x:g,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(je(t)){case"start":p[i]-=v*(n&&f?-1:1);break;case"end":p[i]+=v*(n&&f?-1:1);break}return p}const Pi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:m}=Gn(f,r,d),v=r,p={},l=0;for(let c=0;c<a.length;c++){const{name:h,fn:w}=a[c],{x:y,y:x,data:C,reset:_}=await w({x:g,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:f,platform:i,elements:{reference:e,floating:t}});g=y??g,m=x??m,p={...p,[h]:{...p[h],...C}},_&&l<=50&&(l++,typeof _=="object"&&(_.placement&&(v=_.placement),_.rects&&(f=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:g,y:m}=Gn(f,v,d)),c=-1)}return{x:g,y:m,placement:v,strategy:o,middlewareData:p}};async function et(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:v=!1,padding:p=0}=we(t,e),l=Zn(p),h=a[v?m==="floating"?"reference":"floating":m],w=ht(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:f,rootBoundary:g,strategy:d})),y=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},_=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(w.top-_.top+l.top)/C.y,bottom:(_.bottom-w.bottom+l.bottom)/C.y,left:(w.left-_.left+l.left)/C.x,right:(_.right-w.right+l.right)/C.x}}const Oi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:d}=t,{element:f,padding:g=0}=we(e,t)||{};if(f==null)return{};const m=Zn(g),v={x:n,y:r},p=Kt(o),l=qt(p),c=await i.getDimensions(f),h=p==="y",w=h?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",C=s.reference[l]+s.reference[p]-v[p]-s.floating[l],_=v[p]-s.reference[p],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let T=O?O[x]:0;(!T||!await(i.isElement==null?void 0:i.isElement(O)))&&(T=a.floating[x]||s.floating[l]);const L=C/2-_/2,I=T/2-c[l]/2-1,B=Se(m[w],I),W=Se(m[y],I),E=B,R=T-c[l]-W,P=T/2-c[l]/2+L,N=zt(E,P,R),M=!d.arrow&&je(o)!=null&&P!==N&&s.reference[l]/2-(P<E?B:W)-c[l]/2<0,k=M?P<E?P-E:P-R:0;return{[p]:v[p]+k,data:{[p]:N,centerOffset:P-N-k,...M&&{alignmentOffset:k}},reset:M}}}),Ai=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:d,elements:f}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:l="none",flipAlignment:c=!0,...h}=we(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=be(o),y=me(a),x=be(a)===a,C=await(d.isRTL==null?void 0:d.isRTL(f.floating)),_=v||(x||!c?[pt(a)]:Si(a)),O=l!=="none";!v&&O&&_.push(...Ri(a,c,l,C));const T=[a,..._],L=await et(t,h),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&I.push(L[w]),m){const P=xi(o,i,C);I.push(L[P[0]],L[P[1]])}if(B=[...B,{placement:o,overflows:I}],!I.every(P=>P<=0)){var W,E;const P=(((W=s.flip)==null?void 0:W.index)||0)+1,N=T[P];if(N&&(!(m==="alignment"?y!==me(N):!1)||B.every(A=>me(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:N}};let M=(E=B.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!M)switch(p){case"bestFit":{var R;const k=(R=B.filter(A=>{if(O){const j=me(A.placement);return j===y||j==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((A,j)=>A[1]-j[1])[0])==null?void 0:R[0];k&&(M=k);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return gi.some(t=>e[t]>=0)}const ki=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const s=await et(t,{...o,elementContext:"reference"}),i=Jn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qn(i)}}}case"escaped":{const s=await et(t,{...o,altBoundary:!0}),i=Jn(s,n.floating);return{data:{escapedOffsets:i,escaped:Qn(i)}}}default:return{}}}}},er=new Set(["left","top"]);async function Mi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=be(n),a=je(n),d=me(n)==="y",f=er.has(i)?-1:1,g=s&&d?-1:1,m=we(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:l}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof l=="number"&&(p=a==="end"?l*-1:l),d?{x:p*g,y:v*f}:{x:v*f,y:p*g}}const Ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,d=await Mi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:i}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:h=>{let{x:w,y}=h;return{x:w,y}}},...d}=we(e,t),f={x:n,y:r},g=await et(t,d),m=me(be(o)),v=Yt(m);let p=f[v],l=f[m];if(s){const h=v==="y"?"top":"left",w=v==="y"?"bottom":"right",y=p+g[h],x=p-g[w];p=zt(y,p,x)}if(i){const h=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=l+g[h],x=l-g[w];l=zt(y,l,x)}const c=a.fn({...t,[v]:p,[m]:l});return{...c,data:{x:c.x-n,y:c.y-r,enabled:{[v]:s,[m]:i}}}}}},Di=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:d=!0,crossAxis:f=!0}=we(e,t),g={x:n,y:r},m=me(o),v=Yt(m);let p=g[v],l=g[m];const c=we(a,t),h=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};if(d){const x=v==="y"?"height":"width",C=s.reference[v]-s.floating[x]+h.mainAxis,_=s.reference[v]+s.reference[x]-h.mainAxis;p<C?p=C:p>_&&(p=_)}if(f){var w,y;const x=v==="y"?"width":"height",C=er.has(be(o)),_=s.reference[m]-s.floating[x]+(C&&((w=i.offset)==null?void 0:w[m])||0)+(C?0:h.crossAxis),O=s.reference[m]+s.reference[x]+(C?0:((y=i.offset)==null?void 0:y[m])||0)-(C?h.crossAxis:0);l<_?l=_:l>O&&(l=O)}return{[v]:p,[m]:l}}}},ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:d=()=>{},...f}=we(e,t),g=await et(t,f),m=be(o),v=je(o),p=me(o)==="y",{width:l,height:c}=s.floating;let h,w;m==="top"||m==="bottom"?(h=m,w=v===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=m,h=v==="end"?"top":"bottom");const y=c-g.top-g.bottom,x=l-g.left-g.right,C=Se(c-g[h],y),_=Se(l-g[w],x),O=!t.middlewareData.shift;let T=C,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),O&&!v){const B=se(g.left,0),W=se(g.right,0),E=se(g.top,0),R=se(g.bottom,0);p?L=l-2*(B!==0||W!==0?B+W:se(g.left,g.right)):T=c-2*(E!==0||R!==0?E+R:se(g.top,g.bottom))}await d({...t,availableWidth:L,availableHeight:T});const I=await i.getDimensions(a.floating);return l!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function Le(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tr(e){return mt()?e instanceof Node||e instanceof ae(e).Node:!1}function de(e){return mt()?e instanceof Element||e instanceof ae(e).Element:!1}function ge(e){return mt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function nr(e){return!mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Li=new Set(["inline","contents"]);function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Li.has(o)}const Fi=new Set(["table","td","th"]);function Bi(e){return Fi.has(Le(e))}const Wi=[":popover-open",":modal"];function vt(e){return Wi.some(t=>{try{return e.matches(t)}catch{return!1}})}const $i=["transform","translate","scale","rotate","perspective"],Vi=["transform","translate","scale","rotate","perspective","filter"],Hi=["paint","layout","strict","content"];function Zt(e){const t=Gt(),n=de(e)?fe(e):e;return $i.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Vi.some(r=>(n.willChange||"").includes(r))||Hi.some(r=>(n.contain||"").includes(r))}function Ui(e){let t=_e(e);for(;ge(t)&&!Fe(t);){if(Zt(t))return t;if(vt(t))return null;t=_e(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zi=new Set(["html","body","#document"]);function Fe(e){return zi.has(Le(e))}function fe(e){return ae(e).getComputedStyle(e)}function gt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(Le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ve(e);return nr(t)?t.host:t}function rr(e){const t=_e(e);return Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&tt(t)?t:rr(t)}function nt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=Jt(i);return t.concat(i,i.visualViewport||[],tt(o)?o:[],a&&n?nt(a):[])}return t.concat(o,nt(o,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=dt(n)!==s||dt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Qt(e){return de(e)?e:e.contextElement}function Be(e){const t=Qt(e);if(!ge(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=or(t);let i=(s?dt(n.width):n.width)/r,a=(s?dt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Yi=he(0);function ir(e){const t=ae(e);return!Gt()||!t.visualViewport?Yi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qt(e);let i=he(1);t&&(r?de(r)&&(i=Be(r)):i=Be(e));const a=qi(s,n,r)?ir(s):he(0);let d=(o.left+a.x)/i.x,f=(o.top+a.y)/i.y,g=o.width/i.x,m=o.height/i.y;if(s){const v=ae(s),p=r&&de(r)?ae(r):r;let l=v,c=Jt(l);for(;c&&r&&p!==l;){const h=Be(c),w=c.getBoundingClientRect(),y=fe(c),x=w.left+(c.clientLeft+parseFloat(y.paddingLeft))*h.x,C=w.top+(c.clientTop+parseFloat(y.paddingTop))*h.y;d*=h.x,f*=h.y,g*=h.x,m*=h.y,d+=x,f+=C,l=ae(c),c=Jt(l)}}return ht({width:g,height:m,x:d,y:f})}function yt(e,t){const n=gt(e).scrollLeft;return t?t.left+n:ke(ve(e)).left+n}function sr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ki(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ve(r),a=t?vt(t.floating):!1;if(r===i||a&&s)return n;let d={scrollLeft:0,scrollTop:0},f=he(1);const g=he(0),m=ge(r);if((m||!m&&!s)&&((Le(r)!=="body"||tt(i))&&(d=gt(r)),ge(r))){const p=ke(r);f=Be(r),g.x=p.x+r.clientLeft,g.y=p.y+r.clientTop}const v=i&&!m&&!s?sr(i,d):he(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+g.x+v.x,y:n.y*f.y-d.scrollTop*f.y+g.y+v.y}}function Xi(e){return Array.from(e.getClientRects())}function Zi(e){const t=ve(e),n=gt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+yt(e);const a=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ar=25;function Gi(e,t){const n=ae(e),r=ve(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,d=0;if(o){s=o.width,i=o.height;const g=Gt();(!g||g&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const f=yt(r);if(f<=0){const g=r.ownerDocument,m=g.body,v=getComputedStyle(m),p=g.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,l=Math.abs(r.clientWidth-m.clientWidth-p);l<=ar&&(s-=l)}else f<=ar&&(s+=f);return{width:s,height:i,x:a,y:d}}const Ji=new Set(["absolute","fixed"]);function Qi(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Be(e):he(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,d=o*s.x,f=r*s.y;return{width:i,height:a,x:d,y:f}}function cr(e,t,n){let r;if(t==="viewport")r=Gi(e,n);else if(t==="document")r=Zi(ve(e));else if(de(t))r=Qi(t,n);else{const o=ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ht(r)}function lr(e,t){const n=_e(e);return n===t||!de(n)||Fe(n)?!1:fe(n).position==="fixed"||lr(n,t)}function es(e,t){const n=t.get(e);if(n)return n;let r=nt(e,[],!1).filter(a=>de(a)&&Le(a)!=="body"),o=null;const s=fe(e).position==="fixed";let i=s?_e(e):e;for(;de(i)&&!Fe(i);){const a=fe(i),d=Zt(i);!d&&a.position==="fixed"&&(o=null),(s?!d&&!o:!d&&a.position==="static"&&!!o&&Ji.has(o.position)||tt(i)&&!d&&lr(e,i))?r=r.filter(g=>g!==i):o=a,i=_e(i)}return t.set(e,r),r}function ts(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?vt(t)?[]:es(t,this._c):[].concat(n),r],a=i[0],d=i.reduce((f,g)=>{const m=cr(t,g,o);return f.top=se(m.top,f.top),f.right=Se(m.right,f.right),f.bottom=Se(m.bottom,f.bottom),f.left=se(m.left,f.left),f},cr(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ns(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function rs(e,t,n){const r=ge(t),o=ve(t),s=n==="fixed",i=ke(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const d=he(0);function f(){d.x=yt(o)}if(r||!r&&!s)if((Le(t)!=="body"||tt(o))&&(a=gt(t)),r){const p=ke(t,!0,s,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&f();s&&!r&&o&&f();const g=o&&!r&&!s?sr(o,a):he(0),m=i.left+a.scrollLeft-d.x-g.x,v=i.top+a.scrollTop-d.y-g.y;return{x:m,y:v,width:i.width,height:i.height}}function en(e){return fe(e).position==="static"}function ur(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function dr(e,t){const n=ae(e);if(vt(e))return n;if(!ge(e)){let o=_e(e);for(;o&&!Fe(o);){if(de(o)&&!en(o))return o;o=_e(o)}return n}let r=ur(e,t);for(;r&&Bi(r)&&en(r);)r=ur(r,t);return r&&Fe(r)&&en(r)&&!Zt(r)?n:r||Ui(e)||n}const os=async function(e){const t=this.getOffsetParent||dr,n=this.getDimensions,r=await n(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function is(e){return fe(e).direction==="rtl"}const ss={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:ve,getClippingRect:ts,getOffsetParent:dr,getElementRects:os,getClientRects:Xi,getDimensions:ns,getScale:Be,isElement:de,isRTL:is};function fr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function as(e,t){let n=null,r;const o=ve(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:g,top:m,width:v,height:p}=f;if(a||t(),!v||!p)return;const l=ft(m),c=ft(o.clientWidth-(g+v)),h=ft(o.clientHeight-(m+p)),w=ft(g),x={rootMargin:-l+"px "+-c+"px "+-h+"px "+-w+"px",threshold:se(0,Se(1,d))||1};let C=!0;function _(O){const T=O[0].intersectionRatio;if(T!==d){if(!C)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fr(f,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),s}function cs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=Qt(e),g=o||s?[...f?nt(f):[],...nt(t)]:[];g.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=f&&a?as(f,n):null;let v=-1,p=null;i&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),f&&!d&&p.observe(f),p.observe(t));let l,c=d?ke(e):null;d&&h();function h(){const w=ke(e);c&&!fr(c,w)&&n(),c=w,l=requestAnimationFrame(h)}return n(),()=>{var w;g.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m==null||m(),(w=p)==null||w.disconnect(),p=null,d&&cancelAnimationFrame(l)}}const ls=Ni,us=Ii,ds=Ai,fs=ji,ps=ki,pr=Oi,hs=Di,ms=(e,t,n)=>{const r=new Map,o={platform:ss,...n},s={...o.platform,_c:r};return Pi(e,t,{...o,platform:s})};var vs=typeof document<"u",gs=function(){},wt=vs?X.useLayoutEffect:gs;function bt(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!bt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mr(e,t){const n=hr(e);return Math.round(t*n)/n}function tn(e){const t=u.useRef(e);return wt(()=>{t.current=e}),t}function ys(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:d,open:f}=e,[g,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=u.useState(r);bt(v,r)||p(r);const[l,c]=u.useState(null),[h,w]=u.useState(null),y=u.useCallback(A=>{A!==O.current&&(O.current=A,c(A))},[]),x=u.useCallback(A=>{A!==T.current&&(T.current=A,w(A))},[]),C=s||l,_=i||h,O=u.useRef(null),T=u.useRef(null),L=u.useRef(g),I=d!=null,B=tn(d),W=tn(o),E=tn(f),R=u.useCallback(()=>{if(!O.current||!T.current)return;const A={placement:t,strategy:n,middleware:v};W.current&&(A.platform=W.current),ms(O.current,T.current,A).then(j=>{const H={...j,isPositioned:E.current!==!1};P.current&&!bt(L.current,H)&&(L.current=H,st.flushSync(()=>{m(H)}))})},[v,t,n,W,E]);wt(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[f]);const P=u.useRef(!1);wt(()=>(P.current=!0,()=>{P.current=!1}),[]),wt(()=>{if(C&&(O.current=C),_&&(T.current=_),C&&_){if(B.current)return B.current(C,_,R);R()}},[C,_,R,B,I]);const N=u.useMemo(()=>({reference:O,floating:T,setReference:y,setFloating:x}),[y,x]),M=u.useMemo(()=>({reference:C,floating:_}),[C,_]),k=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const j=mr(M.floating,g.x),H=mr(M.floating,g.y);return a?{...A,transform:"translate("+j+"px, "+H+"px)",...hr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:H}},[n,a,M.floating,g.x,g.y]);return u.useMemo(()=>({...g,update:R,refs:N,elements:M,floatingStyles:k}),[g,R,N,M,k])}const ws=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pr({element:r.current,padding:o}).fn(n):{}:r?pr({element:r,padding:o}).fn(n):{}}}},bs=(e,t)=>({...ls(e),options:[e,t]}),xs=(e,t)=>({...us(e),options:[e,t]}),Ss=(e,t)=>({...hs(e),options:[e,t]}),_s=(e,t)=>({...ds(e),options:[e,t]}),Es=(e,t)=>({...fs(e),options:[e,t]}),Cs=(e,t)=>({...ps(e),options:[e,t]}),Rs=(e,t)=>({...ws(e),options:[e,t]});var Ts="Arrow",vr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(J.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});vr.displayName=Ts;var Ps=vr;function Os(e){const[t,n]=u.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;i=f.inlineSize,a=f.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nn="Popper",[gr,xt]=lt(nn),[As,yr]=gr(nn),wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return b.jsx(As,{scope:t,anchor:r,onAnchorChange:o,children:n})};wr.displayName=nn;var br="PopperAnchor",xr=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=yr(br,n),i=u.useRef(null),a=te(t,i),d=u.useRef(null);return u.useEffect(()=>{const f=d.current;d.current=(r==null?void 0:r.current)||i.current,f!==d.current&&s.onAnchorChange(d.current)}),r?null:b.jsx(J.div,{...o,ref:a})});xr.displayName=br;var rn="PopperContent",[ks,Ms]=gr(rn),Sr=u.forwardRef((e,t)=>{var D,U,ee,z,Y,K;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:p="optimized",onPlaced:l,...c}=e,h=yr(rn,n),[w,y]=u.useState(null),x=te(t,re=>y(re)),[C,_]=u.useState(null),O=Os(C),T=(O==null?void 0:O.width)??0,L=(O==null?void 0:O.height)??0,I=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},W=Array.isArray(f)?f:[f],E=W.length>0,R={padding:B,boundary:W.filter(Is),altBoundary:E},{refs:P,floatingStyles:N,placement:M,isPositioned:k,middlewareData:A}=ys({strategy:"fixed",placement:I,whileElementsMounted:(...re)=>cs(...re,{animationFrame:p==="always"}),elements:{reference:h.anchor},middleware:[bs({mainAxis:o+L,alignmentAxis:i}),d&&xs({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Ss():void 0,...R}),d&&_s({...R}),Es({...R,apply:({elements:re,rects:ce,availableWidth:le,availableHeight:Pe})=>{const{width:Oe,height:Dt}=ce.reference,jt=re.floating.style;jt.setProperty("--radix-popper-available-width",`${le}px`),jt.setProperty("--radix-popper-available-height",`${Pe}px`),jt.setProperty("--radix-popper-anchor-width",`${Oe}px`),jt.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&Rs({element:C,padding:a}),Ds({arrowWidth:T,arrowHeight:L}),v&&Cs({strategy:"referenceHidden",...R})]}),[j,H]=Cr(M),S=Ae(l);ne(()=>{k&&(S==null||S())},[k,S]);const F=(D=A.arrow)==null?void 0:D.x,$=(U=A.arrow)==null?void 0:U.y,V=((ee=A.arrow)==null?void 0:ee.centerOffset)!==0,[q,Q]=u.useState();return ne(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[(z=A.transformOrigin)==null?void 0:z.x,(Y=A.transformOrigin)==null?void 0:Y.y].join(" "),...((K=A.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(ks,{scope:n,placedSide:j,onArrowChange:_,arrowX:F,arrowY:$,shouldHideArrow:V,children:b.jsx(J.div,{"data-side":j,"data-align":H,...c,ref:x,style:{...c.style,animation:k?void 0:"none"}})})})});Sr.displayName=rn;var _r="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Er=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ms(_r,r),i=Ns[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(Ps,{...o,ref:n,style:{...o.style,display:"block"}})})});Er.displayName=_r;function Is(e){return e!==null}var Ds=e=>({name:"transformOrigin",options:e,fn(t){var h,w,y;const{placement:n,rects:r,middlewareData:o}=t,i=((h=o.arrow)==null?void 0:h.centerOffset)!==0,a=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[f,g]=Cr(n),m={start:"0%",center:"50%",end:"100%"}[g],v=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,p=(((y=o.arrow)==null?void 0:y.y)??0)+d/2;let l="",c="";return f==="bottom"?(l=i?m:`${v}px`,c=`${-d}px`):f==="top"?(l=i?m:`${v}px`,c=`${r.floating.height+d}px`):f==="right"?(l=`${-d}px`,c=i?m:`${p}px`):f==="left"&&(l=`${r.floating.width+d}px`,c=i?m:`${p}px`),{data:{x:l,y:c}}}});function Cr(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=wr,on=xr,Tr=Sr,Pr=Er,js="Portal",sn=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);ne(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Sn.createPortal(b.jsx(J.div,{...r,ref:t}),i):null});sn.displayName=js;var Ls=u[" useInsertionEffect ".trim().toString()]||ne;function an({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Fs({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const g=u.useRef(e!==void 0);u.useEffect(()=>{const m=g.current;m!==a&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=a},[a,r])}const f=u.useCallback(g=>{var m;if(a){const v=Bs(g)?g(e):g;v!==e&&((m=i.current)==null||m.call(i,v))}else s(g)},[a,e,s,i]);return[d,f]}function Fs({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return Ls(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Bs(e){return typeof e=="function"}function Ws(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$s="VisuallyHidden",Vs=u.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...Or,...e.style}}));Vs.displayName=$s;var Hs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,St=new WeakMap,_t={},cn=0,Ar=function(e){return e&&(e.host||Ar(e.parentNode))},Us=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ar(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zs=function(e,t,n,r){var o=Us(t,Array.isArray(e)?e:[e]);_t[n]||(_t[n]=new WeakMap);var s=_t[n],i=[],a=new Set,d=new Set(o),f=function(m){!m||a.has(m)||(a.add(m),f(m.parentNode))};o.forEach(f);var g=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(a.has(v))g(v);else try{var p=v.getAttribute(r),l=p!==null&&p!=="false",c=(We.get(v)||0)+1,h=(s.get(v)||0)+1;We.set(v,c),s.set(v,h),i.push(v),c===1&&l&&St.set(v,!0),h===1&&v.setAttribute(n,"true"),l||v.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",v,w)}})};return g(t),a.clear(),cn++,function(){i.forEach(function(m){var v=We.get(m)-1,p=s.get(m)-1;We.set(m,v),s.set(m,p),v||(St.has(m)||m.removeAttribute(r),St.delete(m)),p||m.removeAttribute(n)}),cn--,cn||(We=new WeakMap,We=new WeakMap,St=new WeakMap,_t={})}},kr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zs(r,o,n,"aria-hidden")):function(){return null}},ye=function(){return ye=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ye.apply(this,arguments)};function Mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ys(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Et="right-scroll-bar-position",Ct="width-before-scroll-bar",qs="with-scroll-bars-hidden",Ks="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xs(e,t){var n=X.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zs=typeof window<"u"?u.useLayoutEffect:u.useEffect,Nr=new WeakMap;function Gs(e,t){var n=Xs(null,function(r){return e.forEach(function(o){return ln(o,r)})});return Zs(function(){var r=Nr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ln(a,null)}),s.forEach(function(a){o.has(a)||ln(a,i)})}Nr.set(n,e)},[e]),n}function Js(e){return e}function Qs(e,t){t===void 0&&(t=Js);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var d=function(){var g=i;i=[],g.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(g){i.push(g),f()},filter:function(g){return i=i.filter(g),n}}}};return o}function ea(e){e===void 0&&(e={});var t=Qs(null);return t.options=ye({async:!0,ssr:!1},e),t}var Ir=function(e){var t=e.sideCar,n=Mr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,ye({},n))};Ir.isSideCarExport=!0;function ta(e,t){return e.useMedium(t),Ir}var Dr=ea(),un=function(){},Rt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,d=e.className,f=e.removeScrollBar,g=e.enabled,m=e.shards,v=e.sideCar,p=e.noRelative,l=e.noIsolation,c=e.inert,h=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,C=Mr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=v,O=Gs([n,t]),T=ye(ye({},C),o);return u.createElement(u.Fragment,null,g&&u.createElement(_,{sideCar:Dr,removeScrollBar:f,shards:m,noRelative:p,noIsolation:l,inert:c,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?u.cloneElement(u.Children.only(a),ye(ye({},T),{ref:O})):u.createElement(y,ye({},T,{className:d,ref:O}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:Ct,zeroRight:Et};var na=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ra(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=na();return t&&e.setAttribute("nonce",t),e}function oa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ia(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ra())&&(oa(t,n),ia(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aa=function(){var e=sa();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jr=function(){var e=aa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ca={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},la=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dn(n),dn(r),dn(o)]},ua=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ca;var t=la(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},da=jr(),$e="data-scroll-locked",fa=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
-
.`.concat(
|
|
22
|
+
<%s key={someKey} {...props} />`,W,D,U,D),H[D+W]=!0)}if(D=null,V!==void 0&&(n(V),D=""+V),i(B)&&(n(B.key),D=""+B.key),"key"in B){V={};for(var ee in B)ee!=="key"&&(V[ee]=B[ee])}else V=B;return D&&a(V,typeof S=="function"?S.displayName||S.name||"Unknown":S),d(S,D,V,o(),K,Q)}function p(S){g(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===N&&(S._payload.status==="fulfilled"?g(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function g(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}var h=z,l=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),_=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),C=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,P=Array.isArray,I=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(S){return S()}};var M,k={},A=h.react_stack_bottom_frame.bind(h,s)(),L=I(r(s)),H={};Xe.Fragment=m,Xe.jsx=function(S,B,V){var W=1e4>C.recentlyCreatedOwnerStacks++;return v(S,B,V,!1,W?Error("react-stack-top-frame"):A,W?I(r(S)):L)},Xe.jsxs=function(S,B,V){var W=1e4>C.recentlyCreatedOwnerStacks++;return v(S,B,V,!0,W?Error("react-stack-top-frame"):A,W?I(r(S)):L)}})()),Xe}var Rn;function Ro(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?at.exports=Eo():at.exports=Co()),at.exports}var y=Ro();const Lt={button:"_button_1sns4_1",micro:"_micro_1sns4_22",default:"_default_1sns4_30",large:"_large_1sns4_38",primary:"_primary_1sns4_47",secondary:"_secondary_1sns4_57",ghost:"_ghost_1sns4_67"};function To(e){const{size:t="default",variant:n="primary",iconLeft:r,iconRight:o,className:s,children:i,type:a="button",...u}=e,d=t==="micro"?"14px":t==="large"?"21px":"14px",v=[Lt.button,Lt[t],Lt[n],u.disabled?"cursor-not-allowed":"cursor-pointer",s].filter(Boolean).join(" ");if(process.env.NODE_ENV!=="production"){const p=(r||o)&&!i,g=u["aria-label"]||u["aria-labelledby"];p&&!g&&console.warn("Button: Icon-only buttons should have an aria-label or aria-labelledby for accessibility.")}return y.jsxs("button",{className:v,type:a,...u,children:[r&&z.cloneElement(r,{size:d,color:"currentColor"}),i,o&&z.cloneElement(o,{size:d,color:"currentColor"})]})}const De={checkboxWrapper:"_checkboxWrapper_1vygn_1",checkbox:"_checkbox_1vygn_1",label:"_label_1vygn_44",score:"_score_1vygn_48",disabled:"_disabled_1vygn_55"},Po=({label:e,score:t,className:n="",id:r,"aria-label":o,...s})=>{const i=z.useId(),a=r||i,u=t?`${a}-score`:void 0,d=s.disabled;return e||t?y.jsxs("label",{htmlFor:a,className:`${De.checkboxWrapper} ${n} ${d?De.disabled:""} ${d?"cursor-not-allowed":"cursor-pointer"}`,children:[y.jsx("input",{id:a,type:"checkbox",className:De.checkbox,"aria-describedby":u,"aria-label":o,...s}),e&&y.jsx("span",{className:De.label,children:e}),t&&y.jsx("span",{id:u,className:De.score,children:t})]}):y.jsx("input",{id:a,type:"checkbox",className:`${De.checkbox} ${n}`,"aria-label":o,disabled:d,...s})},Tn={container:"_container_dlzj1_1",default:"_default_dlzj1_5"};function Oo({children:e,className:t}){return y.jsx("div",{className:`${Tn.container} ${Tn.default} ${t||""}`,children:e})}const je={container:"_container_10bfq_1",header:"_header_10bfq_11",title:"_title_10bfq_31",body:"_body_10bfq_49"},Ao=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return y.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H2V2H1V1ZM3 3H2V2H3V3ZM4 3V4H3V3H4ZM5 2H4V3H5V2ZM5 2V1H6V2H5Z",fill:e})})},ko=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return y.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M6 2V3L1 3L1 2L6 2Z",fill:e})})},Mo=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return y.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4 5H3V3L1 3L1 2L3 2L3 0L4 0V2L6 2V3H4V5Z",fill:e})})},No=({color:e="black",size:t=21})=>{const n=.7142857142857143,r=t,o=typeof t=="number"?t*n:`calc(${t} * 0.7142857142857143)`;return y.jsx("svg",{width:r,height:o,viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 0H2V1H1V3H2V4H4V3H5V1H4V0ZM4 1V3H2V1H4ZM6 4H5V5H6V4Z",fill:e})})};function Io({title:e,children:t,className:n="",collapsible:r=!0,collapsed:o=!1,headingLevel:s=3}){const[i,a]=z.useState(()=>!o),u=z.useId();z.useEffect(()=>{r&&a(!o)},[o,r]);const d=()=>{r&&a(v=>!v)};return y.jsxs("div",{className:`${je.container} ${n}`,children:[e&&(r?y.jsxs("button",{type:"button",className:je.header,onClick:d,"aria-label":`${e}: ${i?"Collapse panel":"Expand panel"}`,"aria-expanded":i,"aria-controls":u,children:[y.jsx("div",{className:je.title,role:"heading","aria-level":s,children:e}),y.jsx("span",{"aria-hidden":"true",children:i?y.jsx(ko,{color:"var(--lv5)",size:14}):y.jsx(Mo,{color:"var(--lv5)",size:14})})]}):y.jsx("div",{className:je.header,children:y.jsx("div",{className:je.title,role:"heading","aria-level":s,children:e})})),(!r||i)&&y.jsx("div",{id:u,className:je.body,role:"region","aria-label":e||"Filter panel content",children:t})]})}const ue={wrapper:"_wrapper_tf1yl_1",label:"_label_tf1yl_7",inputContainer:"_inputContainer_tf1yl_12",input:"_input_tf1yl_12",focus:"_focus_tf1yl_35",searchIcon:"_searchIcon_tf1yl_52",rightContent:"_rightContent_tf1yl_67",sizeMicro:"_sizeMicro_tf1yl_78",sizeDefault:"_sizeDefault_tf1yl_87",error:"_error_tf1yl_110",errorText:"_errorText_tf1yl_114"},Do={micro:14,default:21};function jo({label:e,error:t,className:n="",showSearchIcon:r=!0,searchIcon:o,searchIconColor:s,inputSize:i="default",showFocusBorder:a=!1,children:u,id:d,type:v="search",...p}){const g=z.useRef(null),h=z.useId(),l=d||h,c=`${l}-error`,m=Do[i],w={};s&&(w["--search-icon-color"]=s);const b="var(--search-icon-color)",x=o??y.jsx(No,{}),_=i==="micro"?ue.sizeMicro:ue.sizeDefault;return y.jsxs("div",{className:`${ue.wrapper} ${n}`,children:[e&&y.jsx("label",{htmlFor:l,className:ue.label,children:e}),y.jsxs("div",{className:`${ue.inputContainer} ${_}`,children:[r&&y.jsx("span",{className:ue.searchIcon,"aria-hidden":"true",children:z.cloneElement(x,{size:m,color:s??b})}),y.jsx("input",{ref:g,id:l,type:v,className:`${ue.input} ${a?ue.focus:""} ${t?ue.error:""}`,style:w,"aria-invalid":t?"true":"false","aria-describedby":t?c:void 0,...p}),u&&y.jsx("div",{className:ue.rightContent,children:u})]}),t&&y.jsx("span",{id:c,className:ue.errorText,role:"alert",children:t})]})}const Le={wrapper:"_wrapper_su5p5_1",label:"_label_su5p5_7",input:"_input_su5p5_12",error:"_error_su5p5_61",errorText:"_errorText_su5p5_69",borderBottom:"_borderBottom_su5p5_75"};function Lo({label:e,error:t,className:n="",isValid:r=!0,variant:o="default",id:s,...i}){const a=z.useId(),u=s||a,d=`${u}-error`,v=t||!r;return y.jsxs("div",{className:`${Le.wrapper} ${n}`,children:[e&&y.jsxs("label",{htmlFor:u,className:Le.label,children:[e,i.required&&y.jsx("span",{"aria-label":"required",children:" *"})]}),y.jsx("input",{id:u,className:`${Le.input} ${o==="borderBottom"?Le.borderBottom:""} ${v?Le.error:""}`,"aria-invalid":v?"true":"false","aria-describedby":t?d:void 0,...i}),t&&y.jsx("span",{id:d,className:Le.errorText,role:"alert",children:t})]})}const Ze={radioWrapper:"_radioWrapper_1faq0_1",radioInput:"_radioInput_1faq0_9",customRadio:"_customRadio_1faq0_23",labelText:"_labelText_1faq0_57",disabled:"_disabled_1faq0_63"},Fo=({id:e,name:t,value:n,label:r,checked:o=!1,onChange:s,disabled:i=!1,"aria-label":a})=>y.jsxs("label",{htmlFor:e,className:`${Ze.radioWrapper} ${i?Ze.disabled:""} ${i?"cursor-not-allowed":"cursor-pointer"}`,children:[y.jsx("input",{id:e,type:"radio",name:t,value:n,checked:o,onChange:s,disabled:i,"aria-label":a,className:Ze.radioInput}),y.jsx("span",{className:Ze.customRadio}),y.jsx("span",{className:Ze.labelText,children:r})]}),ct={switch:"_switch_1xsea_1",slider:"_slider_1xsea_23",label:"_label_1xsea_28",disabled:"_disabled_1xsea_43"},Bo=({id:e,checked:t,onChange:n,disabled:r=!1,label:o,"aria-label":s})=>{const i=z.useId(),a=e||i;return y.jsxs("label",{htmlFor:a,className:`${ct.switch} ${r?ct.disabled:""} ${r?"cursor-not-allowed":"cursor-pointer"}`,children:[y.jsx("input",{id:a,type:"checkbox",role:"switch","aria-checked":t,"aria-label":s,checked:t,onChange:u=>n(u.target.checked),disabled:r}),y.jsx("span",{className:ct.slider,"aria-hidden":"true"}),o&&y.jsx("span",{className:ct.label,children:o})]})},ne={label:"_label_12as9_1",basetrack:"_basetrack_12as9_8",selectedtrack:"_selectedtrack_12as9_36",livetrack:"_livetrack_12as9_43",livetrackFaceted:"_livetrackFaceted_12as9_49",livetrackDefault:"_livetrackDefault_12as9_52",thumbs:"_thumbs_12as9_55",disabled:"_disabled_12as9_89"};var Ge={},ie={},Je={},Qe={},Pn;function Ft(){if(Pn)return Qe;Pn=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.Direction=void 0;var e;return(function(t){t.Right="to right",t.Left="to left",t.Down="to bottom",t.Up="to top"})(e||(Qe.Direction=e={})),Qe}var On;function An(){return On||(On=1,(function(e){var t=Je&&Je.__spreadArray||function(C,R,P){if(P||arguments.length===2)for(var I=0,M=R.length,k;I<M;I++)(k||!(I in R))&&(k||(k=Array.prototype.slice.call(R,0,I)),k[I]=R[I]);return C.concat(k||Array.prototype.slice.call(R))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=z,r=Ft(),o=function(C){var R=C.toString().split(".")[1];return R?R.length:0};e.getStepDecimals=o;function s(C){return C.touches&&C.touches.length||C.changedTouches&&C.changedTouches.length}e.isTouchEvent=s;function i(C,R,P){var I=(R-C)/P,M=8,k=Number(I.toFixed(M));return parseInt(k.toString(),10)===k}e.isStepDivisible=i;function a(C,R,P,I,M,k,A){var L=1e11;if(C=Math.round(C*L)/L,!k){var H=A[R-1],S=A[R+1];if(H&&H>C)return H;if(S&&S<C)return S}if(C>I)return I;if(C<P)return P;var B=Math.floor(C*L-P*L)%Math.floor(M*L),V=Math.floor(C*L-Math.abs(B)),W=B===0?C:V/L,K=Math.abs(B/L)<M/2?W:W+M,Q=(0,e.getStepDecimals)(M);return parseFloat(K.toFixed(Q))}e.normalizeValue=a;function u(C,R,P){return(C-R)/(P-R)}e.relativeValue=u;function d(C){return C===r.Direction.Up||C===r.Direction.Down}e.isVertical=d;function v(C,R,P){if(R>=P)throw new RangeError("min (".concat(R,") is equal/bigger than max (").concat(P,")"));if(C<R)throw new RangeError("value (".concat(C,") is smaller than min (").concat(R,")"));if(C>P)throw new RangeError("value (".concat(C,") is bigger than max (").concat(P,")"))}e.checkBoundaries=v;function p(C,R,P){return C<R?R:C>P?P:C}e.checkValuesAgainstBoundaries=p;function g(C){if(!(C.length<2)&&!C.slice(1).every(function(R,P){return C[P]<=R}))throw new RangeError("values={[".concat(C,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=g;function h(C){var R=window.getComputedStyle(C);return{top:parseInt(R["margin-top"],10),bottom:parseInt(R["margin-bottom"],10),left:parseInt(R["margin-left"],10),right:parseInt(R["margin-right"],10)}}e.getMargin=h;function l(C){var R=window.getComputedStyle(C);return{top:parseInt(R["padding-top"],10)+parseInt(R["border-top-width"],10),bottom:parseInt(R["padding-bottom"],10)+parseInt(R["border-bottom-width"],10),left:parseInt(R["padding-left"],10)+parseInt(R["border-left-width"],10),right:parseInt(R["padding-right"],10)+parseInt(R["border-right-width"],10)}}e.getPaddingAndBorder=l;function c(C,R,P){var I=P?-1:1;C.forEach(function(M,k){return w(M,I*R[k].x,R[k].y)})}e.translateThumbs=c;function m(C,R,P,I){for(var M=0,k=F(C[0],R,P,I),A=1;A<C.length;A++){var L=F(C[A],R,P,I);L<k&&(k=L,M=A)}return M}e.getClosestThumbIndex=m;function w(C,R,P){C.style.transform="translate(".concat(R,"px, ").concat(P,"px)")}e.translate=w;var b=function(C){var R=[],P=null,I=function(){for(var M=[],k=0;k<arguments.length;k++)M[k]=arguments[k];R=M,!P&&(P=requestAnimationFrame(function(){P=null,C.apply(void 0,R)}))};return I};e.schd=b;function x(C,R,P){var I=C.slice(0);return I[R]=P,I}e.replaceAt=x;function _(C){var R=C.values,P=C.colors,I=C.min,M=C.max,k=C.direction,A=k===void 0?r.Direction.Right:k,L=C.rtl,H=L===void 0?!1:L;H&&A===r.Direction.Right?A=r.Direction.Left:H&&r.Direction.Left&&(A=r.Direction.Right);var S=R.slice(0).sort(function(V,W){return V-W}).map(function(V){return(V-I)/(M-I)*100}),B=S.reduce(function(V,W,K){return"".concat(V,", ").concat(P[K]," ").concat(W,"%, ").concat(P[K+1]," ").concat(W,"%")},"");return"linear-gradient(".concat(A,", ").concat(P[0]," 0%").concat(B,", ").concat(P[P.length-1]," 100%)")}e.getTrackBackground=_;function E(){}e.voidFn=E;function O(C){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var T=function(C,R,P,I,M){M===void 0&&(M=function(A){return A});var k=Math.ceil(t([C],Array.from(C.children),!0).reduce(function(A,L){var H=Math.ceil(L.getBoundingClientRect().width);if(L.innerText&&L.innerText.includes(P)&&L.childElementCount===0){var S=L.cloneNode(!0);S.innerHTML=M(R.toFixed(I)),S.style.visibility="hidden",document.body.appendChild(S),H=Math.ceil(S.getBoundingClientRect().width),document.body.removeChild(S)}return H>A?H:A},C.getBoundingClientRect().width));return k},j=function(C,R,P,I,M,k,A){A===void 0&&(A=function(S){return S});var L=[],H=function(S){var B=T(P[S],I[S],M,k,A),V=R[S].x;R.forEach(function(W,K){var Q=W.x,D=T(P[K],I[K],M,k,A);S!==K&&(V>=Q&&V<=Q+D||V+B>=Q&&V+B<=Q+D)&&(L.includes(K)||(L.push(S),L.push(K),L=t(t([],L,!0),[S,K],!1),H(K)))})};return H(C),Array.from(new Set(L.sort()))},N=function(C,R,P,I,M,k){I===void 0&&(I=.1),M===void 0&&(M=" - "),k===void 0&&(k=function(K){return K});var A=(0,e.getStepDecimals)(I),L=(0,n.useState)({}),H=L[0],S=L[1],B=(0,n.useState)(k(R[P].toFixed(A))),V=B[0],W=B[1];return(0,n.useEffect)(function(){if(C){var K=C.getThumbs();if(K.length<1)return;var Q={},D=C.getOffsets(),U=j(P,D,K,R,M,A,k),ee=k(R[P].toFixed(A));if(U.length){var q=U.reduce(function(le,Pe,Oe,Dt){return le.length?t(t([],le,!0),[D[Dt[Oe]].x],!1):[D[Dt[Oe]].x]},[]);if(Math.min.apply(Math,q)===D[P].x){var Y=[];U.forEach(function(le){Y.push(R[le].toFixed(A))}),ee=Array.from(new Set(Y.sort(function(le,Pe){return parseFloat(le)-parseFloat(Pe)}))).map(k).join(M);var X=Math.min.apply(Math,q),oe=Math.max.apply(Math,q),ce=K[U[q.indexOf(oe)]].getBoundingClientRect().width;Q.left="".concat(Math.abs(X-(oe+ce))/2,"px"),Q.transform="translate(-50%, 0)"}else Q.visibility="hidden"}W(ee),S(Q)}},[C,R]),[V,H]};e.useThumbOverlap=N;function F(C,R,P,I){var M=C.getBoundingClientRect(),k=M.left,A=M.top,L=M.width,H=M.height;return d(I)?Math.abs(P-(A+H/2)):Math.abs(R-(k+L/2))}var $=function(){var C,R=((C=navigator.userAgentData)===null||C===void 0?void 0:C.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(R)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=$})(Je)),Je}var kn;function $o(){if(kn)return ie;kn=1;var e=ie&&ie.__extends||(function(){var p=function(g,h){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&(l[m]=c[m])},p(g,h)};return function(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");p(g,h);function l(){this.constructor=g}g.prototype=h===null?Object.create(h):(l.prototype=h.prototype,new l)}})(),t=ie&&ie.__createBinding||(Object.create?(function(p,g,h,l){l===void 0&&(l=h);var c=Object.getOwnPropertyDescriptor(g,h);(!c||("get"in c?!g.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return g[h]}}),Object.defineProperty(p,l,c)}):(function(p,g,h,l){l===void 0&&(l=h),p[l]=g[h]})),n=ie&&ie.__setModuleDefault||(Object.create?(function(p,g){Object.defineProperty(p,"default",{enumerable:!0,value:g})}):function(p,g){p.default=g}),r=ie&&ie.__importStar||function(p){if(p&&p.__esModule)return p;var g={};if(p!=null)for(var h in p)h!=="default"&&Object.prototype.hasOwnProperty.call(p,h)&&t(g,p,h);return n(g,p),g},o=ie&&ie.__spreadArray||function(p,g,h){if(h||arguments.length===2)for(var l=0,c=g.length,m;l<c;l++)(m||!(l in g))&&(m||(m=Array.prototype.slice.call(g,0,l)),m[l]=g[l]);return p.concat(m||Array.prototype.slice.call(g))};Object.defineProperty(ie,"__esModule",{value:!0});var s=r(z),i=An(),a=Ft(),u=["ArrowRight","ArrowUp","k","PageUp"],d=["ArrowLeft","ArrowDown","j","PageDown"],v=(function(p){e(g,p);function g(h){var l=p.call(this,h)||this;if(l.trackRef=s.createRef(),l.thumbRefs=[],l.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(l.props.values.length).fill(0).map(function(c,m){return m}),isChanged:!1,markOffsets:[]},l.getOffsets=function(){var c=l.props,m=c.direction,w=c.values,b=c.min,x=c.max,_=l.trackRef.current;if(!_)return console.warn("No track element found."),[];var E=_.getBoundingClientRect(),O=(0,i.getPaddingAndBorder)(_);return l.getThumbs().map(function(T,j){var N={x:0,y:0},F=T.getBoundingClientRect(),$=(0,i.getMargin)(T);switch(m){case a.Direction.Right:return N.x=($.left+O.left)*-1,N.y=((F.height-E.height)/2+O.top)*-1,N.x+=E.width*(0,i.relativeValue)(w[j],b,x)-F.width/2,N;case a.Direction.Left:return N.x=($.right+O.right)*-1,N.y=((F.height-E.height)/2+O.top)*-1,N.x+=E.width-E.width*(0,i.relativeValue)(w[j],b,x)-F.width/2,N;case a.Direction.Up:return N.x=((F.width-E.width)/2+$.left+O.left)*-1,N.y=-O.left,N.y+=E.height-E.height*(0,i.relativeValue)(w[j],b,x)-F.height/2,N;case a.Direction.Down:return N.x=((F.width-E.width)/2+$.left+O.left)*-1,N.y=-O.left,N.y+=E.height*(0,i.relativeValue)(w[j],b,x)-F.height/2,N;default:return(0,i.assertUnreachable)(m)}})},l.getThumbs=function(){return l.trackRef&&l.trackRef.current?Array.from(l.trackRef.current.children).filter(function(c){return c.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},l.getTargetIndex=function(c){return l.getThumbs().findIndex(function(m){return m===c.target||m.contains(c.target)})},l.addTouchEvents=function(c){document.addEventListener("touchmove",l.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",l.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",l.schdOnEnd,{passive:!1})},l.addMouseEvents=function(c){document.addEventListener("mousemove",l.schdOnMouseMove),document.addEventListener("mouseup",l.schdOnEnd)},l.onMouseDownTrack=function(c){var m;if(!(c.button!==0||(0,i.isIOS)()))if(c.persist(),c.preventDefault(),l.addMouseEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(b){var x;return(x=b.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.clientX,c.clientY]},function(){return l.onMove(c.clientX,c.clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(b){return b.current}),c.clientX,c.clientY,l.props.direction);(m=l.thumbRefs[w].current)===null||m===void 0||m.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.clientX,c.clientY)})}},l.onResize=function(){(0,i.translateThumbs)(l.getThumbs(),l.getOffsets(),l.props.rtl),l.calculateMarkOffsets()},l.onTouchStartTrack=function(c){var m;if(c.persist(),l.addTouchEvents(c.nativeEvent),l.props.values.length>1&&l.props.draggableTrack){if(l.thumbRefs.some(function(b){var x;return(x=b.current)===null||x===void 0?void 0:x.contains(c.target)}))return;l.setState({draggedTrackPos:[c.touches[0].clientX,c.touches[0].clientY]},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}else{var w=(0,i.getClosestThumbIndex)(l.thumbRefs.map(function(b){return b.current}),c.touches[0].clientX,c.touches[0].clientY,l.props.direction);(m=l.thumbRefs[w].current)===null||m===void 0||m.focus(),l.setState({draggedThumbIndex:w},function(){return l.onMove(c.touches[0].clientX,c.touches[0].clientY)})}},l.onMouseOrTouchStart=function(c){if(!l.props.disabled){var m=(0,i.isTouchEvent)(c);if(!(!m&&c.button!==0)){var w=l.getTargetIndex(c);w!==-1&&(m?l.addTouchEvents(c):l.addMouseEvents(c),l.setState({draggedThumbIndex:w,thumbZIndexes:l.state.thumbZIndexes.map(function(b,x){return x===w?Math.max.apply(Math,l.state.thumbZIndexes):b<=l.state.thumbZIndexes[w]?b:b-1})}))}}},l.onMouseMove=function(c){c.preventDefault(),l.onMove(c.clientX,c.clientY)},l.onTouchMove=function(c){c.preventDefault(),l.onMove(c.touches[0].clientX,c.touches[0].clientY)},l.onKeyDown=function(c){var m=l.props,w=m.values,b=m.onChange,x=m.step,_=m.rtl,E=m.direction,O=l.state.isChanged,T=l.getTargetIndex(c.nativeEvent),j=_||E===a.Direction.Left||E===a.Direction.Down?-1:1;T!==-1&&(u.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),b((0,i.replaceAt)(w,T,l.normalizeValue(w[T]+j*(c.key==="PageUp"?x*10:x),T)))):d.includes(c.key)?(c.preventDefault(),l.setState({draggedThumbIndex:T,isChanged:!0}),b((0,i.replaceAt)(w,T,l.normalizeValue(w[T]-j*(c.key==="PageDown"?x*10:x),T)))):c.key==="Tab"?l.setState({draggedThumbIndex:-1},function(){O&&l.fireOnFinalChange()}):O&&l.fireOnFinalChange())},l.onKeyUp=function(c){var m=l.state.isChanged;l.setState({draggedThumbIndex:-1},function(){m&&l.fireOnFinalChange()})},l.onMove=function(c,m){var w=l.state,b=w.draggedThumbIndex,x=w.draggedTrackPos,_=l.props,E=_.direction,O=_.min,T=_.max,j=_.onChange,N=_.values,F=_.step,$=_.rtl;if(b===-1&&x[0]===-1&&x[1]===-1)return null;var C=l.trackRef.current;if(!C)return null;var R=C.getBoundingClientRect(),P=(0,i.isVertical)(E)?R.height:R.width;if(x[0]!==-1&&x[1]!==-1){var I=c-x[0],M=m-x[1],k=0;switch(E){case a.Direction.Right:case a.Direction.Left:k=I/P*(T-O);break;case a.Direction.Down:case a.Direction.Up:k=M/P*(T-O);break;default:(0,i.assertUnreachable)(E)}if($&&(k*=-1),Math.abs(k)>=F/2){for(var A=0;A<l.thumbRefs.length;A++){if(N[A]===T&&Math.sign(k)===1||N[A]===O&&Math.sign(k)===-1)return;var L=N[A]+k;L>T?k=T-N[A]:L<O&&(k=O-N[A])}for(var H=N.slice(0),A=0;A<l.thumbRefs.length;A++)H=(0,i.replaceAt)(H,A,l.normalizeValue(N[A]+k,A));l.setState({draggedTrackPos:[c,m]}),j(H)}}else{var S=0;switch(E){case a.Direction.Right:S=(c-R.left)/P*(T-O)+O;break;case a.Direction.Left:S=(P-(c-R.left))/P*(T-O)+O;break;case a.Direction.Down:S=(m-R.top)/P*(T-O)+O;break;case a.Direction.Up:S=(P-(m-R.top))/P*(T-O)+O;break;default:(0,i.assertUnreachable)(E)}$&&(S=T+O-S),Math.abs(N[b]-S)>=F/2&&j((0,i.replaceAt)(N,b,l.normalizeValue(S,b)))}},l.normalizeValue=function(c,m){var w=l.props,b=w.min,x=w.max,_=w.step,E=w.allowOverlap,O=w.values;return(0,i.normalizeValue)(c,m,b,x,_,E,O)},l.onEnd=function(c){if(c.preventDefault(),document.removeEventListener("mousemove",l.schdOnMouseMove),document.removeEventListener("touchmove",l.schdOnTouchMove),document.removeEventListener("mouseup",l.schdOnEnd),document.removeEventListener("touchend",l.schdOnEnd),document.removeEventListener("touchcancel",l.schdOnEnd),l.state.draggedThumbIndex===-1&&l.state.draggedTrackPos[0]===-1&&l.state.draggedTrackPos[1]===-1)return null;l.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){l.fireOnFinalChange()})},l.fireOnFinalChange=function(){l.setState({isChanged:!1});var c=l.props,m=c.onFinalChange,w=c.values;m&&m(w)},l.updateMarkRefs=function(c){if(!c.renderMark){l.numOfMarks=void 0,l.markRefs=void 0;return}l.numOfMarks=(c.max-c.min)/l.props.step,l.markRefs=[];for(var m=0;m<l.numOfMarks+1;m++)l.markRefs[m]=s.createRef()},l.calculateMarkOffsets=function(){if(!(!l.props.renderMark||!l.trackRef||!l.numOfMarks||!l.markRefs||l.trackRef.current===null)){for(var c=window.getComputedStyle(l.trackRef.current),m=parseInt(c.width,10),w=parseInt(c.height,10),b=parseInt(c.paddingLeft,10),x=parseInt(c.paddingTop,10),_=[],E=0;E<l.numOfMarks+1;E++){var O=9999,T=9999;if(l.markRefs[E].current){var j=l.markRefs[E].current.getBoundingClientRect();O=j.height,T=j.width}l.props.direction===a.Direction.Left||l.props.direction===a.Direction.Right?_.push([Math.round(m/l.numOfMarks*E+b-T/2),-Math.round((O-w)/2)]):_.push([Math.round(w/l.numOfMarks*E+x-O/2),-Math.round((T-m)/2)])}l.setState({markOffsets:_})}},h.step===0)throw new Error('"step" property should be a positive number');return l.schdOnMouseMove=(0,i.schd)(l.onMouseMove),l.schdOnTouchMove=(0,i.schd)(l.onTouchMove),l.schdOnEnd=(0,i.schd)(l.onEnd),l.thumbRefs=h.values.map(function(){return s.createRef()}),l.updateMarkRefs(h),l}return g.prototype.componentDidMount=function(){var h=this,l=this.props,c=l.values,m=l.min,w=l.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",h.onResize)},unobserve:function(){return window.removeEventListener("resize",h.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,i.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(b){return(0,i.checkBoundaries)(b,h.props.min,h.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),c.forEach(function(b){(0,i.isStepDivisible)(m,b,w)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},g.prototype.componentDidUpdate=function(h,l){var c=this.props,m=c.max,w=c.min,b=c.step,x=c.values,_=c.rtl;(h.max!==m||h.min!==w||h.step!==b)&&this.updateMarkRefs(this.props),(0,i.translateThumbs)(this.getThumbs(),this.getOffsets(),_),(h.max!==m||h.min!==w||h.step!==b||l.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(E){(0,i.isStepDivisible)(w,E,b)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},g.prototype.componentWillUnmount=function(){var h={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,h),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},g.prototype.render=function(){var h=this,l=this.props,c=l.label,m=l.labelledBy,w=l.renderTrack,b=l.renderThumb,x=l.renderMark,_=x===void 0?function(){return null}:x,E=l.values,O=l.min,T=l.max,j=l.allowOverlap,N=l.disabled,F=this.state,$=F.draggedThumbIndex,C=F.thumbZIndexes,R=F.markOffsets;return w({props:{style:{transform:"scale(1)",cursor:$>-1?"grabbing":this.props.draggableTrack?(0,i.isVertical)(this.props.direction)?"ns-resize":"ew-resize":E.length===1&&!N?"pointer":"inherit"},onMouseDown:N?i.voidFn:this.onMouseDownTrack,onTouchStart:N?i.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:N,children:o(o([],R.map(function(P,I,M){return _({props:{style:h.props.direction===a.Direction.Left||h.props.direction===a.Direction.Right?{position:"absolute",left:"".concat(P[0],"px"),marginTop:"".concat(P[1],"px")}:{position:"absolute",top:"".concat(P[0],"px"),marginLeft:"".concat(P[1],"px")},key:"mark".concat(I),ref:h.markRefs[I]},index:I})}),!0),E.map(function(P,I){var M=h.state.draggedThumbIndex===I;return b({index:I,value:P,isDragged:M,props:{style:{position:"absolute",zIndex:C[I],cursor:N?"inherit":M?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:I,tabIndex:N?void 0:0,"aria-valuemax":j?T:E[I+1]||T,"aria-valuemin":j?O:E[I-1]||O,"aria-valuenow":P,draggable:!1,ref:h.thumbRefs[I],"aria-label":c,"aria-labelledby":m,role:"slider",onKeyDown:N?i.voidFn:h.onKeyDown,onKeyUp:N?i.voidFn:h.onKeyUp}})}),!0)})},g.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:a.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},g})(s.Component);return ie.default=v,ie}var Mn;function Vo(){return Mn||(Mn=1,(function(e){var t=Ge&&Ge.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=t($o());e.Range=n.default;var r=An();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var o=Ft();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return o.Direction}})})(Ge)),Ge}var Nn=Vo();const Wo=e=>{const{min:t,max:n,step:r=1,disabled:o=!1,className:s,activeMin:i,activeMax:a,isFaceted:u=!1,highlightFaceted:d=!0,onChange:v,onFinalChange:p,label:g,"aria-label":h,id:l}=e,c=z.useId(),m=l||c;if(process.env.NODE_ENV!=="production"&&!g&&!h&&console.warn("Slider: Component should have either a label or aria-label for accessibility."),"isRange"in e&&e.isRange){const w=e.value,[b,x]=w;return y.jsxs("div",{className:s,children:[g&&y.jsx("label",{htmlFor:m,className:ne.label,children:g}),y.jsx(Nn.Range,{step:r,min:t,max:n,values:w,onChange:_=>v(_),onFinalChange:_=>p==null?void 0:p(_),disabled:o,renderTrack:({props:_,children:E})=>{const{key:O,...T}=_,j=n-t,N=(b-t)/j*100,F=(x-b)/j*100;let $=0,C=0;const R=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return R&&($=(i-t)/j*100,C=(a-i)/j*100),y.jsxs("div",{...T,className:ne.basetrack,style:{...T.style},children:[!R&&y.jsx("div",{className:ne.selectedtrack,style:{left:`${N}%`,width:`${F}%`,zIndex:"1"}}),R&&y.jsx("div",{className:`${ne.livetrack} ${u?ne.livetrackFaceted:ne.livetrackDefault}`,style:{left:`${$}%`,width:`${C}%`,zIndex:"2"}}),E]},O)},renderThumb:({props:_,index:E})=>{const{key:O,...T}=_,j=E===0?b:x;return y.jsx("div",{...T,id:E===0?m:void 0,className:`${ne.thumbs} ${o?ne.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{...T.style,zIndex:"3"},"aria-label":h||(E===0?"Minimum value":"Maximum value"),"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":j},O)}})]})}else{const w=e.value;return y.jsxs("div",{className:s,children:[g&&y.jsx("label",{htmlFor:m,className:ne.label,children:g}),y.jsx(Nn.Range,{step:r,min:t,max:n,values:[w],onChange:b=>v(b[0]),onFinalChange:b=>p==null?void 0:p(b[0]),disabled:o,renderTrack:({props:b,children:x})=>{const{key:_,...E}=b,O=n-t,T=(w-t)/O*100;let j=0,N=0;const F=typeof i=="number"&&typeof a=="number"&&a>i&&(i>t||a<n);return F&&(j=(i-t)/O*100,N=(a-i)/O*100),y.jsxs("div",{...E,className:ne.basetrack,style:{...E.style},children:[!F&&y.jsx("div",{className:ne.selectedtrack,style:{left:"0%",width:`${T}%`,zIndex:"1"}}),F&&y.jsx("div",{className:`${ne.livetrack} ${u?ne.livetrackFaceted:ne.livetrackDefault}`,style:{left:`${j}%`,width:`${N}%`,zIndex:"2"}}),x]},_)},renderThumb:({props:b})=>{const{key:x,..._}=b;return y.jsx("div",{..._,id:m,className:`${ne.thumbs} ${o?ne.disabled:""} ${o?"cursor-not-allowed":"cursor-resize-col"}`,style:{..._.style,zIndex:"3"},"aria-label":h,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":w},x)}})]})}};function In(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),u=n.length;n=[...n,i];const d=p=>{var w;const{scope:g,children:h,...l}=p,c=((w=g==null?void 0:g[e])==null?void 0:w[u])||a,m=f.useMemo(()=>l,Object.values(l));return y.jsx(c.Provider,{value:m,children:h})};d.displayName=s+"Provider";function v(p,g){var c;const h=((c=g==null?void 0:g[e])==null?void 0:c[u])||a,l=f.useContext(h);if(l)return l;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,v]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Ho(o,...t)]}function Ho(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:u,scopeName:d})=>{const p=u(s)[`__scope${d}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Dn(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Dn(e[o],null)}}}}function te(...e){return f.useCallback(jn(...e),e)}function et(e){const t=Uo(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),u=a.find(qo);if(u){const d=u.props.children,v=a.map(p=>p===u?f.Children.count(d)>1?f.Children.only(null):f.isValidElement(d)?d.props.children:null:p);return y.jsx(t,{...i,ref:o,children:f.isValidElement(d)?f.cloneElement(d,void 0,v):null})}return y.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uo(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Ko(o),a=Yo(s,o.props);return o.type!==f.Fragment&&(a.ref=r?jn(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zo=Symbol("radix.slottable");function qo(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zo}function Yo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const u=s(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ko(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xo(e){const t=e+"CollectionProvider",[n,r]=lt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=c=>{const{scope:m,children:w}=c,b=z.useRef(null),x=z.useRef(new Map).current;return y.jsx(o,{scope:m,itemMap:x,collectionRef:b,children:w})};i.displayName=t;const a=e+"CollectionSlot",u=et(a),d=z.forwardRef((c,m)=>{const{scope:w,children:b}=c,x=s(a,w),_=te(m,x.collectionRef);return y.jsx(u,{ref:_,children:b})});d.displayName=a;const v=e+"CollectionItemSlot",p="data-radix-collection-item",g=et(v),h=z.forwardRef((c,m)=>{const{scope:w,children:b,...x}=c,_=z.useRef(null),E=te(m,_),O=s(v,w);return z.useEffect(()=>(O.itemMap.set(_,{ref:_,...x}),()=>void O.itemMap.delete(_))),y.jsx(g,{[p]:"",ref:E,children:b})});h.displayName=v;function l(c){const m=s(e+"CollectionConsumer",c);return z.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((O,T)=>x.indexOf(O.ref.current)-x.indexOf(T.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},l,r]}var Zo=f.createContext(void 0);function Go(e){const t=f.useContext(Zo);return e||t||"ltr"}var Jo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Jo.reduce((e,t)=>{const n=et(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qo(e,t){e&&st.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ei(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ti="DismissableLayer",Bt="dismissableLayer.update",ni="dismissableLayer.pointerDownOutside",ri="dismissableLayer.focusOutside",Ln,Fn=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,d=f.useContext(Fn),[v,p]=f.useState(null),g=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=f.useState({}),l=te(t,T=>p(T)),c=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=c.indexOf(m),b=v?c.indexOf(v):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,_=b>=w,E=si(T=>{const j=T.target,N=[...d.branches].some(F=>F.contains(j));!_||N||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},g),O=ai(T=>{const j=T.target;[...d.branches].some(F=>F.contains(j))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},g);return ei(T=>{b===d.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},g),f.useEffect(()=>{if(v)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ln=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),Bn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ln)}},[v,g,n,d]),f.useEffect(()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),Bn())},[v,d]),f.useEffect(()=>{const T=()=>h({});return document.addEventListener(Bt,T),()=>document.removeEventListener(Bt,T)},[]),y.jsx(J.div,{...u,ref:l,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,E.onPointerDownCapture)})});$t.displayName=ti;var oi="DismissableLayerBranch",ii=f.forwardRef((e,t)=>{const n=f.useContext(Fn),r=f.useRef(null),o=te(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(J.div,{...e,ref:o})});ii.displayName=oi;function si(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let u=function(){$n(ni,n,d,{discrete:!0})};const d={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&$n(ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bn(){const e=new CustomEvent(Bt);document.dispatchEvent(e)}function $n(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qo(o,s):o.dispatchEvent(s)}var Vt=0;function Vn(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wn()),document.body.insertAdjacentElement("beforeend",e[1]??Wn()),Vt++,()=>{Vt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vt--}},[])}function Wn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Wt="focusScope.autoFocusOnMount",Ht="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},ci="FocusScope",Ut=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,u]=f.useState(null),d=Ae(o),v=Ae(s),p=f.useRef(null),g=te(t,c=>u(c)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let c=function(x){if(h.paused||!a)return;const _=x.target;a.contains(_)?p.current=_:Se(p.current,{select:!0})},m=function(x){if(h.paused||!a)return;const _=x.relatedTarget;_!==null&&(a.contains(_)||Se(p.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Se(a)};document.addEventListener("focusin",c),document.addEventListener("focusout",m);const b=new MutationObserver(w);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",m),b.disconnect()}}},[r,a,h.paused]),f.useEffect(()=>{if(a){qn.add(h);const c=document.activeElement;if(!a.contains(c)){const w=new CustomEvent(Wt,Hn);a.addEventListener(Wt,d),a.dispatchEvent(w),w.defaultPrevented||(li(hi(Un(a)),{select:!0}),document.activeElement===c&&Se(a))}return()=>{a.removeEventListener(Wt,d),setTimeout(()=>{const w=new CustomEvent(Ht,Hn);a.addEventListener(Ht,v),a.dispatchEvent(w),w.defaultPrevented||Se(c??document.body,{select:!0}),a.removeEventListener(Ht,v),qn.remove(h)},0)}}},[a,d,v,h]);const l=f.useCallback(c=>{if(!n&&!r||h.paused)return;const m=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,w=document.activeElement;if(m&&w){const b=c.currentTarget,[x,_]=ui(b);x&&_?!c.shiftKey&&w===_?(c.preventDefault(),n&&Se(x,{select:!0})):c.shiftKey&&w===x&&(c.preventDefault(),n&&Se(_,{select:!0})):w===b&&c.preventDefault()}},[n,r,h.paused]);return y.jsx(J.div,{tabIndex:-1,...i,ref:g,onKeyDown:l})});Ut.displayName=ci;function li(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Se(r,{select:t}),document.activeElement!==n)return}function ui(e){const t=Un(e),n=zn(t,e),r=zn(t.reverse(),e);return[n,r]}function Un(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zn(e,t){for(const n of e)if(!di(n,{upTo:t}))return n}function di(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fi(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fi(e)&&t&&e.select()}}var qn=pi();function pi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Yn(e,t),e.unshift(t)},remove(t){var n;e=Yn(e,t),(n=e[0])==null||n.resume()}}}function Yn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hi(e){return e.filter(t=>t.tagName!=="A")}var re=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},mi=f[" useId ".trim().toString()]||(()=>{}),vi=0;function ut(e){const[t,n]=f.useState(mi());return re(()=>{n(r=>r??String(vi++))},[e]),e||(t?`radix-${t}`:"")}const gi=["top","right","bottom","left"],_e=Math.min,se=Math.max,dt=Math.round,ft=Math.floor,he=e=>({x:e,y:e}),bi={left:"right",right:"left",bottom:"top",top:"bottom"},yi={start:"end",end:"start"};function zt(e,t,n){return se(e,_e(t,n))}function ye(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function qt(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}const wi=new Set(["top","bottom"]);function me(e){return wi.has(we(e))?"y":"x"}function Kt(e){return qt(me(e))}function xi(e,t,n){n===void 0&&(n=!1);const r=Fe(e),o=Kt(e),s=Yt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pt(i)),[i,pt(i)]}function Si(e){const t=pt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>yi[t])}const Kn=["left","right"],Xn=["right","left"],_i=["top","bottom"],Ei=["bottom","top"];function Ci(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Kn:t?Kn:Xn;case"left":case"right":return t?_i:Ei;default:return[]}}function Ri(e,t,n,r){const o=Fe(e);let s=Ci(we(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xt)))),s}function pt(e){return e.replace(/left|right|bottom|top/g,t=>bi[t])}function Ti(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ti(e):{top:e,right:e,bottom:e,left:e}}function ht(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=me(t),i=Kt(t),a=Yt(i),u=we(t),d=s==="y",v=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let h;switch(u){case"top":h={x:v,y:r.y-o.height};break;case"bottom":h={x:v,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Fe(t)){case"start":h[i]-=g*(n&&d?-1:1);break;case"end":h[i]+=g*(n&&d?-1:1);break}return h}const Pi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:p}=Gn(d,r,u),g=r,h={},l=0;for(let c=0;c<a.length;c++){const{name:m,fn:w}=a[c],{x:b,y:x,data:_,reset:E}=await w({x:v,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});v=b??v,p=x??p,h={...h,[m]:{...h[m],..._}},E&&l<=50&&(l++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:v,y:p}=Gn(d,g,u)),c=-1)}return{x:v,y:p,placement:g,strategy:o,middlewareData:h}};async function tt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:v="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=ye(t,e),l=Zn(h),m=a[g?p==="floating"?"reference":"floating":p],w=ht(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:v,strategy:u})),b=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},E=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:u}):b);return{top:(w.top-E.top+l.top)/_.y,bottom:(E.bottom-w.bottom+l.bottom)/_.y,left:(w.left-E.left+l.left)/_.x,right:(E.right-w.right+l.right)/_.x}}const Oi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:d,padding:v=0}=ye(e,t)||{};if(d==null)return{};const p=Zn(v),g={x:n,y:r},h=Kt(o),l=Yt(h),c=await i.getDimensions(d),m=h==="y",w=m?"top":"left",b=m?"bottom":"right",x=m?"clientHeight":"clientWidth",_=s.reference[l]+s.reference[h]-g[h]-s.floating[l],E=g[h]-s.reference[h],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let T=O?O[x]:0;(!T||!await(i.isElement==null?void 0:i.isElement(O)))&&(T=a.floating[x]||s.floating[l]);const j=_/2-E/2,N=T/2-c[l]/2-1,F=_e(p[w],N),$=_e(p[b],N),C=F,R=T-c[l]-$,P=T/2-c[l]/2+j,I=zt(C,P,R),M=!u.arrow&&Fe(o)!=null&&P!==I&&s.reference[l]/2-(P<C?F:$)-c[l]/2<0,k=M?P<C?P-C:P-R:0;return{[h]:g[h]+k,data:{[h]:I,centerOffset:P-I-k,...M&&{alignmentOffset:k}},reset:M}}}),Ai=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:d}=t,{mainAxis:v=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:l="none",flipAlignment:c=!0,...m}=ye(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=we(o),b=me(a),x=we(a)===a,_=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=g||(x||!c?[pt(a)]:Si(a)),O=l!=="none";!g&&O&&E.push(...Ri(a,c,l,_));const T=[a,...E],j=await tt(t,m),N=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(v&&N.push(j[w]),p){const P=xi(o,i,_);N.push(j[P[0]],j[P[1]])}if(F=[...F,{placement:o,overflows:N}],!N.every(P=>P<=0)){var $,C;const P=((($=s.flip)==null?void 0:$.index)||0)+1,I=T[P];if(I&&(!(p==="alignment"?b!==me(I):!1)||F.every(A=>me(A.placement)===b?A.overflows[0]>0:!0)))return{data:{index:P,overflows:F},reset:{placement:I}};let M=(C=F.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:C.placement;if(!M)switch(h){case"bestFit":{var R;const k=(R=F.filter(A=>{if(O){const L=me(A.placement);return L===b||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,H)=>L+H,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:R[0];k&&(M=k);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return gi.some(t=>e[t]>=0)}const ki=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ye(e,t);switch(r){case"referenceHidden":{const s=await tt(t,{...o,elementContext:"reference"}),i=Jn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qn(i)}}}case"escaped":{const s=await tt(t,{...o,altBoundary:!0}),i=Jn(s,n.floating);return{data:{escapedOffsets:i,escaped:Qn(i)}}}default:return{}}}}},er=new Set(["left","top"]);async function Mi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=we(n),a=Fe(n),u=me(n)==="y",d=er.has(i)?-1:1,v=s&&u?-1:1,p=ye(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:l}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof l=="number"&&(h=a==="end"?l*-1:l),u?{x:h*v,y:g*d}:{x:g*d,y:h*v}}const Ni=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await Mi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:m=>{let{x:w,y:b}=m;return{x:w,y:b}}},...u}=ye(e,t),d={x:n,y:r},v=await tt(t,u),p=me(we(o)),g=qt(p);let h=d[g],l=d[p];if(s){const m=g==="y"?"top":"left",w=g==="y"?"bottom":"right",b=h+v[m],x=h-v[w];h=zt(b,h,x)}if(i){const m=p==="y"?"top":"left",w=p==="y"?"bottom":"right",b=l+v[m],x=l-v[w];l=zt(b,l,x)}const c=a.fn({...t,[g]:h,[p]:l});return{...c,data:{x:c.x-n,y:c.y-r,enabled:{[g]:s,[p]:i}}}}}},Di=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:d=!0}=ye(e,t),v={x:n,y:r},p=me(o),g=qt(p);let h=v[g],l=v[p];const c=ye(a,t),m=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};if(u){const x=g==="y"?"height":"width",_=s.reference[g]-s.floating[x]+m.mainAxis,E=s.reference[g]+s.reference[x]-m.mainAxis;h<_?h=_:h>E&&(h=E)}if(d){var w,b;const x=g==="y"?"width":"height",_=er.has(we(o)),E=s.reference[p]-s.floating[x]+(_&&((w=i.offset)==null?void 0:w[p])||0)+(_?0:m.crossAxis),O=s.reference[p]+s.reference[x]+(_?0:((b=i.offset)==null?void 0:b[p])||0)-(_?m.crossAxis:0);l<E?l=E:l>O&&(l=O)}return{[g]:h,[p]:l}}}},ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...d}=ye(e,t),v=await tt(t,d),p=we(o),g=Fe(o),h=me(o)==="y",{width:l,height:c}=s.floating;let m,w;p==="top"||p==="bottom"?(m=p,w=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,m=g==="end"?"top":"bottom");const b=c-v.top-v.bottom,x=l-v.left-v.right,_=_e(c-v[m],b),E=_e(l-v[w],x),O=!t.middlewareData.shift;let T=_,j=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=b),O&&!g){const F=se(v.left,0),$=se(v.right,0),C=se(v.top,0),R=se(v.bottom,0);h?j=l-2*(F!==0||$!==0?F+$:se(v.left,v.right)):T=c-2*(C!==0||R!==0?C+R:se(v.top,v.bottom))}await u({...t,availableWidth:j,availableHeight:T});const N=await i.getDimensions(a.floating);return l!==N.width||c!==N.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function Be(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tr(e){return mt()?e instanceof Node||e instanceof ae(e).Node:!1}function de(e){return mt()?e instanceof Element||e instanceof ae(e).Element:!1}function ge(e){return mt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function nr(e){return!mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Li=new Set(["inline","contents"]);function nt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Li.has(o)}const Fi=new Set(["table","td","th"]);function Bi(e){return Fi.has(Be(e))}const $i=[":popover-open",":modal"];function vt(e){return $i.some(t=>{try{return e.matches(t)}catch{return!1}})}const Vi=["transform","translate","scale","rotate","perspective"],Wi=["transform","translate","scale","rotate","perspective","filter"],Hi=["paint","layout","strict","content"];function Zt(e){const t=Gt(),n=de(e)?fe(e):e;return Vi.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wi.some(r=>(n.willChange||"").includes(r))||Hi.some(r=>(n.contain||"").includes(r))}function Ui(e){let t=Ee(e);for(;ge(t)&&!$e(t);){if(Zt(t))return t;if(vt(t))return null;t=Ee(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zi=new Set(["html","body","#document"]);function $e(e){return zi.has(Be(e))}function fe(e){return ae(e).getComputedStyle(e)}function gt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ee(e){if(Be(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ve(e);return nr(t)?t.host:t}function rr(e){const t=Ee(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&nt(t)?t:rr(t)}function rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ae(o);if(s){const a=Jt(i);return t.concat(i,i.visualViewport||[],nt(o)?o:[],a&&n?rt(a):[])}return t.concat(o,rt(o,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=dt(n)!==s||dt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Qt(e){return de(e)?e:e.contextElement}function Ve(e){const t=Qt(e);if(!ge(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=or(t);let i=(s?dt(n.width):n.width)/r,a=(s?dt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const qi=he(0);function ir(e){const t=ae(e);return!Gt()||!t.visualViewport?qi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qt(e);let i=he(1);t&&(r?de(r)&&(i=Ve(r)):i=Ve(e));const a=Yi(s,n,r)?ir(s):he(0);let u=(o.left+a.x)/i.x,d=(o.top+a.y)/i.y,v=o.width/i.x,p=o.height/i.y;if(s){const g=ae(s),h=r&&de(r)?ae(r):r;let l=g,c=Jt(l);for(;c&&r&&h!==l;){const m=Ve(c),w=c.getBoundingClientRect(),b=fe(c),x=w.left+(c.clientLeft+parseFloat(b.paddingLeft))*m.x,_=w.top+(c.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,d*=m.y,v*=m.x,p*=m.y,u+=x,d+=_,l=ae(c),c=Jt(l)}}return ht({width:v,height:p,x:u,y:d})}function bt(e,t){const n=gt(e).scrollLeft;return t?t.left+n:ke(ve(e)).left+n}function sr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-bt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ki(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ve(r),a=t?vt(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},d=he(1);const v=he(0),p=ge(r);if((p||!p&&!s)&&((Be(r)!=="body"||nt(i))&&(u=gt(r)),ge(r))){const h=ke(r);d=Ve(r),v.x=h.x+r.clientLeft,v.y=h.y+r.clientTop}const g=i&&!p&&!s?sr(i,u):he(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+v.x+g.x,y:n.y*d.y-u.scrollTop*d.y+v.y+g.y}}function Xi(e){return Array.from(e.getClientRects())}function Zi(e){const t=ve(e),n=gt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+bt(e);const a=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ar=25;function Gi(e,t){const n=ae(e),r=ve(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const v=Gt();(!v||v&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const d=bt(r);if(d<=0){const v=r.ownerDocument,p=v.body,g=getComputedStyle(p),h=v.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,l=Math.abs(r.clientWidth-p.clientWidth-h);l<=ar&&(s-=l)}else d<=ar&&(s+=d);return{width:s,height:i,x:a,y:u}}const Ji=new Set(["absolute","fixed"]);function Qi(e,t){const n=ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Ve(e):he(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:i,height:a,x:u,y:d}}function cr(e,t,n){let r;if(t==="viewport")r=Gi(e,n);else if(t==="document")r=Zi(ve(e));else if(de(t))r=Qi(t,n);else{const o=ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ht(r)}function lr(e,t){const n=Ee(e);return n===t||!de(n)||$e(n)?!1:fe(n).position==="fixed"||lr(n,t)}function es(e,t){const n=t.get(e);if(n)return n;let r=rt(e,[],!1).filter(a=>de(a)&&Be(a)!=="body"),o=null;const s=fe(e).position==="fixed";let i=s?Ee(e):e;for(;de(i)&&!$e(i);){const a=fe(i),u=Zt(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&Ji.has(o.position)||nt(i)&&!u&&lr(e,i))?r=r.filter(v=>v!==i):o=a,i=Ee(i)}return t.set(e,r),r}function ts(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?vt(t)?[]:es(t,this._c):[].concat(n),r],a=i[0],u=i.reduce((d,v)=>{const p=cr(t,v,o);return d.top=se(p.top,d.top),d.right=_e(p.right,d.right),d.bottom=_e(p.bottom,d.bottom),d.left=se(p.left,d.left),d},cr(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ns(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function rs(e,t,n){const r=ge(t),o=ve(t),s=n==="fixed",i=ke(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=he(0);function d(){u.x=bt(o)}if(r||!r&&!s)if((Be(t)!=="body"||nt(o))&&(a=gt(t)),r){const h=ke(t,!0,s,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&d();s&&!r&&o&&d();const v=o&&!r&&!s?sr(o,a):he(0),p=i.left+a.scrollLeft-u.x-v.x,g=i.top+a.scrollTop-u.y-v.y;return{x:p,y:g,width:i.width,height:i.height}}function en(e){return fe(e).position==="static"}function ur(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function dr(e,t){const n=ae(e);if(vt(e))return n;if(!ge(e)){let o=Ee(e);for(;o&&!$e(o);){if(de(o)&&!en(o))return o;o=Ee(o)}return n}let r=ur(e,t);for(;r&&Bi(r)&&en(r);)r=ur(r,t);return r&&$e(r)&&en(r)&&!Zt(r)?n:r||Ui(e)||n}const os=async function(e){const t=this.getOffsetParent||dr,n=this.getDimensions,r=await n(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function is(e){return fe(e).direction==="rtl"}const ss={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:ve,getClippingRect:ts,getOffsetParent:dr,getElementRects:os,getClientRects:Xi,getDimensions:ns,getScale:Ve,isElement:de,isRTL:is};function fr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function as(e,t){let n=null,r;const o=ve(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:v,top:p,width:g,height:h}=d;if(a||t(),!g||!h)return;const l=ft(p),c=ft(o.clientWidth-(v+g)),m=ft(o.clientHeight-(p+h)),w=ft(v),x={rootMargin:-l+"px "+-c+"px "+-m+"px "+-w+"px",threshold:se(0,_e(1,u))||1};let _=!0;function E(O){const T=O[0].intersectionRatio;if(T!==u){if(!_)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fr(d,e.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return i(!0),s}function cs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Qt(e),v=o||s?[...d?rt(d):[],...rt(t)]:[];v.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const p=d&&a?as(d,n):null;let g=-1,h=null;i&&(h=new ResizeObserver(w=>{let[b]=w;b&&b.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),d&&!u&&h.observe(d),h.observe(t));let l,c=u?ke(e):null;u&&m();function m(){const w=ke(e);c&&!fr(c,w)&&n(),c=w,l=requestAnimationFrame(m)}return n(),()=>{var w;v.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),p==null||p(),(w=h)==null||w.disconnect(),h=null,u&&cancelAnimationFrame(l)}}const ls=Ni,us=Ii,ds=Ai,fs=ji,ps=ki,pr=Oi,hs=Di,ms=(e,t,n)=>{const r=new Map,o={platform:ss,...n},s={...o.platform,_c:r};return Pi(e,t,{...o,platform:s})};var vs=typeof document<"u",gs=function(){},yt=vs?z.useLayoutEffect:gs;function wt(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!wt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!wt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mr(e,t){const n=hr(e);return Math.round(t*n)/n}function tn(e){const t=f.useRef(e);return yt(()=>{t.current=e}),t}function bs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:d}=e,[v,p]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=f.useState(r);wt(g,r)||h(r);const[l,c]=f.useState(null),[m,w]=f.useState(null),b=f.useCallback(A=>{A!==O.current&&(O.current=A,c(A))},[]),x=f.useCallback(A=>{A!==T.current&&(T.current=A,w(A))},[]),_=s||l,E=i||m,O=f.useRef(null),T=f.useRef(null),j=f.useRef(v),N=u!=null,F=tn(u),$=tn(o),C=tn(d),R=f.useCallback(()=>{if(!O.current||!T.current)return;const A={placement:t,strategy:n,middleware:g};$.current&&(A.platform=$.current),ms(O.current,T.current,A).then(L=>{const H={...L,isPositioned:C.current!==!1};P.current&&!wt(j.current,H)&&(j.current=H,st.flushSync(()=>{p(H)}))})},[g,t,n,$,C]);yt(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[d]);const P=f.useRef(!1);yt(()=>(P.current=!0,()=>{P.current=!1}),[]),yt(()=>{if(_&&(O.current=_),E&&(T.current=E),_&&E){if(F.current)return F.current(_,E,R);R()}},[_,E,R,F,N]);const I=f.useMemo(()=>({reference:O,floating:T,setReference:b,setFloating:x}),[b,x]),M=f.useMemo(()=>({reference:_,floating:E}),[_,E]),k=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const L=mr(M.floating,v.x),H=mr(M.floating,v.y);return a?{...A,transform:"translate("+L+"px, "+H+"px)",...hr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:H}},[n,a,M.floating,v.x,v.y]);return f.useMemo(()=>({...v,update:R,refs:I,elements:M,floatingStyles:k}),[v,R,I,M,k])}const ys=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pr({element:r.current,padding:o}).fn(n):{}:r?pr({element:r,padding:o}).fn(n):{}}}},ws=(e,t)=>({...ls(e),options:[e,t]}),xs=(e,t)=>({...us(e),options:[e,t]}),Ss=(e,t)=>({...hs(e),options:[e,t]}),_s=(e,t)=>({...ds(e),options:[e,t]}),Es=(e,t)=>({...fs(e),options:[e,t]}),Cs=(e,t)=>({...ps(e),options:[e,t]}),Rs=(e,t)=>({...ys(e),options:[e,t]});var Ts="Arrow",vr=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return y.jsx(J.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});vr.displayName=Ts;var Ps=vr;function Os(e){const[t,n]=f.useState(void 0);return re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,a=d.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nn="Popper",[gr,xt]=lt(nn),[As,br]=gr(nn),yr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return y.jsx(As,{scope:t,anchor:r,onAnchorChange:o,children:n})};yr.displayName=nn;var wr="PopperAnchor",xr=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=br(wr,n),i=f.useRef(null),a=te(t,i),u=f.useRef(null);return f.useEffect(()=>{const d=u.current;u.current=(r==null?void 0:r.current)||i.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:y.jsx(J.div,{...o,ref:a})});xr.displayName=wr;var rn="PopperContent",[ks,Ms]=gr(rn),Sr=f.forwardRef((e,t)=>{var D,U,ee,q,Y,X;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:v=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:l,...c}=e,m=br(rn,n),[w,b]=f.useState(null),x=te(t,oe=>b(oe)),[_,E]=f.useState(null),O=Os(_),T=(O==null?void 0:O.width)??0,j=(O==null?void 0:O.height)??0,N=r+(s!=="center"?"-"+s:""),F=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},$=Array.isArray(d)?d:[d],C=$.length>0,R={padding:F,boundary:$.filter(Is),altBoundary:C},{refs:P,floatingStyles:I,placement:M,isPositioned:k,middlewareData:A}=bs({strategy:"fixed",placement:N,whileElementsMounted:(...oe)=>cs(...oe,{animationFrame:h==="always"}),elements:{reference:m.anchor},middleware:[ws({mainAxis:o+j,alignmentAxis:i}),u&&xs({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ss():void 0,...R}),u&&_s({...R}),Es({...R,apply:({elements:oe,rects:ce,availableWidth:le,availableHeight:Pe})=>{const{width:Oe,height:Dt}=ce.reference,jt=oe.floating.style;jt.setProperty("--radix-popper-available-width",`${le}px`),jt.setProperty("--radix-popper-available-height",`${Pe}px`),jt.setProperty("--radix-popper-anchor-width",`${Oe}px`),jt.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),_&&Rs({element:_,padding:a}),Ds({arrowWidth:T,arrowHeight:j}),g&&Cs({strategy:"referenceHidden",...R})]}),[L,H]=Cr(M),S=Ae(l);re(()=>{k&&(S==null||S())},[k,S]);const B=(D=A.arrow)==null?void 0:D.x,V=(U=A.arrow)==null?void 0:U.y,W=((ee=A.arrow)==null?void 0:ee.centerOffset)!==0,[K,Q]=f.useState();return re(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),y.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:k?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[(q=A.transformOrigin)==null?void 0:q.x,(Y=A.transformOrigin)==null?void 0:Y.y].join(" "),...((X=A.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(ks,{scope:n,placedSide:L,onArrowChange:E,arrowX:B,arrowY:V,shouldHideArrow:W,children:y.jsx(J.div,{"data-side":L,"data-align":H,...c,ref:x,style:{...c.style,animation:k?void 0:"none"}})})})});Sr.displayName=rn;var _r="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Er=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ms(_r,r),i=Ns[s.placedSide];return y.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:y.jsx(Ps,{...o,ref:n,style:{...o.style,display:"block"}})})});Er.displayName=_r;function Is(e){return e!==null}var Ds=e=>({name:"transformOrigin",options:e,fn(t){var m,w,b;const{placement:n,rects:r,middlewareData:o}=t,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,v]=Cr(n),p={start:"0%",center:"50%",end:"100%"}[v],g=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+u/2;let l="",c="";return d==="bottom"?(l=i?p:`${g}px`,c=`${-u}px`):d==="top"?(l=i?p:`${g}px`,c=`${r.floating.height+u}px`):d==="right"?(l=`${-u}px`,c=i?p:`${h}px`):d==="left"&&(l=`${r.floating.width+u}px`,c=i?p:`${h}px`),{data:{x:l,y:c}}}});function Cr(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=yr,on=xr,Tr=Sr,Pr=Er,js="Portal",sn=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);re(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Sn.createPortal(y.jsx(J.div,{...r,ref:t}),i):null});sn.displayName=js;var Ls=f[" useInsertionEffect ".trim().toString()]||re;function an({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Fs({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const v=f.useRef(e!==void 0);f.useEffect(()=>{const p=v.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=a},[a,r])}const d=f.useCallback(v=>{var p;if(a){const g=Bs(v)?v(e):v;g!==e&&((p=i.current)==null||p.call(i,g))}else s(v)},[a,e,s,i]);return[u,d]}function Fs({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return Ls(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Bs(e){return typeof e=="function"}function $s(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vs="VisuallyHidden",Ws=f.forwardRef((e,t)=>y.jsx(J.span,{...e,ref:t,style:{...Or,...e.style}}));Ws.displayName=Vs;var Hs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,St=new WeakMap,_t={},cn=0,Ar=function(e){return e&&(e.host||Ar(e.parentNode))},Us=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ar(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zs=function(e,t,n,r){var o=Us(t,Array.isArray(e)?e:[e]);_t[n]||(_t[n]=new WeakMap);var s=_t[n],i=[],a=new Set,u=new Set(o),d=function(p){!p||a.has(p)||(a.add(p),d(p.parentNode))};o.forEach(d);var v=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(g){if(a.has(g))v(g);else try{var h=g.getAttribute(r),l=h!==null&&h!=="false",c=(We.get(g)||0)+1,m=(s.get(g)||0)+1;We.set(g,c),s.set(g,m),i.push(g),c===1&&l&&St.set(g,!0),m===1&&g.setAttribute(n,"true"),l||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return v(t),a.clear(),cn++,function(){i.forEach(function(p){var g=We.get(p)-1,h=s.get(p)-1;We.set(p,g),s.set(p,h),g||(St.has(p)||p.removeAttribute(r),St.delete(p)),h||p.removeAttribute(n)}),cn--,cn||(We=new WeakMap,We=new WeakMap,St=new WeakMap,_t={})}},kr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zs(r,o,n,"aria-hidden")):function(){return null}},be=function(){return be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},be.apply(this,arguments)};function Mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function qs(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Et="right-scroll-bar-position",Ct="width-before-scroll-bar",Ys="with-scroll-bars-hidden",Ks="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xs(e,t){var n=z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zs=typeof window<"u"?f.useLayoutEffect:f.useEffect,Nr=new WeakMap;function Gs(e,t){var n=Xs(null,function(r){return e.forEach(function(o){return ln(o,r)})});return Zs(function(){var r=Nr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||ln(a,null)}),s.forEach(function(a){o.has(a)||ln(a,i)})}Nr.set(n,e)},[e]),n}function Js(e){return e}function Qs(e,t){t===void 0&&(t=Js);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var u=function(){var v=i;i=[],v.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(v){i.push(v),d()},filter:function(v){return i=i.filter(v),n}}}};return o}function ea(e){e===void 0&&(e={});var t=Qs(null);return t.options=be({async:!0,ssr:!1},e),t}var Ir=function(e){var t=e.sideCar,n=Mr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,be({},n))};Ir.isSideCarExport=!0;function ta(e,t){return e.useMedium(t),Ir}var Dr=ea(),un=function(){},Rt=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,u=e.className,d=e.removeScrollBar,v=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,l=e.noIsolation,c=e.inert,m=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,x=e.gapMode,_=Mr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,O=Gs([n,t]),T=be(be({},_),o);return f.createElement(f.Fragment,null,v&&f.createElement(E,{sideCar:Dr,removeScrollBar:d,shards:p,noRelative:h,noIsolation:l,inert:c,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?f.cloneElement(f.Children.only(a),be(be({},T),{ref:O})):f.createElement(b,be({},T,{className:u,ref:O}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:Ct,zeroRight:Et};var na=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ra(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=na();return t&&e.setAttribute("nonce",t),e}function oa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ia(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ra())&&(oa(t,n),ia(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aa=function(){var e=sa();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jr=function(){var e=aa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ca={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},la=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dn(n),dn(r),dn(o)]},ua=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ca;var t=la(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},da=jr(),He="data-scroll-locked",fa=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
+
.`.concat(Ys,` {
|
|
24
24
|
overflow: hidden `).concat(r,`;
|
|
25
25
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
27
|
+
body[`).concat(He,`] {
|
|
28
28
|
overflow: hidden `).concat(r,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -53,10 +53,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
margin-right: 0 `).concat(r,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
56
|
+
body[`).concat(He,`] {
|
|
57
57
|
`).concat(Ks,": ").concat(a,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},Lr=function(){var e=parseInt(document.body.getAttribute(
|
|
59
|
+
`)},Lr=function(){var e=parseInt(document.body.getAttribute(He)||"0",10);return isFinite(e)?e:0},pa=function(){f.useEffect(function(){return document.body.setAttribute(He,(Lr()+1).toString()),function(){var e=Lr()-1;e<=0?document.body.removeAttribute(He):document.body.setAttribute(He,e.toString())}},[])},ha=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;pa();var s=f.useMemo(function(){return ua(o)},[o]);return f.createElement(da,{styles:fa(s,!t,o,n?"":"!important")})},fn=!1;if(typeof window<"u")try{var Tt=Object.defineProperty({},"passive",{get:function(){return fn=!0,!0}});window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch{fn=!1}var Ue=fn?{passive:!1}:!1,ma=function(e){return e.tagName==="TEXTAREA"},Fr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ma(e)&&n[t]==="visible")},va=function(e){return Fr(e,"overflowY")},ga=function(e){return Fr(e,"overflowX")},Br=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=$r(e,r);if(o){var s=Vr(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ba=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ya=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$r=function(e,t){return e==="v"?va(t):ga(t)},Vr=function(e,t){return e==="v"?ba(t):ya(t)},wa=function(e,t){return e==="h"&&t==="rtl"?-1:1},xa=function(e,t,n,r,o){var s=wa(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,u=t.contains(a),d=!1,v=i>0,p=0,g=0;do{if(!a)break;var h=Vr(e,a),l=h[0],c=h[1],m=h[2],w=c-m-s*l;(l||w)&&$r(e,a)&&(p+=w,g+=l);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(v&&Math.abs(p)<1||!v&&Math.abs(g)<1)&&(d=!0),d},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wr=function(e){return[e.deltaX,e.deltaY]},Hr=function(e){return e&&"current"in e?e.current:e},Sa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_a=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},Ea=0,He=[];function Ca(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Ea++)[0],s=u.useState(jr)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=Ys([e.lockRef.current],(e.shards||[]).map(Hr),!0).filter(Boolean);return c.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(c,h){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!i.current.allowPinchZoom;var w=Pt(c),y=n.current,x="deltaX"in c?c.deltaX:y[0]-w[0],C="deltaY"in c?c.deltaY:y[1]-w[1],_,O=c.target,T=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in c&&T==="h"&&O.type==="range")return!1;var L=window.getSelection(),I=L&&L.anchorNode,B=I?I===O||I.contains(O):!1;if(B)return!1;var W=Br(T,O);if(!W)return!0;if(W?_=T:(_=T==="v"?"h":"v",W=Br(T,O)),!W)return!1;if(!r.current&&"changedTouches"in c&&(x||C)&&(r.current=_),!_)return!0;var E=r.current||_;return xa(E,h,c,E==="h"?x:C)},[]),d=u.useCallback(function(c){var h=c;if(!(!He.length||He[He.length-1]!==s)){var w="deltaY"in h?Vr(h):Pt(h),y=t.current.filter(function(_){return _.name===h.type&&(_.target===h.target||h.target===_.shadowParent)&&Sa(_.delta,w)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Hr).filter(Boolean).filter(function(_){return _.contains(h.target)}),C=x.length>0?a(h,x[0]):!i.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),f=u.useCallback(function(c,h,w,y){var x={name:c,delta:h,target:w,should:y,shadowParent:Ra(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),g=u.useCallback(function(c){n.current=Pt(c),r.current=void 0},[]),m=u.useCallback(function(c){f(c.type,Vr(c),c.target,a(c,e.lockRef.current))},[]),v=u.useCallback(function(c){f(c.type,Pt(c),c.target,a(c,e.lockRef.current))},[]);u.useEffect(function(){return He.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Ve),document.addEventListener("touchmove",d,Ve),document.addEventListener("touchstart",g,Ve),function(){He=He.filter(function(c){return c!==s}),document.removeEventListener("wheel",d,Ve),document.removeEventListener("touchmove",d,Ve),document.removeEventListener("touchstart",g,Ve)}},[]);var p=e.removeScrollBar,l=e.inert;return u.createElement(u.Fragment,null,l?u.createElement(s,{styles:_a(o)}):null,p?u.createElement(ha,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ra(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ta=ta(Dr,Ca);var pn=u.forwardRef(function(e,t){return u.createElement(Rt,ye({},e,{ref:t,sideCar:Ta}))});pn.classNames=Rt.classNames;var Pa=[" ","Enter","ArrowUp","ArrowDown"],Oa=[" ","Enter"],Me="Select",[Ot,At,Aa]=Xo(Me),[Ue]=lt(Me,[Aa,xt]),kt=xt(),[ka,Ee]=Ue(Me),[Ma,Na]=Ue(Me),Ur=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:d,dir:f,name:g,autoComplete:m,disabled:v,required:p,form:l}=e,c=kt(t),[h,w]=u.useState(null),[y,x]=u.useState(null),[C,_]=u.useState(!1),O=Go(f),[T,L]=an({prop:r,defaultProp:o??!1,onChange:s,caller:Me}),[I,B]=an({prop:i,defaultProp:a,onChange:d,caller:Me}),W=u.useRef(null),E=h?l||!!h.closest("form"):!0,[R,P]=u.useState(new Set),N=Array.from(R).map(M=>M.props.value).join(";");return b.jsx(Rr,{...c,children:b.jsxs(ka,{required:p,scope:t,trigger:h,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:ut(),value:I,onValueChange:B,open:T,onOpenChange:L,dir:O,triggerPointerDownPosRef:W,disabled:v,children:[b.jsx(Ot.Provider,{scope:t,children:b.jsx(Ma,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(M=>{P(k=>new Set(k).add(M))},[]),onNativeOptionRemove:u.useCallback(M=>{P(k=>{const A=new Set(k);return A.delete(M),A})},[]),children:n})}),E?b.jsxs(lo,{"aria-hidden":!0,required:p,tabIndex:-1,name:g,autoComplete:m,value:I,onChange:M=>B(M.target.value),disabled:v,form:l,children:[I===void 0?b.jsx("option",{value:""}):null,Array.from(R)]},N):null]})})};Ur.displayName=Me;var zr="SelectTrigger",Yr=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kt(n),i=Ee(zr,n),a=i.disabled||r,d=te(t,i.onTriggerChange),f=At(n),g=u.useRef("touch"),[m,v,p]=fo(c=>{const h=f().filter(x=>!x.disabled),w=h.find(x=>x.value===i.value),y=po(h,c,w);y!==void 0&&i.onValueChange(y.value)}),l=c=>{a||(i.onOpenChange(!0),p()),c&&(i.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return b.jsx(on,{asChild:!0,...s,children:b.jsx(J.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":uo(i.value)?"":void 0,...o,ref:d,onClick:Z(o.onClick,c=>{c.currentTarget.focus(),g.current!=="mouse"&&l(c)}),onPointerDown:Z(o.onPointerDown,c=>{g.current=c.pointerType;const h=c.target;h.hasPointerCapture(c.pointerId)&&h.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(l(c),c.preventDefault())}),onKeyDown:Z(o.onKeyDown,c=>{const h=m.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&v(c.key),!(h&&c.key===" ")&&Pa.includes(c.key)&&(l(),c.preventDefault())})})})});Yr.displayName=zr;var qr="SelectValue",Kr=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,d=Ee(qr,n),{onValueNodeHasChildrenChange:f}=d,g=s!==void 0,m=te(t,d.onValueNodeChange);return ne(()=>{f(g)},[f,g]),b.jsx(J.span,{...a,ref:m,style:{pointerEvents:"none"},children:uo(d.value)?b.jsx(b.Fragment,{children:i}):s})});Kr.displayName=qr;var Ia="SelectIcon",Xr=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xr.displayName=Ia;var Da="SelectPortal",Zr=e=>b.jsx(sn,{asChild:!0,...e});Zr.displayName=Da;var Ne="SelectContent",Gr=u.forwardRef((e,t)=>{const n=Ee(Ne,e.__scopeSelect),[r,o]=u.useState();if(ne(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?st.createPortal(b.jsx(Jr,{scope:e.__scopeSelect,children:b.jsx(Ot.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),s):null}return b.jsx(Qr,{...e,ref:t})});Gr.displayName=Ne;var pe=10,[Jr,Ce]=Ue(Ne),ja="SelectContentImpl",La=Qe("SelectContent.RemoveScroll"),Qr=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h,...w}=e,y=Ee(Ne,n),[x,C]=u.useState(null),[_,O]=u.useState(null),T=te(t,D=>C(D)),[L,I]=u.useState(null),[B,W]=u.useState(null),E=At(n),[R,P]=u.useState(!1),N=u.useRef(!1);u.useEffect(()=>{if(x)return kr(x)},[x]),$n();const M=u.useCallback(D=>{const[U,...ee]=E().map(K=>K.ref.current),[z]=ee.slice(-1),Y=document.activeElement;for(const K of D)if(K===Y||(K==null||K.scrollIntoView({block:"nearest"}),K===U&&_&&(_.scrollTop=0),K===z&&_&&(_.scrollTop=_.scrollHeight),K==null||K.focus(),document.activeElement!==Y))return},[E,_]),k=u.useCallback(()=>M([L,x]),[M,L,x]);u.useEffect(()=>{R&&k()},[R,k]);const{onOpenChange:A,triggerPointerDownPosRef:j}=y;u.useEffect(()=>{if(x){let D={x:0,y:0};const U=z=>{var Y,K;D={x:Math.abs(Math.round(z.pageX)-(((Y=j.current)==null?void 0:Y.x)??0)),y:Math.abs(Math.round(z.pageY)-(((K=j.current)==null?void 0:K.y)??0))}},ee=z=>{D.x<=10&&D.y<=10?z.preventDefault():x.contains(z.target)||A(!1),document.removeEventListener("pointermove",U),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",ee,{capture:!0})}}},[x,A,j]),u.useEffect(()=>{const D=()=>A(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[A]);const[H,S]=fo(D=>{const U=E().filter(Y=>!Y.disabled),ee=U.find(Y=>Y.ref.current===document.activeElement),z=po(U,D,ee);z&&setTimeout(()=>z.ref.current.focus())}),F=u.useCallback((D,U,ee)=>{const z=!N.current&&!ee;(y.value!==void 0&&y.value===U||z)&&(I(D),z&&(N.current=!0))},[y.value]),$=u.useCallback(()=>x==null?void 0:x.focus(),[x]),V=u.useCallback((D,U,ee)=>{const z=!N.current&&!ee;(y.value!==void 0&&y.value===U||z)&&W(D)},[y.value]),q=r==="popper"?hn:eo,Q=q===hn?{side:a,sideOffset:d,align:f,alignOffset:g,arrowPadding:m,collisionBoundary:v,collisionPadding:p,sticky:l,hideWhenDetached:c,avoidCollisions:h}:{};return b.jsx(Jr,{scope:n,content:x,viewport:_,onViewportChange:O,itemRefCallback:F,selectedItem:L,onItemLeave:$,itemTextRefCallback:V,focusSelectedItem:k,selectedItemText:B,position:r,isPositioned:R,searchRef:H,children:b.jsx(pn,{as:La,allowPinchZoom:!0,children:b.jsx(Ut,{asChild:!0,trapped:y.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Z(o,D=>{var U;(U=y.trigger)==null||U.focus({preventScroll:!0}),D.preventDefault()}),children:b.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:b.jsx(q,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:D=>D.preventDefault(),...w,...Q,onPlaced:()=>P(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Z(w.onKeyDown,D=>{const U=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!U&&D.key.length===1&&S(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let z=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(D.key)&&(z=z.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const Y=D.target,K=z.indexOf(Y);z=z.slice(K+1)}setTimeout(()=>M(z)),D.preventDefault()}})})})})})})});Qr.displayName=ja;var Fa="SelectItemAlignedPosition",eo=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ee(Ne,n),i=Ce(Ne,n),[a,d]=u.useState(null),[f,g]=u.useState(null),m=te(t,T=>g(T)),v=At(n),p=u.useRef(!1),l=u.useRef(!0),{viewport:c,selectedItem:h,selectedItemText:w,focusSelectedItem:y}=i,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&f&&c&&h&&w){const T=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),B=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=B.left-L.left,K=I.left-Y,re=T.left-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.left=Oe+"px"}else{const Y=L.right-B.right,K=window.innerWidth-I.right-Y,re=window.innerWidth-T.right-K,ce=T.width+re,le=Math.max(ce,L.width),Pe=window.innerWidth-pe,Oe=In(K,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.right=Oe+"px"}const W=v(),E=window.innerHeight-pe*2,R=c.scrollHeight,P=window.getComputedStyle(f),N=parseInt(P.borderTopWidth,10),M=parseInt(P.paddingTop,10),k=parseInt(P.borderBottomWidth,10),A=parseInt(P.paddingBottom,10),j=N+M+R+A+k,H=Math.min(h.offsetHeight*5,j),S=window.getComputedStyle(c),F=parseInt(S.paddingTop,10),$=parseInt(S.paddingBottom,10),V=T.top+T.height/2-pe,q=E-V,Q=h.offsetHeight/2,D=h.offsetTop+Q,U=N+M+D,ee=j-U;if(U<=V){const Y=W.length>0&&h===W[W.length-1].ref.current;a.style.bottom="0px";const K=f.clientHeight-c.offsetTop-c.offsetHeight,re=Math.max(q,Q+(Y?$:0)+K+k),ce=U+re;a.style.height=ce+"px"}else{const Y=W.length>0&&h===W[0].ref.current;a.style.top="0px";const re=Math.max(V,N+c.offsetTop+(Y?F:0)+Q)+ee;a.style.height=re+"px",c.scrollTop=U-V+c.offsetTop}a.style.margin=`${pe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=E+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,a,f,c,h,w,s.dir,r]);ne(()=>x(),[x]);const[C,_]=u.useState();ne(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const O=u.useCallback(T=>{T&&l.current===!0&&(x(),y==null||y(),l.current=!1)},[x,y]);return b.jsx(Wa,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:O,children:b.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:b.jsx(J.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eo.displayName=Fa;var Ba="SelectPopperPosition",hn=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...s}=e,i=kt(n);return b.jsx(Tr,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Ba;var[Wa,mn]=Ue(Ne,{}),vn="SelectViewport",to=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ce(vn,n),i=mn(vn,n),a=te(t,s.onViewportChange),d=u.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),b.jsx(Ot.Slot,{scope:n,children:b.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,f=>{const g=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&m){const p=Math.abs(d.current-g.scrollTop);if(p>0){const l=window.innerHeight-pe*2,c=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),w=Math.max(c,h);if(w<l){const y=w+p,x=Math.min(l,y),C=y-x;m.style.height=x+"px",m.style.bottom==="0px"&&(g.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}d.current=g.scrollTop})})})]})});to.displayName=vn;var no="SelectGroup",[$a,Va]=Ue(no),Ha=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut();return b.jsx($a,{scope:n,id:o,children:b.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ha.displayName=no;var ro="SelectLabel",Ua=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Va(ro,n);return b.jsx(J.div,{id:o.id,...r,ref:t})});Ua.displayName=ro;var Mt="SelectItem",[za,oo]=Ue(Mt),io=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Ee(Mt,n),d=Ce(Mt,n),f=a.value===r,[g,m]=u.useState(s??""),[v,p]=u.useState(!1),l=te(t,y=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,y,r,o)}),c=ut(),h=u.useRef("touch"),w=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return b.jsx(za,{scope:n,value:r,disabled:o,textId:c,isSelected:f,onItemTextChange:u.useCallback(y=>{m(x=>x||((y==null?void 0:y.textContent)??"").trim())},[]),children:b.jsx(Ot.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:b.jsx(J.div,{role:"option","aria-labelledby":c,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:l,onFocus:Z(i.onFocus,()=>p(!0)),onBlur:Z(i.onBlur,()=>p(!1)),onClick:Z(i.onClick,()=>{h.current!=="mouse"&&w()}),onPointerUp:Z(i.onPointerUp,()=>{h.current==="mouse"&&w()}),onPointerDown:Z(i.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:Z(i.onPointerMove,y=>{var x;h.current=y.pointerType,o?(x=d.onItemLeave)==null||x.call(d):h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,y=>{var x;y.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:Z(i.onKeyDown,y=>{var C;((C=d.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(Oa.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});io.displayName=Mt;var rt="SelectItemText",so=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Ee(rt,n),a=Ce(rt,n),d=oo(rt,n),f=Na(rt,n),[g,m]=u.useState(null),v=te(t,w=>m(w),d.onItemTextChange,w=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,w,d.value,d.disabled)}),p=g==null?void 0:g.textContent,l=u.useMemo(()=>b.jsx("option",{value:d.value,disabled:d.disabled,children:p},d.value),[d.disabled,d.value,p]),{onNativeOptionAdd:c,onNativeOptionRemove:h}=f;return ne(()=>(c(l),()=>h(l)),[c,h,l]),b.jsxs(b.Fragment,{children:[b.jsx(J.span,{id:d.textId,...s,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?st.createPortal(s.children,i.valueNode):null]})});so.displayName=rt;var ao="SelectItemIndicator",Ya=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oo(ao,n).isSelected?b.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});Ya.displayName=ao;var gn="SelectScrollUpButton",qa=u.forwardRef((e,t)=>{const n=Ce(gn,e.__scopeSelect),r=mn(gn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});qa.displayName=gn;var yn="SelectScrollDownButton",Ka=u.forwardRef((e,t)=>{const n=Ce(yn,e.__scopeSelect),r=mn(yn,e.__scopeSelect),[o,s]=u.useState(!1),i=te(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=d.scrollHeight-d.clientHeight,g=Math.ceil(d.scrollTop)<f;s(g)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?b.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});Ka.displayName=yn;var co=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ce("SelectScrollButton",n),i=u.useRef(null),a=At(n),d=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>d(),[d]),ne(()=>{var g;const f=a().find(m=>m.ref.current===document.activeElement);(g=f==null?void 0:f.ref.current)==null||g.scrollIntoView({block:"nearest"})},[a]),b.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var f;(f=s.onItemLeave)==null||f.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{d()})})}),Xa="SelectSeparator",Za=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});Za.displayName=Xa;var wn="SelectArrow",Ga=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kt(n),s=Ee(wn,n),i=Ce(wn,n);return s.open&&i.position==="popper"?b.jsx(Pr,{...o,...r,ref:t}):null});Ga.displayName=wn;var Ja="SelectBubbleInput",lo=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=te(r,o),i=Ws(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&g){const m=new Event("change",{bubbles:!0});g.call(a,t),a.dispatchEvent(m)}},[i,t]),b.jsx(J.select,{...n,style:{...Or,...n.style},ref:s,defaultValue:t})});lo.displayName=Ja;function uo(e){return e===""||e===void 0}function fo(e){const t=Ae(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function po(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Qa(e,Math.max(s,0));o.length===1&&(i=i.filter(f=>f!==n));const d=i.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Qa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=Ur,tc=Yr,nc=Kr,rc=Xr,oc=Zr,ic=Gr,sc=to,ac=io,cc=so;const ot={trigger:"_trigger_14rt8_1",icon:"_icon_14rt8_33",content:"_content_14rt8_39",viewport:"_viewport_14rt8_47",item:"_item_14rt8_51"},lc=({value:e,onValueChange:t,options:n,placeholder:r="Select...",className:o="",disabled:s=!1})=>b.jsxs(ec,{value:e,onValueChange:t,disabled:s,children:[b.jsxs(tc,{className:`${ot.trigger} ${o} cursor-pointer`,children:[b.jsx(nc,{placeholder:r}),b.jsx(rc,{className:ot.icon,children:b.jsx(Ao,{size:14,color:"currentColor"})})]}),b.jsx(oc,{children:b.jsx(ic,{className:ot.content,position:"popper",sideOffset:4,children:b.jsx(sc,{className:ot.viewport,children:n.map(i=>b.jsx(ac,{value:i.value,className:ot.item,children:b.jsx(cc,{children:i.label})},i.value))})})})]});function uc(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var bn=e=>{const{present:t,children:n}=e,r=dc(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=te(r.ref,fc(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};bn.displayName="Presence";function dc(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,d]=uc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const f=Nt(r.current);s.current=a==="mounted"?f:"none"},[a]),ne(()=>{const f=r.current,g=o.current;if(g!==e){const v=s.current,p=Nt(f);e?d("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(g&&v!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ne(()=>{if(t){let f;const g=t.ownerDocument.defaultView??window,m=p=>{const c=Nt(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&c&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",f=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=p=>{p.target===t&&(s.current=Nt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Nt(e){return(e==null?void 0:e.animationName)||"none"}function fc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var It="Popover",[ho]=lt(It,[xt]),it=xt(),[pc,Re]=ho(It),mo=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=it(t),d=u.useRef(null),[f,g]=u.useState(!1),[m,v]=an({prop:r,defaultProp:o??!1,onChange:s,caller:It});return b.jsx(Rr,{...a,children:b.jsx(pc,{scope:t,contentId:ut(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:u.useCallback(()=>v(p=>!p),[v]),hasCustomAnchor:f,onCustomAnchorAdd:u.useCallback(()=>g(!0),[]),onCustomAnchorRemove:u.useCallback(()=>g(!1),[]),modal:i,children:n})})};mo.displayName=It;var vo="PopoverAnchor",hc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(vo,n),s=it(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return u.useEffect(()=>(i(),()=>a()),[i,a]),b.jsx(on,{...s,...r,ref:t})});hc.displayName=vo;var go="PopoverTrigger",yo=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(go,n),s=it(n),i=te(t,o.triggerRef),a=b.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_o(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(on,{asChild:!0,...s,children:a})});yo.displayName=go;var xn="PopoverPortal",[mc,vc]=ho(xn,{forceMount:void 0}),wo=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Re(xn,t);return b.jsx(mc,{scope:t,forceMount:n,children:b.jsx(bn,{present:n||s.open,children:b.jsx(sn,{asChild:!0,container:o,children:r})})})};wo.displayName=xn;var ze="PopoverContent",bo=u.forwardRef((e,t)=>{const n=vc(ze,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Re(ze,e.__scopePopover);return b.jsx(bn,{present:r||s.open,children:s.modal?b.jsx(yc,{...o,ref:t}):b.jsx(wc,{...o,ref:t})})});bo.displayName=ze;var gc=Qe("PopoverContent.RemoveScroll"),yc=u.forwardRef((e,t)=>{const n=Re(ze,e.__scopePopover),r=u.useRef(null),o=te(t,r),s=u.useRef(!1);return u.useEffect(()=>{const i=r.current;if(i)return kr(i)},[]),b.jsx(pn,{as:gc,allowPinchZoom:!0,children:b.jsx(xo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,d=a.button===0&&a.ctrlKey===!0,f=a.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),wc=u.forwardRef((e,t)=>{const n=Re(ze,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return b.jsx(xo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xo=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:g,...m}=e,v=Re(ze,n),p=it(n);return $n(),b.jsx(Ut,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:b.jsx(Wt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:b.jsx(Tr,{"data-state":_o(v.open),role:"dialog",id:v.contentId,...p,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),So="PopoverClose",bc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Re(So,n);return b.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});bc.displayName=So;var xc="PopoverArrow",Sc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(n);return b.jsx(Pr,{...o,...r,ref:t})});Sc.displayName=xc;function _o(e){return e?"open":"closed"}var _c=mo,Ec=yo,Cc=wo,Rc=bo;const Tc={content:"_content_1qahr_1"},Pc=({trigger:e,children:t,open:n,onOpenChange:r,align:o="end",side:s="bottom",sideOffset:i=5,className:a=""})=>b.jsxs(_c,{open:n,onOpenChange:r,children:[b.jsx(Ec,{asChild:!0,children:e}),b.jsx(Cc,{children:b.jsx(Rc,{className:`${Tc.content} ${a}`,align:o,side:s,sideOffset:i,children:t})})]}),Te={table:"_table_1fmit_1",headerRow:"_headerRow_1fmit_16",dataRow:"_dataRow_1fmit_24",cellInner:"_cellInner_1fmit_32",cellLabel:"_cellLabel_1fmit_38",cellContent:"_cellContent_1fmit_43",value:"_value_1fmit_49",icon:"_icon_1fmit_55"};function Oc({children:e}){return b.jsx("table",{className:Te.table,children:e})}function Ac({children:e}){return b.jsx("thead",{children:b.jsx("tr",{className:Te.headerRow,children:e})})}function kc({children:e}){return b.jsx("tr",{className:Te.dataRow,children:e})}function Mc({label:e,children:t}){return e||t?b.jsx("td",{children:b.jsxs("div",{className:Te.cellInner,children:[e&&b.jsx("span",{className:Te.cellLabel,children:e}),t&&b.jsx("div",{className:Te.cellContent,children:t})]})}):b.jsx("td",{children:t})}function Nc({children:e}){return b.jsx("span",{className:Te.value,children:e})}function Ic({children:e}){return b.jsx("span",{className:Te.icon,children:X.cloneElement(e,{size:"14px",color:"currentColor"})})}G.Base=Oo,G.Button=To,G.Checkbox=Po,G.FilterPanelBase=Io,G.InputField=Lo,G.Popover=Pc,G.RadioButton=Fo,G.SearchField=jo,G.Select=lc,G.Slider=Vo,G.Table=Oc,G.TableCell=Mc,G.TableHeader=Ac,G.TableIcon=Ic,G.TableRow=kc,G.TableValue=Nc,G.ToggleSwitch=Bo,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})}));
|
|
62
|
+
`)},Ea=0,ze=[];function Ca(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Ea++)[0],s=f.useState(jr)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var c=qs([e.lockRef.current],(e.shards||[]).map(Hr),!0).filter(Boolean);return c.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),c.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(c,m){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!i.current.allowPinchZoom;var w=Pt(c),b=n.current,x="deltaX"in c?c.deltaX:b[0]-w[0],_="deltaY"in c?c.deltaY:b[1]-w[1],E,O=c.target,T=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in c&&T==="h"&&O.type==="range")return!1;var j=window.getSelection(),N=j&&j.anchorNode,F=N?N===O||N.contains(O):!1;if(F)return!1;var $=Br(T,O);if(!$)return!0;if($?E=T:(E=T==="v"?"h":"v",$=Br(T,O)),!$)return!1;if(!r.current&&"changedTouches"in c&&(x||_)&&(r.current=E),!E)return!0;var C=r.current||E;return xa(C,m,c,C==="h"?x:_)},[]),u=f.useCallback(function(c){var m=c;if(!(!ze.length||ze[ze.length-1]!==s)){var w="deltaY"in m?Wr(m):Pt(m),b=t.current.filter(function(E){return E.name===m.type&&(E.target===m.target||m.target===E.shadowParent)&&Sa(E.delta,w)})[0];if(b&&b.should){m.cancelable&&m.preventDefault();return}if(!b){var x=(i.current.shards||[]).map(Hr).filter(Boolean).filter(function(E){return E.contains(m.target)}),_=x.length>0?a(m,x[0]):!i.current.noIsolation;_&&m.cancelable&&m.preventDefault()}}},[]),d=f.useCallback(function(c,m,w,b){var x={name:c,delta:m,target:w,should:b,shadowParent:Ra(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),v=f.useCallback(function(c){n.current=Pt(c),r.current=void 0},[]),p=f.useCallback(function(c){d(c.type,Wr(c),c.target,a(c,e.lockRef.current))},[]),g=f.useCallback(function(c){d(c.type,Pt(c),c.target,a(c,e.lockRef.current))},[]);f.useEffect(function(){return ze.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Ue),document.addEventListener("touchmove",u,Ue),document.addEventListener("touchstart",v,Ue),function(){ze=ze.filter(function(c){return c!==s}),document.removeEventListener("wheel",u,Ue),document.removeEventListener("touchmove",u,Ue),document.removeEventListener("touchstart",v,Ue)}},[]);var h=e.removeScrollBar,l=e.inert;return f.createElement(f.Fragment,null,l?f.createElement(s,{styles:_a(o)}):null,h?f.createElement(ha,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ra(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ta=ta(Dr,Ca);var pn=f.forwardRef(function(e,t){return f.createElement(Rt,be({},e,{ref:t,sideCar:Ta}))});pn.classNames=Rt.classNames;var Pa=[" ","Enter","ArrowUp","ArrowDown"],Oa=[" ","Enter"],Me="Select",[Ot,At,Aa]=Xo(Me),[qe]=lt(Me,[Aa,xt]),kt=xt(),[ka,Ce]=qe(Me),[Ma,Na]=qe(Me),Ur=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:u,dir:d,name:v,autoComplete:p,disabled:g,required:h,form:l}=e,c=kt(t),[m,w]=f.useState(null),[b,x]=f.useState(null),[_,E]=f.useState(!1),O=Go(d),[T,j]=an({prop:r,defaultProp:o??!1,onChange:s,caller:Me}),[N,F]=an({prop:i,defaultProp:a,onChange:u,caller:Me}),$=f.useRef(null),C=m?l||!!m.closest("form"):!0,[R,P]=f.useState(new Set),I=Array.from(R).map(M=>M.props.value).join(";");return y.jsx(Rr,{...c,children:y.jsxs(ka,{required:h,scope:t,trigger:m,onTriggerChange:w,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:_,onValueNodeHasChildrenChange:E,contentId:ut(),value:N,onValueChange:F,open:T,onOpenChange:j,dir:O,triggerPointerDownPosRef:$,disabled:g,children:[y.jsx(Ot.Provider,{scope:t,children:y.jsx(Ma,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(M=>{P(k=>new Set(k).add(M))},[]),onNativeOptionRemove:f.useCallback(M=>{P(k=>{const A=new Set(k);return A.delete(M),A})},[]),children:n})}),C?y.jsxs(lo,{"aria-hidden":!0,required:h,tabIndex:-1,name:v,autoComplete:p,value:N,onChange:M=>F(M.target.value),disabled:g,form:l,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(R)]},I):null]})})};Ur.displayName=Me;var zr="SelectTrigger",qr=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kt(n),i=Ce(zr,n),a=i.disabled||r,u=te(t,i.onTriggerChange),d=At(n),v=f.useRef("touch"),[p,g,h]=fo(c=>{const m=d().filter(x=>!x.disabled),w=m.find(x=>x.value===i.value),b=po(m,c,w);b!==void 0&&i.onValueChange(b.value)}),l=c=>{a||(i.onOpenChange(!0),h()),c&&(i.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return y.jsx(on,{asChild:!0,...s,children:y.jsx(J.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":uo(i.value)?"":void 0,...o,ref:u,onClick:Z(o.onClick,c=>{c.currentTarget.focus(),v.current!=="mouse"&&l(c)}),onPointerDown:Z(o.onPointerDown,c=>{v.current=c.pointerType;const m=c.target;m.hasPointerCapture(c.pointerId)&&m.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(l(c),c.preventDefault())}),onKeyDown:Z(o.onKeyDown,c=>{const m=p.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&g(c.key),!(m&&c.key===" ")&&Pa.includes(c.key)&&(l(),c.preventDefault())})})})});qr.displayName=zr;var Yr="SelectValue",Kr=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,u=Ce(Yr,n),{onValueNodeHasChildrenChange:d}=u,v=s!==void 0,p=te(t,u.onValueNodeChange);return re(()=>{d(v)},[d,v]),y.jsx(J.span,{...a,ref:p,style:{pointerEvents:"none"},children:uo(u.value)?y.jsx(y.Fragment,{children:i}):s})});Kr.displayName=Yr;var Ia="SelectIcon",Xr=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(J.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Xr.displayName=Ia;var Da="SelectPortal",Zr=e=>y.jsx(sn,{asChild:!0,...e});Zr.displayName=Da;var Ne="SelectContent",Gr=f.forwardRef((e,t)=>{const n=Ce(Ne,e.__scopeSelect),[r,o]=f.useState();if(re(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?st.createPortal(y.jsx(Jr,{scope:e.__scopeSelect,children:y.jsx(Ot.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(Qr,{...e,ref:t})});Gr.displayName=Ne;var pe=10,[Jr,Re]=qe(Ne),ja="SelectContentImpl",La=et("SelectContent.RemoveScroll"),Qr=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:u,align:d,alignOffset:v,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:l,hideWhenDetached:c,avoidCollisions:m,...w}=e,b=Ce(Ne,n),[x,_]=f.useState(null),[E,O]=f.useState(null),T=te(t,D=>_(D)),[j,N]=f.useState(null),[F,$]=f.useState(null),C=At(n),[R,P]=f.useState(!1),I=f.useRef(!1);f.useEffect(()=>{if(x)return kr(x)},[x]),Vn();const M=f.useCallback(D=>{const[U,...ee]=C().map(X=>X.ref.current),[q]=ee.slice(-1),Y=document.activeElement;for(const X of D)if(X===Y||(X==null||X.scrollIntoView({block:"nearest"}),X===U&&E&&(E.scrollTop=0),X===q&&E&&(E.scrollTop=E.scrollHeight),X==null||X.focus(),document.activeElement!==Y))return},[C,E]),k=f.useCallback(()=>M([j,x]),[M,j,x]);f.useEffect(()=>{R&&k()},[R,k]);const{onOpenChange:A,triggerPointerDownPosRef:L}=b;f.useEffect(()=>{if(x){let D={x:0,y:0};const U=q=>{var Y,X;D={x:Math.abs(Math.round(q.pageX)-(((Y=L.current)==null?void 0:Y.x)??0)),y:Math.abs(Math.round(q.pageY)-(((X=L.current)==null?void 0:X.y)??0))}},ee=q=>{D.x<=10&&D.y<=10?q.preventDefault():x.contains(q.target)||A(!1),document.removeEventListener("pointermove",U),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",ee,{capture:!0})}}},[x,A,L]),f.useEffect(()=>{const D=()=>A(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[A]);const[H,S]=fo(D=>{const U=C().filter(Y=>!Y.disabled),ee=U.find(Y=>Y.ref.current===document.activeElement),q=po(U,D,ee);q&&setTimeout(()=>q.ref.current.focus())}),B=f.useCallback((D,U,ee)=>{const q=!I.current&&!ee;(b.value!==void 0&&b.value===U||q)&&(N(D),q&&(I.current=!0))},[b.value]),V=f.useCallback(()=>x==null?void 0:x.focus(),[x]),W=f.useCallback((D,U,ee)=>{const q=!I.current&&!ee;(b.value!==void 0&&b.value===U||q)&&$(D)},[b.value]),K=r==="popper"?hn:eo,Q=K===hn?{side:a,sideOffset:u,align:d,alignOffset:v,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:l,hideWhenDetached:c,avoidCollisions:m}:{};return y.jsx(Jr,{scope:n,content:x,viewport:E,onViewportChange:O,itemRefCallback:B,selectedItem:j,onItemLeave:V,itemTextRefCallback:W,focusSelectedItem:k,selectedItemText:F,position:r,isPositioned:R,searchRef:H,children:y.jsx(pn,{as:La,allowPinchZoom:!0,children:y.jsx(Ut,{asChild:!0,trapped:b.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Z(o,D=>{var U;(U=b.trigger)==null||U.focus({preventScroll:!0}),D.preventDefault()}),children:y.jsx($t,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:y.jsx(K,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:D=>D.preventDefault(),...w,...Q,onPlaced:()=>P(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Z(w.onKeyDown,D=>{const U=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!U&&D.key.length===1&&S(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let q=C().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(D.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const Y=D.target,X=q.indexOf(Y);q=q.slice(X+1)}setTimeout(()=>M(q)),D.preventDefault()}})})})})})})});Qr.displayName=ja;var Fa="SelectItemAlignedPosition",eo=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ce(Ne,n),i=Re(Ne,n),[a,u]=f.useState(null),[d,v]=f.useState(null),p=te(t,T=>v(T)),g=At(n),h=f.useRef(!1),l=f.useRef(!0),{viewport:c,selectedItem:m,selectedItemText:w,focusSelectedItem:b}=i,x=f.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&d&&c&&m&&w){const T=s.trigger.getBoundingClientRect(),j=d.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),F=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=F.left-j.left,X=N.left-Y,oe=T.left-X,ce=T.width+oe,le=Math.max(ce,j.width),Pe=window.innerWidth-pe,Oe=In(X,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.left=Oe+"px"}else{const Y=j.right-F.right,X=window.innerWidth-N.right-Y,oe=window.innerWidth-T.right-X,ce=T.width+oe,le=Math.max(ce,j.width),Pe=window.innerWidth-pe,Oe=In(X,[pe,Math.max(pe,Pe-le)]);a.style.minWidth=ce+"px",a.style.right=Oe+"px"}const $=g(),C=window.innerHeight-pe*2,R=c.scrollHeight,P=window.getComputedStyle(d),I=parseInt(P.borderTopWidth,10),M=parseInt(P.paddingTop,10),k=parseInt(P.borderBottomWidth,10),A=parseInt(P.paddingBottom,10),L=I+M+R+A+k,H=Math.min(m.offsetHeight*5,L),S=window.getComputedStyle(c),B=parseInt(S.paddingTop,10),V=parseInt(S.paddingBottom,10),W=T.top+T.height/2-pe,K=C-W,Q=m.offsetHeight/2,D=m.offsetTop+Q,U=I+M+D,ee=L-U;if(U<=W){const Y=$.length>0&&m===$[$.length-1].ref.current;a.style.bottom="0px";const X=d.clientHeight-c.offsetTop-c.offsetHeight,oe=Math.max(K,Q+(Y?V:0)+X+k),ce=U+oe;a.style.height=ce+"px"}else{const Y=$.length>0&&m===$[0].ref.current;a.style.top="0px";const oe=Math.max(W,I+c.offsetTop+(Y?B:0)+Q)+ee;a.style.height=oe+"px",c.scrollTop=U-W+c.offsetTop}a.style.margin=`${pe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=C+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,a,d,c,m,w,s.dir,r]);re(()=>x(),[x]);const[_,E]=f.useState();re(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const O=f.useCallback(T=>{T&&l.current===!0&&(x(),b==null||b(),l.current=!1)},[x,b]);return y.jsx($a,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:O,children:y.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:y.jsx(J.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eo.displayName=Fa;var Ba="SelectPopperPosition",hn=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...s}=e,i=kt(n);return y.jsx(Tr,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Ba;var[$a,mn]=qe(Ne,{}),vn="SelectViewport",to=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Re(vn,n),i=mn(vn,n),a=te(t,s.onViewportChange),u=f.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),y.jsx(Ot.Slot,{scope:n,children:y.jsx(J.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,d=>{const v=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&p){const h=Math.abs(u.current-v.scrollTop);if(h>0){const l=window.innerHeight-pe*2,c=parseFloat(p.style.minHeight),m=parseFloat(p.style.height),w=Math.max(c,m);if(w<l){const b=w+h,x=Math.min(l,b),_=b-x;p.style.height=x+"px",p.style.bottom==="0px"&&(v.scrollTop=_>0?_:0,p.style.justifyContent="flex-end")}}}u.current=v.scrollTop})})})]})});to.displayName=vn;var no="SelectGroup",[Va,Wa]=qe(no),Ha=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut();return y.jsx(Va,{scope:n,id:o,children:y.jsx(J.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ha.displayName=no;var ro="SelectLabel",Ua=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wa(ro,n);return y.jsx(J.div,{id:o.id,...r,ref:t})});Ua.displayName=ro;var Mt="SelectItem",[za,oo]=qe(Mt),io=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=Ce(Mt,n),u=Re(Mt,n),d=a.value===r,[v,p]=f.useState(s??""),[g,h]=f.useState(!1),l=te(t,b=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,b,r,o)}),c=ut(),m=f.useRef("touch"),w=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(za,{scope:n,value:r,disabled:o,textId:c,isSelected:d,onItemTextChange:f.useCallback(b=>{p(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:y.jsx(Ot.ItemSlot,{scope:n,value:r,disabled:o,textValue:v,children:y.jsx(J.div,{role:"option","aria-labelledby":c,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:l,onFocus:Z(i.onFocus,()=>h(!0)),onBlur:Z(i.onBlur,()=>h(!1)),onClick:Z(i.onClick,()=>{m.current!=="mouse"&&w()}),onPointerUp:Z(i.onPointerUp,()=>{m.current==="mouse"&&w()}),onPointerDown:Z(i.onPointerDown,b=>{m.current=b.pointerType}),onPointerMove:Z(i.onPointerMove,b=>{var x;m.current=b.pointerType,o?(x=u.onItemLeave)==null||x.call(u):m.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:Z(i.onKeyDown,b=>{var _;((_=u.searchRef)==null?void 0:_.current)!==""&&b.key===" "||(Oa.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})})})})});io.displayName=Mt;var ot="SelectItemText",so=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Ce(ot,n),a=Re(ot,n),u=oo(ot,n),d=Na(ot,n),[v,p]=f.useState(null),g=te(t,w=>p(w),u.onItemTextChange,w=>{var b;return(b=a.itemTextRefCallback)==null?void 0:b.call(a,w,u.value,u.disabled)}),h=v==null?void 0:v.textContent,l=f.useMemo(()=>y.jsx("option",{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:c,onNativeOptionRemove:m}=d;return re(()=>(c(l),()=>m(l)),[c,m,l]),y.jsxs(y.Fragment,{children:[y.jsx(J.span,{id:u.textId,...s,ref:g}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?st.createPortal(s.children,i.valueNode):null]})});so.displayName=ot;var ao="SelectItemIndicator",qa=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oo(ao,n).isSelected?y.jsx(J.span,{"aria-hidden":!0,...r,ref:t}):null});qa.displayName=ao;var gn="SelectScrollUpButton",Ya=f.forwardRef((e,t)=>{const n=Re(gn,e.__scopeSelect),r=mn(gn,e.__scopeSelect),[o,s]=f.useState(!1),i=te(t,r.onScrollButtonChange);return re(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?y.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});Ya.displayName=gn;var bn="SelectScrollDownButton",Ka=f.forwardRef((e,t)=>{const n=Re(bn,e.__scopeSelect),r=mn(bn,e.__scopeSelect),[o,s]=f.useState(!1),i=te(t,r.onScrollButtonChange);return re(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=u.scrollHeight-u.clientHeight,v=Math.ceil(u.scrollTop)<d;s(v)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?y.jsx(co,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});Ka.displayName=bn;var co=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Re("SelectScrollButton",n),i=f.useRef(null),a=At(n),u=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>u(),[u]),re(()=>{var v;const d=a().find(p=>p.ref.current===document.activeElement);(v=d==null?void 0:d.ref.current)==null||v.scrollIntoView({block:"nearest"})},[a]),y.jsx(J.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{u()})})}),Xa="SelectSeparator",Za=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(J.div,{"aria-hidden":!0,...r,ref:t})});Za.displayName=Xa;var yn="SelectArrow",Ga=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kt(n),s=Ce(yn,n),i=Re(yn,n);return s.open&&i.position==="popper"?y.jsx(Pr,{...o,...r,ref:t}):null});Ga.displayName=yn;var Ja="SelectBubbleInput",lo=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),s=te(r,o),i=$s(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const u=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&v){const p=new Event("change",{bubbles:!0});v.call(a,t),a.dispatchEvent(p)}},[i,t]),y.jsx(J.select,{...n,style:{...Or,...n.style},ref:s,defaultValue:t})});lo.displayName=Ja;function uo(e){return e===""||e===void 0}function fo(e){const t=Ae(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const a=n.current+i;t(a),(function u(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(a)},[t]),s=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function po(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Qa(e,Math.max(s,0));o.length===1&&(i=i.filter(d=>d!==n));const u=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Qa(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ec=Ur,tc=qr,nc=Kr,rc=Xr,oc=Zr,ic=Gr,sc=to,ac=io,cc=so;const Ie={wrapper:"_wrapper_1uqw5_1",label:"_label_1uqw5_7",trigger:"_trigger_1uqw5_12",icon:"_icon_1uqw5_44",content:"_content_1uqw5_50",viewport:"_viewport_1uqw5_58",item:"_item_1uqw5_62"},lc=({value:e,onValueChange:t,options:n,placeholder:r="Select...",className:o="",disabled:s=!1,label:i,"aria-label":a,id:u})=>{const d=z.useId(),v=u||d,p=`${v}-label`,g=y.jsxs(ec,{value:e,onValueChange:t,disabled:s,children:[y.jsxs(tc,{id:v,className:`${Ie.trigger} ${o} cursor-pointer`,...i?{"aria-labelledby":p}:a?{"aria-label":a}:{},children:[y.jsx(nc,{placeholder:r}),y.jsx(rc,{className:Ie.icon,"aria-hidden":"true",children:y.jsx(Ao,{size:14,color:"currentColor"})})]}),y.jsx(oc,{children:y.jsx(ic,{className:Ie.content,position:"popper",side:"bottom",align:"start",sideOffset:4,children:y.jsx(sc,{className:Ie.viewport,children:n.map(h=>y.jsx(ac,{value:h.value,className:Ie.item,children:y.jsx(cc,{children:h.label})},h.value))})})})]});return i?y.jsxs("div",{className:Ie.wrapper,children:[y.jsx("label",{id:p,htmlFor:v,className:Ie.label,children:i}),g]}):g};function uc(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var wn=e=>{const{present:t,children:n}=e,r=dc(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=te(r.ref,fc(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};wn.displayName="Presence";function dc(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,u]=uc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const d=Nt(r.current);s.current=a==="mounted"?d:"none"},[a]),re(()=>{const d=r.current,v=o.current;if(v!==e){const g=s.current,h=Nt(d);e?u("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(v&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),re(()=>{if(t){let d;const v=t.ownerDocument.defaultView??window,p=h=>{const c=Nt(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&c&&(u("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},g=h=>{h.target===t&&(s.current=Nt(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{v.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Nt(e){return(e==null?void 0:e.animationName)||"none"}function fc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var It="Popover",[ho]=lt(It,[xt]),it=xt(),[pc,Te]=ho(It),mo=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=it(t),u=f.useRef(null),[d,v]=f.useState(!1),[p,g]=an({prop:r,defaultProp:o??!1,onChange:s,caller:It});return y.jsx(Rr,{...a,children:y.jsx(pc,{scope:t,contentId:ut(),triggerRef:u,open:p,onOpenChange:g,onOpenToggle:f.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:f.useCallback(()=>v(!0),[]),onCustomAnchorRemove:f.useCallback(()=>v(!1),[]),modal:i,children:n})})};mo.displayName=It;var vo="PopoverAnchor",hc=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(vo,n),s=it(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return f.useEffect(()=>(i(),()=>a()),[i,a]),y.jsx(on,{...s,...r,ref:t})});hc.displayName=vo;var go="PopoverTrigger",bo=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(go,n),s=it(n),i=te(t,o.triggerRef),a=y.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_o(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:y.jsx(on,{asChild:!0,...s,children:a})});bo.displayName=go;var xn="PopoverPortal",[mc,vc]=ho(xn,{forceMount:void 0}),yo=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Te(xn,t);return y.jsx(mc,{scope:t,forceMount:n,children:y.jsx(wn,{present:n||s.open,children:y.jsx(sn,{asChild:!0,container:o,children:r})})})};yo.displayName=xn;var Ye="PopoverContent",wo=f.forwardRef((e,t)=>{const n=vc(Ye,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Te(Ye,e.__scopePopover);return y.jsx(wn,{present:r||s.open,children:s.modal?y.jsx(bc,{...o,ref:t}):y.jsx(yc,{...o,ref:t})})});wo.displayName=Ye;var gc=et("PopoverContent.RemoveScroll"),bc=f.forwardRef((e,t)=>{const n=Te(Ye,e.__scopePopover),r=f.useRef(null),o=te(t,r),s=f.useRef(!1);return f.useEffect(()=>{const i=r.current;if(i)return kr(i)},[]),y.jsx(pn,{as:gc,allowPinchZoom:!0,children:y.jsx(xo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,d=a.button===2||u;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),yc=f.forwardRef((e,t)=>{const n=Te(Ye,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return y.jsx(xo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xo=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:v,...p}=e,g=Te(Ye,n),h=it(n);return Vn(),y.jsx(Ut,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx($t,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:y.jsx(Tr,{"data-state":_o(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),So="PopoverClose",wc=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Te(So,n);return y.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});wc.displayName=So;var xc="PopoverArrow",Sc=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(n);return y.jsx(Pr,{...o,...r,ref:t})});Sc.displayName=xc;function _o(e){return e?"open":"closed"}var _c=mo,Ec=bo,Cc=yo,Rc=wo;const Tc={content:"_content_1qahr_1"},Pc=({trigger:e,children:t,open:n,onOpenChange:r,align:o="end",side:s="bottom",sideOffset:i=5,className:a="","aria-label":u,"aria-describedby":d})=>y.jsxs(_c,{open:n,onOpenChange:r,children:[y.jsx(Ec,{asChild:!0,children:e}),y.jsx(Cc,{children:y.jsx(Rc,{className:`${Tc.content} ${a}`,align:o,side:s,sideOffset:i,"aria-label":u,"aria-describedby":d,children:t})})]}),xe={table:"_table_1b0iq_1",caption:"_caption_1b0iq_8",headerRow:"_headerRow_1b0iq_25",dataRow:"_dataRow_1b0iq_33",cellInner:"_cellInner_1b0iq_41",cellLabel:"_cellLabel_1b0iq_47",cellContent:"_cellContent_1b0iq_52",value:"_value_1b0iq_58",icon:"_icon_1b0iq_64"};function Oc({children:e,caption:t,"aria-label":n}){return process.env.NODE_ENV!=="production"&&!t&&!n&&console.warn("Table: Component should have either a caption or aria-label for accessibility."),y.jsxs("table",{className:xe.table,"aria-label":n,children:[t&&y.jsx("caption",{className:xe.caption,children:t}),e]})}function Ac({children:e}){const t=z.Children.map(e,n=>z.isValidElement(n)&&n.type==="td"?y.jsx("th",{scope:"col",...n.props}):n);return y.jsx("thead",{children:y.jsx("tr",{className:xe.headerRow,children:t})})}function kc({children:e}){return y.jsx("tr",{className:xe.dataRow,children:e})}function Mc({label:e,children:t,isHeader:n=!1,scope:r}){const o=n?"th":"td",s=n&&r?{scope:r}:{};return e||t?y.jsx(o,{...s,children:y.jsxs("div",{className:xe.cellInner,children:[e&&y.jsx("span",{className:xe.cellLabel,children:e}),t&&y.jsx("div",{className:xe.cellContent,children:t})]})}):y.jsx(o,{...s,children:t})}function Nc({children:e}){return y.jsx("span",{className:xe.value,children:e})}function Ic({children:e,"aria-label":t}){const n=!t;return y.jsx("span",{className:xe.icon,"aria-hidden":n?"true":void 0,"aria-label":t,children:z.cloneElement(e,{size:"14px",color:"currentColor"})})}G.Base=Oo,G.Button=To,G.Checkbox=Po,G.FilterPanelBase=Io,G.InputField=Lo,G.Popover=Pc,G.RadioButton=Fo,G.SearchField=jo,G.Select=lc,G.Slider=Wo,G.Table=Oc,G.TableCell=Mc,G.TableHeader=Ac,G.TableIcon=Ic,G.TableRow=kc,G.TableValue=Nc,G.ToggleSwitch=Bo,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})}));
|