@gouvfr-lasuite/ui-kit 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cunningham.ts +11 -0
- package/dist/index.cjs +40 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +174 -4
- package/dist/index.js +9621 -5706
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),se=require("@openfun/cunningham-react"),Nt=require("react-dom");function dd(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const k=dd(c),_p=dd(Nt);function kp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hr={exports:{}},or={};/**
|
|
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
|
|
9
|
+
*/var hs;function Lp(){if(hs)return or;hs=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:o}}return or.Fragment=e,or.jsx=n,or.jsxs=n,or}var lr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
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
|
|
18
|
-
at`)?" (<anonymous>)":-1<
|
|
19
|
-
`+ce
|
|
20
|
-
`),
|
|
21
|
-
`);for(
|
|
22
|
-
`+
|
|
17
|
+
*/var ps;function Mp(){return ps||(ps=1,process.env.NODE_ENV!=="production"&&function(){function t(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===O?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case T:return"Fragment";case x:return"Portal";case h:return"Profiler";case I:return"StrictMode";case F:return"Suspense";case y:return"SuspenseList"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case A:return(_.displayName||"Context")+".Provider";case L:return(_._context.displayName||"Context")+".Consumer";case P:var Y=_.render;return _=_.displayName,_||(_=Y.displayName||Y.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case E:return Y=_.displayName||null,Y!==null?Y:t(_.type)||"Memo";case K:Y=_._payload,_=_._init;try{return t(_(Y))}catch{}}return null}function e(_){return""+_}function n(_){try{e(_);var Y=!1}catch{Y=!0}if(Y){Y=console;var X=Y.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),e(_)}}function r(){}function i(){if(z===0){j=console.log,W=console.info,G=console.warn,R=console.error,Z=console.group,J=console.groupCollapsed,de=console.groupEnd;var _={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}z++}function o(){if(z--,z===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},_,{value:j}),info:U({},_,{value:W}),warn:U({},_,{value:G}),error:U({},_,{value:R}),group:U({},_,{value:Z}),groupCollapsed:U({},_,{value:J}),groupEnd:U({},_,{value:de})})}0>z&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(_){if(ce===void 0)try{throw Error()}catch(X){var Y=X.stack.trim().match(/\n( *(at )?)/);ce=Y&&Y[1]||"",oe=-1<X.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+ce+_+oe}function a(_,Y){if(!_||me)return"";var X=re.get(_);if(X!==void 0)return X;me=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ie=null;ie=q.H,q.H=null,i();try{var Ce={DetermineComponentFrameRoot:function(){try{if(Y){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(ot){var jr=ot}Reflect.construct(_,[],$t)}else{try{$t.call()}catch(ot){jr=ot}_.call($t.prototype)}}else{try{throw Error()}catch(ot){jr=ot}($t=_())&&typeof $t.catch=="function"&&$t.catch(function(){})}}catch(ot){if(ot&&jr&&typeof ot.stack=="string")return[ot.stack,jr.stack]}return[null,null]}};Ce.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ue=Object.getOwnPropertyDescriptor(Ce.DetermineComponentFrameRoot,"name");ue&&ue.configurable&&Object.defineProperty(Ce.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ee=Ce.DetermineComponentFrameRoot(),it=ee[0],gn=ee[1];if(it&&gn){var Pe=it.split(`
|
|
20
|
+
`),At=gn.split(`
|
|
21
|
+
`);for(ee=ue=0;ue<Pe.length&&!Pe[ue].includes("DetermineComponentFrameRoot");)ue++;for(;ee<At.length&&!At[ee].includes("DetermineComponentFrameRoot");)ee++;if(ue===Pe.length||ee===At.length)for(ue=Pe.length-1,ee=At.length-1;1<=ue&&0<=ee&&Pe[ue]!==At[ee];)ee--;for(;1<=ue&&0<=ee;ue--,ee--)if(Pe[ue]!==At[ee]){if(ue!==1||ee!==1)do if(ue--,ee--,0>ee||Pe[ue]!==At[ee]){var ir=`
|
|
22
|
+
`+Pe[ue].replace(" at new "," at ");return _.displayName&&ir.includes("<anonymous>")&&(ir=ir.replace("<anonymous>",_.displayName)),typeof _=="function"&&re.set(_,ir),ir}while(1<=ue&&0<=ee);break}}}finally{me=!1,q.H=ie,o(),Error.prepareStackTrace=X}return Pe=(Pe=_?_.displayName||_.name:"")?l(Pe):"",typeof _=="function"&&re.set(_,Pe),Pe}function s(_){if(_==null)return"";if(typeof _=="function"){var Y=_.prototype;return a(_,!(!Y||!Y.isReactComponent))}if(typeof _=="string")return l(_);switch(_){case F:return l("Suspense");case y:return l("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case P:return _=a(_.render,!1),_;case E:return s(_.type);case K:Y=_._payload,_=_._init;try{return s(_(Y))}catch{}}return""}function u(){var _=q.A;return _===null?null:_.getOwner()}function d(_){if(V.call(_,"key")){var Y=Object.getOwnPropertyDescriptor(_,"key").get;if(Y&&Y.isReactWarning)return!1}return _.key!==void 0}function f(_,Y){function X(){yt||(yt=!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)",Y))}X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}function v(){var _=t(this.type);return be[_]||(be[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function g(_,Y,X,ie,Ce,ue){return X=ue.ref,_={$$typeof:D,type:_,key:Y,props:ue,_owner:Ce},(X!==void 0?X:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:v}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function $(_,Y,X,ie,Ce,ue){if(typeof _=="string"||typeof _=="function"||_===T||_===h||_===I||_===F||_===y||_===B||typeof _=="object"&&_!==null&&(_.$$typeof===K||_.$$typeof===E||_.$$typeof===A||_.$$typeof===L||_.$$typeof===P||_.$$typeof===N||_.getModuleId!==void 0)){var ee=Y.children;if(ee!==void 0)if(ie)if(M(ee)){for(ie=0;ie<ee.length;ie++)p(ee[ie],_);Object.freeze&&Object.freeze(ee)}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(ee,_)}else ee="",(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),_===null?ie="null":M(_)?ie="array":_!==void 0&&_.$$typeof===D?(ie="<"+(t(_.type)||"Unknown")+" />",ee=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof _,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,ee);if(V.call(Y,"key")){ee=t(_);var it=Object.keys(Y).filter(function(Pe){return Pe!=="key"});ie=0<it.length?"{key: someKey, "+it.join(": ..., ")+": ...}":"{key: someKey}",rr[ee+ie]||(it=0<it.length?"{"+it.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,ie,
|
|
27
|
+
<%s key={someKey} {...props} />`,ie,ee,it,ee),rr[ee+ie]=!0)}if(ee=null,X!==void 0&&(n(X),ee=""+X),d(Y)&&(n(Y.key),ee=""+Y.key),"key"in Y){X={};for(var gn in Y)gn!=="key"&&(X[gn]=Y[gn])}else X=Y;return ee&&f(X,typeof _=="function"?_.displayName||_.name||"Unknown":_),g(_,ee,ue,Ce,u(),X)}function p(_,Y){if(typeof _=="object"&&_&&_.$$typeof!==Je){if(M(_))for(var X=0;X<_.length;X++){var ie=_[X];b(ie)&&m(ie,Y)}else if(b(_))_._store&&(_._store.validated=1);else if(_===null||typeof _!="object"?X=null:(X=H&&_[H]||_["@@iterator"],X=typeof X=="function"?X:null),typeof X=="function"&&X!==_.entries&&(X=X.call(_),X!==_))for(;!(_=X.next()).done;)b(_.value)&&m(_.value,Y)}}function b(_){return typeof _=="object"&&_!==null&&_.$$typeof===D}function m(_,Y){if(_._store&&!_._store.validated&&_.key==null&&(_._store.validated=1,Y=C(Y),!Fr[Y])){Fr[Y]=!0;var X="";_&&_._owner!=null&&_._owner!==u()&&(X=null,typeof _._owner.tag=="number"?X=t(_._owner.type):typeof _._owner.name=="string"&&(X=_._owner.name),X=" It was passed a child from "+X+".");var ie=q.getCurrentStack;q.getCurrentStack=function(){var Ce=s(_.type);return ie&&(Ce+=ie()||""),Ce},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Y,X),q.getCurrentStack=ie}}function C(_){var Y="",X=u();return X&&(X=t(X.type))&&(Y=`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+
|
|
29
|
+
Check the render method of \``+X+"`."),Y||(_=t(_))&&(Y=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+$+">."),U}var S=d,P=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),V=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Z=Symbol.iterator,_=Symbol.for("react.client.reference"),M=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Object.assign,L=Symbol.for("react.client.reference"),N=Array.isArray,K=0,A,z,B,F,X,te,de;r.__reactDisabledLog=!0;var ce,oe,ge=!1,re=new(typeof WeakMap=="function"?WeakMap:Map),We=Symbol.for("react.client.reference"),lt,ve={},Pn={},sr={};_n.Fragment=O,_n.jsx=function($,U,q,ie,Se){return m($,U,q,!1,ie,Se)},_n.jsxs=function($,U,q,ie,Se){return m($,U,q,!0,ie,Se)}}()),_n}var Ga;function p0(){return Ga||(Ga=1,process.env.NODE_ENV==="production"?cr.exports=f0():cr.exports=h0()),cr.exports}var w=p0();const g0={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},v0={components:g0},m0={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}}},y0={components:m0},b0={footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},S0={components:b0},C0={footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},w0={components:C0};function Oi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Br(t,...e){if(!e.length)return t;const n=e.shift();if(Oi(t)&&Oi(n))for(const r in n)Oi(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Br(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Br(t,...e)}function bu(){return{"en-US":Br(v0,S0),"fr-FR":Br(y0,w0)}}const E0=t=>{const e=bu();return w.jsx(_t.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Su=({disabled:t,onClick:e})=>w.jsx(_t.Button,{disabled:t,className:"pro-connect-button",onClick:e}),pe=typeof document<"u"?d.useLayoutEffect:()=>{};function Pe(t){const e=d.useRef(null);return pe(()=>{e.current=t},[t]),d.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function $0(t){let[e,n]=d.useState(t),r=d.useRef(null),i=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}e===a.value?i():n(a.value)});pe(()=>{r.current&&i()});let o=Pe(a=>{r.current=a(e),i()});return[e,o]}const Wr={prefix:String(Math.round(Math.random()*1e10)),current:0},Cu=d.createContext(Wr),x0=d.createContext(!1);let T0=!!(typeof window<"u"&&window.document&&window.document.createElement),_i=new WeakMap;function P0(t=!1){let e=d.useContext(Cu),n=d.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=_i.get(o);a==null?_i.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==a.state&&(e.current=a.id,_i.delete(o))}n.current=++e.current}return n.current}function D0(t){let e=d.useContext(Cu);e===Wr&&!T0&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=P0(!!t),r=e===Wr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function O0(t){let e=d.useId(),[n]=d.useState(En()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Wr.prefix}`;return t||`${r}-${e}`}const _0=typeof d.useId=="function"?O0:D0;function I0(){return!1}function k0(){return!0}function N0(t){return()=>{}}function En(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(N0,I0,k0):d.useContext(x0)}let R0=!!(typeof window<"u"&&window.document&&window.document.createElement),ft=new Map;function tr(t){let[e,n]=d.useState(t),r=d.useRef(null),i=_0(e),o=d.useCallback(a=>{r.current=a},[]);return R0&&(ft.has(i)&&!ft.get(i).includes(o)?ft.set(i,[...ft.get(i),o]):ft.set(i,[o])),pe(()=>{let a=i;return()=>{ft.delete(a)}},[i]),d.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function L0(t,e){if(t===e)return t;let n=ft.get(t);if(n)return n.forEach(i=>i(e)),e;let r=ft.get(e);return r?(r.forEach(i=>i(t)),t):e}function Ii(t=[]){let e=tr(),[n,r]=$0(e),i=d.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return pe(i,[e,i,...t]),n}function Un(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Me=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},yn=t=>t&&"window"in t&&t.window===t?t:Me(t).defaultView||window;function wu(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=wu(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ot(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=wu(t))&&(r&&(r+=" "),r+=e);return r}function ye(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Un(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?e[i]=ot(o,a):i==="id"&&o&&a?e.id=L0(o,a):e[i]=a!==void 0?a:o}}return e}function Eu(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const M0=new Set(["id"]),A0=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),K0=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),F0=/^(data-.*)$/;function Ve(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(M0.has(a)||n&&A0.has(a)||r&&K0.has(a)||i!=null&&i.has(a)||F0.test(a))&&(o[a]=t[a]);return o}function $t(t){if(j0())t.focus({preventScroll:!0});else{let e=H0(t);t.focus(),z0(e)}}let dr=null;function j0(){if(dr==null){dr=!1;try{document.createElement("div").focus({get preventScroll(){return dr=!0,!0}})}catch{}}return dr}function H0(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function z0(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ci(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function aa(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function at(t){let e=null;return()=>(e==null&&(e=t()),e)}const It=at(function(){return aa(/^Mac/i)}),V0=at(function(){return aa(/^iPhone/i)}),$u=at(function(){return aa(/^iPad/i)||It()&&navigator.maxTouchPoints>1}),di=at(function(){return V0()||$u()}),B0=at(function(){return It()||di()}),xu=at(function(){return ci(/AppleWebKit/i)&&!W0()}),W0=at(function(){return ci(/Chrome/i)}),Tu=at(function(){return ci(/Android/i)}),U0=at(function(){return ci(/Firefox/i)}),G0=d.createContext({isNative:!0,open:Y0,useHref:t=>t});function fi(){return d.useContext(G0)}function kt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=e;U0()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(It()?o=!0:a=!0);let u=xu()&&It()&&!$u()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});kt.isOpening=n,$t(t),t.dispatchEvent(u),kt.isOpening=!1}kt.isOpening=!1;function q0(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Y0(t,e){q0(t,n=>kt(n,e))}function Pu(t){let e=fi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let rn=new Map,wo=new Set;function qa(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=rn.get(r.target);i||(i=new Set,rn.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=rn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),rn.delete(r.target)),rn.size===0)){for(let o of wo)o();wo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qa():document.addEventListener("DOMContentLoaded",qa));function Z0(t){requestAnimationFrame(()=>{rn.size===0?t():wo.add(t)})}function Du(){let t=d.useRef(new Map),e=d.useCallback((i,o,a,l)=>{let s=l!=null&&l.once?(...u)=>{t.current.delete(a),a(...u)}:a;t.current.set(a,{type:o,eventTarget:i,fn:s,options:l}),i.addEventListener(o,s,l)},[]),n=d.useCallback((i,o,a,l)=>{var s;let u=((s=t.current.get(a))===null||s===void 0?void 0:s.fn)||a;i.removeEventListener(o,u,l),t.current.delete(a)},[]),r=d.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function la(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=tr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function $n(t){const e=d.useRef(null);return d.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function Ya(t,e){const n=d.useRef(!0),r=d.useRef(null);pe(()=>(n.current=!0,()=>{n.current=!1}),[]),pe(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function X0(){return typeof window.ResizeObserver<"u"}function Za(t){const{ref:e,box:n,onResize:r}=t;d.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(X0()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function J0(t,e){pe(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Gn(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function Ou(t,e){let n=t;for(Gn(n,e)&&(n=n.parentElement);n&&!Gn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Q0(t,e){const n=[];for(;t&&t!==document.documentElement;)Gn(t,e)&&n.push(t),t=t.parentElement;return n}let e2=0;const ki=new Map;function t2(t){let[e,n]=d.useState();return pe(()=>{if(!t)return;let r=ki.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${e2++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},ki.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ki.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function fr(t,e,n,r){let i=Pe(n),o=n==null;d.useEffect(()=>{if(o||!t.current)return;let a=t.current;return a.addEventListener(e,i,r),()=>{a.removeEventListener(e,i,r)}},[t,e,r,o,i])}function _u(t,e){let n=Xa(t,e,"left"),r=Xa(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,a=t.scrollLeft,l=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),m=a+parseInt(u,10),f=l+parseInt(s,10),v=m+t.clientWidth,y=f+t.clientHeight,C=parseInt(c,10)||0,S=parseInt(p,10)||0,P=parseInt(h,10)||0,x=parseInt(g,10)||0;n<=a+x?a=n-parseInt(u,10)-x:n+i>v-P&&(a+=n+i-v+P),r<=f+C?l=r-parseInt(s,10)-C:r+o>y-S&&(l+=r+o-y+S),t.scrollLeft=a,t.scrollTop=l}function Xa(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function Ja(t,e){if(t&&document.contains(t)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let s=Q0(t);for(let u of s)_u(u,t)}else{var n;let{left:s,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:c,top:h}=t.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-h)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Eo(t){return t.mozInputSource===0&&t.isTrusted?!0:Tu()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function n2(t){return!Tu()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const r2="react-aria-clear-focus",i2="react-aria-focus",Iu="react-aria-update-activedescendant";function on(t){return It()?t.metaKey:t.ctrlKey}function o2(t,e=!0){let[n,r]=d.useState(!0),i=n&&e;return pe(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),ku(t,i,d.useCallback(()=>r(!1),[])),i}function a2(t,e){let[n,r]=d.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return ku(t,i,d.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function ku(t,e,n){pe(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Ht.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}function nr(t,e,n){let[r,i]=d.useState(t||e),o=d.useRef(t!==void 0),a=t!==void 0;d.useEffect(()=>{let u=o.current;u!==a&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let l=a?t:r,s=d.useCallback((u,...c)=>{let h=(p,...g)=>{n&&(Object.is(l,p)||n(p,...g)),a||(l=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...m)=>{let f=u(a?l:g,...m);return h(f,...c),a?g:f})):(a||i(u),h(u,...c))},[a,l,n]);return[l,s]}function $o(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const Qa=Symbol("default");function rr({values:t,children:e}){for(let[n,r]of t)e=d.createElement(n.Provider,{value:r},e);return e}function yt(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:a,values:l}=t;return d.useMemo(()=>{let s,u,c;return typeof e=="function"?s=e({...l,defaultClassName:i}):s=e,typeof n=="function"?u=n({...l,defaultStyle:a||{}}):u=n,typeof r=="function"?c=r({...l,defaultChildren:o}):r==null?c=o:c=r,{className:s??i,style:u||a?{...a,...u}:void 0,children:c??o,"data-rac":""}},[e,n,r,i,o,a,l])}function sa(t,e){let n=d.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`));if(!e&&!n.slots[Qa])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=e||Qa;if(!n.slots[i])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[i]}return n}function ir(t,e,n){let r=sa(n,t.slot)||{},{ref:i,...o}=r,a=$n(d.useMemo(()=>Eu(e,i),[e,i])),l=ye(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?l.style=s=>{let u=typeof o.style=="function"?o.style(s):o.style,c={...s.defaultStyle,...u},h=typeof t.style=="function"?t.style({...s,defaultStyle:c}):t.style;return{...c,...h}}:l.style={...o.style,...t.style}),[l,a]}function l2(){let[t,e]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(i=>{n.current=!0,e(!!i)},[]);return pe(()=>{n.current||e(!1)},[]),[r,t]}class ua{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ua(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class ca{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new ca,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),a=null;for(let l of this.getChildren(i.key))if(e(l.textValue)||l.type==="header"){let s=l.clone();a==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),a&&a.parentKey===s.parentKey?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,s.nextKey=null,n.addNode(s),a=s}a&&(a.type!=="header"?(o.lastChildKey=a.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(a.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else if(e(i.textValue)){let o=i.clone();n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Nu{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class qn extends Nu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof qn?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof qn?this.parentNode.node.key:null;var a;o.prevKey=(a=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&a!==void 0?a:null;var l;o.nextKey=(l=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var u;o.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(e,n,r,i){let o=this.ownerDocument.getMutableNode(this),{value:a,textValue:l,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=a,o.textValue=l||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new ua(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class s2 extends Nu{get isConnected(){return this.isMounted}createElement(e){return new qn(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof qn&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let o=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&o.addNode(a.node);var r,i;o.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Ru(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,a=d.useMemo(()=>new WeakMap,o);return d.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let c of n){let h=a.get(c);if(!h){h=e(c);var l,s;let p=(s=(l=h.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),h=d.cloneElement(h,i?{key:p,id:p,value:c}:{key:p}),a.set(c,h)}u.push(h)}return u}else if(typeof e!="function")return e},[e,n,a,r,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Ur=d.createContext(!1),u2=typeof DocumentFragment<"u"?new DocumentFragment:null;function c2(t){let e=d.useContext(Ur),n=En();if(e)return d.createElement(d.Fragment,null,t.children);let r=d.createElement(Ur.Provider,{value:!0},t.children);return n?d.createElement("template",{"data-react-aria-hidden":!0},r):Ht.createPortal(r,u2)}function d2(t){let e=(n,r)=>d.useContext(Ur)?null:t(n,r);return e.displayName=t.displayName||t.name,d.forwardRef(e)}function f2(){return d.useContext(Ur)}const h2=typeof document<"u"?d.useLayoutEffect:()=>{};var hr={exports:{}},Ni={};/**
|
|
31
|
+
Check the top-level render call using <`+_+">."),Y}var S=c,D=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),A=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),H=Symbol.iterator,O=Symbol.for("react.client.reference"),q=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,U=Object.assign,N=Symbol.for("react.client.reference"),M=Array.isArray,z=0,j,W,G,R,Z,J,de;r.__reactDisabledLog=!0;var ce,oe,me=!1,re=new(typeof WeakMap=="function"?WeakMap:Map),Je=Symbol.for("react.client.reference"),yt,be={},rr={},Fr={};lr.Fragment=T,lr.jsx=function(_,Y,X,ie,Ce){return $(_,Y,X,!1,ie,Ce)},lr.jsxs=function(_,Y,X,ie,Ce){return $(_,Y,X,!0,ie,Ce)}}()),lr}var gs;function Np(){return gs||(gs=1,process.env.NODE_ENV==="production"?Hr.exports=Lp():Hr.exports=Mp()),Hr.exports}var w=Np();const Rp={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},Ap={components:Rp},Kp={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}}},Fp={components:Kp},jp={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},item:{add:"Add"}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},Hp={components:jp},zp={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},Bp={components:zp};function Eo(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ti(t,...e){if(!e.length)return t;const n=e.shift();if(Eo(t)&&Eo(n))for(const r in n)Eo(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Ti(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ti(t,...e)}function fd(){return{"en-US":Ti(Ap,Hp),"fr-FR":Ti(Fp,Bp)}}const Vp=t=>{const e=fd();return w.jsx(se.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},hd=({disabled:t,onClick:e})=>w.jsx(se.Button,{disabled:t,className:"pro-connect-button",onClick:e}),pe=typeof document<"u"?c.useLayoutEffect:()=>{};function ye(t){const e=c.useRef(null);return pe(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Up(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ye(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});pe(()=>{r.current&&i()});let o=ye(l=>{r.current=l(e),i()});return[e,o]}const Di={prefix:String(Math.round(Math.random()*1e10)),current:0},pd=c.createContext(Di),Wp=c.createContext(!1);let Gp=!!(typeof window<"u"&&window.document&&window.document.createElement),xo=new WeakMap;function qp(t=!1){let e=c.useContext(pd),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=xo.get(o);l==null?xo.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,xo.delete(o))}n.current=++e.current}return n.current}function Yp(t){let e=c.useContext(pd);e===Di&&!Gp&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=qp(!!t),r=e===Di&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Xp(t){let e=c.useId(),[n]=c.useState(un()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Di.prefix}`;return t||`${r}-${e}`}const gd=typeof c.useId=="function"?Xp:Yp;function Zp(){return!1}function Jp(){return!0}function Qp(t){return()=>{}}function un(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Qp,Zp,Jp):c.useContext(Wp)}let eg=!!(typeof window<"u"&&window.document&&window.document.createElement),xt=new Map;function Be(t){let[e,n]=c.useState(t),r=c.useRef(null),i=gd(e),o=c.useCallback(l=>{r.current=l},[]);return eg&&(xt.has(i)&&!xt.get(i).includes(o)?xt.set(i,[...xt.get(i),o]):xt.set(i,[o])),pe(()=>{let l=i;return()=>{xt.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),i}function tg(t,e){if(t===e)return t;let n=xt.get(t);if(n)return n.forEach(i=>i(e)),e;let r=xt.get(e);return r?(r.forEach(i=>i(t)),t):e}function Sr(t=[]){let e=Be(),[n,r]=Up(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return pe(i,[e,i,...t]),n}function Un(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const He=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Wn=t=>t&&"window"in t&&t.window===t?t:He(t).defaultView||window;function vd(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=vd(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Te(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=vd(t))&&(r&&(r+=" "),r+=e);return r}function ae(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Un(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=tg(o,l):e[i]=l!==void 0?l:o}}return e}function ma(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const ng=new Set(["id"]),rg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ig=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),og=/^(data-.*)$/;function Se(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(ng.has(l)||n&&rg.has(l)||r&&ig.has(l)||i!=null&&i.has(l)||og.test(l))&&(o[l]=t[l]);return o}function zt(t){if(lg())t.focus({preventScroll:!0});else{let e=ag(t);t.focus(),sg(e)}}let zr=null;function lg(){if(zr==null){zr=!1;try{document.createElement("div").focus({get preventScroll(){return zr=!0,!0}})}catch{}}return zr}function ag(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function sg(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Yi(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function ba(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function gt(t){let e=null;return()=>(e==null&&(e=t()),e)}const Yt=gt(function(){return ba(/^Mac/i)}),ug=gt(function(){return ba(/^iPhone/i)}),md=gt(function(){return ba(/^iPad/i)||Yt()&&navigator.maxTouchPoints>1}),Xi=gt(function(){return ug()||md()}),cg=gt(function(){return Yt()||Xi()}),bd=gt(function(){return Yi(/AppleWebKit/i)&&!dg()}),dg=gt(function(){return Yi(/Chrome/i)}),yd=gt(function(){return Yi(/Android/i)}),fg=gt(function(){return Yi(/Firefox/i)}),hg=c.createContext({isNative:!0,open:gg,useHref:t=>t});function Zi(){return c.useContext(hg)}function Xt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;fg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Yt()?o=!0:l=!0);let u=bd()&&Yt()&&!md()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});Xt.isOpening=n,zt(t),t.dispatchEvent(u),Xt.isOpening=!1}Xt.isOpening=!1;function pg(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function gg(t,e){pg(t,n=>Xt(n,e))}function $d(t){let e=Zi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Dn=new Map,wl=new Set;function vs(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=Dn.get(r.target);i||(i=new Set,Dn.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=Dn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Dn.delete(r.target)),Dn.size===0)){for(let o of wl)o();wl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?vs():document.addEventListener("DOMContentLoaded",vs));function vg(t){requestAnimationFrame(()=>{Dn.size===0?t():wl.add(t)})}function Sd(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ji(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Be(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function vt(t){const e=c.useRef(null);return c.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function ms(t,e){const n=c.useRef(!0),r=c.useRef(null);pe(()=>(n.current=!0,()=>{n.current=!1}),[]),pe(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function mg(){return typeof window.ResizeObserver<"u"}function Cl(t){const{ref:e,box:n,onResize:r}=t;c.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(mg()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function bg(t,e){pe(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Pr(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function wd(t,e){let n=t;for(Pr(n,e)&&(n=n.parentElement);n&&!Pr(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yg(t,e){const n=[];for(;t&&t!==document.documentElement;)Pr(t,e)&&n.push(t),t=t.parentElement;return n}let $g=0;const Po=new Map;function Sg(t){let[e,n]=c.useState();return pe(()=>{if(!t)return;let r=Po.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${$g++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Po.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Po.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Br(t,e,n,r){let i=ye(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function Cd(t,e){let n=bs(t,e,"left"),r=bs(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:v,scrollPaddingLeft:g}=getComputedStyle(t),$=l+parseInt(u,10),p=a+parseInt(s,10),b=$+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(v,10)||0,D=parseInt(f,10)||0,x=parseInt(g,10)||0;n<=l+x?l=n-parseInt(u,10)-x:n+i>b-D&&(l+=n+i-b+D),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function bs(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function ys(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=yg(t);for(let u of s)Cd(u,t)}else{var n;let{left:s,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(u-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function El(t){return t.mozInputSource===0&&t.isTrusted?!0:yd()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function wg(t){return!yd()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Cg(t,e,n){let r=c.useRef(e),i=ye(()=>{n&&n(r.current)});c.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}const Eg="react-aria-clear-focus",xg="react-aria-focus",Ed="react-aria-update-activedescendant";function In(t){return Yt()?t.metaKey:t.ctrlKey}function Pg(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return pe(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),xd(t,i,c.useCallback(()=>r(!1),[])),i}function Tg(t,e){let[n,r]=c.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return xd(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function xd(t,e,n){pe(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Nt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}function Mr(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(v,...g)=>{n&&(Object.is(a,v)||n(v,...g)),l||(a=v)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...$)=>{let p=u(l?a:g,...$);return f(p,...d),l?g:p})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}function xl(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const $s=Symbol("default");function Rt({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function _e(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return c.useMemo(()=>{let s,u,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:u||l?{...l,...u}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function Qi(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`));if(!e&&!n.slots[$s])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=e||$s;if(!n.slots[i])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[i]}return n}function mt(t,e,n){let r=Qi(n,t.slot)||{},{ref:i,...o}=r,l=vt(c.useMemo(()=>ma(e,i),[e,i])),a=ae(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=s=>{let u=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...u},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function ya(){let[t,e]=c.useState(!0),n=c.useRef(!1),r=c.useCallback(i=>{n.current=!0,e(!!i)},[]);return pe(()=>{n.current||e(!1)},[]),[r,t]}function Dg(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class $a{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new $a(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class Sa{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new Sa,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(e(a.textValue)||a.type==="header"){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else if(e(i.textValue)){let o=i.clone();n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Pd{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Tr extends Pd{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Tr?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof Tr?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var u;o.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(e,n,r,i){let o=this.ownerDocument.getMutableNode(this),{value:l,textValue:a,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new $a(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class Ig extends Pd{get isConnected(){return this.isMounted}createElement(e){return new Tr(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Tr&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let o=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&o.addNode(l.node);var r,i;o.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Td(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let v=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(v==null)throw new Error("Could not determine key for item");r&&(v=r+":"+v),f=c.cloneElement(f,i?{key:v,id:v,value:d}:{key:v}),l.set(d,f)}u.push(f)}return u}else if(typeof e!="function")return e},[e,n,l,r,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Ii=c.createContext(!1),Og=typeof DocumentFragment<"u"?new DocumentFragment:null;function _g(t){let e=c.useContext(Ii),n=un();if(e)return c.createElement(c.Fragment,null,t.children);let r=c.createElement(Ii.Provider,{value:!0},t.children);return n?c.createElement("template",{"data-react-aria-hidden":!0},r):Nt.createPortal(r,Og)}function wa(t){let e=(n,r)=>c.useContext(Ii)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}function kg(){return c.useContext(Ii)}const Lg=typeof document<"u"?c.useLayoutEffect:()=>{};var Vr={exports:{}},To={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* use-sync-external-store-shim.production.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ Check the top-level render call using <`+$+">."),U}var S=d,P=Symbol.for("react.t
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var
|
|
39
|
+
*/var Ss;function Mg(){if(Ss)return To;Ss=1;var t=c;function e(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,v){var g=v(),$=r({inst:{value:g,getSnapshot:v}}),p=$[0].inst,b=$[1];return o(function(){p.value=g,p.getSnapshot=v,s(p)&&b({inst:p})},[f,g,v]),i(function(){return s(p)&&b({inst:p}),f(function(){s(p)&&b({inst:p})})},[f]),l(g),g}function s(f){var v=f.getSnapshot;f=f.value;try{var g=v();return!n(f,g)}catch{return!0}}function u(f,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return To.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,To}var Do={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* use-sync-external-store-shim.development.js
|
|
42
42
|
*
|
|
@@ -44,59 +44,59 @@ Check the top-level render call using <`+$+">."),U}var S=d,P=Symbol.for("react.t
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var tl;function g2(){return tl||(tl=1,process.env.NODE_ENV!=="production"&&function(){function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}function e(g,m){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=m();if(!h){var v=m();o(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}v=a({inst:{value:f,getSnapshot:m}});var y=v[0].inst,C=v[1];return s(function(){y.value=f,y.getSnapshot=m,n(y)&&C({inst:y})},[g,f,m]),l(function(){return n(y)&&C({inst:y}),g(function(){n(y)&&C({inst:y})})},[g]),u(f),f}function n(g){var m=g.getSnapshot;g=g.value;try{var f=m();return!o(g,f)}catch{return!0}}function r(g,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=d,o=typeof Object.is=="function"?Object.is:t,a=i.useState,l=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,c=!1,h=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Ri.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ri}var nl;function v2(){return nl||(nl=1,process.env.NODE_ENV==="production"?hr.exports=p2():hr.exports=g2()),hr.exports}var da=v2();const Lu=d.createContext(!1),Yn=d.createContext(null);function Mu(t){if(d.useContext(Yn))return t.content;let{collection:n,document:r}=S2(t.createCollection);return d.createElement(d.Fragment,null,d.createElement(c2,null,d.createElement(Yn.Provider,{value:r},t.content)),d.createElement(m2,{render:t.children,collection:n}))}function m2({collection:t,render:e}){return e(t)}function y2(t,e,n){let r=En(),i=d.useRef(r);i.current=r;let o=d.useCallback(()=>i.current?n():e(),[e,n]);return da.useSyncExternalStore(t,o)}const b2=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:y2;function S2(t){let[e]=d.useState(()=>new s2((t==null?void 0:t())||new ca)),n=d.useCallback(a=>e.subscribe(a),[e]),r=d.useCallback(()=>{let a=e.getCollection();return e.isSSR&&e.resetAfterSSR(),a},[e]),i=d.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=b2(n,r,i);return h2(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const xo=d.createContext(null);function C2(t,e,n,r,i,o){let a=d.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),l=d.useContext(xo);if(l){let s=l.ownerDocument.nodesByProps.get(e);return s||(s=l.ownerDocument.createElement(t),s.setProps(e,n,r,o),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,s)),i?d.createElement(xo.Provider,{value:s},i):null}return d.createElement(t,{ref:a},i)}function fa(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=d.forwardRef((i,o)=>{if(!d.useContext(Lu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return C2(t,i,o,"children"in i?i.children:null,null,l=>d.createElement(n,{node:l}))});return r.displayName=e.name,r}function w2(t){return Ru({...t,addIdAndValue:!0})}const rl=d.createContext(null);function Au(t){let e=d.useContext(rl),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=w2({...t,idScope:r,dependencies:n});return d.useContext(Yn)&&(i=d.createElement(E2,null,i)),e=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(rl.Provider,{value:e},i)}function E2({children:t}){let e=d.useContext(Yn),n=d.useMemo(()=>d.createElement(Yn.Provider,{value:null},d.createElement(Lu.Provider,{value:!0},t)),[t]);return En()?d.createElement(xo.Provider,{value:e},n):Ht.createPortal(n,e)}const De=typeof document<"u"?d.useLayoutEffect:()=>{};function $2(t){const e=d.useRef(null);return De(()=>{e.current=t},[t]),d.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}const me=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},gt=t=>t&&"window"in t&&t.window===t?t:me(t).defaultView||window;function il(t){if(x2())t.focus({preventScroll:!0});else{let e=T2(t);t.focus(),P2(e)}}let pr=null;function x2(){if(pr==null){pr=!1;try{document.createElement("div").focus({get preventScroll(){return pr=!0,!0}})}catch{}}return pr}function T2(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function P2(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Ku(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function D2(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function ha(t){let e=null;return()=>(e==null&&(e=t()),e)}const O2=ha(function(){return D2(/^Mac/i)}),_2=ha(function(){return Ku(/Chrome/i)}),Fu=ha(function(){return Ku(/Android/i)});let an=new Map,To=new Set;function ol(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=an.get(r.target);i||(i=new Set,an.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=an.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),an.delete(r.target)),an.size===0)){for(let o of To)o();To.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ol():document.addEventListener("DOMContentLoaded",ol));function I2(t){requestAnimationFrame(()=>{an.size===0?t():To.add(t)})}function k2(t){return t.mozInputSource===0&&t.isTrusted?!0:Fu()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function N2(t,e){return e.get?e.get.call(t):e.value}function ju(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function R2(t,e){var n=ju(t,e,"get");return N2(t,n)}function L2(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M2(t,e,n){L2(t,e),e.set(t,n)}function A2(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function al(t,e,n){var r=ju(t,e,"set");return A2(t,r,n),n}let K2=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function Hu(t){let e=d.useRef({isFocused:!1,observer:null});De(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=$2(r=>{t==null||t(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=a=>{e.current.isFocused=!1,i.disabled&&n(new K2("blur",a)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function F2(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=d.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),a=Hu(o),l=d.useCallback(s=>{const u=me(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),a(s))},[i,n,a]);return{focusProps:{onFocus:!e&&(n||i||r)?l:void 0,onBlur:!e&&(r||i)?o:void 0}}}let xn=null,Po=new Set,Vn=new Map,Nt=!1,Do=!1;const j2={Tab:!0,Escape:!0};function pa(t,e){for(let n of Po)n(t,e)}function H2(t){return!(t.metaKey||!O2()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Gr(t){Nt=!0,H2(t)&&(xn="keyboard",pa("keyboard",t))}function Ne(t){xn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Nt=!0,pa("pointer",t))}function zu(t){k2(t)&&(Nt=!0,xn="virtual")}function Vu(t){t.target===window||t.target===document||(!Nt&&!Do&&(xn="virtual",pa("virtual",t)),Nt=!1,Do=!1)}function Bu(){Nt=!1,Do=!0}function Oo(t){if(typeof window>"u"||Vn.get(gt(t)))return;const e=gt(t),n=me(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Nt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Gr,!0),n.addEventListener("keyup",Gr,!0),n.addEventListener("click",zu,!0),e.addEventListener("focus",Vu,!0),e.addEventListener("blur",Bu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ne,!0),n.addEventListener("pointermove",Ne,!0),n.addEventListener("pointerup",Ne,!0)):(n.addEventListener("mousedown",Ne,!0),n.addEventListener("mousemove",Ne,!0),n.addEventListener("mouseup",Ne,!0)),e.addEventListener("beforeunload",()=>{Wu(t)},{once:!0}),Vn.set(e,{focus:r})}const Wu=(t,e)=>{const n=gt(t),r=me(t);e&&r.removeEventListener("DOMContentLoaded",e),Vn.has(n)&&(n.HTMLElement.prototype.focus=Vn.get(n).focus,r.removeEventListener("keydown",Gr,!0),r.removeEventListener("keyup",Gr,!0),r.removeEventListener("click",zu,!0),n.removeEventListener("focus",Vu,!0),n.removeEventListener("blur",Bu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ne,!0),r.removeEventListener("pointermove",Ne,!0),r.removeEventListener("pointerup",Ne,!0)):(r.removeEventListener("mousedown",Ne,!0),r.removeEventListener("mousemove",Ne,!0),r.removeEventListener("mouseup",Ne,!0)),Vn.delete(n))};function z2(t){const e=me(t);let n;return e.readyState!=="loading"?Oo(t):(n=()=>{Oo(t)},e.addEventListener("DOMContentLoaded",n)),()=>Wu(t,n)}typeof document<"u"&&z2();function Uu(){return xn!=="pointer"}function Gu(){return xn}const V2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B2(t,e,n){var r;const i=typeof window<"u"?gt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?gt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?gt(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?gt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof i&&!V2.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof l&&!j2[n.key])}function W2(t,e,n){Oo(),d.useEffect(()=>{let r=(i,o)=>{B2(!!(n!=null&&n.isTextInput),i,o)&&t(Uu())};return Po.add(r),()=>{Po.delete(r)}},e)}function U2(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=d.useRef({isFocusWithin:!1}),a=d.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=Hu(a),s=d.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,l(u))},[r,i,l]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:a}}}function qr(t){const e=me(t);if(Gu()==="virtual"){let n=e.activeElement;I2(()=>{e.activeElement===n&&t.isConnected&&il(t)})}else il(t)}function G2(t){const e=gt(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:a,visibility:l}=o(t);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function q2(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function qu(t,e){return t.nodeName!=="#comment"&&G2(t)&&q2(t,e)&&(!t.parentElement||qu(t.parentElement,t))}const ll=d.createContext(null),_o="react-aria-focus-scope-restore";let ae=null;function Yu(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=d.useRef(null),a=d.useRef(null),l=d.useRef([]),{parentNode:s}=d.useContext(ll)||{},u=d.useMemo(()=>new ko({scopeRef:l}),[l]);De(()=>{let p=s||ue.root;if(ue.getTreeNode(p.scopeRef)&&ae&&!Yr(ae,p.scopeRef)){let g=ue.getTreeNode(ae);g&&(p=g)}p.addChild(u),ue.addNode(u)},[u,s]),De(()=>{let p=ue.getTreeNode(l);p&&(p.contain=!!n)},[n]),De(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,m=[],f=v=>v.stopPropagation();for(;g&&g!==a.current;)m.push(g),g.addEventListener(_o,f),g=g.nextSibling;return l.current=m,()=>{for(let v of m)v.removeEventListener(_o,f)}},[e]),th(l,r,n),J2(l,n),nh(l,r,n),eh(l,i),d.useEffect(()=>{const p=me(l.current?l.current[0]:void 0).activeElement;let g=null;if(Ke(p,l.current)){for(let m of ue.traverse())m.scopeRef&&Ke(p,m.scopeRef.current)&&(g=m);g===ue.getTreeNode(l)&&(ae=g.scopeRef)}},[l]),De(()=>()=>{var p,g,m;let f=(m=(g=ue.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(l===ae||Yr(l,ae))&&(!f||ue.getTreeNode(f))&&(ae=f),ue.removeTreeNode(l)},[l]);let c=d.useMemo(()=>Y2(l),[]),h=d.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return d.createElement(ll.Provider,{value:h},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Y2(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:a}=e,l=r||me(n[0]).activeElement,s=n[0].previousElementSibling,u=xt(n),c=qe(u,{tabbable:i,accept:a},n);c.currentNode=Ke(l,n)?l:s;let h=c.nextNode();return!h&&o&&(c.currentNode=s,h=c.nextNode()),h&&rt(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:a}=e,l=r||me(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=xt(n),c=qe(u,{tabbable:i,accept:a},n);c.currentNode=Ke(l,n)?l:s;let h=c.previousNode();return!h&&o&&(c.currentNode=s,h=c.previousNode()),h&&rt(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),a=qe(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let l=a.nextNode();return l&&rt(l,!0),l},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=xt(n),a=qe(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let l=a.previousNode();return l&&rt(l,!0),l}}}const ga=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],Z2=ga.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ga.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const X2=ga.join(':not([hidden]):not([tabindex="-1"]),');function xt(t){return t[0].parentElement}function An(t){let e=ue.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function J2(t,e){let n=d.useRef(void 0),r=d.useRef(void 0);De(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=me(i?i[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!An(t)||u.isComposing)return;let c=o.activeElement,h=t.current;if(!h||!Ke(c,h))return;let p=xt(h),g=qe(p,{tabbable:!0},h);if(!c)return;g.currentNode=c;let m=u.shiftKey?g.previousNode():g.nextNode();m||(g.currentNode=u.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,m=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),m&&rt(m,!0)},l=u=>{(!ae||Yr(ae,t))&&Ke(u.target,t.current)?(ae=t,n.current=u.target):An(t)&&!vt(u.target,t)?n.current?n.current.focus():ae&&ae.current&&Io(ae.current):An(t)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Gu();if(!((c==="virtual"||c===null)&&Fu()&&_2())&&o.activeElement&&An(t)&&!vt(o.activeElement,t))if(ae=t,o.body.contains(u.target)){var p;n.current=u.target,(p=n.current)===null||p===void 0||p.focus()}else ae.current&&Io(ae.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",l,!1),i==null||i.forEach(u=>u.addEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",l,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),De(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Zu(t){return vt(t)}function Ke(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function vt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ue.traverse(ue.getTreeNode(e)))if(n&&Ke(t,n.current))return!0;return!1}function Q2(t){return vt(t,ae)}function Yr(t,e){var n;let r=(n=ue.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function rt(t,e=!1){if(t!=null&&!e)try{qr(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Xu(t,e=!0){let n=t[0].previousElementSibling,r=xt(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=xt(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Io(t,e=!0){rt(Xu(t,e))}function eh(t,e){const n=d.useRef(e);d.useEffect(()=>{if(n.current){ae=t;const r=me(t.current?t.current[0]:void 0);!Ke(r.activeElement,ae.current)&&t.current&&Io(t.current)}n.current=!1},[t])}function th(t,e,n){De(()=>{if(e||n)return;let r=t.current;const i=me(r?r[0]:void 0);let o=a=>{let l=a.target;Ke(l,t.current)?ae=t:Zu(l)||(ae=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[t,e,n])}function sl(t){let e=ue.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function nh(t,e,n){const r=d.useRef(typeof document<"u"?me(t.current?t.current[0]:void 0).activeElement:null);De(()=>{let i=t.current;const o=me(i?i[0]:void 0);if(!e||n)return;let a=()=>{(!ae||Yr(ae,t))&&Ke(o.activeElement,t.current)&&(ae=t)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",a,!1))}},[t,n]),De(()=>{const i=me(t.current?t.current[0]:void 0);if(!e)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!An(t)||a.isComposing)return;let l=i.activeElement;if(!vt(l,t)||!sl(t))return;let s=ue.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,c=qe(i.body,{tabbable:!0});c.currentNode=l;let h=a.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!h||!vt(h,t))&&u){c.currentNode=u;do h=a.shiftKey?c.previousNode():c.nextNode();while(vt(h,t));a.preventDefault(),a.stopPropagation(),h?rt(h,!0):Zu(u)?rt(u,!0):l.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),De(()=>{const i=me(t.current?t.current[0]:void 0);if(!e)return;let o=ue.getTreeNode(t);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let l=ue.getTreeNode(t);if(!l)return;let s=l.nodeToRestore;if(e&&s&&(i.activeElement&&vt(i.activeElement,t)||i.activeElement===i.body&&sl(t))){let u=ue.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(t);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){ul(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(t);c;){if(c.scopeRef&&c.scopeRef.current&&ue.getTreeNode(c.scopeRef)){let h=Xu(c.scopeRef.current,!0);ul(h);return}c=c.parent}}})}}}},[t,e])}function ul(t){t.dispatchEvent(new CustomEvent(_o,{bubbles:!0,cancelable:!0}))&&rt(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?X2:Z2,i=me(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(e==null||(a=e.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&qu(o)&&(!n||Ke(o,n))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class va{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new ko({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ke(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new va;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new ko({scopeRef:null}),this.fastMap.set(null,this.root)}}class ko{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ue=new va;function hi(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=d.useRef({isFocused:!1,isFocusVisible:e||Uu()}),[o,a]=d.useState(!1),[l,s]=d.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=d.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=d.useCallback(g=>{i.current.isFocused=g,a(g),u()},[u]);W2(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:h}=F2({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=U2({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:l,focusProps:r?p:h}}function rh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=d.useState(!1);return De(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let l=qe(t.current,{tabbable:!0});i(!!l.nextNode())}};o();let a=new MutationObserver(o);return a.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}let un="default",No="",kr=new WeakMap;function cl(t){if(di()){if(un==="default"){const e=Me(t);No=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}un="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(kr.set(t,t.style.userSelect),t.style.userSelect="none")}function gr(t){if(di()){if(un!=="disabled")return;un="restoring",setTimeout(()=>{Z0(()=>{if(un==="restoring"){const e=Me(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=No||""),No="",un="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&kr.has(t)){let e=kr.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),kr.delete(t)}}const ma=d.createContext({register:()=>{}});ma.displayName="PressResponderContext";function ih(t){let e=d.useContext(ma);if(e){let{register:n,...r}=e;t=ye(r,t),n()}return J0(e,t.ref),t}var vr=new WeakMap;class mr{continuePropagation(){al(this,vr,!1)}get shouldStopPropagation(){return R2(this,vr)}constructor(e,n,r,i){M2(this,vr,{writable:!0,value:void 0}),al(this,vr,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,u=0,c,h=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,h=r.clientY),l&&(c!=null&&h!=null?(s=c-l.left,u=h-l.top):(s=l.width/2,u=l.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const dl=Symbol("linkClicked");function ya(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:l,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:h,...p}=ih(t),[g,m]=d.useState(!1),f=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:y}=Du(),C=Pe((b,k)=>{let V=f.current;if(a||V.didFirePressStart)return!1;let R=!0;if(V.isTriggeringEvent=!0,r){let H=new mr("pressstart",k,b);r(H),R=H.shouldStopPropagation}return n&&n(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,m(!0),R}),S=Pe((b,k,V=!0)=>{let R=f.current;if(!R.didFirePressStart)return!1;R.ignoreClickAfterPress=!0,R.didFirePressStart=!1,R.isTriggeringEvent=!0;let H=!0;if(i){let E=new mr("pressend",k,b);i(E),H=E.shouldStopPropagation}if(n&&n(!1),m(!1),e&&V&&!a){let E=new mr("press",k,b);e(E),H&&(H=E.shouldStopPropagation)}return R.isTriggeringEvent=!1,H}),P=Pe((b,k)=>{let V=f.current;if(a)return!1;if(o){V.isTriggeringEvent=!0;let R=new mr("pressup",k,b);return o(R),V.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),x=Pe(b=>{let k=f.current;k.isPressed&&k.target&&(k.isOverTarget&&k.pointerType!=null&&S(Je(k.target,b),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,y(),c||gr(k.target))}),O=Pe(b=>{u&&x(b)}),D=d.useMemo(()=>{let b=f.current,k={onKeyDown(R){if(Li(R.nativeEvent,R.currentTarget)&&R.currentTarget.contains(R.target)){var H;hl(R.target,R.key)&&R.preventDefault();let E=!0;if(!b.isPressed&&!R.repeat){b.target=R.currentTarget,b.isPressed=!0,E=C(R,"keyboard");let I=R.currentTarget,j=W=>{Li(W,I)&&!W.repeat&&I.contains(W.target)&&b.target&&P(Je(b.target,W),"keyboard")};v(Me(R.currentTarget),"keyup",Un(j,V),!0)}E&&R.stopPropagation(),R.metaKey&&It()&&((H=b.metaKeyEvents)===null||H===void 0||H.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(R){if(!(R&&!R.currentTarget.contains(R.target))&&R&&R.button===0&&!b.isTriggeringEvent&&!kt.isOpening){let H=!0;if(a&&R.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Eo(R.nativeEvent))){!a&&!s&&$t(R.currentTarget);let E=C(R,"virtual"),I=P(R,"virtual"),j=S(R,"virtual");H=E&&I&&j}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,H&&R.stopPropagation()}}},V=R=>{var H;if(b.isPressed&&b.target&&Li(R,b.target)){var E;hl(R.target,R.key)&&R.preventDefault();let j=R.target;S(Je(b.target,R),"keyboard",b.target.contains(j)),y(),R.key!=="Enter"&&ba(b.target)&&b.target.contains(j)&&!R[dl]&&(R[dl]=!0,kt(b.target,R,!1)),b.isPressed=!1,(E=b.metaKeyEvents)===null||E===void 0||E.delete(R.key)}else if(R.key==="Meta"&&(!((H=b.metaKeyEvents)===null||H===void 0)&&H.size)){var I;let j=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let W of j.values())(I=b.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){k.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(n2(I.nativeEvent)){b.pointerType="virtual";return}Ai(I.currentTarget)&&I.preventDefault(),b.pointerType=I.pointerType;let j=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=I.pointerId,b.target=I.currentTarget,!a&&!s&&$t(I.currentTarget),c||cl(b.target),j=C(I,b.pointerType);let W=I.target;"releasePointerCapture"in W&&W.releasePointerCapture(I.pointerId),v(Me(I.currentTarget),"pointerup",R,!1),v(Me(I.currentTarget),"pointercancel",E,!1)}j&&I.stopPropagation()},k.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ai(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},k.onPointerUp=I=>{!I.currentTarget.contains(I.target)||b.pointerType==="virtual"||I.button===0&&P(I,b.pointerType||I.pointerType)},k.onPointerEnter=I=>{I.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,C(Je(b.target,I),b.pointerType))},k.onPointerLeave=I=>{I.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,S(Je(b.target,I),b.pointerType,!1),O(I))};let R=I=>{I.pointerId===b.activePointerId&&b.isPressed&&I.button===0&&b.target&&(b.target.contains(I.target)&&b.pointerType!=null?S(Je(b.target,I),b.pointerType):b.isOverTarget&&b.pointerType!=null&&S(Je(b.target,I),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,y(),c||gr(b.target),"ontouchend"in b.target&&I.pointerType!=="mouse"&&v(b.target,"touchend",H,{once:!0}))},H=I=>{Ju(I.currentTarget)&&I.preventDefault()},E=I=>{x(I)};k.onDragStart=I=>{I.currentTarget.contains(I.target)&&x(I)}}else{k.onMouseDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(Ai(E.currentTarget)&&E.preventDefault(),b.ignoreEmulatedMouseEvents){E.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=E.currentTarget,b.pointerType=Eo(E.nativeEvent)?"virtual":"mouse",!a&&!s&&$t(E.currentTarget),C(E,b.pointerType)&&E.stopPropagation(),v(Me(E.currentTarget),"mouseup",R,!1)},k.onMouseEnter=E=>{if(!E.currentTarget.contains(E.target))return;let I=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,I=C(E,b.pointerType)),I&&E.stopPropagation()},k.onMouseLeave=E=>{if(!E.currentTarget.contains(E.target))return;let I=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,I=S(E,b.pointerType,!1),O(E)),I&&E.stopPropagation()},k.onMouseUp=E=>{E.currentTarget.contains(E.target)&&!b.ignoreEmulatedMouseEvents&&E.button===0&&P(E,b.pointerType||"mouse")};let R=E=>{if(E.button===0){if(b.isPressed=!1,y(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&Mi(E,b.target)&&b.pointerType!=null?S(Je(b.target,E),b.pointerType):b.target&&b.isOverTarget&&b.pointerType!=null&&S(Je(b.target,E),b.pointerType,!1),b.isOverTarget=!1}};k.onTouchStart=E=>{if(!E.currentTarget.contains(E.target))return;let I=oh(E.nativeEvent);if(!I)return;b.activePointerId=I.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=E.currentTarget,b.pointerType="touch",!a&&!s&&$t(E.currentTarget),c||cl(b.target),C(ut(b.target,E),b.pointerType)&&E.stopPropagation(),v(yn(E.currentTarget),"scroll",H,!0)},k.onTouchMove=E=>{if(!E.currentTarget.contains(E.target))return;if(!b.isPressed){E.stopPropagation();return}let I=fl(E.nativeEvent,b.activePointerId),j=!0;I&&Mi(I,E.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,j=C(ut(b.target,E),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,j=S(ut(b.target,E),b.pointerType,!1),O(ut(b.target,E))),j&&E.stopPropagation()},k.onTouchEnd=E=>{if(!E.currentTarget.contains(E.target))return;if(!b.isPressed){E.stopPropagation();return}let I=fl(E.nativeEvent,b.activePointerId),j=!0;I&&Mi(I,E.currentTarget)&&b.pointerType!=null?(P(ut(b.target,E),b.pointerType),j=S(ut(b.target,E),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(j=S(ut(b.target,E),b.pointerType,!1)),j&&E.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!c&&gr(b.target),y()},k.onTouchCancel=E=>{E.currentTarget.contains(E.target)&&(E.stopPropagation(),b.isPressed&&x(ut(b.target,E)))};let H=E=>{b.isPressed&&E.target.contains(b.target)&&x({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}return k},[v,a,s,y,c,x,O,S,C,P]);return d.useEffect(()=>()=>{var b;c||gr((b=f.current.target)!==null&&b!==void 0?b:void 0)},[c]),{isPressed:l||g,pressProps:ye(p,D)}}function ba(t){return t.tagName==="A"&&t.hasAttribute("href")}function Li(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof yn(i).HTMLInputElement&&!Qu(i,n)||i instanceof yn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&ba(i))&&n!=="Enter")}function oh(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function fl(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function ut(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Je(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function ah(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function lh(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Mi(t,e){let n=e.getBoundingClientRect(),r=ah(t);return lh(n,r)}function Ai(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Ju(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!ba(t)}function hl(t,e){return t instanceof HTMLInputElement?!Qu(t,e):Ju(t)}const sh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Qu(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":sh.has(t.type)}function uh({children:t}){let e=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(ma.Provider,{value:e},t)}class ch{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function ec(t){let e=d.useRef({isFocused:!1,observer:null});pe(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(r=>{t==null||t(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=a=>{e.current.isFocused=!1,i.disabled&&n(new ch("blur",a)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function dh(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=d.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),a=ec(o),l=d.useCallback(s=>{const u=Me(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),a(s))},[i,n,a]);return{focusProps:{onFocus:!e&&(n||i||r)?l:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Tn=null,fh=new Set,Bn=new Map,Rt=!1,Ro=!1;function Sa(t,e){for(let n of fh)n(t,e)}function hh(t){return!(t.metaKey||!It()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Zr(t){Rt=!0,hh(t)&&(Tn="keyboard",Sa("keyboard",t))}function Re(t){Tn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Rt=!0,Sa("pointer",t))}function tc(t){Eo(t)&&(Rt=!0,Tn="virtual")}function nc(t){t.target===window||t.target===document||(!Rt&&!Ro&&(Tn="virtual",Sa("virtual",t)),Rt=!1,Ro=!1)}function rc(){Rt=!1,Ro=!0}function pl(t){if(typeof window>"u"||Bn.get(yn(t)))return;const e=yn(t),n=Me(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Rt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zr,!0),n.addEventListener("keyup",Zr,!0),n.addEventListener("click",tc,!0),e.addEventListener("focus",nc,!0),e.addEventListener("blur",rc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Re,!0),n.addEventListener("pointermove",Re,!0),n.addEventListener("pointerup",Re,!0)):(n.addEventListener("mousedown",Re,!0),n.addEventListener("mousemove",Re,!0),n.addEventListener("mouseup",Re,!0)),e.addEventListener("beforeunload",()=>{ic(t)},{once:!0}),Bn.set(e,{focus:r})}const ic=(t,e)=>{const n=yn(t),r=Me(t);e&&r.removeEventListener("DOMContentLoaded",e),Bn.has(n)&&(n.HTMLElement.prototype.focus=Bn.get(n).focus,r.removeEventListener("keydown",Zr,!0),r.removeEventListener("keyup",Zr,!0),r.removeEventListener("click",tc,!0),n.removeEventListener("focus",nc,!0),n.removeEventListener("blur",rc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Re,!0),r.removeEventListener("pointermove",Re,!0),r.removeEventListener("pointerup",Re,!0)):(r.removeEventListener("mousedown",Re,!0),r.removeEventListener("mousemove",Re,!0),r.removeEventListener("mouseup",Re,!0)),Bn.delete(n))};function ph(t){const e=Me(t);let n;return e.readyState!=="loading"?pl(t):(n=()=>{pl(t)},e.addEventListener("DOMContentLoaded",n)),()=>ic(t,n)}typeof document<"u"&&ph();function gh(){return Tn!=="pointer"}function gl(){return Tn}function oc(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=d.useRef({isFocusWithin:!1}),a=d.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=ec(a),s=d.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,l(u))},[r,i,l]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:a}}}let Xr=!1,Ki=0;function Lo(){Xr=!0,setTimeout(()=>{Xr=!1},50)}function vl(t){t.pointerType==="touch"&&Lo()}function vh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",vl):document.addEventListener("touchend",Lo),Ki++,()=>{Ki--,!(Ki>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",vl):document.removeEventListener("touchend",Lo))}}function Ca(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,a]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(vh,[]);let{hoverProps:s,triggerHoverEnd:u}=d.useMemo(()=>{let c=(g,m)=>{if(l.pointerType=m,i||m==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let f=g.currentTarget;l.target=f,e&&e({type:"hoverstart",target:f,pointerType:m}),n&&n(!0),a(!0)},h=(g,m)=>{if(l.pointerType="",l.target=null,m==="touch"||!l.isHovered)return;l.isHovered=!1;let f=g.currentTarget;r&&r({type:"hoverend",target:f,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{Xr&&g.pointerType==="mouse"||c(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(p.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!Xr&&c(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[e,n,r,i,l]);return d.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:o}}function mh(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(s=>{n&&yr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),l=Pe(s=>{n&&n(s)});d.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,c=Me(u);if(typeof PointerEvent<"u"){let h=p=>{s.isPointerDown&&yr(p,e)&&l(p),s.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",h,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",h,!0)}}else{let h=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&yr(g,e)&&l(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&yr(g,e)&&l(g),s.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",h,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",h,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[e,r,a,l])}function yr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function ml(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function yh(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ml(t.onKeyDown),onKeyUp:ml(t.onKeyUp)}}}const bh=500;function Sh(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=bh,accessibilityDescription:a}=t;const l=d.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Du(),{pressProps:c}=ya({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let g=m=>{m.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=t2(i&&!e?a:void 0);return{longPressProps:ye(c,h)}}const Ch=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Eh(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ch.has(n.script)}let e=t.split("-")[0];return wh.has(e)}const $h=Symbol.for("react-aria.i18n.locale");function ac(){let t=typeof window<"u"&&window[$h]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Eh(t)?"rtl":"ltr"}}let Mo=ac(),Kn=new Set;function yl(){Mo=ac();for(let t of Kn)t(Mo)}function xh(){let t=En(),[e,n]=d.useState(Mo);return d.useEffect(()=>(Kn.size===0&&window.addEventListener("languagechange",yl),Kn.add(n),()=>{Kn.delete(n),Kn.size===0&&window.removeEventListener("languagechange",yl)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Th=d.createContext(null);function or(){let t=xh();return d.useContext(Th)||t}var Ge=function(){return Ge=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ge.apply(this,arguments)};function lc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Ph(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Dh=Symbol.for("react-aria.i18n.locale"),Oh=Symbol.for("react-aria.i18n.strings");let Wt;class pi{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=_h(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Dh];if(Wt===void 0){let i=window[Oh];if(!i)return null;Wt={};for(let o in i)Wt[o]=new pi({[n]:i[o]},n)}let r=Wt==null?void 0:Wt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function _h(t,e,n="en-US"){if(e[t])return e[t];let r=Ih(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Ih(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const bl=new Map,Sl=new Map;class kh{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=bl.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),bl.set(o,a));let l=a.select(e);return i=n[l]||n.other,typeof i=="function"?i():i}number(e){let n=Sl.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Sl.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Cl=new WeakMap;function Nh(t){let e=Cl.get(t);return e||(e=new pi(t),Cl.set(t,e)),e}function Rh(t,e){return e&&pi.getGlobalDictionaryForPackage(e)||Nh(t)}function Lh(t,e){let{locale:n}=or(),r=Rh(t,e);return d.useMemo(()=>new kh(n,r),[n,r])}let Fi=new Map;function Mh(t){let{locale:e}=or(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Fi.has(n))return Fi.get(n);let r=new Intl.Collator(e,t);return Fi.set(n,r),r}const wl={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ah(t={}){let{style:e,isFocusable:n}=t,[r,i]=d.useState(!1),{focusWithinProps:o}=oc({isDisabled:!n,onFocusWithinChange:l=>i(l)}),a=d.useMemo(()=>r?e:e?{...wl,...e}:wl,[r]);return{visuallyHiddenProps:{...o,style:a}}}function Kh(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:a}=Ah(t);return d.createElement(n,ye(o,a),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Jr={top:"bottom",bottom:"top",left:"right",right:"left"},Fh={top:"left",left:"top"},Ao={top:"height",left:"width"},sc={width:"totalWidth",height:"totalHeight"},br={};let fe=typeof document<"u"?window.visualViewport:null;function El(t){let e=0,n=0,r=0,i=0,o=0,a=0,l={};var s;let u=((s=fe==null?void 0:fe.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let m=document.documentElement;r=m.clientWidth,i=m.clientHeight;var c;e=(c=fe==null?void 0:fe.width)!==null&&c!==void 0?c:r;var h;n=(h=fe==null?void 0:fe.height)!==null&&h!==void 0?h:i,l.top=m.scrollTop||t.scrollTop,l.left=m.scrollLeft||t.scrollLeft,fe&&(o=fe.offsetTop,a=fe.offsetLeft)}else({width:e,height:n,top:o,left:a}=hn(t)),l.top=t.scrollTop,l.left=t.scrollLeft,r=e,i=n;if(xu()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){l.top=0,l.left=0;var p;o=(p=fe==null?void 0:fe.pageTop)!==null&&p!==void 0?p:0;var g;a=(g=fe==null?void 0:fe.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:l,top:o,left:a}}function jh(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function $l(t,e,n,r,i,o,a){var l;let s=(l=i.scroll[t])!==null&&l!==void 0?l:0,u=r[Ao[t]],c=r.scroll[Ye[t]]+o,h=u+r.scroll[Ye[t]]-o,p=e-s+a[t]-r[Ye[t]],g=e-s+n+a[t]-r[Ye[t]];return p<c?c-p:g>h?Math.max(h-g,c-p):0}function Hh(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function xl(t){if(br[t])return br[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=Fh[r];Ye[n]||(n="center");let o=Ao[r],a=Ao[i];return br[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},br[t]}function ji(t,e,n,r,i,o,a,l,s,u){let{placement:c,crossPlacement:h,axis:p,crossAxis:g,size:m,crossSize:f}=r,v={};var y;v[g]=(y=t[g])!==null&&y!==void 0?y:0;var C,S,P,x;h==="center"?v[g]+=(((C=t[f])!==null&&C!==void 0?C:0)-((S=n[f])!==null&&S!==void 0?S:0))/2:h!==g&&(v[g]+=((P=t[f])!==null&&P!==void 0?P:0)-((x=n[f])!==null&&x!==void 0?x:0)),v[g]+=o;const O=t[g]-n[f]+s+u,D=t[g]+t[f]-s-u;if(v[g]=$o(v[g],O,D),c===p){const b=l?a[m]:e[sc[m]];v[Jr[p]]=Math.floor(b-t[p]+i)}else v[p]=Math.floor(t[p]+t[m]+i);return v}function zh(t,e,n,r,i,o,a,l){const s=r?n.height:e[sc.height];var u;let c=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-a);var h,p,g,m,f,v;let y=l!=="top"?Math.max(0,e.height+e.top+((h=e.scroll.top)!==null&&h!==void 0?h:0)-c-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,c+a-(e.top+((m=e.scroll.top)!==null&&m!==void 0?m:0))-(((f=i.top)!==null&&f!==void 0?f:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,y)}function Tl(t,e,n,r,i,o){let{placement:a,axis:l,size:s}=o;var u,c;if(a===l)return Math.max(0,n[l]-t[l]-((u=t.scroll[l])!==null&&u!==void 0?u:0)+e[l]-((c=r[l])!==null&&c!==void 0?c:0)-r[Jr[l]]-i);var h;return Math.max(0,t[s]+t[l]+t.scroll[l]-e[l]-n[l]-n[s]-((h=r[l])!==null&&h!==void 0?h:0)-r[Jr[l]]-i)}function Vh(t,e,n,r,i,o,a,l,s,u,c,h,p,g,m,f){let v=xl(t),{size:y,crossAxis:C,crossSize:S,placement:P,crossPlacement:x}=v,O=ji(e,l,n,v,c,h,u,p,m,f),D=c,b=Tl(l,u,e,i,o+c,v);if(a&&r[y]>b){let K=xl(`${Jr[P]} ${x}`),A=ji(e,l,n,K,c,h,u,p,m,f);Tl(l,u,e,i,o+c,K)>b&&(v=K,O=A,D=c)}let k="bottom";v.axis==="top"?v.placement==="top"?k="top":v.placement==="bottom"&&(k="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?k="bottom":v.crossPlacement==="bottom"&&(k="top"));let V=$l(C,O[C],n[S],l,s,o,u);O[C]+=V;let R=zh(O,l,u,p,i,o,n.height,k);g&&g<R&&(R=g),n.height=Math.min(n.height,R),O=ji(e,l,n,v,D,h,u,p,m,f),V=$l(C,O[C],n[S],l,s,o,u),O[C]+=V;let H={},E=e[C]+.5*e[S]-O[C]-i[Ye[C]];const I=m/2+f;var j,W,Z,_;const M=Ye[C]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((W=i.right)!==null&&W!==void 0?W:0):((Z=i.top)!==null&&Z!==void 0?Z:0)+((_=i.bottom)!==null&&_!==void 0?_:0),G=n[S]-M-m/2-f,Y=e[C]+m/2-(O[C]+i[Ye[C]]),L=e[C]+e[S]-m/2-(O[C]+i[Ye[C]]),N=$o(E,Y,L);return H[C]=$o(N,I,G),{position:O,maxHeight:R,arrowOffsetLeft:H.left,arrowOffsetTop:H.top,placement:v.placement}}function Bh(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:h=0,arrowBoundaryOffset:p=0}=t,g=r instanceof HTMLElement?Wh(r):document.documentElement,m=g===document.documentElement;const f=window.getComputedStyle(g).position;let v=!!f&&f!=="static",y=m?hn(n):Pl(n,g);if(!m){let{marginTop:H,marginLeft:E}=window.getComputedStyle(n);y.top+=parseInt(H,10)||0,y.left+=parseInt(E,10)||0}let C=hn(r),S=Hh(r);var P,x;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+((x=S.right)!==null&&x!==void 0?x:0);var O,D;C.height+=((O=S.top)!==null&&O!==void 0?O:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let b=jh(i),k=El(l),V=El(g),R=l.tagName==="BODY"?hn(g):Pl(g,l);return g.tagName==="HTML"&&l.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),Vh(e,y,C,b,S,o,a,k,V,R,s,u,v,c,h,p)}function hn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:l,clientLeft:s}=document.documentElement;return{top:e+o-l,left:n+a-s,width:r,height:i}}function Pl(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:l}=t.getBoundingClientRect();r={top:i,left:o,width:a,height:l}}else{r=hn(t);let i=hn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Wh(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Dl(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Dl(e);)e=e.parentElement;return e||document.documentElement}function Dl(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Uh=new WeakMap;function Gh(t){let{triggerRef:e,isOpen:n,onClose:r}=t;d.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!e.current||a instanceof Node&&!a.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=r||Uh.get(e.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let se=typeof document<"u"?window.visualViewport:null;function qh(t){let{direction:e}=or(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:m,maxHeight:f,arrowBoundaryOffset:v=0}=t,[y,C]=d.useState(null),S=[p,a,i.current,r.current,o.current,l,s,u,c,h,g,e,f,v,n],P=d.useRef(se==null?void 0:se.scale);d.useEffect(()=>{g&&(P.current=se==null?void 0:se.scale)},[g]);let x=d.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!u||(se==null?void 0:se.scale)!==P.current)return;let V=null;if(o.current&&o.current.contains(document.activeElement)){var R;let _=(R=document.activeElement)===null||R===void 0?void 0:R.getBoundingClientRect(),M=o.current.getBoundingClientRect();var H;if(V={type:"top",offset:((H=_==null?void 0:_.top)!==null&&H!==void 0?H:0)-M.top},V.offset>M.height/2){V.type="bottom";var E;V.offset=((E=_==null?void 0:_.bottom)!==null&&E!==void 0?E:0)-M.bottom}}let I=i.current;if(!f&&i.current){var j;I.style.top="0px",I.style.bottom="";var W;I.style.maxHeight=((W=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&W!==void 0?W:window.innerHeight)+"px"}let Z=Bh({placement:Zh(a,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:s,boundaryElement:u,offset:c,crossOffset:h,maxHeight:f,arrowSize:n,arrowBoundaryOffset:v});if(Z.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(Z.position).forEach(_=>I.style[_]=Z.position[_]+"px"),I.style.maxHeight=Z.maxHeight!=null?Z.maxHeight+"px":"",V&&document.activeElement&&o.current){let _=document.activeElement.getBoundingClientRect(),M=o.current.getBoundingClientRect(),G=_[V.type]-M[V.type];o.current.scrollTop+=G-V.offset}C(Z)}},S);pe(x,S),Yh(x),Za({ref:i,onResize:x}),Za({ref:r,onResize:x});let O=d.useRef(!1);pe(()=>{let V,R=()=>{O.current=!0,clearTimeout(V),V=setTimeout(()=>{O.current=!1},500),x()},H=()=>{O.current&&R()};return se==null||se.addEventListener("resize",R),se==null||se.addEventListener("scroll",H),()=>{se==null||se.removeEventListener("resize",R),se==null||se.removeEventListener("scroll",H)}},[x]);let D=d.useCallback(()=>{O.current||m==null||m()},[m,O]);Gh({triggerRef:r,isOpen:g,onClose:m&&D});var b,k;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...y==null?void 0:y.position,maxHeight:(b=y==null?void 0:y.maxHeight)!==null&&b!==void 0?b:"100vh"}},placement:(k=y==null?void 0:y.placement)!==null&&k!==void 0?k:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y==null?void 0:y.arrowOffsetLeft,top:y==null?void 0:y.arrowOffsetTop}},updatePosition:x}}function Yh(t){pe(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Zh(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Qe=[];function Xh(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=t;d.useEffect(()=>(i&&Qe.push(e),()=>{let m=Qe.indexOf(e);m>=0&&Qe.splice(m,1)}),[i,e]);let s=()=>{Qe[Qe.length-1]===e&&n&&n()},u=m=>{(!l||l(m.target))&&Qe[Qe.length-1]===e&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Qe[Qe.length-1]===e&&(m.stopPropagation(),m.preventDefault()),s())},h=m=>{m.key==="Escape"&&!a&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};mh({ref:e,onInteractOutside:o&&i?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=oc({isDisabled:!r,onBlurWithin:m=>{!m.relatedTarget||Q2(m.relatedTarget)||(!l||l(m.relatedTarget))&&(n==null||n())}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}const Hi=typeof document<"u"&&window.visualViewport,Jh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Sr=0,zi;function Qh(t={}){let{isDisabled:e}=t;pe(()=>{if(!e)return Sr++,Sr===1&&(di()?zi=tp():zi=ep()),()=>{Sr--,Sr===0&&zi()}},[e])}function ep(){return Un(cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"))}function tp(){let t,e,n=u=>{t=Ou(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=cn(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let c=u.target;np(c)&&(l(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Hi&&(Hi.height<window.innerHeight?requestAnimationFrame(()=>{Ol(c)}):Hi.addEventListener("resize",()=>Ol(c),{once:!0}))}))},a=null,l=()=>{if(a)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,h=window.pageYOffset;a=Un(In(window,"scroll",u),cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"),cn(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(c,h)}),window.scrollTo(0,0)},s=Un(In(document,"touchstart",n,{passive:!1,capture:!0}),In(document,"touchmove",r,{passive:!1,capture:!0}),In(document,"touchend",i,{passive:!1,capture:!0}),In(document,"focus",o,!0));return()=>{e==null||e(),a==null||a(),s()}}function cn(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function In(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Ol(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ou(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function np(t){return t instanceof HTMLInputElement&&!Jh.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var uc={};uc={dismiss:"تجاهل"};var cc={};cc={dismiss:"Отхвърляне"};var dc={};dc={dismiss:"Odstranit"};var fc={};fc={dismiss:"Luk"};var hc={};hc={dismiss:"Schließen"};var pc={};pc={dismiss:"Απόρριψη"};var gc={};gc={dismiss:"Dismiss"};var vc={};vc={dismiss:"Descartar"};var mc={};mc={dismiss:"Lõpeta"};var yc={};yc={dismiss:"Hylkää"};var bc={};bc={dismiss:"Rejeter"};var Sc={};Sc={dismiss:"התעלם"};var Cc={};Cc={dismiss:"Odbaci"};var wc={};wc={dismiss:"Elutasítás"};var Ec={};Ec={dismiss:"Ignora"};var $c={};$c={dismiss:"閉じる"};var xc={};xc={dismiss:"무시"};var Tc={};Tc={dismiss:"Atmesti"};var Pc={};Pc={dismiss:"Nerādīt"};var Dc={};Dc={dismiss:"Lukk"};var Oc={};Oc={dismiss:"Negeren"};var _c={};_c={dismiss:"Zignoruj"};var Ic={};Ic={dismiss:"Descartar"};var kc={};kc={dismiss:"Dispensar"};var Nc={};Nc={dismiss:"Revocare"};var Rc={};Rc={dismiss:"Пропустить"};var Lc={};Lc={dismiss:"Zrušiť"};var Mc={};Mc={dismiss:"Opusti"};var Ac={};Ac={dismiss:"Odbaci"};var Kc={};Kc={dismiss:"Avvisa"};var Fc={};Fc={dismiss:"Kapat"};var jc={};jc={dismiss:"Скасувати"};var Hc={};Hc={dismiss:"取消"};var zc={};zc={dismiss:"關閉"};var Vc={};Vc={"ar-AE":uc,"bg-BG":cc,"cs-CZ":dc,"da-DK":fc,"de-DE":hc,"el-GR":pc,"en-US":gc,"es-ES":vc,"et-EE":mc,"fi-FI":yc,"fr-FR":bc,"he-IL":Sc,"hr-HR":Cc,"hu-HU":wc,"it-IT":Ec,"ja-JP":$c,"ko-KR":xc,"lt-LT":Tc,"lv-LV":Pc,"nb-NO":Dc,"nl-NL":Oc,"pl-PL":_c,"pt-BR":Ic,"pt-PT":kc,"ro-RO":Nc,"ru-RU":Rc,"sk-SK":Lc,"sl-SI":Mc,"sr-SP":Ac,"sv-SE":Kc,"tr-TR":Fc,"uk-UA":jc,"zh-CN":Hc,"zh-TW":zc};function rp(t){return t&&t.__esModule?t.default:t}function _l(t){let{onDismiss:e,...n}=t,r=Lh(rp(Vc),"@react-aria/overlays"),i=la(n,r.format("dismiss")),o=()=>{e&&e()};return d.createElement(Kh,null,d.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let kn=new WeakMap,_e=[];function ip(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),h=u(s);if(h===NodeFilter.FILTER_ACCEPT&&o(s),h!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)o(p),p=c.nextNode()}},o=s=>{var u;let c=(u=kn.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&s.setAttribute("aria-hidden","true"),r.add(s),kn.set(s,c+1))};_e.length&&_e[_e.length-1].disconnect(),i(e);let a=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});a.observe(e,{childList:!0,subtree:!0});let l={observe(){a.observe(e,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return _e.push(l),()=>{a.disconnect();for(let s of r){let u=kn.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),kn.delete(s)):kn.set(s,u-1))}l===_e[_e.length-1]?(_e.pop(),_e.length&&_e[_e.length-1].observe()):_e.splice(_e.indexOf(l),1)}}function op(t,e){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...l}=t,{overlayProps:s,underlayProps:u}=Xh({isOpen:e.isOpen&&!l["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:h,placement:p}=qh({...l,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:i?e.close:null});return Qh({isDisabled:i||!e.isOpen}),pe(()=>{if(e.isOpen&&!i&&r.current)return ip([r.current])},[i,e.isOpen,r]),{popoverProps:ye(s,c),arrowProps:h,underlayProps:u,placement:p}}const ap=d.createContext({});function lp(){var t;return(t=d.useContext(ap))!==null&&t!==void 0?t:{}}const sp=d.createContext(null);function up(t){let e=En(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=d.useState(!1),a=d.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:l}=lp();if(!t.portalContainer&&l&&(n=l()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=d.createElement(Yu,{restoreFocus:!0,contain:i&&!r},s)),s=d.createElement(sp.Provider,{value:a},d.createElement(uh,null,s)),Ht.createPortal(s,n)}function Ko(t){return B0()?t.altKey:t.ctrlKey}const cp=1e3;function dp(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=d.useRef({search:"",timeout:void 0}).current,o=a=>{let l=fp(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(l===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=l,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},cp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function fp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Bc(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:m="action"}=t,{direction:f}=or(),v=fi(),y=E=>{var I;if(E.altKey&&E.key==="Tab"&&E.preventDefault(),!(!((I=r.current)===null||I===void 0)&&I.contains(E.target)))return;const j=(F,X)=>{if(F!=null){if(e.isLink(F)&&m==="selection"&&s&&!Ko(E)){var te;Ht.flushSync(()=>{e.setFocusedKey(F,X)});let de=(te=g.current)===null||te===void 0?void 0:te.querySelector(`[data-key="${CSS.escape(F.toString())}"]`),ce=e.getItemProps(F);de&&v.open(de,E,ce.href,ce.routerOptions);return}if(e.setFocusedKey(F,X),e.isLink(F)&&m==="override")return;E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):s&&!Ko(E)&&e.replaceSelection(F)}};switch(E.key){case"ArrowDown":if(n.getKeyBelow){var W,Z,_;let F=e.focusedKey!=null?(W=n.getKeyBelow)===null||W===void 0?void 0:W.call(n,e.focusedKey):(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n);F==null&&o&&(F=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),F!=null&&(E.preventDefault(),j(F))}break;case"ArrowUp":if(n.getKeyAbove){var M,G,Y;let F=e.focusedKey!=null?(M=n.getKeyAbove)===null||M===void 0?void 0:M.call(n,e.focusedKey):(G=n.getLastKey)===null||G===void 0?void 0:G.call(n);F==null&&o&&(F=(Y=n.getLastKey)===null||Y===void 0?void 0:Y.call(n,e.focusedKey)),F!=null&&(E.preventDefault(),j(F))}break;case"ArrowLeft":if(n.getKeyLeftOf){var L,N,K;let F=e.focusedKey!=null?(L=n.getKeyLeftOf)===null||L===void 0?void 0:L.call(n,e.focusedKey):null;F==null&&o&&(F=f==="rtl"?(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n,e.focusedKey):(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,e.focusedKey)),F!=null&&(E.preventDefault(),j(F,f==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var A,z,B;let F=e.focusedKey!=null?(A=n.getKeyRightOf)===null||A===void 0?void 0:A.call(n,e.focusedKey):null;F==null&&o&&(F=f==="rtl"?(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,e.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,e.focusedKey)),F!=null&&(E.preventDefault(),j(F,f==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&E.shiftKey)return;E.preventDefault();let F=n.getFirstKey(e.focusedKey,on(E));e.setFocusedKey(F),F!=null&&(on(E)&&E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):s&&e.replaceSelection(F))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&E.shiftKey)return;E.preventDefault();let F=n.getLastKey(e.focusedKey,on(E));e.setFocusedKey(F),F!=null&&(on(E)&&E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):s&&e.replaceSelection(F))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let F=n.getKeyPageBelow(e.focusedKey);F!=null&&(E.preventDefault(),j(F))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let F=n.getKeyPageAbove(e.focusedKey);F!=null&&(E.preventDefault(),j(F))}break;case"a":on(E)&&e.selectionMode==="multiple"&&l!==!0&&(E.preventDefault(),e.selectAll());break;case"Escape":!a&&e.selectedKeys.size!==0&&(E.stopPropagation(),E.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(E.shiftKey)r.current.focus();else{let F=qe(r.current,{tabbable:!0}),X,te;do te=F.lastChild(),te&&(X=te);while(te);X&&!X.contains(document.activeElement)&&$t(X)}break}}},C=d.useRef({top:0,left:0});fr(g,"scroll",p?void 0:()=>{var E,I,j,W;C.current={top:(j=(E=g.current)===null||E===void 0?void 0:E.scrollTop)!==null&&j!==void 0?j:0,left:(W=(I=g.current)===null||I===void 0?void 0:I.scrollLeft)!==null&&W!==void 0?W:0}});let S=E=>{if(e.isFocused){E.currentTarget.contains(E.target)||e.setFocused(!1);return}if(E.currentTarget.contains(E.target)){if(e.setFocused(!0),e.focusedKey==null){var I,j;let _=G=>{G!=null&&(e.setFocusedKey(G),s&&e.replaceSelection(G))},M=E.relatedTarget;var W,Z;M&&E.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?_((W=e.lastSelectedKey)!==null&&W!==void 0?W:(I=n.getLastKey)===null||I===void 0?void 0:I.call(n)):_((Z=e.firstSelectedKey)!==null&&Z!==void 0?Z:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else!p&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||$t(_),gl()==="keyboard"&&Ja(_,{containingElement:r.current}))}}},P=E=>{E.currentTarget.contains(E.relatedTarget)||e.setFocused(!1)},x=d.useRef(!1);fr(r,i2,c?E=>{let{detail:I}=E;E.stopPropagation(),e.setFocused(!0),(I==null?void 0:I.focusStrategy)==="first"&&(x.current=!0)}:void 0);let O=Pe(()=>{var E,I;let j=(I=(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n))!==null&&I!==void 0?I:null;if(j==null){var W;(W=r.current)===null||W===void 0||W.dispatchEvent(new CustomEvent(Iu,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(j),x.current=!1});Ya(()=>{x.current&&O()},[e.collection,O]);let D=Pe(()=>{e.collection.size>0&&(x.current=!1)});Ya(()=>{D()},[e.focusedKey,D]),fr(r,r2,c?E=>{E.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const b=d.useRef(i);d.useEffect(()=>{if(b.current){var E,I;let Z=null;var j;i==="first"&&(Z=(j=(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n))!==null&&j!==void 0?j:null);var W;i==="last"&&(Z=(W=(I=n.getLastKey)===null||I===void 0?void 0:I.call(n))!==null&&W!==void 0?W:null);let _=e.selectedKeys;if(_.size){for(let M of _)if(e.canSelectItem(M)){Z=M;break}}e.setFocused(!0),e.setFocusedKey(Z),Z==null&&!c&&r.current&&qr(r.current)}},[]);let k=d.useRef(e.focusedKey);d.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==k.current||b.current)&&g.current&&r.current){let E=gl(),I=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!I)return;(E==="keyboard"||b.current)&&(_u(g.current,I),E!=="virtual"&&Ja(I,{containingElement:r.current}))}!c&&e.isFocused&&e.focusedKey==null&&k.current!=null&&r.current&&qr(r.current),k.current=e.focusedKey,b.current=!1}),fr(r,"react-aria-focus-scope-restore",E=>{E.preventDefault(),e.setFocused(!0)});let V={onKeyDown:y,onFocus:S,onBlur:P,onMouseDown(E){g.current===E.target&&E.preventDefault()}},{typeSelectProps:R}=dp({keyboardDelegate:n,selectionManager:e});u||(V=ye(R,V));let H;return c?H=-1:H=e.focusedKey==null?0:-1,{collectionProps:{...V,tabIndex:H}}}function Wc(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:h="action"}=t,p=fi();e=tr(e);let g=_=>{if(_.pointerType==="keyboard"&&Ko(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let M=n.getItemProps(r);p.open(i.current,_,M.href,M.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(on(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!a)l?l():document.activeElement!==i.current&&i.current&&qr(i.current);else{var M;let G=new CustomEvent(Iu,{cancelable:!0,bubbles:!0});(M=i.current)===null||M===void 0||M.dispatchEvent(G)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),s=s||n.isDisabled(r);let m={};!a&&!s?m={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:s&&(m.onMouseDown=_=>{_.preventDefault()});let f=n.isLink(r)&&h==="override",v=n.isLink(r)&&h!=="selection"&&h!=="none",y=!s&&n.canSelectItem(r)&&!f,C=(u||v)&&!s,S=C&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),P=C&&y&&n.selectionBehavior==="replace",x=S||P,O=d.useRef(null),D=x&&y,b=d.useRef(!1),k=d.useRef(!1),V=_=>{if(u&&u(),v&&i.current){let M=n.getItemProps(r);p.open(i.current,_,M.href,M.routerOptions)}},R={};o?(R.onPressStart=_=>{O.current=_.pointerType,b.current=D,_.pointerType==="keyboard"&&(!x||kl())&&g(_)},c?(R.onPressUp=S?void 0:_=>{_.pointerType==="mouse"&&y&&g(_)},R.onPress=S?V:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&y&&g(_)}):R.onPress=_=>{if(S||P&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!Il())return;V(_)}else _.pointerType!=="keyboard"&&y&&g(_)}):(R.onPressStart=_=>{O.current=_.pointerType,b.current=D,k.current=S,y&&(_.pointerType==="mouse"&&!S||_.pointerType==="keyboard"&&(!C||kl()))&&g(_)},R.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&x&&Il()||_.pointerType==="mouse"&&k.current)&&(x?V(_):y&&g(_))}),m["data-key"]=r,R.preventFocusOnPress=a;let{pressProps:H,isPressed:E}=ya(R),I=P?_=>{O.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),V(_))}:void 0,{longPressProps:j}=Sh({isDisabled:!D,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),W=_=>{O.current==="touch"&&b.current&&_.preventDefault()},Z=n.isLink(r)?_=>{kt.isOpening||_.preventDefault()}:void 0;return{itemProps:ye(m,y||S?H:{},D?j:{},{onDoubleClick:I,onDragStartCapture:W,onClick:Z,id:e}),isPressed:E,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:y,hasAction:x}}function Il(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function kl(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Nl{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class hp{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Gn(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Gn(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Nl(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Nl(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function pp(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=t,l=Mh({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=d.useMemo(()=>o||new hp({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:l,layoutDelegate:a}),[o,a,n,r,i,l,s]),{collectionProps:c}=Bc({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:c}}function Uc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function gp(t){return vp(t)}function vp(t,e){for(let n of t)return n}function Vi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Rl(t,e),e],i=[...Rl(t,n),n],o=r.slice(0,i.length).findIndex((a,l)=>a!==i[l]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===e)>=0,-1)}function Rl(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const Ll=new WeakMap;function mp(t){let e=Ll.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Uc(o,t)):n++};return r(t),Ll.set(t,n),n}const Gc=new WeakMap;function yp(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...a}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=Ve(t,{labelable:!0}),{listProps:s}=pp({...a,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Gc.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ye(l,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function bp(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:h,onPressEnd:p,onHoverStart:g,onHoverChange:m,onHoverEnd:f,onKeyDown:v,onKeyUp:y,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:x=e.selectionManager}=t,O=!!l,D=O&&t["aria-expanded"]==="true";var b;let k=(b=t.isDisabled)!==null&&b!==void 0?b:x.isDisabled(i);var V;let R=(V=t.isSelected)!==null&&V!==void 0?V:x.isSelected(i),H=Gc.get(e),E=e.collection.getItem(i),I=t.onClose||H.onClose,j=fi(),W=re=>{var We;if(!O){if(!(E==null||(We=E.props)===null||We===void 0)&&We.onAction?E.props.onAction():t.onAction&&t.onAction(i),H.onAction){let lt=H.onAction;lt(i)}re.target instanceof HTMLAnchorElement&&E&&j.open(re.target,re,E.props.href,E.props.routerOptions)}},Z="menuitem";O||(x.selectionMode==="single"?Z="menuitemradio":x.selectionMode==="multiple"&&(Z="menuitemcheckbox"));let _=Ii(),M=Ii(),G=Ii(),Y={id:r,"aria-disabled":k||void 0,role:Z,"aria-label":t["aria-label"],"aria-labelledby":_,"aria-describedby":[M,G].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":l,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!O&&(Y["aria-checked"]=R),a&&(Y["aria-posinset"]=E==null?void 0:E.index,Y["aria-setsize"]=mp(e.collection));let L=re=>{re.pointerType==="keyboard"&&W(re),s==null||s(re)},N=()=>{!O&&I&&(o??(x.selectionMode!=="multiple"||x.isLink(i)))&&I()},K=re=>{re.pointerType==="mouse"&&(W(re),N()),u==null||u(re)},A=re=>{re.pointerType!=="keyboard"&&re.pointerType!=="mouse"&&(W(re),N()),c==null||c(re)},{itemProps:z,isFocused:B}=Wc({id:r,selectionManager:x,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:F,isPressed:X}=ya({onPressStart:L,onPress:A,onPressUp:K,onPressChange:h,onPressEnd:p,isDisabled:k}),{hoverProps:te}=Ca({isDisabled:k,onHoverStart(re){!gh()&&!(D&&l==="dialog")&&(x.setFocused(!0),x.setFocusedKey(i)),g==null||g(re)},onHoverChange:m,onHoverEnd:f}),{keyboardProps:de}=yh({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":!k&&x.selectionMode==="none"&&!O&&o!==!1&&I&&I();break;case"Enter":!k&&o!==!1&&!O&&I&&I();break;default:O||re.continuePropagation(),v==null||v(re);break}},onKeyUp:y}),{focusProps:ce}=dh({onBlur:P,onFocus:C,onFocusChange:S}),oe=Ve(E==null?void 0:E.props);delete oe.id;let ge=Pu(E==null?void 0:E.props);return{menuItemProps:{...Y,...ye(oe,ge,O?{onFocus:z.onFocus,"data-key":z["data-key"]}:z,F,te,de,ce),tabIndex:z.tabIndex!=null&&D?-1:z.tabIndex},labelProps:{id:_},descriptionProps:{id:M},keyboardShortcutProps:{id:G},isFocused:B,isSelected:R,isPressed:X,isDisabled:k}}function Sp(t){let{heading:e,"aria-label":n}=t,r=tr();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function Cp(t){let e=Ve(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const qc=new WeakMap;function Qr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${qc.get(t)}-${n}-${e}`):""}function wp(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:a,selectedKey:l}=e,s=r===l,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:c,isPressed:h}=Wc({selectionManager:a,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=Qr(e,r,"tab"),g=Qr(e,r,"tabpanel"),{tabIndex:m}=c,f=e.collection.getItem(r),v=Ve(f==null?void 0:f.props,{labelable:!0});delete v.id;let y=Pu(f==null?void 0:f.props);return{tabProps:ye(v,y,c,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:h}}function Ep(t,e,n){let r=rh(n)?void 0:0;var i;const o=Qr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),a=la({...t,id:o,"aria-labelledby":Qr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ye(a,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class $p{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function xp(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:a,disabledKeys:l}=e,{direction:s}=or(),u=d.useMemo(()=>new $p(o,s,r,l),[o,l,r,s]),{collectionProps:c}=Bc({ref:n,selectionManager:a,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),h=tr();qc.set(e,h);let p=la({...t,id:h});return{tabListProps:{...ye(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const Tp=d.createContext({});function Pp(t){let[e,n]=nr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),i=d.useCallback(()=>{n(!1)},[n]),o=d.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}class Dp{build(e,n){return this.context=n,Ml(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];d.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let l=this.getFullNode({element:a,index:o},{});for(let s of l)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let l=(a=o.key)!==null&&a!==void 0?a:o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(d.isValidElement(e.element)&&e.element.type===d.Fragment){let v=[];d.Children.forEach(e.element.props.children,C=>{v.push(C)});var o;let y=(o=e.index)!==null&&o!==void 0?o:0;for(const C of v)yield*this.getFullNode({element:C,index:y++},n,r,i);return}let a=e.element;if(!a&&e.value&&n&&n.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}a=n.renderer(e.value)}if(d.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let y=v.getCollectionNode(a.props,this.context);var l;let C=(l=e.index)!==null&&l!==void 0?l:0,S=y.next();for(;!S.done&&S.value;){let P=S.value;e.index=C;var s;let x=(s=P.key)!==null&&s!==void 0?s:null;x==null&&(x=P.element?null:this.getKey(a,e,n,r));let D=[...this.getFullNode({...P,key:x,index:C,wrapper:Op(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let b of D){var u,c;b.value=(c=(u=P.value)!==null&&u!==void 0?u:e.value)!==null&&c!==void 0?c:null,b.value&&this.cache.set(b.value,b);var h;if(e.type&&b.type!==e.type)throw new Error(`Unsupported type <${Bi(b.type)}> in <${Bi((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Bi(e.type)}> is supported.`);C++,yield b}S=y.next(D)}return}if(e.key==null||e.type==null)return;let p=this;var g,m;let f={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(m=e.textValue)!==null&&m!==void 0?m:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ml(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let y of e.childNodes()){y.key!=null&&(y.key=`${f.key}${y.key}`);let C=p.getFullNode({...y,index:v},p.getChildState(n,y),f.key,f);for(let S of C)v++,yield S}})};yield f}constructor(){this.cache=new WeakMap}}function Ml(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Op(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Bi(t){return t[0].toUpperCase()+t.slice(1)}function Yc(t,e,n){let r=d.useMemo(()=>new Dp,[]),{children:i,items:o,collection:a}=t;return d.useMemo(()=>{if(a)return a;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,a,n,e])}function _p(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Ip(t){return kp(t)}function kp(t,e){for(let n of t)return n}function Wi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Al(t,e),e],i=[...Al(t,n),n],o=r.slice(0,i.length).findIndex((a,l)=>a!==i[l]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===e)>=0,-1)}function Al(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}function Np(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=f=>{var v;return(v=f.id)!==null&&v!==void 0?v:f.key},getChildren:i=f=>f.children}=t,[o,a]=d.useState(()=>h(e,new Map)),{items:l,nodeMap:s}=o,[u,c]=d.useState(new Set(n||[]));function h(f=[],v,y){return f==null&&(f=[]),{items:f.map(C=>{let S={key:r(C),parentKey:y,value:C,children:null};return S.children=h(i(C),v,S.key).items,v.set(S.key,S),S}),nodeMap:v}}function p(f,v,y,C){let S=C.get(v);if(!S)return{items:f,nodeMap:C};let P=new Map(C),x=y(S);for(x==null?m(S,P):g(x,P);S&&S.parentKey;){let D=P.get(S.parentKey),b={key:D.key,parentKey:D.parentKey,value:D.value,children:null},k=D.children;x==null&&k&&(k=k.filter(V=>V!==S));var O;b.children=(O=k==null?void 0:k.map(V=>V===S?x:V))!==null&&O!==void 0?O:null,P.set(b.key,b),x=b,S=D}return x==null&&(f=f.filter(D=>D!==S)),{items:f.map(D=>D===S?x:D),nodeMap:P}}function g(f,v){if(v.set(f.key,f),f.children)for(let y of f.children)g(y,v)}function m(f,v){if(v.delete(f.key),f.children)for(let y of f.children)m(y,v)}return{items:l,selectedKeys:u,setSelectedKeys:c,getItem(f){return s.get(f)},insert(f,v,...y){a(({items:C,nodeMap:S})=>{let{items:P,nodeMap:x}=h(y,S,f);return f==null?{items:[...C.slice(0,v),...P,...C.slice(v)],nodeMap:x}:p(C,f,O=>({key:O.key,parentKey:O.parentKey,value:O.value,children:[...O.children.slice(0,v),...P,...O.children.slice(v)]}),x)})},insertBefore(f,...v){let y=s.get(f);if(!y)return;let C=s.get(y.parentKey),P=(C?C.children:l).indexOf(y);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,P,...v)},insertAfter(f,...v){let y=s.get(f);if(!y)return;let C=s.get(y.parentKey),P=(C?C.children:l).indexOf(y);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,P+1,...v)},prepend(f,...v){this.insert(f,0,...v)},append(f,...v){if(f==null)this.insert(null,l.length,...v);else{let y=s.get(f);if(!y)return;this.insert(f,y.children.length,...v)}},remove(...f){if(f.length===0)return;let v=l,y=s,C;for(let P of f)C=p(v,P,()=>null,y),y=C.nodeMap,v=C.items;a(C);let S=new Set(u);for(let P of u)C.nodeMap.has(P)||S.delete(P);c(S)},removeSelectedItems(){this.remove(...u)},move(f,v,y){a(({items:C,nodeMap:S})=>{let P=S.get(f);if(!P)return{items:C,nodeMap:S};let{items:x,nodeMap:O}=p(C,f,()=>null,S);const D={...P,parentKey:v};return v==null?(O.set(D.key,D),{items:[...x.slice(0,y),D,...x.slice(y)],nodeMap:O}):p(x,v,b=>({key:b.key,parentKey:b.parentKey,value:b.value,children:[...b.children.slice(0,y),D,...b.children.slice(y)]}),O)})},update(f,v){a(({items:y,nodeMap:C})=>p(y,f,S=>{let P={key:S.key,parentKey:S.parentKey,value:v,children:null},x=h(i(v),C,P.key);return P.children=x.items,P},C))}}}class Kl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)n(l)};for(let a of e)n(a);let r=null,i=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),r=l,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let tt=class Zc extends Set{constructor(e,n,r){super(e),e instanceof Zc?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function Rp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Xc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,a=d.useRef(!1),[,l]=d.useState(!1),s=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),h=d.useMemo(()=>Fl(t.selectedKeys),[t.selectedKeys]),p=d.useMemo(()=>Fl(t.defaultSelectedKeys,new tt),[t.defaultSelectedKeys]),[g,m]=nr(h,p,t.onSelectionChange),f=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,y]=d.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&y("replace");let C=d.useRef(i);return d.useEffect(()=>{i!==C.current&&(y(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(S){a.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,P="first"){s.current=S,u.current=P,c(S)},selectedKeys:g,setSelectedKeys(S){(r||!Rp(S,g))&&m(S)},disabledKeys:f,disabledBehavior:o}}function Fl(t,e){return t?t==="all"?"all":new tt(t):e}let Jc=class{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new tt([n],n,n);else{let a=this.state.selectedKeys;var i;let l=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new tt(a,l,n);var o;for(let s of this.getKeyRange(l,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,l))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Wi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new tt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new tt([n],n,n):new tt;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new tt;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&e.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Ip(_p(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new tt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function Lp(t){let{filter:e,layoutDelegate:n}=t,r=Xc(t),i=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=d.useCallback(c=>e?new Kl(e(c)):new Kl(c),[e]),a=d.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),l=Yc(t,o,a),s=d.useMemo(()=>new Jc(l,r,{layoutDelegate:n}),[l,r,n]);const u=d.useRef(null);return d.useEffect(()=>{if(r.focusedKey!=null&&!l.getItem(r.focusedKey)&&u.current){const y=u.current.getItem(r.focusedKey),C=[...u.current.getKeys()].map(b=>{const k=u.current.getItem(b);return(k==null?void 0:k.type)==="item"?k:null}).filter(b=>b!==null),S=[...l.getKeys()].map(b=>{const k=l.getItem(b);return(k==null?void 0:k.type)==="item"?k:null}).filter(b=>b!==null);var c,h;const P=((c=C==null?void 0:C.length)!==null&&c!==void 0?c:0)-((h=S==null?void 0:S.length)!==null&&h!==void 0?h:0);var p,g,m;let x=Math.min(P>1?Math.max(((p=y==null?void 0:y.index)!==null&&p!==void 0?p:0)-P+1,0):(g=y==null?void 0:y.index)!==null&&g!==void 0?g:0,((m=S==null?void 0:S.length)!==null&&m!==void 0?m:0)-1),O=null,D=!1;for(;x>=0;){if(!s.isDisabled(S[x].key)){O=S[x];break}if(x<S.length-1&&!D)x++;else{D=!0;var f,v;x>((f=y==null?void 0:y.index)!==null&&f!==void 0?f:0)&&(x=(v=y==null?void 0:y.index)!==null&&v!==void 0?v:0),x--}}r.setFocusedKey(O?O.key:null)}u.current=l},[l,s,r,r.focusedKey]),{collection:l,disabledKeys:i,selectionManager:s}}function Mp(t){var e;let[n,r]=nr(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:l}=Lp({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var c;let h=(c=u.values().next().value)!==null&&c!==void 0?c:null;h===n&&t.onSelectionChange&&t.onSelectionChange(h),r(h)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Ap(t){var e,n;let r=Mp({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:jl(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:a}=r,l=d.useRef(a);return d.useEffect(()=>{let s=a;(i.isEmpty||s==null||!o.getItem(s))&&(s=jl(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==l.current)&&i.setFocusedKey(s),l.current=s}),{...r,isDisabled:t.isDisabled||!1}}function jl(t,e){let n=null;if(t){var r,i,o,a;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((a=t.getItem(n))===null||a===void 0||(o=a.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class Kp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let s of l.childNodes)r(s)};for(let l of e)r(l);let i=null,o=0;for(let[l,s]of this.keyMap)i?(i.nextKey=l,s.prevKey=i.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var a;this.lastKey=(a=i==null?void 0:i.key)!==null&&a!==void 0?a:null}}function Fp(t){let{onExpandedChange:e}=t,[n,r]=nr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Xc(t),o=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),a=Yc(t,d.useCallback(s=>new Kp(s,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{i.focusedKey!=null&&!a.getItem(i.focusedKey)&&i.setFocusedKey(null)},[a,i.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(jp(n,s))},setExpandedKeys:r,selectionManager:new Jc(a,i)}}function jp(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Hp=d.createContext(null),zp=d.createContext(null),Qc={CollectionRoot({collection:t,renderDropIndicator:e}){return Hl(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Hl(t,e,n)}};function Hl(t,e,n){return Ru({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let a=r.key,l=t.getKeyAfter(a);return d.createElement(d.Fragment,null,n({type:"item",key:a,dropPosition:"before"}),o,(l==null||((i=t.getItem(l))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:a,dropPosition:"after"}))}})}const gi=d.createContext(Qc);function ed(t){return d.useMemo(()=>t!=null?new Set([t]):null,[t])}const Vp=d.createContext({}),td=d.createContext({}),Bp=fa("separator",function(e,n){[e,n]=ir(e,n,td);let{elementType:r,orientation:i,style:o,className:a}=e,l=r||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:s}=Cp({elementType:r,orientation:i});return d.createElement(l,{...Ve(e),...s,style:o,className:a??"react-aria-Separator",ref:n,slot:e.slot||void 0})}),Wp=d.createContext({placement:"bottom"}),Up=d.createContext(null),Gp=d.forwardRef(function(e,n){[e,n]=ir(e,n,Up);let r=d.useContext(lg),i=Pp(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,a=a2(n,o.isOpen)||e.isExiting||!1;if(f2()){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,s)}return o&&!o.isOpen&&!a?null:d.createElement(qp,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:a})});function qp({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=d.useRef(null),[o,a]=d.useState(0);pe(()=>{i.current&&t.isOpen&&a(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var l;let{popoverProps:s,underlayProps:u,arrowProps:c,placement:h}=op({...r,offset:(l=r.offset)!==null&&l!==void 0?l:8,arrowSize:o},t),p=r.popoverRef,g=o2(p,!!h)||r.isEntering||!1,m=yt({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:h,isEntering:g,isExiting:e}}),f={...s.style,...m.style};return d.createElement(up,{...r,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&d.createElement("div",{"data-testid":"underlay",...u,style:{position:"fixed",inset:0}}),d.createElement("div",{...ye(Ve(r),s),...m,ref:p,slot:r.slot||void 0,style:f,"data-trigger":r.trigger,"data-placement":h,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&d.createElement(_l,{onDismiss:t.close}),d.createElement(Wp.Provider,{value:{...c,placement:h,ref:i}},m.children),d.createElement(_l,{onDismiss:t.close})))}const Yp=d.createContext({});class He extends Set{constructor(e,n,r){super(e),e instanceof He?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Zp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Xp(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,a=d.useRef(!1),[,l]=d.useState(!1),s=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),h=d.useMemo(()=>zl(t.selectedKeys),[t.selectedKeys]),p=d.useMemo(()=>zl(t.defaultSelectedKeys,new He),[t.defaultSelectedKeys]),[g,m]=nr(h,p,t.onSelectionChange),f=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,y]=d.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&y("replace");let C=d.useRef(i);return d.useEffect(()=>{i!==C.current&&(y(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(S){a.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,P="first"){s.current=S,u.current=P,c(S)},selectedKeys:g,setSelectedKeys(S){(r||!Zp(S,g))&&m(S)},disabledKeys:f,disabledBehavior:o}}function zl(t,e){return t?t==="all"?"all":new He(t):e}class Jp{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Vi(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Vi(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new He([n],n,n);else{let a=this.state.selectedKeys;var i;let l=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new He(a,l,n);var o;for(let s of this.getKeyRange(l,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,l))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Vi(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new He(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new He([n],n,n):new He;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new He;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&e.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=gp(Uc(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new He)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const Qp=d.createContext(null),wa=d.createContext(null),eg=d.createContext(null),ei=d.createContext(null),tg=d.createContext(null),ng=d.forwardRef(function(e,n){return[e,n]=ir(e,n,Qp),d.createElement(Mu,{content:d.createElement(Au,e)},r=>r.size>0&&d.createElement(rg,{props:e,collection:r,menuRef:n}))});function rg({props:t,collection:e,menuRef:n}){let{filterFn:r,collectionProps:i,collectionRef:o}=d.useContext(Hp)||{};n=$n(d.useMemo(()=>Eu(n,o!==void 0?o:null),[o,n]));let a=d.useMemo(()=>r?e.filter(r):e,[e,r]),l=Fp({...t,collection:a,children:void 0}),s=d.useContext(eg),{isVirtualized:u,CollectionRoot:c}=d.useContext(gi),{menuProps:h}=yp({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},l,n),p=yt({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{}});return d.createElement(Yu,null,d.createElement("div",{...Ve(t),...h,...p,ref:n,slot:t.slot||void 0,onScroll:t.onScroll},d.createElement(rr,{values:[[wa,l],[td,{elementType:"div"}],[zp,{name:"MenuSection",render:og}],[tg,{parentMenuRef:n}],[Fo,null],[ei,l.selectionManager]]},d.createElement(c,{collection:l.collection,persistedKeys:ed(l.selectionManager.focusedKey),scrollRef:n}))))}class ig extends Jp{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function og(t,e,n,r="react-aria-MenuSection"){var i,o;let a=d.useContext(wa),{CollectionBranch:l}=d.useContext(gi),[s,u]=l2();var c;let{headingProps:h,groupProps:p}=Sp({heading:u,"aria-label":(c=n.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=yt({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),m=d.useContext(ei),f=Xp(t),v=t.selectionMode!=null?new ig(m,f):m;return d.createElement("section",{...Ve(t),...p,...g,ref:e},d.createElement(rr,{values:[[Vp,{...h,ref:s}],[ei,v]]},d.createElement(l,{collection:a.collection,parent:n})))}const Fo=d.createContext(null),ag=fa("item",function(e,n,r){var i;[e,n]=ir(e,n,Fo);let o=(i=sa(Fo))===null||i===void 0?void 0:i.id,a=d.useContext(wa),l=$n(n),s=d.useContext(ei),{menuItemProps:u,labelProps:c,descriptionProps:h,keyboardShortcutProps:p,...g}=bp({...e,id:o,key:r.key,selectionManager:s},a,l),{isFocusVisible:m,focusProps:f}=hi(),{hoverProps:v,isHovered:y}=Ca({isDisabled:g.isDisabled}),C=yt({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:y,isFocusVisible:m,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div";return d.createElement(S,{...ye(u,f,v),...C,ref:l,"data-disabled":g.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},d.createElement(rr,{values:[[Tp,{slots:{label:c,description:h}}],[Yp,p]]},C.children))}),lg=d.createContext(null),vi=d.createContext(null),bn=d.createContext(null),sg=d.forwardRef(function(e,n){[e,n]=ir(e,n,vi);let{children:r,orientation:i="horizontal"}=e;return r=d.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),d.createElement(Mu,{content:r},o=>d.createElement(ug,{props:e,collection:o,tabsRef:n}))});function ug({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Ap({...t,collection:n,children:void 0}),{focusProps:o,isFocused:a,isFocusVisible:l}=hi({within:!0}),s=d.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:l}),[r,a,l]),u=yt({...t,defaultClassName:"react-aria-Tabs",values:s});return d.createElement("div",{...Ve(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":l||void 0,"data-disabled":i.isDisabled||void 0},d.createElement(rr,{values:[[vi,t],[bn,i]]},u.children))}const cg=d.forwardRef(function(e,n){return d.useContext(bn)?d.createElement(dg,{props:e,forwardedRef:n}):d.createElement(Au,e)});function dg({props:t,forwardedRef:e}){let n=d.useContext(bn),{CollectionRoot:r}=d.useContext(gi),{orientation:i="horizontal",keyboardActivation:o="automatic"}=sa(vi),a=$n(e),{tabListProps:l}=xp({...t,orientation:i,keyboardActivation:o},n,a),s=yt({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Ve(t);return delete u.id,d.createElement("div",{...u,...l,ref:a,...s,"data-orientation":i||void 0},d.createElement(r,{collection:n.collection,persistedKeys:ed(n.selectionManager.focusedKey)}))}const fg=fa("item",(t,e,n)=>{let r=d.useContext(bn),i=$n(e),{tabProps:o,isSelected:a,isDisabled:l,isPressed:s}=wp({key:n.key,...t},r,i),{focusProps:u,isFocused:c,isFocusVisible:h}=hi(),{hoverProps:p,isHovered:g}=Ca({isDisabled:l,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),m=yt({...t,id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:c,isFocusVisible:h,isPressed:s,isHovered:g}}),f=n.props.href?"a":"div";return d.createElement(f,{...ye(o,u,p,m),ref:i,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":h||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0})}),hg=d2(function(e,n){const r=d.useContext(bn);let i=$n(n),{tabPanelProps:o}=Ep(e,r,i),{focusProps:a,isFocused:l,isFocusVisible:s}=hi(),u=r.selectedKey===e.id,c=yt({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:l,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let h=Ve(e);delete h.id;let p=u?ye(h,o,a,c):c;return d.createElement("div",{...p,ref:i,"data-focused":l||void 0,"data-focus-visible":s||void 0,inert:u?void 0:"true","data-inert":u?void 0:"true"},d.createElement(rr,{values:[[vi,null],[bn,null]]},d.createElement(gi.Provider,{value:Qc},c.children)))}),nd=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o})=>{const a=d.useId(),l=u=>{n==null||n(u)},s=d.useRef(null);return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"c__dropdown-menu-trigger",ref:s,id:a,onClick:u=>{u.stopPropagation(),u.preventDefault()},children:r}),w.jsx(Gp,{triggerRef:s,style:{marginTop:"0px"},isOpen:e,onOpenChange:l,children:w.jsx(ng,{className:"c__dropdown-menu","aria-labelledby":a,children:t.map(u=>w.jsxs(d.Fragment,{children:[w.jsxs(ag,{className:"c__dropdown-menu-item","aria-label":u.label,onAction:()=>{var c;u.value&&(o==null||o(u.value)),(c=u.callback)==null||c.call(u),l(!1)},isDisabled:u.isDisabled,children:[u.icon,w.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":u.label,children:u.label}),(u.isChecked||u.value&&i.includes(u.value))&&w.jsx("span",{className:"material-icons checked",children:"check"})]},u.label),u.showSeparator&&w.jsx(Bp,{})]},u.label))})})]})},rd=()=>{const[t,e]=d.useState(!1);return{isOpen:t,setIsOpen:e}},Vl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",pg="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",gg=()=>{const{t}=_t.useCunningham();return w.jsxs("footer",{className:"c__footer",children:[w.jsx("div",{className:"c__footer__stripe"}),w.jsxs("div",{className:"c__footer__content",children:[w.jsxs("div",{className:"c__footer__content__top",children:[w.jsx("div",{children:w.jsx("div",{className:"c__footer__content__top__logo",children:w.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:pg})})}),w.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>w.jsxs("a",{href:n,target:"_blank",children:[w.jsx("span",{children:e}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Vl})]},e))})]}),w.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>w.jsx("a",{href:n,children:w.jsx("span",{children:e})},e))}),w.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",w.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[w.jsx("span",{children:t("components.footer.license")}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Vl})]})]})]})]})},vg=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>w.jsx("div",{className:"c__hero",children:w.jsxs("div",{className:"c__hero__display",children:[w.jsxs("div",{className:"c__hero__display__captions",children:[t,w.jsx("h2",{children:r}),w.jsx("span",{children:i}),e||w.jsx(Su,{})]}),w.jsx("img",{src:n,alt:""})]})}),mg=({children:t})=>w.jsx("div",{className:"c__home-gutter",children:t}),id=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:id(t[i],r.slice(1),n)},yg={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},bg={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},Sg={label:"Les services de La Suite numérique"},Cg={homepageLinkTitle:"Accueil - {serviceName}"},wg={newWindow:"{title} - nouvelle fenêtre"},Eg={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},od={email:yg,footer:bg,gaufre:Sg,header:Cg,links:wg,proconnect:Eg},$g=d.createContext(od);function xg(){const t=d.useContext($g)||od;return{t:function(e,n={}){const r=id(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(a=>{typeof n[a]!="string"&&i.push(a)}),!i.length)return r.replace(/{(\w+)}/g,(a,l)=>n[l]);const o=r.split(/{(.*?)}/);return w.jsx(w.Fragment,{children:o.map((a,l)=>a in n?w.jsx(d.Fragment,{children:n[a]},l):a)})}return r}}}const Tg={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Pg=({variant:t})=>{const{t:e}=xg(),n=t?Tg[t]:"";return w.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},Dg=()=>w.jsxs(w.Fragment,{children:[w.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),w.jsx(Pg,{variant:"small"})]}),ad=({languages:t})=>{const{isOpen:e,setIsOpen:n}=rd();return w.jsx(nd,{options:t,isOpen:e,onOpenChange:n,children:w.jsxs(_t.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[w.jsx("span",{className:"material-icons",children:"translate"}),w.jsx("span",{className:"c__language-picker__label",children:"Français"}),w.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},ld=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=_t.useCunningham();return w.jsxs("div",{className:"c__header",children:[w.jsx("div",{className:"c__header__toggle-menu",children:w.jsx(_t.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:w.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),w.jsx("div",{className:"c__header__left",children:t}),w.jsxs("div",{className:"c__header__right",children:[n&&w.jsx("div",{className:"c__header__right__language-picker",children:w.jsx(ad,{languages:n})}),e]})]})},jo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"var(--c--theme--colors--greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"var(--c--theme--colors--greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"var(--c--theme--colors--greyscale-500)"},"primary-text":{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"var(--c--theme--colors--greyscale-100)","background--color-active":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","color-hover":"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"var(--c--theme--colors--greyscale-000)","background--disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","border--color":"var(--c--theme--colors--greyscale-300)","border--color-hover":"var(--c--theme--colors--greyscale-300)","border--color-disabled":"var(--c--theme--colors--greyscale-300)",disabled:"var(--c--theme--colors--greyscale-400)"},tertiary:{"background--color":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"var(--c--theme--colors--primary-100)","background--color-hover":"var(--c--theme--colors--primary-300)","background--color-active":"var(--c--theme--colors--primary-300)","background--disabled":"var(--c--theme--colors--primary-050)",color:"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--primary-300)"},"tertiary-text":{"background--color-hover":"var(--c--theme--colors--greyscale-100)","color-hover":"var(--c--theme--colors--primary-text)",color:"var(--c--theme--colors--primary-600)"},danger:{"color-hover":"white","background--color":"var(--c--theme--colors--danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"var(--c--theme--colors--danger-600)","background--color-disabled":"var(--c--theme--colors--greyscale-100)","color-disabled":"var(--c--theme--colors--greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"var(--c--theme--colors--primary-800)","background-color--hover":"var(--c--theme--colors--greyscale-100)","border--color-disabled":"var(--c--theme--colors--greyscale-200)","border--color":"var(--c--theme--colors--primary-800)","background--disabled":"var(--c--theme--colors--greyscale-200)","background--enable":"var(--c--theme--colors--primary-800)","check--disabled":"var(--c--theme--colors--greyscale-300)","check--enable":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-text)","label--color":"var(--c--theme--colors--greyscale-1000)","label--size":"var(--c--theme--font--sizes--sm)","label--weight":"500","text--color":"var(--c--theme--colors--greyscale-600)","text--size":"var(--c--theme--font--sizes--s)","text--weight":"400","text--color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"var(--c--theme--colors--primary-800)","background-color":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)","accent-color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-switch":{"border--color-disabled":"var(--c--theme--colors--greyscale-300)","border--color":"var(--c--theme--colors--primary-800)","handle-background-color":"white","handle-background-color--disabled":"var(--c--theme--colors--greyscale-000)","rail-background-color--disabled":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"}}}}},ar=()=>{const[t,e]=d.useState(window.innerWidth),n=parseInt(jo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(jo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};d.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,a=t<=r,l=t>r;return{isMobile:o,isTablet:a,isDesktop:l}},sd=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=ar();return n?w.jsx("div",{className:"c__left-panel",children:t}):w.jsx("div",{className:ot("c__left-panel__mobile",{open:e}),children:t})},{createElement:Sn,createContext:Og,createRef:Y4,forwardRef:ud,useCallback:$e,useContext:cd,useEffect:Pt,useImperativeHandle:dd,useLayoutEffect:_g,useMemo:Ig,useRef:xe,useState:pn}=T,Bl=T[`useId${Math.random()}`.slice(0,5)],kg=_g,mi=Og(null);mi.displayName="PanelGroupContext";const Dt=kg,Ng=typeof Bl=="function"?Bl:()=>null;let Rg=0;function Ea(t=null){const e=Ng(),n=xe(t||e||null);return n.current===null&&(n.current=""+Rg++),t??n.current}function fd({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:l,minSize:s,onCollapse:u,onExpand:c,onResize:h,order:p,style:g,tagName:m="div",...f}){const v=cd(mi);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:x,isPanelCollapsed:O,reevaluatePanelConstraints:D,registerPanel:b,resizePanel:k,unregisterPanel:V}=v,R=Ea(a),H=xe({callbacks:{onCollapse:u,onExpand:c,onResize:h},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:l,minSize:s},id:R,idIsFromProps:a!==void 0,order:p});xe({didLogMissingDefaultSizeWarning:!1}),Dt(()=>{const{callbacks:I,constraints:j}=H.current,W={...j};H.current.id=R,H.current.idIsFromProps=a!==void 0,H.current.order=p,I.onCollapse=u,I.onExpand=c,I.onResize=h,j.collapsedSize=n,j.collapsible=r,j.defaultSize=i,j.maxSize=l,j.minSize=s,(W.collapsedSize!==j.collapsedSize||W.collapsible!==j.collapsible||W.maxSize!==j.maxSize||W.minSize!==j.minSize)&&D(H.current,W)}),Dt(()=>{const I=H.current;return b(I),()=>{V(I)}},[p,R,b,V]),dd(o,()=>({collapse:()=>{y(H.current)},expand:I=>{C(H.current,I)},getId(){return R},getSize(){return S(H.current)},isCollapsed(){return O(H.current)},isExpanded(){return!O(H.current)},resize:I=>{k(H.current,I)}}),[y,C,S,O,R,k]);const E=P(H.current,i);return Sn(m,{...f,children:t,className:e,id:a,style:{...E,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":R,"data-panel-size":parseFloat(""+E.flexGrow).toFixed(1)})}const Ho=ud((t,e)=>Sn(fd,{...t,forwardedRef:e}));fd.displayName="Panel";Ho.displayName="forwardRef(Panel)";let zo=null,Tt=null;function Lg(t,e){if(e){const n=(e&md)!==0,r=(e&yd)!==0,i=(e&bd)!==0,o=(e&Sd)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Mg(){Tt!==null&&(document.head.removeChild(Tt),zo=null,Tt=null)}function Ui(t,e){const n=Lg(t,e);zo!==n&&(zo=n,Tt===null&&(Tt=document.createElement("style"),document.head.appendChild(Tt)),Tt.innerHTML=`*{cursor: ${n}!important;}`)}function hd(t){return t.type==="keydown"}function pd(t){return t.type.startsWith("pointer")}function gd(t){return t.type.startsWith("mouse")}function yi(t){if(pd(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(gd(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Ag(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Kg(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Fg(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Gl(t),b:Gl(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;ee(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ul(Wl(n.a)),b:Ul(Wl(n.b))};if(i.a===i.b){const o=r.childNodes,a={a:n.a.at(-1),b:n.b.at(-1)};let l=o.length;for(;l--;){const s=o[l];if(s===a.a)return 1;if(s===a.b)return-1}}return Math.sign(i.a-i.b)}const jg=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Hg(t){var e;const n=getComputedStyle((e=vd(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function zg(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Hg(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||jg.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Wl(t){let e=t.length;for(;e--;){const n=t[e];if(ee(n,"Missing node"),zg(n))return n}return null}function Ul(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Gl(t){const e=[];for(;t;)e.push(t),t=vd(t);return e}function vd(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const md=1,yd=2,bd=4,Sd=8,Vg=Ag()==="coarse";let ze=[],gn=!1,pt=new Map,bi=new Map;const Zn=new Set;function Bg(t,e,n,r,i){var o;const{ownerDocument:a}=e,l={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=pt.get(a))!==null&&o!==void 0?o:0;return pt.set(a,s+1),Zn.add(l),ti(),function(){var c;bi.delete(t),Zn.delete(l);const h=(c=pt.get(a))!==null&&c!==void 0?c:1;if(pt.set(a,h-1),ti(),h===1&&pt.delete(a),ze.includes(l)){const p=ze.indexOf(l);p>=0&&ze.splice(p,1),xa(),i("up",!0,null)}}}function ql(t){const{target:e}=t,{x:n,y:r}=yi(t);gn=!0,$a({target:e,x:n,y:r}),ti(),ze.length>0&&(ni("down",t),t.preventDefault(),t.stopPropagation())}function Nn(t){const{x:e,y:n}=yi(t);if(gn&&t.buttons===0&&(gn=!1,ni("up",t)),!gn){const{target:r}=t;$a({target:r,x:e,y:n})}ni("move",t),xa(),ze.length>0&&t.preventDefault()}function Ut(t){const{target:e}=t,{x:n,y:r}=yi(t);bi.clear(),gn=!1,ze.length>0&&t.preventDefault(),ni("up",t),$a({target:e,x:n,y:r}),xa(),ti()}function $a({target:t,x:e,y:n}){ze.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Zn.forEach(i=>{const{element:o,hitAreaMargins:a}=i,l=o.getBoundingClientRect(),{bottom:s,left:u,right:c,top:h}=l,p=Vg?a.coarse:a.fine;if(e>=u-p&&e<=c+p&&n>=h-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Fg(r,o)>0){let m=r,f=!1;for(;m&&!m.contains(o);){if(Kg(m.getBoundingClientRect(),l)){f=!0;break}m=m.parentElement}if(f)return}ze.push(i)}})}function Gi(t,e){bi.set(t,e)}function xa(){let t=!1,e=!1;ze.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;bi.forEach(r=>{n|=r}),t&&e?Ui("intersection",n):t?Ui("horizontal",n):e?Ui("vertical",n):Mg()}function ti(){pt.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Ut),n.removeEventListener("pointerdown",ql),n.removeEventListener("pointerleave",Nn),n.removeEventListener("pointermove",Nn)}),window.removeEventListener("pointerup",Ut),window.removeEventListener("pointercancel",Ut),Zn.size>0&&(gn?(ze.length>0&&pt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Ut),n.addEventListener("pointerleave",Nn),n.addEventListener("pointermove",Nn))}),window.addEventListener("pointerup",Ut),window.addEventListener("pointercancel",Ut)):pt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",ql,{capture:!0}),n.addEventListener("pointermove",Nn))}))}function ni(t,e){Zn.forEach(n=>{const{setResizeHandlerState:r}=n,i=ze.includes(n);r(t,i,e)})}function Wg(){const[t,e]=pn(0);return $e(()=>e(n=>n+1),[])}function ee(t,e){if(!t)throw console.error(e),Error(e)}const Ta=10;function Lt(t,e,n=Ta){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function nt(t,e,n=Ta){return Lt(t,e,n)===0}function Te(t,e,n){return Lt(t,e,n)===0}function Ug(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!Te(i,o,n))return!1}return!0}function dn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];ee(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:l=0}=r;if(Lt(n,l)<0)if(o){const s=(i+l)/2;Lt(n,s)<0?n=i:n=l}else n=l;return n=Math.min(a,n),n=parseFloat(n.toFixed(Ta)),n}function Fn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Te(t,0))return e;const a=[...e],[l,s]=r;ee(l!=null,"Invalid first pivot index"),ee(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const h=t<0?s:l,p=n[h];ee(p,`Panel constraints not found for index ${h}`);const{collapsedSize:g=0,collapsible:m,minSize:f=0}=p;if(m){const v=e[h];if(ee(v!=null,`Previous layout not found for panel index ${h}`),Te(v,g)){const y=f-v;Lt(y,Math.abs(t))>0&&(t=t<0?0-y:y)}}}{const h=t<0?l:s,p=n[h];ee(p,`No panel constraints found for index ${h}`);const{collapsedSize:g=0,collapsible:m,minSize:f=0}=p;if(m){const v=e[h];if(ee(v!=null,`Previous layout not found for panel index ${h}`),Te(v,f)){const y=v-g;Lt(y,Math.abs(t))>0&&(t=t<0?0-y:y)}}}}{const h=t<0?1:-1;let p=t<0?s:l,g=0;for(;;){const f=e[p];ee(f!=null,`Previous layout not found for panel index ${p}`);const y=dn({panelConstraints:n,panelIndex:p,size:100})-f;if(g+=y,p+=h,p<0||p>=n.length)break}const m=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-m:m}{let p=t<0?l:s;for(;p>=0&&p<n.length;){const g=Math.abs(t)-Math.abs(u),m=e[p];ee(m!=null,`Previous layout not found for panel index ${p}`);const f=m-g,v=dn({panelConstraints:n,panelIndex:p,size:f});if(!Te(m,v)&&(u+=m-v,a[p]=v,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(Ug(i,a))return i;{const h=t<0?s:l,p=e[h];ee(p!=null,`Previous layout not found for panel index ${h}`);const g=p+u,m=dn({panelConstraints:n,panelIndex:h,size:g});if(a[h]=m,!Te(m,g)){let f=g-m,y=t<0?s:l;for(;y>=0&&y<n.length;){const C=a[y];ee(C!=null,`Previous layout not found for panel index ${y}`);const S=C+f,P=dn({panelConstraints:n,panelIndex:y,size:S});if(Te(C,P)||(f-=P-C,a[y]=P),Te(f,0))break;t>0?y--:y++}}}const c=a.reduce((h,p)=>p+h,0);return Te(c,100)?a:i}function Gg({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,a=0;const l=n[0];ee(l!=null,"No pivot index found"),e.forEach((h,p)=>{const{constraints:g}=h,{maxSize:m=100,minSize:f=0}=g;p===l?(r=f,i=m):(o+=f,a+=m)});const s=Math.min(i,100-o),u=Math.max(r,100-a),c=t[l];return{valueMax:s,valueMin:u,valueNow:c}}function Xn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Cd(t,e,n=document){const i=Xn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function wd(t,e,n){const r=Cd(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Ed(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Si(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function qg(t,e,n,r=document){var i,o,a,l;const s=Si(e,r),u=Xn(t,r),c=s?u.indexOf(s):-1,h=(i=(o=n[c])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(a=(l=n[c+1])===null||l===void 0?void 0:l.id)!==null&&a!==void 0?a:null;return[h,p]}function Yg({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){xe({didWarnAboutMissingResizeHandle:!1}),Dt(()=>{if(!o)return;const l=Xn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:c,valueNow:h}=Gg({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=l[s];if(p!=null){const g=i[s];ee(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(c)),p.setAttribute("aria-valuenow",h!=null?""+Math.round(h):"")}}return()=>{l.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Pt(()=>{if(!o)return;const l=e.current;ee(l,"Eager values not found");const{panelDataArray:s}=l,u=Ed(n,o);ee(u!=null,`No group found for id "${n}"`);const c=Xn(n,o);ee(c,`No resize handles found for group id "${n}"`);const h=c.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");ee(g,"Resize handle element has no handle id attribute");const[m,f]=qg(n,g,s,o);if(m==null||f==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const C=s.findIndex(S=>S.id===m);if(C>=0){const S=s[C];ee(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:x=0,collapsible:O,minSize:D=0}=S.constraints;if(P!=null&&O){const b=Fn({delta:Te(P,x)?D-x:x-P,initialLayout:r,panelConstraints:s.map(k=>k.constraints),pivotIndices:wd(n,g,o),prevLayout:r,trigger:"keyboard"});r!==b&&a(b)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{h.forEach(p=>p())}},[o,t,e,n,r,i,a])}function Yl(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function $d(t,e){const n=t==="horizontal",{x:r,y:i}=yi(e);return n?r:i}function Zg(t,e,n,r,i){const o=n==="horizontal",a=Si(e,i);ee(a,`No resize handle element found for id "${e}"`);const l=a.getAttribute("data-panel-group-id");ee(l,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=$d(n,t),c=Ed(l,i);ee(c,`No group element found for id "${l}"`);const h=c.getBoundingClientRect(),p=o?h.width:h.height;return(u-s)/p*100}function Xg(t,e,n,r,i,o){if(hd(t)){const a=n==="horizontal";let l=0;t.shiftKey?l=100:i!=null?l=i:l=10;let s=0;switch(t.key){case"ArrowDown":s=a?0:l;break;case"ArrowLeft":s=a?-l:0;break;case"ArrowRight":s=a?l:0;break;case"ArrowUp":s=a?0:-l;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Zg(t,e,n,r,o)}function Jg({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const a=n[o];ee(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;l!=null&&(r++,e[o]=l,i-=l)}for(let o=0;o<t.length;o++){const a=n[o];ee(a,`Panel constraints not found for index ${o}`);const{defaultSize:l}=a;if(l!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function Gt(t,e,n){e.forEach((r,i)=>{const o=t[i];ee(o,`Panel data not found for index ${i}`);const{callbacks:a,constraints:l,id:s}=o,{collapsedSize:u=0,collapsible:c}=l,h=n[s];if(h==null||r!==h){n[s]=r;const{onCollapse:p,onExpand:g,onResize:m}=a;m&&m(r,h),c&&(p||g)&&(g&&(h==null||nt(h,u))&&!nt(r,u)&&g(),p&&(h==null||!nt(h,u))&&nt(r,u)&&p())}})}function Cr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Qg({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let l;return a==null?l=t!=null?t.toPrecision(o):"1":r.length===1?l="1":l=a.toPrecision(o),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function e5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Zl(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function xd(t){return`react-resizable-panels:${t}`}function Td(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Pd(t,e){try{const n=xd(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function t5(t,e,n){var r,i;const o=(r=Pd(t,n))!==null&&r!==void 0?r:{},a=Td(e);return(i=o[a])!==null&&i!==void 0?i:null}function n5(t,e,n,r,i){var o;const a=xd(t),l=Td(e),s=(o=Pd(t,i))!==null&&o!==void 0?o:{};s[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(s))}catch(u){console.error(u)}}function Xl({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,a)=>o+a,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Te(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const a=n[o];ee(a!=null,`No layout data found for index ${o}`);const l=100/r*a;n[o]=l}let i=0;for(let o=0;o<e.length;o++){const a=n[o];ee(a!=null,`No layout data found for index ${o}`);const l=dn({panelConstraints:e,panelIndex:o,size:a});a!=l&&(i+=a-l,n[o]=l)}if(!Te(i,0))for(let o=0;o<e.length;o++){const a=n[o];ee(a!=null,`No layout data found for index ${o}`);const l=a+i,s=dn({panelConstraints:e,panelIndex:o,size:l});if(a!==s&&(i-=s-a,n[o]=s,Te(i,0)))break}return n}const r5=100,jn={getItem:t=>(Zl(jn),jn.getItem(t)),setItem:(t,e)=>{Zl(jn),jn.setItem(t,e)}},Jl={};function Dd({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:l=null,storage:s=jn,style:u,tagName:c="div",...h}){const p=Ea(o),g=xe(null),[m,f]=pn(null),[v,y]=pn([]),C=Wg(),S=xe({}),P=xe(new Map),x=xe(0),O=xe({autoSaveId:t,direction:r,dragState:m,id:p,keyboardResizeBy:l,onLayout:a,storage:s}),D=xe({layout:v,panelDataArray:[],panelDataArrayChanged:!1});xe({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),dd(i,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:N}=D.current;return N},setLayout:N=>{const{onLayout:K}=O.current,{layout:A,panelDataArray:z}=D.current,B=Xl({layout:N,panelConstraints:z.map(F=>F.constraints)});Yl(A,B)||(y(B),D.current.layout=B,K&&K(B),Gt(z,B,S.current))}}),[]),Dt(()=>{O.current.autoSaveId=t,O.current.direction=r,O.current.dragState=m,O.current.id=p,O.current.onLayout=a,O.current.storage=s}),Yg({committedValuesRef:O,eagerValuesRef:D,groupId:p,layout:v,panelDataArray:D.current.panelDataArray,setLayout:y,panelGroupElement:g.current}),Pt(()=>{const{panelDataArray:N}=D.current;if(t){if(v.length===0||v.length!==N.length)return;let K=Jl[t];K==null&&(K=e5(n5,r5),Jl[t]=K);const A=[...N],z=new Map(P.current);K(t,A,z,v,s)}},[t,v,s]),Pt(()=>{});const b=$e(N=>{const{onLayout:K}=O.current,{layout:A,panelDataArray:z}=D.current;if(N.constraints.collapsible){const B=z.map(de=>de.constraints),{collapsedSize:F=0,panelSize:X,pivotIndices:te}=St(z,N,A);if(ee(X!=null,`Panel size not found for panel "${N.id}"`),!nt(X,F)){P.current.set(N.id,X);const ce=ln(z,N)===z.length-1?X-F:F-X,oe=Fn({delta:ce,initialLayout:A,panelConstraints:B,pivotIndices:te,prevLayout:A,trigger:"imperative-api"});Cr(A,oe)||(y(oe),D.current.layout=oe,K&&K(oe),Gt(z,oe,S.current))}}},[]),k=$e((N,K)=>{const{onLayout:A}=O.current,{layout:z,panelDataArray:B}=D.current;if(N.constraints.collapsible){const F=B.map(ge=>ge.constraints),{collapsedSize:X=0,panelSize:te=0,minSize:de=0,pivotIndices:ce}=St(B,N,z),oe=K??de;if(nt(te,X)){const ge=P.current.get(N.id),re=ge!=null&&ge>=oe?ge:oe,lt=ln(B,N)===B.length-1?te-re:re-te,ve=Fn({delta:lt,initialLayout:z,panelConstraints:F,pivotIndices:ce,prevLayout:z,trigger:"imperative-api"});Cr(z,ve)||(y(ve),D.current.layout=ve,A&&A(ve),Gt(B,ve,S.current))}}},[]),V=$e(N=>{const{layout:K,panelDataArray:A}=D.current,{panelSize:z}=St(A,N,K);return ee(z!=null,`Panel size not found for panel "${N.id}"`),z},[]),R=$e((N,K)=>{const{panelDataArray:A}=D.current,z=ln(A,N);return Qg({defaultSize:K,dragState:m,layout:v,panelData:A,panelIndex:z})},[m,v]),H=$e(N=>{const{layout:K,panelDataArray:A}=D.current,{collapsedSize:z=0,collapsible:B,panelSize:F}=St(A,N,K);return ee(F!=null,`Panel size not found for panel "${N.id}"`),B===!0&&nt(F,z)},[]),E=$e(N=>{const{layout:K,panelDataArray:A}=D.current,{collapsedSize:z=0,collapsible:B,panelSize:F}=St(A,N,K);return ee(F!=null,`Panel size not found for panel "${N.id}"`),!B||Lt(F,z)>0},[]),I=$e(N=>{const{panelDataArray:K}=D.current;K.push(N),K.sort((A,z)=>{const B=A.order,F=z.order;return B==null&&F==null?0:B==null?-1:F==null?1:B-F}),D.current.panelDataArrayChanged=!0,C()},[C]);Dt(()=>{if(D.current.panelDataArrayChanged){D.current.panelDataArrayChanged=!1;const{autoSaveId:N,onLayout:K,storage:A}=O.current,{layout:z,panelDataArray:B}=D.current;let F=null;if(N){const te=t5(N,B,A);te&&(P.current=new Map(Object.entries(te.expandToSizes)),F=te.layout)}F==null&&(F=Jg({panelDataArray:B}));const X=Xl({layout:F,panelConstraints:B.map(te=>te.constraints)});Yl(z,X)||(y(X),D.current.layout=X,K&&K(X),Gt(B,X,S.current))}}),Dt(()=>{const N=D.current;return()=>{N.layout=[]}},[]);const j=$e(N=>{let K=!1;const A=g.current;return A&&window.getComputedStyle(A,null).getPropertyValue("direction")==="rtl"&&(K=!0),function(B){B.preventDefault();const F=g.current;if(!F)return()=>null;const{direction:X,dragState:te,id:de,keyboardResizeBy:ce,onLayout:oe}=O.current,{layout:ge,panelDataArray:re}=D.current,{initialLayout:We}=te??{},lt=wd(de,N,F);let ve=Xg(B,N,X,te,ce,F);const Pn=X==="horizontal";Pn&&K&&(ve=-ve);const sr=re.map(q=>q.constraints),$=Fn({delta:ve,initialLayout:We??ge,panelConstraints:sr,pivotIndices:lt,prevLayout:ge,trigger:hd(B)?"keyboard":"mouse-or-touch"}),U=!Cr(ge,$);(pd(B)||gd(B))&&x.current!=ve&&(x.current=ve,!U&&ve!==0?Pn?Gi(N,ve<0?md:yd):Gi(N,ve<0?bd:Sd):Gi(N,0)),U&&(y($),D.current.layout=$,oe&&oe($),Gt(re,$,S.current))}},[]),W=$e((N,K)=>{const{onLayout:A}=O.current,{layout:z,panelDataArray:B}=D.current,F=B.map(ge=>ge.constraints),{panelSize:X,pivotIndices:te}=St(B,N,z);ee(X!=null,`Panel size not found for panel "${N.id}"`);const ce=ln(B,N)===B.length-1?X-K:K-X,oe=Fn({delta:ce,initialLayout:z,panelConstraints:F,pivotIndices:te,prevLayout:z,trigger:"imperative-api"});Cr(z,oe)||(y(oe),D.current.layout=oe,A&&A(oe),Gt(B,oe,S.current))},[]),Z=$e((N,K)=>{const{layout:A,panelDataArray:z}=D.current,{collapsedSize:B=0,collapsible:F}=K,{collapsedSize:X=0,collapsible:te,maxSize:de=100,minSize:ce=0}=N.constraints,{panelSize:oe}=St(z,N,A);oe!=null&&(F&&te&&nt(oe,B)?nt(B,X)||W(N,X):oe<ce?W(N,ce):oe>de&&W(N,de))},[W]),_=$e((N,K)=>{const{direction:A}=O.current,{layout:z}=D.current;if(!g.current)return;const B=Si(N,g.current);ee(B,`Drag handle element not found for id "${N}"`);const F=$d(A,K);f({dragHandleId:N,dragHandleRect:B.getBoundingClientRect(),initialCursorPosition:F,initialLayout:z})},[]),M=$e(()=>{f(null)},[]),G=$e(N=>{const{panelDataArray:K}=D.current,A=ln(K,N);A>=0&&(K.splice(A,1),delete S.current[N.id],D.current.panelDataArrayChanged=!0,C())},[C]),Y=Ig(()=>({collapsePanel:b,direction:r,dragState:m,expandPanel:k,getPanelSize:V,getPanelStyle:R,groupId:p,isPanelCollapsed:H,isPanelExpanded:E,reevaluatePanelConstraints:Z,registerPanel:I,registerResizeHandle:j,resizePanel:W,startDragging:_,stopDragging:M,unregisterPanel:G,panelGroupElement:g.current}),[b,m,r,k,V,R,p,H,E,Z,I,j,W,_,M,G]),L={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Sn(mi.Provider,{value:Y},Sn(c,{...h,children:e,className:n,id:o,ref:g,style:{...L,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const Od=ud((t,e)=>Sn(Dd,{...t,forwardedRef:e}));Dd.displayName="PanelGroup";Od.displayName="forwardRef(PanelGroup)";function ln(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function St(t,e,n){const r=ln(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],a=n[r];return{...e.constraints,panelSize:a,pivotIndices:o}}function i5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Pt(()=>{if(t||n==null||r==null)return;const i=Si(e,r);if(i==null)return;const o=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),n(a);break}case"F6":{a.preventDefault();const l=i.getAttribute("data-panel-group-id");ee(l,`No group element found for id "${l}"`);const s=Xn(l,r),u=Cd(l,e,r);ee(u!==null,`No resize element found for id "${e}"`);const c=a.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[c].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function _d({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:a,onFocus:l,style:s={},tabIndex:u=0,tagName:c="div",...h}){var p,g;const m=xe(null),f=xe({onDragging:a});Pt(()=>{f.current.onDragging=a});const v=cd(mi);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:x,panelGroupElement:O}=v,D=Ea(i),[b,k]=pn("inactive"),[V,R]=pn(!1),[H,E]=pn(null),I=xe({state:b});Dt(()=>{I.current.state=b}),Pt(()=>{if(n)E(null);else{const _=S(D);E(()=>_)}},[n,D,S]);const j=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,W=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Pt(()=>{if(n||H==null)return;const _=m.current;return ee(_,"Element ref not attached"),Bg(D,_,y,{coarse:j,fine:W},(G,Y,L)=>{if(Y)switch(G){case"down":{k("drag"),ee(L,'Expected event to be defined for "down" action'),P(D,L);const{onDragging:N}=f.current;N&&N(!0);break}case"move":{const{state:N}=I.current;N!=="drag"&&k("hover"),ee(L,'Expected event to be defined for "move" action'),H(L);break}case"up":{k("hover"),x();const{onDragging:N}=f.current;N&&N(!1);break}}else k("inactive")})},[j,y,n,W,S,D,H,P,x]),i5({disabled:n,handleId:D,resizeHandler:H,panelGroupElement:O}),Sn(c,{...h,children:t,className:e,id:i,onBlur:()=>{R(!1),o==null||o()},onFocus:()=>{R(!0),l==null||l()},ref:m,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":y,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":b==="drag"?"pointer":V?"keyboard":void 0,"data-resize-handle-state":b,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":D})}_d.displayName="PanelResizeHandle";const o5=({children:t,isOpen:e})=>{const{isDesktop:n}=ar();return n?w.jsx("div",{className:ot("c__right-panel",{open:e}),children:t}):w.jsx("div",{className:ot("c__right-panel__mobile",{open:e}),children:t})},a5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:a,enableResize:l=!1,rightPanelIsOpen:s=!1})=>{const[u,c]=d.useState(!1),{isDesktop:h}=ar(),p=d.useRef(null),[g,m]=d.useState(wr(300,h)),[f,v]=d.useState(wr(450,h)),y=()=>{c(!u)};d.useEffect(()=>{const P=()=>{const x=Math.round(wr(300,h)),O=Math.round(Math.min(wr(450,h),40));m(h?x:0),v(l?O:x)};return P(),window.addEventListener("resize",()=>{P()}),()=>{window.removeEventListener("resize",P)}},[h,l]);const C=h?!n:!0,S=h?!n:u;return w.jsxs("div",{className:"c__main-layout",children:[w.jsx("div",{className:"c__main-layout__header",children:w.jsx(ld,{onTogglePanel:y,isPanelOpen:u,rightIcon:o,leftIcon:t,languages:a})}),w.jsx("div",{className:"c__main-layout__content",children:w.jsxs(Od,{autoSaveId:"persistance",direction:"horizontal",children:[C&&w.jsxs(w.Fragment,{children:[w.jsx(Ho,{ref:p,order:0,defaultSize:g,minSize:g,maxSize:f,children:w.jsx(sd,{isOpen:S,children:r})}),h&&w.jsx(_d,{className:"bg-greyscale-200",style:{width:"1px"}})]}),w.jsx(Ho,{order:1,children:w.jsxs("div",{className:"c__main-layout__content__center",children:[w.jsx("div",{className:"c__main-layout__content__center__children",children:e}),w.jsx(o5,{isOpen:s,children:i})]})})]})})]})},wr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},l5=52,Pa=({size:t="sm"})=>w.jsx("div",{className:["c__spinner",t].join(" ")}),Id=({children:t,text:e,...n})=>w.jsxs("div",{className:"suite__label__container",children:[w.jsx("label",{...n,children:t}),e&&w.jsx("span",{className:"suite__label__container__description",children:e})]}),s5=({label:t,text:e,labelSide:n="right",children:r})=>w.jsxs("div",{className:ot("c__with-label",{[n]:!0}),children:[w.jsx(Id,{children:t,text:e}),r]});var Ql=1,u5=.9,c5=.8,d5=.17,qi=.1,Yi=.999,f5=.9999,h5=.99,p5=/[\\\/_+.#"@\[\(\{&]/,g5=/[\\\/_+.#"@\[\(\{&]/g,v5=/[\s-]/,kd=/[\s-]/g;function Vo(t,e,n,r,i,o,a){if(o===e.length)return i===t.length?Ql:h5;var l=`${i},${o}`;if(a[l]!==void 0)return a[l];for(var s=r.charAt(o),u=n.indexOf(s,i),c=0,h,p,g,m;u>=0;)h=Vo(t,e,n,r,u+1,o+1,a),h>c&&(u===i?h*=Ql:p5.test(t.charAt(u-1))?(h*=c5,g=t.slice(i,u-1).match(g5),g&&i>0&&(h*=Math.pow(Yi,g.length))):v5.test(t.charAt(u-1))?(h*=u5,m=t.slice(i,u-1).match(kd),m&&i>0&&(h*=Math.pow(Yi,m.length))):(h*=d5,i>0&&(h*=Math.pow(Yi,u-i))),t.charAt(u)!==e.charAt(o)&&(h*=f5)),(h<qi&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=Vo(t,e,n,r,u+1,o+2,a),p*qi>h&&(h=p*qi)),h>c&&(c=h),u=n.indexOf(s,u+1);return a[l]=c,c}function es(t){return t.toLowerCase().replace(kd," ")}function m5(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Vo(t,e,es(t),es(e),0,0,{})}function mt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function ts(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Nd(...t){return e=>{let n=!1;const r=t.map(i=>{const o=ts(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():ts(t[i],null)}}}}function zt(...t){return T.useCallback(Nd(...t),t)}function y5(t,e){const n=T.createContext(e),r=o=>{const{children:a,...l}=o,s=T.useMemo(()=>l,Object.values(l));return w.jsx(n.Provider,{value:s,children:a})};r.displayName=t+"Provider";function i(o){const a=T.useContext(n);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function b5(t,e=[]){let n=[];function r(o,a){const l=T.createContext(a),s=n.length;n=[...n,a];const u=h=>{var y;const{scope:p,children:g,...m}=h,f=((y=p==null?void 0:p[t])==null?void 0:y[s])||l,v=T.useMemo(()=>m,Object.values(m));return w.jsx(f.Provider,{value:v,children:g})};u.displayName=o+"Provider";function c(h,p){var f;const g=((f=p==null?void 0:p[t])==null?void 0:f[s])||l,m=T.useContext(g);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(a=>T.createContext(a));return function(l){const s=(l==null?void 0:l[t])||o;return T.useMemo(()=>({[`__scope${t}`]:{...l,[t]:s}}),[l,s])}};return i.scopeName=t,[r,S5(i,...e)]}function S5(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const h=s(o)[`__scope${u}`];return{...l,...h}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}var ri=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},C5=T.useId||(()=>{}),w5=0;function it(t){const[e,n]=T.useState(C5());return ri(()=>{n(r=>r??String(w5++))},[t]),e?`radix-${e}`:""}function Mt(t){const e=T.useRef(t);return T.useEffect(()=>{e.current=t}),T.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function E5({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=$5({defaultProp:e,onChange:n}),o=t!==void 0,a=o?t:r,l=Mt(n),s=T.useCallback(u=>{if(o){const h=typeof u=="function"?u(t):u;h!==t&&l(h)}else i(u)},[o,t,i,l]);return[a,s]}function $5({defaultProp:t,onChange:e}){const n=T.useState(t),[r]=n,i=T.useRef(r),o=Mt(e);return T.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Da=T.forwardRef((t,e)=>{const{children:n,...r}=t,i=T.Children.toArray(n),o=i.find(T5);if(o){const a=o.props.children,l=i.map(s=>s===o?T.Children.count(a)>1?T.Children.only(null):T.isValidElement(a)?a.props.children:null:s);return w.jsx(Bo,{...r,ref:e,children:T.isValidElement(a)?T.cloneElement(a,void 0,l):null})}return w.jsx(Bo,{...r,ref:e,children:n})});Da.displayName="Slot";var Bo=T.forwardRef((t,e)=>{const{children:n,...r}=t;if(T.isValidElement(n)){const i=D5(n),o=P5(r,n.props);return n.type!==T.Fragment&&(o.ref=e?Nd(e,i):i),T.cloneElement(n,o)}return T.Children.count(n)>1?T.Children.only(null):null});Bo.displayName="SlotClone";var x5=({children:t})=>w.jsx(w.Fragment,{children:t});function T5(t){return T.isValidElement(t)&&t.type===x5}function P5(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{o(...l),i(...l)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function D5(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var O5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],be=O5.reduce((t,e)=>{const n=T.forwardRef((r,i)=>{const{asChild:o,...a}=r,l=o?Da:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function _5(t,e){t&&c0.flushSync(()=>t.dispatchEvent(e))}function I5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var k5="DismissableLayer",Wo="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",R5="dismissableLayer.focusOutside",ns,Rd=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ld=T.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...s}=t,u=T.useContext(Rd),[c,h]=T.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=T.useState({}),m=zt(e,D=>h(D)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),C=c?f.indexOf(c):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,P=C>=y,x=A5(D=>{const b=D.target,k=[...u.branches].some(V=>V.contains(b));!P||k||(i==null||i(D),a==null||a(D),D.defaultPrevented||l==null||l())},p),O=K5(D=>{const b=D.target;[...u.branches].some(V=>V.contains(b))||(o==null||o(D),a==null||a(D),D.defaultPrevented||l==null||l())},p);return I5(D=>{C===u.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))},p),T.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),rs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ns)}},[c,p,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),rs())},[c,u]),T.useEffect(()=>{const D=()=>g({});return document.addEventListener(Wo,D),()=>document.removeEventListener(Wo,D)},[]),w.jsx(be.div,{...s,ref:m,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:mt(t.onFocusCapture,O.onFocusCapture),onBlurCapture:mt(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:mt(t.onPointerDownCapture,x.onPointerDownCapture)})});Ld.displayName=k5;var L5="DismissableLayerBranch",M5=T.forwardRef((t,e)=>{const n=T.useContext(Rd),r=T.useRef(null),i=zt(e,r);return T.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),w.jsx(be.div,{...t,ref:i})});M5.displayName=L5;function A5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let s=function(){Md(N5,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function K5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t),r=T.useRef(!1);return T.useEffect(()=>{const i=o=>{o.target&&!r.current&&Md(R5,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function rs(){const t=new CustomEvent(Wo);document.dispatchEvent(t)}function Md(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?_5(i,o):i.dispatchEvent(o)}var Zi="focusScope.autoFocusOnMount",Xi="focusScope.autoFocusOnUnmount",is={bubbles:!1,cancelable:!0},F5="FocusScope",Ad=T.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=t,[l,s]=T.useState(null),u=Mt(i),c=Mt(o),h=T.useRef(null),p=zt(e,f=>s(f)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let f=function(S){if(g.paused||!l)return;const P=S.target;l.contains(P)?h.current=P:ct(h.current,{select:!0})},v=function(S){if(g.paused||!l)return;const P=S.relatedTarget;P!==null&&(l.contains(P)||ct(h.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const x of S)x.removedNodes.length>0&&ct(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const C=new MutationObserver(y);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),C.disconnect()}}},[r,l,g.paused]),T.useEffect(()=>{if(l){as.add(g);const f=document.activeElement;if(!l.contains(f)){const y=new CustomEvent(Zi,is);l.addEventListener(Zi,u),l.dispatchEvent(y),y.defaultPrevented||(j5(W5(Kd(l)),{select:!0}),document.activeElement===f&&ct(l))}return()=>{l.removeEventListener(Zi,u),setTimeout(()=>{const y=new CustomEvent(Xi,is);l.addEventListener(Xi,c),l.dispatchEvent(y),y.defaultPrevented||ct(f??document.body,{select:!0}),l.removeEventListener(Xi,c),as.remove(g)},0)}}},[l,u,c,g]);const m=T.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const C=f.currentTarget,[S,P]=H5(C);S&&P?!f.shiftKey&&y===P?(f.preventDefault(),n&&ct(S,{select:!0})):f.shiftKey&&y===S&&(f.preventDefault(),n&&ct(P,{select:!0})):y===C&&f.preventDefault()}},[n,r,g.paused]);return w.jsx(be.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})});Ad.displayName=F5;function j5(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ct(r,{select:e}),document.activeElement!==n)return}function H5(t){const e=Kd(t),n=os(e,t),r=os(e.reverse(),t);return[n,r]}function Kd(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function os(t,e){for(const n of t)if(!z5(n,{upTo:e}))return n}function z5(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function V5(t){return t instanceof HTMLInputElement&&"select"in t}function ct(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&V5(t)&&e&&t.select()}}var as=B5();function B5(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=ls(t,e),t.unshift(e)},remove(e){var n;t=ls(t,e),(n=t[0])==null||n.resume()}}}function ls(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function W5(t){return t.filter(e=>e.tagName!=="A")}var U5="Portal",Fd=T.forwardRef((t,e)=>{var l;const{container:n,...r}=t,[i,o]=T.useState(!1);ri(()=>o(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?Ht.createPortal(w.jsx(be.div,{...r,ref:e}),a):null});Fd.displayName=U5;function G5(t,e){return T.useReducer((n,r)=>e[n][r]??n,t)}var Ci=t=>{const{present:e,children:n}=t,r=q5(e),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),o=zt(r.ref,Y5(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:o}):null};Ci.displayName="Presence";function q5(t){const[e,n]=T.useState(),r=T.useRef({}),i=T.useRef(t),o=T.useRef("none"),a=t?"mounted":"unmounted",[l,s]=G5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const u=Er(r.current);o.current=l==="mounted"?u:"none"},[l]),ri(()=>{const u=r.current,c=i.current;if(c!==t){const p=o.current,g=Er(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ri(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,h=g=>{const f=Er(r.current).includes(g.animationName);if(g.target===e&&f&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=Er(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:T.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Er(t){return(t==null?void 0:t.animationName)||"none"}function Y5(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Ji=0;function Z5(){T.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ss()),document.body.insertAdjacentElement("beforeend",t[1]??ss()),Ji++,()=>{Ji===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ji--}},[])}function ss(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Nr="right-scroll-bar-position",Rr="width-before-scroll-bar",X5="with-scroll-bars-hidden",J5="--removed-body-scroll-bar-size";function Qi(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Q5(t,e){var n=d.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var ev=typeof window<"u"?T.useLayoutEffect:T.useEffect,us=new WeakMap;function tv(t,e){var n=Q5(null,function(r){return t.forEach(function(i){return Qi(i,r)})});return ev(function(){var r=us.get(n);if(r){var i=new Set(r),o=new Set(t),a=n.current;i.forEach(function(l){o.has(l)||Qi(l,null)}),o.forEach(function(l){i.has(l)||Qi(l,a)})}us.set(n,t)},[t]),n}function nv(t){return t}function rv(t,e){e===void 0&&(e=nv);var n=[],r=!1,i={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]:t},useMedium:function(o){var a=e(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var s=function(){var c=a;a=[],c.forEach(o)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),n}}}};return i}function iv(t){t===void 0&&(t={});var e=rv(null);return e.options=Ge({async:!0,ssr:!1},t),e}var jd=function(t){var e=t.sideCar,n=lc(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Ge({},n))};jd.isSideCarExport=!0;function ov(t,e){return t.useMedium(e),jd}var Hd=iv(),eo=function(){},wi=T.forwardRef(function(t,e){var n=T.useRef(null),r=T.useState({onScrollCapture:eo,onWheelCapture:eo,onTouchMoveCapture:eo}),i=r[0],o=r[1],a=t.forwardProps,l=t.children,s=t.className,u=t.removeScrollBar,c=t.enabled,h=t.shards,p=t.sideCar,g=t.noIsolation,m=t.inert,f=t.allowPinchZoom,v=t.as,y=v===void 0?"div":v,C=t.gapMode,S=lc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=p,x=tv([n,e]),O=Ge(Ge({},S),i);return T.createElement(T.Fragment,null,c&&T.createElement(P,{sideCar:Hd,removeScrollBar:u,shards:h,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:C}),a?T.cloneElement(T.Children.only(l),Ge(Ge({},O),{ref:x})):T.createElement(y,Ge({},O,{className:s,ref:x}),l))});wi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wi.classNames={fullWidth:Rr,zeroRight:Nr};var av=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lv(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=av();return e&&t.setAttribute("nonce",e),t}function sv(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function uv(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var cv=function(){var t=0,e=null;return{add:function(n){t==0&&(e=lv())&&(sv(e,n),uv(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},dv=function(){var t=cv();return function(e,n){T.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},zd=function(){var t=dv(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},fv={left:0,top:0,right:0,gap:0},to=function(t){return parseInt(t||"",10)||0},hv=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[to(n),to(r),to(i)]},pv=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return fv;var e=hv(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},gv=zd(),vn="data-scroll-locked",vv=function(t,e,n,r){var i=t.left,o=t.top,a=t.right,l=t.gap;return n===void 0&&(n="margin"),`
|
|
48
|
-
.`.concat(
|
|
47
|
+
*/var ws;function Ng(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){function t(g,$){return g===$&&(g!==0||1/g===1/$)||g!==g&&$!==$}function e(g,$){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=$();if(!f){var b=$();o(p,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}b=l({inst:{value:p,getSnapshot:$}});var m=b[0].inst,C=b[1];return s(function(){m.value=p,m.getSnapshot=$,n(m)&&C({inst:m})},[g,p,$]),a(function(){return n(m)&&C({inst:m}),g(function(){n(m)&&C({inst:m})})},[g]),u(p),p}function n(g){var $=g.getSnapshot;g=g.value;try{var p=$();return!o(g,p)}catch{return!0}}function r(g,$){return $()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Do.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Do}var Cs;function Rg(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?Vr.exports=Mg():Vr.exports=Ng()),Vr.exports}var Ca=Rg();const Dd=c.createContext(!1),Dr=c.createContext(null);function eo(t){if(c.useContext(Dr))return t.content;let{collection:n,document:r}=jg(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(_g,null,c.createElement(Dr.Provider,{value:r},t.content)),c.createElement(Ag,{render:t.children,collection:n}))}function Ag({collection:t,render:e}){return e(t)}function Kg(t,e,n){let r=un(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return Ca.useSyncExternalStore(t,o)}const Fg=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Kg;function jg(t){let[e]=c.useState(()=>new Ig((t==null?void 0:t())||new Sa)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Fg(n,r,i);return Lg(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Pl=c.createContext(null);function Hg(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Pl);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?c.createElement(Pl.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function to(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{if(!c.useContext(Dd)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Hg(t,i,o,"children"in i?i.children:null,null,a=>c.createElement(n,{node:a}))});return r.displayName=e.name,r}function zg(t){return Td({...t,addIdAndValue:!0})}const Es=c.createContext(null);function Ea(t){let e=c.useContext(Es),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=zg({...t,idScope:r,dependencies:n});return c.useContext(Dr)&&(i=c.createElement(Bg,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Es.Provider,{value:e},i)}function Bg({children:t}){let e=c.useContext(Dr),n=c.useMemo(()=>c.createElement(Dr.Provider,{value:null},c.createElement(Dd.Provider,{value:!0},t)),[t]);return un()?c.createElement(Pl.Provider,{value:e},n):Nt.createPortal(n,e)}const Id=c.createContext({}),Vg=wa(function(e,n){[e,n]=mt(e,n,Id);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),Oe=typeof document<"u"?c.useLayoutEffect:()=>{};function Ug(t){const e=c.useRef(null);return Oe(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}let xs=new Map;function Wg(t,e){if(t===e)return t;let n=xs.get(t);if(n)return n.forEach(i=>i(e)),e;let r=xs.get(e);return r?(r.forEach(i=>i(t)),t):e}function Gg(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const $e=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},It=t=>t&&"window"in t&&t.window===t?t:$e(t).defaultView||window;function Ps(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Gg(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=Wg(o,l):e[i]=l!==void 0?l:o}}return e}function Ts(t){if(qg())t.focus({preventScroll:!0});else{let e=Yg(t);t.focus(),Xg(e)}}let Ur=null;function qg(){if(Ur==null){Ur=!1;try{document.createElement("div").focus({get preventScroll(){return Ur=!0,!0}})}catch{}}return Ur}function Yg(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Xg(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Od(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function Zg(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function xa(t){let e=null;return()=>(e==null&&(e=t()),e)}const Jg=xa(function(){return Zg(/^Mac/i)}),Qg=xa(function(){return Od(/Chrome/i)}),_d=xa(function(){return Od(/Android/i)});let On=new Map,Tl=new Set;function Ds(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=On.get(r.target);i||(i=new Set,On.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=On.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),On.delete(r.target)),On.size===0)){for(let o of Tl)o();Tl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ds():document.addEventListener("DOMContentLoaded",Ds));function ev(t){requestAnimationFrame(()=>{On.size===0?t():Tl.add(t)})}function tv(t,e){Oe(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function nv(t){return t.mozInputSource===0&&t.isTrusted?!0:_d()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function rv(t,e){return e.get?e.get.call(t):e.value}function kd(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Ld(t,e){var n=kd(t,e,"get");return rv(t,n)}function iv(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Md(t,e,n){iv(t,e),e.set(t,n)}function ov(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Oi(t,e,n){var r=kd(t,e,"set");return ov(t,r,n),n}let lv=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function Nd(t){let e=c.useRef({isFocused:!1,observer:null});Oe(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ug(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new lv("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Rd(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Nd(o),a=c.useCallback(s=>{const u=$e(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Qn=null,Dl=new Set,wr=new Map,Zt=!1,Il=!1;const av={Tab:!0,Escape:!0};function Pa(t,e){for(let n of Dl)n(t,e)}function sv(t){return!(t.metaKey||!Jg()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function _i(t){Zt=!0,sv(t)&&(Qn="keyboard",Pa("keyboard",t))}function Ae(t){Qn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Zt=!0,Pa("pointer",t))}function Ad(t){nv(t)&&(Zt=!0,Qn="virtual")}function Kd(t){t.target===window||t.target===document||(!Zt&&!Il&&(Qn="virtual",Pa("virtual",t)),Zt=!1,Il=!1)}function Fd(){Zt=!1,Il=!0}function Ol(t){if(typeof window>"u"||wr.get(It(t)))return;const e=It(t),n=$e(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Zt=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Ad,!0),e.addEventListener("focus",Kd,!0),e.addEventListener("blur",Fd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ae,!0),n.addEventListener("pointermove",Ae,!0),n.addEventListener("pointerup",Ae,!0)):(n.addEventListener("mousedown",Ae,!0),n.addEventListener("mousemove",Ae,!0),n.addEventListener("mouseup",Ae,!0)),e.addEventListener("beforeunload",()=>{jd(t)},{once:!0}),wr.set(e,{focus:r})}const jd=(t,e)=>{const n=It(t),r=$e(t);e&&r.removeEventListener("DOMContentLoaded",e),wr.has(n)&&(n.HTMLElement.prototype.focus=wr.get(n).focus,r.removeEventListener("keydown",_i,!0),r.removeEventListener("keyup",_i,!0),r.removeEventListener("click",Ad,!0),n.removeEventListener("focus",Kd,!0),n.removeEventListener("blur",Fd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ae,!0),r.removeEventListener("pointermove",Ae,!0),r.removeEventListener("pointerup",Ae,!0)):(r.removeEventListener("mousedown",Ae,!0),r.removeEventListener("mousemove",Ae,!0),r.removeEventListener("mouseup",Ae,!0)),wr.delete(n))};function uv(t){const e=$e(t);let n;return e.readyState!=="loading"?Ol(t):(n=()=>{Ol(t)},e.addEventListener("DOMContentLoaded",n)),()=>jd(t,n)}typeof document<"u"&&uv();function Hd(){return Qn!=="pointer"}function zd(){return Qn}const cv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dv(t,e,n){var r;const i=typeof window<"u"?It(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?It(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?It(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?It(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof i&&!cv.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof l&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof a&&!av[n.key])}function fv(t,e,n){Ol(),c.useEffect(()=>{let r=(i,o)=>{dv(!!(n!=null&&n.isTextInput),i,o)&&t(Hd())};return Dl.add(r),()=>{Dl.delete(r)}},e)}function hv(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Nd(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}function Is(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function pv(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Is(t.onKeyDown),onKeyUp:Is(t.onKeyUp)}}}function kt(t){const e=$e(t);if(zd()==="virtual"){let n=e.activeElement;ev(()=>{e.activeElement===n&&t.isConnected&&Ts(t)})}else Ts(t)}function gv(t){const e=It(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function vv(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Bd(t,e){return t.nodeName!=="#comment"&&gv(t)&&vv(t,e)&&(!t.parentElement||Bd(t.parentElement,t))}const Os=c.createContext(null),_l="react-aria-focus-scope-restore";let le=null;function Ta(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(Os)||{},u=c.useMemo(()=>new Ll({scopeRef:a}),[a]);Oe(()=>{let v=s||he.root;if(he.getTreeNode(v.scopeRef)&&le&&!ki(le,v.scopeRef)){let g=he.getTreeNode(le);g&&(v=g)}v.addChild(u),he.addNode(u)},[u,s]),Oe(()=>{let v=he.getTreeNode(a);v&&(v.contain=!!n)},[n]),Oe(()=>{var v;let g=(v=o.current)===null||v===void 0?void 0:v.nextSibling,$=[],p=b=>b.stopPropagation();for(;g&&g!==l.current;)$.push(g),g.addEventListener(_l,p),g=g.nextSibling;return a.current=$,()=>{for(let b of $)b.removeEventListener(_l,p)}},[e]),Cv(a,r,n),$v(a,n),Ev(a,r,n),wv(a,i),c.useEffect(()=>{const v=$e(a.current?a.current[0]:void 0).activeElement;let g=null;if(Ve(v,a.current)){for(let $ of he.traverse())$.scopeRef&&Ve(v,$.scopeRef.current)&&(g=$);g===he.getTreeNode(a)&&(le=g.scopeRef)}},[a]),Oe(()=>()=>{var v,g,$;let p=($=(g=he.getTreeNode(a))===null||g===void 0||(v=g.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&$!==void 0?$:null;(a===le||ki(a,le))&&(!p||he.getTreeNode(p))&&(le=p),he.removeTreeNode(a)},[a]);let d=c.useMemo(()=>mv(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(Os.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function mv(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||$e(n[0]).activeElement,s=n[0].previousElementSibling,u=Bt(n),d=Ye(u,{tabbable:i,accept:l},n);d.currentNode=Ve(a,n)?a:s;let f=d.nextNode();return!f&&o&&(d.currentNode=s,f=d.nextNode()),f&&ft(f,!0),f},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||$e(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Bt(n),d=Ye(u,{tabbable:i,accept:l},n);d.currentNode=Ve(a,n)?a:s;let f=d.previousNode();return!f&&o&&(d.currentNode=s,f=d.previousNode()),f&&ft(f,!0),f},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Bt(n),l=Ye(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ft(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Bt(n),l=Ye(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ft(a,!0),a}}}const Da=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],bv=Da.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Da.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const yv=Da.join(':not([hidden]):not([tabindex="-1"]),');function Bt(t){return t[0].parentElement}function pr(t){let e=he.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function $v(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);Oe(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=$e(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!pr(t)||u.isComposing)return;let d=o.activeElement,f=t.current;if(!f||!Ve(d,f))return;let v=Bt(f),g=Ye(v,{tabbable:!0},f);if(!d)return;g.currentNode=d;let $=u.shiftKey?g.previousNode():g.nextNode();$||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,$=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),$&&ft($,!0)},a=u=>{(!le||ki(le,t))&&Ve(u.target,t.current)?(le=t,n.current=u.target):pr(t)&&!Ot(u.target,t)?n.current?n.current.focus():le&&le.current&&kl(le.current):pr(t)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=zd();if(!((d==="virtual"||d===null)&&_d()&&Qg())&&o.activeElement&&pr(t)&&!Ot(o.activeElement,t))if(le=t,o.body.contains(u.target)){var v;n.current=u.target,(v=n.current)===null||v===void 0||v.focus()}else le.current&&kl(le.current)})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),Oe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Vd(t){return Ot(t)}function Ve(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function Ot(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of he.traverse(he.getTreeNode(e)))if(n&&Ve(t,n.current))return!0;return!1}function Sv(t){return Ot(t,le)}function ki(t,e){var n;let r=(n=he.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ft(t,e=!1){if(t!=null&&!e)try{kt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ud(t,e=!0){let n=t[0].previousElementSibling,r=Bt(t),i=Ye(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Bt(t),i=Ye(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function kl(t,e=!0){ft(Ud(t,e))}function wv(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){le=t;const r=$e(t.current?t.current[0]:void 0);!Ve(r.activeElement,le.current)&&t.current&&kl(t.current)}n.current=!1},[t])}function Cv(t,e,n){Oe(()=>{if(e||n)return;let r=t.current;const i=$e(r?r[0]:void 0);let o=l=>{let a=l.target;Ve(a,t.current)?le=t:Vd(a)||(le=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function _s(t){let e=he.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ev(t,e,n){const r=c.useRef(typeof document<"u"?$e(t.current?t.current[0]:void 0).activeElement:null);Oe(()=>{let i=t.current;const o=$e(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!le||ki(le,t))&&Ve(o.activeElement,t.current)&&(le=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),Oe(()=>{const i=$e(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!pr(t)||l.isComposing)return;let a=i.activeElement;if(!Ot(a,t)||!_s(t))return;let s=he.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=Ye(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!Ot(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(Ot(f,t));l.preventDefault(),l.stopPropagation(),f?ft(f,!0):Vd(u)?ft(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),Oe(()=>{const i=$e(t.current?t.current[0]:void 0);if(!e)return;let o=he.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=he.getTreeNode(t);if(!a)return;let s=a.nodeToRestore;if(e&&s&&(i.activeElement&&Ot(i.activeElement,t)||i.activeElement===i.body&&_s(t))){let u=he.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=u.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ks(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&he.getTreeNode(d.scopeRef)){let f=Ud(d.scopeRef.current,!0);ks(f);return}d=d.parent}}})}}}},[t,e])}function ks(t){t.dispatchEvent(new CustomEvent(_l,{bubbles:!0,cancelable:!0}))&&ft(t)}function Ye(t,e,n){let r=e!=null&&e.tabbable?yv:bv,i=$e(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(e==null||(l=e.from)===null||l===void 0)&&l.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Bd(o)&&(!n||Ve(o,n))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class Ia{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ll({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Ia;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ll({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ll{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let he=new Ia;function cn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Hd()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(g=>{i.current.isFocused=g,l(g),u()},[u]);fv(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Rd({isDisabled:r,onFocusChange:d}),{focusWithinProps:v}=hv({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?v:f}}let xv=c.createContext(null);function Pv(t){let e=c.useContext(xv)||{};tv(e,t);let{ref:n,...r}=e;return r}function Tv(t,e){let{focusProps:n}=Rd(t),{keyboardProps:r}=pv(t),i=Ps(n,r),o=Pv(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);return c.useEffect(()=>{a.current&&e.current&&kt(e.current),a.current=!1},[e]),{focusableProps:Ps({...i,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},l)}}function Dv(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return Oe(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ye(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}let Nn="default",Ml="",pi=new WeakMap;function Ls(t){if(Xi()){if(Nn==="default"){const e=He(t);Ml=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Nn="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(pi.set(t,t.style.userSelect),t.style.userSelect="none")}function Wr(t){if(Xi()){if(Nn!=="disabled")return;Nn="restoring",setTimeout(()=>{vg(()=>{if(Nn==="restoring"){const e=He(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Ml||""),Ml="",Nn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&pi.has(t)){let e=pi.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),pi.delete(t)}}const Oa=c.createContext({register:()=>{}});Oa.displayName="PressResponderContext";function Iv(t){let e=c.useContext(Oa);if(e){let{register:n,...r}=e;t=ae(r,t),n()}return bg(e,t.ref),t}var Gr=new WeakMap;let qr=class{continuePropagation(){Oi(this,Gr,!1)}get shouldStopPropagation(){return Ld(this,Gr)}constructor(e,n,r,i){Md(this,Gr,{writable:!0,value:void 0}),Oi(this,Gr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}};const Ms=Symbol("linkClicked");function no(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:l,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...v}=Iv(t),[g,$]=c.useState(!1),p=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:m}=Sd(),C=ye((h,L)=>{let A=p.current;if(l||A.didFirePressStart)return!1;let P=!0;if(A.isTriggeringEvent=!0,r){let F=new qr("pressstart",L,h);r(F),P=F.shouldStopPropagation}return n&&n(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,$(!0),P}),S=ye((h,L,A=!0)=>{let P=p.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let F=!0;if(i){let y=new qr("pressend",L,h);i(y),F=y.shouldStopPropagation}if(n&&n(!1),$(!1),e&&A&&!l){let y=new qr("press",L,h);e(y),F&&(F=y.shouldStopPropagation)}return P.isTriggeringEvent=!1,F}),D=ye((h,L)=>{let A=p.current;if(l)return!1;if(o){A.isTriggeringEvent=!0;let P=new qr("pressup",L,h);return o(P),A.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),x=ye(h=>{let L=p.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&S(lt(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,m(),d||Wr(L.target))}),T=ye(h=>{u&&x(h)}),I=c.useMemo(()=>{let h=p.current,L={onKeyDown(P){if(Io(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var F;Rs(P.target,P.key)&&P.preventDefault();let y=!0;if(!h.isPressed&&!P.repeat){h.target=P.currentTarget,h.isPressed=!0,y=C(P,"keyboard");let E=P.currentTarget,K=B=>{Io(B,E)&&!B.repeat&&E.contains(B.target)&&h.target&&D(lt(h.target,B),"keyboard")};b(He(P.currentTarget),"keyup",Un(K,A),!0)}y&&P.stopPropagation(),P.metaKey&&Yt()&&((F=h.metaKeyEvents)===null||F===void 0||F.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!h.isTriggeringEvent&&!Xt.isOpening){let F=!0;if(l&&P.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||El(P.nativeEvent))){!l&&!s&&zt(P.currentTarget);let y=C(P,"virtual"),E=D(P,"virtual"),K=S(P,"virtual");F=y&&E&&K}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,F&&P.stopPropagation()}}},A=P=>{var F;if(h.isPressed&&h.target&&Io(P,h.target)){var y;Rs(P.target,P.key)&&P.preventDefault();let K=P.target;S(lt(h.target,P),"keyboard",h.target.contains(K)),m(),P.key!=="Enter"&&_a(h.target)&&h.target.contains(K)&&!P[Ms]&&(P[Ms]=!0,Xt(h.target,P,!1)),h.isPressed=!1,(y=h.metaKeyEvents)===null||y===void 0||y.delete(P.key)}else if(P.key==="Meta"&&(!((F=h.metaKeyEvents)===null||F===void 0)&&F.size)){var E;let K=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let B of K.values())(E=h.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(wg(E.nativeEvent)){h.pointerType="virtual";return}_o(E.currentTarget)&&E.preventDefault(),h.pointerType=E.pointerType;let K=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=E.pointerId,h.target=E.currentTarget,!l&&!s&&zt(E.currentTarget),d||Ls(h.target),K=C(E,h.pointerType);let B=E.target;"releasePointerCapture"in B&&B.releasePointerCapture(E.pointerId),b(He(E.currentTarget),"pointerup",P,!1),b(He(E.currentTarget),"pointercancel",y,!1)}K&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(_o(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||h.pointerType==="virtual"||E.button===0&&D(E,h.pointerType||E.pointerType)},L.onPointerEnter=E=>{E.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,C(lt(h.target,E),h.pointerType))},L.onPointerLeave=E=>{E.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(lt(h.target,E),h.pointerType,!1),T(E))};let P=E=>{E.pointerId===h.activePointerId&&h.isPressed&&E.button===0&&h.target&&(h.target.contains(E.target)&&h.pointerType!=null?S(lt(h.target,E),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(lt(h.target,E),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,m(),d||Wr(h.target),"ontouchend"in h.target&&E.pointerType!=="mouse"&&b(h.target,"touchend",F,{once:!0}))},F=E=>{Wd(E.currentTarget)&&E.preventDefault()},y=E=>{x(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}else{L.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(_o(y.currentTarget)&&y.preventDefault(),h.ignoreEmulatedMouseEvents){y.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=y.currentTarget,h.pointerType=El(y.nativeEvent)?"virtual":"mouse",!l&&!s&&zt(y.currentTarget),C(y,h.pointerType)&&y.stopPropagation(),b(He(y.currentTarget),"mouseup",P,!1)},L.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,E=C(y,h.pointerType)),E&&y.stopPropagation()},L.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,E=S(y,h.pointerType,!1),T(y)),E&&y.stopPropagation()},L.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!h.ignoreEmulatedMouseEvents&&y.button===0&&D(y,h.pointerType||"mouse")};let P=y=>{if(y.button===0){if(h.isPressed=!1,m(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Oo(y,h.target)&&h.pointerType!=null?S(lt(h.target,y),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(lt(h.target,y),h.pointerType,!1),h.isOverTarget=!1}};L.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=Ov(y.nativeEvent);if(!E)return;h.activePointerId=E.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=y.currentTarget,h.pointerType="touch",!l&&!s&&zt(y.currentTarget),d||Ls(h.target),C(St(h.target,y),h.pointerType)&&y.stopPropagation(),b(Wn(y.currentTarget),"scroll",F,!0)},L.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=Ns(y.nativeEvent,h.activePointerId),K=!0;E&&Oo(E,y.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,K=C(St(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,K=S(St(h.target,y),h.pointerType,!1),T(St(h.target,y))),K&&y.stopPropagation()},L.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=Ns(y.nativeEvent,h.activePointerId),K=!0;E&&Oo(E,y.currentTarget)&&h.pointerType!=null?(D(St(h.target,y),h.pointerType),K=S(St(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(K=S(St(h.target,y),h.pointerType,!1)),K&&y.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Wr(h.target),m()},L.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),h.isPressed&&x(St(h.target,y)))};let F=y=>{h.isPressed&&y.target.contains(h.target)&&x({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=y=>{y.currentTarget.contains(y.target)&&x(y)}}return L},[b,l,s,m,d,x,T,S,C,D]);return c.useEffect(()=>()=>{var h;d||Wr((h=p.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||g,pressProps:ae(v,I)}}function _a(t){return t.tagName==="A"&&t.hasAttribute("href")}function Io(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Wn(i).HTMLInputElement&&!Gd(i,n)||i instanceof Wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&_a(i))&&n!=="Enter")}function Ov(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Ns(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function St(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function lt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function _v(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function kv(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Oo(t,e){let n=e.getBoundingClientRect(),r=_v(t);return kv(n,r)}function _o(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Wd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!_a(t)}function Rs(t,e){return t instanceof HTMLInputElement?!Gd(t,e):Wd(t)}const Lv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gd(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Lv.has(t.type)}function Mv({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Oa.Provider,{value:e},t)}let Nv=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function qd(t){let e=c.useRef({isFocused:!1,observer:null});pe(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ye(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new Nv("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Rv(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=qd(o),a=c.useCallback(s=>{const u=He(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let dn=null,Av=new Set,Cr=new Map,Jt=!1,Nl=!1;function ro(t,e){for(let n of Av)n(t,e)}function Kv(t){return!(t.metaKey||!Yt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Li(t){Jt=!0,Kv(t)&&(dn="keyboard",ro("keyboard",t))}function Ke(t){dn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Jt=!0,ro("pointer",t))}function Yd(t){El(t)&&(Jt=!0,dn="virtual")}function Xd(t){t.target===window||t.target===document||(!Jt&&!Nl&&(dn="virtual",ro("virtual",t)),Jt=!1,Nl=!1)}function Zd(){Jt=!1,Nl=!0}function As(t){if(typeof window>"u"||Cr.get(Wn(t)))return;const e=Wn(t),n=He(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Jt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Li,!0),n.addEventListener("keyup",Li,!0),n.addEventListener("click",Yd,!0),e.addEventListener("focus",Xd,!0),e.addEventListener("blur",Zd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ke,!0),n.addEventListener("pointermove",Ke,!0),n.addEventListener("pointerup",Ke,!0)):(n.addEventListener("mousedown",Ke,!0),n.addEventListener("mousemove",Ke,!0),n.addEventListener("mouseup",Ke,!0)),e.addEventListener("beforeunload",()=>{Jd(t)},{once:!0}),Cr.set(e,{focus:r})}const Jd=(t,e)=>{const n=Wn(t),r=He(t);e&&r.removeEventListener("DOMContentLoaded",e),Cr.has(n)&&(n.HTMLElement.prototype.focus=Cr.get(n).focus,r.removeEventListener("keydown",Li,!0),r.removeEventListener("keyup",Li,!0),r.removeEventListener("click",Yd,!0),n.removeEventListener("focus",Xd,!0),n.removeEventListener("blur",Zd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ke,!0),r.removeEventListener("pointermove",Ke,!0),r.removeEventListener("pointerup",Ke,!0)):(r.removeEventListener("mousedown",Ke,!0),r.removeEventListener("mousemove",Ke,!0),r.removeEventListener("mouseup",Ke,!0)),Cr.delete(n))};function Fv(t){const e=He(t);let n;return e.readyState!=="loading"?As(t):(n=()=>{As(t)},e.addEventListener("DOMContentLoaded",n)),()=>Jd(t,n)}typeof document<"u"&&Fv();function jv(){return dn!=="pointer"}function Ks(){return dn}function Qd(t){dn=t,ro(t,null)}function ef(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=qd(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}let Mi=!1,ko=0;function Rl(){Mi=!0,setTimeout(()=>{Mi=!1},50)}function Fs(t){t.pointerType==="touch"&&Rl()}function Hv(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Fs):document.addEventListener("touchend",Rl),ko++,()=>{ko--,!(ko>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Fs):document.removeEventListener("touchend",Rl))}}function Nr(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(Hv,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,$)=>{if(a.pointerType=$,i||$==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let p=g.currentTarget;a.target=p,e&&e({type:"hoverstart",target:p,pointerType:$}),n&&n(!0),l(!0)},f=(g,$)=>{if(a.pointerType="",a.target=null,$==="touch"||!a.isHovered)return;a.isHovered=!1;let p=g.currentTarget;r&&r({type:"hoverend",target:p,pointerType:$}),n&&n(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=g=>{Mi&&g.pointerType==="mouse"||d(g,g.pointerType)},v.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(v.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Mi&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:v,triggerHoverEnd:f}},[e,n,r,i,a]);return c.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:o}}function zv(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(s=>{n&&Yr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=ye(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=He(u);if(typeof PointerEvent<"u"){let f=v=>{s.isPointerDown&&Yr(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Yr(g,e)&&a(g),s.isPointerDown=!1},v=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Yr(g,e)&&a(g),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",v,!0)}}},[e,r,l,a])}function Yr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function js(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function Bv(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:js(t.onKeyDown),onKeyUp:js(t.onKeyUp)}}}const Vv=500;function tf(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Vv,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Sd(),{pressProps:d}=no({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),a.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...v,type:"longpress"}),a.current=void 0},o),v.pointerType==="touch")){let g=$=>{$.preventDefault()};s(v.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){a.current&&clearTimeout(a.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),f=Sg(i&&!e?l:void 0);return{longPressProps:ae(d,f)}}const Uv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Wv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Gv(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Uv.has(n.script)}let e=t.split("-")[0];return Wv.has(e)}const qv=Symbol.for("react-aria.i18n.locale");function nf(){let t=typeof window<"u"&&window[qv]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Gv(t)?"rtl":"ltr"}}let Al=nf(),gr=new Set;function Hs(){Al=nf();for(let t of gr)t(Al)}function Yv(){let t=un(),[e,n]=c.useState(Al);return c.useEffect(()=>(gr.size===0&&window.addEventListener("languagechange",Hs),gr.add(n),()=>{gr.delete(n),gr.size===0&&window.removeEventListener("languagechange",Hs)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Xv=c.createContext(null);function er(){let t=Yv();return c.useContext(Xv)||t}var tt=function(){return tt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},tt.apply(this,arguments)};function rf(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Zv(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Jv=Symbol.for("react-aria.i18n.locale"),Qv=Symbol.for("react-aria.i18n.strings");let vn;class io{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=e5(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Jv];if(vn===void 0){let i=window[Qv];if(!i)return null;vn={};for(let o in i)vn[o]=new io({[n]:i[o]},n)}let r=vn==null?void 0:vn[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function e5(t,e,n="en-US"){if(e[t])return e[t];let r=t5(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function t5(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const zs=new Map,Bs=new Map;class n5{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=zs.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),zs.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Bs.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Bs.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Vs=new WeakMap;function r5(t){let e=Vs.get(t);return e||(e=new io(t),Vs.set(t,e)),e}function i5(t,e){return e&&io.getGlobalDictionaryForPackage(e)||r5(t)}function of(t,e){let{locale:n}=er(),r=i5(t,e);return c.useMemo(()=>new n5(n,r),[n,r])}let Lo=new Map;function ka(t){let{locale:e}=er(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(e,t);return Lo.set(n,r),r}function o5(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:v,target:g,rel:$,type:p="button"}=t,b;n==="button"?b={type:p,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?v:void 0,target:n==="a"?g:void 0,type:n==="input"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:m,isPressed:C}=no({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:S}=Tv(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let D=ae(S,m,Se(t,{labelable:!0}));return{isPressed:C,buttonProps:ae(b,D,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:x=>{f&&(f(x),console.warn("onClick is deprecated, please use onPress"))}})}}const lf=7e3;let Qe=null;function Us(t,e="assertive",n=lf){Qe?Qe.announce(t,e,n):(Qe=new l5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qe.announce(t,e,n):setTimeout(()=>{Qe!=null&&Qe.isAttached()&&(Qe==null||Qe.announce(t,e,n))},100))}class l5{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=lf){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function a5(t,e,n){let{validationBehavior:r,focus:i}=t;pe(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(u5(n.current))}});let o=ye(()=>{e.resetValidation()}),l=ye(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&c5(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Qd("keyboard")}s.preventDefault()}),a=ye(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function s5(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function u5(t){return{isInvalid:!t.validity.valid,validationDetails:s5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function c5(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function d5(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Be(e);let l=Be(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Ji({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function f5(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=d5(t),a=Sr([!!e,!!n,r,i]),s=Sr([!!e,!!n,r,i]);return l=ae(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ws={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function af(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=ef({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Ws,...e}:Ws,[r]);return{visuallyHiddenProps:{...o,style:l}}}function h5(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=af(t);return c.createElement(n,ae(o,l),e)}const La=new WeakMap;function p5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function g5(t,e){let n=La.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${p5(e)}`}const pt=typeof document<"u"?c.useLayoutEffect:()=>{};function qe(t){const e=c.useRef(null);return pt(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function v5(t){let[e,n]=c.useState(t),r=c.useRef(null),i=qe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});pt(()=>{r.current&&i()});let o=qe(l=>{r.current=l(e),i()});return[e,o]}let m5=!!(typeof window<"u"&&window.document&&window.document.createElement),Pt=new Map;function Qt(t){let[e,n]=c.useState(t),r=c.useRef(null),i=gd(e),o=c.useCallback(l=>{r.current=l},[]);return m5&&(Pt.has(i)&&!Pt.get(i).includes(o)?Pt.set(i,[...Pt.get(i),o]):Pt.set(i,[o])),pt(()=>{let l=i;return()=>{Pt.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),i}function b5(t,e){if(t===e)return t;let n=Pt.get(t);if(n)return n.forEach(i=>i(e)),e;let r=Pt.get(e);return r?(r.forEach(i=>i(t)),t):e}function Gs(t=[]){let e=Qt(),[n,r]=v5(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return pt(i,[e,i,...t]),n}function Ma(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const nt=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Gn=t=>t&&"window"in t&&t.window===t?t:nt(t).defaultView||window;function Lt(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Ma(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=b5(o,l):e[i]=l!==void 0?l:o}}return e}const y5=new Set(["id"]),$5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),w5=/^(data-.*)$/;function sf(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(y5.has(l)||n&&$5.has(l)||r&&S5.has(l)||i!=null&&i.has(l)||w5.test(l))&&(o[l]=t[l]);return o}function Vt(t){if(C5())t.focus({preventScroll:!0});else{let e=E5(t);t.focus(),x5(e)}}let Xr=null;function C5(){if(Xr==null){Xr=!1;try{document.createElement("div").focus({get preventScroll(){return Xr=!0,!0}})}catch{}}return Xr}function E5(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function x5(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function oo(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function Na(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function bt(t){let e=null;return()=>(e==null&&(e=t()),e)}const Mt=bt(function(){return Na(/^Mac/i)}),P5=bt(function(){return Na(/^iPhone/i)}),uf=bt(function(){return Na(/^iPad/i)||Mt()&&navigator.maxTouchPoints>1}),Ra=bt(function(){return P5()||uf()}),T5=bt(function(){return Mt()||Ra()}),cf=bt(function(){return oo(/AppleWebKit/i)&&!D5()}),D5=bt(function(){return oo(/Chrome/i)}),df=bt(function(){return oo(/Android/i)}),I5=bt(function(){return oo(/Firefox/i)}),O5=c.createContext({isNative:!0,open:k5,useHref:t=>t});function Aa(){return c.useContext(O5)}function en(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;I5()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Mt()?o=!0:l=!0);let u=cf()&&Mt()&&!uf()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});en.isOpening=n,Vt(t),t.dispatchEvent(u),en.isOpening=!1}en.isOpening=!1;function _5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function k5(t,e){_5(t,n=>en(n,e))}function L5(t){let e=Aa();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let _n=new Map,Kl=new Set;function qs(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=_n.get(r.target);i||(i=new Set,_n.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=_n.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),_n.delete(r.target)),_n.size===0)){for(let o of Kl)o();Kl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qs():document.addEventListener("DOMContentLoaded",qs));function M5(t){requestAnimationFrame(()=>{_n.size===0?t():Kl.add(t)})}function ff(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function N5(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Qt(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Ys(t,e){const n=c.useRef(!0),r=c.useRef(null);pt(()=>(n.current=!0,()=>{n.current=!1}),[]),pt(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function R5(t,e){pt(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Fl(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function A5(t,e){const n=[];for(;t&&t!==document.documentElement;)Fl(t,e)&&n.push(t),t=t.parentElement;return n}let K5=0;const Mo=new Map;function F5(t){let[e,n]=c.useState();return pt(()=>{if(!t)return;let r=Mo.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${K5++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Mo.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Mo.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Zr(t,e,n,r){let i=qe(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function hf(t,e){let n=Xs(t,e,"left"),r=Xs(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:v,scrollPaddingLeft:g}=getComputedStyle(t),$=l+parseInt(u,10),p=a+parseInt(s,10),b=$+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(v,10)||0,D=parseInt(f,10)||0,x=parseInt(g,10)||0;n<=l+x?l=n-parseInt(u,10)-x:n+i>b-D&&(l+=n+i-b+D),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function Xs(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function Zs(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=A5(t);for(let u of s)hf(u,t)}else{var n;let{left:s,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(u-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function jl(t){return t.mozInputSource===0&&t.isTrusted?!0:df()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function j5(t){return!df()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const H5="react-aria-clear-focus",z5="react-aria-focus",pf="react-aria-update-activedescendant";function kn(t){return Mt()?t.metaKey:t.ctrlKey}let Rn="default",Hl="",gi=new WeakMap;function Js(t){if(Ra()){if(Rn==="default"){const e=nt(t);Hl=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Rn="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(gi.set(t,t.style.userSelect),t.style.userSelect="none")}function Jr(t){if(Ra()){if(Rn!=="disabled")return;Rn="restoring",setTimeout(()=>{M5(()=>{if(Rn==="restoring"){const e=nt(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Hl||""),Hl="",Rn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&gi.has(t)){let e=gi.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),gi.delete(t)}}const gf=c.createContext({register:()=>{}});gf.displayName="PressResponderContext";function B5(t){let e=c.useContext(gf);if(e){let{register:n,...r}=e;t=Lt(r,t),n()}return R5(e,t.ref),t}var Qr=new WeakMap;class ei{continuePropagation(){Oi(this,Qr,!1)}get shouldStopPropagation(){return Ld(this,Qr)}constructor(e,n,r,i){Md(this,Qr,{writable:!0,value:void 0}),Oi(this,Qr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const Qs=Symbol("linkClicked");function vf(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:l,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...v}=B5(t),[g,$]=c.useState(!1),p=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:m}=ff(),C=qe((h,L)=>{let A=p.current;if(l||A.didFirePressStart)return!1;let P=!0;if(A.isTriggeringEvent=!0,r){let F=new ei("pressstart",L,h);r(F),P=F.shouldStopPropagation}return n&&n(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,$(!0),P}),S=qe((h,L,A=!0)=>{let P=p.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let F=!0;if(i){let y=new ei("pressend",L,h);i(y),F=y.shouldStopPropagation}if(n&&n(!1),$(!1),e&&A&&!l){let y=new ei("press",L,h);e(y),F&&(F=y.shouldStopPropagation)}return P.isTriggeringEvent=!1,F}),D=qe((h,L)=>{let A=p.current;if(l)return!1;if(o){A.isTriggeringEvent=!0;let P=new ei("pressup",L,h);return o(P),A.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),x=qe(h=>{let L=p.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&S(at(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,m(),d||Jr(L.target))}),T=qe(h=>{u&&x(h)}),I=c.useMemo(()=>{let h=p.current,L={onKeyDown(P){if(No(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var F;tu(P.target,P.key)&&P.preventDefault();let y=!0;if(!h.isPressed&&!P.repeat){h.target=P.currentTarget,h.isPressed=!0,y=C(P,"keyboard");let E=P.currentTarget,K=B=>{No(B,E)&&!B.repeat&&E.contains(B.target)&&h.target&&D(at(h.target,B),"keyboard")};b(nt(P.currentTarget),"keyup",Ma(K,A),!0)}y&&P.stopPropagation(),P.metaKey&&Mt()&&((F=h.metaKeyEvents)===null||F===void 0||F.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!h.isTriggeringEvent&&!en.isOpening){let F=!0;if(l&&P.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||jl(P.nativeEvent))){!l&&!s&&Vt(P.currentTarget);let y=C(P,"virtual"),E=D(P,"virtual"),K=S(P,"virtual");F=y&&E&&K}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,F&&P.stopPropagation()}}},A=P=>{var F;if(h.isPressed&&h.target&&No(P,h.target)){var y;tu(P.target,P.key)&&P.preventDefault();let K=P.target;S(at(h.target,P),"keyboard",h.target.contains(K)),m(),P.key!=="Enter"&&Ka(h.target)&&h.target.contains(K)&&!P[Qs]&&(P[Qs]=!0,en(h.target,P,!1)),h.isPressed=!1,(y=h.metaKeyEvents)===null||y===void 0||y.delete(P.key)}else if(P.key==="Meta"&&(!((F=h.metaKeyEvents)===null||F===void 0)&&F.size)){var E;let K=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let B of K.values())(E=h.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(j5(E.nativeEvent)){h.pointerType="virtual";return}Ao(E.currentTarget)&&E.preventDefault(),h.pointerType=E.pointerType;let K=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=E.pointerId,h.target=E.currentTarget,!l&&!s&&Vt(E.currentTarget),d||Js(h.target),K=C(E,h.pointerType);let B=E.target;"releasePointerCapture"in B&&B.releasePointerCapture(E.pointerId),b(nt(E.currentTarget),"pointerup",P,!1),b(nt(E.currentTarget),"pointercancel",y,!1)}K&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(Ao(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||h.pointerType==="virtual"||E.button===0&&D(E,h.pointerType||E.pointerType)},L.onPointerEnter=E=>{E.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,C(at(h.target,E),h.pointerType))},L.onPointerLeave=E=>{E.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(at(h.target,E),h.pointerType,!1),T(E))};let P=E=>{E.pointerId===h.activePointerId&&h.isPressed&&E.button===0&&h.target&&(h.target.contains(E.target)&&h.pointerType!=null?S(at(h.target,E),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(at(h.target,E),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,m(),d||Jr(h.target),"ontouchend"in h.target&&E.pointerType!=="mouse"&&b(h.target,"touchend",F,{once:!0}))},F=E=>{mf(E.currentTarget)&&E.preventDefault()},y=E=>{x(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}else{L.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(Ao(y.currentTarget)&&y.preventDefault(),h.ignoreEmulatedMouseEvents){y.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=y.currentTarget,h.pointerType=jl(y.nativeEvent)?"virtual":"mouse",!l&&!s&&Vt(y.currentTarget),C(y,h.pointerType)&&y.stopPropagation(),b(nt(y.currentTarget),"mouseup",P,!1)},L.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,E=C(y,h.pointerType)),E&&y.stopPropagation()},L.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,E=S(y,h.pointerType,!1),T(y)),E&&y.stopPropagation()},L.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!h.ignoreEmulatedMouseEvents&&y.button===0&&D(y,h.pointerType||"mouse")};let P=y=>{if(y.button===0){if(h.isPressed=!1,m(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Ro(y,h.target)&&h.pointerType!=null?S(at(h.target,y),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(at(h.target,y),h.pointerType,!1),h.isOverTarget=!1}};L.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=V5(y.nativeEvent);if(!E)return;h.activePointerId=E.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=y.currentTarget,h.pointerType="touch",!l&&!s&&Vt(y.currentTarget),d||Js(h.target),C(wt(h.target,y),h.pointerType)&&y.stopPropagation(),b(Gn(y.currentTarget),"scroll",F,!0)},L.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=eu(y.nativeEvent,h.activePointerId),K=!0;E&&Ro(E,y.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,K=C(wt(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,K=S(wt(h.target,y),h.pointerType,!1),T(wt(h.target,y))),K&&y.stopPropagation()},L.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=eu(y.nativeEvent,h.activePointerId),K=!0;E&&Ro(E,y.currentTarget)&&h.pointerType!=null?(D(wt(h.target,y),h.pointerType),K=S(wt(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(K=S(wt(h.target,y),h.pointerType,!1)),K&&y.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Jr(h.target),m()},L.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),h.isPressed&&x(wt(h.target,y)))};let F=y=>{h.isPressed&&y.target.contains(h.target)&&x({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=y=>{y.currentTarget.contains(y.target)&&x(y)}}return L},[b,l,s,m,d,x,T,S,C,D]);return c.useEffect(()=>()=>{var h;d||Jr((h=p.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||g,pressProps:Lt(v,I)}}function Ka(t){return t.tagName==="A"&&t.hasAttribute("href")}function No(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Gn(i).HTMLInputElement&&!bf(i,n)||i instanceof Gn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Ka(i))&&n!=="Enter")}function V5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function eu(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function wt(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function at(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function U5(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function W5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ro(t,e){let n=e.getBoundingClientRect(),r=U5(t);return W5(n,r)}function Ao(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function mf(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Ka(t)}function tu(t,e){return t instanceof HTMLInputElement?!bf(t,e):mf(t)}const G5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bf(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":G5.has(t.type)}class q5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function Y5(t){let e=c.useRef({isFocused:!1,observer:null});pt(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=qe(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new q5("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let tr=null,X5=new Set,Er=new Map,tn=!1,zl=!1;function Fa(t,e){for(let n of X5)n(t,e)}function Z5(t){return!(t.metaKey||!Mt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ni(t){tn=!0,Z5(t)&&(tr="keyboard",Fa("keyboard",t))}function Fe(t){tr="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(tn=!0,Fa("pointer",t))}function yf(t){jl(t)&&(tn=!0,tr="virtual")}function $f(t){t.target===window||t.target===document||(!tn&&!zl&&(tr="virtual",Fa("virtual",t)),tn=!1,zl=!1)}function Sf(){tn=!1,zl=!0}function nu(t){if(typeof window>"u"||Er.get(Gn(t)))return;const e=Gn(t),n=nt(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){tn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ni,!0),n.addEventListener("keyup",Ni,!0),n.addEventListener("click",yf,!0),e.addEventListener("focus",$f,!0),e.addEventListener("blur",Sf,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Fe,!0),n.addEventListener("pointermove",Fe,!0),n.addEventListener("pointerup",Fe,!0)):(n.addEventListener("mousedown",Fe,!0),n.addEventListener("mousemove",Fe,!0),n.addEventListener("mouseup",Fe,!0)),e.addEventListener("beforeunload",()=>{wf(t)},{once:!0}),Er.set(e,{focus:r})}const wf=(t,e)=>{const n=Gn(t),r=nt(t);e&&r.removeEventListener("DOMContentLoaded",e),Er.has(n)&&(n.HTMLElement.prototype.focus=Er.get(n).focus,r.removeEventListener("keydown",Ni,!0),r.removeEventListener("keyup",Ni,!0),r.removeEventListener("click",yf,!0),n.removeEventListener("focus",$f,!0),n.removeEventListener("blur",Sf,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Fe,!0),r.removeEventListener("pointermove",Fe,!0),r.removeEventListener("pointerup",Fe,!0)):(r.removeEventListener("mousedown",Fe,!0),r.removeEventListener("mousemove",Fe,!0),r.removeEventListener("mouseup",Fe,!0)),Er.delete(n))};function J5(t){const e=nt(t);let n;return e.readyState!=="loading"?nu(t):(n=()=>{nu(t)},e.addEventListener("DOMContentLoaded",n)),()=>wf(t,n)}typeof document<"u"&&J5();function ru(){return tr!=="pointer"}function iu(){return tr}function Q5(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Y5(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}let Ri=!1,Ko=0;function Bl(){Ri=!0,setTimeout(()=>{Ri=!1},50)}function ou(t){t.pointerType==="touch"&&Bl()}function em(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ou):document.addEventListener("touchend",Bl),Ko++,()=>{Ko--,!(Ko>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ou):document.removeEventListener("touchend",Bl))}}function tm(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(em,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,$)=>{if(a.pointerType=$,i||$==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let p=g.currentTarget;a.target=p,e&&e({type:"hoverstart",target:p,pointerType:$}),n&&n(!0),l(!0)},f=(g,$)=>{if(a.pointerType="",a.target=null,$==="touch"||!a.isHovered)return;a.isHovered=!1;let p=g.currentTarget;r&&r({type:"hoverend",target:p,pointerType:$}),n&&n(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=g=>{Ri&&g.pointerType==="mouse"||d(g,g.pointerType)},v.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(v.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ri&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:v,triggerHoverEnd:f}},[e,n,r,i,a]);return c.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:o}}const nm=500;function rm(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=nm,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=ff(),{pressProps:d}=vf({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),a.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...v,type:"longpress"}),a.current=void 0},o),v.pointerType==="touch")){let g=$=>{$.preventDefault()};s(v.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){a.current&&clearTimeout(a.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),f=F5(i&&!e?l:void 0);return{longPressProps:Lt(d,f)}}function im(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Qt(e);let l=Qt(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=N5({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function Vl(t){return T5()?t.altKey:t.ctrlKey}const om=1e3;function lm(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=am(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},om)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function am(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}const sm=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),um=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function cm(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return sm.has(n.script)}let e=t.split("-")[0];return um.has(e)}const dm=Symbol.for("react-aria.i18n.locale");function Cf(){let t=typeof window<"u"&&window[dm]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:cm(t)?"rtl":"ltr"}}let Ul=Cf(),vr=new Set;function lu(){Ul=Cf();for(let t of vr)t(Ul)}function fm(){let t=un(),[e,n]=c.useState(Ul);return c.useEffect(()=>(vr.size===0&&window.addEventListener("languagechange",lu),vr.add(n),()=>{vr.delete(n),vr.size===0&&window.removeEventListener("languagechange",lu)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const hm=c.createContext(null);function Ef(){let t=fm();return c.useContext(hm)||t}let Fo=new Map;function pm(t){let{locale:e}=Ef(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Fo.has(n))return Fo.get(n);let r=new Intl.Collator(e,t);return Fo.set(n,r),r}function gm(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:g=r,linkBehavior:$="action"}=t,{direction:p}=Ef(),b=Aa(),m=y=>{var E;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!((E=r.current)===null||E===void 0)&&E.contains(y.target)))return;const K=(R,Z)=>{if(R!=null){if(e.isLink(R)&&$==="selection"&&s&&!Vl(y)){var J;Nt.flushSync(()=>{e.setFocusedKey(R,Z)});let de=(J=g.current)===null||J===void 0?void 0:J.querySelector(`[data-key="${CSS.escape(R.toString())}"]`),ce=e.getItemProps(R);de&&b.open(de,y,ce.href,ce.routerOptions);return}if(e.setFocusedKey(R,Z),e.isLink(R)&&$==="override")return;y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!Vl(y)&&e.replaceSelection(R)}};switch(y.key){case"ArrowDown":if(n.getKeyBelow){var B,H,O;let R=e.focusedKey!=null?(B=n.getKeyBelow)===null||B===void 0?void 0:B.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);R==null&&o&&(R=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowUp":if(n.getKeyAbove){var q,V,U;let R=e.focusedKey!=null?(q=n.getKeyAbove)===null||q===void 0?void 0:q.call(n,e.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n);R==null&&o&&(R=(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowLeft":if(n.getKeyLeftOf){var N,M,z;let R=e.focusedKey!=null?(N=n.getKeyLeftOf)===null||N===void 0?void 0:N.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n,e.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var j,W,G;let R=e.focusedKey!=null?(j=n.getKeyRightOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getFirstKey(e.focusedKey,kn(y));e.setFocusedKey(R),R!=null&&(kn(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getLastKey(e.focusedKey,kn(y));e.setFocusedKey(R),R!=null&&(kn(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let R=n.getKeyPageBelow(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let R=n.getKeyPageAbove(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"a":kn(y)&&e.selectionMode==="multiple"&&a!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)r.current.focus();else{let R=Ye(r.current,{tabbable:!0}),Z,J;do J=R.lastChild(),J&&(Z=J);while(J);Z&&!Z.contains(document.activeElement)&&Vt(Z)}break}}},C=c.useRef({top:0,left:0});Zr(g,"scroll",v?void 0:()=>{var y,E,K,B;C.current={top:(K=(y=g.current)===null||y===void 0?void 0:y.scrollTop)!==null&&K!==void 0?K:0,left:(B=(E=g.current)===null||E===void 0?void 0:E.scrollLeft)!==null&&B!==void 0?B:0}});let S=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var E,K;let O=V=>{V!=null&&(e.setFocusedKey(V),s&&e.replaceSelection(V))},q=y.relatedTarget;var B,H;q&&y.currentTarget.compareDocumentPosition(q)&Node.DOCUMENT_POSITION_FOLLOWING?O((B=e.lastSelectedKey)!==null&&B!==void 0?B:(E=n.getLastKey)===null||E===void 0?void 0:E.call(n)):O((H=e.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n))}else!v&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let O=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);O&&(O.contains(document.activeElement)||Vt(O),iu()==="keyboard"&&Zs(O,{containingElement:r.current}))}}},D=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)},x=c.useRef(!1);Zr(r,z5,d?y=>{let{detail:E}=y;y.stopPropagation(),e.setFocused(!0),(E==null?void 0:E.focusStrategy)==="first"&&(x.current=!0)}:void 0);let T=qe(()=>{var y,E;let K=(E=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&E!==void 0?E:null;if(K==null){var B;(B=r.current)===null||B===void 0||B.dispatchEvent(new CustomEvent(pf,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(K),x.current=!1});Ys(()=>{x.current&&T()},[e.collection,T]);let I=qe(()=>{e.collection.size>0&&(x.current=!1)});Ys(()=>{I()},[e.focusedKey,I]),Zr(r,H5,d?y=>{y.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const h=c.useRef(i);c.useEffect(()=>{if(h.current){var y,E;let H=null;var K;i==="first"&&(H=(K=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&K!==void 0?K:null);var B;i==="last"&&(H=(B=(E=n.getLastKey)===null||E===void 0?void 0:E.call(n))!==null&&B!==void 0?B:null);let O=e.selectedKeys;if(O.size){for(let q of O)if(e.canSelectItem(q)){H=q;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!d&&r.current&&kt(r.current)}},[]);let L=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==L.current||h.current)&&g.current&&r.current){let y=iu(),E=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!E)return;(y==="keyboard"||h.current)&&(hf(g.current,E),y!=="virtual"&&Zs(E,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&L.current!=null&&r.current&&kt(r.current),L.current=e.focusedKey,h.current=!1}),Zr(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let A={onKeyDown:m,onFocus:S,onBlur:D,onMouseDown(y){g.current===y.target&&y.preventDefault()}},{typeSelectProps:P}=lm({keyboardDelegate:n,selectionManager:e});u||(A=Lt(P,A));let F;return d?F=-1:F=e.focusedKey==null?0:-1,{collectionProps:{...A,tabIndex:F}}}function vm(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,v=Aa();e=Qt(e);let g=O=>{if(O.pointerType==="keyboard"&&Vl(O))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):O&&O.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||O&&(kn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!l)a?a():document.activeElement!==i.current&&i.current&&kt(i.current);else{var q;let V=new CustomEvent(pf,{cancelable:!0,bubbles:!0});(q=i.current)===null||q===void 0||q.dispatchEvent(V)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let $={};!l&&!s?$={tabIndex:r===n.focusedKey?0:-1,onFocus(O){O.target===i.current&&n.setFocusedKey(r)}}:s&&($.onMouseDown=O=>{O.preventDefault()});let p=n.isLink(r)&&f==="override",b=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(u||b)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),D=C&&m&&n.selectionBehavior==="replace",x=S||D,T=c.useRef(null),I=x&&m,h=c.useRef(!1),L=c.useRef(!1),A=O=>{if(u&&u(),b&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions)}},P={};o?(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,O.pointerType==="keyboard"&&(!x||su())&&g(O)},d?(P.onPressUp=S?void 0:O=>{O.pointerType==="mouse"&&m&&g(O)},P.onPress=S?A:O=>{O.pointerType!=="keyboard"&&O.pointerType!=="mouse"&&m&&g(O)}):P.onPress=O=>{if(S||D&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!au())return;A(O)}else O.pointerType!=="keyboard"&&m&&g(O)}):(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,L.current=S,m&&(O.pointerType==="mouse"&&!S||O.pointerType==="keyboard"&&(!C||su()))&&g(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&x&&au()||O.pointerType==="mouse"&&L.current)&&(x?A(O):m&&g(O))}),$["data-key"]=r,P.preventFocusOnPress=l;let{pressProps:F,isPressed:y}=vf(P),E=D?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),A(O))}:void 0,{longPressProps:K}=rm({isDisabled:!I,onLongPress(O){O.pointerType==="touch"&&(g(O),n.setSelectionBehavior("toggle"))}}),B=O=>{T.current==="touch"&&h.current&&O.preventDefault()},H=n.isLink(r)?O=>{en.isOpening||O.preventDefault()}:void 0;return{itemProps:Lt($,m||S?F:{},I?K:{},{onDoubleClick:E,onDragStartCapture:B,onClick:H,id:e}),isPressed:y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:x}}function au(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function su(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}let uu=class{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},mm=class{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Fl(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Fl(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new uu(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new uu(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function bm(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=pm({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new mm({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=gm({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function ym(t,e,n){let r=sf(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=bm({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Q5({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Qt(t.id);La.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=im({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:Lt(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Lt(d,l)})}}function $m(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}const cu=new WeakMap;function Sm(t){let e=cu.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r($m(o,t)):n++};return r(t),cu.set(t,n),n}function wm(t,e,n){var r,i;let{key:o}=t,l=La.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let v=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let $=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var p;let b=(p=t.shouldUseVirtualFocus)!==null&&p!==void 0?p:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,S=Gs(),D=Gs(),x={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Mt()&&cf()||(x["aria-label"]=t["aria-label"],x["aria-labelledby"]=S,x["aria-describedby"]=D);let T=e.collection.getItem(o);if(C){let H=Number(T==null?void 0:T.index);x["aria-posinset"]=Number.isNaN(H)?void 0:H+1,x["aria-setsize"]=Sm(e.collection)}let I=l!=null&&l.onAction?()=>{var H;return l==null||(H=l.onAction)===null||H===void 0?void 0:H.call(l,o)}:void 0,h=g5(e,o),{itemProps:L,isPressed:A,isFocused:P,hasAction:F,allowsSelection:y}=vm({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&$,isVirtualized:C,shouldUseVirtualFocus:b,isDisabled:s,onAction:I||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?Ma(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,I):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:h}),{hoverProps:E}=tm({isDisabled:s||!$,onHoverStart(){ru()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),K=sf(T==null?void 0:T.props);delete K.id;let B=L5(T==null?void 0:T.props);return{optionProps:{...x,...Lt(K,L,E,B),id:h},labelProps:{id:S},descriptionProps:{id:D},isFocused:P,isFocusVisible:P&&ru(),isSelected:d,isDisabled:s,isPressed:A,allowsSelection:y,hasAction:F}}function Cm(t){let{heading:e,"aria-label":n}=t,r=Qt();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const rt={top:"top",bottom:"top",left:"left",right:"left"},Ai={top:"bottom",bottom:"top",left:"right",right:"left"},Em={top:"left",left:"top"},Wl={top:"height",left:"width"},xf={width:"totalWidth",height:"totalHeight"},ti={};let ge=typeof document<"u"?window.visualViewport:null;function du(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=ge==null?void 0:ge.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var d;e=(d=ge==null?void 0:ge.width)!==null&&d!==void 0?d:r;var f;n=(f=ge==null?void 0:ge.height)!==null&&f!==void 0?f:i,a.top=$.scrollTop||t.scrollTop,a.left=$.scrollLeft||t.scrollLeft,ge&&(o=ge.offsetTop,l=ge.offsetLeft)}else({width:e,height:n,top:o,left:l}=jn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(bd()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var v;o=(v=ge==null?void 0:ge.pageTop)!==null&&v!==void 0?v:0;var g;l=(g=ge==null?void 0:ge.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function xm(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function fu(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Wl[t]],d=r.scroll[rt[t]]+o,f=u+r.scroll[rt[t]]-o,v=e-s+l[t]-r[rt[t]],g=e-s+n+l[t]-r[rt[t]];return v<d?d-v:g>f?Math.max(f-g,d-v):0}function Pm(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function hu(t){if(ti[t])return ti[t];let[e,n]=t.split(" "),r=rt[e]||"right",i=Em[r];rt[n]||(n="center");let o=Wl[r],l=Wl[i];return ti[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ti[t]}function jo(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:v,crossAxis:g,size:$,crossSize:p}=r,b={};var m;b[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,S,D,x;f==="center"?b[g]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==g&&(b[g]+=((D=t[p])!==null&&D!==void 0?D:0)-((x=n[p])!==null&&x!==void 0?x:0)),b[g]+=o;const T=t[g]-n[p]+s+u,I=t[g]+t[p]-s-u;if(b[g]=xl(b[g],T,I),d===v){const h=a?l[$]:e[xf[$]];b[Ai[v]]=Math.floor(h-t[v]+i)}else b[v]=Math.floor(t[v]+t[$]+i);return b}function Tm(t,e,n,r,i,o,l,a){const s=r?n.height:e[xf.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,v,g,$,p,b;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((v=i.top)!==null&&v!==void 0?v:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+l-(e.top+(($=e.scroll.top)!==null&&$!==void 0?$:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+o));return Math.min(e.height-o*2,m)}function pu(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Ai[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Ai[a]]-i)}function Dm(t,e,n,r,i,o,l,a,s,u,d,f,v,g,$,p){let b=hu(t),{size:m,crossAxis:C,crossSize:S,placement:D,crossPlacement:x}=b,T=jo(e,a,n,b,d,f,u,v,$,p),I=d,h=pu(a,u,e,i,o+d,b);if(l&&r[m]>h){let z=hu(`${Ai[D]} ${x}`),j=jo(e,a,n,z,d,f,u,v,$,p);pu(a,u,e,i,o+d,z)>h&&(b=z,T=j,I=d)}let L="bottom";b.axis==="top"?b.placement==="top"?L="top":b.placement==="bottom"&&(L="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?L="bottom":b.crossPlacement==="bottom"&&(L="top"));let A=fu(C,T[C],n[S],a,s,o,u);T[C]+=A;let P=Tm(T,a,u,v,i,o,n.height,L);g&&g<P&&(P=g),n.height=Math.min(n.height,P),T=jo(e,a,n,b,I,f,u,v,$,p),A=fu(C,T[C],n[S],a,s,o,u),T[C]+=A;let F={},y=e[C]+.5*e[S]-T[C]-i[rt[C]];const E=$/2+p;var K,B,H,O;const q=rt[C]==="left"?((K=i.left)!==null&&K!==void 0?K:0)+((B=i.right)!==null&&B!==void 0?B:0):((H=i.top)!==null&&H!==void 0?H:0)+((O=i.bottom)!==null&&O!==void 0?O:0),V=n[S]-q-$/2-p,U=e[C]+$/2-(T[C]+i[rt[C]]),N=e[C]+e[S]-$/2-(T[C]+i[rt[C]]),M=xl(y,U,N);return F[C]=xl(M,E,V),{position:T,maxHeight:P,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:b.placement}}function Im(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:v=0}=t,g=r instanceof HTMLElement?Om(r):document.documentElement,$=g===document.documentElement;const p=window.getComputedStyle(g).position;let b=!!p&&p!=="static",m=$?jn(n):gu(n,g);if(!$){let{marginTop:F,marginLeft:y}=window.getComputedStyle(n);m.top+=parseInt(F,10)||0,m.left+=parseInt(y,10)||0}let C=jn(r),S=Pm(r);var D,x;C.width+=((D=S.left)!==null&&D!==void 0?D:0)+((x=S.right)!==null&&x!==void 0?x:0);var T,I;C.height+=((T=S.top)!==null&&T!==void 0?T:0)+((I=S.bottom)!==null&&I!==void 0?I:0);let h=xm(i),L=du(a),A=du(g),P=a.tagName==="BODY"?jn(g):gu(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),Dm(e,m,C,h,S,o,l,L,A,P,s,u,b,d,f,v)}function jn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function gu(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=jn(t);let i=jn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Om(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!vu(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!vu(e);)e=e.parentElement;return e||document.documentElement}function vu(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Pf=new WeakMap;function _m(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||Pf.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let fe=typeof document<"u"?window.visualViewport:null;function km(t){let{direction:e}=er(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:v=!0,isOpen:g=!0,onClose:$,maxHeight:p,arrowBoundaryOffset:b=0}=t,[m,C]=c.useState(null),S=[v,l,i.current,r.current,o.current,a,s,u,d,f,g,e,p,b,n],D=c.useRef(fe==null?void 0:fe.scale);c.useEffect(()=>{g&&(D.current=fe==null?void 0:fe.scale)},[g]);let x=c.useCallback(()=>{if(v===!1||!g||!i.current||!r.current||!u||(fe==null?void 0:fe.scale)!==D.current)return;let A=null;if(o.current&&o.current.contains(document.activeElement)){var P;let O=(P=document.activeElement)===null||P===void 0?void 0:P.getBoundingClientRect(),q=o.current.getBoundingClientRect();var F;if(A={type:"top",offset:((F=O==null?void 0:O.top)!==null&&F!==void 0?F:0)-q.top},A.offset>q.height/2){A.type="bottom";var y;A.offset=((y=O==null?void 0:O.bottom)!==null&&y!==void 0?y:0)-q.bottom}}let E=i.current;if(!p&&i.current){var K;E.style.top="0px",E.style.bottom="";var B;E.style.maxHeight=((B=(K=window.visualViewport)===null||K===void 0?void 0:K.height)!==null&&B!==void 0?B:window.innerHeight)+"px"}let H=Im({placement:Mm(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:b});if(H.position){if(E.style.top="",E.style.bottom="",E.style.left="",E.style.right="",Object.keys(H.position).forEach(O=>E.style[O]=H.position[O]+"px"),E.style.maxHeight=H.maxHeight!=null?H.maxHeight+"px":"",A&&document.activeElement&&o.current){let O=document.activeElement.getBoundingClientRect(),q=o.current.getBoundingClientRect(),V=O[A.type]-q[A.type];o.current.scrollTop+=V-A.offset}C(H)}},S);pe(x,S),Lm(x),Cl({ref:i,onResize:x}),Cl({ref:r,onResize:x});let T=c.useRef(!1);pe(()=>{let A,P=()=>{T.current=!0,clearTimeout(A),A=setTimeout(()=>{T.current=!1},500),x()},F=()=>{T.current&&P()};return fe==null||fe.addEventListener("resize",P),fe==null||fe.addEventListener("scroll",F),()=>{fe==null||fe.removeEventListener("resize",P),fe==null||fe.removeEventListener("scroll",F)}},[x]);let I=c.useCallback(()=>{T.current||$==null||$()},[$,T]);_m({triggerRef:r,isOpen:g,onClose:$&&I});var h,L;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(h=m==null?void 0:m.maxHeight)!==null&&h!==void 0?h:"100vh"}},placement:(L=m==null?void 0:m.placement)!==null&&L!==void 0?L:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:x}}function Lm(t){pe(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mm(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const st=[];function Nm(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>(i&&st.push(e),()=>{let $=st.indexOf(e);$>=0&&st.splice($,1)}),[i,e]);let s=()=>{st[st.length-1]===e&&n&&n()},u=$=>{(!a||a($.target))&&st[st.length-1]===e&&($.stopPropagation(),$.preventDefault())},d=$=>{(!a||a($.target))&&(st[st.length-1]===e&&($.stopPropagation(),$.preventDefault()),s())},f=$=>{$.key==="Escape"&&!l&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),s())};zv({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=ef({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||Sv($.relatedTarget)||(!a||a($.relatedTarget))&&(n==null||n())}}),g=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:f,...v},underlayProps:{onPointerDown:g}}}function Rm(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&Pf.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Be();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ho=typeof document<"u"&&window.visualViewport,Am=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,zo;function Km(t={}){let{isDisabled:e}=t;pe(()=>{if(!e)return ni++,ni===1&&(Xi()?zo=jm():zo=Fm()),()=>{ni--,ni===0&&zo()}},[e])}function Fm(){return Un(An(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),An(document.documentElement,"overflow","hidden"))}function jm(){let t,e,n=u=>{t=wd(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=An(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;Hm(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ho&&(Ho.height<window.innerHeight?requestAnimationFrame(()=>{mu(d)}):Ho.addEventListener("resize",()=>mu(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Un(ar(window,"scroll",u),An(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),An(document.documentElement,"overflow","hidden"),An(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Un(ar(document,"touchstart",n,{passive:!1,capture:!0}),ar(document,"touchmove",r,{passive:!1,capture:!0}),ar(document,"touchend",i,{passive:!1,capture:!0}),ar(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function An(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function ar(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function mu(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=wd(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function Hm(t){return t instanceof HTMLInputElement&&!Am.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var Tf={};Tf={dismiss:"تجاهل"};var Df={};Df={dismiss:"Отхвърляне"};var If={};If={dismiss:"Odstranit"};var Of={};Of={dismiss:"Luk"};var _f={};_f={dismiss:"Schließen"};var kf={};kf={dismiss:"Απόρριψη"};var Lf={};Lf={dismiss:"Dismiss"};var Mf={};Mf={dismiss:"Descartar"};var Nf={};Nf={dismiss:"Lõpeta"};var Rf={};Rf={dismiss:"Hylkää"};var Af={};Af={dismiss:"Rejeter"};var Kf={};Kf={dismiss:"התעלם"};var Ff={};Ff={dismiss:"Odbaci"};var jf={};jf={dismiss:"Elutasítás"};var Hf={};Hf={dismiss:"Ignora"};var zf={};zf={dismiss:"閉じる"};var Bf={};Bf={dismiss:"무시"};var Vf={};Vf={dismiss:"Atmesti"};var Uf={};Uf={dismiss:"Nerādīt"};var Wf={};Wf={dismiss:"Lukk"};var Gf={};Gf={dismiss:"Negeren"};var qf={};qf={dismiss:"Zignoruj"};var Yf={};Yf={dismiss:"Descartar"};var Xf={};Xf={dismiss:"Dispensar"};var Zf={};Zf={dismiss:"Revocare"};var Jf={};Jf={dismiss:"Пропустить"};var Qf={};Qf={dismiss:"Zrušiť"};var e0={};e0={dismiss:"Opusti"};var t0={};t0={dismiss:"Odbaci"};var n0={};n0={dismiss:"Avvisa"};var r0={};r0={dismiss:"Kapat"};var i0={};i0={dismiss:"Скасувати"};var o0={};o0={dismiss:"取消"};var l0={};l0={dismiss:"關閉"};var a0={};a0={"ar-AE":Tf,"bg-BG":Df,"cs-CZ":If,"da-DK":Of,"de-DE":_f,"el-GR":kf,"en-US":Lf,"es-ES":Mf,"et-EE":Nf,"fi-FI":Rf,"fr-FR":Af,"he-IL":Kf,"hr-HR":Ff,"hu-HU":jf,"it-IT":Hf,"ja-JP":zf,"ko-KR":Bf,"lt-LT":Vf,"lv-LV":Uf,"nb-NO":Wf,"nl-NL":Gf,"pl-PL":qf,"pt-BR":Yf,"pt-PT":Xf,"ro-RO":Zf,"ru-RU":Jf,"sk-SK":Qf,"sl-SI":e0,"sr-SP":t0,"sv-SE":n0,"tr-TR":r0,"uk-UA":i0,"zh-CN":o0,"zh-TW":l0};function zm(t){return t&&t.__esModule?t.default:t}function bu(t){let{onDismiss:e,...n}=t,r=of(zm(a0),"@react-aria/overlays"),i=Ji(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(h5,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let sr=new WeakMap,Me=[];function Bm(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let v of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(v);let u=v=>{if(n.has(v)||v.parentElement&&r.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(v.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let v=d.nextNode();for(;v!=null;)o(v),v=d.nextNode()}},o=s=>{var u;let d=(u=sr.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),sr.set(s,d+1))};Me.length&&Me[Me.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Me.push(a),()=>{l.disconnect();for(let s of r){let u=sr.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),sr.delete(s)):sr.set(s,u-1))}a===Me[Me.length-1]?(Me.pop(),Me.length&&Me[Me.length-1].observe()):Me.splice(Me.indexOf(a),1)}}function Vm(t,e){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...a}=t,{overlayProps:s,underlayProps:u}=Nm({isOpen:e.isOpen&&!a["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},r),{overlayProps:d,arrowProps:f,placement:v}=km({...a,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:i?e.close:null});return Km({isDisabled:i||!e.isOpen}),pe(()=>{if(e.isOpen&&!i&&r.current)return Bm([r.current])},[i,e.isOpen,r]),{popoverProps:ae(s,d),arrowProps:f,underlayProps:u,placement:v}}const Um=c.createContext({});function Wm(){var t;return(t=c.useContext(Um))!==null&&t!==void 0?t:{}}const Gm=c.createContext(null);function qm(t){let e=un(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Wm();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Ta,{restoreFocus:!0,contain:i&&!r},s)),s=c.createElement(Gm.Provider,{value:l},c.createElement(Mv,null,s)),Nt.createPortal(s,n)}function Gl(t){return cg()?t.altKey:t.ctrlKey}const Ym=1e3;function s0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=Xm(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ym)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Xm(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function u0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:g=r,linkBehavior:$="action"}=t,{direction:p}=er(),b=Zi(),m=y=>{var E;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!((E=r.current)===null||E===void 0)&&E.contains(y.target)))return;const K=(R,Z)=>{if(R!=null){if(e.isLink(R)&&$==="selection"&&s&&!Gl(y)){var J;Nt.flushSync(()=>{e.setFocusedKey(R,Z)});let de=(J=g.current)===null||J===void 0?void 0:J.querySelector(`[data-key="${CSS.escape(R.toString())}"]`),ce=e.getItemProps(R);de&&b.open(de,y,ce.href,ce.routerOptions);return}if(e.setFocusedKey(R,Z),e.isLink(R)&&$==="override")return;y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!Gl(y)&&e.replaceSelection(R)}};switch(y.key){case"ArrowDown":if(n.getKeyBelow){var B,H,O;let R=e.focusedKey!=null?(B=n.getKeyBelow)===null||B===void 0?void 0:B.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);R==null&&o&&(R=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowUp":if(n.getKeyAbove){var q,V,U;let R=e.focusedKey!=null?(q=n.getKeyAbove)===null||q===void 0?void 0:q.call(n,e.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n);R==null&&o&&(R=(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowLeft":if(n.getKeyLeftOf){var N,M,z;let R=e.focusedKey!=null?(N=n.getKeyLeftOf)===null||N===void 0?void 0:N.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n,e.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var j,W,G;let R=e.focusedKey!=null?(j=n.getKeyRightOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getFirstKey(e.focusedKey,In(y));e.setFocusedKey(R),R!=null&&(In(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getLastKey(e.focusedKey,In(y));e.setFocusedKey(R),R!=null&&(In(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let R=n.getKeyPageBelow(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let R=n.getKeyPageAbove(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"a":In(y)&&e.selectionMode==="multiple"&&a!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)r.current.focus();else{let R=Ye(r.current,{tabbable:!0}),Z,J;do J=R.lastChild(),J&&(Z=J);while(J);Z&&!Z.contains(document.activeElement)&&zt(Z)}break}}},C=c.useRef({top:0,left:0});Br(g,"scroll",v?void 0:()=>{var y,E,K,B;C.current={top:(K=(y=g.current)===null||y===void 0?void 0:y.scrollTop)!==null&&K!==void 0?K:0,left:(B=(E=g.current)===null||E===void 0?void 0:E.scrollLeft)!==null&&B!==void 0?B:0}});let S=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var E,K;let O=V=>{V!=null&&(e.setFocusedKey(V),s&&e.replaceSelection(V))},q=y.relatedTarget;var B,H;q&&y.currentTarget.compareDocumentPosition(q)&Node.DOCUMENT_POSITION_FOLLOWING?O((B=e.lastSelectedKey)!==null&&B!==void 0?B:(E=n.getLastKey)===null||E===void 0?void 0:E.call(n)):O((H=e.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n))}else!v&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let O=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);O&&(O.contains(document.activeElement)||zt(O),Ks()==="keyboard"&&ys(O,{containingElement:r.current}))}}},D=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)},x=c.useRef(!1);Br(r,xg,d?y=>{let{detail:E}=y;y.stopPropagation(),e.setFocused(!0),(E==null?void 0:E.focusStrategy)==="first"&&(x.current=!0)}:void 0);let T=ye(()=>{var y,E;let K=(E=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&E!==void 0?E:null;if(K==null){var B;(B=r.current)===null||B===void 0||B.dispatchEvent(new CustomEvent(Ed,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(K),x.current=!1});ms(()=>{x.current&&T()},[e.collection,T]);let I=ye(()=>{e.collection.size>0&&(x.current=!1)});ms(()=>{I()},[e.focusedKey,I]),Br(r,Eg,d?y=>{y.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const h=c.useRef(i);c.useEffect(()=>{if(h.current){var y,E;let H=null;var K;i==="first"&&(H=(K=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&K!==void 0?K:null);var B;i==="last"&&(H=(B=(E=n.getLastKey)===null||E===void 0?void 0:E.call(n))!==null&&B!==void 0?B:null);let O=e.selectedKeys;if(O.size){for(let q of O)if(e.canSelectItem(q)){H=q;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!d&&r.current&&kt(r.current)}},[]);let L=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==L.current||h.current)&&g.current&&r.current){let y=Ks(),E=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!E)return;(y==="keyboard"||h.current)&&(Cd(g.current,E),y!=="virtual"&&ys(E,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&L.current!=null&&r.current&&kt(r.current),L.current=e.focusedKey,h.current=!1}),Br(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let A={onKeyDown:m,onFocus:S,onBlur:D,onMouseDown(y){g.current===y.target&&y.preventDefault()}},{typeSelectProps:P}=s0({keyboardDelegate:n,selectionManager:e});u||(A=ae(P,A));let F;return d?F=-1:F=e.focusedKey==null?0:-1,{collectionProps:{...A,tabIndex:F}}}function c0(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,v=Zi();e=Be(e);let g=O=>{if(O.pointerType==="keyboard"&&Gl(O))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):O&&O.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||O&&(In(O)||O.pointerType==="touch"||O.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!l)a?a():document.activeElement!==i.current&&i.current&&kt(i.current);else{var q;let V=new CustomEvent(Ed,{cancelable:!0,bubbles:!0});(q=i.current)===null||q===void 0||q.dispatchEvent(V)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let $={};!l&&!s?$={tabIndex:r===n.focusedKey?0:-1,onFocus(O){O.target===i.current&&n.setFocusedKey(r)}}:s&&($.onMouseDown=O=>{O.preventDefault()});let p=n.isLink(r)&&f==="override",b=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(u||b)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),D=C&&m&&n.selectionBehavior==="replace",x=S||D,T=c.useRef(null),I=x&&m,h=c.useRef(!1),L=c.useRef(!1),A=O=>{if(u&&u(),b&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions)}},P={};o?(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,O.pointerType==="keyboard"&&(!x||$u())&&g(O)},d?(P.onPressUp=S?void 0:O=>{O.pointerType==="mouse"&&m&&g(O)},P.onPress=S?A:O=>{O.pointerType!=="keyboard"&&O.pointerType!=="mouse"&&m&&g(O)}):P.onPress=O=>{if(S||D&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!yu())return;A(O)}else O.pointerType!=="keyboard"&&m&&g(O)}):(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,L.current=S,m&&(O.pointerType==="mouse"&&!S||O.pointerType==="keyboard"&&(!C||$u()))&&g(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&x&&yu()||O.pointerType==="mouse"&&L.current)&&(x?A(O):m&&g(O))}),$["data-key"]=r,P.preventFocusOnPress=l;let{pressProps:F,isPressed:y}=no(P),E=D?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),A(O))}:void 0,{longPressProps:K}=tf({isDisabled:!I,onLongPress(O){O.pointerType==="touch"&&(g(O),n.setSelectionBehavior("toggle"))}}),B=O=>{T.current==="touch"&&h.current&&O.preventDefault()},H=n.isLink(r)?O=>{Xt.isOpening||O.preventDefault()}:void 0;return{itemProps:ae($,m||S?F:{},I?K:{},{onDoubleClick:E,onDragStartCapture:B,onClick:H,id:e}),isPressed:y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:x}}function yu(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function $u(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Su{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class ja{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Pr(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Pr(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Su(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Su(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Zm(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=ka({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new ja({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=u0({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function d0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Jm(t){return Qm(t)}function Qm(t,e){for(let n of t)return n}function Bo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...wu(t,e),e],i=[...wu(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function wu(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const Cu=new WeakMap;function e1(t){let e=Cu.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(d0(o,t)):n++};return r(t),Cu.set(t,n),n}var f0={};f0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var h0={};h0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var p0={};p0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var g0={};g0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var v0={};v0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var m0={};m0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var b0={};b0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var y0={};y0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var $0={};$0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var S0={};S0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var w0={};w0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var C0={};C0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var E0={};E0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var x0={};x0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var P0={};P0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var T0={};T0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var D0={};D0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var I0={};I0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var O0={};O0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var _0={};_0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var k0={};k0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var L0={};L0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var M0={};M0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var N0={};N0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var R0={};R0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var A0={};A0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var K0={};K0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var F0={};F0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var j0={};j0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var H0={};H0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var z0={};z0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var B0={};B0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var V0={};V0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var U0={};U0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var W0={};W0={"ar-AE":f0,"bg-BG":h0,"cs-CZ":p0,"da-DK":g0,"de-DE":v0,"el-GR":m0,"en-US":b0,"es-ES":y0,"et-EE":$0,"fi-FI":S0,"fr-FR":w0,"he-IL":C0,"hr-HR":E0,"hu-HU":x0,"it-IT":P0,"ja-JP":T0,"ko-KR":D0,"lt-LT":I0,"lv-LV":O0,"nb-NO":_0,"nl-NL":k0,"pl-PL":L0,"pt-BR":M0,"pt-PT":N0,"ro-RO":R0,"ru-RU":A0,"sk-SK":K0,"sl-SI":F0,"sr-SP":j0,"sv-SE":H0,"tr-TR":z0,"uk-UA":B0,"zh-CN":V0,"zh-TW":U0};function t1(t){return t&&t.__esModule?t.default:t}function n1(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Be(),{triggerProps:a,overlayProps:s}=Rm({type:r},e,n),u=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=of(t1(W0),"@react-aria/menu"),{longPressProps:f}=tf({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&e.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&e.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?v:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const G0=new WeakMap;function r1(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=Se(t,{labelable:!0}),{listProps:s}=Zm({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return G0.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ae(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function i1(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:v,onHoverStart:g,onHoverChange:$,onHoverEnd:p,onKeyDown:b,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:D,selectionManager:x=e.selectionManager}=t,T=!!a,I=T&&t["aria-expanded"]==="true";var h;let L=(h=t.isDisabled)!==null&&h!==void 0?h:x.isDisabled(i);var A;let P=(A=t.isSelected)!==null&&A!==void 0?A:x.isSelected(i),F=G0.get(e),y=e.collection.getItem(i),E=t.onClose||F.onClose,K=Zi(),B=re=>{var Je;if(!T){if(!(y==null||(Je=y.props)===null||Je===void 0)&&Je.onAction?y.props.onAction():t.onAction&&t.onAction(i),F.onAction){let yt=F.onAction;yt(i)}re.target instanceof HTMLAnchorElement&&y&&K.open(re.target,re,y.props.href,y.props.routerOptions)}},H="menuitem";T||(x.selectionMode==="single"?H="menuitemradio":x.selectionMode==="multiple"&&(H="menuitemcheckbox"));let O=Sr(),q=Sr(),V=Sr(),U={id:r,"aria-disabled":L||void 0,role:H,"aria-label":t["aria-label"],"aria-labelledby":O,"aria-describedby":[q,V].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!T&&(U["aria-checked"]=P),l&&(U["aria-posinset"]=y==null?void 0:y.index,U["aria-setsize"]=e1(e.collection));let N=re=>{re.pointerType==="keyboard"&&B(re),s==null||s(re)},M=()=>{!T&&E&&(o??(x.selectionMode!=="multiple"||x.isLink(i)))&&E()},z=re=>{re.pointerType==="mouse"&&(B(re),M()),u==null||u(re)},j=re=>{re.pointerType!=="keyboard"&&re.pointerType!=="mouse"&&(B(re),M()),d==null||d(re)},{itemProps:W,isFocused:G}=c0({id:r,selectionManager:x,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:F.shouldUseVirtualFocus}),{pressProps:R,isPressed:Z}=no({onPressStart:N,onPress:j,onPressUp:z,onPressChange:f,onPressEnd:v,isDisabled:L}),{hoverProps:J}=Nr({isDisabled:L,onHoverStart(re){!jv()&&!(I&&a==="dialog")&&(x.setFocused(!0),x.setFocusedKey(i)),g==null||g(re)},onHoverChange:$,onHoverEnd:p}),{keyboardProps:de}=Bv({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":!L&&x.selectionMode==="none"&&!T&&o!==!1&&E&&E();break;case"Enter":!L&&o!==!1&&!T&&E&&E();break;default:T||re.continuePropagation(),b==null||b(re);break}},onKeyUp:m}),{focusProps:ce}=Rv({onBlur:D,onFocus:C,onFocusChange:S}),oe=Se(y==null?void 0:y.props);delete oe.id;let me=$d(y==null?void 0:y.props);return{menuItemProps:{...U,...ae(oe,me,T?{onFocus:W.onFocus,"data-key":W["data-key"]}:W,R,J,de,ce),tabIndex:W.tabIndex!=null&&I?-1:W.tabIndex},labelProps:{id:O},descriptionProps:{id:q},keyboardShortcutProps:{id:V},isFocused:G,isSelected:P,isPressed:Z,isDisabled:L}}function o1(t){let{heading:e,"aria-label":n}=t,r=Be();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const q0=new WeakMap;function l1(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=ka({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new ja(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s]),{menuTriggerProps:d,menuProps:f}=n1({isDisabled:i,type:"listbox"},e,n),v=h=>{switch(h.key){case"ArrowLeft":{var L,A;h.preventDefault();let y=e.selectedKey!=null?(L=u.getKeyAbove)===null||L===void 0?void 0:L.call(u,e.selectedKey):(A=u.getFirstKey)===null||A===void 0?void 0:A.call(u);y&&e.setSelectedKey(y);break}case"ArrowRight":{var P,F;h.preventDefault();let y=e.selectedKey!=null?(P=u.getKeyBelow)===null||P===void 0?void 0:P.call(u,e.selectedKey):(F=u.getFirstKey)===null||F===void 0?void 0:F.call(u);y&&e.setSelectedKey(y);break}}},{typeSelectProps:g}=s0({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(h){e.setSelectedKey(h)}}),{isInvalid:$,validationErrors:p,validationDetails:b}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:D}=f5({...t,labelElementType:"span",isInvalid:$,errorMessage:t.errorMessage||p});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let x=Se(t,{labelable:!0}),T=ae(g,d,C),I=Be();return q0.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var h;(h=n.current)===null||h===void 0||h.focus(),Qd("keyboard")}}},triggerProps:ae(x,{...T,isDisabled:i,onKeyDown:Un(T.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[I,T["aria-labelledby"],T["aria-label"]&&!T["aria-labelledby"]?T.id:null].filter(Boolean).join(" "),onFocus(h){e.isFocused||(t.onFocus&&t.onFocus(h),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(h){e.isOpen||(t.onBlur&&t.onBlur(h),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:I},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:h=>{h.currentTarget.contains(h.relatedTarget)||(t.onBlur&&t.onBlur(h),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],T["aria-label"]&&!C["aria-labelledby"]?T.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:D,isInvalid:$,validationErrors:p,validationDetails:b}}function a1(t,e,n){let r=q0.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=af();Cg(t.selectRef,e.selectedKey,e.setSelectedKey),a5({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:"",onChange:f=>e.setSelectedKey(f.target.value)}}}function s1(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=a1({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function u1(t){let e=Se(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const Y0=new WeakMap;function Ki(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Y0.get(t)}-${n}-${e}`):""}function c1(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=c0({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),v=Ki(e,r,"tab"),g=Ki(e,r,"tabpanel"),{tabIndex:$}=d,p=e.collection.getItem(r),b=Se(p==null?void 0:p.props,{labelable:!0});delete b.id;let m=$d(p==null?void 0:p.props);return{tabProps:ae(b,m,d,{id:v,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:$,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function d1(t,e,n){let r=Dv(n)?void 0:0;var i;const o=Ki(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=Ji({...t,id:o,"aria-labelledby":Ki(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ae(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class f1{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function h1(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=er(),u=c.useMemo(()=>new f1(o,s,r,a),[o,a,r,s]),{collectionProps:d}=u0({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Be();Y0.set(e,f);let v=Ji({...t,id:f});return{tabListProps:{...ae(d,v),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const p1=c.createContext(null),g1=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),X0=c.createContext({}),v1=wa(function(e,n){[e,n]=mt(e,n,X0),e=m1(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=o5(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=cn(e),{hoverProps:d,isHovered:f}=Nr({...e,isDisabled:e.isDisabled||i}),v={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},g=_e({...e,values:v,defaultClassName:"react-aria-Button"}),$=Be(o.id),p=Be(),b=o["aria-labelledby"];i&&(b?b=`${b} ${p}`:o["aria-label"]&&(b=`${$} ${p}`));let m=c.useRef(i);return c.useEffect(()=>{let C={"aria-labelledby":b||$};(!m.current&&s&&i||m.current&&s&&!i)&&Us(C,"assertive"),m.current=i},[i,s,b,$]),c.createElement("button",{...Se(e,{propNames:g1}),...ae(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:$,ref:n,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(p1.Provider,{value:{id:p}},g.children))});function m1(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Ha=c.createContext({}),b1=c.createContext(null),Z0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},J0={...Z0,customError:!0,valid:!1},ur={isInvalid:!1,validationDetails:Z0,validationErrors:[]},y1=c.createContext({}),Eu="__formValidationState"+Date.now();function $1(t){if(t[Eu]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Eu];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return S1(t)}function S1(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:J0}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let A=w1(l,i);return xu(A)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(y1),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>ql(d[A])):ql(d[r]):[],[d,r]),[v,g]=c.useState(d),[$,p]=c.useState(!1);d!==v&&(g(d),p(!1));let b=c.useMemo(()=>xu($?[]:f),[$,f]),m=c.useRef(ur),[C,S]=c.useState(ur),D=c.useRef(ur),x=()=>{if(!T)return;I(!1);let A=u||o||m.current;Vo(A,D.current)||(D.current=A,S(A))},[T,I]=c.useState(!1);return c.useEffect(x),{realtimeValidation:s||b||u||o||ur,displayValidation:a==="native"?s||b||C:s||b||u||o||C,updateValidation(A){a==="aria"&&!Vo(C,A)?S(A):m.current=A},resetValidation(){let A=ur;Vo(A,D.current)||(D.current=A,S(A)),a==="native"&&I(!1),p(!0)},commitValidation(){a==="native"&&I(!0),p(!0)}}}function ql(t){return t?Array.isArray(t)?t:[t]:[]}function w1(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return ql(n)}return[]}function xu(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:J0}:null}function Vo(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Q0(t){let[e,n]=Mr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}class C1{build(e,n){return this.context=n,Pu(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let b=[];c.Children.forEach(e.element.props.children,C=>{b.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of b)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=i?i.key:null,yield b;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let b=l.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let D=l.type;throw new Error(`Unknown element <${D}> in collection.`)}let m=b.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=m.next();for(;!S.done&&S.value;){let D=S.value;e.index=C;var s;let x=(s=D.key)!==null&&s!==void 0?s:null;x==null&&(x=D.element?null:this.getKey(l,e,n,r));let I=[...this.getFullNode({...D,key:x,index:C,wrapper:E1(e.wrapper,D.wrapper)},this.getChildState(n,D),r?`${r}${l.key}`:l.key,i)];for(let h of I){var u,d;h.value=(d=(u=D.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,h.value&&this.cache.set(h.value,h);var f;if(e.type&&h.type!==e.type)throw new Error(`Unsupported type <${Uo(h.type)}> in <${Uo((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Uo(e.type)}> is supported.`);C++,yield h}S=m.next(I)}return}if(e.key==null||e.type==null)return;let v=this;var g,$;let p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:($=e.textValue)!==null&&$!==void 0?$:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Pu(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=v.getFullNode({...m,index:b},v.getChildState(n,m),p.key,p);for(let S of C)b++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function Pu(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function E1(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Uo(t){return t[0].toUpperCase()+t.slice(1)}function e2(t,e,n){let r=c.useMemo(()=>new C1,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function x1(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function P1(t){return T1(t)}function T1(t,e){for(let n of t)return n}function Wo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Tu(t,e),e],i=[...Tu(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function Tu(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}function D1(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var b;return(b=p.id)!==null&&b!==void 0?b:p.key},getChildren:i=p=>p.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(p=[],b,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m,value:C,children:null};return S.children=f(i(C),b,S.key).items,b.set(S.key,S),S}),nodeMap:b}}function v(p,b,m,C){let S=C.get(b);if(!S)return{items:p,nodeMap:C};let D=new Map(C),x=m(S);for(x==null?$(S,D):g(x,D);S&&S.parentKey;){let I=D.get(S.parentKey),h={key:I.key,parentKey:I.parentKey,value:I.value,children:null},L=I.children;x==null&&L&&(L=L.filter(A=>A!==S));var T;h.children=(T=L==null?void 0:L.map(A=>A===S?x:A))!==null&&T!==void 0?T:null,D.set(h.key,h),x=h,S=I}return x==null&&(p=p.filter(I=>I!==S)),{items:p.map(I=>I===S?x:I),nodeMap:D}}function g(p,b){if(b.set(p.key,p),p.children)for(let m of p.children)g(m,b)}function $(p,b){if(b.delete(p.key),p.children)for(let m of p.children)$(m,b)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(p){return s.get(p)},insert(p,b,...m){l(({items:C,nodeMap:S})=>{let{items:D,nodeMap:x}=f(m,S,p);return p==null?{items:[...C.slice(0,b),...D,...C.slice(b)],nodeMap:x}:v(C,p,T=>({key:T.key,parentKey:T.parentKey,value:T.value,children:[...T.children.slice(0,b),...D,...T.children.slice(b)]}),x)})},insertBefore(p,...b){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,D,...b)},insertAfter(p,...b){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,D+1,...b)},prepend(p,...b){this.insert(p,0,...b)},append(p,...b){if(p==null)this.insert(null,a.length,...b);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...b)}},remove(...p){if(p.length===0)return;let b=a,m=s,C;for(let D of p)C=v(b,D,()=>null,m),m=C.nodeMap,b=C.items;l(C);let S=new Set(u);for(let D of u)C.nodeMap.has(D)||S.delete(D);d(S)},removeSelectedItems(){this.remove(...u)},move(p,b,m){l(({items:C,nodeMap:S})=>{let D=S.get(p);if(!D)return{items:C,nodeMap:S};let{items:x,nodeMap:T}=v(C,p,()=>null,S);const I={...D,parentKey:b};return b==null?(T.set(I.key,I),{items:[...x.slice(0,m),I,...x.slice(m)],nodeMap:T}):v(x,b,h=>({key:h.key,parentKey:h.parentKey,value:h.value,children:[...h.children.slice(0,m),I,...h.children.slice(m)]}),T)})},update(p,b){l(({items:m,nodeMap:C})=>v(m,p,S=>{let D={key:S.key,parentKey:S.parentKey,value:b,children:null},x=f(i(b),C,D.key);return D.children=x.items,D},C))}}}class Du{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let ct=class t2 extends Set{constructor(e,n,r){super(e),e instanceof t2?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function I1(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function n2(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>Iu(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>Iu(t.defaultSelectedKeys,new ct),[t.defaultSelectedKeys]),[g,$]=Mr(f,v,t.onSelectionChange),p=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[b,m]=c.useState(i);i==="replace"&&b==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=c.useRef(i);return c.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:b,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,D="first"){s.current=S,u.current=D,d(S)},selectedKeys:g,setSelectedKeys(S){(r||!I1(S,g))&&$(S)},disabledKeys:p,disabledBehavior:o}}function Iu(t,e){return t?t==="all"?"all":new ct(t):e}let r2=class{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wo(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wo(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ct([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new ct(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Wo(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new ct(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new ct([n],n,n):new ct;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ct;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=P1(x1(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ct)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function i2(t){let{filter:e,layoutDelegate:n}=t,r=n2(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(d=>e?new Du(e(d)):new Du(d),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=e2(t,o,l),s=c.useMemo(()=>new r2(a,r,{layoutDelegate:n}),[a,r,n]);const u=c.useRef(null);return c.useEffect(()=>{if(r.focusedKey!=null&&!a.getItem(r.focusedKey)&&u.current){const m=u.current.getItem(r.focusedKey),C=[...u.current.getKeys()].map(h=>{const L=u.current.getItem(h);return(L==null?void 0:L.type)==="item"?L:null}).filter(h=>h!==null),S=[...a.getKeys()].map(h=>{const L=a.getItem(h);return(L==null?void 0:L.type)==="item"?L:null}).filter(h=>h!==null);var d,f;const D=((d=C==null?void 0:C.length)!==null&&d!==void 0?d:0)-((f=S==null?void 0:S.length)!==null&&f!==void 0?f:0);var v,g,$;let x=Math.min(D>1?Math.max(((v=m==null?void 0:m.index)!==null&&v!==void 0?v:0)-D+1,0):(g=m==null?void 0:m.index)!==null&&g!==void 0?g:0,(($=S==null?void 0:S.length)!==null&&$!==void 0?$:0)-1),T=null,I=!1;for(;x>=0;){if(!s.isDisabled(S[x].key)){T=S[x];break}if(x<S.length-1&&!I)x++;else{I=!0;var p,b;x>((p=m==null?void 0:m.index)!==null&&p!==void 0?p:0)&&(x=(b=m==null?void 0:m.index)!==null&&b!==void 0?b:0),x--}}r.setFocusedKey(T?T.key:null)}u.current=a},[a,s,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:s}}function o2(t){var e;let[n,r]=Mr(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=i2({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function O1(t){let e=Q0(t),[n,r]=c.useState(null),i=o2({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),o.commitValidation()}}),o=$1({...t,value:i.selectedKey}),[l,a]=c.useState(!1);return{...o,...i,...e,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),e.open())},toggle(s=null){i.collection.size!==0&&(r(s),e.toggle())},isFocused:l,setFocused:a}}function _1(t){var e,n;let r=o2({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Ou(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=c.useRef(l);return c.useEffect(()=>{let s=l;(i.isEmpty||s==null||!o.getItem(s))&&(s=Ou(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function Ou(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class k1{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function L1(t){let{onExpandedChange:e}=t,[n,r]=Mr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=n2(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=e2(t,c.useCallback(s=>new k1(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(M1(n,s))},setExpandedKeys:r,selectionManager:new r2(l,i)}}function M1(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const N1=c.createContext(null),l2=c.createContext(null),a2=c.createContext(null),s2={CollectionRoot({collection:t,renderDropIndicator:e}){return _u(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return _u(t,e,n)}};function _u(t,e,n){return Td({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return c.createElement(c.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const fn=c.createContext(s2);function u2(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const lo=c.createContext({}),c2=c.createContext(null),R1=c.forwardRef(function(e,n){let{render:r}=c.useContext(c2);return c.createElement(c.Fragment,null,r(e,n))});function d2(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(R1,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function A1(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const f2=c.createContext({}),za=c.createContext({}),K1=to("separator",function(e,n){[e,n]=mt(e,n,za);let{elementType:r,orientation:i,style:o,className:l}=e,a=r||"hr";a==="hr"&&i==="vertical"&&(a="div");let{separatorProps:s}=u1({elementType:r,orientation:i});return c.createElement(a,{...Se(e),...s,style:o,className:l??"react-aria-Separator",ref:n,slot:e.slot||void 0})}),Ba=c.createContext(null),Rr=c.createContext(null),F1=c.forwardRef(function(e,n){[e,n]=mt(e,n,Ba);let r=c.useContext(Rr);return r?c.createElement(h2,{state:r,props:e,listBoxRef:n}):c.createElement(eo,{content:c.createElement(Ea,e)},i=>c.createElement(j1,{props:e,listBoxRef:n,collection:i}))});function j1({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(fn),{filterFn:i,collectionProps:o,collectionRef:l}=c.useContext(l2)||{};e=vt(c.useMemo(()=>ma(e,l!==void 0?l:null),[l,e]));let a=c.useMemo(()=>i?n.filter(i):n,[n,i]),s=i2({...t,collection:a,layoutDelegate:r});return c.createElement(h2,{state:s,props:{...t,...o},listBoxRef:e})}function h2({state:t,props:e,listBoxRef:n}){let{dragAndDropHooks:r,layout:i="stack",orientation:o="vertical"}=e,{collection:l,selectionManager:a}=t,s=!!(r!=null&&r.useDraggableCollectionState),u=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=er(),{disabledBehavior:f,disabledKeys:v}=a,g=ka({usage:"search",sensitivity:"base"}),{isVirtualized:$,layoutDelegate:p,dropTargetDelegate:b,CollectionRoot:m}=c.useContext(fn),C=c.useMemo(()=>e.keyboardDelegate||new ja({collection:l,collator:g,ref:n,disabledKeys:v,disabledBehavior:f,layout:i,orientation:o,direction:d,layoutDelegate:p}),[l,g,n,f,v,o,d,e.keyboardDelegate,i,p]),{listBoxProps:S}=ym({...e,shouldSelectOnPressUp:s||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:$},t,n),D=c.useRef(s),x=c.useRef(u);c.useEffect(()=>{D.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),x.current!==u&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[s,u]);let T,I,h,L=!1,A=null,P=c.useRef(null);if(s&&r){T=r.useDraggableCollectionState({collection:l,selectionManager:a,preview:r.renderDragPreview?P:void 0}),r.useDraggableCollection({},T,n);let O=r.DragPreview;A=r.renderDragPreview?c.createElement(O,{ref:P},r.renderDragPreview):null}if(u&&r){I=r.useDroppableCollectionState({collection:l,selectionManager:a});let O=r.dropTargetDelegate||b||new r.ListDropTargetDelegate(l,n,{orientation:o,layout:i,direction:d});h=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:O},I,n),L=I.isDropTarget({type:"root"})}let{focusProps:F,isFocused:y,isFocusVisible:E}=cn(),K={isDropTarget:L,isEmpty:t.collection.size===0,isFocused:y,isFocusVisible:E,layout:e.layout||"stack",state:t},B=_e({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:K}),H=null;return t.collection.size===0&&e.renderEmptyState&&(H=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(K))),c.createElement(Ta,null,c.createElement("div",{...Se(e),...ae(S,F,h==null?void 0:h.collectionProps),...B,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":t.collection.size===0||void 0,"data-focused":y||void 0,"data-focus-visible":E||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement(Rt,{values:[[Ba,e],[Rr,t],[lo,{dragAndDropHooks:r,dragState:T,dropState:I}],[za,{elementType:"div"}],[c2,{render:B1}],[a2,{name:"ListBoxSection",render:H1}]]},c.createElement(m,{collection:l,scrollRef:n,persistedKeys:A1(a,r,I),renderDropIndicator:d2(r,I)})),H,A))}function H1(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(Rr),{dragAndDropHooks:o,dropState:l}=c.useContext(lo),{CollectionBranch:a}=c.useContext(fn),[s,u]=ya();var d;let{headingProps:f,groupProps:v}=Cm({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=_e({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...Se(t),...v,...g,ref:e},c.createElement(f2.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:d2(o,l)})))}const z1=to("item",function(e,n,r){let i=vt(n),o=c.useContext(Rr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(lo),{optionProps:u,labelProps:d,descriptionProps:f,...v}=wm({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:$}=Nr({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),p=null;a&&l&&(p=l.useDraggableItem({key:r.key},a));let b=null;s&&l&&(b=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=_e({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:$,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:b==null?void 0:b.isDropTarget}});c.useEffect(()=>{r.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=e.href?"a":"div";return c.createElement(S,{...ae(u,g,p==null?void 0:p.dragProps,b==null?void 0:b.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":$||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement(Rt,{values:[[Ha,{slots:{label:d,description:f}}]]},C.children))});function B1(t,e){e=vt(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(lo),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(U1,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function V1(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=_e({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const U1=c.forwardRef(V1),W1=c.createContext({placement:"bottom"}),p2=c.createContext(null),g2=c.forwardRef(function(e,n){[e,n]=mt(e,n,p2);let r=c.useContext(v2),i=Q0(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=Tg(n,o.isOpen)||e.isExiting||!1;if(kg()){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,s)}return o&&!o.isOpen&&!l?null:c.createElement(G1,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l})});function G1({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0);pe(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var a;let{popoverProps:s,underlayProps:u,arrowProps:d,placement:f}=Vm({...r,offset:(a=r.offset)!==null&&a!==void 0?a:8,arrowSize:o},t),v=r.popoverRef,g=Pg(v,!!f)||r.isEntering||!1,$=_e({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:f,isEntering:g,isExiting:e}}),p={...s.style,...$.style};return c.createElement(qm,{...r,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...u,style:{position:"fixed",inset:0}}),c.createElement("div",{...ae(Se(r),s),...$,ref:v,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(bu,{onDismiss:t.close}),c.createElement(W1.Provider,{value:{...d,placement:f,ref:i}},$.children),c.createElement(bu,{onDismiss:t.close})))}const q1=c.createContext({});class Ge extends Set{constructor(e,n,r){super(e),e instanceof Ge?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Y1(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function X1(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>ku(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>ku(t.defaultSelectedKeys,new Ge),[t.defaultSelectedKeys]),[g,$]=Mr(f,v,t.onSelectionChange),p=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[b,m]=c.useState(i);i==="replace"&&b==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=c.useRef(i);return c.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:b,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,D="first"){s.current=S,u.current=D,d(S)},selectedKeys:g,setSelectedKeys(S){(r||!Y1(S,g))&&$(S)},disabledKeys:p,disabledBehavior:o}}function ku(t,e){return t?t==="all"?"all":new Ge(t):e}class Z1{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Bo(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Bo(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Ge([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new Ge(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Bo(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new Ge(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new Ge([n],n,n):new Ge;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new Ge;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Jm(d0(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ge)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const J1=c.createContext(null),Va=c.createContext(null),Q1=c.createContext(null),Fi=c.createContext(null),eb=c.createContext(null),tb=c.forwardRef(function(e,n){return[e,n]=mt(e,n,J1),c.createElement(eo,{content:c.createElement(Ea,e)},r=>r.size>0&&c.createElement(nb,{props:e,collection:r,menuRef:n}))});function nb({props:t,collection:e,menuRef:n}){let{filterFn:r,collectionProps:i,collectionRef:o}=c.useContext(l2)||{};n=vt(c.useMemo(()=>ma(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.filter(r):e,[e,r]),a=L1({...t,collection:l,children:void 0}),s=c.useContext(Q1),{isVirtualized:u,CollectionRoot:d}=c.useContext(fn),{menuProps:f}=r1({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),v=_e({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{}});return c.createElement(Ta,null,c.createElement("div",{...Se(t),...f,...v,ref:n,slot:t.slot||void 0,onScroll:t.onScroll},c.createElement(Rt,{values:[[Va,a],[za,{elementType:"div"}],[a2,{name:"MenuSection",render:ib}],[eb,{parentMenuRef:n}],[Yl,null],[Fi,a.selectionManager]]},c.createElement(d,{collection:a.collection,persistedKeys:u2(a.selectionManager.focusedKey),scrollRef:n}))))}class rb extends Z1{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function ib(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(Va),{CollectionBranch:a}=c.useContext(fn),[s,u]=ya();var d;let{headingProps:f,groupProps:v}=o1({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=_e({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),$=c.useContext(Fi),p=X1(t),b=t.selectionMode!=null?new rb($,p):$;return c.createElement("section",{...Se(t),...v,...g,ref:e},c.createElement(Rt,{values:[[f2,{...f,ref:s}],[Fi,b]]},c.createElement(a,{collection:l.collection,parent:n})))}const Yl=c.createContext(null),Lu=to("item",function(e,n,r){var i;[e,n]=mt(e,n,Yl);let o=(i=Qi(Yl))===null||i===void 0?void 0:i.id,l=c.useContext(Va),a=vt(n),s=c.useContext(Fi),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:v,...g}=i1({...e,id:o,key:r.key,selectionManager:s},l,a),{isFocusVisible:$,focusProps:p}=cn(),{hoverProps:b,isHovered:m}=Nr({isDisabled:g.isDisabled}),C=_e({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:m,isFocusVisible:$,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div";return c.createElement(S,{...ae(u,p,b),...C,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":$||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},c.createElement(Rt,{values:[[Ha,{slots:{label:d,description:f}}],[q1,v]]},C.children))}),v2=c.createContext(null),m2=c.createContext(null),b2=c.createContext(null),ob=c.forwardRef(function(e,n){[e,n]=mt(e,n,m2);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return c.createElement(eo,{content:a},s=>c.createElement(lb,{props:e,collection:s,selectRef:n}))});function lb({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=Qi(N1)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=O1({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=cn({within:!0}),d=c.useRef(null),[f,v]=ya(),{labelProps:g,triggerProps:$,valueProps:p,menuProps:b,descriptionProps:m,errorMessageProps:C,...S}=l1({...Dg(t),label:v,validationBehavior:l},a,d),[D,x]=c.useState(null),T=c.useCallback(()=>{d.current&&x(d.current.offsetWidth+"px")},[d]);Cl({ref:d,onResize:T});let I=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),h=_e({...t,values:I,defaultClassName:"react-aria-Select"}),L=Se(t);delete L.id;let A=c.useRef(null);return c.createElement(Rt,{values:[[m2,t],[b2,a],[ab,p],[Id,{...g,ref:f,elementType:"span"}],[X0,{...$,ref:d,isPressed:a.isOpen}],[v2,a],[p2,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":D}}],[Ba,{...b,ref:A}],[Rr,a],[Ha,{slots:{description:m,errorMessage:C}}],[b1,S]]},c.createElement("div",{...L,...h,...u,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(s1,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:v,name:t.name,isDisabled:t.isDisabled}))}const ab=c.createContext(null),ao=c.createContext(null),qn=c.createContext(null),sb=c.forwardRef(function(e,n){[e,n]=mt(e,n,ao);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(eo,{content:r},o=>c.createElement(ub,{props:e,collection:o,tabsRef:n}))});function ub({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=_1({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=cn({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=_e({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...Se(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},c.createElement(Rt,{values:[[ao,t],[qn,i]]},u.children))}const cb=c.forwardRef(function(e,n){return c.useContext(qn)?c.createElement(db,{props:e,forwardedRef:n}):c.createElement(Ea,e)});function db({props:t,forwardedRef:e}){let n=c.useContext(qn),{CollectionRoot:r}=c.useContext(fn),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Qi(ao),l=vt(e),{tabListProps:a}=h1({...t,orientation:i,keyboardActivation:o},n,l),s=_e({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Se(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:u2(n.selectionManager.focusedKey)}))}const fb=to("item",(t,e,n)=>{let r=c.useContext(qn),i=vt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=c1({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=cn(),{hoverProps:v,isHovered:g}=Nr({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),$=_e({...t,id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),p=n.props.href?"a":"div";return c.createElement(p,{...ae(o,u,v,$),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0})}),hb=wa(function(e,n){const r=c.useContext(qn);let i=vt(n),{tabPanelProps:o}=d1(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=cn(),u=r.selectedKey===e.id,d=_e({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=Se(e);delete f.id;let v=u?ae(f,o,l,d):d;return c.createElement("div",{...v,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:u?void 0:"true","data-inert":u?void 0:"true"},c.createElement(Rt,{values:[[ao,null],[qn,null]]},c.createElement(fn.Provider,{value:s2},d.children)))}),Ar=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),w.jsx(g2,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:w.jsxs(tb,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&w.jsx(Lu,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:w.jsxs(c.Fragment,{children:[w.jsxs(Lu,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var v;f.value&&(o==null||o(f.value)),(v=f.callback)==null||v.call(f),u(!1)},isDisabled:f.isDisabled,children:[f.icon,w.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&w.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&w.jsx(K1,{})]},f.label))]})})]})},Yn=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},Mu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",pb="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",gb=()=>{const{t}=se.useCunningham();return w.jsxs("footer",{className:"c__footer",children:[w.jsx("div",{className:"c__footer__stripe"}),w.jsxs("div",{className:"c__footer__content",children:[w.jsxs("div",{className:"c__footer__content__top",children:[w.jsx("div",{children:w.jsx("div",{className:"c__footer__content__top__logo",children:w.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:pb})})}),w.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>w.jsxs("a",{href:n,target:"_blank",children:[w.jsx("span",{children:e}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Mu})]},e))})]}),w.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>w.jsx("a",{href:n,children:w.jsx("span",{children:e})},e))}),w.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",w.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[w.jsx("span",{children:t("components.footer.license")}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Mu})]})]})]})]})},vb=t=>w.jsx(ob,{...t,className:"c__filter",children:w.jsx(mb,{...t})}),mb=t=>{const e=c.useContext(b2),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return w.jsxs(w.Fragment,{children:[w.jsxs(v1,{className:Te("c__filter__button",{"c__filter__button--active":!!n}),children:[w.jsx(Vg,{className:"c__filter__label",children:n?w.jsxs(w.Fragment,{children:[t.label," : ",n.label]}):w.jsx(w.Fragment,{children:t.label})}),w.jsx("span",{"aria-hidden":"true",className:Te("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),w.jsx(g2,{className:"c__dropdown-menu",children:w.jsx(F1,{children:t.options.map(r=>w.jsx(z1,{id:r.value,className:"c__dropdown-menu-item",children:r.render?r.render():r.label},r.value))})})]})},bb=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>w.jsx("div",{className:"c__hero",children:w.jsxs("div",{className:"c__hero__display",children:[w.jsxs("div",{className:"c__hero__display__captions",children:[t,w.jsx("h2",{children:r}),w.jsx("span",{children:i}),e||w.jsx(hd,{})]}),w.jsx("img",{src:n,alt:""})]})}),yb=({children:t})=>w.jsx("div",{className:"c__home-gutter",children:t}),y2=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:y2(t[i],r.slice(1),n)},$b={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Sb={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},wb={label:"Les services de La Suite numérique"},Cb={homepageLinkTitle:"Accueil - {serviceName}"},Eb={newWindow:"{title} - nouvelle fenêtre"},xb={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},$2={email:$b,footer:Sb,gaufre:wb,header:Cb,links:Eb,proconnect:xb},Pb=c.createContext($2);function Tb(){const t=c.useContext(Pb)||$2;return{t:function(e,n={}){const r=y2(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return w.jsx(w.Fragment,{children:o.map((l,a)=>l in n?w.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const Db={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Ib=({variant:t})=>{const{t:e}=Tb(),n=t?Db[t]:"";return w.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},Ob=()=>w.jsxs(w.Fragment,{children:[w.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),w.jsx(Ib,{variant:"small"})]}),S2=({languages:t})=>{const{isOpen:e,setIsOpen:n}=Yn();return w.jsx(Ar,{options:t,isOpen:e,onOpenChange:n,children:w.jsxs(se.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[w.jsx("span",{className:"material-icons",children:"translate"}),w.jsx("span",{className:"c__language-picker__label",children:"Français"}),w.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},w2=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=se.useCunningham();return w.jsxs("div",{className:"c__header",children:[w.jsx("div",{className:"c__header__toggle-menu",children:w.jsx(se.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:w.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),w.jsx("div",{className:"c__header__left",children:t}),w.jsxs("div",{className:"c__header__right",children:[n&&w.jsx("div",{className:"c__header__right__language-picker",children:w.jsx(S2,{languages:n})}),e]})]})},Xl={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"var(--c--theme--colors--greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"var(--c--theme--colors--greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"var(--c--theme--colors--greyscale-500)"},"primary-text":{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"var(--c--theme--colors--greyscale-100)","background--color-active":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","color-hover":"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"var(--c--theme--colors--greyscale-000)","background--disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","border--color":"var(--c--theme--colors--greyscale-300)","border--color-hover":"var(--c--theme--colors--greyscale-300)","border--color-disabled":"var(--c--theme--colors--greyscale-300)",disabled:"var(--c--theme--colors--greyscale-400)"},tertiary:{"background--color":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"var(--c--theme--colors--primary-100)","background--color-hover":"var(--c--theme--colors--primary-300)","background--color-active":"var(--c--theme--colors--primary-300)","background--disabled":"var(--c--theme--colors--primary-050)",color:"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--primary-300)"},"tertiary-text":{"background--color-hover":"var(--c--theme--colors--greyscale-100)","color-hover":"var(--c--theme--colors--primary-text)",color:"var(--c--theme--colors--primary-600)"},danger:{"color-hover":"white","background--color":"var(--c--theme--colors--danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"var(--c--theme--colors--danger-600)","background--color-disabled":"var(--c--theme--colors--greyscale-100)","color-disabled":"var(--c--theme--colors--greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"var(--c--theme--colors--primary-800)","background-color--hover":"var(--c--theme--colors--greyscale-100)","border--color-disabled":"var(--c--theme--colors--greyscale-200)","border--color":"var(--c--theme--colors--primary-800)","background--disabled":"var(--c--theme--colors--greyscale-200)","background--enable":"var(--c--theme--colors--primary-800)","check--disabled":"var(--c--theme--colors--greyscale-300)","check--enable":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-text)","label--color":"var(--c--theme--colors--greyscale-1000)","label--size":"var(--c--theme--font--sizes--sm)","label--weight":"500","text--color":"var(--c--theme--colors--greyscale-600)","text--size":"var(--c--theme--font--sizes--s)","text--weight":"400","text--color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"var(--c--theme--colors--primary-800)","background-color":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)","accent-color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-switch":{"border--color-disabled":"var(--c--theme--colors--greyscale-300)","border--color":"var(--c--theme--colors--primary-800)","handle-background-color":"white","handle-background-color--disabled":"var(--c--theme--colors--greyscale-000)","rail-background-color--disabled":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"}}}}},nr=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(Xl.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Xl.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},C2=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=nr();return n?w.jsx("div",{className:"c__left-panel",children:t}):w.jsx("div",{className:Te("c__left-panel__mobile",{open:e}),children:t})},{createElement:Xn,createContext:_b,createRef:n6,forwardRef:E2,useCallback:De,useContext:x2,useEffect:Wt,useImperativeHandle:P2,useLayoutEffect:kb,useMemo:Lb,useRef:Ie,useState:Hn}=k,Nu=k[`useId${Math.random()}`.slice(0,5)],Mb=kb,so=_b(null);so.displayName="PanelGroupContext";const Gt=Mb,Nb=typeof Nu=="function"?Nu:()=>null;let Rb=0;function Ua(t=null){const e=Nb(),n=Ie(t||e||null);return n.current===null&&(n.current=""+Rb++),t??n.current}function T2({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:v,style:g,tagName:$="div",...p}){const b=x2(so);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:D,groupId:x,isPanelCollapsed:T,reevaluatePanelConstraints:I,registerPanel:h,resizePanel:L,unregisterPanel:A}=b,P=Ua(l),F=Ie({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:P,idIsFromProps:l!==void 0,order:v});Ie({didLogMissingDefaultSizeWarning:!1}),Gt(()=>{const{callbacks:E,constraints:K}=F.current,B={...K};F.current.id=P,F.current.idIsFromProps=l!==void 0,F.current.order=v,E.onCollapse=u,E.onExpand=d,E.onResize=f,K.collapsedSize=n,K.collapsible=r,K.defaultSize=i,K.maxSize=a,K.minSize=s,(B.collapsedSize!==K.collapsedSize||B.collapsible!==K.collapsible||B.maxSize!==K.maxSize||B.minSize!==K.minSize)&&I(F.current,B)}),Gt(()=>{const E=F.current;return h(E),()=>{A(E)}},[v,P,h,A]),P2(o,()=>({collapse:()=>{m(F.current)},expand:E=>{C(F.current,E)},getId(){return P},getSize(){return S(F.current)},isCollapsed(){return T(F.current)},isExpanded(){return!T(F.current)},resize:E=>{L(F.current,E)}}),[m,C,S,T,P,L]);const y=D(F.current,i);return Xn($,{...p,children:t,className:e,id:l,style:{...y,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":P,"data-panel-size":parseFloat(""+y.flexGrow).toFixed(1)})}const Zl=E2((t,e)=>Xn(T2,{...t,forwardedRef:e}));T2.displayName="Panel";Zl.displayName="forwardRef(Panel)";let Jl=null,Ut=null;function Ab(t,e){if(e){const n=(e&k2)!==0,r=(e&L2)!==0,i=(e&M2)!==0,o=(e&N2)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Kb(){Ut!==null&&(document.head.removeChild(Ut),Jl=null,Ut=null)}function Go(t,e){const n=Ab(t,e);Jl!==n&&(Jl=n,Ut===null&&(Ut=document.createElement("style"),document.head.appendChild(Ut)),Ut.innerHTML=`*{cursor: ${n}!important;}`)}function D2(t){return t.type==="keydown"}function I2(t){return t.type.startsWith("pointer")}function O2(t){return t.type.startsWith("mouse")}function uo(t){if(I2(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(O2(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fb(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function jb(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Hb(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ku(t),b:Ku(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;te(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Au(Ru(n.a)),b:Au(Ru(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const zb=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Bb(t){var e;const n=getComputedStyle((e=_2(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Vb(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Bb(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||zb.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ru(t){let e=t.length;for(;e--;){const n=t[e];if(te(n,"Missing node"),Vb(n))return n}return null}function Au(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ku(t){const e=[];for(;t;)e.push(t),t=_2(t);return e}function _2(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const k2=1,L2=2,M2=4,N2=8,Ub=Fb()==="coarse";let Xe=[],zn=!1,Dt=new Map,co=new Map;const Ir=new Set;function Wb(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Dt.get(l))!==null&&o!==void 0?o:0;return Dt.set(l,s+1),Ir.add(a),ji(),function(){var d;co.delete(t),Ir.delete(a);const f=(d=Dt.get(l))!==null&&d!==void 0?d:1;if(Dt.set(l,f-1),ji(),f===1&&Dt.delete(l),Xe.includes(a)){const v=Xe.indexOf(a);v>=0&&Xe.splice(v,1),Ga(),i("up",!0,null)}}}function Fu(t){const{target:e}=t,{x:n,y:r}=uo(t);zn=!0,Wa({target:e,x:n,y:r}),ji(),Xe.length>0&&(Hi("down",t),t.preventDefault(),t.stopPropagation())}function cr(t){const{x:e,y:n}=uo(t);if(zn&&t.buttons===0&&(zn=!1,Hi("up",t)),!zn){const{target:r}=t;Wa({target:r,x:e,y:n})}Hi("move",t),Ga(),Xe.length>0&&t.preventDefault()}function mn(t){const{target:e}=t,{x:n,y:r}=uo(t);co.clear(),zn=!1,Xe.length>0&&t.preventDefault(),Hi("up",t),Wa({target:e,x:n,y:r}),Ga(),ji()}function Wa({target:t,x:e,y:n}){Xe.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ir.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,v=Ub?l.coarse:l.fine;if(e>=u-v&&e<=d+v&&n>=f-v&&n<=s+v){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Hb(r,o)>0){let $=r,p=!1;for(;$&&!$.contains(o);){if(jb($.getBoundingClientRect(),a)){p=!0;break}$=$.parentElement}if(p)return}Xe.push(i)}})}function qo(t,e){co.set(t,e)}function Ga(){let t=!1,e=!1;Xe.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;co.forEach(r=>{n|=r}),t&&e?Go("intersection",n):t?Go("horizontal",n):e?Go("vertical",n):Kb()}function ji(){Dt.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",mn),n.removeEventListener("pointerdown",Fu),n.removeEventListener("pointerleave",cr),n.removeEventListener("pointermove",cr)}),window.removeEventListener("pointerup",mn),window.removeEventListener("pointercancel",mn),Ir.size>0&&(zn?(Xe.length>0&&Dt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",mn),n.addEventListener("pointerleave",cr),n.addEventListener("pointermove",cr))}),window.addEventListener("pointerup",mn),window.addEventListener("pointercancel",mn)):Dt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Fu,{capture:!0}),n.addEventListener("pointermove",cr))}))}function Hi(t,e){Ir.forEach(n=>{const{setResizeHandlerState:r}=n,i=Xe.includes(n);r(t,i,e)})}function Gb(){const[t,e]=Hn(0);return De(()=>e(n=>n+1),[])}function te(t,e){if(!t)throw console.error(e),Error(e)}const qa=10;function nn(t,e,n=qa){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function dt(t,e,n=qa){return nn(t,e,n)===0}function ke(t,e,n){return nn(t,e,n)===0}function qb(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!ke(i,o,n))return!1}return!0}function Kn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];te(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(nn(n,a)<0)if(o){const s=(i+a)/2;nn(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(qa)),n}function mr({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ke(t,0))return e;const l=[...e],[a,s]=r;te(a!=null,"Invalid first pivot index"),te(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,v=n[f];te(v,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:$,minSize:p=0}=v;if($){const b=e[f];if(te(b!=null,`Previous layout not found for panel index ${f}`),ke(b,g)){const m=p-b;nn(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,v=n[f];te(v,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:$,minSize:p=0}=v;if($){const b=e[f];if(te(b!=null,`Previous layout not found for panel index ${f}`),ke(b,p)){const m=b-g;nn(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let v=t<0?s:a,g=0;for(;;){const p=e[v];te(p!=null,`Previous layout not found for panel index ${v}`);const m=Kn({panelConstraints:n,panelIndex:v,size:100})-p;if(g+=m,v+=f,v<0||v>=n.length)break}const $=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-$:$}{let v=t<0?a:s;for(;v>=0&&v<n.length;){const g=Math.abs(t)-Math.abs(u),$=e[v];te($!=null,`Previous layout not found for panel index ${v}`);const p=$-g,b=Kn({panelConstraints:n,panelIndex:v,size:p});if(!ke($,b)&&(u+=$-b,l[v]=b,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?v--:v++}}if(qb(i,l))return i;{const f=t<0?s:a,v=e[f];te(v!=null,`Previous layout not found for panel index ${f}`);const g=v+u,$=Kn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=$,!ke($,g)){let p=g-$,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];te(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,D=Kn({panelConstraints:n,panelIndex:m,size:S});if(ke(C,D)||(p-=D-C,l[m]=D),ke(p,0))break;t>0?m--:m++}}}const d=l.reduce((f,v)=>v+f,0);return ke(d,100)?l:i}function Yb({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];te(a!=null,"No pivot index found"),e.forEach((f,v)=>{const{constraints:g}=f,{maxSize:$=100,minSize:p=0}=g;v===a?(r=p,i=$):(o+=p,l+=$)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function Or(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function R2(t,e,n=document){const i=Or(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function A2(t,e,n){const r=R2(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function K2(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function fo(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function Xb(t,e,n,r=document){var i,o,l,a;const s=fo(e,r),u=Or(t,r),d=s?u.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,v=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,v]}function Zb({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ie({didWarnAboutMissingResizeHandle:!1}),Gt(()=>{if(!o)return;const a=Or(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=Yb({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),v=a[s];if(v!=null){const g=i[s];te(g,`No panel data found for index "${s}"`),v.setAttribute("aria-controls",g.id),v.setAttribute("aria-valuemax",""+Math.round(u)),v.setAttribute("aria-valuemin",""+Math.round(d)),v.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Wt(()=>{if(!o)return;const a=e.current;te(a,"Eager values not found");const{panelDataArray:s}=a,u=K2(n,o);te(u!=null,`No group found for id "${n}"`);const d=Or(n,o);te(d,`No resize handles found for group id "${n}"`);const f=d.map(v=>{const g=v.getAttribute("data-panel-resize-handle-id");te(g,"Resize handle element has no handle id attribute");const[$,p]=Xb(n,g,s,o);if($==null||p==null)return()=>{};const b=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===$);if(C>=0){const S=s[C];te(S,`No panel data found for index ${C}`);const D=r[C],{collapsedSize:x=0,collapsible:T,minSize:I=0}=S.constraints;if(D!=null&&T){const h=mr({delta:ke(D,x)?I-x:x-D,initialLayout:r,panelConstraints:s.map(L=>L.constraints),pivotIndices:A2(n,g,o),prevLayout:r,trigger:"keyboard"});r!==h&&l(h)}}break}}};return v.addEventListener("keydown",b),()=>{v.removeEventListener("keydown",b)}});return()=>{f.forEach(v=>v())}},[o,t,e,n,r,i,l])}function ju(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function F2(t,e){const n=t==="horizontal",{x:r,y:i}=uo(e);return n?r:i}function Jb(t,e,n,r,i){const o=n==="horizontal",l=fo(e,i);te(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");te(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=F2(n,t),d=K2(a,i);te(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),v=o?f.width:f.height;return(u-s)/v*100}function Qb(t,e,n,r,i,o){if(D2(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Jb(t,e,n,r,o)}function ey({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function bn(t,e,n){e.forEach((r,i)=>{const o=t[i];te(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:v,onExpand:g,onResize:$}=l;$&&$(r,f),d&&(v||g)&&(g&&(f==null||dt(f,u))&&!dt(r,u)&&g(),v&&(f==null||!dt(f,u))&&dt(r,u)&&v())}})}function ri(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ty({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function ny(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Hu(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function j2(t){return`react-resizable-panels:${t}`}function H2(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function z2(t,e){try{const n=j2(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function ry(t,e,n){var r,i;const o=(r=z2(t,n))!==null&&r!==void 0?r:{},l=H2(e);return(i=o[l])!==null&&i!==void 0?i:null}function iy(t,e,n,r,i){var o;const l=j2(t),a=H2(e),s=(o=z2(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function zu({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!ke(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=Kn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!ke(i,0))for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=l+i,s=Kn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,ke(i,0)))break}return n}const oy=100,br={getItem:t=>(Hu(br),br.getItem(t)),setItem:(t,e)=>{Hu(br),br.setItem(t,e)}},Bu={};function B2({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=br,style:u,tagName:d="div",...f}){const v=Ua(o),g=Ie(null),[$,p]=Hn(null),[b,m]=Hn([]),C=Gb(),S=Ie({}),D=Ie(new Map),x=Ie(0),T=Ie({autoSaveId:t,direction:r,dragState:$,id:v,keyboardResizeBy:a,onLayout:l,storage:s}),I=Ie({layout:b,panelDataArray:[],panelDataArrayChanged:!1});Ie({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),P2(i,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:M}=I.current;return M},setLayout:M=>{const{onLayout:z}=T.current,{layout:j,panelDataArray:W}=I.current,G=zu({layout:M,panelConstraints:W.map(R=>R.constraints)});ju(j,G)||(m(G),I.current.layout=G,z&&z(G),bn(W,G,S.current))}}),[]),Gt(()=>{T.current.autoSaveId=t,T.current.direction=r,T.current.dragState=$,T.current.id=v,T.current.onLayout=l,T.current.storage=s}),Zb({committedValuesRef:T,eagerValuesRef:I,groupId:v,layout:b,panelDataArray:I.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Wt(()=>{const{panelDataArray:M}=I.current;if(t){if(b.length===0||b.length!==M.length)return;let z=Bu[t];z==null&&(z=ny(iy,oy),Bu[t]=z);const j=[...M],W=new Map(D.current);z(t,j,W,b,s)}},[t,b,s]),Wt(()=>{});const h=De(M=>{const{onLayout:z}=T.current,{layout:j,panelDataArray:W}=I.current;if(M.constraints.collapsible){const G=W.map(de=>de.constraints),{collapsedSize:R=0,panelSize:Z,pivotIndices:J}=Kt(W,M,j);if(te(Z!=null,`Panel size not found for panel "${M.id}"`),!dt(Z,R)){D.current.set(M.id,Z);const ce=Ln(W,M)===W.length-1?Z-R:R-Z,oe=mr({delta:ce,initialLayout:j,panelConstraints:G,pivotIndices:J,prevLayout:j,trigger:"imperative-api"});ri(j,oe)||(m(oe),I.current.layout=oe,z&&z(oe),bn(W,oe,S.current))}}},[]),L=De((M,z)=>{const{onLayout:j}=T.current,{layout:W,panelDataArray:G}=I.current;if(M.constraints.collapsible){const R=G.map(me=>me.constraints),{collapsedSize:Z=0,panelSize:J=0,minSize:de=0,pivotIndices:ce}=Kt(G,M,W),oe=z??de;if(dt(J,Z)){const me=D.current.get(M.id),re=me!=null&&me>=oe?me:oe,yt=Ln(G,M)===G.length-1?J-re:re-J,be=mr({delta:yt,initialLayout:W,panelConstraints:R,pivotIndices:ce,prevLayout:W,trigger:"imperative-api"});ri(W,be)||(m(be),I.current.layout=be,j&&j(be),bn(G,be,S.current))}}},[]),A=De(M=>{const{layout:z,panelDataArray:j}=I.current,{panelSize:W}=Kt(j,M,z);return te(W!=null,`Panel size not found for panel "${M.id}"`),W},[]),P=De((M,z)=>{const{panelDataArray:j}=I.current,W=Ln(j,M);return ty({defaultSize:z,dragState:$,layout:b,panelData:j,panelIndex:W})},[$,b]),F=De(M=>{const{layout:z,panelDataArray:j}=I.current,{collapsedSize:W=0,collapsible:G,panelSize:R}=Kt(j,M,z);return te(R!=null,`Panel size not found for panel "${M.id}"`),G===!0&&dt(R,W)},[]),y=De(M=>{const{layout:z,panelDataArray:j}=I.current,{collapsedSize:W=0,collapsible:G,panelSize:R}=Kt(j,M,z);return te(R!=null,`Panel size not found for panel "${M.id}"`),!G||nn(R,W)>0},[]),E=De(M=>{const{panelDataArray:z}=I.current;z.push(M),z.sort((j,W)=>{const G=j.order,R=W.order;return G==null&&R==null?0:G==null?-1:R==null?1:G-R}),I.current.panelDataArrayChanged=!0,C()},[C]);Gt(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:z,storage:j}=T.current,{layout:W,panelDataArray:G}=I.current;let R=null;if(M){const J=ry(M,G,j);J&&(D.current=new Map(Object.entries(J.expandToSizes)),R=J.layout)}R==null&&(R=ey({panelDataArray:G}));const Z=zu({layout:R,panelConstraints:G.map(J=>J.constraints)});ju(W,Z)||(m(Z),I.current.layout=Z,z&&z(Z),bn(G,Z,S.current))}}),Gt(()=>{const M=I.current;return()=>{M.layout=[]}},[]);const K=De(M=>{let z=!1;const j=g.current;return j&&window.getComputedStyle(j,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(G){G.preventDefault();const R=g.current;if(!R)return()=>null;const{direction:Z,dragState:J,id:de,keyboardResizeBy:ce,onLayout:oe}=T.current,{layout:me,panelDataArray:re}=I.current,{initialLayout:Je}=J??{},yt=A2(de,M,R);let be=Qb(G,M,Z,J,ce,R);const rr=Z==="horizontal";rr&&z&&(be=-be);const Fr=re.map(X=>X.constraints),_=mr({delta:be,initialLayout:Je??me,panelConstraints:Fr,pivotIndices:yt,prevLayout:me,trigger:D2(G)?"keyboard":"mouse-or-touch"}),Y=!ri(me,_);(I2(G)||O2(G))&&x.current!=be&&(x.current=be,!Y&&be!==0?rr?qo(M,be<0?k2:L2):qo(M,be<0?M2:N2):qo(M,0)),Y&&(m(_),I.current.layout=_,oe&&oe(_),bn(re,_,S.current))}},[]),B=De((M,z)=>{const{onLayout:j}=T.current,{layout:W,panelDataArray:G}=I.current,R=G.map(me=>me.constraints),{panelSize:Z,pivotIndices:J}=Kt(G,M,W);te(Z!=null,`Panel size not found for panel "${M.id}"`);const ce=Ln(G,M)===G.length-1?Z-z:z-Z,oe=mr({delta:ce,initialLayout:W,panelConstraints:R,pivotIndices:J,prevLayout:W,trigger:"imperative-api"});ri(W,oe)||(m(oe),I.current.layout=oe,j&&j(oe),bn(G,oe,S.current))},[]),H=De((M,z)=>{const{layout:j,panelDataArray:W}=I.current,{collapsedSize:G=0,collapsible:R}=z,{collapsedSize:Z=0,collapsible:J,maxSize:de=100,minSize:ce=0}=M.constraints,{panelSize:oe}=Kt(W,M,j);oe!=null&&(R&&J&&dt(oe,G)?dt(G,Z)||B(M,Z):oe<ce?B(M,ce):oe>de&&B(M,de))},[B]),O=De((M,z)=>{const{direction:j}=T.current,{layout:W}=I.current;if(!g.current)return;const G=fo(M,g.current);te(G,`Drag handle element not found for id "${M}"`);const R=F2(j,z);p({dragHandleId:M,dragHandleRect:G.getBoundingClientRect(),initialCursorPosition:R,initialLayout:W})},[]),q=De(()=>{p(null)},[]),V=De(M=>{const{panelDataArray:z}=I.current,j=Ln(z,M);j>=0&&(z.splice(j,1),delete S.current[M.id],I.current.panelDataArrayChanged=!0,C())},[C]),U=Lb(()=>({collapsePanel:h,direction:r,dragState:$,expandPanel:L,getPanelSize:A,getPanelStyle:P,groupId:v,isPanelCollapsed:F,isPanelExpanded:y,reevaluatePanelConstraints:H,registerPanel:E,registerResizeHandle:K,resizePanel:B,startDragging:O,stopDragging:q,unregisterPanel:V,panelGroupElement:g.current}),[h,$,r,L,A,P,v,F,y,H,E,K,B,O,q,V]),N={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Xn(so.Provider,{value:U},Xn(d,{...f,children:e,className:n,id:o,ref:g,style:{...N,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":v}))}const V2=E2((t,e)=>Xn(B2,{...t,forwardedRef:e}));B2.displayName="PanelGroup";V2.displayName="forwardRef(PanelGroup)";function Ln(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Kt(t,e,n){const r=Ln(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function ly({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Wt(()=>{if(t||n==null||r==null)return;const i=fo(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");te(a,`No group element found for id "${a}"`);const s=Or(a,r),u=R2(a,e,r);te(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function U2({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var v,g;const $=Ie(null),p=Ie({onDragging:l});Wt(()=>{p.current.onDragging=l});const b=x2(so);if(b===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:D,stopDragging:x,panelGroupElement:T}=b,I=Ua(i),[h,L]=Hn("inactive"),[A,P]=Hn(!1),[F,y]=Hn(null),E=Ie({state:h});Gt(()=>{E.current.state=h}),Wt(()=>{if(n)y(null);else{const O=S(I);y(()=>O)}},[n,I,S]);const K=(v=r==null?void 0:r.coarse)!==null&&v!==void 0?v:15,B=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Wt(()=>{if(n||F==null)return;const O=$.current;return te(O,"Element ref not attached"),Wb(I,O,m,{coarse:K,fine:B},(V,U,N)=>{if(U)switch(V){case"down":{L("drag"),te(N,'Expected event to be defined for "down" action'),D(I,N);const{onDragging:M}=p.current;M&&M(!0);break}case"move":{const{state:M}=E.current;M!=="drag"&&L("hover"),te(N,'Expected event to be defined for "move" action'),F(N);break}case"up":{L("hover"),x();const{onDragging:M}=p.current;M&&M(!1);break}}else L("inactive")})},[K,m,n,B,S,I,F,D,x]),ly({disabled:n,handleId:I,resizeHandler:F,panelGroupElement:T}),Xn(d,{...f,children:t,className:e,id:i,onBlur:()=>{P(!1),o==null||o()},onFocus:()=>{P(!0),a==null||a()},ref:$,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":h==="drag"?"pointer":A?"keyboard":void 0,"data-resize-handle-state":h,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":I})}U2.displayName="PanelResizeHandle";const ay=({children:t,isOpen:e})=>{const{isDesktop:n}=nr();return n?w.jsx("div",{className:Te("c__right-panel",{open:e}),children:t}):w.jsx("div",{className:Te("c__right-panel__mobile",{open:e}),children:t})},sy=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1})=>{const[u,d]=c.useState(!1),{isDesktop:f}=nr(),v=c.useRef(null),[g,$]=c.useState(ii(300,f)),[p,b]=c.useState(ii(450,f)),m=()=>{d(!u)};c.useEffect(()=>{const D=()=>{const x=Math.round(ii(300,f)),T=Math.round(Math.min(ii(450,f),40));$(f?x:0),b(a?T:x)};return D(),window.addEventListener("resize",()=>{D()}),()=>{window.removeEventListener("resize",D)}},[f,a]);const C=f?!n:!0,S=f?!n:u;return w.jsxs("div",{className:"c__main-layout",children:[w.jsx("div",{className:"c__main-layout__header",children:w.jsx(w2,{onTogglePanel:m,isPanelOpen:u,rightIcon:o,leftIcon:t,languages:l})}),w.jsx("div",{className:"c__main-layout__content",children:w.jsxs(V2,{autoSaveId:"persistance",direction:"horizontal",children:[C&&w.jsxs(w.Fragment,{children:[w.jsx(Zl,{ref:v,order:0,defaultSize:g,minSize:g,maxSize:p,children:w.jsx(C2,{isOpen:S,children:r})}),f&&w.jsx(U2,{className:"bg-greyscale-200",style:{width:"1px"}})]}),w.jsx(Zl,{order:1,children:w.jsxs("div",{className:"c__main-layout__content__center",children:[w.jsx("div",{className:"c__main-layout__content__center__children",children:e}),w.jsx(ay,{isOpen:s,children:i})]})})]})})]})},ii=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},uy=52,Ya=({size:t="sm"})=>w.jsx("div",{className:["c__spinner",t].join(" ")}),W2=({children:t,text:e,...n})=>w.jsxs("div",{className:"suite__label__container",children:[w.jsx("label",{...n,children:t}),e&&w.jsx("span",{className:"suite__label__container__description",children:e})]}),cy=({label:t,text:e,labelSide:n="right",children:r})=>w.jsxs("div",{className:Te("c__with-label",{[n]:!0}),children:[w.jsx(W2,{children:t,text:e}),r]});var Vu=1,dy=.9,fy=.8,hy=.17,Yo=.1,Xo=.999,py=.9999,gy=.99,vy=/[\\\/_+.#"@\[\(\{&]/,my=/[\\\/_+.#"@\[\(\{&]/g,by=/[\s-]/,G2=/[\s-]/g;function Ql(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Vu:gy;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,v,g,$;u>=0;)f=Ql(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Vu:vy.test(t.charAt(u-1))?(f*=fy,g=t.slice(i,u-1).match(my),g&&i>0&&(f*=Math.pow(Xo,g.length))):by.test(t.charAt(u-1))?(f*=dy,$=t.slice(i,u-1).match(G2),$&&i>0&&(f*=Math.pow(Xo,$.length))):(f*=hy,i>0&&(f*=Math.pow(Xo,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=py)),(f<Yo&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(v=Ql(t,e,n,r,u+1,o+2,l),v*Yo>f&&(f=v*Yo)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function Uu(t){return t.toLowerCase().replace(G2," ")}function yy(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Ql(t,e,Uu(t),Uu(e),0,0,{})}function _t(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Wu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function q2(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Wu(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Wu(t[i],null)}}}}function hn(...t){return k.useCallback(q2(...t),t)}function $y(t,e){const n=k.createContext(e),r=o=>{const{children:l,...a}=o,s=k.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=k.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function Sy(t,e=[]){let n=[];function r(o,l){const a=k.createContext(l),s=n.length;n=[...n,l];const u=f=>{var m;const{scope:v,children:g,...$}=f,p=((m=v==null?void 0:v[t])==null?void 0:m[s])||a,b=k.useMemo(()=>$,Object.values($));return w.jsx(p.Provider,{value:b,children:g})};u.displayName=o+"Provider";function d(f,v){var p;const g=((p=v==null?void 0:v[t])==null?void 0:p[s])||a,$=k.useContext(g);if($)return $;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>k.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return k.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,wy(i,...e)]}function wy(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return k.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var zi=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Cy=k.useId||(()=>{}),Ey=0;function ht(t){const[e,n]=k.useState(Cy());return zi(()=>{n(r=>r??String(Ey++))},[t]),e?`radix-${e}`:""}function rn(t){const e=k.useRef(t);return k.useEffect(()=>{e.current=t}),k.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function xy({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Py({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:r,a=rn(n),s=k.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[l,s]}function Py({defaultProp:t,onChange:e}){const n=k.useState(t),[r]=n,i=k.useRef(r),o=rn(e);return k.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Xa=k.forwardRef((t,e)=>{const{children:n,...r}=t,i=k.Children.toArray(n),o=i.find(Dy);if(o){const l=o.props.children,a=i.map(s=>s===o?k.Children.count(l)>1?k.Children.only(null):k.isValidElement(l)?l.props.children:null:s);return w.jsx(ea,{...r,ref:e,children:k.isValidElement(l)?k.cloneElement(l,void 0,a):null})}return w.jsx(ea,{...r,ref:e,children:n})});Xa.displayName="Slot";var ea=k.forwardRef((t,e)=>{const{children:n,...r}=t;if(k.isValidElement(n)){const i=Oy(n),o=Iy(r,n.props);return n.type!==k.Fragment&&(o.ref=e?q2(e,i):i),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null});ea.displayName="SlotClone";var Ty=({children:t})=>w.jsx(w.Fragment,{children:t});function Dy(t){return k.isValidElement(t)&&t.type===Ty}function Iy(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Oy(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var _y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],we=_y.reduce((t,e)=>{const n=k.forwardRef((r,i)=>{const{asChild:o,...l}=r,a=o?Xa:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function ky(t,e){t&&_p.flushSync(()=>t.dispatchEvent(e))}function Ly(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t);k.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var My="DismissableLayer",ta="dismissableLayer.update",Ny="dismissableLayer.pointerDownOutside",Ry="dismissableLayer.focusOutside",Gu,Y2=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X2=k.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=k.useContext(Y2),[d,f]=k.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=k.useState({}),$=hn(e,I=>f(I)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(b),C=d?p.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,D=C>=m,x=Fy(I=>{const h=I.target,L=[...u.branches].some(A=>A.contains(h));!D||L||(i==null||i(I),l==null||l(I),I.defaultPrevented||a==null||a())},v),T=jy(I=>{const h=I.target;[...u.branches].some(A=>A.contains(h))||(o==null||o(I),l==null||l(I),I.defaultPrevented||a==null||a())},v);return Ly(I=>{C===u.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&a&&(I.preventDefault(),a()))},v),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gu=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),qu(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Gu)}},[d,v,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),qu())},[d,u]),k.useEffect(()=>{const I=()=>g({});return document.addEventListener(ta,I),()=>document.removeEventListener(ta,I)},[]),w.jsx(we.div,{...s,ref:$,style:{pointerEvents:S?D?"auto":"none":void 0,...t.style},onFocusCapture:_t(t.onFocusCapture,T.onFocusCapture),onBlurCapture:_t(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_t(t.onPointerDownCapture,x.onPointerDownCapture)})});X2.displayName=My;var Ay="DismissableLayerBranch",Ky=k.forwardRef((t,e)=>{const n=k.useContext(Y2),r=k.useRef(null),i=hn(e,r);return k.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),w.jsx(we.div,{...t,ref:i})});Ky.displayName=Ay;function Fy(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t),r=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){Z2(Ny,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function jy(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t),r=k.useRef(!1);return k.useEffect(()=>{const i=o=>{o.target&&!r.current&&Z2(Ry,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qu(){const t=new CustomEvent(ta);document.dispatchEvent(t)}function Z2(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?ky(i,o):i.dispatchEvent(o)}var Zo="focusScope.autoFocusOnMount",Jo="focusScope.autoFocusOnUnmount",Yu={bubbles:!1,cancelable:!0},Hy="FocusScope",J2=k.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=k.useState(null),u=rn(i),d=rn(o),f=k.useRef(null),v=hn(e,p=>s(p)),g=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let p=function(S){if(g.paused||!a)return;const D=S.target;a.contains(D)?f.current=D:Ct(f.current,{select:!0})},b=function(S){if(g.paused||!a)return;const D=S.relatedTarget;D!==null&&(a.contains(D)||Ct(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const x of S)x.removedNodes.length>0&&Ct(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),C.disconnect()}}},[r,a,g.paused]),k.useEffect(()=>{if(a){Zu.add(g);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Zo,Yu);a.addEventListener(Zo,u),a.dispatchEvent(m),m.defaultPrevented||(zy(Gy(Q2(a)),{select:!0}),document.activeElement===p&&Ct(a))}return()=>{a.removeEventListener(Zo,u),setTimeout(()=>{const m=new CustomEvent(Jo,Yu);a.addEventListener(Jo,d),a.dispatchEvent(m),m.defaultPrevented||Ct(p??document.body,{select:!0}),a.removeEventListener(Jo,d),Zu.remove(g)},0)}}},[a,u,d,g]);const $=k.useCallback(p=>{if(!n&&!r||g.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(b&&m){const C=p.currentTarget,[S,D]=By(C);S&&D?!p.shiftKey&&m===D?(p.preventDefault(),n&&Ct(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&Ct(D,{select:!0})):m===C&&p.preventDefault()}},[n,r,g.paused]);return w.jsx(we.div,{tabIndex:-1,...l,ref:v,onKeyDown:$})});J2.displayName=Hy;function zy(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ct(r,{select:e}),document.activeElement!==n)return}function By(t){const e=Q2(t),n=Xu(e,t),r=Xu(e.reverse(),t);return[n,r]}function Q2(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Xu(t,e){for(const n of t)if(!Vy(n,{upTo:e}))return n}function Vy(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Uy(t){return t instanceof HTMLInputElement&&"select"in t}function Ct(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Uy(t)&&e&&t.select()}}var Zu=Wy();function Wy(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ju(t,e),t.unshift(e)},remove(e){var n;t=Ju(t,e),(n=t[0])==null||n.resume()}}}function Ju(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Gy(t){return t.filter(e=>e.tagName!=="A")}var qy="Portal",eh=k.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=k.useState(!1);zi(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Nt.createPortal(w.jsx(we.div,{...r,ref:e}),l):null});eh.displayName=qy;function Yy(t,e){return k.useReducer((n,r)=>e[n][r]??n,t)}var ho=t=>{const{present:e,children:n}=t,r=Xy(e),i=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),o=hn(r.ref,Zy(i));return typeof n=="function"||r.isPresent?k.cloneElement(i,{ref:o}):null};ho.displayName="Presence";function Xy(t){const[e,n]=k.useState(),r=k.useRef({}),i=k.useRef(t),o=k.useRef("none"),l=t?"mounted":"unmounted",[a,s]=Yy(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=oi(r.current);o.current=a==="mounted"?u:"none"},[a]),zi(()=>{const u=r.current,d=i.current;if(d!==t){const v=o.current,g=oi(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&v!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),zi(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=g=>{const p=oi(r.current).includes(g.animationName);if(g.target===e&&p&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},v=g=>{g.target===e&&(o.current=oi(r.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:k.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function oi(t){return(t==null?void 0:t.animationName)||"none"}function Zy(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Qo=0;function Jy(){k.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Qu()),document.body.insertAdjacentElement("beforeend",t[1]??Qu()),Qo++,()=>{Qo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Qo--}},[])}function Qu(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var vi="right-scroll-bar-position",mi="width-before-scroll-bar",Qy="with-scroll-bars-hidden",e9="--removed-body-scroll-bar-size";function el(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function t9(t,e){var n=c.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var n9=typeof window<"u"?k.useLayoutEffect:k.useEffect,ec=new WeakMap;function r9(t,e){var n=t9(null,function(r){return t.forEach(function(i){return el(i,r)})});return n9(function(){var r=ec.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||el(a,null)}),o.forEach(function(a){i.has(a)||el(a,l)})}ec.set(n,t)},[t]),n}function i9(t){return t}function o9(t,e){e===void 0&&(e=i9);var n=[],r=!1,i={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]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function l9(t){t===void 0&&(t={});var e=o9(null);return e.options=tt({async:!0,ssr:!1},t),e}var th=function(t){var e=t.sideCar,n=rf(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,tt({},n))};th.isSideCarExport=!0;function a9(t,e){return t.useMedium(e),th}var nh=l9(),tl=function(){},po=k.forwardRef(function(t,e){var n=k.useRef(null),r=k.useState({onScrollCapture:tl,onWheelCapture:tl,onTouchMoveCapture:tl}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,v=t.sideCar,g=t.noIsolation,$=t.inert,p=t.allowPinchZoom,b=t.as,m=b===void 0?"div":b,C=t.gapMode,S=rf(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=v,x=r9([n,e]),T=tt(tt({},S),i);return k.createElement(k.Fragment,null,d&&k.createElement(D,{sideCar:nh,removeScrollBar:u,shards:f,noIsolation:g,inert:$,setCallbacks:o,allowPinchZoom:!!p,lockRef:n,gapMode:C}),l?k.cloneElement(k.Children.only(a),tt(tt({},T),{ref:x})):k.createElement(m,tt({},T,{className:s,ref:x}),a))});po.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};po.classNames={fullWidth:mi,zeroRight:vi};var s9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=s9();return e&&t.setAttribute("nonce",e),t}function c9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function d9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var f9=function(){var t=0,e=null;return{add:function(n){t==0&&(e=u9())&&(c9(e,n),d9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},h9=function(){var t=f9();return function(e,n){k.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},rh=function(){var t=h9(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},p9={left:0,top:0,right:0,gap:0},nl=function(t){return parseInt(t||"",10)||0},g9=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[nl(n),nl(r),nl(i)]},v9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return p9;var e=g9(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},m9=rh(),Bn="data-scroll-locked",b9=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
48
|
+
.`.concat(Qy,` {
|
|
49
49
|
overflow: hidden `).concat(r,`;
|
|
50
|
-
padding-right: `).concat(
|
|
50
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
51
51
|
}
|
|
52
|
-
body[`).concat(
|
|
52
|
+
body[`).concat(Bn,`] {
|
|
53
53
|
overflow: hidden `).concat(r,`;
|
|
54
54
|
overscroll-behavior: contain;
|
|
55
55
|
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
56
56
|
padding-left: `.concat(i,`px;
|
|
57
57
|
padding-top: `).concat(o,`px;
|
|
58
|
-
padding-right: `).concat(
|
|
58
|
+
padding-right: `).concat(l,`px;
|
|
59
59
|
margin-left:0;
|
|
60
60
|
margin-top:0;
|
|
61
|
-
margin-right: `).concat(
|
|
62
|
-
`),n==="padding"&&"padding-right: ".concat(
|
|
61
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
62
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.`).concat(
|
|
66
|
-
right: `).concat(
|
|
65
|
+
.`).concat(vi,` {
|
|
66
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.`).concat(
|
|
70
|
-
margin-right: `).concat(
|
|
69
|
+
.`).concat(mi,` {
|
|
70
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.`).concat(
|
|
73
|
+
.`).concat(vi," .").concat(vi,` {
|
|
74
74
|
right: 0 `).concat(r,`;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.`).concat(
|
|
77
|
+
.`).concat(mi," .").concat(mi,` {
|
|
78
78
|
margin-right: 0 `).concat(r,`;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
body[`).concat(
|
|
82
|
-
`).concat(
|
|
81
|
+
body[`).concat(Bn,`] {
|
|
82
|
+
`).concat(e9,": ").concat(a,`px;
|
|
83
83
|
}
|
|
84
|
-
`)},
|
|
84
|
+
`)},tc=function(){var t=parseInt(document.body.getAttribute(Bn)||"0",10);return isFinite(t)?t:0},y9=function(){k.useEffect(function(){return document.body.setAttribute(Bn,(tc()+1).toString()),function(){var t=tc()-1;t<=0?document.body.removeAttribute(Bn):document.body.setAttribute(Bn,t.toString())}},[])},$9=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;y9();var o=k.useMemo(function(){return v9(i)},[i]);return k.createElement(m9,{styles:b9(o,!e,i,n?"":"!important")})},na=!1;if(typeof window<"u")try{var li=Object.defineProperty({},"passive",{get:function(){return na=!0,!0}});window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{na=!1}var yn=na?{passive:!1}:!1,S9=function(t){return t.tagName==="TEXTAREA"},ih=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!S9(t)&&n[e]==="visible")},w9=function(t){return ih(t,"overflowY")},C9=function(t){return ih(t,"overflowX")},nc=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=oh(t,r);if(i){var o=lh(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},E9=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},x9=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},oh=function(t,e){return t==="v"?w9(e):C9(e)},lh=function(t,e){return t==="v"?E9(e):x9(e)},P9=function(t,e){return t==="h"&&e==="rtl"?-1:1},T9=function(t,e,n,r,i){var o=P9(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),u=!1,d=l>0,f=0,v=0;do{var g=lh(t,a),$=g[0],p=g[1],b=g[2],m=p-b-o*$;($||m)&&oh(t,a)&&(f+=m,v+=$),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(v)<1)&&(u=!0),u},ai=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},rc=function(t){return[t.deltaX,t.deltaY]},ic=function(t){return t&&"current"in t?t.current:t},D9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},I9=function(t){return`
|
|
85
85
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
86
86
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
87
|
-
`)},
|
|
87
|
+
`)},O9=0,$n=[];function _9(t){var e=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),i=k.useState(O9++)[0],o=k.useState(rh)[0],l=k.useRef(t);k.useEffect(function(){l.current=t},[t]),k.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Zv([t.lockRef.current],(t.shards||[]).map(ic),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=k.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!l.current.allowPinchZoom;var m=ai(p),C=n.current,S="deltaX"in p?p.deltaX:C[0]-m[0],D="deltaY"in p?p.deltaY:C[1]-m[1],x,T=p.target,I=Math.abs(S)>Math.abs(D)?"h":"v";if("touches"in p&&I==="h"&&T.type==="range")return!1;var h=nc(I,T);if(!h)return!0;if(h?x=I:(x=I==="v"?"h":"v",h=nc(I,T)),!h)return!1;if(!r.current&&"changedTouches"in p&&(S||D)&&(r.current=x),!x)return!0;var L=r.current||x;return T9(L,b,p,L==="h"?S:D)},[]),s=k.useCallback(function(p){var b=p;if(!(!$n.length||$n[$n.length-1]!==o)){var m="deltaY"in b?rc(b):ai(b),C=e.current.filter(function(x){return x.name===b.type&&(x.target===b.target||b.target===x.shadowParent)&&D9(x.delta,m)})[0];if(C&&C.should){b.cancelable&&b.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(ic).filter(Boolean).filter(function(x){return x.contains(b.target)}),D=S.length>0?a(b,S[0]):!l.current.noIsolation;D&&b.cancelable&&b.preventDefault()}}},[]),u=k.useCallback(function(p,b,m,C){var S={name:p,delta:b,target:m,should:C,shadowParent:k9(m)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(D){return D!==S})},1)},[]),d=k.useCallback(function(p){n.current=ai(p),r.current=void 0},[]),f=k.useCallback(function(p){u(p.type,rc(p),p.target,a(p,t.lockRef.current))},[]),v=k.useCallback(function(p){u(p.type,ai(p),p.target,a(p,t.lockRef.current))},[]);k.useEffect(function(){return $n.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",s,yn),document.addEventListener("touchmove",s,yn),document.addEventListener("touchstart",d,yn),function(){$n=$n.filter(function(p){return p!==o}),document.removeEventListener("wheel",s,yn),document.removeEventListener("touchmove",s,yn),document.removeEventListener("touchstart",d,yn)}},[]);var g=t.removeScrollBar,$=t.inert;return k.createElement(k.Fragment,null,$?k.createElement(o,{styles:I9(i)}):null,g?k.createElement($9,{gapMode:t.gapMode}):null)}function k9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const L9=a9(nh,_9);var ah=k.forwardRef(function(t,e){return k.createElement(po,tt({},t,{ref:e,sideCar:L9}))});ah.classNames=po.classNames;var M9=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Sn=new WeakMap,si=new WeakMap,ui={},rl=0,sh=function(t){return t&&(t.host||sh(t.parentNode))},N9=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=sh(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},R9=function(t,e,n,r){var i=N9(e,Array.isArray(t)?t:[t]);ui[n]||(ui[n]=new WeakMap);var o=ui[n],l=[],a=new Set,s=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))d(v);else try{var g=v.getAttribute(r),$=g!==null&&g!=="false",p=(Sn.get(v)||0)+1,b=(o.get(v)||0)+1;Sn.set(v,p),o.set(v,b),l.push(v),p===1&&$&&si.set(v,!0),b===1&&v.setAttribute(n,"true"),$||v.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return d(e),a.clear(),rl++,function(){l.forEach(function(f){var v=Sn.get(f)-1,g=o.get(f)-1;Sn.set(f,v),o.set(f,g),v||(si.has(f)||f.removeAttribute(r),si.delete(f)),g||f.removeAttribute(n)}),rl--,rl||(Sn=new WeakMap,Sn=new WeakMap,si=new WeakMap,ui={})}},A9=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=M9(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),R9(r,i,n,"aria-hidden")):function(){return null}},Za="Dialog",[uh,r6]=Sy(Za),[K9,Ze]=uh(Za),ch=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=k.useRef(null),s=k.useRef(null),[u=!1,d]=xy({prop:r,defaultProp:i,onChange:o});return w.jsx(K9,{scope:e,triggerRef:a,contentRef:s,contentId:ht(),titleId:ht(),descriptionId:ht(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};ch.displayName=Za;var dh="DialogTrigger",F9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(dh,n),o=hn(e,i.triggerRef);return w.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":es(i.open),...r,ref:o,onClick:_t(t.onClick,i.onOpenToggle)})});F9.displayName=dh;var Ja="DialogPortal",[j9,fh]=uh(Ja,{forceMount:void 0}),hh=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Ze(Ja,e);return w.jsx(j9,{scope:e,forceMount:n,children:k.Children.map(r,l=>w.jsx(ho,{present:n||o.open,children:w.jsx(eh,{asChild:!0,container:i,children:l})}))})};hh.displayName=Ja;var Bi="DialogOverlay",ph=k.forwardRef((t,e)=>{const n=fh(Bi,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ze(Bi,t.__scopeDialog);return o.modal?w.jsx(ho,{present:r||o.open,children:w.jsx(H9,{...i,ref:e})}):null});ph.displayName=Bi;var H9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(Bi,n);return w.jsx(ah,{as:Xa,allowPinchZoom:!0,shards:[i.contentRef],children:w.jsx(we.div,{"data-state":es(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),on="DialogContent",gh=k.forwardRef((t,e)=>{const n=fh(on,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ze(on,t.__scopeDialog);return w.jsx(ho,{present:r||o.open,children:o.modal?w.jsx(z9,{...i,ref:e}):w.jsx(B9,{...i,ref:e})})});gh.displayName=on;var z9=k.forwardRef((t,e)=>{const n=Ze(on,t.__scopeDialog),r=k.useRef(null),i=hn(e,n.contentRef,r);return k.useEffect(()=>{const o=r.current;if(o)return A9(o)},[]),w.jsx(vh,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_t(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:_t(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:_t(t.onFocusOutside,o=>o.preventDefault())})}),B9=k.forwardRef((t,e)=>{const n=Ze(on,t.__scopeDialog),r=k.useRef(!1),i=k.useRef(!1);return w.jsx(vh,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var s,u;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),vh=k.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=Ze(on,n),s=k.useRef(null),u=hn(e,s);return Jy(),w.jsxs(w.Fragment,{children:[w.jsx(J2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:w.jsx(X2,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":es(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(G9,{titleId:a.titleId}),w.jsx(Y9,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Qa="DialogTitle",V9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(Qa,n);return w.jsx(we.h2,{id:i.titleId,...r,ref:e})});V9.displayName=Qa;var mh="DialogDescription",U9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(mh,n);return w.jsx(we.p,{id:i.descriptionId,...r,ref:e})});U9.displayName=mh;var bh="DialogClose",W9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(bh,n);return w.jsx(we.button,{type:"button",...r,ref:e,onClick:_t(t.onClick,()=>i.onOpenChange(!1))})});W9.displayName=bh;function es(t){return t?"open":"closed"}var yh="DialogTitleWarning",[i6,$h]=$y(yh,{contentName:on,titleName:Qa,docsSlug:"dialog"}),G9=({titleId:t})=>{const e=$h(yh),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
88
88
|
|
|
89
89
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
90
90
|
|
|
91
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return T.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Uv="DialogDescriptionWarning",Gv=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${af(Uv).contentName}}.`;return T.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},qv=Yd,Yv=Jd,Zv=Qd,Xv=ef,Rn='[cmdk-group=""]',ro='[cmdk-group-items=""]',Jv='[cmdk-group-heading=""]',Na='[cmdk-item=""]',ps=`${Na}:not([aria-disabled="true"])`,Go="cmdk-item-select",Ct="data-value",Qv=(t,e,n)=>m5(t,e,n),lf=T.createContext(void 0),lr=()=>T.useContext(lf),sf=T.createContext(void 0),Ra=()=>T.useContext(sf),uf=T.createContext(void 0),cf=T.forwardRef((t,e)=>{let n=sn(()=>{var L,N;return{search:"",value:(N=(L=t.value)!=null?L:t.defaultValue)!=null?N:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=sn(()=>new Set),i=sn(()=>new Map),o=sn(()=>new Map),a=sn(()=>new Set),l=df(t),{label:s,children:u,value:c,onValueChange:h,filter:p,shouldFilter:g,loop:m,disablePointerSelection:f=!1,vimBindings:v=!0,...y}=t,C=it(),S=it(),P=it(),x=T.useRef(null),O=c1();Kt(()=>{if(c!==void 0){let L=c.trim();n.current.value=L,D.emit()}},[c]),Kt(()=>{O(6,E)},[]);let D=T.useMemo(()=>({subscribe:L=>(a.current.add(L),()=>a.current.delete(L)),snapshot:()=>n.current,setState:(L,N,K)=>{var A,z,B;if(!Object.is(n.current[L],N)){if(n.current[L]=N,L==="search")H(),V(),O(1,R);else if(L==="value"&&(K||O(5,E),((A=l.current)==null?void 0:A.value)!==void 0)){let F=N??"";(B=(z=l.current).onValueChange)==null||B.call(z,F);return}D.emit()}},emit:()=>{a.current.forEach(L=>L())}}),[]),b=T.useMemo(()=>({value:(L,N,K)=>{var A;N!==((A=o.current.get(L))==null?void 0:A.value)&&(o.current.set(L,{value:N,keywords:K}),n.current.filtered.items.set(L,k(N,K)),O(2,()=>{V(),D.emit()}))},item:(L,N)=>(r.current.add(L),N&&(i.current.has(N)?i.current.get(N).add(L):i.current.set(N,new Set([L]))),O(3,()=>{H(),V(),n.current.value||R(),D.emit()}),()=>{o.current.delete(L),r.current.delete(L),n.current.filtered.items.delete(L);let K=I();O(4,()=>{H(),(K==null?void 0:K.getAttribute("id"))===L&&R(),D.emit()})}),group:L=>(i.current.has(L)||i.current.set(L,new Set),()=>{o.current.delete(L),i.current.delete(L)}),filter:()=>l.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:x}),[]);function k(L,N){var K,A;let z=(A=(K=l.current)==null?void 0:K.filter)!=null?A:Qv;return L?z(L,n.current.search,N):0}function V(){if(!n.current.search||l.current.shouldFilter===!1)return;let L=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(A=>{let z=i.current.get(A),B=0;z.forEach(F=>{let X=L.get(F);B=Math.max(X,B)}),N.push([A,B])});let K=x.current;j().sort((A,z)=>{var B,F;let X=A.getAttribute("id"),te=z.getAttribute("id");return((B=L.get(te))!=null?B:0)-((F=L.get(X))!=null?F:0)}).forEach(A=>{let z=A.closest(ro);z?z.appendChild(A.parentElement===z?A:A.closest(`${ro} > *`)):K.appendChild(A.parentElement===K?A:A.closest(`${ro} > *`))}),N.sort((A,z)=>z[1]-A[1]).forEach(A=>{var z;let B=(z=x.current)==null?void 0:z.querySelector(`${Rn}[${Ct}="${encodeURIComponent(A[0])}"]`);B==null||B.parentElement.appendChild(B)})}function R(){let L=j().find(K=>K.getAttribute("aria-disabled")!=="true"),N=L==null?void 0:L.getAttribute(Ct);D.setState("value",N||void 0)}function H(){var L,N,K,A;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let B of r.current){let F=(N=(L=o.current.get(B))==null?void 0:L.value)!=null?N:"",X=(A=(K=o.current.get(B))==null?void 0:K.keywords)!=null?A:[],te=k(F,X);n.current.filtered.items.set(B,te),te>0&&z++}for(let[B,F]of i.current)for(let X of F)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(B);break}n.current.filtered.count=z}function E(){var L,N,K;let A=I();A&&(((L=A.parentElement)==null?void 0:L.firstChild)===A&&((K=(N=A.closest(Rn))==null?void 0:N.querySelector(Jv))==null||K.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function I(){var L;return(L=x.current)==null?void 0:L.querySelector(`${Na}[aria-selected="true"]`)}function j(){var L;return Array.from(((L=x.current)==null?void 0:L.querySelectorAll(ps))||[])}function W(L){let N=j()[L];N&&D.setState("value",N.getAttribute(Ct))}function Z(L){var N;let K=I(),A=j(),z=A.findIndex(F=>F===K),B=A[z+L];(N=l.current)!=null&&N.loop&&(B=z+L<0?A[A.length-1]:z+L===A.length?A[0]:A[z+L]),B&&D.setState("value",B.getAttribute(Ct))}function _(L){let N=I(),K=N==null?void 0:N.closest(Rn),A;for(;K&&!A;)K=L>0?s1(K,Rn):u1(K,Rn),A=K==null?void 0:K.querySelector(ps);A?D.setState("value",A.getAttribute(Ct)):Z(L)}let M=()=>W(j().length-1),G=L=>{L.preventDefault(),L.metaKey?M():L.altKey?_(1):Z(1)},Y=L=>{L.preventDefault(),L.metaKey?W(0):L.altKey?_(-1):Z(-1)};return T.createElement(be.div,{ref:e,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:L=>{var N;if((N=y.onKeyDown)==null||N.call(y,L),!L.defaultPrevented)switch(L.key){case"n":case"j":{v&&L.ctrlKey&&G(L);break}case"ArrowDown":{G(L);break}case"p":case"k":{v&&L.ctrlKey&&Y(L);break}case"ArrowUp":{Y(L);break}case"Home":{L.preventDefault(),W(0);break}case"End":{L.preventDefault(),M();break}case"Enter":if(!L.nativeEvent.isComposing&&L.keyCode!==229){L.preventDefault();let K=I();if(K){let A=new Event(Go);K.dispatchEvent(A)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:b.inputId,id:b.labelId,style:f1},s),Ei(t,L=>T.createElement(sf.Provider,{value:D},T.createElement(lf.Provider,{value:b},L))))}),e1=T.forwardRef((t,e)=>{var n,r;let i=it(),o=T.useRef(null),a=T.useContext(uf),l=lr(),s=df(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Kt(()=>{if(!u)return l.item(i,a==null?void 0:a.id)},[u]);let c=ff(i,o,[t.value,t.children,o],t.keywords),h=Ra(),p=Ft(O=>O.value&&O.value===c.current),g=Ft(O=>u||l.filter()===!1?!0:O.search?O.filtered.items.get(i)>0:!0);T.useEffect(()=>{let O=o.current;if(!(!O||t.disabled))return O.addEventListener(Go,m),()=>O.removeEventListener(Go,m)},[g,t.onSelect,t.disabled]);function m(){var O,D;f(),(D=(O=s.current).onSelect)==null||D.call(O,c.current)}function f(){h.setState("value",c.current,!0)}if(!g)return null;let{disabled:v,value:y,onSelect:C,forceMount:S,keywords:P,...x}=t;return T.createElement(be.div,{ref:Qn([o,e]),...x,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||l.getDisablePointerSelection()?void 0:f,onClick:v?void 0:m},t.children)}),t1=T.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,a=it(),l=T.useRef(null),s=T.useRef(null),u=it(),c=lr(),h=Ft(g=>i||c.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);Kt(()=>c.group(a),[]),ff(a,l,[t.value,t.heading,s]);let p=T.useMemo(()=>({id:a,forceMount:i}),[i]);return T.createElement(be.div,{ref:Qn([l,e]),...o,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},n&&T.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Ei(t,g=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},T.createElement(uf.Provider,{value:p},g))))}),n1=T.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=T.useRef(null),o=Ft(a=>!a.search);return!n&&!o?null:T.createElement(be.div,{ref:Qn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),r1=T.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=Ra(),a=Ft(c=>c.search),l=Ft(c=>c.value),s=lr(),u=T.useMemo(()=>{var c;let h=(c=s.listInnerRef.current)==null?void 0:c.querySelector(`${Na}[${Ct}="${encodeURIComponent(l)}"]`);return h==null?void 0:h.getAttribute("id")},[]);return T.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),T.createElement(be.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":u,id:s.inputId,type:"text",value:i?t.value:a,onChange:c=>{i||o.setState("search",c.target.value),n==null||n(c.target.value)}})}),i1=T.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=T.useRef(null),a=T.useRef(null),l=lr();return T.useEffect(()=>{if(a.current&&o.current){let s=a.current,u=o.current,c,h=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=s.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return h.observe(s),()=>{cancelAnimationFrame(c),h.unobserve(s)}}},[]),T.createElement(be.div,{ref:Qn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:l.listId},Ei(t,s=>T.createElement("div",{ref:Qn([a,l.listInnerRef]),"cmdk-list-sizer":""},s)))}),o1=T.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:a,...l}=t;return T.createElement(qv,{open:n,onOpenChange:r},T.createElement(Yv,{container:a},T.createElement(Zv,{"cmdk-overlay":"",className:i}),T.createElement(Xv,{"aria-label":t.label,"cmdk-dialog":"",className:o},T.createElement(cf,{ref:e,...l}))))}),a1=T.forwardRef((t,e)=>Ft(n=>n.filtered.count===0)?T.createElement(be.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),l1=T.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return T.createElement(be.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Ei(t,a=>T.createElement("div",{"aria-hidden":!0},a)))}),Jn=Object.assign(cf,{List:i1,Item:e1,Input:r1,Group:t1,Separator:n1,Dialog:o1,Empty:a1,Loading:l1});function s1(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function u1(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function df(t){let e=T.useRef(t);return Kt(()=>{e.current=t}),e}var Kt=typeof window>"u"?T.useEffect:T.useLayoutEffect;function sn(t){let e=T.useRef();return e.current===void 0&&(e.current=t()),e}function Qn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Ft(t){let e=Ra(),n=()=>t(e.snapshot());return da.useSyncExternalStore(e.subscribe,n,n)}function ff(t,e,n,r=[]){let i=T.useRef(),o=lr();return Kt(()=>{var a;let l=(()=>{var u;for(let c of n){if(typeof c=="string")return c.trim();if(typeof c=="object"&&"current"in c)return c.current?(u=c.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,l,s),(a=e.current)==null||a.setAttribute(Ct,l),i.current=l}),i}var c1=()=>{let[t,e]=T.useState(),n=sn(()=>new Map);return Kt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function d1(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Ei({asChild:t,children:e},n){return t&&T.isValidElement(e)?T.cloneElement(d1(e),{ref:e.ref},n(e.props.children)):n(e)}var f1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const qo=({withPadding:t=!0})=>w.jsx("div",{className:ot("c__horizontal-separator",{"with-padding":t})}),hf=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:a}=_t.useCunningham();return i?w.jsxs(w.Fragment,{children:[i,o&&w.jsx(qo,{})]}):w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"quick-search-input-container",children:[!t&&w.jsx("span",{className:"material-icons",children:"search"}),t&&w.jsx("div",{children:w.jsx(Pa,{size:"sm"})}),w.jsx(Jn.Input,{autoFocus:!0,"aria-label":a("Quick search input"),onClick:l=>{l.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&w.jsx(qo,{withPadding:!1})]})},h1=t=>{let e=!1;return d.Children.forEach(t,n=>{e=e||!!n}),e},p1=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:a,children:l})=>{const s=d.useRef(null);return w.jsx(w.Fragment,{children:w.jsx("div",{className:"quick-search-container",children:w.jsxs(Jn,{label:o,shouldFilter:!1,ref:s,children:[i&&w.jsx(hf,{loading:r,withSeparator:h1(l),inputValue:n,onFilter:t,placeholder:a,children:e}),w.jsx(Jn.List,{children:w.jsx("div",{children:l})})]})})})},Lr=({children:t,onSelect:e,id:n})=>w.jsx(Jn.Item,{value:n,onSelect:e,children:t}),g1=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:w.jsx("div",{className:"pt-base",children:w.jsxs(Jn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,a)=>w.jsx(Lr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.elements.map((o,a)=>w.jsx(Lr,{id:`${t.groupName}-element-${a}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${a}`)),(i=t.endActions)==null?void 0:i.map((o,a)=>w.jsx(Lr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${a}`)),t.emptyString&&t.elements.length===0&&w.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},v1=({alwaysShowRight:t,left:e,right:n})=>{const{isDesktop:r}=ar();return w.jsxs("div",{className:"c__quick-search-item-template",children:[w.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&w.jsx("div",{className:ot("c__quick-search-item-template__right",{"show-right-on-focus":t}),children:n})]})},m1=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:w.jsx("div",{className:ot("c__tabs",{"c__tabs__full-width":n}),children:w.jsxs(sg,{defaultSelectedKey:e,children:[w.jsx(cg,{"aria-label":"History of Ancient Rome",children:t.map(r=>w.jsxs(fg,{id:r.id,children:[r.icon&&w.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>w.jsx(hg,{id:r.id,children:r.content},r.id))]})}),pf=d.createContext(null);function Oe(){const t=d.useContext(pf);if(t===null)throw new Error("No Tree Api Provided");return t}const gf=d.createContext(null);function y1(){const t=d.useContext(gf);if(t===null)throw new Error("Provide a NodesContext");return t}const vf=d.createContext(null);function b1(){const t=d.useContext(vf);if(t===null)throw new Error("Provide a DnDContext");return t}const mf=d.createContext(0);function yf(){d.useContext(mf)}function Mr(t,e,n){return Math.max(Math.min(t,n),e)}function bf(t){return t&&t.isLeaf}function Sf(t){return t&&t.isInternal&&!t.isOpen}function Cf(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const wf=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},Ef=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function S1(){}function La(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=La(n,e);if(r)return r}return null}function oi(t,e){if(e(t),t.children)for(let n of t.children)oi(n,e)}function $f(t){const e=Tf(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=C1(e,r);break}n==null||n.focus()}function xf(t){const e=Tf(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=w1(e,r);break}n==null||n.focus()}function C1(t,e){return e+1<t.length?t[e+1]:t[0]}function w1(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function Tf(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function Hn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function Pf(t){return t===null?null:wt(t)}function wt(t){return typeof t=="string"?t:t.id}function E1(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Df(t,...e){if(t)return t(...e)}function Of(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function _f(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function If(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const $1=Object.freeze(Object.defineProperty({__proto__:null,access:Hn,bound:Mr,dfs:La,focusNextElement:$f,focusPrevElement:xf,getInsertIndex:_f,getInsertParentId:If,identify:wt,identifyNull:Pf,indexOf:Ef,isClosed:Sf,isDescendant:wf,isItem:bf,isOpenWithEmptyChildren:Cf,mergeRefs:E1,noop:S1,safeRun:Df,waitFor:Of,walk:oi},Symbol.toStringTag,{value:"Module"})),x1={display:"flex",alignItems:"center",zIndex:1},T1={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},P1={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},D1=d.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return w.jsxs("div",{style:Object.assign(Object.assign({},x1),i),children:[w.jsx("div",{style:Object.assign({},P1)}),w.jsx("div",{style:Object.assign({},T1)})]})});function O1({node:t,attrs:e,innerRef:n,children:r}){return w.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function _1(t){return w.jsxs("div",{ref:t.dragHandle,style:t.style,children:[w.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?w.jsx(k1,Object.assign({},t)):w.jsx(I1,Object.assign({},t))]})}function I1(t){return w.jsx(w.Fragment,{children:w.jsx("span",{children:t.node.data.name})})}function k1({node:t}){const e=d.useRef();return d.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),w.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function io(t){return{type:"EDIT",id:t}}function N1(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Xt(t){return{type:"FOCUS",id:t}}function R1(){return{type:"TREE_BLUR"}}function L1(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class ai{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===er}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new ai(Object.assign({},this))}edit(){return this.tree.edit(this)}}const er="__REACT_ARBORIST_INTERNAL_ROOT__";function gs(t){var e;function n(o,a,l){const s=t.accessId(o),u=new ai({tree:t,data:o,level:a,parent:l,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),c=t.accessChildren(o);return c&&(u.children=c.map(h=>n(h,a+1,u))),u}const r=new ai({tree:t,id:er,data:{id:er},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const Yo={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function vs(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function M1(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:vs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:vs(t.unfiltered,e)}):t}const Cn=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Fe={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:wt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(wt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(wt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:wt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:wt(t)})};function A1(t=Cn().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const wn={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function K1(t=Cn().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return Cn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const F1={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},j1=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},H1=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function kf({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return w.jsxs(z1,{isDragging:i,children:[w.jsx(V1,{offset:t,children:w.jsx(W1,{id:n,dragIds:r})}),w.jsx(B1,{mouse:e,count:r.length})]})}const z1=d.memo(function(e){return e.isDragging?w.jsx("div",{style:F1,children:e.children}):null});function V1(t){return w.jsx("div",{className:"row preview",style:j1(t.offset),children:t.children})}function B1(t){const{count:e,mouse:n}=t;return e>1?w.jsx("div",{className:"selected-count",style:H1(n),children:e}):null}const W1=d.memo(function(e){const n=Oe(),r=n.get(e.id);return r?w.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function Zo(){return Zo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zo.apply(null,arguments)}function ms(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xo(t,e){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xo(t,e)}function U1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xo(t,e)}var ys=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function G1(t,e){return!!(t===e||ys(t)&&ys(e))}function q1(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!G1(t[n],e[n]))return!1;return!0}function oo(t,e){e===void 0&&(e=q1);var n,r=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&n===this&&e(l,r)||(i=t.apply(this,l),o=!0,n=this,r=l),i}return a}var Y1=typeof performance=="object"&&typeof performance.now=="function",bs=Y1?function(){return performance.now()}:function(){return Date.now()};function Ss(t){cancelAnimationFrame(t.id)}function Z1(t,e){var n=bs();function r(){bs()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var ao=-1;function Cs(t){if(t===void 0&&(t=!1),ao===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),ao=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ao}var Jt=null;function ws(t){if(t===void 0&&(t=!1),Jt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Jt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Jt="negative":Jt="positive-ascending"),document.body.removeChild(e),Jt}return Jt}process.env.NODE_ENV;var X1=150,J1=function(e,n){return e},Ar=null,Kr=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ar=new WeakSet,Kr=new WeakSet);function Q1(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,a=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,c=t.validateProps;return e=function(h){U1(p,h);function p(m){var f;return f=h.call(this,m)||this,f._instanceProps=s(f.props,ms(f)),f._outerRef=void 0,f._resetIsScrollingTimeoutId=null,f.state={instance:ms(f),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof f.props.initialScrollOffset=="number"?f.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},f._callOnItemsRendered=void 0,f._callOnItemsRendered=oo(function(v,y,C,S){return f.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:y,visibleStartIndex:C,visibleStopIndex:S})}),f._callOnScroll=void 0,f._callOnScroll=oo(function(v,y,C){return f.props.onScroll({scrollDirection:v,scrollOffset:y,scrollUpdateWasRequested:C})}),f._getItemStyle=void 0,f._getItemStyle=function(v){var y=f.props,C=y.direction,S=y.itemSize,P=y.layout,x=f._getItemStyleCache(u&&S,u&&P,u&&C),O;if(x.hasOwnProperty(v))O=x[v];else{var D=n(f.props,v,f._instanceProps),b=i(f.props,v,f._instanceProps),k=C==="horizontal"||P==="horizontal",V=C==="rtl",R=k?D:0;x[v]=O={position:"absolute",left:V?void 0:R,right:V?R:void 0,top:k?0:D,height:k?"100%":b,width:k?b:"100%"}}return O},f._getItemStyleCache=void 0,f._getItemStyleCache=oo(function(v,y,C){return{}}),f._onScrollHorizontal=function(v){var y=v.currentTarget,C=y.clientWidth,S=y.scrollLeft,P=y.scrollWidth;f.setState(function(x){if(x.scrollOffset===S)return null;var O=f.props.direction,D=S;if(O==="rtl")switch(ws()){case"negative":D=-S;break;case"positive-descending":D=P-C-S;break}return D=Math.max(0,Math.min(D,P-C)),{isScrolling:!0,scrollDirection:x.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._onScrollVertical=function(v){var y=v.currentTarget,C=y.clientHeight,S=y.scrollHeight,P=y.scrollTop;f.setState(function(x){if(x.scrollOffset===P)return null;var O=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:x.scrollOffset<O?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._outerRefSetter=function(v){var y=f.props.outerRef;f._outerRef=v,typeof y=="function"?y(v):y!=null&&typeof y=="object"&&y.hasOwnProperty("current")&&(y.current=v)},f._resetIsScrollingDebounced=function(){f._resetIsScrollingTimeoutId!==null&&Ss(f._resetIsScrollingTimeoutId),f._resetIsScrollingTimeoutId=Z1(f._resetIsScrolling,X1)},f._resetIsScrolling=function(){f._resetIsScrollingTimeoutId=null,f.setState({isScrolling:!1},function(){f._getItemStyleCache(-1,null)})},f}p.getDerivedStateFromProps=function(f,v){return em(f,v),c(f),null};var g=p.prototype;return g.scrollTo=function(f){f=Math.max(0,f),this.setState(function(v){return v.scrollOffset===f?null:{scrollDirection:v.scrollOffset<f?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(f,v){v===void 0&&(v="auto");var y=this.props,C=y.itemCount,S=y.layout,P=this.state.scrollOffset;f=Math.max(0,Math.min(f,C-1));var x=0;if(this._outerRef){var O=this._outerRef;S==="vertical"?x=O.scrollWidth>O.clientWidth?Cs():0:x=O.scrollHeight>O.clientHeight?Cs():0}this.scrollTo(o(this.props,f,v,P,this._instanceProps,x))},g.componentDidMount=function(){var f=this.props,v=f.direction,y=f.initialScrollOffset,C=f.layout;if(typeof y=="number"&&this._outerRef!=null){var S=this._outerRef;v==="horizontal"||C==="horizontal"?S.scrollLeft=y:S.scrollTop=y}this._callPropsCallbacks()},g.componentDidUpdate=function(){var f=this.props,v=f.direction,y=f.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var x=this._outerRef;if(v==="horizontal"||y==="horizontal")if(v==="rtl")switch(ws()){case"negative":x.scrollLeft=-S;break;case"positive-ascending":x.scrollLeft=S;break;default:var O=x.clientWidth,D=x.scrollWidth;x.scrollLeft=D-O-S;break}else x.scrollLeft=S;else x.scrollTop=S}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Ss(this._resetIsScrollingTimeoutId)},g.render=function(){var f=this.props,v=f.children,y=f.className,C=f.direction,S=f.height,P=f.innerRef,x=f.innerElementType,O=f.innerTagName,D=f.itemCount,b=f.itemData,k=f.itemKey,V=k===void 0?J1:k,R=f.layout,H=f.outerElementType,E=f.outerTagName,I=f.style,j=f.useIsScrolling,W=f.width,Z=this.state.isScrolling,_=C==="horizontal"||R==="horizontal",M=_?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),Y=G[0],L=G[1],N=[];if(D>0)for(var K=Y;K<=L;K++)N.push(d.createElement(v,{data:b,key:V(K,b),index:K,isScrolling:j?Z:void 0,style:this._getItemStyle(K)}));var A=r(this.props,this._instanceProps);return d.createElement(H||E||"div",{className:y,onScroll:M,ref:this._outerRefSetter,style:Zo({position:"relative",height:S,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},I)},d.createElement(x||O||"div",{children:N,ref:P,style:{height:_?"100%":A,pointerEvents:Z?"none":void 0,width:_?A:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var f=this.props.itemCount;if(f>0){var v=this._getRangeToRender(),y=v[0],C=v[1],S=v[2],P=v[3];this._callOnItemsRendered(y,C,S,P)}}if(typeof this.props.onScroll=="function"){var x=this.state,O=x.scrollDirection,D=x.scrollOffset,b=x.scrollUpdateWasRequested;this._callOnScroll(O,D,b)}},g._getRangeToRender=function(){var f=this.props,v=f.itemCount,y=f.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,x=C.scrollOffset;if(v===0)return[0,0,0,0];var O=a(this.props,x,this._instanceProps),D=l(this.props,O,x,this._instanceProps),b=!S||P==="backward"?Math.max(1,y):1,k=!S||P==="forward"?Math.max(1,y):1;return[Math.max(0,O-b),Math.max(0,Math.min(v-1,D+k)),O,D]},p}(d.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var em=function(e,n){var r=e.children,i=e.direction,o=e.height,a=e.layout,l=e.innerTagName,s=e.outerTagName,u=e.width,c=n.instance;if(process.env.NODE_ENV!=="production"){(l!=null||s!=null)&&Kr&&!Kr.has(c)&&(Kr.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":Ar&&!Ar.has(c)&&(Ar.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!h&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},tm=Q1({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,a){var l=e.direction,s=e.height,u=e.itemCount,c=e.itemSize,h=e.layout,p=e.width,g=l==="horizontal"||h==="horizontal",m=g?p:s,f=Math.max(0,u*c-m),v=Math.min(f,n*c),y=Math.max(0,n*c-m+c+a);switch(r==="smart"&&(i>=y-m&&i<=v+m?r="auto":r="center"),r){case"start":return v;case"end":return y;case"center":{var C=Math.round(y+(v-y)/2);return C<Math.ceil(m/2)?0:C>f+Math.floor(m/2)?f:C}case"auto":default:return i>=y&&i<=v?i:i<y?y:v}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,a=e.itemCount,l=e.itemSize,s=e.layout,u=e.width,c=i==="horizontal"||s==="horizontal",h=n*l,p=c?u:o,g=Math.ceil((p+r-h)/l);return Math.max(0,Math.min(a-1,n+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function nm(){var t,e;const n=Oe(),i=b1().cursor;if(!i||i.type!=="line")return null;const o=n.indent,a=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),l=o*i.level,s=n.renderCursor;return w.jsx(s,{top:a,left:l,indent:o})}var rm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const im=d.forwardRef(function(e,n){const{children:r}=e,i=rm(e,["children"]),o=Oe();return w.jsxs("div",Object.assign({ref:n},i,{onClick:a=>{a.currentTarget===a.target&&o.deselectAll()},children:[w.jsx(om,{}),r]}))}),om=()=>{const t=Oe();return w.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:w.jsx(nm,{})})};var am=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const lm=d.forwardRef(function(e,n){var r,i,o,a,{style:l}=e,s=am(e,["style"]);const u=Oe(),c=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,h=(a=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&a!==void 0?a:0;return w.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},l),{height:`${parseFloat(l.height)+c+h}px`})},s))});var Nf=d.createContext({dragDropManager:void 0}),Le;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Le||(Le={}));function J(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;o=new Error(e.replace(/%s/g,function(){return r[a++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var Ma="dnd-core/INIT_COORDS",$i="dnd-core/BEGIN_DRAG",Aa="dnd-core/PUBLISH_DRAG_SOURCE",xi="dnd-core/HOVER",Ti="dnd-core/DROP",Pi="dnd-core/END_DRAG";function Es(t,e){return{type:Ma,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Fr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fr=function(n){return typeof n}:Fr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fr(t)}function sm(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n},t)}function um(t,e){return t.filter(function(n){return n!==e})}function Rf(t){return Fr(t)==="object"}function cm(t,e){var n=new Map,r=function(a){n.set(a,n.has(a)?n.get(a)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,a){o===1&&i.push(a)}),i}function dm(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var fm={type:Ma,payload:{clientOffset:null,sourceClientOffset:null}};function hm(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,a=r.clientOffset,l=r.getSourceClientOffset,s=t.getMonitor(),u=t.getRegistry();t.dispatch(Es(a)),pm(n,s,u);var c=mm(n,s);if(c===null){t.dispatch(fm);return}var h=null;if(a){if(!l)throw new Error("getSourceClientOffset must be defined");gm(l),h=l(c)}t.dispatch(Es(a,h));var p=u.getSource(c),g=p.beginDrag(s,c);if(g!=null){vm(g),u.pinSource(c);var m=u.getSourceType(c);return{type:$i,payload:{itemType:m,item:g,sourceId:c,clientOffset:a||null,sourceClientOffset:h||null,isSourcePublic:!!o}}}}}function pm(t,e,n){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){J(n.getSource(r),"Expected sourceIds to be registered.")})}function gm(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function vm(t){J(Rf(t),"Item must be an object.")}function mm(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function ym(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Aa}}}function Jo(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function bm(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;Sm(n);var o=n.slice(0),a=t.getMonitor(),l=t.getRegistry();Cm(o,a,l);var s=a.getItemType();return wm(o,l,s),Em(o,a,l),{type:xi,payload:{targetIds:o,clientOffset:i||null}}}}function Sm(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function Cm(t,e,n){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];J(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);J(o,"Expected targetIds to be registered.")}}function wm(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);Jo(o,n)||t.splice(r,1)}}function Em(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function $s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$s(Object(n),!0).forEach(function(r){$m(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xm(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();Tm(r);var o=Om(r);o.forEach(function(a,l){var s=Pm(a,l,i,r),u={type:Ti,payload:{dropResult:xs(xs({},n),s)}};t.dispatch(u)})}}function Tm(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Pm(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return Dm(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function Dm(t){J(typeof t>"u"||Rf(t),"Drop result must either be an object or undefined.")}function Om(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function _m(t){return function(){var n=t.getMonitor(),r=t.getRegistry();Im(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Pi}}}function Im(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function km(t){return{beginDrag:hm(t),publishDragSource:ym(t),hover:bm(t),drop:xm(t),endDrag:_m(t)}}function Nm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lm(t,e,n){return Rm(t.prototype,e),t}function Ln(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mm=function(){function t(e,n){var r=this;Nm(this,t),Ln(this,"store",void 0),Ln(this,"monitor",void 0),Ln(this,"backend",void 0),Ln(this,"isSetUp",!1),Ln(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return Lm(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,r=this.store.dispatch;function i(a){return function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=a.apply(n,s);typeof c<"u"&&r(c)}}var o=km(this);return Object.keys(o).reduce(function(a,l){var s=o[l];return a[l]=i(s),a},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),lo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ps={INIT:"@@redux/INIT"+lo(),REPLACE:"@@redux/REPLACE"+lo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+lo()}};function Am(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Km(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Hm(t))return"date";if(jm(t))return"error";var n=Fm(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Fm(t){return typeof t.constructor=="function"?t.constructor.name:null}function jm(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Hm(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Qt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Km(t)),e}function Lf(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+Qt(n)+"'");return n(Lf)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+Qt(t)+"'");var i=t,o=e,a=[],l=a,s=!1;function u(){l===a&&(l=a.slice())}function c(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function h(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Qt(f)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return u(),l.push(f),function(){if(v){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,u();var C=l.indexOf(f);l.splice(C,1),a=null}}}function p(f){if(!Am(f))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Qt(f)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof f.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,f)}finally{s=!1}for(var v=a=l,y=0;y<v.length;y++){var C=v[y];C()}return f}function g(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Qt(f));i=f,p({type:Ps.REPLACE})}function m(){var f,v=h;return f={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+Qt(C)+"'");function S(){C.next&&C.next(c())}S();var P=v(S);return{unsubscribe:P}}},f[Ts]=function(){return this},f}return p({type:Ps.INIT}),r={dispatch:p,subscribe:h,getState:c,replaceReducer:g},r[Ts]=m,r}var zm=function(e,n){return e===n};function Vm(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Bm(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zm;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function Ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Os(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ds(Object(n),!0).forEach(function(r){Wm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _s={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_s,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Ma:case $i:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case xi:return Vm(t.clientOffset,n.clientOffset)?t:Os(Os({},t),{},{clientOffset:n.clientOffset});case Pi:case Ti:return _s;default:return t}}var Ka="dnd-core/ADD_SOURCE",Fa="dnd-core/ADD_TARGET",ja="dnd-core/REMOVE_SOURCE",Di="dnd-core/REMOVE_TARGET";function Gm(t){return{type:Ka,payload:{sourceId:t}}}function qm(t){return{type:Fa,payload:{targetId:t}}}function Ym(t){return{type:ja,payload:{sourceId:t}}}function Zm(t){return{type:Di,payload:{targetId:t}}}function Is(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Is(Object(n),!0).forEach(function(r){Xm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jm={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Qm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jm,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case $i:return ke(ke({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Aa:return ke(ke({},t),{},{isSourcePublic:!0});case xi:return ke(ke({},t),{},{targetIds:n.targetIds});case Di:return t.targetIds.indexOf(n.targetId)===-1?t:ke(ke({},t),{},{targetIds:um(t.targetIds,n.targetId)});case Ti:return ke(ke({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Pi:return ke(ke({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function ey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ka:case Fa:return t+1;case ja:case Di:return t-1;default:return t}}var li=[],Ha=[];li.__IS_NONE__=!0;Ha.__IS_ALL__=!0;function ty(t,e){if(t===li)return!1;if(t===Ha||typeof e>"u")return!0;var n=dm(e,t);return n.length>0}function ny(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case xi:break;case Ka:case Fa:case Di:case ja:return li;case $i:case Aa:case Pi:case Ti:default:return Ha}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,a=cm(r,o),l=a.length>0||!Bm(r,o);if(!l)return li;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&a.push(s),u&&a.push(u)),a}function ry(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function ks(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ns(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ks(Object(n),!0).forEach(function(r){iy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:ny(t.dirtyHandlerIds,{type:e.type,payload:Ns(Ns({},e.payload),{},{prevTargetIds:sm(t,"dragOperation.targetIds",[])})}),dragOffset:Um(t.dragOffset,e),refCount:ey(t.refCount,e),dragOperation:Qm(t.dragOperation,e),stateId:ry(t.stateId)}}function ay(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Mf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ly(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:Mf(ay(e,r),n)}function sy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:Mf(e,n)}function uy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dy(t,e,n){return cy(t.prototype,e),t}function Rs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fy=function(){function t(e,n){uy(this,t),Rs(this,"store",void 0),Rs(this,"registry",void 0),this.store=e,this.registry=n}return dy(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;J(typeof n=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,l=function(){var u=r.store.getState(),c=u.stateId;try{var h=c===a||c===a+1&&!ty(u.dirtyHandlerIds,o);h||n()}finally{a=c}};return this.store.subscribe(l)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;J(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var l=r.store.getState().dragOffset;l!==i&&(i=l,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return J(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(J(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return Jo(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(J(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),a=this.getItemType();if(a&&!Jo(o,a))return!1;var l=this.getTargetIds();if(!l.length)return!1;var s=l.indexOf(n);return i?s===l.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ly(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return sy(this.store.getState().dragOffset)}}]),t}(),hy=0;function py(){return hy++}function jr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jr=function(n){return typeof n}:jr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jr(t)}function gy(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function vy(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function Qo(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return Qo(n,!1)});return}J(typeof t=="string"||jr(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const Ls=typeof global<"u"?global:self,Af=Ls.MutationObserver||Ls.WebKitMutationObserver;function Kf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function my(t){let e=1;const n=new Af(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const yy=typeof Af=="function"?my:Kf;class by{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=yy(this.flush),this.requestErrorThrow=Kf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Sy{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class Cy{create(e){const n=this.freeTasks,r=n.length?n.pop():new Sy(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const Ff=new by,wy=new Cy(Ff.registerPendingError);function Ey(t){Ff.enqueueTask(wy.create(t))}function $y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ty(t,e,n){return xy(t.prototype,e),t}function en(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Py(t,e){return Iy(t)||_y(t,e)||Oy(t,e)||Dy()}function Dy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
92
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fy(t,e){if(t){if(typeof t=="string")return Fs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fs(t,e)}}function Fs(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jy(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,l;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function Hy(t){if(Array.isArray(t))return t}function zy(t,e){if(t==null)return{};var n=Vy(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Vy(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var js=0,Hr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),By=d.memo(function(e){var n=e.children,r=zy(e,My),i=Wy(r),o=Ay(i,2),a=o[0],l=o[1];return d.useEffect(function(){if(l){var s=jf();return++js,function(){--js===0&&(s[Hr]=null)}}},[]),w.jsx(Nf.Provider,Object.assign({value:a},{children:n}),void 0)});function Wy(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=Uy(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function Uy(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jf(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Hr]||(i[Hr]={dragDropManager:Ry(t,e,n,r)}),i[Hr]}function jf(){return typeof global<"u"?global:window}function Gy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yy(t,e,n){return qy(t.prototype,e),t}function Hs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var so=!1,uo=!1,Zy=function(){function t(e){Gy(this,t),Hs(this,"internalMonitor",void 0),Hs(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Yy(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!so,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return so=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{so=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!uo,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return uo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{uo=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function Xy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qy(t,e,n){return Jy(t.prototype,e),t}function zs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var co=!1,eb=function(){function t(e){Xy(this,t),zs(this,"internalMonitor",void 0),zs(this,"targetId",null),this.internalMonitor=e.getMonitor()}return Qy(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;J(!co,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return co=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{co=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function tb(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function nb(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!d.isValidElement(e)){var r=e;return t(r,n),r}var i=e;tb(i);var o=n?function(a){return t(a,n)}:t;return rb(i,o)}}function Hf(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=nb(r);e[n]=function(){return i}}}),e}function Vs(t,e){typeof t=="function"?t(e):t.current=e}function rb(t,e){var n=t.ref;return J(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?d.cloneElement(t,{ref:function(i){Vs(n,i),Vs(e,i)}}):d.cloneElement(t,{ref:e})}function zr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zr=function(n){return typeof n}:zr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zr(t)}function ea(t){return t!==null&&zr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ta(t,e,n,r){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var u=o[s];if(!l(u))return!1;var c=t[u],h=e[u];if(i=void 0,i===!1||i===void 0&&c!==h)return!1}return!0}function ib(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ob(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ab(t,e,n){return ob(t.prototype,e),t}function Ce(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lb=function(){function t(e){var n=this;ib(this,t),Ce(this,"hooks",Hf({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,ea(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,ea(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),Ce(this,"handlerId",null),Ce(this,"dragSourceRef",null),Ce(this,"dragSourceNode",void 0),Ce(this,"dragSourceOptionsInternal",null),Ce(this,"dragSourceUnsubscribe",void 0),Ce(this,"dragPreviewRef",null),Ce(this,"dragPreviewNode",void 0),Ce(this,"dragPreviewOptionsInternal",null),Ce(this,"dragPreviewUnsubscribe",void 0),Ce(this,"lastConnectedHandlerId",null),Ce(this,"lastConnectedDragSource",null),Ce(this,"lastConnectedDragSourceOptions",null),Ce(this,"lastConnectedDragPreview",null),Ce(this,"lastConnectedDragPreviewOptions",null),Ce(this,"backend",void 0),this.backend=e}return ab(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!ta(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ta(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function sb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ub(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cb(t,e,n){return ub(t.prototype,e),t}function Ue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var db=function(){function t(e){var n=this;sb(this,t),Ue(this,"hooks",Hf({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,ea(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),Ue(this,"handlerId",null),Ue(this,"dropTargetRef",null),Ue(this,"dropTargetNode",void 0),Ue(this,"dropTargetOptionsInternal",null),Ue(this,"unsubscribeDropTarget",void 0),Ue(this,"lastConnectedHandlerId",null),Ue(this,"lastConnectedDropTarget",null),Ue(this,"lastConnectedDropTargetOptions",null),Ue(this,"backend",void 0),this.backend=e}return cb(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!ta(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function fb(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function hb(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var jt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Vr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vr=function(n){return typeof n}:Vr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vr(t)}function pb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vb(t,e,n){return gb(t.prototype,e),t}function fo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mb=function(){function t(e,n,r){pb(this,t),fo(this,"spec",void 0),fo(this,"monitor",void 0),fo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return vb(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Vr(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,a=i.isDragging;return a?a(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function yb(t,e,n){var r=d.useMemo(function(){return new mb(t,e,n)},[e,n]);return d.useEffect(function(){r.spec=t},[t]),r}function Vt(){var t=d.useContext(Nf),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function bb(t){return d.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function Sb(t,e){return $b(t)||Eb(t,e)||wb(t,e)||Cb()}function Cb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
96
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
97
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
98
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
99
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
100
|
-
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Or(tn,Xf,{exposeProperties:{text:function(e,n){return po(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),tn);function I9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N9(t,e,n){return k9(t.prototype,e),t}function eu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R9=function(){function t(e){I9(this,t),eu(this,"item",void 0),eu(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return N9(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function L9(t,e){var n=new R9(ra[t]);return n.loadDataTransfer(e),n}function go(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ra).filter(function(n){var r=ra[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function M9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K9(t,e,n){return A9(t.prototype,e),t}function vo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F9=function(){function t(e,n){M9(this,t),vo(this,"ownerDocument",null),vo(this,"globalContext",void 0),vo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return K9(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function tu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tu(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function j9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z9(t,e,n){return H9(t.prototype,e),t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var V9=function(){function t(e,n,r){var i=this;j9(this,t),ne(this,"options",void 0),ne(this,"actions",void 0),ne(this,"monitor",void 0),ne(this,"registry",void 0),ne(this,"enterLeaveCounter",void 0),ne(this,"sourcePreviewNodes",new Map),ne(this,"sourcePreviewNodeOptions",new Map),ne(this,"sourceNodes",new Map),ne(this,"sourceNodeOptions",new Map),ne(this,"dragStartSourceIds",null),ne(this,"dropTargetIds",[]),ne(this,"dragEnterTargetIds",[]),ne(this,"currentNativeSource",null),ne(this,"currentNativeHandle",null),ne(this,"currentDragSourceNode",null),ne(this,"altKeyPressed",!1),ne(this,"mouseMoveTimeoutTimer",null),ne(this,"asyncEndDragFrameId",null),ne(this,"dragOverTargetIds",null),ne(this,"lastClientOffset",null),ne(this,"hoverRafId",null),ne(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&qf(a)||null}),ne(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ne(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ne(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ne(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var l=Dr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:l});var s=o.dataTransfer,u=go(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var c=i.monitor.getSourceId(),h=i.sourceNodes.get(c),p=i.sourcePreviewNodes.get(c)||h;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),m=g.anchorX,f=g.anchorY,v=g.offsetX,y=g.offsetY,C={anchorX:m,anchorY:f},S={offsetX:v,offsetY:y},P=_9(h,p,l,C,S);s.setDragImage(p,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var x=i.getCurrentSourcePreviewNodeOptions(),O=x.captureDraggingState;O?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ne(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var l=o.dataTransfer,s=go(l);s&&i.beginDragNativeItem(s,l)}}),ne(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:Dr(o)});var l=a.some(function(s){return i.monitor.canDropOnTarget(s)});l&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ne(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ne(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Dr(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var l=(a||[]).some(function(s){return i.monitor.canDropOnTarget(s)});l?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ne(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ne(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else go(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ne(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:Dr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new F9(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new w9(this.isNodeInDocument)}return z9(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var a=function(u){return o.handleDragStart(u,n)},l=function(u){return o.handleSelectStart(u)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",a),r.addEventListener("selectstart",l),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",a),r.removeEventListener("selectstart",l),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(u){return i.handleDragEnter(u,n)},a=function(u){return i.handleDragOver(u,n)},l=function(u){return i.handleDrop(u,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",a),r.addEventListener("drop",l),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",a),r.removeEventListener("drop",l)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return nu({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return nu({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Qs).some(function(r){return Qs[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=L9(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),_r;function B9(){return _r||(_r=new Image,_r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_r}var W9=function(e,n,r){return new V9(e,n,r)};function U9(t){const e=Oe(),n=e.selectedIds,[r,i,o]=Yb(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(wn.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(wn.dragEnd())}}),[n,t]);return d.useEffect(()=>{o(B9())},[o]),i}function G9(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,a=i<o/2,l=!a,s=o/4,u=i>s&&i<o-s;return{x:r,inTopHalf:a,inBottomHalf:l,inMiddle:u,atTop:!u&&a,atBottom:!u&&l}}function q9(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function Ir(t,e){return{parentId:t||null,index:e}}function nn(t,e){return{type:"line",index:t,level:e}}function Y9(t){return{type:"highlight",id:t}}function mo(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=Ef(r)+1;return{parentId:i,index:o}}function Qf(t){var e;const n=G9(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:a,prevNode:l}=t,[s,u]=q9(o,l,a,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Ir(o.id,null),cursor:Y9(o.id)};if(!s)return{drop:Ir((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:nn(0,0)};if(bf(s)){const c=Mr(i,(u==null?void 0:u.level)||0,s.level);return{drop:mo(s,c),cursor:nn(s.rowIndex+1,c)}}if(Sf(s)){const c=Mr(i,(u==null?void 0:u.level)||0,s.level);return{drop:mo(s,c),cursor:nn(s.rowIndex+1,c)}}if(Cf(s)){const c=Mr(i,0,s.level+1);return c>s.level?{drop:Ir(s.id,0),cursor:nn(s.rowIndex+1,c)}:{drop:mo(s,c),cursor:nn(s.rowIndex+1,c)}}return{drop:Ir(s==null?void 0:s.id,0),cursor:nn(s.rowIndex+1,s.level+1)}}function Z9(t,e){const n=Oe(),[r,i]=Wf(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,a)=>{const l=a.getClientOffset();if(!t.current||!l)return;const{cursor:s,drop:u}=Qf({element:t.current,offset:l,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(wn.hovering(u.parentId,u.index)),a.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:l,index:s,dragIds:u}=n.state.dnd;Df(n.props.onMove,{dragIds:u,parentId:l===er?null:l,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(l)}),n.open(l)}}),[e,t.current,n.props]);return i}function X9(t){const e=Oe(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return d.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const J9=d.memo(function({index:e,style:n}){yf(),y1();const r=Oe(),i=X9(e),o=d.useRef(null),a=U9(i),l=Z9(o,i),s=d.useCallback(f=>{o.current=f,l(f)},[l]),u=r.indent*i.level,c=d.useMemo(()=>({paddingLeft:u}),[u]),h=d.useMemo(()=>{var f,v;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((v=(f=r.props.padding)!==null&&f!==void 0?f:r.props.paddingTop)!==null&&v!==void 0?v:0)})},[n,r.props.padding,r.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:h,tabIndex:-1,className:r.props.rowClassName};d.useEffect(()=>{var f;!i.isEditing&&i.isFocused&&((f=o.current)===null||f===void 0||f.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=r.renderNode,m=r.renderRow;return w.jsx(m,{node:i,innerRef:s,attrs:p,children:w.jsx(g,{node:i,tree:r,style:c,dragHandle:a})})});let yo="",ru=null;function e0(){yf();const t=Oe();return w.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var n;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,l=o.parent;t.focus(a||l,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),$f(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),xf(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((n=i.parent)===null||n===void 0)&&n.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(ru),yo+=e.key,ru=setTimeout(()=>{yo=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(yo):!1});r&&t.focus(r.id)},children:w.jsx(tm,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:im,innerElementType:lm,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:J9})})}function iu(t){return t.isFiltered?e4(t.root,t.isMatch.bind(t)):Q9(t.root)}function Q9(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(t0),e}function e4(t,e){const n={},r=[];function i(a){if(!a.isRoot&&e(a)){n[a.id]=!0;let s=a.parent;for(;s;)n[s.id]=!0,s=s.parent}if(a.children)for(let s of a.children)i(s)}function o(a){var l;a.level>=0&&n[a.id]&&r.push(a),a.isOpen&&((l=a.children)===null||l===void 0||l.forEach(o))}return i(t),o(t),r.forEach(t0),r}function t0(t,e){t.rowIndex=e}const ou=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var bo=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(h){a(h)}}function s(c){try{u(r.throw(c))}catch(h){a(h)}}function u(c){c.done?o(c.value):i(c.value).then(l,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:he,identify:et,identifyNull:je}=$1;class mn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=gs(this),this.visibleNodes=iu(this),this.idToIndex=ou(this.visibleNodes)}update(e){this.props=e,this.root=gs(this),this.visibleNodes=iu(this),this.idToIndex=ou(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=Hn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Hn(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const a=Math.min(i,o),l=Math.max(i,o);return this.visibleNodes.slice(a,l+1)}indexOf(e){const n=Pf(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return bo(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?If(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:_f(this),a=(r=e.type)!==null&&r!==void 0?r:"leaf",l=yield he(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});l&&(this.focus(l),setTimeout(()=>{this.edit(l).then(()=>{this.select(l),this.activate(l)})}))})}delete(e){return bo(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(et),i=r.map(o=>this.get(o)).filter(o=>!!o);yield he(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=et(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(io(n)),new Promise(r=>{mn.editPromise=r})}submit(e,n){return bo(this,void 0,void 0,function*(){if(!e)return;const r=et(e);yield he(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(io(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(io(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(je(e));n&&he(this.props.onActivate,n)}resolveEdit(e){const n=mn.editPromise;n&&n(e),mn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Xt(et(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&he(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let a=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;a>r?a=r:a=Math.max(r-o,0),this.focus(this.at(a))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let a=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=et(e);r&&this.dispatch(Xt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&he(this.props.onFocus,this.focusedNode),he(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=et(e);this.dispatch(Fe.remove(n)),he(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(je(e));n&&(this.dispatch(Xt(n.id)),this.dispatch(Fe.add(n.id)),this.dispatch(Fe.anchor(n.id)),this.dispatch(Fe.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&he(this.props.onFocus,this.focusedNode),he(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=et(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Xt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,je(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&he(this.props.onFocus,this.focusedNode),he(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),he(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Xt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&he(this.props.onFocus,this.focusedNode),he(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(et)),i=je(e.anchor),o=je(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),he(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&wf(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(wn.cursor({type:"none"}))}showCursor(e){this.dispatch(wn.cursor(e))}open(e){const n=je(e);n&&(this.isOpen(n)||(this.dispatch(Yo.open(n,this.isFiltered)),he(this.props.onToggle,n)))}close(e){const n=je(e);n&&this.isOpen(n)&&(this.dispatch(Yo.close(n,this.isFiltered)),he(this.props.onToggle,n))}toggle(e){const n=je(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=je(e);if(!n)return;const r=La(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){oi(this.root,e=>{e.isInternal&&e.open()})}closeAll(){oi(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=et(e);return this.openParents(r),Of(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var n,r,i;if(!e)return!1;if(e===er)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!Hn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Hn(e,n)}isDragging(e){const n=je(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=je(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Xt(e.id))}onBlur(){this.dispatch(R1())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||e0}get renderRow(){return this.props.renderRow||O1}get renderNode(){return this.props.children||_1}get renderDragPreview(){return this.props.renderDragPreview||kf}get renderCursor(){return this.props.renderCursor||D1}}function we(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var t4=typeof Symbol=="function"&&Symbol.observable||"@@observable",au=t4,So=()=>Math.random().toString(36).substring(7).split("").join("."),n4={INIT:`@@redux/INIT${So()}`,REPLACE:`@@redux/REPLACE${So()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${So()}`},Ot=n4;function n0(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function r4(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(a4(t))return"date";if(o4(t))return"error";const n=i4(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function i4(t){return typeof t.constructor=="function"?t.constructor.name:null}function o4(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function a4(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function dt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=r4(t)),e}function r0(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?we(2):`Expected the root reducer to be a function. Instead, received: '${dt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?we(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?we(1):`Expected the enhancer to be a function. Instead, received: '${dt(n)}'`);return n(r0)(t,e)}let r=t,i=e,o=new Map,a=o,l=0,s=!1;function u(){a===o&&(a=new Map,o.forEach((v,y)=>{a.set(y,v)}))}function c(){if(s)throw new Error(process.env.NODE_ENV==="production"?we(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(4):`Expected the listener to be a function. Instead, received: '${dt(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;u();const C=l++;return a.set(C,v),function(){if(y){if(s)throw new Error(process.env.NODE_ENV==="production"?we(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,u(),a.delete(C),o=null}}}function p(v){if(!n0(v))throw new Error(process.env.NODE_ENV==="production"?we(7):`Actions must be plain objects. Instead, the actual type was: '${dt(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?we(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?we(17):`Action "type" property must be a string. Instead, the actual type was: '${dt(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,v)}finally{s=!1}return(o=a).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?we(10):`Expected the nextReducer to be a function. Instead, received: '${dt(v)}`);r=v,p({type:Ot.REPLACE})}function m(){const v=h;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?we(11):`Expected the observer to be an object. Instead, received: '${dt(y)}'`);function C(){const P=y;P.next&&P.next(c())}return C(),{unsubscribe:v(C)}},[au](){return this}}}return p({type:Ot.INIT}),{dispatch:p,subscribe:h,getState:c,replaceReducer:g,[au]:m}}function lu(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function l4(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Ot.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!n0(t))return`The ${o} has unexpected type of "${dt(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(l=>!e.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===Ot.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function s4(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Ot.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?we(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Ot.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?we(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Ot.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function su(t){const e=Object.keys(t),n={};for(let a=0;a<e.length;a++){const l=e[a];process.env.NODE_ENV!=="production"&&typeof t[l]>"u"&&lu(`No reducer provided for key "${l}"`),typeof t[l]=="function"&&(n[l]=t[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{s4(n)}catch(a){o=a}return function(l={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const h=l4(l,n,s,i);h&&lu(h)}let u=!1;const c={};for(let h=0;h<r.length;h++){const p=r[h],g=n[p],m=l[p],f=g(m,s);if(typeof f>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?we(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[p]=f,u=u||f!==m}return u=u||r.length!==Object.keys(l).length,u?c:l}}function u4(t=Cn().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const c4=su({nodes:su({focus:L1,edit:N1,open:M1,selection:A1,drag:u4}),dnd:K1}),d4=Cn();function f4({treeProps:t,imperativeHandle:e,children:n}){const r=d.useRef(null),i=d.useRef(null),o=d.useRef(r0(c4,Cn(t))),a=da.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>d4),l=d.useMemo(()=>new mn(o.current,t,r,i),[]),s=d.useRef(0);return d.useMemo(()=>{s.current+=1,l.update(t)},[...Object.values(t),a.nodes.open]),d.useImperativeHandle(e,()=>l),d.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),d.useEffect(()=>{l.props.searchTerm||o.current.dispatch(Yo.clear(!0))},[l.props.searchTerm]),w.jsx(pf.Provider,{value:l,children:w.jsx(mf.Provider,{value:s.current,children:w.jsx(gf.Provider,{value:a.nodes,children:w.jsx(vf.Provider,{value:a.dnd,children:w.jsx(By,Object.assign({backend:W9,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function h4(){const t=Oe(),[,e]=Wf(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=Qf({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(wn.hovering(a.parentId,a.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function p4(t){return h4(),t.children}function g4(){const e=Oe().props.renderContainer||e0;return w.jsx(w.Fragment,{children:w.jsx(e,{})})}function v4(){const t=Oe(),{offset:e,mouse:n,item:r,isDragging:i}=v9(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||kf;return w.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class m4{constructor(e){this.root=y4(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function y4(t){const e=new i0({id:"ROOT"},null);return e.children=t.map(n=>za(n,e)),e}function za(t,e){const n=new i0(t,e);return t.children&&(n.children=t.children.map(r=>za(r,n))),n}class i0{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=za(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let b4=0;function S4(t){const[e,n]=d.useState(t),r=d.useMemo(()=>new m4(e),[e]);return[e,{onMove:u=>{for(const c of u.dragIds)r.move({id:c,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:c})=>{r.update({id:c,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:c,type:h})=>{const p={id:`simple-tree-id-${b4++}`,name:""};return h==="internal"&&(p.children=[]),r.create({parentId:u,index:c,data:p}),n(r.data),p},onDelete:u=>{u.ids.forEach(c=>r.drop({id:c})),n(r.data)}}]}function C4(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
101
|
-
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=S4(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function w4(t,e){const n=C4(t);return w.jsxs(f4,{treeProps:n,imperativeHandle:e,children:[w.jsx(p4,{children:w.jsx(g4,{})}),w.jsx(v4,{})]})}const E4=d.forwardRef(w4),o0=({top:t,left:e})=>w.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function $4(t,e){var n=d.useRef(null),r=d.useRef(null);r.current=e;var i=d.useRef(null);d.useEffect(function(){o()});var o=d.useCallback(function(){var a=i.current,l=r.current,s=a||(l?l instanceof Element?l:l.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return d.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),d.useCallback(function(a){i.current=a,o()},[o])}function uu(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function x4(t){t===void 0&&(t={});var e=t.onResize,n=d.useRef(void 0);n.current=e;var r=t.round||Math.round,i=d.useRef(),o=d.useState({width:void 0,height:void 0}),a=o[0],l=o[1],s=d.useRef(!1);d.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=d.useRef({width:void 0,height:void 0}),c=$4(d.useCallback(function(h){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(p){var g=p[0],m=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",f=uu(g,m,"inlineSize"),v=uu(g,m,"blockSize"),y=f?r(f):void 0,C=v?r(v):void 0;if(u.current.width!==y||u.current.height!==C){var S={width:y,height:C};u.current.width=y,u.current.height=C,n.current?n.current(S):s.current||l(S)}})}),i.current.instance.observe(h,{box:t.box}),function(){i.current&&i.current.instance.unobserve(h)}},[t.box,r]),t.ref);return d.useMemo(function(){return{ref:c,width:a.width,height:a.height}},[c,a.width,a.height])}var Ae=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Ae||{}),Et=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(Et||{});const si=t=>t?t.nodeType===Ae.SEPARATOR:!1,ui=t=>t?t.nodeType===Ae.TITLE:!1,zn=t=>!si(t)&&!ui(t),a0=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:a,insertAfter:l,append:s,prepend:u,getItem:c,move:h,items:p}=Np({initialItems:JSON.parse(JSON.stringify(t)),getKey:_=>_.id,getChildren:_=>_.children||[]}),[g,m]=d.useState(),f=(_=[])=>{const M=p.map(Y=>Y.key);r(...M);const G=JSON.parse(JSON.stringify(_));G.length>0&&o(null,0,...G),m(void 0)},v=_=>{const M=c(_);M&&m(M.value)},y=(_,M,G)=>{var Y;if(_){const L=c(_);L&&o(_,G??((Y=L.children)==null?void 0:Y.length)??0,M)}else o(null,G??p.length,M)},C=_=>{var M;return(M=c(_))==null?void 0:M.value},S=(_,M)=>{var K;const G=c(_);if(!G){console.error("No item found");return}let Y=((K=G.children)==null?void 0:K.map(A=>A.value))??null;const L=M.childrenCount??G.value.childrenCount??0;if((Y==null?void 0:Y.length)===0&&L>0&&(Y=null),M.children&&(Y=[...Y??[],...M.children]),M.children){const A=new Set(M.children.map(z=>z.id));Y=M.children.filter(z=>!A.has(z.id)),Y=[...Y??[],...M.children]}const N={...G.value,...M,children:Y,childrenCount:(Y==null?void 0:Y.length)??L};i(_,N)},P=_=>{r(_)},x=async _=>{if(!e){console.error("No refresh callback provided");return}try{const M=await e(_);S(_,M)}catch(M){console.error("error while refreshing node:",M)}},O=(_,M)=>{o(null,M??p.length,_)},D=(_,M)=>{const G=c(_);if(!G){console.error("No item found");return}const Y={...G.value,children:M,childrenCount:M.length,hasLoadedChildren:M.length>0};i(_,Y)},b=_=>{const M=[],G=c(_);if(!G)return[];M.push(G.value);const Y=L=>{const N=k(L);if(!N)return;const K=c(N);K&&(M.push(K.value),Y(N))};return Y(_),M.reverse()},k=_=>{var M;return((M=c(_))==null?void 0:M.parentKey)??null},V=_=>{const M=k(_);if(!M)return null;const G=c(M);return G?G.value:null},R=(_,M)=>{a(_,M)},H=(_,M)=>{l(_,M)},E=(_,M)=>{s(_,M)},I=(_,M)=>{u(_,M)},j=(_,M,G)=>{h(_,M,G)},W=_=>{j(_.sourceId,_.newParentId,_.index)},Z=async _=>{if(!n)return[];const M=await n(_);return S(_,{children:M,hasLoadedChildren:!0,childrenCount:M.length}),M};return d.useEffect(()=>{const _=M=>{M.forEach(G=>{G.children&&G.children.length>0&&(G.value.children&&(G.value.children=G.children.map(Y=>Y.value),G.value.childrenCount=G.children.length),_(G.children))})};_(p),console.log("treeData",p)},[p]),{nodes:p,addChild:y,updateNode:S,deleteNode:P,addRootNode:O,selectedNode:g,setSelectedNode:m,refreshNode:x,setChildren:D,insertBeforeNode:R,insertAfterNode:H,handleMove:W,prependToNode:I,moveNode:j,appendToNode:E,move:h,resetTree:f,handleLoadChildren:Z,selectNodeById:v,getParent:V,getNode:C,getParentId:k,getAncestors:b}},Va=d.createContext(null),T4=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=d.useRef(null),[a,l]=d.useState(null),[s,u]=d.useState(n??null),c=a0(i??[],e,r);return w.jsx(Va.Provider,{value:{treeApiRef:o,treeData:c,root:a,initialTargetId:s,setInitialTargetId:u,setRoot:l},children:t})},Ba=()=>{const t=d.useContext(Va);if(!t)throw new Error("TreeContext not found");return t},P4=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:a})=>{const{ref:l,width:s,height:u}=x4(),c=Ba(),h=(c==null?void 0:c.treeData.nodes)??[],p=m=>{var j,W,Z,_;const f=JSON.parse(JSON.stringify(h)),v=m.dragNodes[0],y=m.parentId?((j=m.parentNode)==null?void 0:j.data.children)??[]:f,C=m.dragNodes[0].data.value.id,S=m.dragNodes[0].data,P=(W=m.parentNode)==null?void 0:W.data;if((P==null?void 0:P.value.nodeType)===Ae.TITLE||(P==null?void 0:P.value.nodeType)===Ae.SEPARATOR)return null;const x=S.parentKey??n,O=m.parentId??n;let D=m.index+0,b=null,k=O;const V=((_=(Z=v.parent)==null?void 0:Z.children)==null?void 0:_.findIndex(M=>M.data.value.id===C))??0;if(x===O){if(V===D)return null;D=D<V?D:D-1}const R=m.index-1,H=y[R],E=m.index,I=y[E];return m.index===0?(k=m.parentId??n,b=Et.FIRST_CHILD):!P&&m.index===1&&!zn(H.value)?(k=n,D=1,b=Et.FIRST_CHILD):m.index===y.length?(k=k??n,b=Et.LAST_CHILD):H&&zn(H.value)?(k=H.value.id,b=Et.RIGHT):I&&zn(I.value)&&(b=Et.LEFT,k=I.value.id),b&&k?{targetModeId:k,mode:b,oldParentId:x,index:D,newParentId:m.parentId,sourceId:C}:null},g=m=>{const f=p(m);f&&(c==null||c.treeData.handleMove(f),a==null||a(f))};if(c)return w.jsx("div",{ref:l,className:"c__tree-view--container",children:w.jsx(E4,{data:h,ref:c.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:g,rowHeight:35,disableDrag:m=>o?!o(m):!1,disableDrop:({parentNode:m,dragNodes:f,index:v})=>{var x,O;if(i&&!i({parentNode:m,dragNodes:f,index:v}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const y=f[0];if(y&&y.isDragging&&y.willReceiveDrop||((x=m.data.value)==null?void 0:x.nodeType)===Ae.TITLE||((O=m.data.value)==null?void 0:O.nodeType)===Ae.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const D=h[v-1],b=h[v],k=h[v+1],V=si(D==null?void 0:D.value),R=si(b==null?void 0:b.value),H=ui(D==null?void 0:D.value),E=ui(b==null?void 0:b.value),I=zn(k==null?void 0:k.value);return!!(v===0&&(R||E)||V&&E&&I||H&&R&&I)}const C=m==null?void 0:m.isOpen,S=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!S)return m.data.value.canDrop=!0,!1;let P=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return P=P??!0,!C&&!P&&S?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},paddingBottom:30,paddingTop:2,width:s,initialOpenState:t,height:u,overscanCount:20,selection:e,renderCursor:o0,renderRow:D4,rowClassName:"c__tree-view--row",children:r})})},D4=({children:t,...e})=>{const n=e.node.data.value.nodeType===Ae.TITLE,r=e.node.data.value.nodeType===Ae.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?d.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:a=>a.stopPropagation(),onClick:e.node.handleClick},t):d.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:a=>a.stopPropagation(),onClick:e.node.handleClick},w.jsx("div",{style:{padding:"0 12px",paddingBottom:"100px"},children:t}))},O4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _4(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function I4(t){return"nodeType"in t}function k4(t){var e,n;return t?_4(t)?t:I4(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}const l0=O4?d.useLayoutEffect:d.useEffect;function s0(t){const e=d.useRef(t);return l0(()=>{e.current=t}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function cu(t,e){e===void 0&&(e=[t]);const n=d.useRef(t);return l0(()=>{n.current!==t&&(n.current=t)},e),n}function N4(t){const e=s0(t),n=d.useRef(null),r=d.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Co={};function R4(t,e){return d.useMemo(()=>{const n=Co[t]==null?0:Co[t]+1;return Co[t]=n,t+"-"+n},[t,e])}var Wn;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Wn||(Wn={}));function du(){}const L4=Object.freeze({x:0,y:0});function M4(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function A4(t,e,n){const r=M4(e);if(!r)return t;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=t.left-a-(1-i)*parseFloat(n),u=t.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?t.width/i:t.width,h=o?t.height/o:t.height;return{width:c,height:h,top:u,right:s+c,bottom:u+h,left:s}}const K4={ignoreTransform:!1};function u0(t,e){e===void 0&&(e=K4);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=k4(t).getComputedStyle(t);u&&(n=A4(n,u,c))}const{top:r,left:i,width:o,height:a,bottom:l,right:s}=n;return{top:r,left:i,width:o,height:a,bottom:l,right:s}}function fu(t){return u0(t,{ignoreTransform:!0})}var fn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(fn||(fn={}));var hu;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(hu||(hu={}));var ht;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ht||(ht={}));ht.Space,ht.Enter,ht.Esc,ht.Space,ht.Enter,ht.Tab;var pu;(function(t){t[t.RightClick=2]="RightClick"})(pu||(pu={}));var gu;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(gu||(gu={}));var vu;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(vu||(vu={}));fn.Backward+"",fn.Forward+"",fn.Backward+"",fn.Forward+"";var ia;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(ia||(ia={}));var oa;(function(t){t.Optimized="optimized"})(oa||(oa={}));function F4(t){let{callback:e,disabled:n}=t;const r=s0(e),i=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return d.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}ia.WhileDragging,oa.Optimized;const j4={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:du,draggableNodes:new Map,over:null,measureDroppableContainers:du},H4=d.createContext(j4);({...L4});var mu;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(mu||(mu={}));const z4="Droppable",V4={timeout:25};function B4(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=R4(z4),{active:a,dispatch:l,over:s,measureDroppableContainers:u}=d.useContext(H4),c=d.useRef({disabled:n}),h=d.useRef(!1),p=d.useRef(null),g=d.useRef(null),{disabled:m,updateMeasurementsFor:f,timeout:v}={...V4,...i},y=cu(f??r),C=d.useCallback(()=>{if(!h.current){h.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},v)},[v]),S=F4({callback:C,disabled:m||!a}),P=d.useCallback((b,k)=>{S&&(k&&(S.unobserve(k),h.current=!1),b&&S.observe(b))},[S]),[x,O]=N4(P),D=cu(e);return d.useEffect(()=>{!S||!x.current||(S.disconnect(),h.current=!1,S.observe(x.current))},[x,S]),d.useEffect(()=>(l({type:Wn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:p,data:D}}),()=>l({type:Wn.UnregisterDroppable,key:o,id:r})),[r]),d.useEffect(()=>{n!==c.current.disabled&&(l({type:Wn.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,l]),{active:a,rect:p,isOver:(s==null?void 0:s.id)===r,node:x,over:s,setNodeRef:O}}const W4=t=>{const{isOver:e,setNodeRef:n}=B4({id:t.id,data:t.data});return d.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),w.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},U4=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const a=Ba(),l=d.useRef(null),[s,u]=d.useState(!1),[c,h]=d.useState(!1),p=o??s,g=n.willReceiveDrop||c,m=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,f=((P=n.children)==null?void 0:P.length)??!1,v=n.isLeaf||!m,y=d.useCallback(async()=>{if(!v){if(f||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(a==null?void 0:a.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[v,f,n,a==null?void 0:a.treeData]),C=d.useCallback(x=>{x&&!n.isOpen&&!n.isDragging&&(l.current=setTimeout(()=>{y()},500)),l.current&&!x&&clearTimeout(l.current)},[y,n.isOpen,n.isDragging]);return d.useEffect(()=>{C(g)},[g,C]),n.data.value.nodeType===Ae.SEPARATOR?w.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Ae.TITLE?w.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):w.jsx(W4,{id:n.id,data:{data:n.data,nodeApi:n},onOver:h,children:w.jsxs("div",{onClick:x=>{x.target.closest(".c__tree-view--node")||x.stopPropagation(),e==null||e()},onKeyDown:x=>{x.stopPropagation()},ref:r,style:i,className:ot("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:c}),children:[v&&w.jsx("div",{className:"c__tree-view--node__leaf"}),!v&&w.jsxs(w.Fragment,{children:[p&&w.jsx("div",{className:"c__tree-view--node__loading",children:w.jsx(Pa,{})}),!p&&w.jsx("span",{onClick:x=>{x.stopPropagation(),y()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};exports.CunninghamProvider=E0;exports.CustomTabs=m1;exports.DropdownMenu=nd;exports.Footer=gg;exports.Header=ld;exports.Hero=vg;exports.HomeGutter=mg;exports.HorizontalSeparator=qo;exports.LaGaufre=Dg;exports.Label=Id;exports.LanguagePicker=ad;exports.LeftPanel=sd;exports.MainLayout=a5;exports.ProConnectButton=Su;exports.QuickSearch=p1;exports.QuickSearchGroup=g1;exports.QuickSearchInput=hf;exports.QuickSearchItem=Lr;exports.QuickSearchItemTemplate=v1;exports.Spinner=Pa;exports.TreeApi=mn;exports.TreeContext=Va;exports.TreeProvider=T4;exports.TreeView=P4;exports.TreeViewItem=U4;exports.TreeViewMoveModeEnum=Et;exports.TreeViewNodeTypeEnum=Ae;exports.TreeViewSeparator=o0;exports.WithLabel=s5;exports.cunninghamConfig=jo;exports.getLocales=bu;exports.headerHeight=l5;exports.isNode=zn;exports.isSeparator=si;exports.isTitle=ui;exports.useDropdownMenu=rd;exports.useResponsive=ar;exports.useTree=a0;exports.useTreeContext=Ba;
|
|
91
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return k.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},q9="DialogDescriptionWarning",Y9=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$h(q9).contentName}}.`;return k.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},X9=ch,Z9=hh,J9=ph,Q9=gh,dr='[cmdk-group=""]',il='[cmdk-group-items=""]',e4='[cmdk-group-heading=""]',ts='[cmdk-item=""]',oc=`${ts}:not([aria-disabled="true"])`,ra="cmdk-item-select",Ft="data-value",t4=(t,e,n)=>yy(t,e,n),Sh=k.createContext(void 0),Kr=()=>k.useContext(Sh),wh=k.createContext(void 0),ns=()=>k.useContext(wh),Ch=k.createContext(void 0),Eh=k.forwardRef((t,e)=>{let n=Mn(()=>{var N,M;return{search:"",value:(M=(N=t.value)!=null?N:t.defaultValue)!=null?M:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Mn(()=>new Set),i=Mn(()=>new Map),o=Mn(()=>new Map),l=Mn(()=>new Set),a=xh(t),{label:s,children:u,value:d,onValueChange:f,filter:v,shouldFilter:g,loop:$,disablePointerSelection:p=!1,vimBindings:b=!0,...m}=t,C=ht(),S=ht(),D=ht(),x=k.useRef(null),T=f4();ln(()=>{if(d!==void 0){let N=d.trim();n.current.value=N,I.emit()}},[d]),ln(()=>{T(6,y)},[]);let I=k.useMemo(()=>({subscribe:N=>(l.current.add(N),()=>l.current.delete(N)),snapshot:()=>n.current,setState:(N,M,z)=>{var j,W,G;if(!Object.is(n.current[N],M)){if(n.current[N]=M,N==="search")F(),A(),T(1,P);else if(N==="value"&&(z||T(5,y),((j=a.current)==null?void 0:j.value)!==void 0)){let R=M??"";(G=(W=a.current).onValueChange)==null||G.call(W,R);return}I.emit()}},emit:()=>{l.current.forEach(N=>N())}}),[]),h=k.useMemo(()=>({value:(N,M,z)=>{var j;M!==((j=o.current.get(N))==null?void 0:j.value)&&(o.current.set(N,{value:M,keywords:z}),n.current.filtered.items.set(N,L(M,z)),T(2,()=>{A(),I.emit()}))},item:(N,M)=>(r.current.add(N),M&&(i.current.has(M)?i.current.get(M).add(N):i.current.set(M,new Set([N]))),T(3,()=>{F(),A(),n.current.value||P(),I.emit()}),()=>{o.current.delete(N),r.current.delete(N),n.current.filtered.items.delete(N);let z=E();T(4,()=>{F(),(z==null?void 0:z.getAttribute("id"))===N&&P(),I.emit()})}),group:N=>(i.current.has(N)||i.current.set(N,new Set),()=>{o.current.delete(N),i.current.delete(N)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:D,labelId:S,listInnerRef:x}),[]);function L(N,M){var z,j;let W=(j=(z=a.current)==null?void 0:z.filter)!=null?j:t4;return N?W(N,n.current.search,M):0}function A(){if(!n.current.search||a.current.shouldFilter===!1)return;let N=n.current.filtered.items,M=[];n.current.filtered.groups.forEach(j=>{let W=i.current.get(j),G=0;W.forEach(R=>{let Z=N.get(R);G=Math.max(Z,G)}),M.push([j,G])});let z=x.current;K().sort((j,W)=>{var G,R;let Z=j.getAttribute("id"),J=W.getAttribute("id");return((G=N.get(J))!=null?G:0)-((R=N.get(Z))!=null?R:0)}).forEach(j=>{let W=j.closest(il);W?W.appendChild(j.parentElement===W?j:j.closest(`${il} > *`)):z.appendChild(j.parentElement===z?j:j.closest(`${il} > *`))}),M.sort((j,W)=>W[1]-j[1]).forEach(j=>{var W;let G=(W=x.current)==null?void 0:W.querySelector(`${dr}[${Ft}="${encodeURIComponent(j[0])}"]`);G==null||G.parentElement.appendChild(G)})}function P(){let N=K().find(z=>z.getAttribute("aria-disabled")!=="true"),M=N==null?void 0:N.getAttribute(Ft);I.setState("value",M||void 0)}function F(){var N,M,z,j;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let G of r.current){let R=(M=(N=o.current.get(G))==null?void 0:N.value)!=null?M:"",Z=(j=(z=o.current.get(G))==null?void 0:z.keywords)!=null?j:[],J=L(R,Z);n.current.filtered.items.set(G,J),J>0&&W++}for(let[G,R]of i.current)for(let Z of R)if(n.current.filtered.items.get(Z)>0){n.current.filtered.groups.add(G);break}n.current.filtered.count=W}function y(){var N,M,z;let j=E();j&&(((N=j.parentElement)==null?void 0:N.firstChild)===j&&((z=(M=j.closest(dr))==null?void 0:M.querySelector(e4))==null||z.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function E(){var N;return(N=x.current)==null?void 0:N.querySelector(`${ts}[aria-selected="true"]`)}function K(){var N;return Array.from(((N=x.current)==null?void 0:N.querySelectorAll(oc))||[])}function B(N){let M=K()[N];M&&I.setState("value",M.getAttribute(Ft))}function H(N){var M;let z=E(),j=K(),W=j.findIndex(R=>R===z),G=j[W+N];(M=a.current)!=null&&M.loop&&(G=W+N<0?j[j.length-1]:W+N===j.length?j[0]:j[W+N]),G&&I.setState("value",G.getAttribute(Ft))}function O(N){let M=E(),z=M==null?void 0:M.closest(dr),j;for(;z&&!j;)z=N>0?c4(z,dr):d4(z,dr),j=z==null?void 0:z.querySelector(oc);j?I.setState("value",j.getAttribute(Ft)):H(N)}let q=()=>B(K().length-1),V=N=>{N.preventDefault(),N.metaKey?q():N.altKey?O(1):H(1)},U=N=>{N.preventDefault(),N.metaKey?B(0):N.altKey?O(-1):H(-1)};return k.createElement(we.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:N=>{var M;if((M=m.onKeyDown)==null||M.call(m,N),!N.defaultPrevented)switch(N.key){case"n":case"j":{b&&N.ctrlKey&&V(N);break}case"ArrowDown":{V(N);break}case"p":case"k":{b&&N.ctrlKey&&U(N);break}case"ArrowUp":{U(N);break}case"Home":{N.preventDefault(),B(0);break}case"End":{N.preventDefault(),q();break}case"Enter":if(!N.nativeEvent.isComposing&&N.keyCode!==229){N.preventDefault();let z=E();if(z){let j=new Event(ra);z.dispatchEvent(j)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:h.inputId,id:h.labelId,style:p4},s),go(t,N=>k.createElement(wh.Provider,{value:I},k.createElement(Sh.Provider,{value:h},N))))}),n4=k.forwardRef((t,e)=>{var n,r;let i=ht(),o=k.useRef(null),l=k.useContext(Ch),a=Kr(),s=xh(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;ln(()=>{if(!u)return a.item(i,l==null?void 0:l.id)},[u]);let d=Ph(i,o,[t.value,t.children,o],t.keywords),f=ns(),v=an(T=>T.value&&T.value===d.current),g=an(T=>u||a.filter()===!1?!0:T.search?T.filtered.items.get(i)>0:!0);k.useEffect(()=>{let T=o.current;if(!(!T||t.disabled))return T.addEventListener(ra,$),()=>T.removeEventListener(ra,$)},[g,t.onSelect,t.disabled]);function $(){var T,I;p(),(I=(T=s.current).onSelect)==null||I.call(T,d.current)}function p(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:b,value:m,onSelect:C,forceMount:S,keywords:D,...x}=t;return k.createElement(we.div,{ref:kr([o,e]),...x,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!v,"data-disabled":!!b,"data-selected":!!v,onPointerMove:b||a.getDisablePointerSelection()?void 0:p,onClick:b?void 0:$},t.children)}),r4=k.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=ht(),a=k.useRef(null),s=k.useRef(null),u=ht(),d=Kr(),f=an(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);ln(()=>d.group(l),[]),Ph(l,a,[t.value,t.heading,s]);let v=k.useMemo(()=>({id:l,forceMount:i}),[i]);return k.createElement(we.div,{ref:kr([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&k.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),go(t,g=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},k.createElement(Ch.Provider,{value:v},g))))}),i4=k.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=k.useRef(null),o=an(l=>!l.search);return!n&&!o?null:k.createElement(we.div,{ref:kr([i,e]),...r,"cmdk-separator":"",role:"separator"})}),o4=k.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ns(),l=an(d=>d.search),a=an(d=>d.value),s=Kr(),u=k.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${ts}[${Ft}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return k.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),k.createElement(we.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":u,id:s.inputId,type:"text",value:i?t.value:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),l4=k.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=k.useRef(null),l=k.useRef(null),a=Kr();return k.useEffect(()=>{if(l.current&&o.current){let s=l.current,u=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let v=s.offsetHeight;u.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),k.createElement(we.div,{ref:kr([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},go(t,s=>k.createElement("div",{ref:kr([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),a4=k.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return k.createElement(X9,{open:n,onOpenChange:r},k.createElement(Z9,{container:l},k.createElement(J9,{"cmdk-overlay":"",className:i}),k.createElement(Q9,{"aria-label":t.label,"cmdk-dialog":"",className:o},k.createElement(Eh,{ref:e,...a}))))}),s4=k.forwardRef((t,e)=>an(n=>n.filtered.count===0)?k.createElement(we.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),u4=k.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return k.createElement(we.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},go(t,l=>k.createElement("div",{"aria-hidden":!0},l)))}),_r=Object.assign(Eh,{List:l4,Item:n4,Input:o4,Group:r4,Separator:i4,Dialog:a4,Empty:s4,Loading:u4});function c4(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function d4(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function xh(t){let e=k.useRef(t);return ln(()=>{e.current=t}),e}var ln=typeof window>"u"?k.useEffect:k.useLayoutEffect;function Mn(t){let e=k.useRef();return e.current===void 0&&(e.current=t()),e}function kr(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function an(t){let e=ns(),n=()=>t(e.snapshot());return Ca.useSyncExternalStore(e.subscribe,n,n)}function Ph(t,e,n,r=[]){let i=k.useRef(),o=Kr();return ln(()=>{var l;let a=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(Ft,a),i.current=a}),i}var f4=()=>{let[t,e]=k.useState(),n=Mn(()=>new Map);return ln(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function h4(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function go({asChild:t,children:e},n){return t&&k.isValidElement(e)?k.cloneElement(h4(e),{ref:e.ref},n(e.props.children)):n(e)}var p4={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ia=({withPadding:t=!0})=>w.jsx("div",{className:Te("c__horizontal-separator",{"with-padding":t})}),Th=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=se.useCunningham();return i?w.jsxs(w.Fragment,{children:[i,o&&w.jsx(ia,{})]}):w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"quick-search-input-container",children:[!t&&w.jsx("span",{className:"material-icons",children:"search"}),t&&w.jsx("div",{children:w.jsx(Ya,{size:"md"})}),w.jsx(_r.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&w.jsx(ia,{withPadding:!0})]})},g4=t=>{let e=!1;return c.Children.forEach(t,n=>{e=e||!!n}),e},Dh=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=c.useRef(null);return w.jsx(w.Fragment,{children:w.jsx("div",{className:"quick-search-container",children:w.jsxs(_r,{label:o,shouldFilter:!1,ref:s,children:[i&&w.jsx(Th,{loading:r,withSeparator:g4(a),inputValue:n,onFilter:t,placeholder:l,children:e}),w.jsx(_r.List,{children:w.jsx("div",{children:a})})]})})})},bi=({children:t,onSelect:e,id:n})=>w.jsx(_r.Item,{value:n,onSelect:e,children:t}),Ih=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:w.jsx("div",{className:"pt-base",children:w.jsxs(_r.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>w.jsx(bi,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>w.jsx(bi,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>w.jsx(bi,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&w.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},vo=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=nr();return w.jsxs("div",{className:"c__quick-search-item-template",children:[w.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&w.jsx("div",{className:Te("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},v4=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:w.jsx("div",{className:Te("c__tabs",{"c__tabs__full-width":n}),children:w.jsxs(sb,{defaultSelectedKey:e,children:[w.jsx(cb,{"aria-label":"History of Ancient Rome",children:t.map(r=>w.jsxs(fb,{id:r.id,children:[r.icon&&w.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>w.jsx(hb,{id:r.id,children:r.content},r.id))]})}),Oh=c.createContext(null);function Le(){const t=c.useContext(Oh);if(t===null)throw new Error("No Tree Api Provided");return t}const _h=c.createContext(null);function m4(){const t=c.useContext(_h);if(t===null)throw new Error("Provide a NodesContext");return t}const kh=c.createContext(null);function b4(){const t=c.useContext(kh);if(t===null)throw new Error("Provide a DnDContext");return t}const Lh=c.createContext(0);function Mh(){c.useContext(Lh)}function yi(t,e,n){return Math.max(Math.min(t,n),e)}function Nh(t){return t&&t.isLeaf}function Rh(t){return t&&t.isInternal&&!t.isOpen}function Ah(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const Kh=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},Fh=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function y4(){}function rs(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=rs(n,e);if(r)return r}return null}function Vi(t,e){if(e(t),t.children)for(let n of t.children)Vi(n,e)}function jh(t){const e=zh(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=$4(e,r);break}n==null||n.focus()}function Hh(t){const e=zh(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=S4(e,r);break}n==null||n.focus()}function $4(t,e){return e+1<t.length?t[e+1]:t[0]}function S4(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function zh(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function yr(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function Bh(t){return t===null?null:jt(t)}function jt(t){return typeof t=="string"?t:t.id}function w4(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Vh(t,...e){if(t)return t(...e)}function Uh(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Wh(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function Gh(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const C4=Object.freeze(Object.defineProperty({__proto__:null,access:yr,bound:yi,dfs:rs,focusNextElement:jh,focusPrevElement:Hh,getInsertIndex:Wh,getInsertParentId:Gh,identify:jt,identifyNull:Bh,indexOf:Fh,isClosed:Rh,isDescendant:Kh,isItem:Nh,isOpenWithEmptyChildren:Ah,mergeRefs:w4,noop:y4,safeRun:Vh,waitFor:Uh,walk:Vi},Symbol.toStringTag,{value:"Module"})),E4={display:"flex",alignItems:"center",zIndex:1},x4={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},P4={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},T4=c.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return w.jsxs("div",{style:Object.assign(Object.assign({},E4),i),children:[w.jsx("div",{style:Object.assign({},P4)}),w.jsx("div",{style:Object.assign({},x4)})]})});function D4({node:t,attrs:e,innerRef:n,children:r}){return w.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function I4(t){return w.jsxs("div",{ref:t.dragHandle,style:t.style,children:[w.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?w.jsx(_4,Object.assign({},t)):w.jsx(O4,Object.assign({},t))]})}function O4(t){return w.jsx(w.Fragment,{children:w.jsx("span",{children:t.node.data.name})})}function _4({node:t}){const e=c.useRef();return c.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),w.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function ol(t){return{type:"EDIT",id:t}}function k4(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function wn(t){return{type:"FOCUS",id:t}}function L4(){return{type:"TREE_BLUR"}}function M4(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class Ui{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Lr}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Ui(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Lr="__REACT_ARBORIST_INTERNAL_ROOT__";function lc(t){var e;function n(o,l,a){const s=t.accessId(o),u=new Ui({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(u.children=d.map(f=>n(f,l+1,u))),u}const r=new Ui({tree:t,id:Lr,data:{id:Lr},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const oa={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function ac(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function N4(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:ac(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:ac(t.unfiltered,e)}):t}const Zn=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Ue={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:jt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(jt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(jt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:jt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:jt(t)})};function R4(t=Zn().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const Jn={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function A4(t=Zn().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return Zn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const K4={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},F4=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},j4=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function qh({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return w.jsxs(H4,{isDragging:i,children:[w.jsx(z4,{offset:t,children:w.jsx(V4,{id:n,dragIds:r})}),w.jsx(B4,{mouse:e,count:r.length})]})}const H4=c.memo(function(e){return e.isDragging?w.jsx("div",{style:K4,children:e.children}):null});function z4(t){return w.jsx("div",{className:"row preview",style:F4(t.offset),children:t.children})}function B4(t){const{count:e,mouse:n}=t;return e>1?w.jsx("div",{className:"selected-count",style:j4(n),children:e}):null}const V4=c.memo(function(e){const n=Le(),r=n.get(e.id);return r?w.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function la(){return la=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},la.apply(null,arguments)}function sc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aa(t,e){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},aa(t,e)}function U4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,aa(t,e)}var uc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function W4(t,e){return!!(t===e||uc(t)&&uc(e))}function G4(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!W4(t[n],e[n]))return!1;return!0}function ll(t,e){e===void 0&&(e=G4);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var q4=typeof performance=="object"&&typeof performance.now=="function",cc=q4?function(){return performance.now()}:function(){return Date.now()};function dc(t){cancelAnimationFrame(t.id)}function Y4(t,e){var n=cc();function r(){cc()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var al=-1;function fc(t){if(t===void 0&&(t=!1),al===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),al=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return al}var Cn=null;function hc(t){if(t===void 0&&(t=!1),Cn===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Cn="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Cn="negative":Cn="positive-ascending"),document.body.removeChild(e),Cn}return Cn}process.env.NODE_ENV;var X4=150,Z4=function(e,n){return e},$i=null,Si=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&($i=new WeakSet,Si=new WeakSet);function J4(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){U4(v,f);function v($){var p;return p=f.call(this,$)||this,p._instanceProps=s(p.props,sc(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:sc(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=ll(function(b,m,C,S){return p.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=ll(function(b,m,C){return p.props.onScroll({scrollDirection:b,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(b){var m=p.props,C=m.direction,S=m.itemSize,D=m.layout,x=p._getItemStyleCache(u&&S,u&&D,u&&C),T;if(x.hasOwnProperty(b))T=x[b];else{var I=n(p.props,b,p._instanceProps),h=i(p.props,b,p._instanceProps),L=C==="horizontal"||D==="horizontal",A=C==="rtl",P=L?I:0;x[b]=T={position:"absolute",left:A?void 0:P,right:A?P:void 0,top:L?0:I,height:L?"100%":h,width:L?h:"100%"}}return T},p._getItemStyleCache=void 0,p._getItemStyleCache=ll(function(b,m,C){return{}}),p._onScrollHorizontal=function(b){var m=b.currentTarget,C=m.clientWidth,S=m.scrollLeft,D=m.scrollWidth;p.setState(function(x){if(x.scrollOffset===S)return null;var T=p.props.direction,I=S;if(T==="rtl")switch(hc()){case"negative":I=-S;break;case"positive-descending":I=D-C-S;break}return I=Math.max(0,Math.min(I,D-C)),{isScrolling:!0,scrollDirection:x.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(b){var m=b.currentTarget,C=m.clientHeight,S=m.scrollHeight,D=m.scrollTop;p.setState(function(x){if(x.scrollOffset===D)return null;var T=Math.max(0,Math.min(D,S-C));return{isScrolling:!0,scrollDirection:x.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(b){var m=p.props.outerRef;p._outerRef=b,typeof m=="function"?m(b):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=b)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&dc(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Y4(p._resetIsScrolling,X4)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}v.getDerivedStateFromProps=function(p,b){return Q4(p,b),d(p),null};var g=v.prototype;return g.scrollTo=function(p){p=Math.max(0,p),this.setState(function(b){return b.scrollOffset===p?null:{scrollDirection:b.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(p,b){b===void 0&&(b="auto");var m=this.props,C=m.itemCount,S=m.layout,D=this.state.scrollOffset;p=Math.max(0,Math.min(p,C-1));var x=0;if(this._outerRef){var T=this._outerRef;S==="vertical"?x=T.scrollWidth>T.clientWidth?fc():0:x=T.scrollHeight>T.clientHeight?fc():0}this.scrollTo(o(this.props,p,b,D,this._instanceProps,x))},g.componentDidMount=function(){var p=this.props,b=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;b==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var p=this.props,b=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,D=C.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var x=this._outerRef;if(b==="horizontal"||m==="horizontal")if(b==="rtl")switch(hc()){case"negative":x.scrollLeft=-S;break;case"positive-ascending":x.scrollLeft=S;break;default:var T=x.clientWidth,I=x.scrollWidth;x.scrollLeft=I-T-S;break}else x.scrollLeft=S;else x.scrollTop=S}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&dc(this._resetIsScrollingTimeoutId)},g.render=function(){var p=this.props,b=p.children,m=p.className,C=p.direction,S=p.height,D=p.innerRef,x=p.innerElementType,T=p.innerTagName,I=p.itemCount,h=p.itemData,L=p.itemKey,A=L===void 0?Z4:L,P=p.layout,F=p.outerElementType,y=p.outerTagName,E=p.style,K=p.useIsScrolling,B=p.width,H=this.state.isScrolling,O=C==="horizontal"||P==="horizontal",q=O?this._onScrollHorizontal:this._onScrollVertical,V=this._getRangeToRender(),U=V[0],N=V[1],M=[];if(I>0)for(var z=U;z<=N;z++)M.push(c.createElement(b,{data:h,key:A(z,h),index:z,isScrolling:K?H:void 0,style:this._getItemStyle(z)}));var j=r(this.props,this._instanceProps);return c.createElement(F||y||"div",{className:m,onScroll:q,ref:this._outerRefSetter,style:la({position:"relative",height:S,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},E)},c.createElement(x||T||"div",{children:M,ref:D,style:{height:O?"100%":j,pointerEvents:H?"none":void 0,width:O?j:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var b=this._getRangeToRender(),m=b[0],C=b[1],S=b[2],D=b[3];this._callOnItemsRendered(m,C,S,D)}}if(typeof this.props.onScroll=="function"){var x=this.state,T=x.scrollDirection,I=x.scrollOffset,h=x.scrollUpdateWasRequested;this._callOnScroll(T,I,h)}},g._getRangeToRender=function(){var p=this.props,b=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,D=C.scrollDirection,x=C.scrollOffset;if(b===0)return[0,0,0,0];var T=l(this.props,x,this._instanceProps),I=a(this.props,T,x,this._instanceProps),h=!S||D==="backward"?Math.max(1,m):1,L=!S||D==="forward"?Math.max(1,m):1;return[Math.max(0,T-h),Math.max(0,Math.min(b-1,I+L)),T,I]},v}(c.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Q4=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,u=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Si&&!Si.has(d)&&(Si.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":$i&&!$i.has(d)&&($i.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(f&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},e7=J4({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,u=e.itemCount,d=e.itemSize,f=e.layout,v=e.width,g=a==="horizontal"||f==="horizontal",$=g?v:s,p=Math.max(0,u*d-$),b=Math.min(p,n*d),m=Math.max(0,n*d-$+d+l);switch(r==="smart"&&(i>=m-$&&i<=b+$?r="auto":r="center"),r){case"start":return b;case"end":return m;case"center":{var C=Math.round(m+(b-m)/2);return C<Math.ceil($/2)?0:C>p+Math.floor($/2)?p:C}case"auto":default:return i>=m&&i<=b?i:i<m?m:b}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,u=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,v=d?u:o,g=Math.ceil((v+r-f)/a);return Math.max(0,Math.min(l-1,n+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function t7(){var t,e;const n=Le(),i=b4().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return w.jsx(s,{top:l,left:a,indent:o})}var n7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const r7=c.forwardRef(function(e,n){const{children:r}=e,i=n7(e,["children"]),o=Le();return w.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[w.jsx(i7,{}),r]}))}),i7=()=>{const t=Le();return w.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:w.jsx(t7,{})})};var o7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const l7=c.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=o7(e,["style"]);const u=Le(),d=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&l!==void 0?l:0;return w.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var Yh=c.createContext({dragDropManager:void 0}),je;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(je||(je={}));function Q(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var is="dnd-core/INIT_COORDS",mo="dnd-core/BEGIN_DRAG",os="dnd-core/PUBLISH_DRAG_SOURCE",bo="dnd-core/HOVER",yo="dnd-core/DROP",$o="dnd-core/END_DRAG";function pc(t,e){return{type:is,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function wi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wi=function(n){return typeof n}:wi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wi(t)}function a7(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n},t)}function s7(t,e){return t.filter(function(n){return n!==e})}function Xh(t){return wi(t)==="object"}function u7(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function c7(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var d7={type:is,payload:{clientOffset:null,sourceClientOffset:null}};function f7(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),u=t.getRegistry();t.dispatch(pc(l)),h7(n,s,u);var d=v7(n,s);if(d===null){t.dispatch(d7);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");p7(a),f=a(d)}t.dispatch(pc(l,f));var v=u.getSource(d),g=v.beginDrag(s,d);if(g!=null){g7(g),u.pinSource(d);var $=u.getSourceType(d);return{type:mo,payload:{itemType:$,item:g,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function h7(t,e,n){Q(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Q(n.getSource(r),"Expected sourceIds to be registered.")})}function p7(t){Q(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function g7(t){Q(Xh(t),"Item must be an object.")}function v7(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function m7(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:os}}}function sa(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function b7(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;y7(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();$7(o,l,a);var s=l.getItemType();return S7(o,a,s),w7(o,l,a),{type:bo,payload:{targetIds:o,clientOffset:i||null}}}}function y7(t){Q(Array.isArray(t),"Expected targetIds to be an array.")}function $7(t,e,n){Q(e.isDragging(),"Cannot call hover while not dragging."),Q(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Q(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Q(o,"Expected targetIds to be registered.")}}function S7(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);sa(o,n)||t.splice(r,1)}}function w7(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function gc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(n),!0).forEach(function(r){C7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function C7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E7(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();x7(r);var o=D7(r);o.forEach(function(l,a){var s=P7(l,a,i,r),u={type:yo,payload:{dropResult:vc(vc({},n),s)}};t.dispatch(u)})}}function x7(t){Q(t.isDragging(),"Cannot call drop while not dragging."),Q(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function P7(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return T7(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function T7(t){Q(typeof t>"u"||Xh(t),"Drop result must either be an object or undefined.")}function D7(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function I7(t){return function(){var n=t.getMonitor(),r=t.getRegistry();O7(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:$o}}}function O7(t){Q(t.isDragging(),"Cannot call endDrag while not dragging.")}function _7(t){return{beginDrag:f7(t),publishDragSource:m7(t),hover:b7(t),drop:E7(t),endDrag:I7(t)}}function k7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M7(t,e,n){return L7(t.prototype,e),t}function fr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N7=function(){function t(e,n){var r=this;k7(this,t),fr(this,"store",void 0),fr(this,"monitor",void 0),fr(this,"backend",void 0),fr(this,"isSetUp",!1),fr(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return M7(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=_7(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Ne(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),sl=function(){return Math.random().toString(36).substring(7).split("").join(".")},bc={INIT:"@@redux/INIT"+sl(),REPLACE:"@@redux/REPLACE"+sl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sl()}};function R7(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function A7(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(j7(t))return"date";if(F7(t))return"error";var n=K7(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function K7(t){return typeof t.constructor=="function"?t.constructor.name:null}function F7(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function j7(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function En(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=A7(t)),e}function Zh(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ne(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(1):"Expected the enhancer to be a function. Instead, received: '"+En(n)+"'");return n(Zh)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(2):"Expected the root reducer to be a function. Instead, received: '"+En(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function u(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(4):"Expected the listener to be a function. Instead, received: '"+En(p)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var b=!0;return u(),a.push(p),function(){if(b){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,u();var C=a.indexOf(p);a.splice(C,1),l=null}}}function v(p){if(!R7(p))throw new Error(process.env.NODE_ENV==="production"?Ne(7):"Actions must be plain objects. Instead, the actual type was: '"+En(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ne(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,p)}finally{s=!1}for(var b=l=a,m=0;m<b.length;m++){var C=b[m];C()}return p}function g(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(10):"Expected the nextReducer to be a function. Instead, received: '"+En(p));i=p,v({type:bc.REPLACE})}function $(){var p,b=f;return p={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ne(11):"Expected the observer to be an object. Instead, received: '"+En(C)+"'");function S(){C.next&&C.next(d())}S();var D=b(S);return{unsubscribe:D}}},p[mc]=function(){return this},p}return v({type:bc.INIT}),r={dispatch:v,subscribe:f,getState:d,replaceReducer:g},r[mc]=$,r}var H7=function(e,n){return e===n};function z7(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function B7(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H7;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function yc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $c(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yc(Object(n),!0).forEach(function(r){V7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function V7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sc={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function U7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sc,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case is:case mo:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case bo:return z7(t.clientOffset,n.clientOffset)?t:$c($c({},t),{},{clientOffset:n.clientOffset});case $o:case yo:return Sc;default:return t}}var ls="dnd-core/ADD_SOURCE",as="dnd-core/ADD_TARGET",ss="dnd-core/REMOVE_SOURCE",So="dnd-core/REMOVE_TARGET";function W7(t){return{type:ls,payload:{sourceId:t}}}function G7(t){return{type:as,payload:{targetId:t}}}function q7(t){return{type:ss,payload:{sourceId:t}}}function Y7(t){return{type:So,payload:{targetId:t}}}function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wc(Object(n),!0).forEach(function(r){X7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function X7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z7={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function J7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z7,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case mo:return Re(Re({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case os:return Re(Re({},t),{},{isSourcePublic:!0});case bo:return Re(Re({},t),{},{targetIds:n.targetIds});case So:return t.targetIds.indexOf(n.targetId)===-1?t:Re(Re({},t),{},{targetIds:s7(t.targetIds,n.targetId)});case yo:return Re(Re({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case $o:return Re(Re({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function Q7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ls:case as:return t+1;case ss:case So:return t-1;default:return t}}var Wi=[],us=[];Wi.__IS_NONE__=!0;us.__IS_ALL__=!0;function e3(t,e){if(t===Wi)return!1;if(t===us||typeof e>"u")return!0;var n=c7(e,t);return n.length>0}function t3(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bo:break;case ls:case as:case So:case ss:return Wi;case mo:case os:case $o:case yo:default:return us}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=u7(r,o),a=l.length>0||!B7(r,o);if(!a)return Wi;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&l.push(s),u&&l.push(u)),l}function n3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ec(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cc(Object(n),!0).forEach(function(r){r3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function r3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:t3(t.dirtyHandlerIds,{type:e.type,payload:Ec(Ec({},e.payload),{},{prevTargetIds:a7(t,"dragOperation.targetIds",[])})}),dragOffset:U7(t.dragOffset,e),refCount:Q7(t.refCount,e),dragOperation:J7(t.dragOperation,e),stateId:n3(t.stateId)}}function o3(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Jh(t,e){return{x:t.x-e.x,y:t.y-e.y}}function l3(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:Jh(o3(e,r),n)}function a3(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:Jh(e,n)}function s3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c3(t,e,n){return u3(t.prototype,e),t}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d3=function(){function t(e,n){s3(this,t),xc(this,"store",void 0),xc(this,"registry",void 0),this.store=e,this.registry=n}return c3(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Q(typeof n=="function","listener must be a function."),Q(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var u=r.store.getState(),d=u.stateId;try{var f=d===l||d===l+1&&!e3(u.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Q(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Q(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Q(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return sa(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Q(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!sa(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return l3(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return a3(this.store.getState().dragOffset)}}]),t}(),f3=0;function h3(){return f3++}function Ci(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ci=function(n){return typeof n}:Ci=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ci(t)}function p3(t){Q(typeof t.canDrag=="function","Expected canDrag to be a function."),Q(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Q(typeof t.endDrag=="function","Expected endDrag to be a function.")}function g3(t){Q(typeof t.canDrop=="function","Expected canDrop to be a function."),Q(typeof t.hover=="function","Expected hover to be a function."),Q(typeof t.drop=="function","Expected beginDrag to be a function.")}function ua(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return ua(n,!1)});return}Q(typeof t=="string"||Ci(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const Pc=typeof global<"u"?global:self,Qh=Pc.MutationObserver||Pc.WebKitMutationObserver;function ep(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function v3(t){let e=1;const n=new Qh(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const m3=typeof Qh=="function"?v3:ep;class b3{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=m3(this.flush),this.requestErrorThrow=ep(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class y3{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class $3{create(e){const n=this.freeTasks,r=n.length?n.pop():new y3(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const tp=new b3,S3=new $3(tp.registerPendingError);function w3(t){tp.enqueueTask(S3.create(t))}function C3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x3(t,e,n){return E3(t.prototype,e),t}function xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P3(t,e){return O3(t)||I3(t,e)||D3(t,e)||T3()}function T3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(t,e){if(t){if(typeof t=="string")return Tc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tc(t,e)}}function Tc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function I3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function O3(t){if(Array.isArray(t))return t}function _3(t){var e=h3().toString();switch(t){case je.SOURCE:return"S".concat(e);case je.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function Dc(t){switch(t[0]){case"S":return je.SOURCE;case"T":return je.TARGET;default:Q(!1,"Cannot parse handler ID: ".concat(t))}}function Ic(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=P3(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var k3=function(){function t(e){C3(this,t),xn(this,"types",new Map),xn(this,"dragSources",new Map),xn(this,"dropTargets",new Map),xn(this,"pinnedSourceId",null),xn(this,"pinnedSource",null),xn(this,"store",void 0),this.store=e}return x3(t,[{key:"addSource",value:function(n,r){ua(n),p3(r);var i=this.addHandler(je.SOURCE,n,r);return this.store.dispatch(W7(i)),i}},{key:"addTarget",value:function(n,r){ua(n,!0),g3(r);var i=this.addHandler(je.TARGET,n,r);return this.store.dispatch(G7(i)),i}},{key:"containsHandler",value:function(n){return Ic(this.dragSources,n)||Ic(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Q(this.isSourceId(n),"Expected a valid source ID.");var i=r&&n===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(n);return o}},{key:"getTarget",value:function(n){return Q(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Q(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Q(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=Dc(n);return r===je.SOURCE}},{key:"isTargetId",value:function(n){var r=Dc(n);return r===je.TARGET}},{key:"removeSource",value:function(n){var r=this;Q(this.getSource(n),"Expected an existing source."),this.store.dispatch(q7(n)),w3(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Q(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Y7(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Q(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Q(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=_3(n);return this.types.set(o,r),n===je.SOURCE?this.dragSources.set(o,i):n===je.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function L3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=M3(r),o=new d3(i,new k3(i)),l=new N7(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function M3(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Zh(i3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var N3=["children"];function R3(t,e){return j3(t)||F3(t,e)||K3(t,e)||A3()}function A3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K3(t,e){if(t){if(typeof t=="string")return Oc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oc(t,e)}}function Oc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function j3(t){if(Array.isArray(t))return t}function H3(t,e){if(t==null)return{};var n=z3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function z3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var _c=0,Ei=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),B3=c.memo(function(e){var n=e.children,r=H3(e,N3),i=V3(r),o=R3(i,2),l=o[0],a=o[1];return c.useEffect(function(){if(a){var s=np();return++_c,function(){--_c===0&&(s[Ei]=null)}}},[]),w.jsx(Yh.Provider,Object.assign({value:l},{children:n}),void 0)});function V3(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=U3(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function U3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Ei]||(i[Ei]={dragDropManager:L3(t,e,n,r)}),i[Ei]}function np(){return typeof global<"u"?global:window}function W3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q3(t,e,n){return G3(t.prototype,e),t}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ul=!1,cl=!1,Y3=function(){function t(e){W3(this,t),kc(this,"internalMonitor",void 0),kc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return q3(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Q(!ul,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ul=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ul=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Q(!cl,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return cl=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{cl=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J3(t,e,n){return Z3(t.prototype,e),t}function Lc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dl=!1,Q3=function(){function t(e){X3(this,t),Lc(this,"internalMonitor",void 0),Lc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return J3(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Q(!dl,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return dl=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{dl=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function e$(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function t$(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!c.isValidElement(e)){var r=e;return t(r,n),r}var i=e;e$(i);var o=n?function(l){return t(l,n)}:t;return n$(i,o)}}function rp(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=t$(r);e[n]=function(){return i}}}),e}function Mc(t,e){typeof t=="function"?t(e):t.current=e}function n$(t,e){var n=t.ref;return Q(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?c.cloneElement(t,{ref:function(i){Mc(n,i),Mc(e,i)}}):c.cloneElement(t,{ref:e})}function xi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(n){return typeof n}:xi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xi(t)}function ca(t){return t!==null&&xi(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function da(t,e,n,r){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var u=o[s];if(!a(u))return!1;var d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function r$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o$(t,e,n){return i$(t.prototype,e),t}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l$=function(){function t(e){var n=this;r$(this,t),Ee(this,"hooks",rp({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,ca(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,ca(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),Ee(this,"handlerId",null),Ee(this,"dragSourceRef",null),Ee(this,"dragSourceNode",void 0),Ee(this,"dragSourceOptionsInternal",null),Ee(this,"dragSourceUnsubscribe",void 0),Ee(this,"dragPreviewRef",null),Ee(this,"dragPreviewNode",void 0),Ee(this,"dragPreviewOptionsInternal",null),Ee(this,"dragPreviewUnsubscribe",void 0),Ee(this,"lastConnectedHandlerId",null),Ee(this,"lastConnectedDragSource",null),Ee(this,"lastConnectedDragSourceOptions",null),Ee(this,"lastConnectedDragPreview",null),Ee(this,"lastConnectedDragPreviewOptions",null),Ee(this,"backend",void 0),this.backend=e}return o$(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!da(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!da(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function a$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u$(t,e,n){return s$(t.prototype,e),t}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c$=function(){function t(e){var n=this;a$(this,t),et(this,"hooks",rp({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,ca(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),et(this,"handlerId",null),et(this,"dropTargetRef",null),et(this,"dropTargetNode",void 0),et(this,"dropTargetOptionsInternal",null),et(this,"unsubscribeDropTarget",void 0),et(this,"lastConnectedHandlerId",null),et(this,"lastConnectedDropTarget",null),et(this,"lastConnectedDropTargetOptions",null),et(this,"backend",void 0),this.backend=e}return u$(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!da(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function d$(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function f$(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var sn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Pi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(n){return typeof n}:Pi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pi(t)}function h$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g$(t,e,n){return p$(t.prototype,e),t}function fl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v$=function(){function t(e,n,r){h$(this,t),fl(this,"spec",void 0),fl(this,"monitor",void 0),fl(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return g$(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Pi(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function m$(t,e,n){var r=c.useMemo(function(){return new v$(t,e,n)},[e,n]);return c.useEffect(function(){r.spec=t},[t]),r}function pn(){var t=c.useContext(Yh),e=t.dragDropManager;return Q(e!=null,"Expected drag drop context"),e}function b$(t){return c.useMemo(function(){var e=t.type;return Q(e!=null,"spec.type must be defined"),e},[t])}function y$(t,e){return C$(t)||w$(t,e)||S$(t,e)||$$()}function $$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
94
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(t,e){if(t){if(typeof t=="string")return Nc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nc(t,e)}}function Nc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function C$(t){if(Array.isArray(t))return t}function E$(t,e,n){var r=pn(),i=m$(t,e,n),o=b$(t);sn(function(){if(o!=null){var a=f$(o,i,r),s=y$(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d}},[r,e,n,i,o])}function x$(t){return I$(t)||D$(t)||T$(t)||P$()}function P$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
95
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(t,e){if(t){if(typeof t=="string")return fa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fa(t,e)}}function D$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function I$(t){if(Array.isArray(t))return fa(t)}function fa(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ip(t,e){var n=x$(e||[]);return e==null&&typeof t!="function"&&n.push(t),c.useMemo(function(){return typeof t=="function"?t():t},n)}function O$(){var t=pn();return c.useMemo(function(){return new Y3(t)},[t])}function _$(t,e){var n=pn(),r=c.useMemo(function(){return new l$(n.getBackend())},[n]);return sn(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),sn(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var hl,Rc;function k$(){return Rc||(Rc=1,hl=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),hl}var L$=k$();const M$=kp(L$);function N$(t,e){return F$(t)||K$(t,e)||A$(t,e)||R$()}function R$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
96
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(t,e){if(t){if(typeof t=="string")return Ac(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ac(t,e)}}function Ac(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function F$(t){if(Array.isArray(t))return t}function op(t,e,n){var r=c.useState(function(){return e(t)}),i=N$(r,2),o=i[0],l=i[1],a=c.useCallback(function(){var s=e(t);M$(o,s)||(l(s),n&&n())},[o,t,n]);return sn(a),[o,a]}function j$(t,e){return V$(t)||B$(t,e)||z$(t,e)||H$()}function H$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
97
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z$(t,e){if(t){if(typeof t=="string")return Kc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kc(t,e)}}function Kc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function B$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function V$(t){if(Array.isArray(t))return t}function U$(t,e,n){var r=op(t,e,n),i=j$(r,2),o=i[0],l=i[1];return sn(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function lp(t,e,n){return U$(e,t||function(){return{}},function(){return n.reconnect()})}function W$(t){return c.useMemo(function(){return t.hooks.dragSource()},[t])}function G$(t){return c.useMemo(function(){return t.hooks.dragPreview()},[t])}function q$(t,e){var n=ip(t,e);Q(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r=O$(),i=_$(n.options,n.previewOptions);return E$(n,r,i),[lp(n.collect,r,i),W$(i),G$(i)]}function Y$(t){var e=t.accept;return c.useMemo(function(){return Q(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function X$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J$(t,e,n){return Z$(t.prototype,e),t}function Fc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q$=function(){function t(e,n){X$(this,t),Fc(this,"spec",void 0),Fc(this,"monitor",void 0),this.spec=e,this.monitor=n}return J$(t,[{key:"canDrop",value:function(){var n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}},{key:"hover",value:function(){var n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}},{key:"drop",value:function(){var n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}}]),t}();function e8(t,e){var n=c.useMemo(function(){return new Q$(t,e)},[e]);return c.useEffect(function(){n.spec=t},[t]),n}function t8(t,e){return o8(t)||i8(t,e)||r8(t,e)||n8()}function n8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
98
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r8(t,e){if(t){if(typeof t=="string")return jc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jc(t,e)}}function jc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function o8(t){if(Array.isArray(t))return t}function l8(t,e,n){var r=pn(),i=e8(t,e),o=Y$(t);sn(function(){var a=d$(o,i,r),s=t8(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function a8(){var t=pn();return c.useMemo(function(){return new Q3(t)},[t])}function s8(t){var e=pn(),n=c.useMemo(function(){return new c$(e.getBackend())},[e]);return sn(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function u8(t){return c.useMemo(function(){return t.hooks.dropTarget()},[t])}function ap(t,e){var n=ip(t,e),r=a8(),i=s8(n.options);return l8(n,r,i),[lp(n.collect,r,i),u8(i)]}function c8(t,e){return p8(t)||h8(t,e)||f8(t,e)||d8()}function d8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
99
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f8(t,e){if(t){if(typeof t=="string")return Hc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hc(t,e)}}function Hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function p8(t){if(Array.isArray(t))return t}function g8(t){var e=pn(),n=e.getMonitor(),r=op(n,t),i=c8(r,2),o=i[0],l=i[1];return c.useEffect(function(){return n.subscribeToOffsetChange(l)}),c.useEffect(function(){return n.subscribeToStateChange(l)}),o}function sp(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function v8(t,e){return t.filter(function(n){return n!==e})}function m8(t,e){var n=new Set,r=function(l){return n.add(l)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function b8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $8(t,e,n){return y8(t.prototype,e),t}function zc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S8=function(){function t(e){b8(this,t),zc(this,"entered",[]),zc(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return $8(t,[{key:"enter",value:function(n){var r=this,i=this.entered.length,o=function(a){return r.isNodeInDocument(a)&&(!a.contains||a.contains(n))};return this.entered=m8(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=v8(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),w8=sp(function(){return/firefox/i.test(navigator.userAgent)}),up=sp(function(){return!!window.safari});function C8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x8(t,e,n){return E8(t.prototype,e),t}function hr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bc=function(){function t(e,n){C8(this,t),hr(this,"xs",void 0),hr(this,"ys",void 0),hr(this,"c1s",void 0),hr(this,"c2s",void 0),hr(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(h,L){return e[h]<e[L]?-1:1});for(var l=[],a=[],s,u,d=0;d<r-1;d++)s=e[d+1]-e[d],u=n[d+1]-n[d],l.push(s),a.push(u/s);for(var f=[a[0]],v=0;v<l.length-1;v++){var g=a[v],$=a[v+1];if(g*$<=0)f.push(0);else{s=l[v];var p=l[v+1],b=s+p;f.push(3*b/((b+p)/g+(b+s)/$))}}f.push(a[a.length-1]);for(var m=[],C=[],S,D=0;D<f.length-1;D++){S=a[D];var x=f[D],T=1/l[D],I=x+f[D+1]-S-S;m.push((S-x-I)*T),C.push(I*T*T)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=C}return x8(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=r.length-1;if(n===r[s])return i[s];for(var u=0,d=a.length-1,f;u<=d;){f=Math.floor(.5*(u+d));var v=r[f];if(v<n)u=f+1;else if(v>n)d=f-1;else return i[f]}s=Math.max(0,d);var g=n-r[s],$=g*g;return i[s]+o[s]*g+l[s]*$+a[s]*g*$}}]),t}(),P8=1;function cp(t){var e=t.nodeType===P8?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function ci(t){return{x:t.clientX,y:t.clientY}}function T8(t){var e;return t.nodeName==="IMG"&&(w8()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function D8(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return up()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function I8(t,e,n,r,i){var o=T8(e),l=o?t:e,a=cp(l),s={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,v=r.anchorY,g=D8(o,e,u,d),$=g.dragPreviewWidth,p=g.dragPreviewHeight,b=function(){var I=new Bc([0,.5,1],[s.y,s.y/d*p,s.y+p-d]),h=I.interpolate(v);return up()&&o&&(h+=(window.devicePixelRatio-1)*p),h},m=function(){var I=new Bc([0,.5,1],[s.x,s.x/u*$,s.x+$-u]);return I.interpolate(f)},C=i.offsetX,S=i.offsetY,D=C===0||C,x=S===0||S;return{x:D?C:m(),y:x?S:b()}}var dp="__NATIVE_FILE__",fp="__NATIVE_URL__",hp="__NATIVE_TEXT__",pp="__NATIVE_HTML__";const Vc=Object.freeze(Object.defineProperty({__proto__:null,FILE:dp,HTML:pp,TEXT:hp,URL:fp},Symbol.toStringTag,{value:"Module"}));function pl(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Pn;function di(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ha=(Pn={},di(Pn,dp,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),di(Pn,pp,{exposeProperties:{html:function(e,n){return pl(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),di(Pn,fp,{exposeProperties:{urls:function(e,n){return pl(e,n,"").split(`
|
|
100
|
+
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),di(Pn,hp,{exposeProperties:{text:function(e,n){return pl(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Pn);function O8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k8(t,e,n){return _8(t.prototype,e),t}function Uc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L8=function(){function t(e){O8(this,t),Uc(this,"item",void 0),Uc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return k8(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function M8(t,e){var n=new L8(ha[t]);return n.loadDataTransfer(e),n}function gl(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ha).filter(function(n){var r=ha[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function N8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A8(t,e,n){return R8(t.prototype,e),t}function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K8=function(){function t(e,n){N8(this,t),vl(this,"ownerDocument",null),vl(this,"globalContext",void 0),vl(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return A8(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function Wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wc(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function F8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H8(t,e,n){return j8(t.prototype,e),t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z8=function(){function t(e,n,r){var i=this;F8(this,t),ne(this,"options",void 0),ne(this,"actions",void 0),ne(this,"monitor",void 0),ne(this,"registry",void 0),ne(this,"enterLeaveCounter",void 0),ne(this,"sourcePreviewNodes",new Map),ne(this,"sourcePreviewNodeOptions",new Map),ne(this,"sourceNodes",new Map),ne(this,"sourceNodeOptions",new Map),ne(this,"dragStartSourceIds",null),ne(this,"dropTargetIds",[]),ne(this,"dragEnterTargetIds",[]),ne(this,"currentNativeSource",null),ne(this,"currentNativeHandle",null),ne(this,"currentDragSourceNode",null),ne(this,"altKeyPressed",!1),ne(this,"mouseMoveTimeoutTimer",null),ne(this,"asyncEndDragFrameId",null),ne(this,"dragOverTargetIds",null),ne(this,"lastClientOffset",null),ne(this,"hoverRafId",null),ne(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&cp(l)||null}),ne(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ne(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ne(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ne(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=ci(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,u=gl(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),v=i.sourcePreviewNodes.get(d)||f;if(v){var g=i.getCurrentSourcePreviewNodeOptions(),$=g.anchorX,p=g.anchorY,b=g.offsetX,m=g.offsetY,C={anchorX:$,anchorY:p},S={offsetX:b,offsetY:m},D=I8(f,v,a,C,S);s.setDragImage(v,D.x,D.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var x=i.getCurrentSourcePreviewNodeOptions(),T=x.captureDraggingState;T?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ne(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=gl(a);s&&i.beginDragNativeItem(s,a)}}),ne(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:ci(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ne(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ne(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=ci(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ne(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ne(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else gl(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ne(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:ci(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new K8(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new S8(this.isNodeInDocument)}return H8(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(u){return i.handleDragEnter(u,n)},l=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Gc({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Gc({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Vc).some(function(r){return Vc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=M8(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),fi;function B8(){return fi||(fi=new Image,fi.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),fi}var V8=function(e,n,r){return new z8(e,n,r)};function U8(t){const e=Le(),n=e.selectedIds,[r,i,o]=q$(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(Jn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(Jn.dragEnd())}}),[n,t]);return c.useEffect(()=>{o(B8())},[o]),i}function W8(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,u=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:u,atTop:!u&&l,atBottom:!u&&a}}function G8(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function hi(t,e){return{parentId:t||null,index:e}}function Tn(t,e){return{type:"line",index:t,level:e}}function q8(t){return{type:"highlight",id:t}}function ml(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=Fh(r)+1;return{parentId:i,index:o}}function gp(t){var e;const n=W8(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,u]=G8(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:hi(o.id,null),cursor:q8(o.id)};if(!s)return{drop:hi((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:Tn(0,0)};if(Nh(s)){const d=yi(i,(u==null?void 0:u.level)||0,s.level);return{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}if(Rh(s)){const d=yi(i,(u==null?void 0:u.level)||0,s.level);return{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}if(Ah(s)){const d=yi(i,0,s.level+1);return d>s.level?{drop:hi(s.id,0),cursor:Tn(s.rowIndex+1,d)}:{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}return{drop:hi(s==null?void 0:s.id,0),cursor:Tn(s.rowIndex+1,s.level+1)}}function Y8(t,e){const n=Le(),[r,i]=ap(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:u}=gp({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(Jn.hovering(u.parentId,u.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:u}=n.state.dnd;Vh(n.props.onMove,{dragIds:u,parentId:a===Lr?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function X8(t){const e=Le(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return c.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Z8=c.memo(function({index:e,style:n}){Mh(),m4();const r=Le(),i=X8(e),o=c.useRef(null),l=U8(i),a=Y8(o,i),s=c.useCallback(p=>{o.current=p,a(p)},[a]),u=r.indent*i.level,d=c.useMemo(()=>({paddingLeft:u}),[u]),f=c.useMemo(()=>{var p,b;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((b=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&b!==void 0?b:0)})},[n,r.props.padding,r.props.paddingTop]),v={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};c.useEffect(()=>{var p;!i.isEditing&&i.isFocused&&((p=o.current)===null||p===void 0||p.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=r.renderNode,$=r.renderRow;return w.jsx($,{node:i,innerRef:s,attrs:v,children:w.jsx(g,{node:i,tree:r,style:d,dragHandle:l})})});let bl="",qc=null;function vp(){Mh();const t=Le();return w.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var n;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),jh(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),Hh(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((n=i.parent)===null||n===void 0)&&n.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(qc),bl+=e.key,qc=setTimeout(()=>{bl=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(bl):!1});r&&t.focus(r.id)},children:w.jsx(e7,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:r7,innerElementType:l7,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Z8})})}function Yc(t){return t.isFiltered?Q8(t.root,t.isMatch.bind(t)):J8(t.root)}function J8(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(mp),e}function Q8(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(mp),r}function mp(t,e){t.rowIndex=e}const Xc=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var yl=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{u(r.next(d))}catch(f){l(f)}}function s(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:ve,identify:ut,identifyNull:We}=C4;class Vn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=lc(this),this.visibleNodes=Yc(this),this.idToIndex=Xc(this.visibleNodes)}update(e){this.props=e,this.root=lc(this),this.visibleNodes=Yc(this),this.idToIndex=Xc(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=yr(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=yr(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=Bh(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return yl(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Gh(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Wh(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ve(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return yl(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(ut),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ve(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=ut(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(ol(n)),new Promise(r=>{Vn.editPromise=r})}submit(e,n){return yl(this,void 0,void 0,function*(){if(!e)return;const r=ut(e);yield ve(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(ol(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(ol(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(We(e));n&&ve(this.props.onActivate,n)}resolveEdit(e){const n=Vn.editPromise;n&&n(e),Vn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(wn(ut(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ve(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=ut(e);r&&this.dispatch(wn(i)),this.dispatch(Ue.only(i)),this.dispatch(Ue.anchor(i)),this.dispatch(Ue.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=ut(e);this.dispatch(Ue.remove(n)),ve(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(We(e));n&&(this.dispatch(wn(n.id)),this.dispatch(Ue.add(n.id)),this.dispatch(Ue.anchor(n.id)),this.dispatch(Ue.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=ut(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(wn(n)),this.dispatch(Ue.remove(this.nodesBetween(r,i))),this.dispatch(Ue.add(this.nodesBetween(r,We(n)))),this.dispatch(Ue.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ve(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(wn((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(ut)),i=We(e.anchor),o=We(e.mostRecent);this.dispatch(Ue.set({ids:r,anchor:i,mostRecent:o})),ve(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&Kh(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Jn.cursor({type:"none"}))}showCursor(e){this.dispatch(Jn.cursor(e))}open(e){const n=We(e);n&&(this.isOpen(n)||(this.dispatch(oa.open(n,this.isFiltered)),ve(this.props.onToggle,n)))}close(e){const n=We(e);n&&this.isOpen(n)&&(this.dispatch(oa.close(n,this.isFiltered)),ve(this.props.onToggle,n))}toggle(e){const n=We(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=We(e);if(!n)return;const r=rs(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Vi(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Vi(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=ut(e);return this.openParents(r),Uh(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var n,r,i;if(!e)return!1;if(e===Lr)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!yr(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!yr(e,n)}isDragging(e){const n=We(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=We(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(wn(e.id))}onBlur(){this.dispatch(L4())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||vp}get renderRow(){return this.props.renderRow||D4}get renderNode(){return this.props.children||I4}get renderDragPreview(){return this.props.renderDragPreview||qh}get renderCursor(){return this.props.renderCursor||T4}}function xe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var eS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Zc=eS,$l=()=>Math.random().toString(36).substring(7).split("").join("."),tS={INIT:`@@redux/INIT${$l()}`,REPLACE:`@@redux/REPLACE${$l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$l()}`},qt=tS;function bp(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function nS(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(oS(t))return"date";if(iS(t))return"error";const n=rS(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function rS(t){return typeof t.constructor=="function"?t.constructor.name:null}function iS(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function oS(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Et(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=nS(t)),e}function yp(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?xe(2):`Expected the root reducer to be a function. Instead, received: '${Et(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xe(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xe(1):`Expected the enhancer to be a function. Instead, received: '${Et(n)}'`);return n(yp)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function u(){l===o&&(l=new Map,o.forEach((b,m)=>{l.set(m,b)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?xe(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?xe(4):`Expected the listener to be a function. Instead, received: '${Et(b)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?xe(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;u();const C=a++;return l.set(C,b),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?xe(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,u(),l.delete(C),o=null}}}function v(b){if(!bp(b))throw new Error(process.env.NODE_ENV==="production"?xe(7):`Actions must be plain objects. Instead, the actual type was: '${Et(b)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?xe(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof b.type!="string")throw new Error(process.env.NODE_ENV==="production"?xe(17):`Action "type" property must be a string. Instead, the actual type was: '${Et(b.type)}'. Value was: '${b.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?xe(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,b)}finally{s=!1}return(o=l).forEach(C=>{C()}),b}function g(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?xe(10):`Expected the nextReducer to be a function. Instead, received: '${Et(b)}`);r=b,v({type:qt.REPLACE})}function $(){const b=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?xe(11):`Expected the observer to be an object. Instead, received: '${Et(m)}'`);function C(){const D=m;D.next&&D.next(d())}return C(),{unsubscribe:b(C)}},[Zc](){return this}}}return v({type:qt.INIT}),{dispatch:v,subscribe:f,getState:d,replaceReducer:g,[Zc]:$}}function Jc(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function lS(t,e,n,r){const i=Object.keys(e),o=n&&n.type===qt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!bp(t))return`The ${o} has unexpected type of "${Et(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===qt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function aS(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:qt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?xe(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:qt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xe(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${qt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Qc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Jc(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{aS(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=lS(a,n,s,i);f&&Jc(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const v=r[f],g=n[v],$=a[v],p=g($,s);if(typeof p>"u"){const b=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?xe(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[v]=p,u=u||p!==$}return u=u||r.length!==Object.keys(a).length,u?d:a}}function sS(t=Zn().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const uS=Qc({nodes:Qc({focus:M4,edit:k4,open:N4,selection:R4,drag:sS}),dnd:A4}),cS=Zn();function dS({treeProps:t,imperativeHandle:e,children:n}){const r=c.useRef(null),i=c.useRef(null),o=c.useRef(yp(uS,Zn(t))),l=Ca.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>cS),a=c.useMemo(()=>new Vn(o.current,t,r,i),[]),s=c.useRef(0);return c.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),c.useImperativeHandle(e,()=>a),c.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),c.useEffect(()=>{a.props.searchTerm||o.current.dispatch(oa.clear(!0))},[a.props.searchTerm]),w.jsx(Oh.Provider,{value:a,children:w.jsx(Lh.Provider,{value:s.current,children:w.jsx(_h.Provider,{value:l.nodes,children:w.jsx(kh.Provider,{value:l.dnd,children:w.jsx(B3,Object.assign({backend:V8,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function fS(){const t=Le(),[,e]=ap(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=gp({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(Jn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function hS(t){return fS(),t.children}function pS(){const e=Le().props.renderContainer||vp;return w.jsx(w.Fragment,{children:w.jsx(e,{})})}function gS(){const t=Le(),{offset:e,mouse:n,item:r,isDragging:i}=g8(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||qh;return w.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class vS{constructor(e){this.root=mS(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function mS(t){const e=new $p({id:"ROOT"},null);return e.children=t.map(n=>cs(n,e)),e}function cs(t,e){const n=new $p(t,e);return t.children&&(n.children=t.children.map(r=>cs(r,n))),n}class $p{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=cs(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let bS=0;function yS(t){const[e,n]=c.useState(t),r=c.useMemo(()=>new vS(e),[e]);return[e,{onMove:u=>{for(const d of u.dragIds)r.move({id:d,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:d})=>{r.update({id:d,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:d,type:f})=>{const v={id:`simple-tree-id-${bS++}`,name:""};return f==="internal"&&(v.children=[]),r.create({parentId:u,index:d,data:v}),n(r.data),v},onDelete:u=>{u.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function $S(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
101
|
+
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=yS(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function SS(t,e){const n=$S(t);return w.jsxs(dS,{treeProps:n,imperativeHandle:e,children:[w.jsx(hS,{children:w.jsx(pS,{})}),w.jsx(gS,{})]})}const wS=c.forwardRef(SS),Sp=({top:t,left:e})=>w.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function CS(t,e){var n=c.useRef(null),r=c.useRef(null);r.current=e;var i=c.useRef(null);c.useEffect(function(){o()});var o=c.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return c.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),c.useCallback(function(l){i.current=l,o()},[o])}function ed(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function ES(t){t===void 0&&(t={});var e=t.onResize,n=c.useRef(void 0);n.current=e;var r=t.round||Math.round,i=c.useRef(),o=c.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=c.useRef(!1);c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=c.useRef({width:void 0,height:void 0}),d=CS(c.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(v){var g=v[0],$=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=ed(g,$,"inlineSize"),b=ed(g,$,"blockSize"),m=p?r(p):void 0,C=b?r(b):void 0;if(u.current.width!==m||u.current.height!==C){var S={width:m,height:C};u.current.width=m,u.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return c.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var ze=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(ze||{}),Ht=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(Ht||{});const Gi=t=>t?t.nodeType===ze.SEPARATOR:!1,qi=t=>t?t.nodeType===ze.TITLE:!1,$r=t=>!Gi(t)&&!qi(t),wp=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:u,getItem:d,move:f,items:v}=D1({initialItems:JSON.parse(JSON.stringify(t)),getKey:V=>V.id,getChildren:V=>V.children||[]}),[g,$]=c.useState(),p=(V=[])=>{const U=v.map(M=>M.key);r(...U);const N=JSON.parse(JSON.stringify(V));N.length>0&&o(null,0,...N),$(void 0)},b=V=>{const U=d(V);U&&$(U.value)},m=(V,U,N)=>{var M;if(V){const z=d(V);z&&o(V,N??((M=z.children)==null?void 0:M.length)??0,U)}else o(null,N??v.length,U)},C=V=>{var U;return(U=d(V))==null?void 0:U.value},S=(V,U)=>{var W;const N=d(V);if(!N){console.error("No item found");return}let M=((W=N.children)==null?void 0:W.map(G=>G.value))??null;const z=U.childrenCount??N.value.childrenCount??0;if((M==null?void 0:M.length)===0&&z>0&&(M=null),U.children&&(M=[...M??[],...U.children]),U.children){const G=new Set(U.children.map(R=>R.id));M=U.children.filter(R=>!G.has(R.id)),M=[...M??[],...U.children]}const j={...N.value,...U,children:M,childrenCount:(M==null?void 0:M.length)??z};i(V,j)},D=V=>{r(V)},x=V=>{r(...V)},T=async V=>{if(!e){console.error("No refresh callback provided");return}try{const U=await e(V);S(V,U)}catch(U){console.error("error while refreshing node:",U)}},I=(V,U)=>{o(null,U??v.length,V)},h=(V,U)=>{o(null,U??v.length,...V)},L=(V,U)=>{const N=d(V);if(!N){console.error("No item found");return}const M={...N.value,children:U,childrenCount:U.length,hasLoadedChildren:U.length>0};i(V,M)},A=V=>{const U=[],N=d(V);if(!N)return[];U.push(N.value);const M=z=>{const j=P(z);if(!j)return;const W=d(j);W&&(U.push(W.value),M(j))};return M(V),U.reverse()},P=V=>{var U;return((U=d(V))==null?void 0:U.parentKey)??null},F=V=>{const U=P(V);if(!U)return null;const N=d(U);return N?N.value:null},y=(V,U)=>{l(V,U)},E=(V,U)=>{a(V,U)},K=(V,U)=>{s(V,U)},B=(V,U)=>{u(V,U)},H=(V,U,N)=>{f(V,U,N)},O=V=>{H(V.sourceId,V.newParentId,V.index)},q=async V=>{if(!n)return[];const U=await n(V);return S(V,{children:U,hasLoadedChildren:!0,childrenCount:U.length}),U};return c.useEffect(()=>{const V=U=>{U.forEach(N=>{var M;if(N.children&&N.children.length>0){const z=N.value.hasLoadedChildren||((M=N.children)==null?void 0:M.length)>0||N.value.children&&N.value.children.length>0;N.value.children=N.children.map(W=>W.value);const j=z?N.children.length:N.value.childrenCount??0;N.value.childrenCount=j,z&&!N.value.hasLoadedChildren&&(N.value.hasLoadedChildren=!0),V(N.children)}else{const j=N.value.hasLoadedChildren||N.value.children&&N.value.children.length>0?0:N.value.childrenCount;N.value.children=[],N.value.childrenCount=j}})};V(v)},[v]),{nodes:v,addChild:m,updateNode:S,deleteNode:D,deleteNodes:x,addRootNode:I,addRootNodes:h,selectedNode:g,setSelectedNode:$,refreshNode:T,setChildren:L,insertBeforeNode:y,insertAfterNode:E,handleMove:O,prependToNode:B,moveNode:H,appendToNode:K,move:f,resetTree:p,handleLoadChildren:q,selectNodeById:b,getParent:F,getNode:C,getParentId:P,getAncestors:A}},ds=c.createContext(null),xS=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=c.useRef(null),[l,a]=c.useState(null),[s,u]=c.useState(n??null),d=wp(i??[],e,r);return w.jsx(ds.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:u,setRoot:a},children:t})},fs=()=>{const t=c.useContext(ds);if(!t)throw new Error("TreeContext not found");return t},PS=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,u]=c.useState(400),{ref:d,width:f}=ES(),v=fs(),g=(v==null?void 0:v.treeData.nodes)??[];c.useEffect(()=>{const m=document.querySelector(".c__tree-view"),C=m==null?void 0:m.firstElementChild;let S=null;return m&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const D=C.style.height;u(parseInt(D,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const $=m=>{var O,q,V,U;const C=JSON.parse(JSON.stringify(g)),S=m.dragNodes[0],D=m.parentId?((O=m.parentNode)==null?void 0:O.data.children)??[]:C,x=m.dragNodes[0].data.value.id,T=m.dragNodes[0].data,I=(q=m.parentNode)==null?void 0:q.data;if((I==null?void 0:I.value.nodeType)===ze.TITLE||(I==null?void 0:I.value.nodeType)===ze.SEPARATOR)return null;const h=T.parentKey??n,L=m.parentId??n;let A=m.index+0,P=null,F=L;const y=((U=(V=S.parent)==null?void 0:V.children)==null?void 0:U.findIndex(N=>N.data.value.id===x))??0;if(h===L){if(y===A)return null;A=A<y?A:A-1}const E=m.index-1,K=D[E],B=m.index,H=D[B];return m.index===0?(F=m.parentId??n,P=Ht.FIRST_CHILD):!I&&m.index===1&&!$r(K.value)?(F=n,A=1,P=Ht.FIRST_CHILD):m.index===D.length?(F=F??n,P=Ht.LAST_CHILD):K&&$r(K.value)?(F=K.value.id,P=Ht.RIGHT):H&&$r(H.value)&&(P=Ht.LEFT,F=H.value.id),P&&F?{targetModeId:F,mode:P,oldParentId:h,index:A,newParentId:m.parentId,sourceId:x}:null},p=m=>{const C=$(m);C&&(a?a(C,()=>{v==null||v.treeData.handleMove(C),l==null||l(C)}):(v==null||v.treeData.handleMove(C),l==null||l(C)))},b=c.useCallback(m=>o?!o(m):!1,[o]);if(v)return w.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:w.jsx(wS,{data:g,ref:v.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:p,height:s,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:b,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var h,L;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const D=C[0];if(D&&D.isDragging&&D.willReceiveDrop||((h=m.data.value)==null?void 0:h.nodeType)===ze.TITLE||((L=m.data.value)==null?void 0:L.nodeType)===ze.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const A=g[S-1],P=g[S],F=g[S+1],y=Gi(A==null?void 0:A.value),E=Gi(P==null?void 0:P.value),K=qi(A==null?void 0:A.value),B=qi(P==null?void 0:P.value),H=$r(F==null?void 0:F.value);return!!(S===0&&(E||B)||y&&B&&H||K&&E&&H)}const x=m==null?void 0:m.isOpen,T=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!T)return m.data.value.canDrop=!0,!1;let I=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return I=I??!0,!x&&!I&&T?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:Sp,renderRow:TS,rowClassName:"c__tree-view--row",children:r})})},TS=({children:t,...e})=>{const n=e.node.data.value.nodeType===ze.TITLE,r=e.node.data.value.nodeType===ze.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?c.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):c.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},w.jsx("div",{className:"c__tree-view--row-content",children:t}))},DS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function IS(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function OS(t){return"nodeType"in t}function _S(t){var e,n;return t?IS(t)?t:OS(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}const Cp=DS?c.useLayoutEffect:c.useEffect;function Ep(t){const e=c.useRef(t);return Cp(()=>{e.current=t}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function td(t,e){e===void 0&&(e=[t]);const n=c.useRef(t);return Cp(()=>{n.current!==t&&(n.current=t)},e),n}function kS(t){const e=Ep(t),n=c.useRef(null),r=c.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Sl={};function LS(t,e){return c.useMemo(()=>{const n=Sl[t]==null?0:Sl[t]+1;return Sl[t]=n,t+"-"+n},[t,e])}var xr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(xr||(xr={}));function nd(){}const MS=Object.freeze({x:0,y:0});function NS(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function RS(t,e,n){const r=NS(e);if(!r)return t;const{scaleX:i,scaleY:o,x:l,y:a}=r,s=t.left-l-(1-i)*parseFloat(n),u=t.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?t.width/i:t.width,f=o?t.height/o:t.height;return{width:d,height:f,top:u,right:s+d,bottom:u+f,left:s}}const AS={ignoreTransform:!1};function xp(t,e){e===void 0&&(e=AS);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:d}=_S(t).getComputedStyle(t);u&&(n=RS(n,u,d))}const{top:r,left:i,width:o,height:l,bottom:a,right:s}=n;return{top:r,left:i,width:o,height:l,bottom:a,right:s}}function rd(t){return xp(t,{ignoreTransform:!0})}var Fn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Fn||(Fn={}));var id;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(id||(id={}));var Tt;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Tt||(Tt={}));Tt.Space,Tt.Enter,Tt.Esc,Tt.Space,Tt.Enter,Tt.Tab;var od;(function(t){t[t.RightClick=2]="RightClick"})(od||(od={}));var ld;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(ld||(ld={}));var ad;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(ad||(ad={}));Fn.Backward+"",Fn.Forward+"",Fn.Backward+"",Fn.Forward+"";var pa;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(pa||(pa={}));var ga;(function(t){t.Optimized="optimized"})(ga||(ga={}));function KS(t){let{callback:e,disabled:n}=t;const r=Ep(e),i=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return c.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}pa.WhileDragging,ga.Optimized;const FS={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nd,draggableNodes:new Map,over:null,measureDroppableContainers:nd},jS=c.createContext(FS);({...MS});var sd;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(sd||(sd={}));const HS="Droppable",zS={timeout:25};function BS(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=LS(HS),{active:l,dispatch:a,over:s,measureDroppableContainers:u}=c.useContext(jS),d=c.useRef({disabled:n}),f=c.useRef(!1),v=c.useRef(null),g=c.useRef(null),{disabled:$,updateMeasurementsFor:p,timeout:b}={...zS,...i},m=td(p??r),C=c.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),S=KS({callback:C,disabled:$||!l}),D=c.useCallback((h,L)=>{S&&(L&&(S.unobserve(L),f.current=!1),h&&S.observe(h))},[S]),[x,T]=kS(D),I=td(e);return c.useEffect(()=>{!S||!x.current||(S.disconnect(),f.current=!1,S.observe(x.current))},[x,S]),c.useEffect(()=>(a({type:xr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:v,data:I}}),()=>a({type:xr.UnregisterDroppable,key:o,id:r})),[r]),c.useEffect(()=>{n!==d.current.disabled&&(a({type:xr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:v,isOver:(s==null?void 0:s.id)===r,node:x,over:s,setNodeRef:T}}const VS=t=>{const{isOver:e,setNodeRef:n}=BS({id:t.id,data:t.data});return c.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),w.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},US=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,D;const l=fs(),a=c.useRef(null),[s,u]=c.useState(!1),[d,f]=c.useState(!1),v=o??s,g=n.willReceiveDrop||d,$=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,p=((D=n.children)==null?void 0:D.length)??!1,b=n.isLeaf||!$,m=c.useCallback(async()=>{if(!b){if(p||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[b,p,n,l==null?void 0:l.treeData]),C=c.useCallback(x=>{x&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!x&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return c.useEffect(()=>{C(g)},[g,C]),n.data.value.nodeType===ze.SEPARATOR?w.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===ze.TITLE?w.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):w.jsx(VS,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:w.jsxs("div",{onClick:x=>{x.target.closest(".c__tree-view--node")||x.stopPropagation(),e==null||e()},onKeyDown:x=>{x.stopPropagation()},ref:r,style:i,className:Te("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[b&&w.jsx("div",{className:"c__tree-view--node__leaf"}),!b&&w.jsxs(w.Fragment,{children:[v&&w.jsx("div",{className:"c__tree-view--node__loading",children:w.jsx(Ya,{})}),!v&&w.jsx("span",{onClick:x=>{x.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},wo=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?w.jsx(Ar,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:w.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[w.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),w.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):w.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Pp=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=se.useCunningham(),[u,d]=c.useState(!1);return w.jsxs("div",{className:"c__add-share-user-list",children:[w.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>w.jsx(Tp,{user:f,onRemoveUser:e},f.id))}),w.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,w.jsx(wo,{roles:o,selectedRole:l,onSelect:a,isOpen:u,onOpenChange:d}),w.jsx(se.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},Tp=({user:t,onRemoveUser:e})=>w.jsxs("div",{className:"c__add-share-user-item",children:[w.jsx("span",{children:t.full_name||t.email}),w.jsx(se.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:w.jsx("span",{className:"material-icons",children:"close"})})]}),ud=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],WS=t=>{const e=t.split(" ");return e.length>2?e.slice(0,2).map(n=>n[0]).join(""):e.map(n=>n[0]).join("")},GS=t=>ud[t.charCodeAt(0)%ud.length],Dp=({fullName:t,size:e="medium",forceColor:n})=>{const r=WS(t),i=GS(t);return w.jsx("div",{style:{backgroundColor:n||void 0},className:Te(`c__avatar ${e}`,{[i]:!n&&i}),children:w.jsx("div",{className:"c__avatar__initials",children:r})})},Co=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return w.jsxs("div",{className:"c__user-row",children:[w.jsx(Dp,{fullName:r,size:"small"}),w.jsxs("div",{className:"c__user-row__info",children:[w.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&w.jsx("span",{className:Te("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},va=({user:t})=>{const{t:e}=se.useCunningham();return w.jsx(vo,{left:w.jsx(Co,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:w.jsxs("div",{className:"c__search-user-item-right",children:[w.jsx("span",{children:e("components.share.item.add")}),w.jsx("span",{className:"material-icons",children:"add"})]})})},Ip=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=Yn(),s=Yn(),u=[{label:l("components.share.access.delete"),icon:w.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>{r==null||r(t)}}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return w.jsx("div",{className:"c__share-member-item",children:w.jsx(vo,{left:w.jsx(Co,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:w.jsxs("div",{className:"c__share-member-item__right",children:[w.jsx(wo,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),i&&w.jsx(Ar,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:w.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:w.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Op=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=Yn(),s=Yn(),u=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:w.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return w.jsx("div",{className:"c__share-member-item",children:w.jsx(vo,{left:w.jsx(Co,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:w.jsxs("div",{className:"c__share-member-item__right",children:[w.jsx(wo,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&w.jsx(Ar,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:w.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:w.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},qS=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,hasNextInvitations:a=!1,...s})=>{const{t:u}=se.useCunningham(),{isMobile:d}=nr(),f=c.useRef(null),[v,g]=c.useState("400px"),$=c.useRef(null),[p,b]=c.useState(""),[m,C]=c.useState(""),[S,D]=c.useState([]),[x,T]=c.useState(s.invitationRoles[0].value??""),I=d?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",h=H=>{if(f.current&&clearTimeout(f.current),H===""){C(""),s.onSearchUsers("");return}f.current=setTimeout(()=>{s.onSearchUsers(H),C(H)},300)},L=H=>{b(H),h(H)},A=(m!==""||S.length>0)&&!s.loading,P=c.useCallback(H=>{D(O=>[...O,H]),b(""),C(""),s.onSearchUsers("")},[s]),F=H=>{D(O=>O.filter(q=>q.id!==H.id))},y=c.useMemo(()=>{const H=t==null?void 0:t.filter(M=>!S.includes(M));let O=u(m!==""?"components.share.user.no_result":"components.share.user.placeholder");const V=(M=>!!M.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(m??"")&&!(H!=null&&H.some(M=>M.email===m)),U={id:m,full_name:"",email:m};return V&&(O=void 0),{groupName:u("components.share.search.group_name"),elements:H??[],showWhenEmpty:!0,emptyString:O,endActions:V?[{content:w.jsx(va,{user:U}),onSelect:()=>void P(U)}]:void 0}},[t,m,u,S,P]),E=H=>{var N;const q=(H==null?void 0:H.clientHeight)??0,V=((N=$.current)==null?void 0:N.clientHeight)??0,U=`calc(${I} - ${q}px - ${V}px - 70px - 10px)`;g(U)},K=!A&&!s.loading&&i.length>0,B=!A&&!s.loading&&r.length>0;return w.jsx(se.Modal,{title:s.modalTitle??u("components.share.modalTitle"),isOpen:s.isOpen,onClose:s.onClose,closeOnClickOutside:!0,size:d?se.ModalSize.FULL:se.ModalSize.LARGE,children:w.jsxs("div",{children:[S.length>0&&w.jsx("div",{className:"c__share-modal__selected-users",ref:$,children:w.jsx(Pp,{users:S,onRemoveUser:F,roles:s.invitationRoles,selectedRole:x,onSelectRole:T,onShare:()=>{s.onInviteUser(S,x),D([])}})}),w.jsx(Dh,{onFilter:L,inputValue:p,loading:s.loading,placeholder:u("components.share.user.placeholder"),children:w.jsxs("div",{style:{height:v,overflowY:"auto"},children:[A&&!s.loading&&w.jsx("div",{className:"c__share-modal__search-users",children:w.jsx(Ih,{group:y,onSelect:H=>{P(H)},renderElement:H=>w.jsx(va,{user:H})})}),!A&&e,K&&w.jsxs("div",{className:"c__share-modal__invitations",children:[w.jsx("span",{className:"c__share-modal__invitations-title",children:u("components.share.invitations.title")}),i.map(H=>{var O;return w.jsx(Op,{invitation:H,roles:s.invitationRoles,updateRole:s.onUpdateInvitation,deleteInvitation:s.onDeleteInvitation,canUpdate:l,roleTopMessage:(O=s.invitationRoleTopMessage)==null?void 0:O.call(s,H)},H.id)}),w.jsx(cd,{show:a,onShowMore:s.onLoadNextInvitations})]}),B&&w.jsxs("div",{className:"c__share-modal__members",children:[w.jsx("span",{className:"c__share-modal__members-title",children:u(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(H=>{var O,q;return w.jsx(Ip,{accessData:H,canUpdate:l,roleTopMessage:(O=s.accessRoleTopMessage)==null?void 0:O.call(s,H),roles:((q=s.getAccessRoles)==null?void 0:q.call(s,H))??s.invitationRoles,updateRole:s.onUpdateAccess,deleteAccess:s.onDeleteAccess},H.id)}),w.jsx(cd,{show:o,onShowMore:s.onLoadNextMembers})]})]})}),w.jsx("div",{ref:E,children:!A&&w.jsx(w.Fragment,{children:n})})]})})},cd=({show:t,onShowMore:e})=>{const{t:n}=se.useCunningham();return t?w.jsx("div",{className:"c__share-modal__show-more-button",children:w.jsx(se.Button,{color:"primary-text",size:"small",icon:w.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},YS=({onCopyLink:t,onOk:e})=>{const{t:n}=se.useCunningham();return w.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[w.jsx(se.Button,{color:"tertiary",icon:w.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),w.jsx(se.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=wo;exports.CunninghamProvider=Vp;exports.CustomTabs=v4;exports.DropdownMenu=Ar;exports.Filter=vb;exports.Footer=gb;exports.Header=w2;exports.Hero=bb;exports.HomeGutter=yb;exports.HorizontalSeparator=ia;exports.InvitationUserSelectorItem=Tp;exports.InvitationUserSelectorList=Pp;exports.LaGaufre=Ob;exports.Label=W2;exports.LanguagePicker=S2;exports.LeftPanel=C2;exports.MainLayout=sy;exports.ProConnectButton=hd;exports.QuickSearch=Dh;exports.QuickSearchGroup=Ih;exports.QuickSearchInput=Th;exports.QuickSearchItem=bi;exports.QuickSearchItemTemplate=vo;exports.SearchUserItem=va;exports.ShareInvitationItem=Op;exports.ShareMemberItem=Ip;exports.ShareModal=qS;exports.ShareModalCopyLinkFooter=YS;exports.Spinner=Ya;exports.TreeApi=Vn;exports.TreeContext=ds;exports.TreeProvider=xS;exports.TreeView=PS;exports.TreeViewItem=US;exports.TreeViewMoveModeEnum=Ht;exports.TreeViewNodeTypeEnum=ze;exports.TreeViewSeparator=Sp;exports.UserAvatar=Dp;exports.UserRow=Co;exports.WithLabel=cy;exports.cunninghamConfig=Xl;exports.getLocales=fd;exports.headerHeight=uy;exports.isNode=$r;exports.isSeparator=Gi;exports.isTitle=qi;exports.useDropdownMenu=Yn;exports.useResponsive=nr;exports.useTree=wp;exports.useTreeContext=fs;
|
|
102
102
|
//# sourceMappingURL=index.cjs.map
|